@getcredify/credify-insurance-widget 1.38.1 → 1.38.3
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.
- package/dist/iframe/assets/{iframe-gQktg9dS.js → iframe-Ck1xjtKy.js} +27 -27
- package/dist/iframe/assets/iframe-Ck1xjtKy.js.map +1 -0
- package/dist/iframe/iframe.html +1 -1
- package/dist/index.es.js +1892 -1888
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +19 -19
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/iframe/assets/iframe-gQktg9dS.js.map +0 -1
|
@@ -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 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 lE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yp={exports:{}},
|
|
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 lE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yp={exports:{}},is={};/**
|
|
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
|
|
9
|
+
*/var S_;function fA(){if(S_)return is;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 is.Fragment=t,is.jsx=n,is.jsxs=n,is}var $_;function mA(){return $_||($_=1,yp.exports=fA()),yp.exports}var v=mA(),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 D_;function
|
|
17
|
+
*/var D_;function pA(){if(D_)return Ve;D_=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 $={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||$}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||$}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 O(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,O(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,"$&/")+"/"),O(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+=O(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+=O(Y,U,W,z,te);else if(z==="object"){if(typeof C.then=="function")return O(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 O(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 $0(){return x_||(x_=1,gp.exports=pA()),gp.exports}var b=$0();const ve=lE(b);var bp={exports:{}},os={},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
|
|
25
|
+
*/var C_;function hA(){return C_||(C_=1,(function(e){function t(O,B){var X=O.length;O.push(B);e:for(;0<X;){var F=X-1>>>1,G=O[F];if(0<o(G,B))O[F]=B,O[X]=G,X=F;else break e}}function n(O){return O.length===0?null:O[0]}function i(O){if(O.length===0)return null;var B=O[0],X=O.pop();if(X!==B){O[0]=X;e:for(var F=0,G=O.length,C=G>>>1;F<C;){var U=2*(F+1)-1,W=O[U],Y=U+1,te=O[Y];if(0>o(W,X))Y<G&&0>o(te,W)?(O[F]=te,O[Y]=X,F=Y):(O[F]=W,O[U]=X,F=U);else if(Y<G&&0>o(te,X))O[F]=te,O[Y]=X,F=Y;else break e}}return B}function o(O,B){var X=O.sortIndex-B.sortIndex;return X!==0?X:O.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,$=!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(O){for(var B=n(h);B!==null;){if(B.callback===null)i(h);else if(B.startTime<=O)i(h),B.sortIndex=B.expirationTime,t(m,B);else break;B=n(h)}}function M(O){if(x=!1,L(O),!$)if(n(m)!==null)$=!0,Z||(Z=!0,ye());else{var B=n(h);B!==null&&de(M,B.startTime-O)}}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 O=e.unstable_now();ne=O;var B=!0;try{e:{$=!1,x&&(x=!1,I(V),V=-1),S=!0;var X=E;try{t:{for(L(O),g=n(m);g!==null&&!(g.expirationTime>O&&pe());){var F=g.callback;if(typeof F=="function"){g.callback=null,E=g.priorityLevel;var G=F(g.expirationTime<=O);if(O=e.unstable_now(),typeof G=="function"){g.callback=G,L(O),B=!0;break t}g===n(m)&&i(m),L(O)}else i(m);g=n(m)}if(g!==null)B=!0;else{var C=n(h);C!==null&&de(M,C.startTime-O),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(O,B){V=R(function(){O(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(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(O){switch(E){case 1:case 2:case 3:var B=3;break;default:B=E}var X=E;E=B;try{return O()}finally{E=X}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(O,B){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var X=E;E=O;try{return B()}finally{E=X}},e.unstable_scheduleCallback=function(O,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,O){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,O={id:y++,callback:B,priorityLevel:O,startTime:X,expirationTime:G,sortIndex:-1},X>F?(O.sortIndex=X,t(h,O),n(m)===null&&O===n(h)&&(x?(I(V),V=-1):x=!0,de(M,X-F))):(O.sortIndex=G,t(m,O),$||S||($=!0,Z||(Z=!0,ye()))),O},e.unstable_shouldYield=pe,e.unstable_wrapCallback=function(O){var B=E;return function(){var X=E;E=B;try{return O.apply(this,arguments)}finally{E=X}}}})(_p)),_p}var A_;function yA(){return A_||(A_=1,vp.exports=hA()),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
|
|
33
|
+
*/var w_;function gA(){if(w_)return on;w_=1;var e=$0();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 sE(){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=gA(),Ep.exports}/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,50 +38,50 @@
|
|
|
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
|
|
41
|
+
*/var N_;function bA(){if(N_)return os;N_=1;var e=yA(),t=$0(),n=sE();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,D=f.child;D;){if(D===l){_=!0,l=f,u=p;break}if(D===u){_=!0,u=f,l=p;break}D=D.sibling}if(!_){for(D=p.child;D;){if(D===l){_=!0,l=p,u=f;break}if(D===u){_=!0,u=p,l=f;break}D=D.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"),$=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 $: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,O=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),ts._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
43
|
`+he+r+we}var me=!1;function $e(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],D=p[1];if(_&&D){var k=_.split(`
|
|
44
44
|
`),K=D.split(`
|
|
45
45
|
`);for(f=u=0;u<k.length&&!k[u].includes("DetermineComponentFrameRoot");)u++;for(;f<K.length&&!K[f].includes("DetermineComponentFrameRoot");)f++;if(u===k.length||f===K.length)for(u=k.length-1,f=K.length-1;1<=u&&0<=f&&k[u]!==K[f];)f--;for(;1<=u&&0<=f;u--,f--)if(k[u]!==K[f]){if(u!==1||f!==1)do if(u--,f--,0>f||k[u]!==K[f]){var ae=`
|
|
46
46
|
`+k[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 $e(r.type,!1);case 11:return $e(r.type.render,!1);case 1:return $e(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
47
|
Error generating stack: `+u.message+`
|
|
48
|
-
`+u.stack}}var be=Object.prototype.hasOwnProperty,Ce=e.unstable_scheduleCallback,xe=e.unstable_cancelCallback,Ne=e.unstable_shouldYield,re=e.unstable_requestPaint,oe=e.unstable_now,De=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 D=u&134217727;return D!==0?(u=D&~p,u!==0?f=Vn(u):(_&=D,_!==0?f=Vn(_):l||(l=D&~r,l!==0&&(f=Vn(l))))):(D=u&~p,D!==0?f=Vn(D):_!==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 D=r.entanglements,k=r.expirationTimes,K=r.hiddenUpdates;for(l=_&~l;0<l;){var ae=31-Ye(l),ce=1<<ae;D[ae]=0,k[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,eC="__reactListeners$"+ca,tC="__reactHandles$"+ca,Ry="__reactResources$"+ca,gl="__reactMarker$"+ca;function sf(r){delete r[Qt],delete r[yn],delete r[lf],delete r[eC],delete r[tC]}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 nC=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 rC(r){return be.call(Ly,r)?!0:be.call(By,r)?!1:nC.test(r)?Ly[r]=!0:(By[r]=!0,!1)}function tu(r,a,l){if(rC(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 aC(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=aC(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 iC=/[\n"\\]/g;function Zn(r){return r.replace(iC,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function cf(r,a,l,u,f,p,_,D){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"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?r.name=""+Gn(D):r.removeAttribute("name")}function Fy(r,a,l,u,f,p,_,D){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,D||a===r.value||(r.value=a),r.defaultValue=a}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,r.checked=D?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 oC=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||oC.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 lC=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"]]),sC=/^[\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 sC.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 D in r)r.hasOwnProperty(D)&&(l=r[D],this[D]=l?l(p):p[D]);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}),uC=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),cC=g({},uu,{dataTransfer:0}),dC=gn(cC),fC=g({},El,{relatedTarget:0}),_f=gn(fC),mC=g({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),pC=gn(mC),hC=g({},ii,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),yC=gn(hC),gC=g({},ii,{data:0}),Ky=gn(gC),bC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vC={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"},_C={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function EC(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=_C[r])?!!a[r]:!1}function Ef(){return EC}var SC=g({},El,{key:function(r){if(r.key){var a=bC[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"?vC[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}}),$C=gn(SC),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),xC=g({},El,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ef}),CC=gn(xC),AC=g({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),wC=gn(AC),TC=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}),NC=gn(TC),MC=g({},ii,{newState:0,oldState:0}),RC=gn(MC),OC=[9,13,27,32],Sf=Rr&&"CompositionEvent"in window,$l=null;Rr&&"documentMode"in document&&($l=document.documentMode);var kC=Rr&&"TextEvent"in window&&!$l,Qy=Rr&&(!Sf||$l&&8<$l&&11>=$l),Jy=" ",Xy=!1;function eg(r,a){switch(r){case"keyup":return OC.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 BC(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 LC(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 PC={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"?!!PC[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 Dl=null,xl=null;function IC(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 $f;if(Rr){var Df="oninput"in document;if(!Df){var og=document.createElement("div");og.setAttribute("oninput","return;"),Df=typeof og.oninput=="function"}$f=Df}else $f=!1;ig=$f&&(!document.documentMode||9<document.documentMode)}function lg(){Dl&&(Dl.detachEvent("onpropertychange",sg),xl=Dl=null)}function sg(r){if(r.propertyName==="value"&&cu(xl)){var a=[];rg(a,xl,r,pf(r)),Gy(IC,a)}}function FC(r,a,l){r==="focusin"?(lg(),Dl=a,xl=l,Dl.attachEvent("onpropertychange",sg)):r==="focusout"&&lg()}function jC(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return cu(xl)}function zC(r,a){if(r==="click")return cu(a)}function UC(r,a){if(r==="input"||r==="change")return cu(a)}function HC(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var On=typeof Object.is=="function"?Object.is:HC;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 VC=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"),GC=li("transitionrun"),ZC=li("transitionstart"),YC=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 qC(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 qC(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")_=X6(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 $g=new WeakMap;function qn(r,a){if(typeof r=="object"&&r!==null){var l=$g.get(r);return l!==void 0?l:(a={value:r,source:a,stack:_e(a)},$g.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 Dg(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),Dg(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,$t=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&&$t&&pa(r),Ag(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));$t=Jv(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));$t=Jv(r)}else a===27?(a=$t,wa(r.type)?(r=op,op=null,$t=r):$t=a):$t=Jt?Xn(r.stateNode.nextSibling):null;return!0}function ci(){$t=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 D=p;p=f;for(var k=0;k<a.length;k++)if(D.context===a[k]){p.lanes|=l,D=p.alternate,D!==null&&(D.lanes|=l),jf(p.return,l,r),u||(_=null);break e}p=D.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 D=f.type;On(f.pendingProps.value,_.value)||(r!==null?r.push(D):r=[D])}}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 KC=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()})}},WC=e.unstable_scheduleCallback,QC=e.unstable_NormalPriority,Ft={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uf(){return{controller:new KC,data:new Map,refCount:0}}function Nl(r){r.refCount--,r.refCount===0&&WC(QC,function(){r.controller.abort()})}var Ml=null,Hf=0,go=0,bo=null;function JC(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 XC(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=O.S;O.S=function(r,a){mv=oe(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&JC(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 $u(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 D(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 k(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 $: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);$u(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:D(H,P,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return q.key===Be?k(H,P,q,le):null;case $: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);$u(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,D(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,k(P,H,le,Be);case $: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);$u(P,le)}return null}function Me(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(cA){return a(H,cA)}),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 $: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 Me(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);$u(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,D=f.shared.pending;if(D!==null){f.shared.pending=null;var k=D,K=k.next;k.next=null,_===null?p=K:_.next=K,_=k;var ae=r.alternate;ae!==null&&(ae=ae.updateQueue,D=ae.lastBaseUpdate,D!==_&&(D===null?ae.firstBaseUpdate=K:D.next=K,ae.lastBaseUpdate=k))}if(p!==null){var ce=f.baseState;_=0,ae=K=k=null,D=p;do{var Q=D.lane&-536870913,ee=Q!==D.lane;if(ee?(Je&Q)===Q:(u&Q)===Q){Q!==0&&Q===go&&(Kf=!0),ae!==null&&(ae=ae.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var Me=r,Fe=D;Q=a;var gt=l;switch(Fe.tag){case 1:if(Me=Fe.payload,typeof Me=="function"){ce=Me.call(gt,ce,Q);break e}ce=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=Fe.payload,Q=typeof Me=="function"?Me.call(gt,ce,Q):Me,Q==null)break e;ce=g({},ce,Q);break e;case 2:ya=!0}}Q=D.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:D.tag,payload:D.payload,callback:D.callback,next:null},ae===null?(K=ae=ee,k=ce):ae=ae.next=ee,_|=Q;if(D=D.next,D===null){if(D=f.shared.pending,D===null)break;ee=D,D=ee.next,ee.next=null,f.lastBaseUpdate=ee,f.shared.pending=null}}while(!0);ae===null&&(k=ce),f.baseState=k,f.firstBaseUpdate=K,f.lastBaseUpdate=ae,p===null&&(f.shared.lanes=0),$a|=_,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),Du=C(0);function jg(r,a){r=Gr,W(Du,r),W(Eo,a),Gr=r|a.baseLanes}function Wf(){W(Du,Gr),W(Eo,Eo.current)}function Qf(){Gr=Du.current,U(Eo),U(Du)}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,$o=null,e6=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,O.H=r===null||r.memoizedState===null?Db:hm,gi=!1,p=l(u,f),gi=!1,So&&(p=Hg(a,l,u,f)),Ug(r),p}function Ug(r){O.H=jl;var a=ht!==null&&ht.next!==null;if(Pr=0,jt=ht=Ge=null,Cu=!1,Pl=0,$o=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&&($o=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)}O.H=xb,p=a(l,u)}while(So);return p}function t6(){var r=O.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,$o=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,$o===null&&($o=[]),r=Og($o,r,a),a=Ge,(jt===null?a.memoizedState:jt.next)===null&&(a=a.alternate,O.H=a===null||a.memoizedState===null?Db: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 D=_=null,k=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)k!==null&&(k=k.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},k===null?(D=k=ce,_=p):k=k.next=ce,Ge.lanes|=Q,$a|=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},k===null?(D=k=Q,_=p):k=k.next=Q,Ge.lanes|=ce,$a|=ce;K=K.next}while(K!==null&&K!==a);if(k===null?_=p:k.next=D,!On(p,r.memoizedState)&&(zt=!0,ae&&(l=bo,l!==null)))throw l;r.memoizedState=p,r.baseState=_,r.baseQueue=k,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,Do(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 n6(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(_)}};O.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=O.T,_={};O.T=_;try{var D=l(f,u),k=O.S;k!==null&&k(_,D),Jg(r,a,D)}catch(K){sm(r,a,K)}finally{p!==null&&_.types!==null&&(p.types=_.types),O.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($t){t:{for(var f=$t,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){$t=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=n6.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,Do(9,{destroy:void 0},r6.bind(null,f,l),null)),[u,p,r]}function r6(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 Do(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=Do(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=Do(a,p,l,u):(Ge.flags|=r,f.memoizedState=Do(1|a,p,l,u))}function lb(r,a){Mu(8390656,8,r,a)}function um(r,a){Ru(2048,8,r,a)}function a6(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 a6({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,$a|=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,$a|=r,a)}function yb(r,a,l,u,f){var p=B.p;B.p=p!==0&&8>p?p:8;var _=O.T,D={};O.T=D,pm(r,!1,a,l);try{var k=f(),K=O.S;if(K!==null&&K(D,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var ae=XC(k,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&&D.types!==null&&(_.types=D.types),O.T=_}}function i6(){}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?i6: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 o6(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 l6(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),$b(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,D=p(_,l);if(f.hasEagerState=!0,f.eagerState=D,On(D,_))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),$b(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 $b(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 Db={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=l6.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,Do(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=e6++,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=o6.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"&&(Da===null?Da=new Set([this]):Da.add(this));var D=u.stack;this.componentDidCatch(u.value,{componentStack:D!==null?D:""})})}function s6(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"&&(Da===null||!Da.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 D in u)D!=="ref"&&(_[D]=u[D])}else _=u;return fi(a),u=em(r,a,l,_,p,f),D=tm(),r!==null&&!zt?(nm(r,a,f),Fr(r,a,f)):(et&&D&&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 u6(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=$t)?(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,$t=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,$t=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 D=a.memoizedProps,k=bi(l,D);p.props=k;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",D=a.pendingProps!==D,ae||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(D||K!==_)&&Ab(a,p,u,_),ya=!1;var Q=a.memoizedState;p.state=Q,Ll(a,u,p,f),Bl(),K=a.memoizedState,D||Q!==K||ya?(typeof ce=="function"&&(ym(a,l,ce,u),K=a.memoizedState),(k=ya||Cb(a,l,k,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=k):(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,k=fo,typeof K=="object"&&K!==null&&(k=Xt(K)),D=l.getDerivedStateFromProps,(K=typeof D=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(_!==ce||Q!==k)&&Ab(a,p,u,k),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 D=="function"&&(ym(a,l,D,u),ee=a.memoizedState),(ae=ya||Cb(a,l,ae,u,Q,ee,k)||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,k),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,ee,k)),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=k,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 $m(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=$t)?(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,$t=null)):r=null,r===null)throw pa(a);return ip(r)?a.lanes=32:a.lanes=536870912,null}var D=u.children;return u=u.fallback,f?(_a(),f=a.mode,D=Pu({mode:"hidden",children:D},f),u=ui(u,f,l,null),D.return=a,u.return=a,D.sibling=u,a.child=D,u=a.child,u.memoizedState=Sm(l),u.childLanes=$m(r,_,l),a.memoizedState=Em,zl(null,u)):(va(a),Dm(a,D))}var k=r.memoizedState;if(k!==null&&(D=k.dehydrated,D!==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(),D=u.fallback,f=a.mode,u=Pu({mode:"visible",children:u.children},f),D=ui(D,f,l,null),D.flags|=2,u.return=a,D.return=a,u.sibling=D,a.child=u,yi(a,r.child,null,l),u=a.child,u.memoizedState=Sm(l),u.childLanes=$m(r,_,l),a.memoizedState=Em,a=zl(null,u));else if(va(a),ip(D)){if(_=D.nextSibling&&D.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!==k.retryLane))throw k.retryLane=u,si(r,u),Sn(_,r,u),vm;ap(D)||Zu(),a=xm(r,a,l)}else ap(D)?(a.flags|=192,a.child=r.child,a=null):(r=k.treeContext,$t=Xn(D.nextSibling),Jt=a,et=!0,ma=null,Qn=!1,r!==null&&xg(a,r),a=Dm(a,u.children),a.flags|=4096);return a}return f?(_a(),D=u.fallback,f=a.mode,k=r.child,K=k.sibling,u=Or(k,{mode:"hidden",children:u.children}),u.subtreeFlags=k.subtreeFlags&65011712,K!==null?D=Or(K,D):(D=ui(D,f,l,null),D.flags|=2),D.return=a,u.return=a,u.sibling=D,a.child=u,zl(null,u),u=a.child,D=r.child.memoizedState,D===null?D=Sm(l):(f=D.cachePool,f!==null?(k=Ft._currentValue,f=f.parent!==k?{parent:k,pool:k}:f):f=Mg(),D={baseLanes:D.baseLanes|l,cachePool:f}),u.memoizedState=D,u.childLanes=$m(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 Dm(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=Dm(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,D=(_&2)!==0;if(D?(_=_&1|2,a.flags|=128):_&=1,W(Lt,_),en(r,a,u,l),u=et?wl:0,!D&&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),$a|=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 c6(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,c6(r,a,l);zt=(r.flags&131072)!==0}else zt=!1,et&&(a.flags&1048576)!==0&&Dg(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($t=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=$t,wa(a.type)?(op=f,$t=Xn(u.firstChild)):$t=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=$t)&&(u=j6(u,a.type,a.pendingProps,Qn),u!==null?(a.stateNode=u,Jt=a,$t=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,t6,null,null,l),ns._currentValue=f),Lu(r,a),en(r,a,u,l),a.child;case 6:return r===null&&et&&((r=l=$t)&&(l=z6(l,a.pendingProps,Qn),l!==null?(a.stateNode=l,Jt=a,$t=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 u6(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 Dt(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 d6(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 Dt(a),null;case 1:return Dt(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())),Dt(a),null;case 26:var f=a.type,p=a.memoizedState;return r===null?(jr(a),p!==null?(Dt(a),Yb(a,p)):(Dt(a),wm(a,f,null,u,l))):p?p!==r.memoizedState?(jr(a),Dt(a),Yb(a,p)):(Dt(a),a.flags&=-16777217):(r=r.memoizedProps,r!==u&&jr(a),Dt(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 Dt(a),null}r=Y.current,ho(a)?Cg(a):(r=e_(f,u,l),a.stateNode=r,jr(a))}return Dt(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 Dt(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 Dt(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 Dt(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;Dt(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 Dt(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;Dt(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),Dt(a),null);case 4:return ie(),r===null&&Wm(a.stateNode.containerInfo),Dt(a),null;case 10:return Lr(a.type),Dt(a),null;case 19:if(U(Lt),u=a.memoizedState,u===null)return Dt(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 Dt(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):(Dt(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&&(Dt(a),a.subtreeFlags&6&&(a.flags|=8192)):Dt(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),Dt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function f6(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(D){ft(a,a.return,D)}}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,D=_.destroy;if(D!==void 0){_.destroy=void 0,f=a;var k=l,K=D;try{K()}catch(ae){ft(f,k,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;k6(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 m6(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,D=-1,k=-1,K=0,ae=0,ce=r,Q=null;t:for(;;){for(var ee;ce!==l||f!==0&&ce.nodeType!==3||(D=_+f),ce!==p||u!==0&&ce.nodeType!==3||(k=_+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&&(D=_),Q===p&&++ae===u&&(k=_),(ee=ce.nextSibling)!==null)break;ce=Q,Q=ce.parentNode}ce=ee}l=D===-1||k===-1?null:{start:D,end:k}}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 Me=bi(l.type,f);r=u.getSnapshotBeforeUpdate(Me,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=S6.bind(null,l),U6(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 p6(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=p6(r);a.forEach(function(u){if(!l.has(u)){l.add(u);var f=$6.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,D=_;e:for(;D!==null;){switch(D.tag){case 27:if(wa(D.type)){xt=D.stateNode,bn=!1;break e}break;case 5:xt=D.stateNode,bn=!1;break e;case 3:case 4:xt=D.stateNode.containerInfo,bn=!0;break e}D=D.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 D=0;D<_.length;D++)if(p=_[D],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(D,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(D=0;D<_.length;D++)if(p=_[D],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(D,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(Me){ft(r,r.return,Me)}}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(Me){ft(r,r.return,Me)}}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(Me){ft(r,r.return,Me)}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 k=l!==null&&l.memoizedState!==null,K=zr,ae=Ut;if(zr=K||f,Ut=ae||k,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||k||zr||Ut||vi(r)),l=null,a=r;;){if(a.tag===5||a.tag===26){if(l===null){k=l=a;try{if(p=k.stateNode,f)_=p.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{D=k.stateNode;var ce=k.memoizedProps.style,Q=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;D.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(Me){ft(k,k.return,Me)}}}else if(a.tag===6){if(l===null){k=a;try{k.stateNode.nodeValue=f?"":k.memoizedProps}catch(Me){ft(k,k.return,Me)}}}else if(a.tag===18){if(l===null){k=a;try{var ee=k.stateNode;f?Wv(ee,!0):Wv(k.stateNode,!1)}catch(Me){ft(k,k.return,Me)}}}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 D=Nm(r);Fu(r,D,_);break;case 3:case 4:var k=l.stateNode.containerInfo,K=Nm(r);Mm(r,K,k);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 D=u.stateNode;try{var k=f.shared.hiddenCallbacks;if(k!==null)for(f.shared.hiddenCallbacks=null,f=0;f<k.length;f++)Ig(k[f],D)}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,D=p.onPostCommit;typeof D=="function"&&D(_,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(k){ft(a,a.return,k)}}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,D=l,k=u,K=_.flags;switch(_.tag){case 0:case 11:case 15:xo(p,_,D,k,f),Hl(8,_);break;case 23:break;case 22:var ae=_.stateNode;_.memoizedState!==null?ae._visibility&2?xo(p,_,D,k,f):Gl(p,_):(ae._visibility|=2,xo(p,_,D,k,f)),f&&K&2048&&Om(_.alternate,_);break;case 24:xo(p,_,D,k,f),f&&K&2048&&km(_.alternate,_);break;default:xo(p,_,D,k,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&&eA(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 h6={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}},y6=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,$a=0,_i=0,Lm=0,In=0,wo=0,ql=null,En=null,Pm=!1,Uu=0,mv=0,Hu=1/0,Vu=null,Da=null,Gt=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:O.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?v6(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&&!g6(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 D=r;f=ql;var k=D.current.memoizedState.isDehydrated;if(k&&(No(D,_).flags|=256),_=Um(D,_,!1),_!==2){if(Bm&&!k){D.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,_,D,k,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 Me=(p&62914560)===p?Uu-oe():(p&4194048)===p?mv-oe():0;if(Me=tA(ce,Me),Me!==null){Zr=p,r.cancelPendingCommit=Me(xv.bind(null,r,a,p,l,u,f,_,D,k,ae,ce,null,Q,ee)),Ca(r,p,_,!K);return}}xv(r,a,p,l,u,f,_,D,k)}function g6(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,P6(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=$a=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,O.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=O.H;return O.H=jl,r===null?jl:r}function Ev(){var r=O.A;return O.A=h6,r}function Zu(){Mt=4,Sa||(Je&4194048)!==Je&&Bn.current!==null||(Ao=!0),($a&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 D=We,k=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,D,k,K),l&&Ao){_=0;break e}break;default:K=dt,dt=0,Pn=null,Mo(r,D,k,K)}}b6(),_=Mt;break}catch(ae){bv(r,ae)}while(!0);return a&&r.shellSuspendCounter++,Br=di=null,lt=u,O.H=f,O.A=p,We===null&&(vt=null,Je=0,fu()),_}function b6(){for(;We!==null;)Sv(We)}function v6(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,$v(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,$v(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 D=We;if(_?s_(_):D.stateNode.complete){dt=0,Pn=null;var k=D.sibling;if(k!==null)We=k;else{var K=D.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))}}_6();break}catch(ae){bv(r,ae)}while(!0);return Br=di=null,O.H=u,O.A=f,lt=l,We!==null?0:(vt=null,Je=0,fu(),Mt)}function _6(){for(;We!==null&&!Ne();)Sv(We)}function Sv(r){var a=Zb(r.alternate,r,Gr);r.memoizedProps=r.pendingProps,a===null?Yu(r):We=a}function $v(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(s6(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))),Dv(a,r)):Yu(a)}function Yu(r){var a=r;do{if((a.flags&32768)!==0){Dv(a,Sa);return}r=a.return;var l=d6(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 Dv(r,a){do{var l=f6(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,_,D,k){r.cancelPendingCommit=null;do qu();while(Gt!==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,_,D,k),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=O.T,O.T=null,f=B.p,B.p=2,_=lt,lt|=4;try{m6(r,a,l)}finally{lt=_,B.p=f,O.T=u}}Gt=1,Cv(),Av(),wv()}}function Cv(){if(Gt===1){Gt=0;var r=xa,a=To,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var u=B.p;B.p=2;var f=lt;lt|=4;try{ov(a,r);var p=ep,_=fg(r.containerInfo),D=p.focusedElem,k=p.selectionRange;if(_!==D&&D&&D.ownerDocument&&dg(D.ownerDocument.documentElement,D)){if(k!==null&&xf(D)){var K=k.start,ae=k.end;if(ae===void 0&&(ae=K),"selectionStart"in D)D.selectionStart=K,D.selectionEnd=Math.min(ae,D.value.length);else{var ce=D.ownerDocument||document,Q=ce&&ce.defaultView||window;if(Q.getSelection){var ee=Q.getSelection(),Me=D.textContent.length,Fe=Math.min(k.start,Me),gt=k.end===void 0?Fe:Math.min(k.end,Me);!ee.extend&&Fe>gt&&(_=gt,gt=Fe,Fe=_);var H=cg(D,Fe),P=cg(D,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=D;ee=ee.parentNode;)ee.nodeType===1&&ce.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<ce.length;D++){var le=ce[D];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}oc=!!Xm,ep=Xm=null}finally{lt=f,B.p=u,O.T=l}}r.current=a,Gt=2}}function Av(){if(Gt===2){Gt=0;var r=xa,a=To,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=O.T,O.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,O.T=l}}Gt=3}}function wv(){if(Gt===4||Gt===3){Gt=0,re();var r=xa,a=To,l=Zr,u=pv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Gt=5:(Gt=0,To=xa=null,Tv(r,r.pendingLanes));var f=r.pendingLanes;if(f===0&&(Da=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=O.T,f=B.p,B.p=2,O.T=null;try{for(var p=r.onRecoverableError,_=0;_<u.length;_++){var D=u[_];p(D.value,{componentStack:D.stack})}}finally{O.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(Gt!==5)return!1;var r=xa,a=Im;Im=0;var l=yl(Zr),u=O.T,f=B.p;try{B.p=32>l?32:l,O.T=null,l=Fm,Fm=null;var p=xa,_=Zr;if(Gt=0,To=xa=null,Zr=0,(lt&6)!==0)throw Error(i(331));var D=lt;if(lt|=4,dv(p.current),sv(p,p.current,_,l),lt=D,Wl(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(tt,p)}catch{}return!0}finally{B.p=f,O.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"&&(Da===null||!Da.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 y6;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=E6.bind(null,r,a,l),a.then(r,r))}function E6(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 S6(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),Rv(r,l)}function $6(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 Ce(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,C6())}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,D=u.pingedLanes;p=(1<<31-Ye(42|r)+1)-1,p&=f&~(_&~D),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 x6(){Ov()}function Ov(){Wu=Vm=!1;var r=0;Aa!==0&&L6()&&(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}Gt!==0&&Gt!==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),D=1<<_,k=f[_];k===-1?((D&l)===0||(D&u)!==0)&&(f[_]=hl(D,a)):k<=a&&(r.expiredLanes|=D),p&=~D}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&&xe(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&&xe(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=Ce(l,u),r.callbackPriority=a,r.callbackNode=l,a}return u!==null&&u!==null&&xe(u),r.callbackPriority=2,r.callbackNode=null,2}function Bv(r,a){if(Gt!==0&&Gt!==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 C6(){I6(function(){(lt&6)!==0?Ce(Ee,x6):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 A6(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 D=new su("action","action",null,u,f);r.push({event:D,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Aa!==0){var k=_?Iv(f,_):new FormData(f);fm(l,{pending:!0,data:k,method:f.method,action:p},null,k)}}else typeof p=="function"&&(D.preventDefault(),k=_?Iv(f,_):new FormData(f),fm(l,{pending:!0,data:k,method:f.method,action:p},p,k))},currentTarget:f}]})}}for(var Ym=0;Ym<Tf.length;Ym++){var qm=Tf[Ym],w6=qm.toLowerCase(),T6=qm[0].toUpperCase()+qm.slice(1);fr(w6,"on"+T6)}fr(hg,"onAnimationEnd"),fr(yg,"onAnimationIteration"),fr(gg,"onAnimationStart"),fr("dblclick","onDoubleClick"),fr("focusin","onFocus"),fr("focusout","onBlur"),fr(GC,"onTransitionRun"),fr(ZC,"onTransitionStart"),fr(YC,"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(" "),N6=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 D=u[_],k=D.instance,K=D.currentTarget;if(D=D.listener,k!==p&&f.isPropagationStopped())break e;p=D,f.currentTarget=K;try{p(f)}catch(ae){du(ae)}f.currentTarget=null,p=k}else for(_=0;_<u.length;_++){if(D=u[_],k=D.instance,K=D.currentTarget,D=D.listener,k!==p&&f.isPropagationStopped())break e;p=D,f.currentTarget=K;try{p(f)}catch(ae){du(ae)}f.currentTarget=null,p=k}}}}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"&&(N6.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=aA;break;case 8:f=iA;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 D=u.stateNode.containerInfo;if(D===f)break;if(_===4)for(_=u.return;_!==null;){var k=_.tag;if((k===3||k===4)&&_.stateNode.containerInfo===f)return;_=_.return}for(;D!==null;){if(_=Xi(D),_===null)return;if(k=_.tag,k===5||k===6||k===26||k===27){u=p=_;continue e}D=D.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,Me=r;switch(r){case"keypress":if(ou(l)===0)break e;case"keydown":case"keyup":ee=$C;break;case"focusin":Me="focus",ee=_f;break;case"focusout":Me="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=dC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=CC;break;case hg:case yg:case gg:ee=pC;break;case bg:ee=wC;break;case"scroll":case"scrollend":ee=uC;break;case"wheel":ee=NC;break;case"copy":case"cut":case"paste":ee=yC;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=RC}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,Me,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&&(Me=l.relatedTarget||l.fromElement)&&(Xi(Me)||Me[Ji]))break e;if((ee||Q)&&(Q=ae.window===ae?ae:(Q=ae.ownerDocument)?Q.defaultView||Q.parentWindow:window,ee?(Me=l.relatedTarget||l.toElement,ee=K,Me=Me?Xi(Me):null,Me!==null&&(gt=s(Me),Fe=Me.tag,Me!==gt||Fe!==5&&Fe!==27&&Fe!==6)&&(Me=null)):(ee=null,Me=K),ee!==Me)){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=Me==null?Q:bl(Me),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",Me,l,ae),Fe.target=q,Fe.relatedTarget=gt,le=Fe),gt=le,ee&&Me)t:{for(Fe=M6,H=ee,P=Me,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),Me!==null&>!==null&&zv(ce,gt,Me,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=UC;else{at=jC;var Oe=FC}else ee=Q.nodeName,!ee||ee.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?K&&ff(K.elementType)&&(at=ag):at=zC;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(VC)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=kC?BC(r,l):LC(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)),A6(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 M6(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 D=l,k=D.alternate,K=D.stateNode;if(D=D.tag,k!==null&&k===u)break;D!==5&&D!==26&&D!==27||K===null||(k=K,f?(K=vl(l,p),K!=null&&_.unshift(Jl(l,K,k))):f||(K=vl(l,p),K!=null&&_.push(Jl(l,K,k)))),l=l.return}_.length!==0&&r.push({event:a,listeners:_})}var R6=/\r\n?/g,O6=/\u0000|\uFFFD/g;function Uv(r){return(typeof r=="string"?r:""+r).replace(R6,`
|
|
49
|
-
`).replace(O6,"")}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=lC.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 D=p=_=f=null,k=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":k=ae;break;case"defaultChecked":K=ae;break;case"value":p=ae;break;case"defaultValue":D=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,D,k,K,_,f,!1);return;case"select":Qe("invalid",r),u=_=p=null;for(f in l)if(l.hasOwnProperty(f)&&(D=l[f],D!=null))switch(f){case"value":p=D;break;case"defaultValue":_=D;break;case"multiple":u=D;default:yt(r,a,f,D,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(_)&&(D=l[_],D!=null))switch(_){case"value":u=D;break;case"defaultValue":f=D;break;case"children":p=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(i(91));break;default:yt(r,a,_,D,l,null)}zy(r,u,f,p);return;case"option":for(k in l)if(l.hasOwnProperty(k)&&(u=l[k],u!=null))switch(k){case"selected":r.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:yt(r,a,k,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(D in l)l.hasOwnProperty(D)&&(u=l[D],u!=null&&yt(r,a,D,u,l,null))}function k6(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,D=null,k=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":k=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":D=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,_,D,k,K,ae,p,f);return;case"select":ee=_=D=Q=null;for(p in l)if(k=l[p],l.hasOwnProperty(p)&&k!=null)switch(p){case"value":break;case"multiple":ee=k;default:u.hasOwnProperty(p)||yt(r,a,p,null,u,k)}for(f in u)if(p=u[f],k=l[f],u.hasOwnProperty(f)&&(p!=null||k!=null))switch(f){case"value":Q=p;break;case"defaultValue":D=p;break;case"multiple":_=p;default:p!==k&&yt(r,a,f,p,u,k)}a=D,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(D in l)if(f=l[D],l.hasOwnProperty(D)&&f!=null&&!u.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:yt(r,a,D,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 Me in l)if(Q=l[Me],l.hasOwnProperty(Me)&&Q!=null&&!u.hasOwnProperty(Me))switch(Me){case"selected":r.selected=!1;break;default:yt(r,a,Me,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"selected":r.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:yt(r,a,k,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 B6(){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,D=f.duration;if(p&&D&&Vv(_)){for(_=0,D=f.responseEnd,u+=1;u<l.length;u++){var k=l[u],K=k.startTime;if(K>D)break;var ae=k.transferSize,ce=k.initiatorType;ae&&Vv(ce)&&(k=k.responseEnd,_+=ae*(k<D?1:(D-K)/(k-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 L6(){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,P6=typeof clearTimeout=="function"?clearTimeout:void 0,qv=typeof Promise=="function"?Promise:void 0,I6=typeof queueMicrotask=="function"?queueMicrotask:typeof qv<"u"?function(r){return qv.resolve(null).then(r).catch(F6)}:Yv;function F6(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,D=p.nodeName;p[gl]||D==="SCRIPT"||D==="STYLE"||D==="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 j6(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 z6(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 U6(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:H6,r:V6,D:G6,C:Z6,L:Y6,m:q6,X:W6,S:K6,M:Q6};function H6(){var r=Yr.f(),a=Gu();return r||a}function V6(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 G6(r){Yr.D(r),n_("dns-prefetch",r,null)}function Z6(r,a){Yr.C(r,a),n_("preconnect",r,a)}function Y6(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 q6(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 K6(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 D={loading:0,preload:null};if(_=u.querySelector(es(p)))D.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":a},l),(l=er.get(p))&&lp(r,l);var k=_=u.createElement("link");Kt(k),tn(k,"link",r),k._p=new Promise(function(K,ae){k.onload=K,k.onerror=ae}),k.addEventListener("load",function(){D.loading|=1}),k.addEventListener("error",function(){D.loading|=2}),D.loading|=4,tc(_,a,u)}_={type:"stylesheet",instance:_,count:1,state:D},f.set(p,_)}}}function W6(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 Q6(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||J6(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 J6(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(D,k){_.onload=D,_.onerror=k}),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 D=u[_];if(D.dataset.precedence===a)p=D;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 D=u.get(_);D?D.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 X6(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 eA(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(D,k){_.onload=D,_.onerror=k}),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 tA(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*B6());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(nA,r),ac=null,rc.call(r))}function nA(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 rA(r,a,l,u,f,p,_,D,k){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=k,this.incompleteTransitions=new Map}function u_(r,a,l,u,f,p,_,D,k,K,ae,ce){return r=new rA(r,a,l,_,k,K,ae,ce,D),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 aA(r,a,l,u){var f=O.T;O.T=null;var p=B.p;try{B.p=2,dp(r,a,l,u)}finally{B.p=p,O.T=f}}function iA(r,a,l,u){var f=O.T;O.T=null;var p=B.p;try{B.p=8,dp(r,a,l,u)}finally{B.p=p,O.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(lA(f,r,a,l,u))u.stopPropagation();else if(y_(r,u),a&4&&-1<oA.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 D=p;for(D.pendingLanes|=2,D.entangledLanes|=2;_;){var k=1<<31-Ye(_);D.entanglements[1]|=k,_&=~k}Sr(p),(lt&6)===0&&(Hu=oe()+500,Wl(0))}}break;case 31:case 13:D=si(p,2),D!==null&&Sn(D,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(De()){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=[],oA="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 lA(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 sA(){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,sA)))}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(k){return uc(k,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 D=null;if(p&&p.hasAttribute("formAction")){if(f=p,_=p[yn]||null)D=_.formAction;else if(mp(f)!==null)continue}else D=_.action;typeof D=="function"?l[u+1]=D:(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 uA={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:O,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 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,D=Nb,k=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&&(D=l.onRecoverableError),l.formState!==void 0&&(k=l.formState)),a=u_(r,1,!0,a,l??null,u,f,k,p,_,D,__),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 bA(){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=gA(),bp.exports}var vA=bA();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__,_A="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 EA(){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](`${_A}[${n}]:`,...i)})}}):yh.forEach(n=>{t[n]=()=>{}}),t}const je=Td("logger",EA),uE=50,Ni="?",R_=/\(error: (.*)\)/,O_=/captureMessage|captureException/;function cE(...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>=uE+o)break}}return
|
|
48
|
+
`+u.stack}}var be=Object.prototype.hasOwnProperty,Ce=e.unstable_scheduleCallback,xe=e.unstable_cancelCallback,Ne=e.unstable_shouldYield,re=e.unstable_requestPaint,oe=e.unstable_now,De=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,fl=Math.LN2;function Nn(r){return r>>>=0,r===0?32:31-(Hn(r)/fl|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 ml(r,a,l){var u=r.pendingLanes;if(u===0)return 0;var f=0,p=r.suspendedLanes,_=r.pingedLanes;r=r.warmLanes;var D=u&134217727;return D!==0?(u=D&~p,u!==0?f=Vn(u):(_&=D,_!==0?f=Vn(_):l||(l=D&~r,l!==0&&(f=Vn(l))))):(D=u&~p,D!==0?f=Vn(D):_!==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 pl(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 D=r.entanglements,k=r.expirationTimes,K=r.hiddenUpdates;for(l=_&~l;0<l;){var ae=31-Ye(l),ce=1<<ae;D[ae]=0,k[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 hl(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,tC="__reactListeners$"+ca,nC="__reactHandles$"+ca,Ry="__reactResources$"+ca,yl="__reactMarker$"+ca;function sf(r){delete r[Qt],delete r[yn],delete r[lf],delete r[tC],delete r[nC]}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 gl(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[yl]=!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 rC=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 aC(r){return be.call(Ly,r)?!0:be.call(By,r)?!1:rC.test(r)?Ly[r]=!0:(By[r]=!0,!1)}function tu(r,a,l){if(aC(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 iC(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=iC(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 oC=/[\n"\\]/g;function Zn(r){return r.replace(oC,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function cf(r,a,l,u,f,p,_,D){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"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?r.name=""+Gn(D):r.removeAttribute("name")}function Fy(r,a,l,u,f,p,_,D){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,D||a===r.value||(r.value=a),r.defaultValue=a}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,r.checked=D?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 lC=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||lC.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 sC=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"]]),uC=/^[\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 uC.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 bl(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 vl={};Object.defineProperty(vl,"passive",{get:function(){yf=!0}}),window.addEventListener("test",vl,vl),window.removeEventListener("test",vl,vl)}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 D in r)r.hasOwnProperty(D)&&(l=r[D],this[D]=l?l(p):p[D]);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),_l=g({},ii,{view:0,detail:0}),cC=gn(_l),bf,vf,El,uu=g({},_l,{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!==El&&(El&&r.type==="mousemove"?(bf=r.screenX-El.screenX,vf=r.screenY-El.screenY):vf=bf=0,El=r),bf)},movementY:function(r){return"movementY"in r?r.movementY:vf}}),qy=gn(uu),dC=g({},uu,{dataTransfer:0}),fC=gn(dC),mC=g({},_l,{relatedTarget:0}),_f=gn(mC),pC=g({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),hC=gn(pC),yC=g({},ii,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),gC=gn(yC),bC=g({},ii,{data:0}),Ky=gn(bC),vC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_C={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"},EC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function SC(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=EC[r])?!!a[r]:!1}function Ef(){return SC}var $C=g({},_l,{key:function(r){if(r.key){var a=vC[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"?_C[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}}),DC=gn($C),xC=g({},uu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wy=gn(xC),CC=g({},_l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ef}),AC=gn(CC),wC=g({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),TC=gn(wC),NC=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}),MC=gn(NC),RC=g({},ii,{newState:0,oldState:0}),OC=gn(RC),kC=[9,13,27,32],Sf=Rr&&"CompositionEvent"in window,Sl=null;Rr&&"documentMode"in document&&(Sl=document.documentMode);var BC=Rr&&"TextEvent"in window&&!Sl,Qy=Rr&&(!Sf||Sl&&8<Sl&&11>=Sl),Jy=" ",Xy=!1;function eg(r,a){switch(r){case"keyup":return kC.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 LC(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 PC(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 IC={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"?!!IC[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,Dl=null;function FC(r){Fv(r,0)}function cu(r){var a=gl(r);if(Iy(a))return r}function ag(r,a){if(r==="change")return a}var ig=!1;if(Rr){var $f;if(Rr){var Df="oninput"in document;if(!Df){var og=document.createElement("div");og.setAttribute("oninput","return;"),Df=typeof og.oninput=="function"}$f=Df}else $f=!1;ig=$f&&(!document.documentMode||9<document.documentMode)}function lg(){$l&&($l.detachEvent("onpropertychange",sg),Dl=$l=null)}function sg(r){if(r.propertyName==="value"&&cu(Dl)){var a=[];rg(a,Dl,r,pf(r)),Gy(FC,a)}}function jC(r,a,l){r==="focusin"?(lg(),$l=a,Dl=l,$l.attachEvent("onpropertychange",sg)):r==="focusout"&&lg()}function zC(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return cu(Dl)}function UC(r,a){if(r==="click")return cu(a)}function HC(r,a){if(r==="input"||r==="change")return cu(a)}function VC(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var On=typeof Object.is=="function"?Object.is:VC;function xl(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 GC=Rr&&"documentMode"in document&&11>=document.documentMode,so=null,Cf=null,Cl=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}),Cl&&xl(Cl,u)||(Cl=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"),ZC=li("transitionrun"),YC=li("transitionstart"),qC=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<ql)throw ql=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 KC(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 KC(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")_=eA(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 $g=new WeakMap;function qn(r,a){if(typeof r=="object"&&r!==null){var l=$g.get(r);return l!==void 0?l:(a={value:r,source:a,stack:_e(a)},$g.set(r,a),a)}return{value:r,source:a,stack:_e(a)}}var mo=[],po=0,yu=null,Al=0,Kn=[],Wn=0,fa=null,vr=1,_r="";function kr(r,a){mo[po++]=Al,mo[po++]=yu,yu=r,Al=a}function Dg(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),Dg(r,1,0))}function Lf(r){for(;r===yu;)yu=mo[--po],mo[po]=null,Al=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,$t=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 wl(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<Wl.length;l++)Qe(Wl[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&&$t&&pa(r),Ag(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));$t=Jv(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));$t=Jv(r)}else a===27?(a=$t,wa(r.type)?(r=op,op=null,$t=r):$t=a):$t=Jt?Xn(r.stateNode.nextSibling):null;return!0}function ci(){$t=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 wl(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 D=p;p=f;for(var k=0;k<a.length;k++)if(D.context===a[k]){p.lanes|=l,D=p.alternate,D!==null&&(D.lanes|=l),jf(p.return,l,r),u||(_=null);break e}p=D.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 D=f.type;On(f.pendingProps.value,_.value)||(r!==null?r.push(D):r=[D])}}else if(f===T.current){if(_=f.alternate,_===null)throw Error(i(387));_.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(r!==null?r.push(ts):r=[ts])}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 WC=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()})}},QC=e.unstable_scheduleCallback,JC=e.unstable_NormalPriority,Ft={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uf(){return{controller:new WC,data:new Map,refCount:0}}function Tl(r){r.refCount--,r.refCount===0&&QC(JC,function(){r.controller.abort()})}var Nl=null,Hf=0,go=0,bo=null;function XC(r,a){if(Nl===null){var l=Nl=[];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&&Nl!==null){bo!==null&&(bo.status="fulfilled");var r=Nl;Nl=null,go=0,bo=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function e6(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=O.S;O.S=function(r,a){mv=oe(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&XC(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,Ml=0;function Su(r){var a=Ml;return Ml+=1,_o===null&&(_o=[]),Og(_o,r,a)}function Rl(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function $u(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 D(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 k(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),Rl(P,q),P.return=H,P):(P=hu(q.type,q.key,q.props,null,H.mode,le),Rl(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),Rl(q,P),q.return=H,q;case $: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);$u(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:D(H,P,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return q.key===Be?k(H,P,q,le):null;case $: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);$u(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,D(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,k(P,H,le,Be);case $: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);$u(P,le)}return null}function Me(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(dA){return a(H,dA)}),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),Rl(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),Rl(le,q),le.return=H,H=le)}return _(H);case $: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 Me(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);$u(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{Ml=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 Ol(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 kl(){if(Kf){var r=bo;if(r!==null)throw r}}function Bl(r,a,l,u){Kf=!1;var f=r.updateQueue;ya=!1;var p=f.firstBaseUpdate,_=f.lastBaseUpdate,D=f.shared.pending;if(D!==null){f.shared.pending=null;var k=D,K=k.next;k.next=null,_===null?p=K:_.next=K,_=k;var ae=r.alternate;ae!==null&&(ae=ae.updateQueue,D=ae.lastBaseUpdate,D!==_&&(D===null?ae.firstBaseUpdate=K:D.next=K,ae.lastBaseUpdate=k))}if(p!==null){var ce=f.baseState;_=0,ae=K=k=null,D=p;do{var Q=D.lane&-536870913,ee=Q!==D.lane;if(ee?(Je&Q)===Q:(u&Q)===Q){Q!==0&&Q===go&&(Kf=!0),ae!==null&&(ae=ae.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var Me=r,Fe=D;Q=a;var gt=l;switch(Fe.tag){case 1:if(Me=Fe.payload,typeof Me=="function"){ce=Me.call(gt,ce,Q);break e}ce=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=Fe.payload,Q=typeof Me=="function"?Me.call(gt,ce,Q):Me,Q==null)break e;ce=g({},ce,Q);break e;case 2:ya=!0}}Q=D.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:D.tag,payload:D.payload,callback:D.callback,next:null},ae===null?(K=ae=ee,k=ce):ae=ae.next=ee,_|=Q;if(D=D.next,D===null){if(D=f.shared.pending,D===null)break;ee=D,D=ee.next,ee.next=null,f.lastBaseUpdate=ee,f.shared.pending=null}}while(!0);ae===null&&(k=ce),f.baseState=k,f.firstBaseUpdate=K,f.lastBaseUpdate=ae,p===null&&(f.shared.lanes=0),$a|=_,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),Du=C(0);function jg(r,a){r=Gr,W(Du,r),W(Eo,a),Gr=r|a.baseLanes}function Wf(){W(Du,Gr),W(Eo,Eo.current)}function Qf(){Gr=Du.current,U(Eo),U(Du)}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,Ll=0,$o=null,t6=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,O.H=r===null||r.memoizedState===null?Db:hm,gi=!1,p=l(u,f),gi=!1,So&&(p=Hg(a,l,u,f)),Ug(r),p}function Ug(r){O.H=Fl;var a=ht!==null&&ht.next!==null;if(Pr=0,jt=ht=Ge=null,Cu=!1,Ll=0,$o=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&&($o=null),Ll=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)}O.H=xb,p=a(l,u)}while(So);return p}function n6(){var r=O.H,a=r.useState()[0];return a=typeof a.then=="function"?Pl(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,Ll=Au=0,$o=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 Pl(r){var a=Ll;return Ll+=1,$o===null&&($o=[]),r=Og($o,r,a),a=Ge,(jt===null?a.memoizedState:jt.next)===null&&(a=a.alternate,O.H=a===null||a.memoizedState===null?Db:hm),r}function Tu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Pl(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 D=_=null,k=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)k!==null&&(k=k.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},k===null?(D=k=ce,_=p):k=k.next=ce,Ge.lanes|=Q,$a|=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},k===null?(D=k=Q,_=p):k=k.next=Q,Ge.lanes|=ce,$a|=ce;K=K.next}while(K!==null&&K!==a);if(k===null?_=p:k.next=D,!On(p,r.memoizedState)&&(zt=!0,ae&&(l=bo,l!==null)))throw l;r.memoizedState=p,r.baseState=_,r.baseQueue=k,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,Do(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 r6(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(_)}};O.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=O.T,_={};O.T=_;try{var D=l(f,u),k=O.S;k!==null&&k(_,D),Jg(r,a,D)}catch(K){sm(r,a,K)}finally{p!==null&&_.types!==null&&(p.types=_.types),O.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($t){t:{for(var f=$t,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){$t=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=r6.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=Pl(a)}catch(_){throw _===vo?_u:_}else u=a;a=Pt();var f=a.queue,p=f.dispatch;return l!==a.memoizedState&&(Ge.flags|=2048,Do(9,{destroy:void 0},a6.bind(null,f,l),null)),[u,p,r]}function a6(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 Do(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=Do(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=Do(a,p,l,u):(Ge.flags|=r,f.memoizedState=Do(1|a,p,l,u))}function lb(r,a){Mu(8390656,8,r,a)}function um(r,a){Ru(2048,8,r,a)}function i6(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 i6({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,$a|=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,$a|=r,a)}function yb(r,a,l,u,f){var p=B.p;B.p=p!==0&&8>p?p:8;var _=O.T,D={};O.T=D,pm(r,!1,a,l);try{var k=f(),K=O.S;if(K!==null&&K(D,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var ae=e6(k,u);Il(r,a,ae,Fn(r))}else Il(r,a,u,Fn(r))}catch(ce){Il(r,a,{then:function(){},status:"rejected",reason:ce},Fn())}finally{B.p=p,_!==null&&D.types!==null&&(_.types=D.types),O.T=_}}function o6(){}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?o6: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),Il(r,a.next.queue,{},Fn())}function mm(){return Xt(ts)}function vb(){return Pt().memoizedState}function _b(){return Pt().memoizedState}function l6(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),Ol(u,a,l)),a={cache:Uf()},r.payload=a;return}a=a.return}}function s6(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),$b(l,a,u)))}function Eb(r,a,l){var u=Fn();Il(r,a,l,u)}function Il(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,D=p(_,l);if(f.hasEagerState=!0,f.eagerState=D,On(D,_))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),$b(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 $b(r,a,l){if((l&4194048)!==0){var u=a.lanes;u&=r.pendingLanes,l|=u,a.lanes=l,eu(r,l)}}var Fl={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};Fl.useEffectEvent=Nt;var Db={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=s6.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,Do(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=t6++,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=l6.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:Pl(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:Pl(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),Ol(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),Ol(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),Ol(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?!xl(l,u)||!xl(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"&&(Da===null?Da=new Set([this]):Da.add(this));var D=u.stack;this.componentDidCatch(u.value,{componentStack:D!==null?D:""})})}function u6(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}),wl(qn(r,l)))):(u!==Pf&&(a=Error(i(423),{cause:u}),wl(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),Yl===null?Yl=[p]:Yl.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"&&(Da===null||!Da.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 D in u)D!=="ref"&&(_[D]=u[D])}else _=u;return fi(a),u=em(r,a,l,_,p,f),D=tm(),r!==null&&!zt?(nm(r,a,f),Fr(r,a,f)):(et&&D&&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:xl,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(xl(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 jl(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 c6(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,jl(null,r);if(Jf(a),(r=$t)?(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,$t=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,$t=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),Bl(a,u,p,f),kl(),p.state=a.memoizedState),typeof p.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(r===null){p=a.stateNode;var D=a.memoizedProps,k=bi(l,D);p.props=k;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",D=a.pendingProps!==D,ae||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(D||K!==_)&&Ab(a,p,u,_),ya=!1;var Q=a.memoizedState;p.state=Q,Bl(a,u,p,f),kl(),K=a.memoizedState,D||Q!==K||ya?(typeof ce=="function"&&(ym(a,l,ce,u),K=a.memoizedState),(k=ya||Cb(a,l,k,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=k):(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,k=fo,typeof K=="object"&&K!==null&&(k=Xt(K)),D=l.getDerivedStateFromProps,(K=typeof D=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(_!==ce||Q!==k)&&Ab(a,p,u,k),ya=!1,Q=a.memoizedState,p.state=Q,Bl(a,u,p,f),kl();var ee=a.memoizedState;_!==ce||Q!==ee||ya||r!==null&&r.dependencies!==null&&gu(r.dependencies)?(typeof D=="function"&&(ym(a,l,D,u),ee=a.memoizedState),(ae=ya||Cb(a,l,ae,u,Q,ee,k)||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,k),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,ee,k)),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=k,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 $m(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=$t)?(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,$t=null)):r=null,r===null)throw pa(a);return ip(r)?a.lanes=32:a.lanes=536870912,null}var D=u.children;return u=u.fallback,f?(_a(),f=a.mode,D=Pu({mode:"hidden",children:D},f),u=ui(u,f,l,null),D.return=a,u.return=a,D.sibling=u,a.child=D,u=a.child,u.memoizedState=Sm(l),u.childLanes=$m(r,_,l),a.memoizedState=Em,jl(null,u)):(va(a),Dm(a,D))}var k=r.memoizedState;if(k!==null&&(D=k.dehydrated,D!==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(),D=u.fallback,f=a.mode,u=Pu({mode:"visible",children:u.children},f),D=ui(D,f,l,null),D.flags|=2,u.return=a,D.return=a,u.sibling=D,a.child=u,yi(a,r.child,null,l),u=a.child,u.memoizedState=Sm(l),u.childLanes=$m(r,_,l),a.memoizedState=Em,a=jl(null,u));else if(va(a),ip(D)){if(_=D.nextSibling&&D.nextSibling.dataset,_)var K=_.dgst;_=K,u=Error(i(419)),u.stack="",u.digest=_,wl({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!==k.retryLane))throw k.retryLane=u,si(r,u),Sn(_,r,u),vm;ap(D)||Zu(),a=xm(r,a,l)}else ap(D)?(a.flags|=192,a.child=r.child,a=null):(r=k.treeContext,$t=Xn(D.nextSibling),Jt=a,et=!0,ma=null,Qn=!1,r!==null&&xg(a,r),a=Dm(a,u.children),a.flags|=4096);return a}return f?(_a(),D=u.fallback,f=a.mode,k=r.child,K=k.sibling,u=Or(k,{mode:"hidden",children:u.children}),u.subtreeFlags=k.subtreeFlags&65011712,K!==null?D=Or(K,D):(D=ui(D,f,l,null),D.flags|=2),D.return=a,u.return=a,u.sibling=D,a.child=u,jl(null,u),u=a.child,D=r.child.memoizedState,D===null?D=Sm(l):(f=D.cachePool,f!==null?(k=Ft._currentValue,f=f.parent!==k?{parent:k,pool:k}:f):f=Mg(),D={baseLanes:D.baseLanes|l,cachePool:f}),u.memoizedState=D,u.childLanes=$m(r,_,l),a.memoizedState=Em,jl(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 Dm(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=Dm(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,D=(_&2)!==0;if(D?(_=_&1|2,a.flags|=128):_&=1,W(Lt,_),en(r,a,u,l),u=et?Al:0,!D&&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),$a|=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 d6(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,d6(r,a,l);zt=(r.flags&131072)!==0}else zt=!1,et&&(a.flags&1048576)!==0&&Dg(a,Al,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),Bl(a,u,null,l);var _=a.memoizedState;if(u=_.cache,ha(a,Ft,u),u!==p.cache&&zf(a,[Ft],l,!0),kl(),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),wl(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($t=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=$t,wa(a.type)?(op=f,$t=Xn(u.firstChild)):$t=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=$t)&&(u=z6(u,a.type,a.pendingProps,Qn),u!==null?(a.stateNode=u,Jt=a,$t=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,n6,null,null,l),ts._currentValue=f),Lu(r,a),en(r,a,u,l),a.child;case 6:return r===null&&et&&((r=l=$t)&&(l=U6(l,a.pendingProps,Qn),l!==null?(a.stateNode=l,Jt=a,$t=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 c6(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),Bl(a,null,null,l),kl()),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 zl(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 Dt(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 f6(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 Dt(a),null;case 1:return Dt(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())),Dt(a),null;case 26:var f=a.type,p=a.memoizedState;return r===null?(jr(a),p!==null?(Dt(a),Yb(a,p)):(Dt(a),wm(a,f,null,u,l))):p?p!==r.memoizedState?(jr(a),Dt(a),Yb(a,p)):(Dt(a),a.flags&=-16777217):(r=r.memoizedProps,r!==u&&jr(a),Dt(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 Dt(a),null}r=Y.current,ho(a)?Cg(a):(r=e_(f,u,l),a.stateNode=r,jr(a))}return Dt(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 Dt(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 Dt(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 Dt(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;Dt(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 Dt(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;Dt(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),Dt(a),null);case 4:return ie(),r===null&&Wm(a.stateNode.containerInfo),Dt(a),null;case 10:return Lr(a.type),Dt(a),null;case 19:if(U(Lt),u=a.memoizedState,u===null)return Dt(a),null;if(f=(a.flags&128)!==0,p=u.rendering,p===null)if(f)zl(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,zl(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,zl(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),zl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!p.alternate&&!et)return Dt(a),null}else 2*oe()-u.renderingStartTime>Hu&&l!==536870912&&(a.flags|=128,f=!0,zl(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):(Dt(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&&(Dt(a),a.subtreeFlags&6&&(a.flags|=8192)):Dt(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),Dt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function m6(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 Ul(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(D){ft(a,a.return,D)}}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,D=_.destroy;if(D!==void 0){_.destroy=void 0,f=a;var k=l,K=D;try{K()}catch(ae){ft(f,k,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 Hl(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;B6(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 p6(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,D=-1,k=-1,K=0,ae=0,ce=r,Q=null;t:for(;;){for(var ee;ce!==l||f!==0&&ce.nodeType!==3||(D=_+f),ce!==p||u!==0&&ce.nodeType!==3||(k=_+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&&(D=_),Q===p&&++ae===u&&(k=_),(ee=ce.nextSibling)!==null)break;ce=Q,Q=ce.parentNode}ce=ee}l=D===-1||k===-1?null:{start:D,end:k}}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 Me=bi(l.type,f);r=u.getSnapshotBeforeUpdate(Me,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&&Ul(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&&Hl(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&&Hl(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=$6.bind(null,l),H6(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),Jl(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 h6(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=h6(r);a.forEach(function(u){if(!l.has(u)){l.add(u);var f=D6.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,D=_;e:for(;D!==null;){switch(D.tag){case 27:if(wa(D.type)){xt=D.stateNode,bn=!1;break e}break;case 5:xt=D.stateNode,bn=!1;break e;case 3:case 4:xt=D.stateNode.containerInfo,bn=!0;break e}D=D.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),Ul(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[yl]||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 D=0;D<_.length;D++)if(p=_[D],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(D,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(D=0;D<_.length;D++)if(p=_[D],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(D,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(Me){ft(r,r.return,Me)}}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(Me){ft(r,r.return,Me)}}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(Me){ft(r,r.return,Me)}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 k=l!==null&&l.memoizedState!==null,K=zr,ae=Ut;if(zr=K||f,Ut=ae||k,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||k||zr||Ut||vi(r)),l=null,a=r;;){if(a.tag===5||a.tag===26){if(l===null){k=l=a;try{if(p=k.stateNode,f)_=p.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{D=k.stateNode;var ce=k.memoizedProps.style,Q=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;D.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(Me){ft(k,k.return,Me)}}}else if(a.tag===6){if(l===null){k=a;try{k.stateNode.nodeValue=f?"":k.memoizedProps}catch(Me){ft(k,k.return,Me)}}}else if(a.tag===18){if(l===null){k=a;try{var ee=k.stateNode;f?Wv(ee,!0):Wv(k.stateNode,!1)}catch(Me){ft(k,k.return,Me)}}}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 D=Nm(r);Fu(r,D,_);break;case 3:case 4:var k=l.stateNode.containerInfo,K=Nm(r);Mm(r,K,k);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:Jl(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),Ul(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 D=u.stateNode;try{var k=f.shared.hiddenCallbacks;if(k!==null)for(f.shared.hiddenCallbacks=null,f=0;f<k.length;f++)Ig(k[f],D)}catch(K){ft(u,u.return,K)}}l&&_&64&&Kb(p),Hl(p,p.return);break;case 27:Xb(p);case 26:case 5:Vr(f,p,l),l&&u===null&&_&4&&Qb(p),Hl(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),Hl(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&&Tl(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&&Tl(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&&Ul(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&&Tl(r)));break;case 12:if(f&2048){pr(r,a,l,u),r=a.stateNode;try{var p=a.memoizedProps,_=p.id,D=p.onPostCommit;typeof D=="function"&&D(_,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(k){ft(a,a.return,k)}}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):Vl(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,D=l,k=u,K=_.flags;switch(_.tag){case 0:case 11:case 15:xo(p,_,D,k,f),Ul(8,_);break;case 23:break;case 22:var ae=_.stateNode;_.memoizedState!==null?ae._visibility&2?xo(p,_,D,k,f):Vl(p,_):(ae._visibility|=2,xo(p,_,D,k,f)),f&&K&2048&&Om(_.alternate,_);break;case 24:xo(p,_,D,k,f),f&&K&2048&&km(_.alternate,_);break;default:xo(p,_,D,k,f)}a=a.sibling}}function Vl(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:Vl(l,u),f&2048&&Om(u.alternate,u);break;case 24:Vl(l,u),f&2048&&km(u.alternate,u);break;default:Vl(l,u)}a=a.sibling}}var Gl=8192;function Co(r,a,l){if(r.subtreeFlags&Gl)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&Gl&&r.memoizedState!==null&&tA(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=Gl,Gl=16777216,Co(r,a,l),Gl=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 Zl(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:Zl(r),r.flags&2048&&Ea(9,r,r.return);break;case 3:Zl(r);break;case 12:Zl(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)):Zl(r);break;default:Zl(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:Tl(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 y6={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}},g6=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,$a=0,_i=0,Lm=0,In=0,wo=0,Yl=null,En=null,Pm=!1,Uu=0,mv=0,Hu=1/0,Vu=null,Da=null,Gt=0,xa=null,To=null,Zr=0,Im=0,Fm=null,pv=null,ql=0,jm=null;function Fn(){return(lt&2)!==0&&Je!==0?Je&-Je:O.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?_6(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&&!b6(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 D=r;f=Yl;var k=D.current.memoizedState.isDehydrated;if(k&&(No(D,_).flags|=256),_=Um(D,_,!1),_!==2){if(Bm&&!k){D.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),ml(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,_,D,k,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 Me=(p&62914560)===p?Uu-oe():(p&4194048)===p?mv-oe():0;if(Me=nA(ce,Me),Me!==null){Zr=p,r.cancelPendingCommit=Me(xv.bind(null,r,a,p,l,u,f,_,D,k,ae,ce,null,Q,ee)),Ca(r,p,_,!K);return}}xv(r,a,p,l,u,f,_,D,k)}function b6(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?(Kl(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,Ml=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,I6(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=$a=Mt=0,En=Yl=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,O.H=Fl,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=O.H;return O.H=Fl,r===null?Fl:r}function Ev(){var r=O.A;return O.A=y6,r}function Zu(){Mt=4,Sa||(Je&4194048)!==Je&&Bn.current!==null||(Ao=!0),($a&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 D=We,k=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,D,k,K),l&&Ao){_=0;break e}break;default:K=dt,dt=0,Pn=null,Mo(r,D,k,K)}}v6(),_=Mt;break}catch(ae){bv(r,ae)}while(!0);return a&&r.shellSuspendCounter++,Br=di=null,lt=u,O.H=f,O.A=p,We===null&&(vt=null,Je=0,fu()),_}function v6(){for(;We!==null;)Sv(We)}function _6(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,$v(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,$v(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 D=We;if(_?s_(_):D.stateNode.complete){dt=0,Pn=null;var k=D.sibling;if(k!==null)We=k;else{var K=D.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))}}E6();break}catch(ae){bv(r,ae)}while(!0);return Br=di=null,O.H=u,O.A=f,lt=l,We!==null?0:(vt=null,Je=0,fu(),Mt)}function E6(){for(;We!==null&&!Ne();)Sv(We)}function Sv(r){var a=Zb(r.alternate,r,Gr);r.memoizedProps=r.pendingProps,a===null?Yu(r):We=a}function $v(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,Ml=0;var f=a.return;try{if(u6(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))),Dv(a,r)):Yu(a)}function Yu(r){var a=r;do{if((a.flags&32768)!==0){Dv(a,Sa);return}r=a.return;var l=f6(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 Dv(r,a){do{var l=m6(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,_,D,k){r.cancelPendingCommit=null;do qu();while(Gt!==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,_,D,k),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,x6(Re,function(){return Nv(),null})):(r.callbackNode=null,r.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=O.T,O.T=null,f=B.p,B.p=2,_=lt,lt|=4;try{p6(r,a,l)}finally{lt=_,B.p=f,O.T=u}}Gt=1,Cv(),Av(),wv()}}function Cv(){if(Gt===1){Gt=0;var r=xa,a=To,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var u=B.p;B.p=2;var f=lt;lt|=4;try{ov(a,r);var p=ep,_=fg(r.containerInfo),D=p.focusedElem,k=p.selectionRange;if(_!==D&&D&&D.ownerDocument&&dg(D.ownerDocument.documentElement,D)){if(k!==null&&xf(D)){var K=k.start,ae=k.end;if(ae===void 0&&(ae=K),"selectionStart"in D)D.selectionStart=K,D.selectionEnd=Math.min(ae,D.value.length);else{var ce=D.ownerDocument||document,Q=ce&&ce.defaultView||window;if(Q.getSelection){var ee=Q.getSelection(),Me=D.textContent.length,Fe=Math.min(k.start,Me),gt=k.end===void 0?Fe:Math.min(k.end,Me);!ee.extend&&Fe>gt&&(_=gt,gt=Fe,Fe=_);var H=cg(D,Fe),P=cg(D,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=D;ee=ee.parentNode;)ee.nodeType===1&&ce.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<ce.length;D++){var le=ce[D];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}oc=!!Xm,ep=Xm=null}finally{lt=f,B.p=u,O.T=l}}r.current=a,Gt=2}}function Av(){if(Gt===2){Gt=0;var r=xa,a=To,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=O.T,O.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,O.T=l}}Gt=3}}function wv(){if(Gt===4||Gt===3){Gt=0,re();var r=xa,a=To,l=Zr,u=pv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Gt=5:(Gt=0,To=xa=null,Tv(r,r.pendingLanes));var f=r.pendingLanes;if(f===0&&(Da=null),hl(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=O.T,f=B.p,B.p=2,O.T=null;try{for(var p=r.onRecoverableError,_=0;_<u.length;_++){var D=u[_];p(D.value,{componentStack:D.stack})}}finally{O.T=a,B.p=f}}(Zr&3)!==0&&qu(),Sr(r),f=r.pendingLanes,(l&261930)!==0&&(f&42)!==0?r===jm?ql++:(ql=0,jm=r):ql=0,Kl(0)}}function Tv(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Tl(a)))}function qu(){return Cv(),Av(),wv(),Nv()}function Nv(){if(Gt!==5)return!1;var r=xa,a=Im;Im=0;var l=hl(Zr),u=O.T,f=B.p;try{B.p=32>l?32:l,O.T=null,l=Fm,Fm=null;var p=xa,_=Zr;if(Gt=0,To=xa=null,Zr=0,(lt&6)!==0)throw Error(i(331));var D=lt;if(lt|=4,dv(p.current),sv(p,p.current,_,l),lt=D,Kl(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(tt,p)}catch{}return!0}finally{B.p=f,O.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"&&(Da===null||!Da.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 g6;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=S6.bind(null,r,a,l),a.then(r,r))}function S6(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 $6(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),Rv(r,l)}function D6(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 x6(r,a){return Ce(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,A6())}function Kl(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,D=u.pingedLanes;p=(1<<31-Ye(42|r)+1)-1,p&=f&~(_&~D),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(l=!0,Lv(u,p))}else p=Je,p=ml(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 C6(){Ov()}function Ov(){Wu=Vm=!1;var r=0;Aa!==0&&P6()&&(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}Gt!==0&&Gt!==5||Kl(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),D=1<<_,k=f[_];k===-1?((D&l)===0||(D&u)!==0)&&(f[_]=pl(D,a)):k<=a&&(r.expiredLanes|=D),p&=~D}if(a=vt,l=Je,l=ml(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&&xe(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&&xe(u),hl(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=Ce(l,u),r.callbackPriority=a,r.callbackNode=l,a}return u!==null&&u!==null&&xe(u),r.callbackPriority=2,r.callbackNode=null,2}function Bv(r,a){if(Gt!==0&&Gt!==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=ml(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 A6(){F6(function(){(lt&6)!==0?Ce(Ee,C6):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 w6(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 D=new su("action","action",null,u,f);r.push({event:D,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Aa!==0){var k=_?Iv(f,_):new FormData(f);fm(l,{pending:!0,data:k,method:f.method,action:p},null,k)}}else typeof p=="function"&&(D.preventDefault(),k=_?Iv(f,_):new FormData(f),fm(l,{pending:!0,data:k,method:f.method,action:p},p,k))},currentTarget:f}]})}}for(var Ym=0;Ym<Tf.length;Ym++){var qm=Tf[Ym],T6=qm.toLowerCase(),N6=qm[0].toUpperCase()+qm.slice(1);fr(T6,"on"+N6)}fr(hg,"onAnimationEnd"),fr(yg,"onAnimationIteration"),fr(gg,"onAnimationStart"),fr("dblclick","onDoubleClick"),fr("focusin","onFocus"),fr("focusout","onBlur"),fr(ZC,"onTransitionRun"),fr(YC,"onTransitionStart"),fr(qC,"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 Wl="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(" "),M6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wl));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 D=u[_],k=D.instance,K=D.currentTarget;if(D=D.listener,k!==p&&f.isPropagationStopped())break e;p=D,f.currentTarget=K;try{p(f)}catch(ae){du(ae)}f.currentTarget=null,p=k}else for(_=0;_<u.length;_++){if(D=u[_],k=D.instance,K=D.currentTarget,D=D.listener,k!==p&&f.isPropagationStopped())break e;p=D,f.currentTarget=K;try{p(f)}catch(ae){du(ae)}f.currentTarget=null,p=k}}}}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"&&(M6.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=iA;break;case 8:f=oA;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 D=u.stateNode.containerInfo;if(D===f)break;if(_===4)for(_=u.return;_!==null;){var k=_.tag;if((k===3||k===4)&&_.stateNode.containerInfo===f)return;_=_.return}for(;D!==null;){if(_=Xi(D),_===null)return;if(k=_.tag,k===5||k===6||k===26||k===27){u=p=_;continue e}D=D.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,Me=r;switch(r){case"keypress":if(ou(l)===0)break e;case"keydown":case"keyup":ee=DC;break;case"focusin":Me="focus",ee=_f;break;case"focusout":Me="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=fC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=AC;break;case hg:case yg:case gg:ee=hC;break;case bg:ee=TC;break;case"scroll":case"scrollend":ee=cC;break;case"wheel":ee=MC;break;case"copy":case"cut":case"paste":ee=gC;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=OC}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=bl(P,H),le!=null&&Fe.push(Ql(P,le,q))),gt)break;P=P.return}0<Fe.length&&(Q=new ee(Q,Me,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&&(Me=l.relatedTarget||l.fromElement)&&(Xi(Me)||Me[Ji]))break e;if((ee||Q)&&(Q=ae.window===ae?ae:(Q=ae.ownerDocument)?Q.defaultView||Q.parentWindow:window,ee?(Me=l.relatedTarget||l.toElement,ee=K,Me=Me?Xi(Me):null,Me!==null&&(gt=s(Me),Fe=Me.tag,Me!==gt||Fe!==5&&Fe!==27&&Fe!==6)&&(Me=null)):(ee=null,Me=K),ee!==Me)){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:gl(ee),q=Me==null?Q:gl(Me),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",Me,l,ae),Fe.target=q,Fe.relatedTarget=gt,le=Fe),gt=le,ee&&Me)t:{for(Fe=R6,H=ee,P=Me,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),Me!==null&>!==null&&zv(ce,gt,Me,Fe,!0)}}e:{if(Q=K?gl(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=HC;else{at=zC;var Oe=jC}else ee=Q.nodeName,!ee||ee.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?K&&ff(K.elementType)&&(at=ag):at=UC;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?gl(K):window,r){case"focusin":(ng(Oe)||Oe.contentEditable==="true")&&(so=Oe,Cf=K,Cl=null);break;case"focusout":Cl=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(GC)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=BC?LC(r,l):PC(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)),w6(ce,r,K,l,ae)}Fv(ce,a)})}function Ql(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=bl(r,l),f!=null&&u.unshift(Ql(r,f,p)),f=bl(r,a),f!=null&&u.push(Ql(r,f,p))),r.tag===3)return u;r=r.return}return[]}function R6(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 D=l,k=D.alternate,K=D.stateNode;if(D=D.tag,k!==null&&k===u)break;D!==5&&D!==26&&D!==27||K===null||(k=K,f?(K=bl(l,p),K!=null&&_.unshift(Ql(l,K,k))):f||(K=bl(l,p),K!=null&&_.push(Ql(l,K,k)))),l=l.return}_.length!==0&&r.push({event:a,listeners:_})}var O6=/\r\n?/g,k6=/\u0000|\uFFFD/g;function Uv(r){return(typeof r=="string"?r:""+r).replace(O6,`
|
|
49
|
+
`).replace(k6,"")}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=sC.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 D=p=_=f=null,k=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":k=ae;break;case"defaultChecked":K=ae;break;case"value":p=ae;break;case"defaultValue":D=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,D,k,K,_,f,!1);return;case"select":Qe("invalid",r),u=_=p=null;for(f in l)if(l.hasOwnProperty(f)&&(D=l[f],D!=null))switch(f){case"value":p=D;break;case"defaultValue":_=D;break;case"multiple":u=D;default:yt(r,a,f,D,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(_)&&(D=l[_],D!=null))switch(_){case"value":u=D;break;case"defaultValue":f=D;break;case"children":p=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(i(91));break;default:yt(r,a,_,D,l,null)}zy(r,u,f,p);return;case"option":for(k in l)if(l.hasOwnProperty(k)&&(u=l[k],u!=null))switch(k){case"selected":r.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:yt(r,a,k,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<Wl.length;u++)Qe(Wl[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(D in l)l.hasOwnProperty(D)&&(u=l[D],u!=null&&yt(r,a,D,u,l,null))}function B6(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,D=null,k=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":k=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":D=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,_,D,k,K,ae,p,f);return;case"select":ee=_=D=Q=null;for(p in l)if(k=l[p],l.hasOwnProperty(p)&&k!=null)switch(p){case"value":break;case"multiple":ee=k;default:u.hasOwnProperty(p)||yt(r,a,p,null,u,k)}for(f in u)if(p=u[f],k=l[f],u.hasOwnProperty(f)&&(p!=null||k!=null))switch(f){case"value":Q=p;break;case"defaultValue":D=p;break;case"multiple":_=p;default:p!==k&&yt(r,a,f,p,u,k)}a=D,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(D in l)if(f=l[D],l.hasOwnProperty(D)&&f!=null&&!u.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:yt(r,a,D,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 Me in l)if(Q=l[Me],l.hasOwnProperty(Me)&&Q!=null&&!u.hasOwnProperty(Me))switch(Me){case"selected":r.selected=!1;break;default:yt(r,a,Me,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"selected":r.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:yt(r,a,k,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 L6(){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,D=f.duration;if(p&&D&&Vv(_)){for(_=0,D=f.responseEnd,u+=1;u<l.length;u++){var k=l[u],K=k.startTime;if(K>D)break;var ae=k.transferSize,ce=k.initiatorType;ae&&Vv(ce)&&(k=k.responseEnd,_+=ae*(k<D?1:(D-K)/(k-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 P6(){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,I6=typeof clearTimeout=="function"?clearTimeout:void 0,qv=typeof Promise=="function"?Promise:void 0,F6=typeof queueMicrotask=="function"?queueMicrotask:typeof qv<"u"?function(r){return qv.resolve(null).then(r).catch(j6)}:Yv;function j6(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")Jl(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,Jl(l);for(var p=l.firstChild;p;){var _=p.nextSibling,D=p.nodeName;p[yl]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&p.rel.toLowerCase()==="stylesheet"||l.removeChild(p),p=_}}else l==="body"&&Jl(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 z6(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[yl])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 U6(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 H6(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 Jl(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:V6,r:G6,D:Z6,C:Y6,L:q6,m:K6,X:Q6,S:W6,M:J6};function V6(){var r=Yr.f(),a=Gu();return r||a}function G6(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 Z6(r){Yr.D(r),n_("dns-prefetch",r,null)}function Y6(r,a){Yr.C(r,a),n_("preconnect",r,a)}function q6(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(Xl(p))||a==="script"&&u.querySelector(es(p))||(a=u.createElement("link"),tn(a,"link",r),Kt(a),u.head.appendChild(a)))}}function K6(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(es(p)))return}u=l.createElement("link"),tn(u,"link",r),Kt(u),l.head.appendChild(u)}}}function W6(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 D={loading:0,preload:null};if(_=u.querySelector(Xl(p)))D.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":a},l),(l=er.get(p))&&lp(r,l);var k=_=u.createElement("link");Kt(k),tn(k,"link",r),k._p=new Promise(function(K,ae){k.onload=K,k.onerror=ae}),k.addEventListener("load",function(){D.loading|=1}),k.addEventListener("error",function(){D.loading|=2}),D.loading|=4,tc(_,a,u)}_={type:"stylesheet",instance:_,count:1,state:D},f.set(p,_)}}}function Q6(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(es(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 J6(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(es(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(Xl(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||X6(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 Xl(r){return'link[rel="stylesheet"]['+r+"]"}function a_(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function X6(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 es(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(Xl(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(D,k){_.onload=D,_.onerror=k}),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(es(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 D=u[_];if(D.dataset.precedence===a)p=D;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[yl]||p[Qt]||r==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var _=p.getAttribute(a)||"";_=r+_;var D=u.get(_);D?D.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 eA(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 tA(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(Xl(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(D,k){_.onload=D,_.onerror=k}),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 nA(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*L6());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(rA,r),ac=null,rc.call(r))}function rA(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 ts={$$typeof:A,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function aA(r,a,l,u,f,p,_,D,k){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=k,this.incompleteTransitions=new Map}function u_(r,a,l,u,f,p,_,D,k,K,ae,ce){return r=new aA(r,a,l,_,k,K,ae,ce,D),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),Ol(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 iA(r,a,l,u){var f=O.T;O.T=null;var p=B.p;try{B.p=2,dp(r,a,l,u)}finally{B.p=p,O.T=f}}function oA(r,a,l,u){var f=O.T;O.T=null;var p=B.p;try{B.p=8,dp(r,a,l,u)}finally{B.p=p,O.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(sA(f,r,a,l,u))u.stopPropagation();else if(y_(r,u),a&4&&-1<lA.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 D=p;for(D.pendingLanes|=2,D.entangledLanes|=2;_;){var k=1<<31-Ye(_);D.entanglements[1]|=k,_&=~k}Sr(p),(lt&6)===0&&(Hu=oe()+500,Kl(0))}}break;case 31:case 13:D=si(p,2),D!==null&&Sn(D,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(De()){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,ns=new Map,rs=new Map,Ra=[],lA="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":ns.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":rs.delete(a.pointerId)}}function as(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 sA(r,a,l,u,f){switch(a){case"focusin":return Ta=as(Ta,r,a,l,u,f),!0;case"dragenter":return Na=as(Na,r,a,l,u,f),!0;case"mouseover":return Ma=as(Ma,r,a,l,u,f),!0;case"pointerover":var p=f.pointerId;return ns.set(p,as(ns.get(p)||null,r,a,l,u,f)),!0;case"gotpointercapture":return p=f.pointerId,rs.set(p,as(rs.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 uA(){pp=!1,Ta!==null&&sc(Ta)&&(Ta=null),Na!==null&&sc(Na)&&(Na=null),Ma!==null&&sc(Ma)&&(Ma=null),ns.forEach(b_),rs.forEach(b_)}function uc(r,a){r.blockedOn===a&&(r.blockedOn=null,pp||(pp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,uA)))}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(k){return uc(k,r)}Ta!==null&&uc(Ta,r),Na!==null&&uc(Na,r),Ma!==null&&uc(Ma,r),ns.forEach(a),rs.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 D=null;if(p&&p.hasAttribute("formAction")){if(f=p,_=p[yn]||null)D=_.formAction;else if(mp(f)!==null)continue}else D=_.action;typeof D=="function"?l[u+1]=D:(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 cA={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:O,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(cA),rt=fc}catch{}}return os.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)},os.hydrateRoot=function(r,a,l){if(!o(r))throw Error(i(299));var u=!1,f="",p=wb,_=Tb,D=Nb,k=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&&(D=l.onRecoverableError),l.formState!==void 0&&(k=l.formState)),a=u_(r,1,!0,a,l??null,u,f,k,p,_,D,__),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)},os.version="19.2.7",os}var M_;function vA(){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=bA(),bp.exports}var _A=vA();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__,EA="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 SA(){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](`${EA}[${n}]:`,...i)})}}):yh.forEach(n=>{t[n]=()=>{}}),t}const je=Td("logger",SA),uE=50,Ni="?",R_=/\(error: (.*)\)/,O_=/captureMessage|captureException/;function cE(...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>=uE+o)break}}return DA(s.slice(o))}}function $A(e){return Array.isArray(e)?cE(...e):e}function DA(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.
|
|
51
51
|
Type: ${e}
|
|
52
52
|
Name: ${Wa(i)}
|
|
53
|
-
Error:`,o)}}let $p=null;function DA(e){const t="error";Gi(t,e),Zi(t,xA)}function xA(){$p=st.onerror,st.onerror=function(e,t,n,i,o){return yr("error",{column:i,error:o,line:n,msg:e,url:t}),$p?$p.apply(this,arguments):!1},st.onerror.__SENTRY_INSTRUMENTED__=!0}let Dp=null;function CA(e){const t="unhandledrejection";Gi(t,e),Zi(t,AA)}function AA(){Dp=st.onunhandledrejection,st.onunhandledrejection=function(e){return yr("unhandledrejection",e),Dp?Dp.apply(this,arguments):!0},st.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Nd(){return D0(st),st}function D0(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ga,t[Ga]=t[Ga]||{}}const dE=Object.prototype.toString;function Md(e){switch(dE.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 dE.call(e)===`[object ${t}]`}function fE(e){return ul(e,"ErrorEvent")}function L_(e){return ul(e,"DOMError")}function wA(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 TA(e){return typeof Element<"u"&&Mi(e,Element)}function NA(e){return ul(e,"RegExp")}function Od(e){return!!(e&&e.then&&typeof e.then=="function")}function MA(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 mE(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const A0=st,RA=80;function pE(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||RA;for(;n&&s++<i&&(h=OA(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 OA(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 kA(){try{return A0.document.location.href}catch{return""}}function BA(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{mE(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function LA(e,t,n=!1){return aa(e)?NA(t)?t.test(e):aa(t)?n?e===t:e.includes(t):!1:!1}function kd(e,t=[],n=!1){return t.some(i=>LA(e,i,n))}function zn(e,t,n){if(!(t in e))return;const i=e[t],o=n(i);typeof o=="function"&&hE(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 hE(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 yE(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 TA(e)?pE(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 PA(e,t=40){const n=Object.keys(yE(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(IA(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 IA(e){if(!el(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const gE=1e3;function js(){return Date.now()/gE}function FA(){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())/gE}const ia=FA();(()=>{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 bE(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=bE(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=bE(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(jA(e))return!0;try{Ri(e,"__sentry_captured__",!0)}catch{}return!1}function jA(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 zA(e){const t=ia(),n={sid:lr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>HA(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 UA(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),nl(e,n)}function HA(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 VA=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:VA;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 GA(){return Td("defaultCurrentScope",()=>new Qa)}function ZA(){return Td("defaultIsolationScope",()=>new Qa)}class YA{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=D0(e);return t.stack=t.stack||new YA(GA(),ZA())}function qA(e){return rl().withScope(e)}function KA(e,t){const n=rl();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function V_(e){return rl().withScope(()=>e(rl().getIsolationScope()))}function WA(){return{withIsolationScope:V_,withScope:qA,withSetScope:KA,withSetIsolationScope:(e,t)=>V_(t),getCurrentScope:()=>rl().getScope(),getIsolationScope:()=>rl().getIsolationScope()}}function N0(e){const t=D0(e);return t.acs?t.acs:WA()}function wr(){const e=Nd();return N0(e).getCurrentScope()}function Yi(){const e=Nd();return N0(e).getIsolationScope()}function QA(){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 JA(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 XA="_sentryMetrics";function ew(e){const t=e[XA];if(!t)return;const n={};for(const[,[i,o]]of t)(n[i]||(n[i]=[])).push(ir(o));return n}const tw="sentry.source",nw="sentry.sample_rate",rw="sentry.op",aw="sentry.origin",iw=0,ow=1,lw="sentry-",sw=/^sentry-/;function uw(e){const t=cw(e);if(!t)return;const n=Object.entries(t).reduce((i,[o,s])=>{if(o.match(sw)){const c=o.slice(lw.length);i[c]=s}return i},{});if(Object.keys(n).length>0)return n}function cw(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 dw=1;let Z_=!1;function fw(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(pw(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(mw(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:yw(m),op:i[rw],origin:i[aw],_metrics_summary:ew(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function mw(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function pw(e){return typeof e.getSpanJSON=="function"}function hw(e){const{traceFlags:t}=e.spanContext();return t===dw}function yw(e){if(!(!e||e.code===iw))return e.code===ow?"ok":e.message||"unknown_error"}const gw="_sentryRootSpan";function vE(e){return e[gw]||e}function bw(){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 vw(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",_w="_frozenDsc";function _E(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 Ew(e,t){const n=t.getPropagationContext();return n.dsc||_E(n.traceId,e)}function Sw(e){const t=Yt();if(!t)return{};const n=vE(e),i=n[_w];if(i)return i;const o=n.spanContext().traceState,s=o&&o.get("sentry.dsc"),c=s&&uw(s);if(c)return c;const d=_E(e.spanContext().traceId,t),m=R0(n),h=m.data||{},y=h[nw];y!=null&&(d.sample_rate=`${y}`);const g=h[tw],E=m.description;return g!=="url"&&E&&(d.transaction=E),vw()&&(d.sampled=String(hw(n))),t.emit("createDsc",d,n),d}function $w(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 xw(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 Cw(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 EE({host:s,pass:o,path:m,projectId:h,port:c,protocol:n,publicKey:i})}function EE(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Aw(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+$/)?xw(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 SE(e){const t=typeof e=="string"?Cw(e):EE(e);if(!(!t||!Aw(t)))return t}function ww(){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 $E(e,t=3,n=100*1024){const i=Qr(e,t);return Rw(i)>n?$E(e,t-1,n):i}function Eh(e,t,n=1/0,i=1/0,o=ww()){const[s,c]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const d=Tw(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=yE(t);for(const S in E){if(!Object.prototype.hasOwnProperty.call(E,S))continue;if(g>=i){y[S]="[MaxProperties ~]";break}const $=E[S];y[S]=Eh(S,$,m-1,i,o),g++}return c(t),y}function Tw(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(mE(t))return"[VueViewModel]";if(MA(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=Nw(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Nw(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Mw(e){return~-encodeURI(e).split(/%..|./).length}function Rw(e){return Mw(JSON.stringify(e))}function Us(e,t=[]){return[e,t]}function Ow(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 kw(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(`
|
|
53
|
+
Error:`,o)}}let $p=null;function xA(e){const t="error";Gi(t,e),Zi(t,CA)}function CA(){$p=st.onerror,st.onerror=function(e,t,n,i,o){return yr("error",{column:i,error:o,line:n,msg:e,url:t}),$p?$p.apply(this,arguments):!1},st.onerror.__SENTRY_INSTRUMENTED__=!0}let Dp=null;function AA(e){const t="unhandledrejection";Gi(t,e),Zi(t,wA)}function wA(){Dp=st.onunhandledrejection,st.onunhandledrejection=function(e){return yr("unhandledrejection",e),Dp?Dp.apply(this,arguments):!0},st.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Nd(){return D0(st),st}function D0(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ga,t[Ga]=t[Ga]||{}}const dE=Object.prototype.toString;function Md(e){switch(dE.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 dE.call(e)===`[object ${t}]`}function fE(e){return sl(e,"ErrorEvent")}function L_(e){return sl(e,"DOMError")}function TA(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 Xo(e){return sl(e,"Object")}function Rd(e){return typeof Event<"u"&&Mi(e,Event)}function NA(e){return typeof Element<"u"&&Mi(e,Element)}function MA(e){return sl(e,"RegExp")}function Od(e){return!!(e&&e.then&&typeof e.then=="function")}function RA(e){return Xo(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Mi(e,t){try{return e instanceof t}catch{return!1}}function mE(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const A0=st,OA=80;function pE(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||OA;for(;n&&s++<i&&(h=kA(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 kA(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 BA(){try{return A0.document.location.href}catch{return""}}function LA(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{mE(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function PA(e,t,n=!1){return aa(e)?MA(t)?t.test(e):aa(t)?n?e===t:e.includes(t):!1:!1}function kd(e,t=[],n=!1){return t.some(i=>PA(e,i,n))}function zn(e,t,n){if(!(t in e))return;const i=e[t],o=n(i);typeof o=="function"&&hE(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 hE(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 yE(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 NA(e)?pE(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 IA(e,t=40){const n=Object.keys(yE(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(FA(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 FA(e){if(!Xo(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const gE=1e3;function js(){return Date.now()/gE}function jA(){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())/gE}const ia=jA();(()=>{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 bE(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=bE(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 el(e,t){const n=bE(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(zA(e))return!0;try{Ri(e,"__sentry_captured__",!0)}catch{}return!1}function zA(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 UA(e){const t=ia(),n={sid:lr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>VA(n)};return e&&tl(n,e),n}function tl(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 HA(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),tl(e,n)}function VA(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 GA=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&&tl(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()]:Xo(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:GA;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 ZA(){return Td("defaultCurrentScope",()=>new Qa)}function YA(){return Td("defaultIsolationScope",()=>new Qa)}class qA{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 nl(){const e=Nd(),t=D0(e);return t.stack=t.stack||new qA(ZA(),YA())}function KA(e){return nl().withScope(e)}function WA(e,t){const n=nl();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function V_(e){return nl().withScope(()=>e(nl().getIsolationScope()))}function QA(){return{withIsolationScope:V_,withScope:KA,withSetScope:WA,withSetIsolationScope:(e,t)=>V_(t),getCurrentScope:()=>nl().getScope(),getIsolationScope:()=>nl().getIsolationScope()}}function N0(e){const t=D0(e);return t.acs?t.acs:QA()}function wr(){const e=Nd();return N0(e).getCurrentScope()}function Yi(){const e=Nd();return N0(e).getIsolationScope()}function JA(){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 XA(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 ew="_sentryMetrics";function tw(e){const t=e[ew];if(!t)return;const n={};for(const[,[i,o]]of t)(n[i]||(n[i]=[])).push(ir(o));return n}const nw="sentry.source",rw="sentry.sample_rate",aw="sentry.op",iw="sentry.origin",ow=0,lw=1,sw="sentry-",uw=/^sentry-/;function cw(e){const t=dw(e);if(!t)return;const n=Object.entries(t).reduce((i,[o,s])=>{if(o.match(uw)){const c=o.slice(sw.length);i[c]=s}return i},{});if(Object.keys(n).length>0)return n}function dw(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 fw=1;let Z_=!1;function mw(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(hw(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(pw(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:gw(m),op:i[aw],origin:i[iw],_metrics_summary:tw(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function pw(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function hw(e){return typeof e.getSpanJSON=="function"}function yw(e){const{traceFlags:t}=e.spanContext();return t===fw}function gw(e){if(!(!e||e.code===ow))return e.code===lw?"ok":e.message||"unknown_error"}const bw="_sentryRootSpan";function vE(e){return e[bw]||e}function vw(){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 _w(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",Ew="_frozenDsc";function _E(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 Sw(e,t){const n=t.getPropagationContext();return n.dsc||_E(n.traceId,e)}function $w(e){const t=Yt();if(!t)return{};const n=vE(e),i=n[Ew];if(i)return i;const o=n.spanContext().traceState,s=o&&o.get("sentry.dsc"),c=s&&cw(s);if(c)return c;const d=_E(e.spanContext().traceId,t),m=R0(n),h=m.data||{},y=h[rw];y!=null&&(d.sample_rate=`${y}`);const g=h[nw],E=m.description;return g!=="url"&&E&&(d.transaction=E),_w()&&(d.sampled=String(yw(n))),t.emit("createDsc",d,n),d}function Dw(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 xw=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Cw(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 Aw(e){const t=xw.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 EE({host:s,pass:o,path:m,projectId:h,port:c,protocol:n,publicKey:i})}function EE(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ww(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+$/)?Cw(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 SE(e){const t=typeof e=="string"?Aw(e):EE(e);if(!(!t||!ww(t)))return t}function Tw(){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 $E(e,t=3,n=100*1024){const i=Qr(e,t);return Ow(i)>n?$E(e,t-1,n):i}function Eh(e,t,n=1/0,i=1/0,o=Tw()){const[s,c]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const d=Nw(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=yE(t);for(const S in E){if(!Object.prototype.hasOwnProperty.call(E,S))continue;if(g>=i){y[S]="[MaxProperties ~]";break}const $=E[S];y[S]=Eh(S,$,m-1,i,o),g++}return c(t),y}function Nw(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(mE(t))return"[VueViewModel]";if(RA(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=Mw(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Mw(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Rw(e){return~-encodeURI(e).split(/%..|./).length}function Ow(e){return Rw(JSON.stringify(e))}function Us(e,t=[]){return[e,t]}function kw(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 Bw(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:Bw(i)}function Bw(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 Lw(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 Pw={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 Pw[e]}function DE(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Iw(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 Fw(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 jw(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 zw(e,t,n,i){const o=DE(n),s=e.type&&e.type!=="replay_event"?e.type:"event";Fw(e,n&&n.sdk);const c=Iw(e,o,i,t);return delete e.sdkProcessingMetadata,Us(c,[[{type:s},e]])}function $h(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=>$h(e,m,n,i+1).then(o)).then(null,s):$h(e,d,n,i+1).then(o).then(null,s)}})}let pc,Q_,hc;function Uw(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 Hw(e,t){const{fingerprint:n,span:i,breadcrumbs:o,sdkProcessingMetadata:s}=t;Vw(e,t),i&&Yw(e,i),qw(e,n),Gw(e,o),Zw(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:$}=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),$&&(e.span=$),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 Vw(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 Gw(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Zw(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Yw(e,t){e.contexts={trace:fw(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Sw(t),...e.sdkProcessingMetadata};const n=vE(t),i=R0(n).description;i&&!e.transaction&&e.type==="transaction"&&(e.transaction=i)}function qw(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 Kw(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);Ww(m,e),Xw(m,h),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Qw(m,e.stackParser);const y=tT(i,n.captureContext);n.mechanism&&tl(m,n.mechanism);const g=o?o.getEventProcessors():[],E=QA().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),Hw(m,E);const $=[...g,...E.eventProcessors];return $h($,m,n).then(w=>(w&&Jw(w),typeof c=="number"&&c>0?eT(w,c,d):w))}function Ww(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 Qw(e,t){const n=Uw(t);try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(o=>{n&&o.filename&&(o.debug_id=n[o.filename])})})}catch{}}function Jw(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 Xw(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function eT(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 tT(e,t){if(!t)return e;const n=e?e.clone():new Qa;return n.update(t),n}function nT(e){if(e)return rT(e)?{captureContext:e}:iT(e)?{captureContext:e}:e}function rT(e){return e instanceof Qa||typeof e=="function"}const aT=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function iT(e){return Object.keys(e).some(t=>aT.includes(t))}function Ld(e,t){return wr().captureException(e,nT(t))}function xE(e,t){return wr().captureEvent(e,t)}function oT(e,t){Yi().setContext(e,t)}function lT(){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=zA({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"}),CE(),n.setSession(d),i.setSession(d),d}function CE(){const e=Yi(),t=wr(),n=t.getSession()||e.getSession();n&&UA(n),AE(),e.setSession(),t.setSession()}function AE(){const e=Yi(),t=wr(),n=Yt(),i=t.getSession()||e.getSession();i&&n&&n.captureSession(i)}function e4(e=!1){if(e){CE();return}AE()}const sT="7";function wE(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`${wE(e)}${e.projectId}/envelope/`}function cT(e,t){const n={sentry_version:sT};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function dT(e,t,n){return t||`${uT(e)}?${cT(e,n)}`}function fT(e,t){const n=SE(e);if(!n)return"";const i=`${wE(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 mT(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 pT(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=mT(i),s=o.findIndex(c=>c.name==="Debug");if(s>-1){const[c]=o.splice(s,1);o.push(c)}return o}function hT(e,t){const n={};return t.forEach(i=>{i&&TE(e,i,n)}),n}function n4(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function TE(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 yT(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 gT(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 bT{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=SE(t.dsn):bt&&je.warn("No DSN provided, client will not send events."),this._dsn){const o=dT(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];TE(this,t,this._integrations),n||n4(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let i=zw(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])i=Ow(i,Lw(s));const o=this.sendEnvelope(i);o&&o.then(s=>this.emit("afterSendEvent",t,s),null)}sendSession(t){const n=jw(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=hT(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),Kw(s,t,n,i,this,o).then(d=>{if(d===null)return d;d.contexts={trace:JA(i),...d.contexts};const m=Ew(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=ME(t),d=NE(t),m=t.type||"error",h=`before send for type \`${m}\``,y=typeof s>"u"?void 0:$w(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($=>{if($===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 $;const w=_T(this,o,$,n);return vT(w,h)}).then($=>{if($===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,$),c){const R=$.sdkProcessingMetadata&&$.sdkProcessingMetadata.spanCountBeforeProcessing||0,I=$.spans?$.spans.length:0,A=R-I;A>0&&this.recordDroppedEvent("before_send","span",A)}const w=$.transaction_info;if(c&&w&&$.transaction!==t.transaction){const R="custom";$.transaction_info={...w,source:R}}return this.sendEvent($,n),$}).then(null,$=>{throw $ instanceof hr?$:(this.captureException($,{data:{__sentry__:!0},originalException:$}),new hr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
56
|
-
Reason: ${$}`))})}_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=
|
|
57
|
-
Event: ${Pa(e)}`),!0):
|
|
58
|
-
Event: ${Pa(e)}`),!0):
|
|
59
|
-
Event: ${Pa(e)}`),!0):
|
|
60
|
-
Event: ${Pa(e)}`),!0):
|
|
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:Lw(i)}function Lw(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 Pw(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 Iw={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 Iw[e]}function DE(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Fw(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 jw(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 zw(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 Uw(e,t,n,i){const o=DE(n),s=e.type&&e.type!=="replay_event"?e.type:"event";jw(e,n&&n.sdk);const c=Fw(e,o,i,t);return delete e.sdkProcessingMetadata,Us(c,[[{type:s},e]])}function $h(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=>$h(e,m,n,i+1).then(o)).then(null,s):$h(e,d,n,i+1).then(o).then(null,s)}})}let pc,Q_,hc;function Hw(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 Vw(e,t){const{fingerprint:n,span:i,breadcrumbs:o,sdkProcessingMetadata:s}=t;Gw(e,t),i&&qw(e,i),Kw(e,n),Zw(e,o),Yw(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:$}=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),$&&(e.span=$),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 Gw(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 Zw(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Yw(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function qw(e,t){e.contexts={trace:mw(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:$w(t),...e.sdkProcessingMetadata};const n=vE(t),i=R0(n).description;i&&!e.transaction&&e.type==="transaction"&&(e.transaction=i)}function Kw(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 Ww(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);Qw(m,e),eT(m,h),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&Jw(m,e.stackParser);const y=nT(i,n.captureContext);n.mechanism&&el(m,n.mechanism);const g=o?o.getEventProcessors():[],E=JA().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),Vw(m,E);const $=[...g,...E.eventProcessors];return $h($,m,n).then(w=>(w&&Xw(w),typeof c=="number"&&c>0?tT(w,c,d):w))}function Qw(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 Jw(e,t){const n=Hw(t);try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(o=>{n&&o.filename&&(o.debug_id=n[o.filename])})})}catch{}}function Xw(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 eT(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function tT(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 nT(e,t){if(!t)return e;const n=e?e.clone():new Qa;return n.update(t),n}function rT(e){if(e)return aT(e)?{captureContext:e}:oT(e)?{captureContext:e}:e}function aT(e){return e instanceof Qa||typeof e=="function"}const iT=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function oT(e){return Object.keys(e).some(t=>iT.includes(t))}function Ld(e,t){return wr().captureException(e,rT(t))}function xE(e,t){return wr().captureEvent(e,t)}function lT(e,t){Yi().setContext(e,t)}function sT(){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=UA({release:o,environment:s,user:i.getUser()||n.getUser(),...c&&{userAgent:c},...e}),m=n.getSession();return m&&m.status==="ok"&&tl(m,{status:"exited"}),CE(),n.setSession(d),i.setSession(d),d}function CE(){const e=Yi(),t=wr(),n=t.getSession()||e.getSession();n&&HA(n),AE(),e.setSession(),t.setSession()}function AE(){const e=Yi(),t=wr(),n=Yt(),i=t.getSession()||e.getSession();i&&n&&n.captureSession(i)}function e4(e=!1){if(e){CE();return}AE()}const uT="7";function wE(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function cT(e){return`${wE(e)}${e.projectId}/envelope/`}function dT(e,t){const n={sentry_version:uT};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function fT(e,t,n){return t||`${cT(e)}?${dT(e,n)}`}function mT(e,t){const n=SE(e);if(!n)return"";const i=`${wE(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 pT(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 hT(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=pT(i),s=o.findIndex(c=>c.name==="Debug");if(s>-1){const[c]=o.splice(s,1);o.push(c)}return o}function yT(e,t){const n={};return t.forEach(i=>{i&&TE(e,i,n)}),n}function n4(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function TE(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 gT(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 bT(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 vT{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=SE(t.dsn):bt&&je.warn("No DSN provided, client will not send events."),this._dsn){const o=fT(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),tl(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];TE(this,t,this._integrations),n||n4(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let i=Uw(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])i=kw(i,Pw(s));const o=this.sendEnvelope(i);o&&o.then(s=>this.emit("afterSendEvent",t,s),null)}sendSession(t){const n=zw(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=yT(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)&&(tl(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),Ww(s,t,n,i,this,o).then(d=>{if(d===null)return d;d.contexts={trace:XA(i),...d.contexts};const m=Sw(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=ME(t),d=NE(t),m=t.type||"error",h=`before send for type \`${m}\``,y=typeof s>"u"?void 0:Dw(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($=>{if($===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 $;const w=ET(this,o,$,n);return _T(w,h)}).then($=>{if($===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,$),c){const R=$.sdkProcessingMetadata&&$.sdkProcessingMetadata.spanCountBeforeProcessing||0,I=$.spans?$.spans.length:0,A=R-I;A>0&&this.recordDroppedEvent("before_send","span",A)}const w=$.transaction_info;if(c&&w&&$.transaction!==t.transaction){const R="custom";$.transaction_info={...w,source:R}}return this.sendEvent($,n),$}).then(null,$=>{throw $ instanceof hr?$:(this.captureException($,{data:{__sentry__:!0},originalException:$}),new hr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
56
|
+
Reason: ${$}`))})}_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=bT(t,this._options.tunnel&&zs(this._dsn));this.sendEnvelope(n)}}function _T(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Od(e))return e.then(i=>{if(!Xo(i)&&i!==null)throw new hr(n);return i},i=>{throw new hr(`${t} rejected with ${i}`)});if(!Xo(e)&&e!==null)throw new hr(n);return e}function ET(e,t,n,i){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:c}=t;if(NE(n)&&o)return o(n,i);if(ME(n)){if(n.spans&&c){const d=[];for(const m of n.spans){const h=c(m);h?d.push(h):(vw(),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 NE(e){return e.type===void 0}function ME(e){return e.type==="transaction"}function ST(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 $T(i),i.init(),i}function $T(e){wr().setClient(e)}function DT(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 xT=60*1e3;function CT(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const i=Date.parse(`${e}`);return isNaN(i)?xT:i-t}function AT(e,t){return e[t]||e.all||0}function wT(e,t,n=Date.now()){return AT(e,t)>n}function TT(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+CT(c,i):t===429&&(o.all=i+60*1e3);return o}const NT=64;function MT(e,t,n=DT(e.bufferSize||NT)){let i={};const o=c=>n.drain(c);function s(c){const d=[];if(K_(c,(g,E)=>{const S=W_(E);if(wT(i,S)){const $=a4(g,E);e.recordDroppedEvent("ratelimit_backoff",S,$)}else d.push(g)}),d.length===0)return Oi({});const m=Us(c[0],d),h=g=>{K_(m,(E,S)=>{const $=a4(E,S);e.recordDroppedEvent(g,W_(S),$)})},y=()=>t({body:Bw(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=TT(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 RE(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 RT=100;function ki(e,t){const n=Yt(),i=Yi();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=RT}=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 OT="FunctionToString",o4=new WeakMap,kT=(()=>({name:OT,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)}})),BT=kT,LT=[/^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$/],PT="InboundFilters",IT=((e={})=>({name:PT,processEvent(t,n,i){const o=i.getOptions(),s=jT(e,o);return zT(t,s)?null:t}})),FT=IT;function jT(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:LT],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function zT(e,t){return t.ignoreInternal&&YT(e)?(bt&&je.warn(`Event dropped due to being internal Sentry Error.
|
|
57
|
+
Event: ${Pa(e)}`),!0):UT(e,t.ignoreErrors)?(bt&&je.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
58
|
+
Event: ${Pa(e)}`),!0):KT(e)?(bt&&je.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
59
|
+
Event: ${Pa(e)}`),!0):HT(e,t.ignoreTransactions)?(bt&&je.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
60
|
+
Event: ${Pa(e)}`),!0):VT(e,t.denyUrls)?(bt&&je.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
61
61
|
Event: ${Pa(e)}.
|
|
62
|
-
Url: ${nd(e)}`),!0):
|
|
62
|
+
Url: ${nd(e)}`),!0):GT(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 zT(e,t){return e.type||!t||!t.length?!1:GT(e).some(n=>kd(n,t))}function UT(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?kd(n,t):!1}function HT(e,t){if(!t||!t.length)return!1;const n=nd(e);return n?kd(n,t):!1}function VT(e,t){if(!t||!t.length)return!0;const n=nd(e);return n?kd(n,t):!0}function GT(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 ZT(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function YT(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?YT(t):null}catch{return bt&&je.error(`Cannot extract url for event ${Pa(e)}`),null}}function qT(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 KT(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=WT(Dh(e,t,o,c.originalException,i,s.exception.values,d,0),n))}function Dh(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=Dh(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=Dh(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 WT(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 QT(e){const t="console";Gi(t,e),Zi(t,JT)}function JT(){"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 XT(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const e9="Dedupe",t9=(()=>{let e;return{name:e9,processEvent(t){if(t.type)return t;try{if(r9(t,e))return bt&&je.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),n9=t9;function r9(e,t){return t?!!(a9(e,t)||i9(e,t)):!1}function a9(e,t){const n=e.message,i=t.message;return!(!n&&!i||n&&!i||!n&&i||n!==i||!kE(e,t)||!OE(e,t))}function i9(e,t){const n=u4(t),i=u4(e);return!(!n||!i||n.type!==i.type||n.value!==i.value||!kE(e,t)||!OE(e,t))}function OE(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 kE(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 BE(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const xh=st;function LE(){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 o9(){if(typeof EdgeRuntime=="string")return!0;if(!LE())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 l9(e,t){const n="fetch";Gi(n,e),Zi(n,()=>s9(void 0,t))}function s9(e,t=!1){t&&!o9()||zn(st,"fetch",function(n){return function(...i){const o=new Error,{method:s,url:c}=u9(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 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 c9(){return"npm"}const gc=st;function d9(){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 PE(){return wh>0}function f9(){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 f9(),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{}hE(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:g9(t),value:b9(t)};return n.length&&(i.stacktrace={frames:n}),i.type===void 0&&i.value===""&&(i.value="Unrecoverable error caught"),i}function m9(e,t,n,i){const o=Yt(),s=o&&o.getOptions().normalizeDepth,c=$9(t),d={__serialized__:$E(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:E9(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=h9(t),o=y9(t);try{return e(n,i,o)}catch{}return[]}const p9=/Minified React error #\d+;/i;function h9(e){return e&&p9.test(e.message)?1:0}function y9(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function IE(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function g9(e){const t=e&&e.name;return!t&&IE(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function b9(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:IE(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function v9(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 _9(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(fE(t)&&t.error)return Cp(e,t.error);if(L_(t)||wA(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=m9(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 E9(e,{isUnhandledRejection:t}){const n=PA(e),i=t?"promise rejection":"exception";return fE(e)?`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``:Rd(e)?`Event \`${S9(e)}\` (type=${e.type}) captured as ${i}`:`Object captured as ${i} with keys: ${n}`}function S9(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function $9(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=x9(e);return Us(o,[s])}function x9(e){return[{type:"user_report"},e]}class C9 extends bT{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},i=Ke.SENTRY_SDK_SOURCE||c9();RE(n,"browser",["browser"],i),super(n),n.sendClientReports&&Ke.document&&Ke.document.addEventListener("visibilitychange",()=>{Ke.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return v9(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",i){return _9(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 A9=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,fn=st,w9=1e3;let d4,Nh,Mh;function T9(e){Gi("dom",e),Zi("dom",N9)}function N9(){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 M9(e){if(e.type!==Nh)return!1;try{if(!e.target||e.target._sentryId!==Mh)return!1}catch{}return!0}function R9(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=O9(n);if(R9(n.type,i))return;Ri(n,"_sentryCaptured",!0),i&&!i._sentryId&&Ri(i,"_sentryId",lr());const o=n.type==="keypress"?"input":n.type;M9(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},w9)}}function O9(e){try{return e.target}catch{return null}}let bc;function FE(e){const t="history";Gi(t,e),Zi(t,k9)}function k9(){if(!d9())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 B9(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){A9&&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 L9(e){Gi("xhr",e),Zi("xhr",P9)}function P9(){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=I9(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,$=y[hs];return $&&aa(E)&&aa(S)&&($.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 I9(e){if(aa(e))return e;try{return e.toString()}catch{}}function F9(e,t=B9("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 NT(e,o)}const j9=30,z9=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 U9=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,H9=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,V9=/\((\S*)(?::(\d+))(?::(\d+))\)/,G9=e=>{const t=U9.exec(e);if(t){const[,i,o,s]=t;return Rh(i,Ni,+o,+s)}const n=H9.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=V9.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[o,s]=jE(n[1]||Ni,n[2]);return Rh(s,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},Z9=[j9,G9],Y9=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,q9=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,K9=e=>{const t=Y9.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=q9.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]=jE(o,i),Rh(i,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},W9=[z9,K9],Q9=[Z9,W9],J9=cE(...Q9),jE=(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,X9="Breadcrumbs",e7=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:X9,setup(n){t.console&&QT(a7(n)),t.dom&&T9(r7(n,t.dom)),t.xhr&&L9(i7(n)),t.fetch&&l9(o7(n)),t.history&&FE(l7(n)),t.sentry&&n.on("beforeSendEvent",n7(n))}}}),t7=e7;function n7(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 r7(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=s7(h)?h.target:h;o=pE(y,{keyAttrs:c,maxStringLength:d}),s=BA(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 a7(e){return function(n){if(Yt()!==e)return;const i={category:"console",data:{arguments:n.args,logger:"console"},level:XT(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 i7(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=BE(m);ki({category:"xhr",data:y,type:"http",level:E},g)}}function o7(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=BE(c.status_code);ki({category:"fetch",data:c,type:"http",level:m},d)}}}function l7(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 s7(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"],c7="BrowserApiErrors",d7=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:c7,setupOnce(){t.setTimeout&&zn(Ke,"setTimeout",p4),t.setInterval&&zn(Ke,"setInterval",p4),t.requestAnimationFrame&&zn(Ke,"requestAnimationFrame",m7),t.XMLHttpRequest&&"XMLHttpRequest"in Ke&&zn(XMLHttpRequest.prototype,"send",p7);const n=t.eventTarget;n&&(Array.isArray(n)?n:u7).forEach(h7)}}}),f7=d7;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 m7(e){return function(t){return e.apply(this,[al(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Wa(e)},handled:!1,type:"instrument"}})])}}function p7(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 h7(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{y7(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 y7(e){return typeof e.handleEvent=="function"}const g7=()=>({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(),FE(({from:e,to:t})=>{e!==void 0&&e!==t&&(X_({ignoreDuration:!0}),e4())})}}),b7="GlobalHandlers",v7=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:b7,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(E7(n),h4("onerror")),t.onunhandledrejection&&(S7(n),h4("onunhandledrejection"))}}}),_7=v7;function E7(e){DA(t=>{const{stackParser:n,attachStacktrace:i}=zE();if(Yt()!==e||PE())return;const{msg:o,url:s,line:c,column:d,error:m}=t,h=x7(L0(n,m||o,void 0,i,!1),s,c,d);h.level="error",xE(h,{originalException:m,mechanism:{handled:!1,type:"onerror"}})})}function S7(e){CA(t=>{const{stackParser:n,attachStacktrace:i}=zE();if(Yt()!==e||PE())return;const o=$7(t),s=C0(o)?D7(o):L0(n,o,void 0,i,!0);s.level="error",xE(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function $7(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 x7(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:kA();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 zE(){const e=Yt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const C7=()=>({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}}),A7="cause",w7=5,T7="LinkedErrors",N7=((e={})=>{const t=e.limit||w7,n=e.key||A7;return{name:T7,preprocessEvent(i,o,s){const c=s.getOptions();KT(k0,c.stackParser,c.maxValueLength,n,t,i,o)}}}),M7=N7;function R7(e){const t=[IT(),kT(),f7(),t7(),_7(),M7(),n9(),C7()];return e.autoSessionTracking!==!1&&t.push(g7()),t}function O7(e={}){const t={defaultIntegrations:R7(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 k7(){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 B7(e={}){const t=O7(e);if(!t.skipBrowserExtensionCheck&&k7()){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&&(LE()||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:SA(t.stackParser||J9),integrations:pT(t),transport:t.transport||F9};return ET(C9,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=lT();d&&(e.eventId=d)}const o=Ke.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=fT(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 L7={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 P7(e,t){const n=L7[e],i=g4.Sentry=g4.Sentry||{},o=i[e];if(typeof o=="function"&&!("_isShim"in o))return o;const s=I7(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 I7(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 F7(e){const t={...e};return RE(t,"react"),oT("react",{version:b.version}),B7(t)}function j7(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function z7(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 U7(e,{componentStack:t},n){if(j7(b.version)&&Md(e)&&t){const i=new Error(e.message);i.name=`React ErrorBoundary ${e.name}`,i.stack=t,z7(e,i)}return Ld(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}var Ap={exports:{}},ut={};/** @license React v16.13.1
|
|
64
|
+
Url: ${nd(e)}`),!0)}function UT(e,t){return e.type||!t||!t.length?!1:ZT(e).some(n=>kd(n,t))}function HT(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?kd(n,t):!1}function VT(e,t){if(!t||!t.length)return!1;const n=nd(e);return n?kd(n,t):!1}function GT(e,t){if(!t||!t.length)return!0;const n=nd(e);return n?kd(n,t):!0}function ZT(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 YT(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function qT(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?qT(t):null}catch{return bt&&je.error(`Cannot extract url for event ${Pa(e)}`),null}}function KT(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 WT(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=QT(Dh(e,t,o,c.originalException,i,s.exception.values,d,0),n))}function Dh(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=Dh(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=Dh(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 QT(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 JT(e){const t="console";Gi(t,e),Zi(t,XT)}function XT(){"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 e9(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const t9="Dedupe",n9=(()=>{let e;return{name:t9,processEvent(t){if(t.type)return t;try{if(a9(t,e))return bt&&je.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),r9=n9;function a9(e,t){return t?!!(i9(e,t)||o9(e,t)):!1}function i9(e,t){const n=e.message,i=t.message;return!(!n&&!i||n&&!i||!n&&i||n!==i||!kE(e,t)||!OE(e,t))}function o9(e,t){const n=u4(t),i=u4(e);return!(!n||!i||n.type!==i.type||n.value!==i.value||!kE(e,t)||!OE(e,t))}function OE(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 kE(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 BE(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const xh=st;function LE(){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 l9(){if(typeof EdgeRuntime=="string")return!0;if(!LE())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 s9(e,t){const n="fetch";Gi(n,e),Zi(n,()=>u9(void 0,t))}function u9(e,t=!1){t&&!l9()||zn(st,"fetch",function(n){return function(...i){const o=new Error,{method:s,url:c}=c9(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 c9(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 d9(){return"npm"}const gc=st;function f9(){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 PE(){return wh>0}function m9(){wh++,setTimeout(()=>{wh--})}function rl(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=>rl(c,t));return e.apply(this,s)}catch(s){throw m9(),M0(c=>{c.addEventProcessor(d=>(t.mechanism&&(bh(d,void 0),el(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{}hE(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:b9(t),value:v9(t)};return n.length&&(i.stacktrace={frames:n}),i.type===void 0&&i.value===""&&(i.value="Unrecoverable error caught"),i}function p9(e,t,n,i){const o=Yt(),s=o&&o.getOptions().normalizeDepth,c=D9(t),d={__serialized__:$E(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:S9(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=y9(t),o=g9(t);try{return e(n,i,o)}catch{}return[]}const h9=/Minified React error #\d+;/i;function y9(e){return e&&h9.test(e.message)?1:0}function g9(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function IE(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function b9(e){const t=e&&e.name;return!t&&IE(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function v9(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:IE(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function _9(e,t,n,i){const o=n&&n.syntheticException||void 0,s=L0(e,t,o,i);return el(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),Oi(s)}function E9(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(fE(t)&&t.error)return Cp(e,t.error);if(L_(t)||TA(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):Xo(t)||Rd(t)?(s=p9(e,t,n,o),el(s,{synthetic:!0}),s):(s=Th(e,t,n,i),bh(s,`${t}`),el(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}}]}),el(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 S9(e,{isUnhandledRejection:t}){const n=IA(e),i=t?"promise rejection":"exception";return fE(e)?`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``:Rd(e)?`Event \`${$9(e)}\` (type=${e.type}) captured as ${i}`:`Object captured as ${i} with keys: ${n}`}function $9(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function D9(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function x9(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=C9(e);return Us(o,[s])}function C9(e){return[{type:"user_report"},e]}class A9 extends vT{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},i=Ke.SENTRY_SDK_SOURCE||d9();RE(n,"browser",["browser"],i),super(n),n.sendClientReports&&Ke.document&&Ke.document.addEventListener("visibilitychange",()=>{Ke.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return _9(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",i){return E9(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=x9(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 w9=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,fn=st,T9=1e3;let d4,Nh,Mh;function N9(e){Gi("dom",e),Zi("dom",M9)}function M9(){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 R9(e){if(e.type!==Nh)return!1;try{if(!e.target||e.target._sentryId!==Mh)return!1}catch{}return!0}function O9(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=k9(n);if(O9(n.type,i))return;Ri(n,"_sentryCaptured",!0),i&&!i._sentryId&&Ri(i,"_sentryId",lr());const o=n.type==="keypress"?"input":n.type;R9(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},T9)}}function k9(e){try{return e.target}catch{return null}}let bc;function FE(e){const t="history";Gi(t,e),Zi(t,B9)}function B9(){if(!f9())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 L9(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){w9&&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 ps="__sentry_xhr_v3__";function P9(e){Gi("xhr",e),Zi("xhr",I9)}function I9(){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=F9(i[1]);if(!c||!d)return t.apply(n,i);n[ps]={method:c,url:d,request_headers:{}},c==="POST"&&d.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const m=()=>{const h=n[ps];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,$=y[ps];return $&&aa(E)&&aa(S)&&($.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[ps];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 F9(e){if(aa(e))return e;try{return e.toString()}catch{}}function j9(e,t=L9("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 MT(e,o)}const z9=30,U9=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 H9=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,V9=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,G9=/\((\S*)(?::(\d+))(?::(\d+))\)/,Z9=e=>{const t=H9.exec(e);if(t){const[,i,o,s]=t;return Rh(i,Ni,+o,+s)}const n=V9.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=G9.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[o,s]=jE(n[1]||Ni,n[2]);return Rh(s,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},Y9=[z9,Z9],q9=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,K9=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,W9=e=>{const t=q9.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=K9.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]=jE(o,i),Rh(i,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Q9=[U9,W9],J9=[Y9,Q9],X9=cE(...J9),jE=(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,e7="Breadcrumbs",t7=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:e7,setup(n){t.console&&JT(i7(n)),t.dom&&N9(a7(n,t.dom)),t.xhr&&P9(o7(n)),t.fetch&&s9(l7(n)),t.history&&FE(s7(n)),t.sentry&&n.on("beforeSendEvent",r7(n))}}}),n7=t7;function r7(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 a7(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=u7(h)?h.target:h;o=pE(y,{keyAttrs:c,maxStringLength:d}),s=LA(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 i7(e){return function(n){if(Yt()!==e)return;const i={category:"console",data:{arguments:n.args,logger:"console"},level:e9(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 o7(e){return function(n){if(Yt()!==e)return;const{startTimestamp:i,endTimestamp:o}=n,s=n.xhr[ps];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=BE(m);ki({category:"xhr",data:y,type:"http",level:E},g)}}function l7(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=BE(c.status_code);ki({category:"fetch",data:c,type:"http",level:m},d)}}}function s7(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 u7(e){return!!e&&!!e.target}const c7=["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"],d7="BrowserApiErrors",f7=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:d7,setupOnce(){t.setTimeout&&zn(Ke,"setTimeout",p4),t.setInterval&&zn(Ke,"setInterval",p4),t.requestAnimationFrame&&zn(Ke,"requestAnimationFrame",p7),t.XMLHttpRequest&&"XMLHttpRequest"in Ke&&zn(XMLHttpRequest.prototype,"send",h7);const n=t.eventTarget;n&&(Array.isArray(n)?n:c7).forEach(y7)}}}),m7=f7;function p4(e){return function(...t){const n=t[0];return t[0]=rl(n,{mechanism:{data:{function:Wa(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function p7(e){return function(t){return e.apply(this,[rl(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Wa(e)},handled:!1,type:"instrument"}})])}}function h7(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)),rl(s,c)})}),e.apply(this,t)}}function y7(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{g7(c)&&(c.handleEvent=rl(c.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Wa(c),target:e},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[s,rl(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 g7(e){return typeof e.handleEvent=="function"}const b7=()=>({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(),FE(({from:e,to:t})=>{e!==void 0&&e!==t&&(X_({ignoreDuration:!0}),e4())})}}),v7="GlobalHandlers",_7=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:v7,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(S7(n),h4("onerror")),t.onunhandledrejection&&($7(n),h4("onunhandledrejection"))}}}),E7=_7;function S7(e){xA(t=>{const{stackParser:n,attachStacktrace:i}=zE();if(Yt()!==e||PE())return;const{msg:o,url:s,line:c,column:d,error:m}=t,h=C7(L0(n,m||o,void 0,i,!1),s,c,d);h.level="error",xE(h,{originalException:m,mechanism:{handled:!1,type:"onerror"}})})}function $7(e){AA(t=>{const{stackParser:n,attachStacktrace:i}=zE();if(Yt()!==e||PE())return;const o=D7(t),s=C0(o)?x7(o):L0(n,o,void 0,i,!0);s.level="error",xE(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function D7(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 x7(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function C7(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:BA();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 zE(){const e=Yt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const A7=()=>({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}}),w7="cause",T7=5,N7="LinkedErrors",M7=((e={})=>{const t=e.limit||T7,n=e.key||w7;return{name:N7,preprocessEvent(i,o,s){const c=s.getOptions();WT(k0,c.stackParser,c.maxValueLength,n,t,i,o)}}}),R7=M7;function O7(e){const t=[FT(),BT(),m7(),n7(),E7(),R7(),r9(),A7()];return e.autoSessionTracking!==!1&&t.push(b7()),t}function k7(e={}){const t={defaultIntegrations:O7(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 B7(){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 L7(e={}){const t=k7(e);if(!t.skipBrowserExtensionCheck&&B7()){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&&(LE()||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:$A(t.stackParser||X9),integrations:hT(t),transport:t.transport||j9};return ST(A9,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=sT();d&&(e.eventId=d)}const o=Ke.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=mT(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 P7={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 I7(e,t){const n=P7[e],i=g4.Sentry=g4.Sentry||{},o=i[e];if(typeof o=="function"&&!("_isShim"in o))return o;const s=F7(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 F7(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 j7(e){const t={...e};return RE(t,"react"),lT("react",{version:b.version}),L7(t)}function z7(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function U7(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 H7(e,{componentStack:t},n){if(z7(b.version)&&Md(e)&&t){const i=new Error(e.message);i.name=`React ErrorBoundary ${e.name}`,i.stack=t,U7(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 H7(){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,$=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 $: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=$,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)===$},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===$||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 V7(){return v4||(v4=1,Ap.exports=H7()),Ap.exports}var wp,_4;function G7(){if(_4)return wp;_4=1;var e=V7(),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($){return e.isMemo($)?o:s[$.$$typeof]||t}var d=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,E=Object.prototype;function S($,x,w){if(typeof x!="string"){if(E){var R=g(x);R&&R!==E&&S($,R,w)}var I=m(x);h&&(I=I.concat(h(x)));for(var A=c($),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($,Z,V)}catch{}}}}return $}return wp=S,wp}G7();const Z7=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=U7(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&&Z7&&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 Y7({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(""),$=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:$,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 $4(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 q7({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($4(S))},[c]);const E=S=>{const $=S.target.value,x=S.target.selectionStart??0,w=$.replace(/\D/g,"").slice(0,9),R=$4(w);y(R);const I={...S,currentTarget:{...S.currentTarget,value:R},target:{...S.target,value:R}};d?.(I),setTimeout(()=>{if(g.current){const A=$.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 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:"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 UE({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 $=Mp(c);$.length===11&&$.startsWith("1")&&($=$.slice(1));const x=$.slice(0,10);y(Np(x))},[c]);const S=$=>{const x=$.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={...$,currentTarget:{...$.currentTarget,value:L},target:{...$.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 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:"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 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:"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 J7({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:()=>{},HE={prefix:String(Math.round(Math.random()*1e10)),current:0},VE=ve.createContext(HE),X7=ve.createContext(!1);let Rp=new WeakMap;function eN(e=!1){let t=b.useContext(VE),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 tN(e){let t=b.useContext(VE),n=eN(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`}function nN(e){let t=ve.useId(),[n]=b.useState(I0()),i=n?"react-aria":`react-aria${HE.prefix}`;return e||`${i}-${t}`}const rN=typeof ve.useId=="function"?nN:tN;function aN(){return!1}function iN(){return!0}function oN(e){return()=>{}}function I0(){return typeof ve.useSyncExternalStore=="function"?ve.useSyncExternalStore(oN,aN,iN):b.useContext(X7)}function lN(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 sN=!!(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=rN(t),s=b.useRef(null);if(ys&&ys.register(s,o),sN){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 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]=lN(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=D4(o,t);return n||=typeof s=="function",s});if(n)return()=>{i.forEach((o,s)=>{typeof o=="function"?o():D4(e[s],null)})}}}function D4(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function GE(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=GE(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function cN(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=GE(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]=cN(s,c):o==="id"&&s&&c?t.id=uN(s,c):o==="ref"&&s&&c?t.ref=F0(s,c):t[o]=c!==void 0?c:s}}return t}function ZE(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=ZE(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 dN(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 fN(e){const t=/^(data-.*)$/;let n={};for(const i in e)t.test(i)||(n[i]=e[i]);return n}function mN(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(mN.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 pN(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function hN(e){return pN(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let yN=!1;function Xr(){return yN}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:hN(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(gN())e.focus({preventScroll:!0});else{let t=bN(e);e.focus(),vN(t)}}let _c=null;function gN(){if(_c==null){_c=!1;try{document.createElement("div").focus({get preventScroll(){return _c=!0,!0}})}catch{}}return _c}function bN(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 vN(e){for(let{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}const _N=typeof Element<"u"&&"checkVisibility"in Element.prototype;function EN(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 SN(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 _N?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&EN(e)&&SN(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"],$N=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 YE(e,t){return e.matches($N)&&!qE(e)&&(t?.skipVisibilityCheck||z0(e))}function xN(e){return e.matches(DN)&&z0(e)&&!qE(e)}function qE(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 KE(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function WE(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 CN(e){for(;e&&!YE(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)}),AN=Ja(function(){return V0(/^iPhone/i)}),QE=Ja(function(){return V0(/^iPad/i)||il()&&navigator.maxTouchPoints>1}),Hs=Ja(function(){return AN()||QE()}),JE=Ja(function(){return Fd(/AppleWebKit/i)&&!XE()}),XE=Ja(function(){return Fd(/Chrome/i)}),G0=Ja(function(){return Fd(/Android/i)}),wN=Ja(function(){return Fd(/Firefox/i)});function eS(e){return e.pointerType===""&&e.isTrusted?!0:G0()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function TN(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;wN()&&window.event?.type?.startsWith("key")&&e.target==="_blank"&&(il()?i=!0:o=!0);let d=JE()&&il()&&!QE()?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 NN={Tab:!0,Escape:!0};function jd(e,t){for(let n of kh)n(e,t)}function MN(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&&MN(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 tS(e){!Li.isOpening&&eS(e)&&(Pi=!0,qi="virtual")}function nS(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 rS(){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",tS,!0),t.addEventListener("focus",nS,!0),t.addEventListener("blur",rS,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Yo,!0),n.addEventListener("pointermove",Yo,!0),n.addEventListener("pointerup",Yo,!0)),t.addEventListener("beforeunload",()=>{aS(e)},{once:!0}),Ss.set(t,{focus:i})}const aS=(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",tS,!0),n.removeEventListener("focus",nS,!0),n.removeEventListener("blur",rS,!1),typeof PointerEvent<"u"&&(i.removeEventListener("pointerdown",Yo,!0),i.removeEventListener("pointermove",Yo,!0),i.removeEventListener("pointerup",Yo,!0)),Ss.delete(n))};function RN(e){const t=nt(e);let n;return t.readyState!=="loading"?Lh(e):(n=()=>{Lh(e)},t.addEventListener("DOMContentLoaded",n)),()=>aS(e,n)}typeof document<"u"&&RN();function Ph(){return qi!=="pointer"}function zd(){return qi}function ON(e){qi=e,jd(e,null)}const kN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function BN(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&&!kN.has(y.type)||y instanceof d||y instanceof m&&y.isContentEditable,!(e&&t==="keyboard"&&n instanceof h&&!NN[n.key])}function LN(e,t,n){Lh(),b.useEffect(()=>{if(n?.enabled===!1)return;let i=(o,s)=>{BN(!!n?.isTextInput,o,s)&&e(Ph())};return kh.add(i),()=>{kh.delete(i)}},t)}const PN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Op(e){return e instanceof HTMLInputElement&&!PN.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const IN=ve.useInsertionEffect??ct;function Zt(e){const t=b.useRef(null);return IN(()=>{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 FN=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),jN=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function zN(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 FN.has(n.script)}let t=e.split("-")[0];return jN.has(t)}const iS=Symbol.for("react-aria.i18n.locale");function oS(){let e=typeof window<"u"&&window[iS]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:zN(e)?"rtl":"ltr"}}let Ih=oS(),gs=new Set;function C4(){Ih=oS();for(let e of gs)e(Ih)}function UN(){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[iS]||"en-US",direction:"ltr"}:t}const HN=ve.createContext(null);function sn(){let e=UN();return b.useContext(HN)||e}const VN=Symbol.for("react-aria.i18n.locale"),GN=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=ZN(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[VN];if(Ec===void 0){let o=window[GN];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 ZN(e,t,n="en-US"){if(t[e])return t[e];let i=YN(e);if(t[i])return t[i];for(let o in t)if(o.startsWith(i+"-"))return t[o];return t[n]}function YN(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const A4=new Map,w4=new Map;class lS{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 qN(e){let t=T4.get(e);return t||(t=new Ki(e),T4.set(e,t)),t}function sS(e,t){return t&&Ki.getGlobalDictionaryForPackage(t)||qN(e)}function Xa(e,t){let{locale:n}=sn(),i=sS(e,t);return b.useMemo(()=>new lS(n,i),[n,i])}const KN=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;KN(()=>{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 WN(){for(const[e]of za)"isConnected"in e&&!e.isConnected&&za.delete(e)}function uS(e){requestAnimationFrame(()=>{WN(),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);uS(()=>{const i=St(t);(i===n||i===t.body)&&e.isConnected&&Bi(e)})}else Bi(e)}function cS(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=WE(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 QN(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:M4(e.onKeyDown),onKeyUp:M4(e.onKeyUp)}}}function dS(e,t){ct(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let JN=ve.createContext(null);function XN(e){let t=b.useContext(JN)||{};dS(t,e);let{ref:n,...i}=t;return i}function e8(e,t){let{focusProps:n}=cS(e),{keyboardProps:i}=QN(e),o=pt(n,i),s=XN(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 fS=b.createContext(!1);function mS(e){let t=(n,i)=>b.useContext(fS)?null:e(n,i);return t.displayName=e.displayName||e.name,b.forwardRef(t)}function t8(){return b.useContext(fS)}var pS=sE();const n8=lE(pS),r8=new Set(["id"]),a8=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),i8=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),o8=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"]),l8=/^(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)&&(r8.has(m)||n&&a8.has(m)||i&&i8.has(m)||o&&o8.has(m)||s&&(R4.has(m)||m.endsWith("Capture")&&R4.has(m.slice(0,-7)))||c?.has(m)||l8.test(m))&&(d[m]=e[m]);return d}let Ho="default",jh="",zc=new WeakMap;function s8(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(()=>{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 hS(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 u8(e){let t=b.useContext(Z0);if(t){let{register:n,ref:i,...o}=t;e=pt(o,e),n()}return dS(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}=u8(e),[$,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 O=w.current;if(d||O.didFirePressStart)return!1;let B=!0;if(O.isTriggeringEvent=!0,i){let X=new Sc("pressstart",de,j);i(X),B=X.shouldStopPropagation}return n&&n(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,x(!0),B},[d,i,n]),L=b.useCallback((j,de,O=!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&&O&&!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 O=w.current;if(d)return!1;if(s){O.isTriggeringEvent=!0;let B=new Sc("pressup",de,j);return s(B),O.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 O of de.disposables)O();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 O=new MouseEvent("click",j);KE(O,de),c(H0(O))}},[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,O),!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"||eS(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()}}},O=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(TN(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||s8(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=CN(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 O=hS(j);O&&(de.nonce=O),de.textContent=`
|
|
71
|
+
*/var b4;function V7(){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,$=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 $: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=$,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)===$},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===$||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 G7(){return v4||(v4=1,Ap.exports=V7()),Ap.exports}var wp,_4;function Z7(){if(_4)return wp;_4=1;var e=G7(),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($){return e.isMemo($)?o:s[$.$$typeof]||t}var d=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,E=Object.prototype;function S($,x,w){if(typeof x!="string"){if(E){var R=g(x);R&&R!==E&&S($,R,w)}var I=m(x);h&&(I=I.concat(h(x)));for(var A=c($),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($,Z,V)}catch{}}}}return $}return wp=S,wp}Z7();const Y7=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=H7(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&&Y7&&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 q7({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(""),$=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:$,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 $4(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 K7({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($4(S))},[c]);const E=S=>{const $=S.target.value,x=S.target.selectionStart??0,w=$.replace(/\D/g,"").slice(0,9),R=$4(w);y(R);const I={...S,currentTarget:{...S.currentTarget,value:R},target:{...S.target,value:R}};d?.(I),setTimeout(()=>{if(g.current){const A=$.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 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:"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 UE({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 $=Mp(c);$.length===11&&$.startsWith("1")&&($=$.slice(1));const x=$.slice(0,10);y(Np(x))},[c]);const S=$=>{const x=$.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={...$,currentTarget:{...$.currentTarget,value:L},target:{...$.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 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:"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 J7({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 X7({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:()=>{},HE={prefix:String(Math.round(Math.random()*1e10)),current:0},VE=ve.createContext(HE),eN=ve.createContext(!1);let Rp=new WeakMap;function tN(e=!1){let t=b.useContext(VE),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 nN(e){let t=b.useContext(VE),n=tN(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`}function rN(e){let t=ve.useId(),[n]=b.useState(I0()),i=n?"react-aria":`react-aria${HE.prefix}`;return e||`${i}-${t}`}const aN=typeof ve.useId=="function"?rN:nN;function iN(){return!1}function oN(){return!0}function lN(e){return()=>{}}function I0(){return typeof ve.useSyncExternalStore=="function"?ve.useSyncExternalStore(lN,iN,oN):b.useContext(eN)}function sN(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 uN=!!(typeof window<"u"&&window.document&&window.document.createElement),Zo=new Map,hs;typeof FinalizationRegistry<"u"&&(hs=new FinalizationRegistry(e=>{Zo.delete(e)}));function Ar(e){let[t,n]=b.useState(e),i=b.useRef(null),o=aN(t),s=b.useRef(null);if(hs&&hs.register(s,o),uN){const c=Zo.get(o);c&&!c.includes(i)?c.push(i):Zo.set(o,[i])}return ct(()=>{let c=o;return()=>{hs&&hs.unregister(s),Zo.delete(c)}},[o]),b.useEffect(()=>{let c=i.current;return c&&n(c),()=>{c&&(i.current=null)}}),o}function cN(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]=sN(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=D4(o,t);return n||=typeof s=="function",s});if(n)return()=>{i.forEach((o,s)=>{typeof o=="function"?o():D4(e[s],null)})}}}function D4(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function GE(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=GE(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function dN(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=GE(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]=dN(s,c):o==="id"&&s&&c?t.id=cN(s,c):o==="ref"&&s&&c?t.ref=F0(s,c):t[o]=c!==void 0?c:s}}return t}function ZE(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=ZE(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 fN(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 mN(e){const t=/^(data-.*)$/;let n={};for(const i in e)t.test(i)||(n[i]=e[i]);return n}function pN(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(pN.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 hN(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function yN(e){return hN(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let gN=!1;function Xr(){return gN}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:yN(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(bN())e.focus({preventScroll:!0});else{let t=vN(e);e.focus(),_N(t)}}let _c=null;function bN(){if(_c==null){_c=!1;try{document.createElement("div").focus({get preventScroll(){return _c=!0,!0}})}catch{}}return _c}function vN(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 _N(e){for(let{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}const EN=typeof Element<"u"&&"checkVisibility"in Element.prototype;function SN(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 $N(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 EN?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&SN(e)&&$N(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"],DN=U0.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";U0.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const xN=U0.join(':not([hidden]):not([tabindex="-1"]),');function YE(e,t){return e.matches(DN)&&!qE(e)&&(t?.skipVisibilityCheck||z0(e))}function CN(e){return e.matches(xN)&&z0(e)&&!qE(e)}function qE(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 KE(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function WE(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 AN(e){for(;e&&!YE(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 al=Ja(function(){return V0(/^Mac/i)}),wN=Ja(function(){return V0(/^iPhone/i)}),QE=Ja(function(){return V0(/^iPad/i)||al()&&navigator.maxTouchPoints>1}),Hs=Ja(function(){return wN()||QE()}),JE=Ja(function(){return Fd(/AppleWebKit/i)&&!XE()}),XE=Ja(function(){return Fd(/Chrome/i)}),G0=Ja(function(){return Fd(/Android/i)}),TN=Ja(function(){return Fd(/Firefox/i)});function eS(e){return e.pointerType===""&&e.isTrusted?!0:G0()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function NN(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;TN()&&window.event?.type?.startsWith("key")&&e.target==="_blank"&&(al()?i=!0:o=!0);let d=JE()&&al()&&!QE()?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 Es=new Map,Pi=!1,Bh=!1;const MN={Tab:!0,Escape:!0};function jd(e,t){for(let n of kh)n(e,t)}function RN(e){return!(e.metaKey||!al()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function od(e){Pi=!0,!Li.isOpening&&RN(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 tS(e){!Li.isOpening&&eS(e)&&(Pi=!0,qi="virtual")}function nS(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 rS(){id||(Pi=!1,Bh=!0)}function Lh(e){if(typeof window>"u"||typeof document>"u")return;const t=hn(e),n=nt(e);if(Es.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",tS,!0),t.addEventListener("focus",nS,!0),t.addEventListener("blur",rS,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Yo,!0),n.addEventListener("pointermove",Yo,!0),n.addEventListener("pointerup",Yo,!0)),t.addEventListener("beforeunload",()=>{aS(e)},{once:!0}),Es.set(t,{focus:i})}const aS=(e,t)=>{const n=hn(e),i=nt(e);t&&i.removeEventListener("DOMContentLoaded",t),Es.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Es.get(n).focus}),i.removeEventListener("keydown",od,!0),i.removeEventListener("keyup",od,!0),i.removeEventListener("click",tS,!0),n.removeEventListener("focus",nS,!0),n.removeEventListener("blur",rS,!1),typeof PointerEvent<"u"&&(i.removeEventListener("pointerdown",Yo,!0),i.removeEventListener("pointermove",Yo,!0),i.removeEventListener("pointerup",Yo,!0)),Es.delete(n))};function ON(e){const t=nt(e);let n;return t.readyState!=="loading"?Lh(e):(n=()=>{Lh(e)},t.addEventListener("DOMContentLoaded",n)),()=>aS(e,n)}typeof document<"u"&&ON();function Ph(){return qi!=="pointer"}function zd(){return qi}function kN(e){qi=e,jd(e,null)}const BN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function LN(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&&!BN.has(y.type)||y instanceof d||y instanceof m&&y.isContentEditable,!(e&&t==="keyboard"&&n instanceof h&&!MN[n.key])}function PN(e,t,n){Lh(),b.useEffect(()=>{if(n?.enabled===!1)return;let i=(o,s)=>{LN(!!n?.isTextInput,o,s)&&e(Ph())};return kh.add(i),()=>{kh.delete(i)}},t)}const IN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Op(e){return e instanceof HTMLInputElement&&!IN.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const FN=ve.useInsertionEffect??ct;function Zt(e){const t=b.useRef(null);return FN(()=>{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 jN=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),zN=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function UN(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 jN.has(n.script)}let t=e.split("-")[0];return zN.has(t)}const iS=Symbol.for("react-aria.i18n.locale");function oS(){let e=typeof window<"u"&&window[iS]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:UN(e)?"rtl":"ltr"}}let Ih=oS(),ys=new Set;function C4(){Ih=oS();for(let e of ys)e(Ih)}function HN(){let e=I0(),[t,n]=b.useState(Ih);return b.useEffect(()=>(ys.size===0&&window.addEventListener("languagechange",C4),ys.add(n),()=>{ys.delete(n),ys.size===0&&window.removeEventListener("languagechange",C4)}),[]),e?{locale:typeof window<"u"&&window[iS]||"en-US",direction:"ltr"}:t}const VN=ve.createContext(null);function sn(){let e=HN();return b.useContext(VN)||e}const GN=Symbol.for("react-aria.i18n.locale"),ZN=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=YN(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[GN];if(Ec===void 0){let o=window[ZN];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 YN(e,t,n="en-US"){if(t[e])return t[e];let i=qN(e);if(t[i])return t[i];for(let o in t)if(o.startsWith(i+"-"))return t[o];return t[n]}function qN(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const A4=new Map,w4=new Map;class lS{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 KN(e){let t=T4.get(e);return t||(t=new Ki(e),T4.set(e,t)),t}function sS(e,t){return t&&Ki.getGlobalDictionaryForPackage(t)||KN(e)}function Xa(e,t){let{locale:n}=sn(),i=sS(e,t);return b.useMemo(()=>new lS(n,i),[n,i])}const WN=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;WN(()=>{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 QN(){for(const[e]of za)"isConnected"in e&&!e.isConnected&&za.delete(e)}function uS(e){requestAnimationFrame(()=>{QN(),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);uS(()=>{const i=St(t);(i===n||i===t.body)&&e.isConnected&&Bi(e)})}else Bi(e)}function cS(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=WE(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 JN(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:M4(e.onKeyDown),onKeyUp:M4(e.onKeyUp)}}}function dS(e,t){ct(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let XN=ve.createContext(null);function e8(e){let t=b.useContext(XN)||{};dS(t,e);let{ref:n,...i}=t;return i}function t8(e,t){let{focusProps:n}=cS(e),{keyboardProps:i}=JN(e),o=pt(n,i),s=e8(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 fS=b.createContext(!1);function mS(e){let t=(n,i)=>b.useContext(fS)?null:e(n,i);return t.displayName=e.displayName||e.name,b.forwardRef(t)}function n8(){return b.useContext(fS)}var pS=sE();const r8=lE(pS),a8=new Set(["id"]),i8=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),o8=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),l8=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"]),s8=/^(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)&&(a8.has(m)||n&&i8.has(m)||i&&o8.has(m)||o&&l8.has(m)||s&&(R4.has(m)||m.endsWith("Capture")&&R4.has(m.slice(0,-7)))||c?.has(m)||s8.test(m))&&(d[m]=e[m]);return d}let Ho="default",jh="",zc=new WeakMap;function u8(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(()=>{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 hS(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 c8(e){let t=b.useContext(Z0);if(t){let{register:n,ref:i,...o}=t;e=pt(o,e),n()}return dS(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}=c8(e),[$,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 O=w.current;if(d||O.didFirePressStart)return!1;let B=!0;if(O.isTriggeringEvent=!0,i){let X=new Sc("pressstart",de,j);i(X),B=X.shouldStopPropagation}return n&&n(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,x(!0),B},[d,i,n]),L=b.useCallback((j,de,O=!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&&O&&!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 O=w.current;if(d)return!1;if(s){O.isTriggeringEvent=!0;let B=new Sc("pressup",de,j);return s(B),O.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 O of de.disposables)O();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 O=new MouseEvent("click",j);KE(O,de),c(H0(O))}},[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,O),!0),X&&B.stopPropagation(),B.metaKey&&al()&&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"||eS(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()}}},O=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(NN(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||u8(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=AN(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 O=hS(j);O&&(de.nonce=O),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||$,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&&!yS(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 c8(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?!yS(e,t):c8(e)}const d8=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function yS(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":d8.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=WE(m),y=b.useCallback(g=>{if(!ot(g.currentTarget,Pe(g)))return;let E=Pe(g);const S=nt(E),$=St(S);if(!s.current.isFocusWithin&&$===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});KE(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]);LN(S=>{o.current.isFocusVisible=S,h()},[n,s],{enabled:s,isTextInput:n});let{focusProps:g}=cS({isDisabled:i,onFocusChange:y}),{focusWithinProps:E}=Gs({isDisabled:!i,onFocusWithinChange:y});return{isFocused:s,isFocusVisible:d,focusProps:i?E:g}}let zh=!1,$c=0;function f8(){zh=!0,setTimeout(()=>{zh=!1},500)}function F4(e){e.pointerType==="touch"&&f8()}function m8(){let e=nt(null);if(!(typeof e>"u"))return $c===0&&typeof PointerEvent<"u"&&e.addEventListener("pointerup",F4),$c++,()=>{$c--,!($c>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(m8,[]);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))},$={};return typeof PointerEvent<"u"&&($.onPointerEnter=x=>{zh&&x.pointerType==="mouse"||E(x,x.pointerType)},$.onPointerLeave=x=>{!o&&ot(x.currentTarget,Pe(x))&&S(x,x.pointerType)}),{hoverProps:$,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 gS=b.createContext({});function p8(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 bS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Hh{constructor(t,n={}){this.numberFormatter=h8(t,n),this.options=n}format(t){let n="";if(!Uh&&this.options.signDisplay!=null?n=y8(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=bS[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 h8(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(!bS[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 y8(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 g8=new RegExp("^.*\\(.*\\).*$"),b8=["latn","arab","hanidec","deva","beng","fullwide"];class vS{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 b8)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 v8(e,t),j4.set(n,i)),i}class v8{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=_8(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 vS(this.locale,s).parse(new Hh(this.locale,s).format(o))}return this.options.currencySign==="accounting"&&g8.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 _8(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,$=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([...$,...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 E8=b.createContext(null),_S=7e3;let Ia=null;function Ts(e,t="assertive",n=_S){Ia?Ia.announce(e,t,n):(Ia=new $8,(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 S8(e){Ia&&Ia.clear(e)}class $8{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=_S){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:$,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"?$: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}=e8(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=mS(function(t,n){[t,n]=sa(t,n,Ys);let i=t,{isPending:o}=i,{buttonProps:s,isPressed:c}=D8(t,n);s=C8(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"}),$=Ar(s.id),x=Ar(),w=s["aria-labelledby"];o&&(w?w=`${w} ${x}`:s["aria-label"]&&(w=`${$} ${x}`));let R=b.useRef(o);b.useEffect(()=>{let A={"aria-labelledby":w||$};(!R.current&&m&&o||R.current&&m&&!o)&&Ts(A,"assertive"),R.current=o},[o,m,w,$]);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:$,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(E8.Provider,{value:{id:x}},S.children))}),x8=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function C8(e,t){if(t){for(const n in e)n.startsWith("on")&&!x8.test(n)&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const K0=b.createContext({}),A8=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 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} до ${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 $S={};$S={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 xS={};xS={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 CS={};CS={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 AS={};AS={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 wS={};wS={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 TS={};TS={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 NS={};NS={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 MS={};MS={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 RS={};RS={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 OS={};OS={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 kS={};kS={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 BS={};BS={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 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=>`${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 IS={};IS={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 FS={};FS={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 jS={};jS={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 zS={};zS={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 US={};US={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 HS={};HS={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 VS={};VS={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 GS={};GS={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 ZS={};ZS={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 YS={};YS={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 qS={};qS={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 KS={};KS={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 WS={};WS={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 QS={};QS={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 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 e$={};e$={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":ES,"bg-BG":SS,"cs-CZ":$S,"da-DK":DS,"de-DE":xS,"el-GR":CS,"en-US":AS,"es-ES":wS,"et-EE":TS,"fi-FI":NS,"fr-FR":MS,"he-IL":RS,"hr-HR":OS,"hu-HU":kS,"it-IT":BS,"ja-JP":LS,"ko-KR":PS,"lt-LT":IS,"lv-LV":FS,"nb-NO":jS,"nl-NL":zS,"pl-PL":US,"pt-BR":HS,"pt-PT":VS,"ro-RO":GS,"ru-RU":ZS,"sk-SK":YS,"sl-SI":qS,"sr-SP":KS,"sv-SE":WS,"tr-TR":QS,"uk-UA":JS,"zh-CN":XS,"zh-TW":e$};function t$(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 n$=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),n$-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 w8={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-n$,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),$=n-Ci(E,S,1,1),x=2;n<Ci(E,S,3,1)?x=0:Ha(S)&&(x=1);let w=Math.floor((($+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 w8[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 T8={"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 N8(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 M8(e,t){return t=Et(t,e.calendar),e=Gh(e),t=Gh(t),e.era===t.era&&e.year===t.year}function R8(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 r$(e,t){return Ct(e,J0(t))}const O8={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?O8[n]:P8(t),s=Math.ceil(i+1-o)%7;return s<0&&(s+=7),s}function a$(e){return ta(Date.now(),e)}function J0(e){return mn(a$(e))}function i$(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function o$(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,k8=!1;function Gd(){return jp==null&&(jp=new Intl.DateTimeFormat().resolvedOptions().timeZone),jp}function l$(){return k8}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 B8(e,t,n){return Ns(e,t,n).add({days:6})}const Z4=new Map,zp=new Map;function L8(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 P8(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=L8(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&&T8[n]||0};zp.set(e,t)}return t.firstDay}function I8(e,t,n){let i=e.calendar.getDaysInMonth(e);return Math.ceil((Q0(Ii(e),t,n)+i)/7)}function s$(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function u$(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 c$(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function c$(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()&&!l$())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:i,day:o,hour:s,minute:c,second:d}=d$(e,t);return c$(n,i,o,s,c,d,0)-Math.floor(e/1e3)*1e3}const Y4=new Map;function d$(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 F8(e,t,n,i){return(n===i?[n]:[n,i]).filter(s=>j8(e,t,s))}function j8(e,t,n){let i=d$(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"&&!l$()){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=F8(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 f$(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 z8(e,t,n){if(e instanceof Os)return e.timeZone===t?e:m$(e,t);let i=ea(e,t,n);return ta(i,t)}function U8(e){let t=ol(e)-e.offset;return new Date(t)}function m$(e,t){let n=ol(e)-e.offset;return Et(ta(n,t),e.calendar)}function H8(e){return m$(e,Gd())}const ss=36e5;function Zd(e,t){let n=e.copy(),i="hour"in n?g$(n,t):0;Yh(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,qh(n),p$(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=i,V8(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 V8(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 p$(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)),p$(e)}function X0(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function h$(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),y$(n),n}function G8(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Dc(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Dc(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Dc(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Dc(e.hour,24),t}function y$(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 Dc(e,t){let n=e%t;return n<0&&(n+=t),n}function g$(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,G8(e)}function b$(e,t){let n=e.copy();return g$(n,t),n}function Z8(e,t){return b$(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 v$(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 Y8(e,t){return v$(e,X0(t))}function q8(e,t,n,i){switch(t){case"hour":{let o=0,s=23;if(i?.hourCycle===12){let $=e.hour>=12;o=$?12:0,s=$?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($=>ta($,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($=>ta($,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 K8(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 W8=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,Q8=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,_$=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function E$(e){let t=e.match(W8);if(!t)throw _$.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 J8(e){let t=e.match(Q8);if(!t)throw _$.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 S$(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 $$(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 D$(e){return`${$$(e)}T${S$(e)}`}function X8(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 eM(e){return`${D$(e)}${X8(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 h$(this,t)}set(t){return ey(this,t)}cycle(t,n,i){return ty(this,t,n,i)}toDate(t){return f$(this,t)}toString(){return $$(this)}compare(t){return i$(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,y$(this)}copy(){return new ay(this.hour,this.minute,this.second,this.millisecond)}add(t){return b$(this,t)}subtract(t){return Z8(this,t)}set(t){return Ms(this,t)}cycle(t,n,i){return ny(this,t,n,i)}toString(){return S$(this)}compare(t){return o$(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 h$(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 f$(this,t,n)}toString(){return D$(this)}compare(t){let n=i$(this,t);return n===0?o$(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 v$(this,t)}subtract(t){return Y8(this,t)}set(t,n){return K8(this,t,n)}cycle(t,n,i){return q8(this,t,n,i)}toDate(){return U8(this)}toString(){return eM(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-z8(t,this.timeZone).toDate().getTime()}}const Ko=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],tM=[[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 nM 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=tM[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 x$=-543;class rM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=Ks(n.era,n.year);return new Ot(this,i-x$,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+x$);return new Ot(t,n,e.month,e.day)}const ud=1911;function C$(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 aM 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(C$(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(C$(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 iM{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 oM 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,lM=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 A$(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 A$(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 sM extends iy{fromJulianDay(t){return A$(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 lM+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 cM 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+=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,w$=1080,T$=24*w$,dM=29,fM=12*w$+793,mM=dM*T$+fM;function Di(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 pM(e){let t=Vc(e-1),n=Vc(e);return Vc(e+1)-n===356?2:n-t===382?1:0}function $s(e){return Vc(e)+pM(e)}function N$(e){return $s(e+1)-$s(e)}function hM(e){let t=N$(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&&!Di(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=hM(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Di(e)?30:0:30}class yM{fromJulianDay(t){let n=t-l1,i=n*T$/mM,o=Math.floor((19*i+234)/235)+1,s=$s(o),c=Math.floor(n-s);for(;c<1;)o--,s=$s(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=$s(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 Di(t.year)?13:12}getDaysInYear(t){return N$(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Di(n.year)&&!Di(t.year)&&n.month>6?t.month--:!Di(n.year)&&Di(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 M$(e){return Math.floor(e%4/3)}function R$(e,t){return t%13!==0?30:M$(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 R$(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+M$(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 gM 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 bM 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),R$(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 O$(e){switch(e){case"buddhist":return new rM;case"ethiopic":return new ly;case"ethioaa":return new gM;case"coptic":return new bM;case"hebrew":return new yM;case"indian":return new oM;case"islamic-civil":return new iy;case"islamic-tbla":return new sM;case"islamic-umalqura":return new cM;case"japanese":return new nM;case"persian":return new iM;case"roc":return new aM;case"gregory":default:return new pn}}let Vp=new Map;class ra{constructor(t,n={}){this.formatter=k$(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 EM()&&(this.resolvedHourCycle||(this.resolvedHourCycle=SM(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 vM={true:{ja:"h11"},false:{}};function k$(e,t={}){if(typeof t.hour12=="boolean"&&_M()){t={...t};let o=vM[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 _M(){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 EM(){return Zp==null&&(Zp=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Zp}function SM(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=k$(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=t$(e??{},$M);let{locale:t}=sn();return b.useMemo(()=>new ra(t,e),[t,e])}function $M(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 B$(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(B$(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(B$(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 xM(e){return e&&e.__esModule?e.default:e}function CM(e,t){let n=Xa(xM(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 $=Vs({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:pt(i,$,{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 AM(e,t){return CM(e,t)}function wM(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]),$=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:$}}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,$=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,O=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=$-(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||O>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+O)/2-(W+Y)/2;else if(z&&o==="end")c+=O-Y;else if(z&&o==="nearest"){let T=de-W,N=O-Y;c+=Math.abs(T)<=Math.abs(N)?T:N}e.scrollTo({left:c,top:s})}function L$(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 TM=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-${TM++}`;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 NM(e){return e&&e.__esModule?e.default:e}function MM(e,t,n){let{date:i,isDisabled:o}=e,{errorMessageId:s,selectedDateDescription:c}=sy.get(t),d=Xa(NM(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=t$(i,R8);let $=b.useMemo(()=>i.toDate(t.timeZone),[i,t.timeZone]),x=r$(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($),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,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&&L$(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($).find(J=>J.type==="day").value,[ne,$]);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 RM(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 OM(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;)M8(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=u$(t,Ai(mn(o),n,i));c&&(t=c)}if(s&&e.compare(s)<=0){let c=s$(t,e0(mn(s),n,i));c&&(t=c)}return t}function qr(e,t,n){if(t){let i=u$(e,mn(t));i&&(e=i)}if(n){let i=s$(e,mn(n));i&&(e=i)}return e}function kM(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 BM(e,t){return e===t?!0:e.days===t.days&&e.weeks===t.weeks&&e.months===t.months&&e.years===t.years}function LM(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,$=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),$)):x?Et(mn(x),$):null,[x,$]),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),$),c,d):void 0,[e.focusedValue,$,c,d]),L=b.useMemo(()=>e.defaultFocusedValue?qr(Et(mn(e.defaultFocusedValue),$),c,d):qr(R?Array.isArray(R)?R[0]:R:Et(J0(I),$),c,d),[e.defaultFocusedValue,R,I,$,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);BM(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,O]=b.useState($);if(!Vd($,de)){let Y=Et(M,$);ne(c1(Y,s,i,c,d)),Z(Y),O($)}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=kM(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(B8(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||I8(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 P$(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}=P$(e);return ve.createElement(n,pt(s,c),t)}const pd=b.createContext(null),PM=b.createContext(null),dl=b.createContext(null),Ws=b.createContext(null),IM=b.forwardRef(function(t,n){[t,n]=sa(t,n,pd);let{locale:i}=sn(),o=LM({...t,locale:i,createCalendar:t.createCalendar||O$}),{calendarProps:s,prevButtonProps:c,nextButtonProps:d,errorMessageProps:m,title:h}=AM(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),FM=b.forwardRef(function(t,n){let i=b.useContext(dl),o=b.useContext(Ws),s=ad(pd),c=ad(PM),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}=wM({startDate:m,endDate:sd(m),weekdayStyle:t.weekdayStyle,firstDayOfWeek:h},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($,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(I$,null,x=>ve.createElement(F$,null,x)),ve.createElement(j$,null,t.children))))});function jM(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 I$=b.forwardRef(jM);function zM(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 F$=b.forwardRef(zM);function UM(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 j$=b.forwardRef(UM),HM=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:!N8(d,t),h=r$(t,c.timeZone),y=b.useRef(null),{cellProps:g,buttonProps:E,...S}=MM({date:t,isOutsideMonth:m},c,y),{hoverProps:$,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,$,M,L),ref:y}))});function VM(e){let t=ve.useContext(dl),n=ve.useContext(Ws),o=OM(e,t||n);return e.children(o)}function GM(e){let t=ve.useContext(dl),n=ve.useContext(Ws),o=RM(e,t||n);return e.children(o)}const ZM=b.createContext(null),z$={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},U$={...z$,customError:!0,valid:!1},us={isInvalid:!1,validationDetails:z$,validationErrors:[]},YM=b.createContext({}),n0="__reactAriaFormValidationState";function H$(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 qM(e)}function qM(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:U$}:null,h=b.useMemo(()=>{if(!c||o==null)return null;let pe=KM(c,o);return f1(pe)},[c,o]);s?.validationDetails.valid&&(s=void 0);let y=b.useContext(YM),g=b.useMemo(()=>i?Array.isArray(i)?i.flatMap(pe=>r0(y[pe])):r0(y[i]):[],[y,i]),[E,S]=b.useState(y),[$,x]=b.useState(!1);y!==E&&(S(y),x(!1));let w=b.useMemo(()=>f1($?[]:g),[$,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 KM(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:U$}: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 WM=b.createContext(null);function V$(e){let{description:t,errorMessage:n,isInvalid:i,validationState:o}=e,{labelProps:s,fieldProps:c}=p8(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 QM(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 JM(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(eR(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&&tR(y)===n.current&&(o?o():n.current?.focus(),ON("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 XM(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 eR(e){return{isInvalid:!e.validity.valid,validationDetails:XM(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function tR(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({}),G$=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:$}=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,$,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)}),Z$=b.createContext({});let nR=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,...o}=e;return o};const rR=mS(function(t,n){[t,n]=sa(t,n,Z$);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(nR(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 Y$={};Y$={Empty:"فارغ"};var q$={};q$={Empty:"Изпразни"};var K$={};K$={Empty:"Prázdné"};var W$={};W$={Empty:"Tom"};var Q$={};Q$={Empty:"Leer"};var J$={};J$={Empty:"Άδειο"};var X$={};X$={Empty:"Empty"};var eD={};eD={Empty:"Vacío"};var tD={};tD={Empty:"Tühjenda"};var nD={};nD={Empty:"Tyhjä"};var rD={};rD={Empty:"Vide"};var aD={};aD={Empty:"ריק"};var iD={};iD={Empty:"Prazno"};var oD={};oD={Empty:"Üres"};var lD={};lD={Empty:"Vuoto"};var sD={};sD={Empty:"空"};var uD={};uD={Empty:"비어 있음"};var cD={};cD={Empty:"Tuščias"};var dD={};dD={Empty:"Tukšs"};var fD={};fD={Empty:"Tom"};var mD={};mD={Empty:"Leeg"};var pD={};pD={Empty:"Pusty"};var hD={};hD={Empty:"Vazio"};var yD={};yD={Empty:"Vazio"};var gD={};gD={Empty:"Gol"};var bD={};bD={Empty:"Не заполнено"};var vD={};vD={Empty:"Prázdne"};var _D={};_D={Empty:"Prazen"};var ED={};ED={Empty:"Prazno"};var SD={};SD={Empty:"Tomt"};var $D={};$D={Empty:"Boş"};var DD={};DD={Empty:"Пусто"};var xD={};xD={Empty:"空"};var CD={};CD={Empty:"空白"};var AD={};AD={"ar-AE":Y$,"bg-BG":q$,"cs-CZ":K$,"da-DK":W$,"de-DE":Q$,"el-GR":J$,"en-US":X$,"es-ES":eD,"et-EE":tD,"fi-FI":nD,"fr-FR":rD,"he-IL":aD,"hr-HR":iD,"hu-HU":oD,"it-IT":lD,"ja-JP":sD,"ko-KR":uD,"lt-LT":cD,"lv-LV":dD,"nb-NO":fD,"nl-NL":mD,"pl-PL":pD,"pt-BR":hD,"pt-PT":yD,"ro-RO":gD,"ru-RU":bD,"sk-SK":vD,"sl-SI":_D,"sr-SP":ED,"sv-SE":SD,"tr-TR":$D,"uk-UA":DD,"zh-CN":xD,"zh-TW":CD};function aR(e){return e&&e.__esModule?e.default:e}const m1=()=>{};function iR(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:$}=e;const x=Xa(aR(AD),"@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":$&&(W.preventDefault(),$?.());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&&(S8("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:O,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")):(O(window,"pointercancel",fe,{capture:!0}),X.current=!1,G("touch")),O(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")):(O(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 oR{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 wD(e,t,n,i){return Xr()?new oR(e,t,n,i):e.createTreeWalker(t,n,i)}const p1=ve.createContext(null),a0="react-aria-focus-scope-restore";let _t=null;function lR(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||Vt.root;if(Vt.getTreeNode(E.scopeRef)&&_t&&!hd(_t,E.scopeRef)){let S=Vt.getTreeNode(_t);S&&(E=S)}E.addChild(h),Vt.addNode(h)},[h,m]),ct(()=>{let E=Vt.getTreeNode(d);E&&(E.contain=!!n)},[n]),ct(()=>{let E=s.current?.nextSibling,S=[],$=x=>x.stopPropagation();for(;E&&E!==c.current;)S.push(E),E.addEventListener(a0,$),E=E.nextSibling;return d.current=S,()=>{for(let x of S)x.removeEventListener(a0,$)}},[t]),pR(d,i,n),dR(d,n),hR(d,i,n),mR(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 $ of Vt.traverse())$.scopeRef&&ur(E,$.scopeRef.current)&&(S=$);S===Vt.getTreeNode(d)&&(_t=S.scopeRef)}},[d]),ct(()=>()=>{let E=Vt.getTreeNode(d)?.parent?.scopeRef??null;(d===_t||hd(d,_t))&&(!E||Vt.getTreeNode(E))&&(_t=E),Vt.removeTreeNode(d)},[d]);let y=b.useMemo(()=>sR(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 sR(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=Vt.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 cR(e){if(e.checked)return!0;const t=uR(e);return t.length>0&&!t.some(n=>n.checked)}function dR(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 $=h.shiftKey?S.previousNode():S.nextNode();$||(S.currentNode=h.shiftKey?g[g.length-1].nextElementSibling:g[0].previousElementSibling,$=h.shiftKey?S.previousNode():S.nextNode()),h.preventDefault(),$&&(Cn($,!0),$ instanceof hn($).HTMLInputElement&&$.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()&&XE(),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 TD(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 Vt.traverse(Vt.getTreeNode(t)))if(n&&ur(e,n.current))return!0;return!1}function fR(e){return Va(e,_t)}function hd(e,t){let n=Vt.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 ND(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(ND(e,t))}function mR(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 pR(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:TD(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=Vt.getTreeNode(_t);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function hR(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=Vt.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):TD(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=Vt.getTreeNode(e);if(s)return s.nodeToRestore=i.current??void 0,()=>{let c=Vt.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=Vt.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&&Vt.getTreeNode(y.scopeRef)){let g=ND(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?xN:YE,o=e?.nodeType===Node.ELEMENT_NODE?e:null,s=nt(o),c=wD(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(d){return ot(t?.from,d)||t?.tabbable&&d.tagName==="INPUT"&&d.getAttribute("type")==="radio"&&(!cR(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 Vt=new dy,Xp=new Map;function yR(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 gR=b.createContext({placement:"bottom"}),bR=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 vR(e,t){let n=hn(e?.[0]),i=t instanceof n.Element?{root:t}:t,o=i?.root??document.body,s=i?.shouldUseInert&&bR,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=wD(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 $=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}),$.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 $)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 _R(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"},ER={top:"left",left:"top"},l0={top:"height",left:"width"},MD={width:"totalWidth",height:"totalHeight"},Ac={};let SR=()=>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 JE()&&(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 $R(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=ER[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:$,size:x,crossSize:w}=i,R={};R[$]=e[$]??0,E==="center"?R[$]+=((e[w]??0)-(n[w]??0))/2:E!==$&&(R[$]+=(e[w]??0)-(n[w]??0)),R[$]+=s;const I=e[$]-n[w]+m+h,A=e[$]+e[w]-m-h;if(R[$]=Vh(R[$],I,A),g===S){let L=d?y[x]:y[MD[x]];R[yd[S]]=Math.floor(L-e[S]+o)}else R[S]=Math.floor(e[S]+e[x]+o);return R}function xR(e,t,n,i,o,s,c,d,m,h,y){let g=(e.top!=null?e.top:m[MD.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 CR(e,t,n,i,o,s,c,d,m,h,y,g,E,S,$,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,$,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,$,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=xR(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,$,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]],O=de+.5*t[M];const B=$/2+x,X=ar[L]==="left"?(o.left??0)+(o.right??0):(o.top??0)+(o.bottom??0),F=n[M]-X-$/2-x,G=t[L]+$/2-(fe[L]+o[ar[L]]),C=t[L]+t[M]-$/2-(fe[L]+o[ar[L]]),U=Vh(O,G,C);j[L]=Vh(U,B,F),{placement:Z,crossPlacement:V}=I,$?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 AR(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,$=SR(),x=i instanceof HTMLElement?wR(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=$R(o),V=b1(d,$),fe=b1(x,$),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 CR(t,A,L,Z,M,s,c,V,fe,ne,m,h,I,y,g,E,pe,$)}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 wR(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!$1(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!$1(t);)t=t.parentElement;return t||document.documentElement}function $1(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 TR=new WeakMap;function NR(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||TR.get(t.current);d&&d()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,i,t])}function MR(){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(MR()){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 RR(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:$=!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,$,t,w,R,n],Z=b.useRef(Si?.scale);b.useEffect(()=>{$&&(Z.current=Si?.scale)},[$]);let V=b.useCallback(()=>{if(S===!1||!$||!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=AR({placement:kR(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(),O=j[pe.type]-de[pe.type];c.current.scrollTop+=O-pe.offset}L(ye)},M);ct(V,M),OR(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 NR({triggerRef:i,isOpen:$,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 OR(e){ct(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function kR(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function BR(e){let{ref:t,onInteractOutside:n,isDisabled:i,onInteractOutsideStart:o}=e,s=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=Zt(m=>{n&&D1(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&&D1(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 D1(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 $r=[];function LR(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&&!$r.includes(t))return $r.push(t),()=>{let $=$r.indexOf(t);$>=0&&$r.splice($,1)}},[o,t]);let h=()=>{$r[$r.length-1]===t&&n&&n()},y=$=>{const x=$r[$r.length-1];m.current=x,(!d||d(Pe($)))&&x===t&&$.stopPropagation()},g=$=>{(!d||d(Pe($)))&&($r[$r.length-1]===t&&$.stopPropagation(),m.current===t&&h()),m.current=void 0},E=$=>{$.key==="Escape"&&!c&&!$.nativeEvent.isComposing&&($.stopPropagation(),$.preventDefault(),h())};BR({ref:t,onInteractOutside:s&&o?g:void 0,onInteractOutsideStart:y});let{focusWithinProps:S}=Gs({isDisabled:!i,onBlurWithin:$=>{!$.relatedTarget||fR($.relatedTarget)||(!d||d($.relatedTarget))&&n?.()}});return{overlayProps:{onKeyDown:E,...S},underlayProps:{}}}const Ds=typeof document<"u"&&window.visualViewport;let wc=0,th;function PR(e={}){let{isDisabled:t}=e;ct(()=>{if(!t)return wc++,wc===1&&(Hs()?th=FR():th=IR()),()=>{wc--,wc===0&&th()}},[t])}function IR(){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 FR(){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=hS();s&&(o.nonce=s),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||$,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&&!yS(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 d8(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?!yS(e,t):d8(e)}const f8=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function yS(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":f8.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=WE(m),y=b.useCallback(g=>{if(!ot(g.currentTarget,Pe(g)))return;let E=Pe(g);const S=nt(E),$=St(S);if(!s.current.isFocusWithin&&$===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});KE(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 ul(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]);PN(S=>{o.current.isFocusVisible=S,h()},[n,s],{enabled:s,isTextInput:n});let{focusProps:g}=cS({isDisabled:i,onFocusChange:y}),{focusWithinProps:E}=Gs({isDisabled:!i,onFocusWithinChange:y});return{isFocused:s,isFocusVisible:d,focusProps:i?E:g}}let zh=!1,$c=0;function m8(){zh=!0,setTimeout(()=>{zh=!1},500)}function F4(e){e.pointerType==="touch"&&m8()}function p8(){let e=nt(null);if(!(typeof e>"u"))return $c===0&&typeof PointerEvent<"u"&&e.addEventListener("pointerup",F4),$c++,()=>{$c--,!($c>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(p8,[]);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))},$={};return typeof PointerEvent<"u"&&($.onPointerEnter=x=>{zh&&x.pointerType==="mouse"||E(x,x.pointerType)},$.onPointerLeave=x=>{!o&&ot(x.currentTarget,Pe(x))&&S(x,x.pointerType)}),{hoverProps:$,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 gS=b.createContext({});function h8(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 bS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Hh{constructor(t,n={}){this.numberFormatter=y8(t,n),this.options=n}format(t){let n="";if(!Uh&&this.options.signDisplay!=null?n=g8(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=bS[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 y8(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(!bS[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 g8(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 b8=new RegExp("^.*\\(.*\\).*$"),v8=["latn","arab","hanidec","deva","beng","fullwide"];class vS{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 v8)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 _8(e,t),j4.set(n,i)),i}class _8{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=E8(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 vS(this.locale,s).parse(new Hh(this.locale,s).format(o))}return this.options.currencySign==="accounting"&&b8.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 E8(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,$=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([...$,...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 S8=b.createContext(null),_S=7e3;let Ia=null;function Ts(e,t="assertive",n=_S){Ia?Ia.announce(e,t,n):(Ia=new D8,(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 $8(e){Ia&&Ia.clear(e)}class D8{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=_S){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 x8(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:$,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"?$: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}=t8(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=mS(function(t,n){[t,n]=sa(t,n,Ys);let i=t,{isPending:o}=i,{buttonProps:s,isPressed:c}=x8(t,n);s=A8(s,o);let{focusProps:d,isFocused:m,isFocusVisible:h}=ul(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"}),$=Ar(s.id),x=Ar(),w=s["aria-labelledby"];o&&(w?w=`${w} ${x}`:s["aria-label"]&&(w=`${$} ${x}`));let R=b.useRef(o);b.useEffect(()=>{let A={"aria-labelledby":w||$};(!R.current&&m&&o||R.current&&m&&!o)&&Ts(A,"assertive"),R.current=o},[o,m,w,$]);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:$,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(S8.Provider,{value:{id:x}},S.children))}),C8=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function A8(e,t){if(t){for(const n in e)n.startsWith("on")&&!C8.test(n)&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const K0=b.createContext({}),w8=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 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} до ${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 $S={};$S={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 xS={};xS={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 CS={};CS={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 AS={};AS={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 wS={};wS={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 TS={};TS={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 NS={};NS={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 MS={};MS={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 RS={};RS={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 OS={};OS={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 kS={};kS={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 BS={};BS={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 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=>`${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 IS={};IS={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 FS={};FS={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 jS={};jS={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 zS={};zS={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 US={};US={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 HS={};HS={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 VS={};VS={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 GS={};GS={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 ZS={};ZS={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 YS={};YS={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 qS={};qS={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 KS={};KS={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 WS={};WS={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 QS={};QS={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 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 e$={};e$={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":ES,"bg-BG":SS,"cs-CZ":$S,"da-DK":DS,"de-DE":xS,"el-GR":CS,"en-US":AS,"es-ES":wS,"et-EE":TS,"fi-FI":NS,"fr-FR":MS,"he-IL":RS,"hr-HR":OS,"hu-HU":kS,"it-IT":BS,"ja-JP":LS,"ko-KR":PS,"lt-LT":IS,"lv-LV":FS,"nb-NO":jS,"nl-NL":zS,"pl-PL":US,"pt-BR":HS,"pt-PT":VS,"ro-RO":GS,"ru-RU":ZS,"sk-SK":YS,"sl-SI":qS,"sr-SP":KS,"sv-SE":WS,"tr-TR":QS,"uk-UA":JS,"zh-CN":XS,"zh-TW":e$};function t$(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 n$=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),n$-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 T8={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-n$,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),$=n-Ci(E,S,1,1),x=2;n<Ci(E,S,3,1)?x=0:Ha(S)&&(x=1);let w=Math.floor((($+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 T8[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 N8={"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 M8(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 R8(e,t){return t=Et(t,e.calendar),e=Gh(e),t=Gh(t),e.era===t.era&&e.year===t.year}function O8(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 r$(e,t){return Ct(e,J0(t))}const k8={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?k8[n]:I8(t),s=Math.ceil(i+1-o)%7;return s<0&&(s+=7),s}function a$(e){return ta(Date.now(),e)}function J0(e){return mn(a$(e))}function i$(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function o$(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,B8=!1;function Gd(){return jp==null&&(jp=new Intl.DateTimeFormat().resolvedOptions().timeZone),jp}function l$(){return B8}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 L8(e,t,n){return Ns(e,t,n).add({days:6})}const Z4=new Map,zp=new Map;function P8(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 I8(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=P8(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&&N8[n]||0};zp.set(e,t)}return t.firstDay}function F8(e,t,n){let i=e.calendar.getDaysInMonth(e);return Math.ceil((Q0(Ii(e),t,n)+i)/7)}function s$(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function u$(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function il(e){e=Et(e,new pn);let t=Ks(e.era,e.year);return c$(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function c$(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()&&!l$())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:i,day:o,hour:s,minute:c,second:d}=d$(e,t);return c$(n,i,o,s,c,d,0)-Math.floor(e/1e3)*1e3}const Y4=new Map;function d$(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 j8(e,t,n,i){return(n===i?[n]:[n,i]).filter(s=>z8(e,t,s))}function z8(e,t,n){let i=d$(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 il(i);if(t===Gd()&&n==="compatible"&&!l$()){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=il(i),s=Zh(o-q4,t),c=Zh(o+q4,t),d=j8(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 f$(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 U8(e,t,n){if(e instanceof Os)return e.timeZone===t?e:m$(e,t);let i=ea(e,t,n);return ta(i,t)}function H8(e){let t=il(e)-e.offset;return new Date(t)}function m$(e,t){let n=il(e)-e.offset;return Et(ta(n,t),e.calendar)}function V8(e){return m$(e,Gd())}const ls=36e5;function Zd(e,t){let n=e.copy(),i="hour"in n?g$(n,t):0;Yh(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,qh(n),p$(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=i,G8(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 G8(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 p$(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)),p$(e)}function X0(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function h$(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),y$(n),n}function Z8(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Dc(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Dc(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Dc(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Dc(e.hour,24),t}function y$(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 Dc(e,t){let n=e%t;return n<0&&(n+=t),n}function g$(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Z8(e)}function b$(e,t){let n=e.copy();return g$(n,t),n}function Y8(e,t){return b$(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 v$(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=il(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 q8(e,t){return v$(e,X0(t))}function K8(e,t,n,i){switch(t){case"hour":{let o=0,s=23;if(i?.hourCycle===12){let $=e.hour>=12;o=$?12:0,s=$?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($=>ta($,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($=>ta($,e.timeZone).day===h.day).pop(),g=il(e)-e.offset,E=Math.floor(g/ls),S=g%ls;return g=na(E,n,Math.floor(m/ls),Math.floor(y/ls),i?.round)*ls+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 W8(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 Q8=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,J8=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,_$=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function E$(e){let t=e.match(Q8);if(!t)throw _$.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 X8(e){let t=e.match(J8);if(!t)throw _$.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 S$(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 $$(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 D$(e){return`${$$(e)}T${S$(e)}`}function eM(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 tM(e){return`${D$(e)}${eM(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 h$(this,t)}set(t){return ey(this,t)}cycle(t,n,i){return ty(this,t,n,i)}toDate(t){return f$(this,t)}toString(){return $$(this)}compare(t){return i$(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,y$(this)}copy(){return new ay(this.hour,this.minute,this.second,this.millisecond)}add(t){return b$(this,t)}subtract(t){return Y8(this,t)}set(t){return Ms(this,t)}cycle(t,n,i){return ny(this,t,n,i)}toString(){return S$(this)}compare(t){return o$(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 h$(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 f$(this,t,n)}toString(){return D$(this)}compare(t){let n=i$(this,t);return n===0?o$(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 v$(this,t)}subtract(t){return q8(this,t)}set(t,n){return W8(this,t,n)}cycle(t,n,i){return K8(this,t,n,i)}toDate(){return H8(this)}toString(){return tM(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-U8(t,this.timeZone).toDate().getTime()}}const Ko=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],nM=[[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 rM 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=nM[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 x$=-543;class aM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=Ks(n.era,n.year);return new Ot(this,i-x$,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+x$);return new Ot(t,n,e.month,e.day)}const ud=1911;function C$(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 iM 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(C$(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(C$(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 oM{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 lM 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,sM=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 A$(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 A$(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 uM extends iy{fromJulianDay(t){return A$(this,r1,t)}toJulianDay(t){return dd(r1,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const cM="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Kh,Wo;function Hc(e){return sM+Wo[e-nr]}function gs(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+=gs(e,i);return n}function o1(e){return Wo[e+1-nr]-Wo[e-nr]}class dM extends iy{constructor(){if(super(),this.identifier="islamic-umalqura",Kh||(Kh=new Uint16Array(Uint8Array.from(atob(cM),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+=gs(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=gs(s,c);for(c=1;d>h;)d-=h,c++,h=gs(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):gs(t.year,t.month)}getDaysInYear(t){return t.year<nr||t.year>Po?super.getDaysInYear(t):o1(t.year)}}const l1=347997,w$=1080,T$=24*w$,fM=29,mM=12*w$+793,pM=fM*T$+mM;function Di(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 hM(e){let t=Vc(e-1),n=Vc(e);return Vc(e+1)-n===356?2:n-t===382?1:0}function Ss(e){return Vc(e)+hM(e)}function N$(e){return Ss(e+1)-Ss(e)}function yM(e){let t=N$(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&&!Di(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=yM(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Di(e)?30:0:30}class gM{fromJulianDay(t){let n=t-l1,i=n*T$/pM,o=Math.floor((19*i+234)/235)+1,s=Ss(o),c=Math.floor(n-s);for(;c<1;)o--,s=Ss(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=Ss(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 Di(t.year)?13:12}getDaysInYear(t){return N$(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Di(n.year)&&!Di(t.year)&&n.month>6?t.month--:!Di(n.year)&&Di(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 M$(e){return Math.floor(e%4/3)}function R$(e,t){return t%13!==0?30:M$(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 R$(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+M$(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 bM 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 vM 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),R$(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 O$(e){switch(e){case"buddhist":return new aM;case"ethiopic":return new ly;case"ethioaa":return new bM;case"coptic":return new vM;case"hebrew":return new gM;case"indian":return new lM;case"islamic-civil":return new iy;case"islamic-tbla":return new uM;case"islamic-umalqura":return new dM;case"japanese":return new rM;case"persian":return new oM;case"roc":return new iM;case"gregory":default:return new pn}}let Vp=new Map;class ra{constructor(t,n={}){this.formatter=k$(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 SM()&&(this.resolvedHourCycle||(this.resolvedHourCycle=$M(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 _M={true:{ja:"h11"},false:{}};function k$(e,t={}){if(typeof t.hour12=="boolean"&&EM()){t={...t};let o=_M[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 EM(){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 SM(){return Zp==null&&(Zp=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Zp}function $M(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=k$(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=t$(e??{},DM);let{locale:t}=sn();return b.useMemo(()=>new ra(t,e),[t,e])}function DM(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 B$(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 xM(e){let t=Xa(B$(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(B$(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 CM(e){return e&&e.__esModule?e.default:e}function AM(e,t){let n=Xa(CM(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=xM(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 $=Vs({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:pt(i,$,{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 wM(e,t){return AM(e,t)}function TM(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]),$=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:$}}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,$=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,O=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=$-(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||O>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+O)/2-(W+Y)/2;else if(z&&o==="end")c+=O-Y;else if(z&&o==="nearest"){let T=de-W,N=O-Y;c+=Math.abs(T)<=Math.abs(N)?T:N}e.scrollTo({left:c,top:s})}function L$(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 NM=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-${NM++}`;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 MM(e){return e&&e.__esModule?e.default:e}function RM(e,t,n){let{date:i,isDisabled:o}=e,{errorMessageId:s,selectedDateDescription:c}=sy.get(t),d=Xa(MM(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=t$(i,O8);let $=b.useMemo(()=>i.toDate(t.timeZone),[i,t.timeZone]),x=r$(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($),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,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&&L$(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($).find(J=>J.type==="day").value,[ne,$]);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 OM(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 kM(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;)R8(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=u$(t,Ai(mn(o),n,i));c&&(t=c)}if(s&&e.compare(s)<=0){let c=s$(t,e0(mn(s),n,i));c&&(t=c)}return t}function qr(e,t,n){if(t){let i=u$(e,mn(t));i&&(e=i)}if(n){let i=s$(e,mn(n));i&&(e=i)}return e}function BM(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 LM(e,t){return e===t?!0:e.days===t.days&&e.weeks===t.weeks&&e.months===t.months&&e.years===t.years}function PM(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,$=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),$)):x?Et(mn(x),$):null,[x,$]),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),$),c,d):void 0,[e.focusedValue,$,c,d]),L=b.useMemo(()=>e.defaultFocusedValue?qr(Et(mn(e.defaultFocusedValue),$),c,d):qr(R?Array.isArray(R)?R[0]:R:Et(J0(I),$),c,d),[e.defaultFocusedValue,R,I,$,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);LM(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,O]=b.useState($);if(!Vd($,de)){let Y=Et(M,$);ne(c1(Y,s,i,c,d)),Z(Y),O($)}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=BM(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(L8(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||F8(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 P$(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}=P$(e);return ve.createElement(n,pt(s,c),t)}const pd=b.createContext(null),IM=b.createContext(null),cl=b.createContext(null),Ws=b.createContext(null),FM=b.forwardRef(function(t,n){[t,n]=sa(t,n,pd);let{locale:i}=sn(),o=PM({...t,locale:i,createCalendar:t.createCalendar||O$}),{calendarProps:s,prevButtonProps:c,nextButtonProps:d,errorMessageProps:m,title:h}=wM(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}],[cl,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),jM=b.forwardRef(function(t,n){let i=b.useContext(cl),o=b.useContext(Ws),s=ad(pd),c=ad(IM),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}=TM({startDate:m,endDate:sd(m),weekdayStyle:t.weekdayStyle,firstDayOfWeek:h},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($,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(I$,null,x=>ve.createElement(F$,null,x)),ve.createElement(j$,null,t.children))))});function zM(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 I$=b.forwardRef(zM);function UM(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 F$=b.forwardRef(UM);function HM(e,t){let{children:n,style:i,className:o}=e,s=b.useContext(cl),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 j$=b.forwardRef(HM),VM=b.forwardRef(function({date:t,...n},i){let o=b.useContext(cl),s=b.useContext(Ws),c=o??s,{startDate:d}=b.useContext(qd)??{startDate:c.visibleRange.start},m=c.visibleDuration.days||c.visibleDuration.weeks?!1:!M8(d,t),h=r$(t,c.timeZone),y=b.useRef(null),{cellProps:g,buttonProps:E,...S}=RM({date:t,isOutsideMonth:m},c,y),{hoverProps:$,isHovered:x}=Zs({...n,isDisabled:S.isDisabled||S.isUnavailable}),{focusProps:w,isFocusVisible:R}=ul();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,$,M,L),ref:y}))});function GM(e){let t=ve.useContext(cl),n=ve.useContext(Ws),o=kM(e,t||n);return e.children(o)}function ZM(e){let t=ve.useContext(cl),n=ve.useContext(Ws),o=OM(e,t||n);return e.children(o)}const YM=b.createContext(null),z$={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},U$={...z$,customError:!0,valid:!1},ss={isInvalid:!1,validationDetails:z$,validationErrors:[]},qM=b.createContext({}),n0="__reactAriaFormValidationState";function H$(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 KM(e)}function KM(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:U$}:null,h=b.useMemo(()=>{if(!c||o==null)return null;let pe=WM(c,o);return f1(pe)},[c,o]);s?.validationDetails.valid&&(s=void 0);let y=b.useContext(qM),g=b.useMemo(()=>i?Array.isArray(i)?i.flatMap(pe=>r0(y[pe])):r0(y[i]):[],[y,i]),[E,S]=b.useState(y),[$,x]=b.useState(!1);y!==E&&(S(y),x(!1));let w=b.useMemo(()=>f1($?[]:g),[$,g]),R=b.useRef(ss),[I,A]=b.useState(ss),L=b.useRef(ss),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||ss,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=ss;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 WM(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:U$}: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 QM=b.createContext(null);function V$(e){let{description:t,errorMessage:n,isInvalid:i,validationState:o}=e,{labelProps:s,fieldProps:c}=h8(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 JM(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 XM(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(tR(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&&nR(y)===n.current&&(o?o():n.current?.focus(),kN("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 eR(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 tR(e){return{isInvalid:!e.validity.valid,validationDetails:eR(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function nR(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({}),G$=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:$}=ul({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,$,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)}),Z$=b.createContext({});let rR=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,...o}=e;return o};const aR=mS(function(t,n){[t,n]=sa(t,n,Z$);let{hoverProps:i,isHovered:o}=Zs({...t,isDisabled:t.disabled}),{isFocused:s,isFocusVisible:c,focusProps:d}=ul({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(rR(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 Y$={};Y$={Empty:"فارغ"};var q$={};q$={Empty:"Изпразни"};var K$={};K$={Empty:"Prázdné"};var W$={};W$={Empty:"Tom"};var Q$={};Q$={Empty:"Leer"};var J$={};J$={Empty:"Άδειο"};var X$={};X$={Empty:"Empty"};var eD={};eD={Empty:"Vacío"};var tD={};tD={Empty:"Tühjenda"};var nD={};nD={Empty:"Tyhjä"};var rD={};rD={Empty:"Vide"};var aD={};aD={Empty:"ריק"};var iD={};iD={Empty:"Prazno"};var oD={};oD={Empty:"Üres"};var lD={};lD={Empty:"Vuoto"};var sD={};sD={Empty:"空"};var uD={};uD={Empty:"비어 있음"};var cD={};cD={Empty:"Tuščias"};var dD={};dD={Empty:"Tukšs"};var fD={};fD={Empty:"Tom"};var mD={};mD={Empty:"Leeg"};var pD={};pD={Empty:"Pusty"};var hD={};hD={Empty:"Vazio"};var yD={};yD={Empty:"Vazio"};var gD={};gD={Empty:"Gol"};var bD={};bD={Empty:"Не заполнено"};var vD={};vD={Empty:"Prázdne"};var _D={};_D={Empty:"Prazen"};var ED={};ED={Empty:"Prazno"};var SD={};SD={Empty:"Tomt"};var $D={};$D={Empty:"Boş"};var DD={};DD={Empty:"Пусто"};var xD={};xD={Empty:"空"};var CD={};CD={Empty:"空白"};var AD={};AD={"ar-AE":Y$,"bg-BG":q$,"cs-CZ":K$,"da-DK":W$,"de-DE":Q$,"el-GR":J$,"en-US":X$,"es-ES":eD,"et-EE":tD,"fi-FI":nD,"fr-FR":rD,"he-IL":aD,"hr-HR":iD,"hu-HU":oD,"it-IT":lD,"ja-JP":sD,"ko-KR":uD,"lt-LT":cD,"lv-LV":dD,"nb-NO":fD,"nl-NL":mD,"pl-PL":pD,"pt-BR":hD,"pt-PT":yD,"ro-RO":gD,"ru-RU":bD,"sk-SK":vD,"sl-SI":_D,"sr-SP":ED,"sv-SE":SD,"tr-TR":$D,"uk-UA":DD,"zh-CN":xD,"zh-TW":CD};function iR(e){return e&&e.__esModule?e.default:e}const m1=()=>{};function oR(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:$}=e;const x=Xa(iR(AD),"@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":$&&(W.preventDefault(),$?.());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&&($8("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:O,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")):(O(window,"pointercancel",fe,{capture:!0}),X.current=!1,G("touch")),O(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")):(O(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 lR{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 wD(e,t,n,i){return Xr()?new lR(e,t,n,i):e.createTreeWalker(t,n,i)}const p1=ve.createContext(null),a0="react-aria-focus-scope-restore";let _t=null;function sR(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||Vt.root;if(Vt.getTreeNode(E.scopeRef)&&_t&&!hd(_t,E.scopeRef)){let S=Vt.getTreeNode(_t);S&&(E=S)}E.addChild(h),Vt.addNode(h)},[h,m]),ct(()=>{let E=Vt.getTreeNode(d);E&&(E.contain=!!n)},[n]),ct(()=>{let E=s.current?.nextSibling,S=[],$=x=>x.stopPropagation();for(;E&&E!==c.current;)S.push(E),E.addEventListener(a0,$),E=E.nextSibling;return d.current=S,()=>{for(let x of S)x.removeEventListener(a0,$)}},[t]),hR(d,i,n),fR(d,n),yR(d,i,n),pR(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 $ of Vt.traverse())$.scopeRef&&ur(E,$.scopeRef.current)&&(S=$);S===Vt.getTreeNode(d)&&(_t=S.scopeRef)}},[d]),ct(()=>()=>{let E=Vt.getTreeNode(d)?.parent?.scopeRef??null;(d===_t||hd(d,_t))&&(!E||Vt.getTreeNode(E))&&(_t=E),Vt.removeTreeNode(d)},[d]);let y=b.useMemo(()=>uR(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 uR(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 bs(e){let t=Vt.getTreeNode(_t);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function cR(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 dR(e){if(e.checked)return!0;const t=cR(e);return t.length>0&&!t.some(n=>n.checked)}function fR(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||!bs(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 $=h.shiftKey?S.previousNode():S.nextNode();$||(S.currentNode=h.shiftKey?g[g.length-1].nextElementSibling:g[0].previousElementSibling,$=h.shiftKey?S.previousNode():S.nextNode()),h.preventDefault(),$&&(Cn($,!0),$ instanceof hn($).HTMLInputElement&&$.select())},d=h=>{(!_t||hd(_t,e))&&ur(Pe(h),e.current)?(_t=e,n.current=Pe(h)):bs(e)&&!Va(Pe(h),e)?n.current?n.current.focus():_t&&_t.current&&i0(_t.current):bs(e)&&(n.current=Pe(h))},m=h=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{let y=zd(),g=(y==="virtual"||y===null)&&G0()&&XE(),E=St(s);if(!g&&E&&bs(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 TD(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 Vt.traverse(Vt.getTreeNode(t)))if(n&&ur(e,n.current))return!0;return!1}function mR(e){return Va(e,_t)}function hd(e,t){let n=Vt.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 ND(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(ND(e,t))}function pR(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 hR(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:TD(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=Vt.getTreeNode(_t);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function yR(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||!bs(e)||c.isComposing)return;let d=o.activeElement;if(!Va(d,e)||!h1(e))return;let m=Vt.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):TD(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=Vt.getTreeNode(e);if(s)return s.nodeToRestore=i.current??void 0,()=>{let c=Vt.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=Vt.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&&Vt.getTreeNode(y.scopeRef)){let g=ND(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?CN:YE,o=e?.nodeType===Node.ELEMENT_NODE?e:null,s=nt(o),c=wD(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(d){return ot(t?.from,d)||t?.tabbable&&d.tagName==="INPUT"&&d.getAttribute("type")==="radio"&&(!dR(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 Vt=new dy,Xp=new Map;function gR(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 bR=b.createContext({placement:"bottom"}),vR=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function g1(e){return e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer!==void 0}let us=new WeakMap,xn=[];function _R(e,t){let n=hn(e?.[0]),i=t instanceof n.Element?{root:t}:t,o=i?.root??document.body,s=i?.shouldUseInert&&vR,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=wD(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=us.get(w)??0;m(w)&&R===0||(R===0&&h(w,!0),d.add(w),us.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 $=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}),$.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 $)w.disconnect();for(let w of d){let R=us.get(w);R!=null&&(R===1?(h(w,!1),us.delete(w)):us.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 ER(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"},SR={top:"left",left:"top"},l0={top:"height",left:"width"},MD={width:"totalWidth",height:"totalHeight"},Ac={};let $R=()=>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 JE()&&(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 DR(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 xR(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=SR[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:$,size:x,crossSize:w}=i,R={};R[$]=e[$]??0,E==="center"?R[$]+=((e[w]??0)-(n[w]??0))/2:E!==$&&(R[$]+=(e[w]??0)-(n[w]??0)),R[$]+=s;const I=e[$]-n[w]+m+h,A=e[$]+e[w]-m-h;if(R[$]=Vh(R[$],I,A),g===S){let L=d?y[x]:y[MD[x]];R[yd[S]]=Math.floor(L-e[S]+o)}else R[S]=Math.floor(e[S]+e[x]+o);return R}function CR(e,t,n,i,o,s,c,d,m,h,y){let g=(e.top!=null?e.top:m[MD.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 AR(e,t,n,i,o,s,c,d,m,h,y,g,E,S,$,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,$,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,$,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=CR(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,$,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]],O=de+.5*t[M];const B=$/2+x,X=ar[L]==="left"?(o.left??0)+(o.right??0):(o.top??0)+(o.bottom??0),F=n[M]-X-$/2-x,G=t[L]+$/2-(fe[L]+o[ar[L]]),C=t[L]+t[M]-$/2-(fe[L]+o[ar[L]]),U=Vh(O,G,C);j[L]=Vh(U,B,F),{placement:Z,crossPlacement:V}=I,$?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 wR(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,$=$R(),x=i instanceof HTMLElement?TR(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=xR(i);L.width+=(M.left??0)+(M.right??0),L.height+=(M.top??0)+(M.bottom??0);let Z=DR(o),V=b1(d,$),fe=b1(x,$),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 AR(t,A,L,Z,M,s,c,V,fe,ne,m,h,I,y,g,E,pe,$)}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 TR(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!$1(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!$1(t);)t=t.parentElement;return t||document.documentElement}function $1(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 NR=new WeakMap;function MR(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||NR.get(t.current);d&&d()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,i,t])}function RR(){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(RR()){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 OR(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:$=!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,$,t,w,R,n],Z=b.useRef(Si?.scale);b.useEffect(()=>{$&&(Z.current=Si?.scale)},[$]);let V=b.useCallback(()=>{if(S===!1||!$||!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=wR({placement:BR(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(),O=j[pe.type]-de[pe.type];c.current.scrollTop+=O-pe.offset}L(ye)},M);ct(V,M),kR(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 MR({triggerRef:i,isOpen:$,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 kR(e){ct(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function BR(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function LR(e){let{ref:t,onInteractOutside:n,isDisabled:i,onInteractOutsideStart:o}=e,s=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=Zt(m=>{n&&D1(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&&D1(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 D1(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 $r=[];function PR(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&&!$r.includes(t))return $r.push(t),()=>{let $=$r.indexOf(t);$>=0&&$r.splice($,1)}},[o,t]);let h=()=>{$r[$r.length-1]===t&&n&&n()},y=$=>{const x=$r[$r.length-1];m.current=x,(!d||d(Pe($)))&&x===t&&$.stopPropagation()},g=$=>{(!d||d(Pe($)))&&($r[$r.length-1]===t&&$.stopPropagation(),m.current===t&&h()),m.current=void 0},E=$=>{$.key==="Escape"&&!c&&!$.nativeEvent.isComposing&&($.stopPropagation(),$.preventDefault(),h())};LR({ref:t,onInteractOutside:s&&o?g:void 0,onInteractOutsideStart:y});let{focusWithinProps:S}=Gs({isDisabled:!i,onBlurWithin:$=>{!$.relatedTarget||mR($.relatedTarget)||(!d||d($.relatedTarget))&&n?.()}});return{overlayProps:{onKeyDown:E,...S},underlayProps:{}}}const $s=typeof document<"u"&&window.visualViewport;let wc=0,th;function IR(e={}){let{isDisabled:t}=e;ct(()=>{if(!t)return wc++,wc===1&&(Hs()?th=jR():th=FR()),()=>{wc--,wc===0&&th()}},[t])}function FR(){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 jR(){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=hS();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||!Ds?C1(e):Ds.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;Ds&&(c=Math.min(c,Ds.offsetTop+Ds.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 jR(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}=LR({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!s||h,isKeyboardDismissDisabled:c,shouldCloseOnInteractOutside:d},o??i),{overlayProps:E,arrowProps:S,placement:$,triggerAnchorPoint:x}=RR({...m,targetRef:n,overlayRef:i,isOpen:t.isOpen,onClose:s&&!h?t.close:null});return PR({isDisabled:s||!t.isOpen}),b.useEffect(()=>{if(t.isOpen&&i.current)return s?_R(o?.current??i.current):vR([o?.current??i.current],{shouldUseInert:!0})},[s,t.isOpen,i,o]),{popoverProps:pt(y,E),arrowProps:S,underlayProps:g,placement:$,triggerAnchorPoint:x}}var RD={};RD={dismiss:"تجاهل"};var OD={};OD={dismiss:"Отхвърляне"};var kD={};kD={dismiss:"Odstranit"};var BD={};BD={dismiss:"Luk"};var LD={};LD={dismiss:"Schließen"};var PD={};PD={dismiss:"Απόρριψη"};var ID={};ID={dismiss:"Dismiss"};var FD={};FD={dismiss:"Descartar"};var jD={};jD={dismiss:"Lõpeta"};var zD={};zD={dismiss:"Hylkää"};var UD={};UD={dismiss:"Rejeter"};var HD={};HD={dismiss:"התעלם"};var VD={};VD={dismiss:"Odbaci"};var GD={};GD={dismiss:"Elutasítás"};var ZD={};ZD={dismiss:"Ignora"};var YD={};YD={dismiss:"閉じる"};var qD={};qD={dismiss:"무시"};var KD={};KD={dismiss:"Atmesti"};var WD={};WD={dismiss:"Nerādīt"};var QD={};QD={dismiss:"Lukk"};var JD={};JD={dismiss:"Negeren"};var XD={};XD={dismiss:"Zignoruj"};var e2={};e2={dismiss:"Descartar"};var t2={};t2={dismiss:"Dispensar"};var n2={};n2={dismiss:"Revocare"};var r2={};r2={dismiss:"Пропустить"};var a2={};a2={dismiss:"Zrušiť"};var i2={};i2={dismiss:"Opusti"};var o2={};o2={dismiss:"Odbaci"};var l2={};l2={dismiss:"Avvisa"};var s2={};s2={dismiss:"Kapat"};var u2={};u2={dismiss:"Скасувати"};var c2={};c2={dismiss:"取消"};var d2={};d2={dismiss:"關閉"};var f2={};f2={"ar-AE":RD,"bg-BG":OD,"cs-CZ":kD,"da-DK":BD,"de-DE":LD,"el-GR":PD,"en-US":ID,"es-ES":FD,"et-EE":jD,"fi-FI":zD,"fr-FR":UD,"he-IL":HD,"hr-HR":VD,"hu-HU":GD,"it-IT":ZD,"ja-JP":YD,"ko-KR":qD,"lt-LT":KD,"lv-LV":WD,"nb-NO":QD,"nl-NL":JD,"pl-PL":XD,"pt-BR":e2,"pt-PT":t2,"ro-RO":n2,"ru-RU":r2,"sk-SK":a2,"sl-SI":i2,"sr-SP":o2,"sv-SE":l2,"tr-TR":s2,"uk-UA":u2,"zh-CN":c2,"zh-TW":d2};function zR(e){return e&&e.__esModule?e.default:e}function A1(e){let{onDismiss:t,...n}=e,i=Xa(zR(f2),"@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 UR({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return ve.createElement(Z0.Provider,{value:t},e)}const HR=b.createContext({});function VR(){return b.useContext(HR)??{}}const m2=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}=VR();if(!e.portalContainer&&d&&(n=d()),!n)return null;let m=e.children;return e.disableFocusManagement||(m=ve.createElement(lR,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!i},m)),m=ve.createElement(m2.Provider,{value:c},ve.createElement(UR,null,m)),n8.createPortal(m,n)}function GR(){let t=b.useContext(m2)?.setContain;ct(()=>{t?.(!0)},[t])}function p2(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 ZR(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]),h2(e,o,b.useCallback(()=>i(!1),[])),o}function YR(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 h2(e,o,b.useCallback(()=>{i(s=>s==="exiting"?"closed":s)},[])),o}function h2(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||pS.flushSync(()=>{n()})}),()=>{o=!0}}},[e,t,n])}const y2=b.createContext(null),T1=b.createContext(null),qR=b.forwardRef(function(t,n){[t,n]=sa(t,n,y2);let i=b.useContext(fy),o=p2(t),s=t.isOpen!=null||t.defaultOpen!=null||!i?o:i,c=YR(n,s.isOpen)||t.isExiting||!1,d=t8(),{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(KR,{...t,triggerRef:t.triggerRef,state:s,popoverRef:n,isExiting:c,dir:m})});function KR({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}=jR({...o,offset:o.offset??8,arrowRef:s,groupRef:m?d:c},e),$=o.popoverRef,x=ZR($,!!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(()=>{$.current&&A(R&&!$.current.querySelector("[role=dialog]"))},[$,R]),b.useEffect(()=>{I&&(o.trigger!=="SubmenuTrigger"||zd()!=="pointer")&&$.current&&!j0($.current)&&ws($.current)},[I,$,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:$,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(gR.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 WR(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]),GR(),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 g2=b.createContext(null),fy=b.createContext(null),QR=b.forwardRef(function(t,n){let i=t["aria-labelledby"];[t,n]=sa(t,n,g2);let{dialogProps:o,titleProps:s}=WR({...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 JR(e){let t=yR({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 XR=["day","month","year"],eO={hour:1,minute:2,second:3};function tO(e,t){let{autoComplete:n,isDisabled:i,name:o}=e,{visuallyHiddenProps:s}=P$({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?H8(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=eO[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=J8(E);if(t.granularity==="day"&&(S=E$(E)),"setSegment"in t)for(let $ in S)XR.includes($)&&t.setSegment($,S[$]),h.includes($)&&t.setSegment($,S[$]);t.setValue(S)}catch{}}}}}function nO(e){let{state:t}=e,{containerProps:n,inputProps:i}=tO({...e},t);return ve.createElement("div",{...n,"data-testid":"hidden-dateinput-container"},ve.createElement("input",i))}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:"Календар",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 _2={};_2={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 E2={};E2={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 S2={};S2={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 $2={};$2={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 x2={};x2={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 C2={};C2={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 A2={};A2={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 w2={};w2={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 T2={};T2={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 N2={};N2={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 M2={};M2={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 R2={};R2={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 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:"달력",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:"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 L2={};L2={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 P2={};P2={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 I2={};I2={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 F2={};F2={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 j2={};j2={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 z2={};z2={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 U2={};U2={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 H2={};H2={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 V2={};V2={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 G2={};G2={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 Z2={};Z2={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 Y2={};Y2={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 q2={};q2={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 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 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 Qd={};Qd={"ar-AE":b2,"bg-BG":v2,"cs-CZ":_2,"da-DK":E2,"de-DE":S2,"el-GR":$2,"en-US":D2,"es-ES":x2,"et-EE":C2,"fi-FI":A2,"fr-FR":w2,"he-IL":T2,"hr-HR":N2,"hu-HU":M2,"it-IT":R2,"ja-JP":O2,"ko-KR":k2,"lt-LT":B2,"lv-LV":L2,"nb-NO":P2,"nl-NL":I2,"pl-PL":F2,"pt-BR":j2,"pt-PT":z2,"ro-RO":U2,"ru-RU":H2,"sk-SK":V2,"sl-SI":G2,"sr-SP":Z2,"sv-SE":Y2,"tr-TR":q2,"uk-UA":K2,"zh-CN":W2,"zh-TW":Q2};function J2(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 rO(e){return e&&e.__esModule?e.default:e}const X2=new WeakMap,Zc="__reactAriaDateFieldRole",aO="__reactAriaDateFieldFocusManager";function iO(e,t,n){let{isInvalid:i,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:c,fieldProps:d,descriptionProps:m,errorMessageProps:h}=V$({...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(rO(Qd),"@react-aria/datepicker"),S=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",$=t.maxGranularity==="hour"?"time":"date",x=t.value?E.format(S,{[$]: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[aO],A=b.useMemo(()=>I||cy(n),[I,n]),L=J2(t,n,e[Zc]==="presentation");X2.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]),QM(e.inputRef,t.defaultValue,t.setValue),JM({...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 oO(e){return e&&e.__esModule?e.default:e}function lO(){let{locale:e}=sn(),t=sS(oO(Qd),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new sO(e,t)}},[e,t])}class sO{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:s}=sn(),c=lO(),{ariaLabel:d,ariaLabelledBy:m,ariaDescribedBy:h,focusManager:y}=X2.get(t),g=e.isPlaceholder?"":e.text,E=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),S=or({month:"long",timeZone:E.timeZone}),$=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=$.format(t.dateValue));let{spinButtonProps:x}=iR({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 vS(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}=JR({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=cO(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&&L$(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(),O=!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:O,suppressContentEditableWarning:O,spellCheck:O?"false":void 0,autoCorrect:O?"off":void 0,[parseInt(ve.version,10)>=17?"enterKeyHint":"enterkeyhint"]:O?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!O?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:I,onFocus:pe,style:F,onPointerDown(G){G.stopPropagation()},onMouseDown(G){G.stopPropagation()}})}}function cO(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 ex={};ex={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var tx={};tx={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var nx={};nx={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 rx={};rx={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 ax={};ax={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 ix={};ix={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var ox={};ox={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 lx={};lx={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 sx={};sx={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 cx={};cx={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 dx={};dx={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var fx={};fx={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 mx={};mx={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 px={};px={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 hx={};hx={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var yx={};yx={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이후여야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var gx={};gx={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 bx={};bx={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 vx={};vx={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 _x={};_x={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 Ex={};Ex={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 Sx={};Sx={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 $x={};$x={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 xx={};xx={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var Cx={};Cx={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 Ax={};Ax={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 wx={};wx={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 Tx={};Tx={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 Nx={};Nx={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 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={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var kx={};kx={"ar-AE":ex,"bg-BG":tx,"cs-CZ":nx,"da-DK":rx,"de-DE":ax,"el-GR":ix,"en-US":ox,"es-ES":lx,"et-EE":sx,"fi-FI":ux,"fr-FR":cx,"he-IL":dx,"hr-HR":fx,"hu-HU":mx,"it-IT":px,"ja-JP":hx,"ko-KR":yx,"lt-LT":gx,"lv-LV":bx,"nb-NO":vx,"nl-NL":_x,"pl-PL":Ex,"pt-BR":Sx,"pt-PT":$x,"ro-RO":Dx,"ru-RU":xx,"sk-SK":Cx,"sl-SI":Ax,"sr-SP":wx,"sv-SE":Tx,"tr-TR":Nx,"uk-UA":Mx,"zh-CN":Rx,"zh-TW":Ox};function dO(e){return e&&e.__esModule?e.default:e}const fO=new Ki(dO(kx));function mO(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function Bx(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=mO(),g=Ki.getGlobalDictionaryForPackage("@react-stately/datepicker")||fO,E=new lS(y,g),S=new ra(y,Qo({},o)),$=S.resolvedOptions().timeZone;c&&t!=null&&h.push(E.format("rangeUnderflow",{minValue:S.format(t.toDate($))})),s&&n!=null&&h.push(E.format("rangeOverflow",{maxValue:S.format(n.toDate($))})),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 pO={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},hO={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Qo(e,t){e={...t.shouldForceLeadingZeros?hO:pO,...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 Lx(e,t){if(e===null)return null;if(e)return Et(e,t)}function yO(e,t,n,i){if(e)return Lx(e,n);let o=Et(a$(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 Px(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 gO=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 bO(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?gO.getStringForLocale(e,n):"––"}class Dr{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 Dr(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=$i(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=$i(s.month??1,n,1,this.calendar.getMaximumMonthsInYear());break;case"day":s.day=$i(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=$i(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=$i(s.dayPeriod??0,n,0,1);break;case"minute":s.minute=$i(s.minute??0,n,0,59,!0);break;case"second":s.second=$i(s.second??0,n,0,59,!0);break}return s}toValue(t){if("hour"in t){let n=this.hour;n!=null?n=vO(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 $i(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 vO(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},_O={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function EO(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]=Px(y,e.granularity),S=E||"UTC";if(y&&!(g in y))throw new Error("Invalid granularity "+g+" for value "+y.toString());let[$,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(()=>Lx(w,$)??null,[w,$]),[L,M]=b.useState(()=>new Dr($,x,A)),Z=$.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(()=>yO(e.placeholderValue,g,$,E),[e.placeholderValue,g,$,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,O]=b.useState($),[B,X]=b.useState(x);(A!==Ae||x!==B||!Vd($,de))&&(L=new Dr($,x,A),j(A),O($),X(x),M(L));let F=T=>{if(!(e.isDisabled||e.isReadOnly))if(T==null||T instanceof Dr&&T.isCleared(ye))M(new Dr($,x,A)),R(null);else if(!(T instanceof Dr))T=Et(T,y?.calendar||new pn),M(new Dr($,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 Dr($,x,A)),R(ie);return}}}M(T)}},G=b.useMemo(()=>L.toValue(A??J).toDate(S),[L,S,A,J]),C=b.useMemo(()=>SO(G,L,ne,pe,$,t,g),[G,ne,pe,L,$,t,g]),U=(T,N)=>{F(L.cycle(T,N,J,ye))},W=b.useMemo(()=>Bx(w,d,m,h,V),[w,d,m,h,V]),Y=H$({...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:$,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 Dr($,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 SO(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=_O[E.type]||E.type,$=rh[S];S==="era"&&o.getEras().length===1&&($=!1);let x=rh[S]&&t[E.type]==null,w=rh[S]?bO(S,E.value,s):null,R={type:S,text:x?w:E.value,...t.getSegmentLimits(S),isPlaceholder:x,placeholder:w,isEditable:$};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 Ix=b.createContext(null),Jd=b.createContext(null),my=b.createContext(null),$O=b.forwardRef(function(t,n){let i=b.useContext(Jd),o=b.useContext(my);return i||o?ve.createElement(Fx,{...t,ref:n}):ve.createElement(DO,{...t,ref:n})}),DO=b.forwardRef((e,t)=>{let[n,i]=sa({slot:e.slot},t,Ix),{locale:o}=sn(),s=EO({...n,locale:o,createCalendar:O$}),c=b.useRef(null),{fieldProps:d,inputProps:m}=iO({...n,inputRef:c},s,i);return ve.createElement(Id,{values:[[Jd,s],[Z$,{...m,ref:c}],[Kd,{...d,ref:i,isInvalid:s.isInvalid,isDisabled:s.isDisabled}]]},ve.createElement(Fx,e))}),Fx=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(G$,{...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(rR,{className:""}))}),xO=b.forwardRef(function({segment:t,...n},i){let o=b.useContext(Jd),s=b.useContext(my),c=o??s,d=ZE(i),{segmentProps:m}=uO(t,c,d),{focusProps:h,isFocused:y,isFocusVisible:g}=cl(),{hoverProps:E,isHovered:S}=Zs({...n,isDisabled:c.isDisabled||t.type==="literal"}),$=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),...$,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 CO(e){return e&&e.__esModule?e.default:e}function AO(e,t,n){let i=Ar(),o=Ar(),s=Ar(),c=Xa(CO(Qd),"@react-aria/datepicker"),{isInvalid:d,validationErrors:m,validationDetails:h}=t.displayValidation,{labelProps:y,fieldProps:g,descriptionProps:E,errorMessageProps:S}=V$({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||m}),$=J2(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,$,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 wO(e){let t=p2(e),[n,i]=As(e.value,e.defaultValue||null,e.onChange),[o]=b.useState(n),s=n||e.placeholderValue||null,[c,d]=Px(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,$]=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(()=>Bx(n,R,I,A,w),[n,R,I,A,w]),M=H$({...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),$(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):$(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 TO=b.createContext(null),NO=b.createContext(null),MO=[Kd,Ys,gS,W0],RO=b.forwardRef(function(t,n){[t,n]=sa(t,n,TO);let{validationBehavior:i}=ad(WM)||{},o=t.validationBehavior??i??"native",s=wO({...t,validationBehavior:o}),c=b.useRef(null),[d,m]=dN(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:h,labelProps:y,fieldProps:g,buttonProps:E,dialogProps:S,calendarProps:$,descriptionProps:x,errorMessageProps:w,...R}=AO({...fN(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:[[NO,s],[Kd,{...h,ref:c,isInvalid:s.isInvalid}],[Ix,g],[Ys,{...E,isPressed:s.isOpen}],[gS,{...y,ref:d,elementType:"span"}],[pd,$],[fy,s],[y2,{trigger:"DatePicker",triggerRef:c,placement:"bottom start",clearContexts:MO}],[g2,S],[W0,{slots:{description:x,errorMessage:w}}],[ZM,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(nO,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:s}))});function ah(e){if(typeof e!="string"||e.trim()==="")return null;try{return E$(e)}catch{return null}}function OO(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 kO({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,...$}){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(RO,{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?.(OO(V?V.toString():"")),children:[v.jsxs(G$,{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($O,{className:"date-picker-input",children:V=>v.jsx(xO,{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,...$,readOnly:!0}),v.jsx(qR,{className:"date-picker-popover",placement:"bottom start",offset:6,shouldFlip:!0,children:v.jsx(QR,{className:"date-picker-dialog",children:v.jsxs(IM,{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(GM,{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(VM,{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(A8,{className:"sr-only"})]}),v.jsx(Fp,{className:"date-picker-nav-button",slot:"next",type:"button",children:"›"})]}),v.jsxs(FM,{className:"date-picker-grid",children:[v.jsx(I$,{children:V=>v.jsx(F$,{className:"date-picker-header-cell",children:V})}),v.jsx(j$,{children:V=>v.jsx(HM,{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 BO({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 LO({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 PO({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 IO({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 $=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=>{$.current&&!$.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)},O=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(),O(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:$,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:()=>O(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:$,disabled:x,onFocus:w,onBlur:R,name:I,autoFocus:A}=h,L=S??$??"";return v.jsx(IO,{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 FO(){try{typeof k1<"u"&&k1?.apiKey}catch{}return""}function jO(){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=FO();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 zO(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 UO({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),[$,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 jO().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&&O(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 O=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=zO(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:$||h.disabled,...h}),$&&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:()=>O(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 jx extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const zx={};function zi(e){return zx}function Ux(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 HO(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 VO(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Hx="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function gd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const GO=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 Vx(e){return Ps(e)?{...e}:Array.isArray(e)?[...e]:e}const ZO=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 YO(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const qO={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 KO(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 WO(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 QO(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 JO(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 XO(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 ek(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 tk(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 Gx(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 Zx=(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})},Yx=ue("$ZodError",Zx),qx=ue("$ZodError",Zx,{Parent:Error});function nk(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 rk(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 Hx(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 Hx(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??Yx)(s.issues.map(c=>Ui(c,o,zi())))}:{success:!0,data:s.value}},ak=Xd(qx),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}},ik=ef(qx),ok=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return vy(e)(t,n,o)},lk=e=>(t,n,i)=>vy(e)(t,n,i),sk=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),ck=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Xd(e)(t,n,o)},dk=e=>(t,n,i)=>Xd(e)(t,n,i),fk=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ef(e)(t,n,o)},mk=e=>async(t,n,i)=>ef(e)(t,n,i),pk=/^[cC][^\s-]{8,}$/,hk=/^[0-9a-z]+$/,yk=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,gk=/^[0-9a-vA-V]{20}$/,bk=/^[A-Za-z0-9]{27}$/,vk=/^[a-zA-Z0-9_-]{21}$/,_k=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ek=/^([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)$/,Sk=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,$k="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Dk(){return new RegExp($k,"u")}const xk=/^(?:(?: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])$/,Ck=/^(([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}|:))$/,Ak=/^((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])$/,wk=/^(([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])$/,Tk=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Kx=/^[A-Za-z0-9_-]*$/,Nk=/^\+[1-9]\d{6,14}$/,Wx="(?:(?:\\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])))",Mk=new RegExp(`^${Wx}$`);function Qx(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 Rk(e){return new RegExp(`^${Qx(e)}$`)}function Ok(e){const t=Qx({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(`^${Wx}T(?:${i})$`)}const kk=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Bk=/^-?\d+$/,Lk=/^-?\d+(?:\.\d+)?$/,Pk=/^(?:true|false)$/i,Ik=/^[^A-Z]*$/,Fk=/^[^a-z]*$/,Tn=ue("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Jx={number:"number",bigint:"bigint",object:"date"},Xx=ue("$ZodCheckLessThan",(e,t)=>{Tn.init(e,t);const n=Jx[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})}}),e5=ue("$ZodCheckGreaterThan",(e,t)=>{Tn.init(e,t);const n=Jx[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})}}),jk=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):HO(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})}}),zk=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]=qO[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=Bk)}),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})}}),Uk=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})}}),Hk=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})}}),Vk=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=()=>{})}),Gk=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})}}),Zk=ue("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ik),tf.init(e,t)}),Yk=ue("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Fk),tf.init(e,t)}),qk=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})}}),Kk=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})}}),Wk=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})}}),Qk=ue("$ZodCheckOverwrite",(e,t)=>{Tn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Jk{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(`
|
|
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 zR(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}=PR({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!s||h,isKeyboardDismissDisabled:c,shouldCloseOnInteractOutside:d},o??i),{overlayProps:E,arrowProps:S,placement:$,triggerAnchorPoint:x}=OR({...m,targetRef:n,overlayRef:i,isOpen:t.isOpen,onClose:s&&!h?t.close:null});return IR({isDisabled:s||!t.isOpen}),b.useEffect(()=>{if(t.isOpen&&i.current)return s?ER(o?.current??i.current):_R([o?.current??i.current],{shouldUseInert:!0})},[s,t.isOpen,i,o]),{popoverProps:pt(y,E),arrowProps:S,underlayProps:g,placement:$,triggerAnchorPoint:x}}var RD={};RD={dismiss:"تجاهل"};var OD={};OD={dismiss:"Отхвърляне"};var kD={};kD={dismiss:"Odstranit"};var BD={};BD={dismiss:"Luk"};var LD={};LD={dismiss:"Schließen"};var PD={};PD={dismiss:"Απόρριψη"};var ID={};ID={dismiss:"Dismiss"};var FD={};FD={dismiss:"Descartar"};var jD={};jD={dismiss:"Lõpeta"};var zD={};zD={dismiss:"Hylkää"};var UD={};UD={dismiss:"Rejeter"};var HD={};HD={dismiss:"התעלם"};var VD={};VD={dismiss:"Odbaci"};var GD={};GD={dismiss:"Elutasítás"};var ZD={};ZD={dismiss:"Ignora"};var YD={};YD={dismiss:"閉じる"};var qD={};qD={dismiss:"무시"};var KD={};KD={dismiss:"Atmesti"};var WD={};WD={dismiss:"Nerādīt"};var QD={};QD={dismiss:"Lukk"};var JD={};JD={dismiss:"Negeren"};var XD={};XD={dismiss:"Zignoruj"};var e2={};e2={dismiss:"Descartar"};var t2={};t2={dismiss:"Dispensar"};var n2={};n2={dismiss:"Revocare"};var r2={};r2={dismiss:"Пропустить"};var a2={};a2={dismiss:"Zrušiť"};var i2={};i2={dismiss:"Opusti"};var o2={};o2={dismiss:"Odbaci"};var l2={};l2={dismiss:"Avvisa"};var s2={};s2={dismiss:"Kapat"};var u2={};u2={dismiss:"Скасувати"};var c2={};c2={dismiss:"取消"};var d2={};d2={dismiss:"關閉"};var f2={};f2={"ar-AE":RD,"bg-BG":OD,"cs-CZ":kD,"da-DK":BD,"de-DE":LD,"el-GR":PD,"en-US":ID,"es-ES":FD,"et-EE":jD,"fi-FI":zD,"fr-FR":UD,"he-IL":HD,"hr-HR":VD,"hu-HU":GD,"it-IT":ZD,"ja-JP":YD,"ko-KR":qD,"lt-LT":KD,"lv-LV":WD,"nb-NO":QD,"nl-NL":JD,"pl-PL":XD,"pt-BR":e2,"pt-PT":t2,"ro-RO":n2,"ru-RU":r2,"sk-SK":a2,"sl-SI":i2,"sr-SP":o2,"sv-SE":l2,"tr-TR":s2,"uk-UA":u2,"zh-CN":c2,"zh-TW":d2};function UR(e){return e&&e.__esModule?e.default:e}function A1(e){let{onDismiss:t,...n}=e,i=Xa(UR(f2),"@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 HR({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return ve.createElement(Z0.Provider,{value:t},e)}const VR=b.createContext({});function GR(){return b.useContext(VR)??{}}const m2=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}=GR();if(!e.portalContainer&&d&&(n=d()),!n)return null;let m=e.children;return e.disableFocusManagement||(m=ve.createElement(sR,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!i},m)),m=ve.createElement(m2.Provider,{value:c},ve.createElement(HR,null,m)),r8.createPortal(m,n)}function ZR(){let t=b.useContext(m2)?.setContain;ct(()=>{t?.(!0)},[t])}function p2(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 YR(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]),h2(e,o,b.useCallback(()=>i(!1),[])),o}function qR(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 h2(e,o,b.useCallback(()=>{i(s=>s==="exiting"?"closed":s)},[])),o}function h2(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||pS.flushSync(()=>{n()})}),()=>{o=!0}}},[e,t,n])}const y2=b.createContext(null),T1=b.createContext(null),KR=b.forwardRef(function(t,n){[t,n]=sa(t,n,y2);let i=b.useContext(fy),o=p2(t),s=t.isOpen!=null||t.defaultOpen!=null||!i?o:i,c=qR(n,s.isOpen)||t.isExiting||!1,d=n8(),{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(WR,{...t,triggerRef:t.triggerRef,state:s,popoverRef:n,isExiting:c,dir:m})});function WR({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}=zR({...o,offset:o.offset??8,arrowRef:s,groupRef:m?d:c},e),$=o.popoverRef,x=YR($,!!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(()=>{$.current&&A(R&&!$.current.querySelector("[role=dialog]"))},[$,R]),b.useEffect(()=>{I&&(o.trigger!=="SubmenuTrigger"||zd()!=="pointer")&&$.current&&!j0($.current)&&ws($.current)},[I,$,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:$,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(bR.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 QR(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]),ZR(),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 g2=b.createContext(null),fy=b.createContext(null),JR=b.forwardRef(function(t,n){let i=t["aria-labelledby"];[t,n]=sa(t,n,g2);let{dialogProps:o,titleProps:s}=QR({...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 XR(e){let t=gR({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 eO=["day","month","year"],tO={hour:1,minute:2,second:3};function nO(e,t){let{autoComplete:n,isDisabled:i,name:o}=e,{visuallyHiddenProps:s}=P$({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?V8(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=tO[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=X8(E);if(t.granularity==="day"&&(S=E$(E)),"setSegment"in t)for(let $ in S)eO.includes($)&&t.setSegment($,S[$]),h.includes($)&&t.setSegment($,S[$]);t.setValue(S)}catch{}}}}}function rO(e){let{state:t}=e,{containerProps:n,inputProps:i}=nO({...e},t);return ve.createElement("div",{...n,"data-testid":"hidden-dateinput-container"},ve.createElement("input",i))}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:"Календар",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 _2={};_2={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 E2={};E2={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 S2={};S2={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 $2={};$2={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 x2={};x2={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 C2={};C2={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 A2={};A2={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 w2={};w2={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 T2={};T2={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 N2={};N2={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 M2={};M2={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 R2={};R2={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 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:"달력",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:"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 L2={};L2={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 P2={};P2={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 I2={};I2={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 F2={};F2={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 j2={};j2={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 z2={};z2={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 U2={};U2={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 H2={};H2={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 V2={};V2={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 G2={};G2={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 Z2={};Z2={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 Y2={};Y2={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 q2={};q2={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 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 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 Qd={};Qd={"ar-AE":b2,"bg-BG":v2,"cs-CZ":_2,"da-DK":E2,"de-DE":S2,"el-GR":$2,"en-US":D2,"es-ES":x2,"et-EE":C2,"fi-FI":A2,"fr-FR":w2,"he-IL":T2,"hr-HR":N2,"hu-HU":M2,"it-IT":R2,"ja-JP":O2,"ko-KR":k2,"lt-LT":B2,"lv-LV":L2,"nb-NO":P2,"nl-NL":I2,"pl-PL":F2,"pt-BR":j2,"pt-PT":z2,"ro-RO":U2,"ru-RU":H2,"sk-SK":V2,"sl-SI":G2,"sr-SP":Z2,"sv-SE":Y2,"tr-TR":q2,"uk-UA":K2,"zh-CN":W2,"zh-TW":Q2};function J2(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 aO(e){return e&&e.__esModule?e.default:e}const X2=new WeakMap,Zc="__reactAriaDateFieldRole",iO="__reactAriaDateFieldFocusManager";function oO(e,t,n){let{isInvalid:i,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:c,fieldProps:d,descriptionProps:m,errorMessageProps:h}=V$({...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(aO(Qd),"@react-aria/datepicker"),S=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",$=t.maxGranularity==="hour"?"time":"date",x=t.value?E.format(S,{[$]: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[iO],A=b.useMemo(()=>I||cy(n),[I,n]),L=J2(t,n,e[Zc]==="presentation");X2.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]),JM(e.inputRef,t.defaultValue,t.setValue),XM({...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 lO(e){return e&&e.__esModule?e.default:e}function sO(){let{locale:e}=sn(),t=sS(lO(Qd),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new uO(e,t)}},[e,t])}class uO{constructor(t,n){this.locale=t,this.dictionary=n}of(t){return this.dictionary.getStringForLocale(t,this.locale)}}function cO(e,t,n){let i=b.useRef(""),{locale:o,direction:s}=sn(),c=sO(),{ariaLabel:d,ariaLabelledBy:m,ariaDescribedBy:h,focusManager:y}=X2.get(t),g=e.isPlaceholder?"":e.text,E=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),S=or({month:"long",timeZone:E.timeZone}),$=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=$.format(t.dateValue));let{spinButtonProps:x}=oR({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 vS(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"&&(al()?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}=XR({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=dO(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&&L$(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(),O=!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:O,suppressContentEditableWarning:O,spellCheck:O?"false":void 0,autoCorrect:O?"off":void 0,[parseInt(ve.version,10)>=17?"enterKeyHint":"enterkeyhint"]:O?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!O?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:I,onFocus:pe,style:F,onPointerDown(G){G.stopPropagation()},onMouseDown(G){G.stopPropagation()}})}}function dO(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 ex={};ex={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var tx={};tx={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var nx={};nx={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 rx={};rx={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 ax={};ax={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 ix={};ix={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var ox={};ox={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 lx={};lx={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 sx={};sx={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 cx={};cx={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 dx={};dx={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var fx={};fx={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 mx={};mx={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 px={};px={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 hx={};hx={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var yx={};yx={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이후여야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var gx={};gx={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 bx={};bx={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 vx={};vx={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 _x={};_x={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 Ex={};Ex={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 Sx={};Sx={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 $x={};$x={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 xx={};xx={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var Cx={};Cx={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 Ax={};Ax={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 wx={};wx={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 Tx={};Tx={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 Nx={};Nx={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 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={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var kx={};kx={"ar-AE":ex,"bg-BG":tx,"cs-CZ":nx,"da-DK":rx,"de-DE":ax,"el-GR":ix,"en-US":ox,"es-ES":lx,"et-EE":sx,"fi-FI":ux,"fr-FR":cx,"he-IL":dx,"hr-HR":fx,"hu-HU":mx,"it-IT":px,"ja-JP":hx,"ko-KR":yx,"lt-LT":gx,"lv-LV":bx,"nb-NO":vx,"nl-NL":_x,"pl-PL":Ex,"pt-BR":Sx,"pt-PT":$x,"ro-RO":Dx,"ru-RU":xx,"sk-SK":Cx,"sl-SI":Ax,"sr-SP":wx,"sv-SE":Tx,"tr-TR":Nx,"uk-UA":Mx,"zh-CN":Rx,"zh-TW":Ox};function fO(e){return e&&e.__esModule?e.default:e}const mO=new Ki(fO(kx));function pO(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function Bx(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=pO(),g=Ki.getGlobalDictionaryForPackage("@react-stately/datepicker")||mO,E=new lS(y,g),S=new ra(y,Qo({},o)),$=S.resolvedOptions().timeZone;c&&t!=null&&h.push(E.format("rangeUnderflow",{minValue:S.format(t.toDate($))})),s&&n!=null&&h.push(E.format("rangeOverflow",{maxValue:S.format(n.toDate($))})),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 hO={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},yO={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Qo(e,t){e={...t.shouldForceLeadingZeros?yO:hO,...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 Lx(e,t){if(e===null)return null;if(e)return Et(e,t)}function gO(e,t,n,i){if(e)return Lx(e,n);let o=Et(a$(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 Px(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 bO=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 vO(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?bO.getStringForLocale(e,n):"––"}class Dr{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 Dr(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=$i(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=$i(s.month??1,n,1,this.calendar.getMaximumMonthsInYear());break;case"day":s.day=$i(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=$i(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=$i(s.dayPeriod??0,n,0,1);break;case"minute":s.minute=$i(s.minute??0,n,0,59,!0);break;case"second":s.second=$i(s.second??0,n,0,59,!0);break}return s}toValue(t){if("hour"in t){let n=this.hour;n!=null?n=_O(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 $i(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 _O(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},EO={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function SO(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]=Px(y,e.granularity),S=E||"UTC";if(y&&!(g in y))throw new Error("Invalid granularity "+g+" for value "+y.toString());let[$,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(()=>Lx(w,$)??null,[w,$]),[L,M]=b.useState(()=>new Dr($,x,A)),Z=$.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(()=>gO(e.placeholderValue,g,$,E),[e.placeholderValue,g,$,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,O]=b.useState($),[B,X]=b.useState(x);(A!==Ae||x!==B||!Vd($,de))&&(L=new Dr($,x,A),j(A),O($),X(x),M(L));let F=T=>{if(!(e.isDisabled||e.isReadOnly))if(T==null||T instanceof Dr&&T.isCleared(ye))M(new Dr($,x,A)),R(null);else if(!(T instanceof Dr))T=Et(T,y?.calendar||new pn),M(new Dr($,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 Dr($,x,A)),R(ie);return}}}M(T)}},G=b.useMemo(()=>L.toValue(A??J).toDate(S),[L,S,A,J]),C=b.useMemo(()=>$O(G,L,ne,pe,$,t,g),[G,ne,pe,L,$,t,g]),U=(T,N)=>{F(L.cycle(T,N,J,ye))},W=b.useMemo(()=>Bx(w,d,m,h,V),[w,d,m,h,V]),Y=H$({...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:$,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 Dr($,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 $O(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=EO[E.type]||E.type,$=rh[S];S==="era"&&o.getEras().length===1&&($=!1);let x=rh[S]&&t[E.type]==null,w=rh[S]?vO(S,E.value,s):null,R={type:S,text:x?w:E.value,...t.getSegmentLimits(S),isPlaceholder:x,placeholder:w,isEditable:$};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 Ix=b.createContext(null),Jd=b.createContext(null),my=b.createContext(null),DO=b.forwardRef(function(t,n){let i=b.useContext(Jd),o=b.useContext(my);return i||o?ve.createElement(Fx,{...t,ref:n}):ve.createElement(xO,{...t,ref:n})}),xO=b.forwardRef((e,t)=>{let[n,i]=sa({slot:e.slot},t,Ix),{locale:o}=sn(),s=SO({...n,locale:o,createCalendar:O$}),c=b.useRef(null),{fieldProps:d,inputProps:m}=oO({...n,inputRef:c},s,i);return ve.createElement(Id,{values:[[Jd,s],[Z$,{...m,ref:c}],[Kd,{...d,ref:i,isInvalid:s.isInvalid,isDisabled:s.isDisabled}]]},ve.createElement(Fx,e))}),Fx=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(G$,{...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(aR,{className:""}))}),CO=b.forwardRef(function({segment:t,...n},i){let o=b.useContext(Jd),s=b.useContext(my),c=o??s,d=ZE(i),{segmentProps:m}=cO(t,c,d),{focusProps:h,isFocused:y,isFocusVisible:g}=ul(),{hoverProps:E,isHovered:S}=Zs({...n,isDisabled:c.isDisabled||t.type==="literal"}),$=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),...$,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 AO(e){return e&&e.__esModule?e.default:e}function wO(e,t,n){let i=Ar(),o=Ar(),s=Ar(),c=Xa(AO(Qd),"@react-aria/datepicker"),{isInvalid:d,validationErrors:m,validationDetails:h}=t.displayValidation,{labelProps:y,fieldProps:g,descriptionProps:E,errorMessageProps:S}=V$({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||m}),$=J2(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,$,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 TO(e){let t=p2(e),[n,i]=As(e.value,e.defaultValue||null,e.onChange),[o]=b.useState(n),s=n||e.placeholderValue||null,[c,d]=Px(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,$]=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(()=>Bx(n,R,I,A,w),[n,R,I,A,w]),M=H$({...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),$(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):$(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 NO=b.createContext(null),MO=b.createContext(null),RO=[Kd,Ys,gS,W0],OO=b.forwardRef(function(t,n){[t,n]=sa(t,n,NO);let{validationBehavior:i}=ad(QM)||{},o=t.validationBehavior??i??"native",s=TO({...t,validationBehavior:o}),c=b.useRef(null),[d,m]=fN(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:h,labelProps:y,fieldProps:g,buttonProps:E,dialogProps:S,calendarProps:$,descriptionProps:x,errorMessageProps:w,...R}=wO({...mN(t),label:m,validationBehavior:o},s,c),{focusProps:I,isFocused:A,isFocusVisible:L}=ul({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:[[MO,s],[Kd,{...h,ref:c,isInvalid:s.isInvalid}],[Ix,g],[Ys,{...E,isPressed:s.isOpen}],[gS,{...y,ref:d,elementType:"span"}],[pd,$],[fy,s],[y2,{trigger:"DatePicker",triggerRef:c,placement:"bottom start",clearContexts:RO}],[g2,S],[W0,{slots:{description:x,errorMessage:w}}],[YM,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(rO,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:s}))});function ah(e){if(typeof e!="string"||e.trim()==="")return null;try{return E$(e)}catch{return null}}function kO(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 BO({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,...$}){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(OO,{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?.(kO(V?V.toString():"")),children:[v.jsxs(G$,{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(DO,{className:"date-picker-input",children:V=>v.jsx(CO,{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,...$,readOnly:!0}),v.jsx(KR,{className:"date-picker-popover",placement:"bottom start",offset:6,shouldFlip:!0,children:v.jsx(JR,{className:"date-picker-dialog",children:v.jsxs(FM,{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(ZM,{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(GM,{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(w8,{className:"sr-only"})]}),v.jsx(Fp,{className:"date-picker-nav-button",slot:"next",type:"button",children:"›"})]}),v.jsxs(jM,{className:"date-picker-grid",children:[v.jsx(I$,{children:V=>v.jsx(F$,{className:"date-picker-header-cell",children:V})}),v.jsx(j$,{children:V=>v.jsx(VM,{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 LO({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 PO({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 IO({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 FO({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 $=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=>{$.current&&!$.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)},O=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(),O(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:$,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:()=>O(F),children:F.label},`${F.value}-${G}`)):v.jsx("div",{className:"combobox-empty",role:"status",children:"No matches"})})]})})}function cs({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:$,disabled:x,onFocus:w,onBlur:R,name:I,autoFocus:A}=h,L=S??$??"";return v.jsx(FO,{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 jO(){try{typeof k1<"u"&&k1?.apiKey}catch{}return""}function zO(){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=jO();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 UO(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 HO({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),[$,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 zO().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&&O(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 O=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=UO(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:$||h.disabled,...h}),$&&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:()=>O(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 jx extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const zx={};function zi(e){return zx}function Ux(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 VO(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 GO(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Hx="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function gd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ZO=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 Vx(e){return Ps(e)?{...e}:Array.isArray(e)?[...e]:e}const YO=new Set(["string","number","symbol"]);function ol(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 qO(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const KO={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 WO(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 QO(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 JO(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 XO(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 ek(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 tk(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 nk(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 Gx(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 Zx=(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})},Yx=ue("$ZodError",Zx),qx=ue("$ZodError",Zx,{Parent:Error});function rk(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 ak(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 Hx(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 Hx(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??Yx)(s.issues.map(c=>Ui(c,o,zi())))}:{success:!0,data:s.value}},ik=Xd(qx),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}},ok=ef(qx),lk=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return vy(e)(t,n,o)},sk=e=>(t,n,i)=>vy(e)(t,n,i),uk=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _y(e)(t,n,o)},ck=e=>async(t,n,i)=>_y(e)(t,n,i),dk=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Xd(e)(t,n,o)},fk=e=>(t,n,i)=>Xd(e)(t,n,i),mk=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ef(e)(t,n,o)},pk=e=>async(t,n,i)=>ef(e)(t,n,i),hk=/^[cC][^\s-]{8,}$/,yk=/^[0-9a-z]+$/,gk=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,bk=/^[0-9a-vA-V]{20}$/,vk=/^[A-Za-z0-9]{27}$/,_k=/^[a-zA-Z0-9_-]{21}$/,Ek=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Sk=/^([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)$/,$k=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Dk="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function xk(){return new RegExp(Dk,"u")}const 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])$/,Ak=/^(([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}|:))$/,wk=/^((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])$/,Tk=/^(([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])$/,Nk=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Kx=/^[A-Za-z0-9_-]*$/,Mk=/^\+[1-9]\d{6,14}$/,Wx="(?:(?:\\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])))",Rk=new RegExp(`^${Wx}$`);function Qx(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 Ok(e){return new RegExp(`^${Qx(e)}$`)}function kk(e){const t=Qx({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(`^${Wx}T(?:${i})$`)}const Bk=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Lk=/^-?\d+$/,Pk=/^-?\d+(?:\.\d+)?$/,Ik=/^(?:true|false)$/i,Fk=/^[^A-Z]*$/,jk=/^[^a-z]*$/,Tn=ue("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Jx={number:"number",bigint:"bigint",object:"date"},Xx=ue("$ZodCheckLessThan",(e,t)=>{Tn.init(e,t);const n=Jx[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})}}),e5=ue("$ZodCheckGreaterThan",(e,t)=>{Tn.init(e,t);const n=Jx[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})}}),zk=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):VO(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})}}),Uk=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]=KO[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=Lk)}),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})}}),Hk=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})}}),Vk=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})}}),Gk=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=()=>{})}),Zk=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})}}),Yk=ue("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Fk),tf.init(e,t)}),qk=ue("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=jk),tf.init(e,t)}),Kk=ue("$ZodCheckIncludes",(e,t)=>{Tn.init(e,t);const n=ol(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})}}),Wk=ue("$ZodCheckStartsWith",(e,t)=>{Tn.init(e,t);const n=new RegExp(`^${ol(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})}}),Qk=ue("$ZodCheckEndsWith",(e,t)=>{Tn.init(e,t);const n=new RegExp(`.*${ol(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})}}),Jk=ue("$ZodCheckOverwrite",(e,t)=>{Tn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Xk{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
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
|
|
84
|
+
`))}}const eB={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=eB;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=ik(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return ok(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()??Bk(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)}),tB=ue("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Sk),At.init(e,t)}),nB=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)}),rB=ue("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=$k),At.init(e,t)}),aB=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})}}}),iB=ue("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=xk()),At.init(e,t)}),oB=ue("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=_k),At.init(e,t)}),lB=ue("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=hk),At.init(e,t)}),sB=ue("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=yk),At.init(e,t)}),uB=ue("$ZodULID",(e,t)=>{t.pattern??(t.pattern=gk),At.init(e,t)}),cB=ue("$ZodXID",(e,t)=>{t.pattern??(t.pattern=bk),At.init(e,t)}),dB=ue("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=vk),At.init(e,t)}),fB=ue("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=kk(t)),At.init(e,t)}),mB=ue("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Rk),At.init(e,t)}),pB=ue("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ok(t)),At.init(e,t)}),hB=ue("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ek),At.init(e,t)}),yB=ue("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ck),At.init(e,t),e._zod.bag.format="ipv4"}),gB=ue("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ak),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})}}}),bB=ue("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=wk),At.init(e,t)}),vB=ue("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Tk),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 t5(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const _B=ue("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Nk),At.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{t5(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function EB(e){if(!Kx.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return t5(n)}const SB=ue("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Kx),At.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{EB(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),$B=ue("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Mk),At.init(e,t)});function DB(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 xB=ue("$ZodJWT",(e,t)=>{At.init(e,t),e._zod.check=n=>{DB(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),n5=ue("$ZodNumber",(e,t)=>{kt.init(e,t),e._zod.pattern=e._zod.bag.pattern??Pk,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}}),CB=ue("$ZodNumberFormat",(e,t)=>{Uk.init(e,t),n5.init(e,t)}),AB=ue("$ZodBoolean",(e,t)=>{kt.init(e,t),e._zod.pattern=Ik,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}}),wB=ue("$ZodUnknown",(e,t)=>{kt.init(e,t),e._zod.parse=n=>n}),TB=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(...Gx(n,e.issues)),t.value[n]=e.value}const NB=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(...Gx(n,e.issues))}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function r5(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=qO(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function a5(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 MB=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(()=>r5(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],$=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,$))):bd(x,d,E,h,$)}return s?a5(y,h,d,m,i.value,e):y.length?Promise.all(y).then(()=>d):d}}),RB=ue("$ZodObjectJIT",(e,t)=>{MB.init(e,t);const n=e._zod.parse,i=hy(()=>r5(t)),o=E=>{const S=new Xk(["shape","payload","ctx"]),$=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 $.keys)w[A]=`key_${R++}`;S.write("const newResult = {};");for(const A of $.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 zT(e,t){return e.type||!t||!t.length?!1:GT(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 s;const c=gd,d=!zx.jitless,h=d&&GO.value,y=t.catchall;let g;e._zod.parse=(E,S)=>{g??(g=i.value);const $=E.value;return c($)?d&&h&&S?.async===!1&&S.jitless!==!0?(s||(s=o(t.shape)),E=s(E,S),y?a5([],$,E,S,g,e):E):n(E,S):(E.issues.push({expected:"object",code:"invalid_type",input:$,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 RB=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)}}),OB=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 kB=ue("$ZodEnum",(e,t)=>{kt.init(e,t);const n=Ux(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(o=>ZO.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}}),BB=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}}),LB=ue("$ZodTransform",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new jx(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 i5=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)}}),PB=ue("$ZodExactOptional",(e,t)=>{i5.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)}),IB=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)}),FB=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 jB=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))}),zB=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 UB=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)}}),HB=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 VB=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 GB=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 ZB{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 YB(){return new ZB}(Z1=globalThis).__zod_globalRegistry??(Z1.__zod_globalRegistry=YB());const _s=globalThis.__zod_globalRegistry;function qB(e,t){return new e({type:"string",...Le(t)})}function KB(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 WB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Le(t)})}function QB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Le(t)})}function JB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Le(t)})}function XB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Le(t)})}function eL(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Le(t)})}function tL(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Le(t)})}function nL(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Le(t)})}function rL(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Le(t)})}function aL(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Le(t)})}function iL(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Le(t)})}function oL(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Le(t)})}function lL(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Le(t)})}function sL(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 cL(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Le(t)})}function dL(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Le(t)})}function fL(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Le(t)})}function mL(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Le(t)})}function pL(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Le(t)})}function hL(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Le(t)})}function yL(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Le(t)})}function gL(e,t){return new e({type:"string",format:"date",check:"string_format",...Le(t)})}function bL(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Le(t)})}function vL(e,t){return new e({type:"string",format:"duration",check:"string_format",...Le(t)})}function _L(e,t){return new e({type:"number",coerce:!0,checks:[],...Le(t)})}function EL(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Le(t)})}function SL(e,t){return new e({type:"boolean",...Le(t)})}function $L(e){return new e({type:"unknown"})}function DL(e,t){return new e({type:"never",...Le(t)})}function q1(e,t){return new Xx({check:"less_than",...Le(t),value:e,inclusive:!1})}function ih(e,t){return new Xx({check:"less_than",...Le(t),value:e,inclusive:!0})}function K1(e,t){return new e5({check:"greater_than",...Le(t),value:e,inclusive:!1})}function oh(e,t){return new e5({check:"greater_than",...Le(t),value:e,inclusive:!0})}function W1(e,t){return new jk({check:"multiple_of",...Le(t),value:e})}function o5(e,t){return new Uk({check:"max_length",...Le(t),maximum:e})}function vd(e,t){return new Hk({check:"min_length",...Le(t),minimum:e})}function l5(e,t){return new Vk({check:"length_equals",...Le(t),length:e})}function xL(e,t){return new Gk({check:"string_format",format:"regex",...Le(t),pattern:e})}function CL(e){return new Zk({check:"string_format",format:"lowercase",...Le(e)})}function AL(e){return new Yk({check:"string_format",format:"uppercase",...Le(e)})}function wL(e,t){return new qk({check:"string_format",format:"includes",...Le(t),includes:e})}function TL(e,t){return new Kk({check:"string_format",format:"starts_with",...Le(t),prefix:e})}function NL(e,t){return new Wk({check:"string_format",format:"ends_with",...Le(t),suffix:e})}function fl(e){return new Qk({check:"overwrite",tx:e})}function ML(e){return fl(t=>t.normalize(e))}function RL(){return fl(e=>e.trim())}function OL(){return fl(e=>e.toLowerCase())}function kL(){return fl(e=>e.toUpperCase())}function BL(){return fl(e=>VO(e))}function LL(e,t,n){return new e({type:"array",element:t,...Le(n)})}function PL(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Le(n)})}function IL(e){const t=FL(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 FL(e,t){const n=new Tn({check:"custom",...Le(t)});return n._zod.check=e,n}function s5(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 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??($=>$);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>
|
|
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=!zx.jitless,h=d&&ZO.value,y=t.catchall;let g;e._zod.parse=(E,S)=>{g??(g=i.value);const $=E.value;return c($)?d&&h&&S?.async===!1&&S.jitless!==!0?(s||(s=o(t.shape)),E=s(E,S),y?a5([],$,E,S,g,e):E):n(E,S):(E.issues.push({expected:"object",code:"invalid_type",input:$,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 OB=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)}}),kB=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 BB=ue("$ZodEnum",(e,t)=>{kt.init(e,t);const n=Ux(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(o=>YO.has(typeof o)).map(o=>typeof o=="string"?ol(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}}),LB=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"?ol(i):i?ol(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}}),PB=ue("$ZodTransform",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new jx(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 i5=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)}}),IB=ue("$ZodExactOptional",(e,t)=>{i5.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)}),FB=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)}),jB=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 zB=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))}),UB=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 HB=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)}}),VB=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 GB=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 ZB=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 YB{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 qB(){return new YB}(Z1=globalThis).__zod_globalRegistry??(Z1.__zod_globalRegistry=qB());const vs=globalThis.__zod_globalRegistry;function KB(e,t){return new e({type:"string",...Le(t)})}function WB(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 QB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Le(t)})}function JB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Le(t)})}function XB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Le(t)})}function eL(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Le(t)})}function tL(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Le(t)})}function nL(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Le(t)})}function rL(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Le(t)})}function aL(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Le(t)})}function iL(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Le(t)})}function oL(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Le(t)})}function lL(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Le(t)})}function sL(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Le(t)})}function uL(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Le(t)})}function cL(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Le(t)})}function dL(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Le(t)})}function fL(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Le(t)})}function mL(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Le(t)})}function pL(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Le(t)})}function hL(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Le(t)})}function yL(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Le(t)})}function gL(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Le(t)})}function bL(e,t){return new e({type:"string",format:"date",check:"string_format",...Le(t)})}function vL(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Le(t)})}function _L(e,t){return new e({type:"string",format:"duration",check:"string_format",...Le(t)})}function EL(e,t){return new e({type:"number",coerce:!0,checks:[],...Le(t)})}function SL(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Le(t)})}function $L(e,t){return new e({type:"boolean",...Le(t)})}function DL(e){return new e({type:"unknown"})}function xL(e,t){return new e({type:"never",...Le(t)})}function q1(e,t){return new Xx({check:"less_than",...Le(t),value:e,inclusive:!1})}function ih(e,t){return new Xx({check:"less_than",...Le(t),value:e,inclusive:!0})}function K1(e,t){return new e5({check:"greater_than",...Le(t),value:e,inclusive:!1})}function oh(e,t){return new e5({check:"greater_than",...Le(t),value:e,inclusive:!0})}function W1(e,t){return new zk({check:"multiple_of",...Le(t),value:e})}function o5(e,t){return new Hk({check:"max_length",...Le(t),maximum:e})}function vd(e,t){return new Vk({check:"min_length",...Le(t),minimum:e})}function l5(e,t){return new Gk({check:"length_equals",...Le(t),length:e})}function CL(e,t){return new Zk({check:"string_format",format:"regex",...Le(t),pattern:e})}function AL(e){return new Yk({check:"string_format",format:"lowercase",...Le(e)})}function wL(e){return new qk({check:"string_format",format:"uppercase",...Le(e)})}function TL(e,t){return new Kk({check:"string_format",format:"includes",...Le(t),includes:e})}function NL(e,t){return new Wk({check:"string_format",format:"starts_with",...Le(t),prefix:e})}function ML(e,t){return new Qk({check:"string_format",format:"ends_with",...Le(t),suffix:e})}function dl(e){return new Jk({check:"overwrite",tx:e})}function RL(e){return dl(t=>t.normalize(e))}function OL(){return dl(e=>e.trim())}function kL(){return dl(e=>e.toLowerCase())}function BL(){return dl(e=>e.toUpperCase())}function LL(){return dl(e=>GO(e))}function PL(e,t,n){return new e({type:"array",element:t,...Le(n)})}function IL(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Le(n)})}function FL(e){const t=jL(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 jL(e,t){const n=new Tn({check:"custom",...Le(t)});return n._zod.check=e,n}function s5(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??vs,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 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??($=>$);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]){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 c5(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 jL=(e,t={})=>n=>{const i=s5({...n,processors:t});return an(e,i),u5(i,e),c5(i,e)},_d=(e,t,n={})=>i=>{const{libraryOptions:o,target:s}=i??{},c=s5({...o??{},target:s,io:t,processors:n});return an(e,c),u5(c,e),c5(c,e)},zL={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},UL=(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=zL[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}))])}},HL=(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)},VL=(e,t,n,i)=>{n.type="boolean"},GL=(e,t,n,i)=>{n.not={}},ZL=(e,t,n,i)=>{},YL=(e,t,n,i)=>{const o=e._zod.def,s=Ux(o.entries);s.every(c=>typeof c=="number")&&(n.type="number"),s.every(c=>typeof c=="string")&&(n.type="string"),n.enum=s},qL=(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},KL=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},WL=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},QL=(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"]})},JL=(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)},XL=(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},eP=(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},tP=(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"}]},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},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,n.default=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,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},iP=(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},oP=(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},lP=(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},d5=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType},sP=ue("ZodISODateTime",(e,t)=>{dB.init(e,t),wt.init(e,t)});function uP(e){return yL(sP,e)}const cP=ue("ZodISODate",(e,t)=>{fB.init(e,t),wt.init(e,t)});function dP(e){return gL(cP,e)}const fP=ue("ZodISOTime",(e,t)=>{mB.init(e,t),wt.init(e,t)});function mP(e){return bL(fP,e)}const pP=ue("ZodISODuration",(e,t)=>{pB.init(e,t),wt.init(e,t)});function hP(e){return vL(pP,e)}const yP=(e,t)=>{Yx.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>rk(e,n)},flatten:{value:n=>nk(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",yP,{Parent:Error}),gP=vy(cr),bP=_y(cr),vP=Xd(cr),_P=ef(cr),EP=ok(cr),SP=lk(cr),$P=sk(cr),DP=uk(cr),xP=ck(cr),CP=dk(cr),AP=fk(cr),wP=mk(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=jL(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)=>gP(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>vP(e,n,i),e.parseAsync=async(n,i)=>bP(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>_P(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>EP(e,n,i),e.decode=(n,i)=>SP(e,n,i),e.encodeAsync=async(n,i)=>$P(e,n,i),e.decodeAsync=async(n,i)=>DP(e,n,i),e.safeEncode=(n,i)=>xP(e,n,i),e.safeDecode=(n,i)=>CP(e,n,i),e.safeEncodeAsync=async(n,i)=>AP(e,n,i),e.safeDecodeAsync=async(n,i)=>wP(e,n,i),e.refine=(n,i)=>e.check(DI(n,i)),e.superRefine=n=>e.check(xI(n)),e.overwrite=n=>e.check(fl(n)),e.optional=()=>e3(e),e.exactOptional=()=>dI(e),e.nullable=()=>t3(e),e.nullish=()=>e3(t3(e)),e.nonoptional=n=>gI(e,n),e.array=()=>eI(e),e.or=n=>p5([e,n]),e.and=n=>iI(e,n),e.transform=n=>n3(e,uI(n)),e.default=n=>pI(e,n),e.prefault=n=>yI(e,n),e.catch=n=>vI(e,n),e.pipe=n=>n3(e,n),e.readonly=()=>SI(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)),f5=ue("_ZodString",(e,t)=>{Ey.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,s)=>UL(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(xL(...i)),e.includes=(...i)=>e.check(wL(...i)),e.startsWith=(...i)=>e.check(TL(...i)),e.endsWith=(...i)=>e.check(NL(...i)),e.min=(...i)=>e.check(vd(...i)),e.max=(...i)=>e.check(o5(...i)),e.length=(...i)=>e.check(l5(...i)),e.nonempty=(...i)=>e.check(vd(1,...i)),e.lowercase=i=>e.check(CL(i)),e.uppercase=i=>e.check(AL(i)),e.trim=()=>e.check(RL()),e.normalize=(...i)=>e.check(ML(...i)),e.toLowerCase=()=>e.check(OL()),e.toUpperCase=()=>e.check(kL()),e.slugify=()=>e.check(BL())}),TP=ue("ZodString",(e,t)=>{Ey.init(e,t),f5.init(e,t),e.email=n=>e.check(KB(NP,n)),e.url=n=>e.check(eL(MP,n)),e.jwt=n=>e.check(hL(ZP,n)),e.emoji=n=>e.check(tL(RP,n)),e.guid=n=>e.check(Y1(Q1,n)),e.uuid=n=>e.check(WB(Mc,n)),e.uuidv4=n=>e.check(QB(Mc,n)),e.uuidv6=n=>e.check(JB(Mc,n)),e.uuidv7=n=>e.check(XB(Mc,n)),e.nanoid=n=>e.check(nL(OP,n)),e.guid=n=>e.check(Y1(Q1,n)),e.cuid=n=>e.check(rL(kP,n)),e.cuid2=n=>e.check(aL(BP,n)),e.ulid=n=>e.check(iL(LP,n)),e.base64=n=>e.check(fL(HP,n)),e.base64url=n=>e.check(mL(VP,n)),e.xid=n=>e.check(oL(PP,n)),e.ksuid=n=>e.check(lL(IP,n)),e.ipv4=n=>e.check(sL(FP,n)),e.ipv6=n=>e.check(uL(jP,n)),e.cidrv4=n=>e.check(cL(zP,n)),e.cidrv6=n=>e.check(dL(UP,n)),e.e164=n=>e.check(pL(GP,n)),e.datetime=n=>e.check(uP(n)),e.date=n=>e.check(dP(n)),e.time=n=>e.check(mP(n)),e.duration=n=>e.check(hP(n))});function ja(e){return qB(TP,e)}const wt=ue("ZodStringFormat",(e,t)=>{At.init(e,t),f5.init(e,t)}),NP=ue("ZodEmail",(e,t)=>{nB.init(e,t),wt.init(e,t)}),Q1=ue("ZodGUID",(e,t)=>{eB.init(e,t),wt.init(e,t)}),Mc=ue("ZodUUID",(e,t)=>{tB.init(e,t),wt.init(e,t)}),MP=ue("ZodURL",(e,t)=>{rB.init(e,t),wt.init(e,t)}),RP=ue("ZodEmoji",(e,t)=>{aB.init(e,t),wt.init(e,t)}),OP=ue("ZodNanoID",(e,t)=>{iB.init(e,t),wt.init(e,t)}),kP=ue("ZodCUID",(e,t)=>{oB.init(e,t),wt.init(e,t)}),BP=ue("ZodCUID2",(e,t)=>{lB.init(e,t),wt.init(e,t)}),LP=ue("ZodULID",(e,t)=>{sB.init(e,t),wt.init(e,t)}),PP=ue("ZodXID",(e,t)=>{uB.init(e,t),wt.init(e,t)}),IP=ue("ZodKSUID",(e,t)=>{cB.init(e,t),wt.init(e,t)}),FP=ue("ZodIPv4",(e,t)=>{hB.init(e,t),wt.init(e,t)}),jP=ue("ZodIPv6",(e,t)=>{yB.init(e,t),wt.init(e,t)}),zP=ue("ZodCIDRv4",(e,t)=>{gB.init(e,t),wt.init(e,t)}),UP=ue("ZodCIDRv6",(e,t)=>{bB.init(e,t),wt.init(e,t)}),HP=ue("ZodBase64",(e,t)=>{vB.init(e,t),wt.init(e,t)}),VP=ue("ZodBase64URL",(e,t)=>{EB.init(e,t),wt.init(e,t)}),GP=ue("ZodE164",(e,t)=>{SB.init(e,t),wt.init(e,t)}),ZP=ue("ZodJWT",(e,t)=>{DB.init(e,t),wt.init(e,t)}),m5=ue("ZodNumber",(e,t)=>{n5.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,s)=>HL(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}),YP=ue("ZodNumberFormat",(e,t)=>{xB.init(e,t),m5.init(e,t)});function J1(e){return EL(YP,e)}const qP=ue("ZodBoolean",(e,t)=>{CB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>VL(e,n,i)});function KP(e){return SL(qP,e)}const WP=ue("ZodUnknown",(e,t)=>{AB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>ZL()});function X1(){return $L(WP)}const QP=ue("ZodNever",(e,t)=>{wB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>GL(e,n,i)});function JP(e){return DL(QP,e)}const XP=ue("ZodArray",(e,t)=>{TB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>QL(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(o5(n,i)),e.length=(n,i)=>e.check(l5(n,i)),e.unwrap=()=>e.element});function eI(e,t){return LL(XP,e,t)}const tI=ue("ZodObject",(e,t)=>{MB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>JL(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:JP()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>QO(e,n),e.safeExtend=n=>JO(e,n),e.merge=n=>XO(e,n),e.pick=n=>KO(e,n),e.omit=n=>WO(e,n),e.partial=(...n)=>ek(h5,e,n[0]),e.required=(...n)=>tk(y5,e,n[0])});function nI(e,t){const n={type:"object",shape:e??{},...Le(t)};return new tI(n)}const rI=ue("ZodUnion",(e,t)=>{RB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>XL(e,n,i,o),e.options=t.options});function p5(e,t){return new rI({type:"union",options:e,...Le(t)})}const aI=ue("ZodIntersection",(e,t)=>{OB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>eP(e,n,i,o)});function iI(e,t){return new aI({type:"intersection",left:e,right:t})}const d0=ue("ZodEnum",(e,t)=>{kB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,s)=>YL(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 oI=ue("ZodLiteral",(e,t)=>{BB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>qL(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 lI(e,t){return new oI({type:"literal",values:Array.isArray(e)?e:[e],...Le(t)})}const sI=ue("ZodTransform",(e,t)=>{LB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>WL(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new jx(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 uI(e){return new sI({type:"transform",transform:e})}const h5=ue("ZodOptional",(e,t)=>{i5.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>d5(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function e3(e){return new h5({type:"optional",innerType:e})}const cI=ue("ZodExactOptional",(e,t)=>{PB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>d5(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function dI(e){return new cI({type:"optional",innerType:e})}const fI=ue("ZodNullable",(e,t)=>{IB.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 t3(e){return new fI({type:"nullable",innerType:e})}const mI=ue("ZodDefault",(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,e.removeDefault=e.unwrap});function pI(e,t){return new mI({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Vx(t)}})}const hI=ue("ZodPrefault",(e,t)=>{jB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>aP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function yI(e,t){return new hI({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Vx(t)}})}const y5=ue("ZodNonOptional",(e,t)=>{zB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>nP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function gI(e,t){return new y5({type:"nonoptional",innerType:e,...Le(t)})}const bI=ue("ZodCatch",(e,t)=>{UB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>iP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function vI(e,t){return new bI({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const _I=ue("ZodPipe",(e,t)=>{HB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>oP(e,n,i,o),e.in=t.in,e.out=t.out});function n3(e,t){return new _I({type:"pipe",in:e,out:t})}const EI=ue("ZodReadonly",(e,t)=>{VB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>lP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function SI(e){return new EI({type:"readonly",innerType:e})}const $I=ue("ZodCustom",(e,t)=>{GB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>KL(e,n)});function DI(e,t={}){return PL($I,e,t)}function xI(e){return IL(e)}const f0={custom:"custom"};function Ht(e){return _L(m5,e)}const CI=["additional_pip","tort_threshold","pip_coverage_type","extended_medical","policy_pip_deductible"],AI=new Set([...CI,"is_corporation"]);nI({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:KP().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 wI=new Set(["Home","HomeConstruction","HomeFeatures","Demographics"]),TI=new Set(["HomePolicy","BundlePolicy"]),NI=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):AI.has(e)?!r3(n):e==="household_size"?!(t&&wI.has(t)):e==="number_of_mortgagees"?!(t&&TI.has(t)):(e==="has_co_applicant"||e==="co_applicant_middle_name"||e==="co_applicant_relationship")&&t&&NI.has(t)?!1:e==="multi_policy_discount"&&t==="HomePolicy"?!0:MI.has(e)}const MI=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"]),g5=new Date().getUTCFullYear(),Rc=ja().trim().min(1,"Required").regex(/^[A-Za-z\s]+$/,"Only alphabetic characters are allowed."),a3=p5([lI(""),ja().trim().regex(/^[A-Za-z\s]*$/,"Only alphabetic characters are allowed.")]).optional(),RI=(e,t,n)=>Ht({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)=>Ht({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)=>Ht({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(g5,`${e} cannot be in the future.`),kc=e=>Ht({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 Ht({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.`)},OI={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:Ht({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:RI("Square footage",1,999999),sale_price_cents:Ht({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:Ht({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:Ht({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."),number_of_parking_spaces:Ht({error:"Number of covered parking spaces must be a number."}).int("Number of covered parking spaces must be a whole number.").min(1,"Number of covered parking spaces must be between 1 and 3.").max(3,"Number of covered parking spaces must be between 1 and 3."),dwelling_replacement_cost:fs("Replacement cost",9,1),other_structures_coverage:fs("Other structures",9),personal_property_coverage:fs("Personal property",9),loss_of_use_coverage:fs("Loss of use coverage",9),years_at_address:Ht({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:Ht({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:Ht({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:Ht({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:Ht({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:Ht({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:Ht({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:Ht({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:Ht({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:Ht({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}function i3(e){const t=/^cov(\d+)to(\d+)$/.exec(e);if(t)return{perPerson:Number(t[1]),perOccurrence:Number(t[2])};const n=/^cov(\d+)CSL$/.exec(e);return n?{perPerson:Number(n[1]),perOccurrence:Number(n[1])}:null}const b5=[{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>g5)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=m=>m.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=i3(t),d=i3(n);if(!(!c||!d)&&(c.perPerson>d.perPerson||c.perOccurrence>d.perOccurrence))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=OI[e];if(!n)return;const i=n.safeParse(t);return i.success?void 0:i.error.issues[0].message}function o3(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 kI(e,t){const n={};for(const i of b5){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=kI(i,o);for(const[c,d]of Object.entries(s))n[c]=d;return n}function BI(e){if(e===""||e===null||e===void 0)return;const t=Number(e);return Number.isNaN(t)?void 0:t}const LI={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"},PI={OwnHome:"Own Home",OwnCondo:"Own Condo",RentHome:"Rent Home",RentCondo:"Rent Condo",RentApartment:"Rent Apartment",LiveWithParents:"Live With Parents"},II={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"},FI={Business:"Business",Pleasure:"Pleasure",Farming:"Farming",To_FromWork:"To/From Work",To_FromSchool:"To/From School"},jI={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"},zI={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"},UI={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"},HI={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"},VI={Dontknow:"Don't know",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000",cov250000:"250,000",cov500000:"500,000"},GI={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"},ZI={cov25000:"25,000",cov35000:"35,000",cov50000:"50,000",cov100000:"100,000",cov200000:"200,000",cov250000:"250,000",cov300000:"300,000",cov500000:"500,000"},YI={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"},qI={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"},KI=["NoCoverage","Zero","Fifty","Hundred","TwoHunderd","TwoHundredfifty","FiveHundred","SeventyFiveHundred","Thousand","TwoThousand"],WI=["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"},QI=["NoCoverage","TwentyFive","Fifty","SeventyFive","Hundred","TwoHundred","Unlimited"],v5={NoCoverage:"No Coverage",cov20to600:"20/600",cov25to750:"25/750",cov30to900:"30/900",cov40to1200:"40/1,200",cov50to1500:"50/1,500",cov100to3000:"100/3,000"},JI=["NoCoverage","cov20to600","cov25to750","cov30to900","cov40to1200","cov50to1500","cov100to3000"],XI=["NoCoverage","cov20to600","cov30to900","cov40to1200","cov50to1500"],_5={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"},eF={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"},tF={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)"},nF={OwnerPrimary:"Owner Primary",OwnerSecondary:"Owner Secondary",OwnerSeasonal:"Owner Seasonal"},rF={Basic:"Basic",Modest:"Modest",Average:"Average",AboveAverage:"Above Average",Expensive:"Expensive",VeryExpensive:"Very Expensive",Opulent:"Opulent"},aF={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"},iF={Slab:"Slab",Basement:"Basement",CrawlSpace:"Crawl Space",PartialBasement:"Partial Basement",PiersPostsPiles:"Piers / Posts / Piles",Open:"Open"},oF={NotOverWater:"No",PartiallyOverWater:"Partially Over Water",FullyOrEntirelyOverWater:"Fully or Entirely Over Water"},lF={One:"1",OneHalf:"1.5",Two:"2",TwoHalf:"2.5",Three:"3",ThreeHalf:"3.5",Four:"4",BiLevel:"Bi-Level",TriLevel:"Tri-Level"},sF={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"},cF={B_Gable:"Gable",C_Hip:"Hip",A_Flat:"Flat",D_Other:"Other"},dF={NotUpdated:"Not Updated",PartialUpdate:"Partial Update",CompleteUpdate:"Complete Update"},fF={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"},mF={AboveGround:"Above Ground",BelowGround:"Below Ground"},pF={Basement:"Below Grade Basement",SplitLevelBasement:"Split Level Basement",WalkoutBasement:"Walkout Basement"},hF={EntirelyCopper:"Entirely Copper",EntirelyGalvanized:"Entirely Galvanized",EntirelyPEX:"Entirely PEX",EntirelyPVC:"Entirely PVC",Polybutylene:"Polybutylene"},yF={TwentyFive:"$25,000",Fifty:"$50,000",OneHundred:"$100,000",TwoHundred:"$200,000",ThreeHundred:"$300,000",FourHundred:"$400,000",FiveHundred:"$500,000"},gF={cov1000:"$1,000",cov2000:"$2,000",cov3000:"$3,000",cov4000:"$4,000",cov5000:"$5,000"},bF={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%"},vF={None:"None",OnePercent:"1%",TwoPercent:"2%",FivePercent:"5%",TenPercent:"10%"},_F={_0_500ft:"0-500 Feet",_501_1000ft:"501-1000 Feet",_1001ftAndGreater:"1001 Feet And Greater"},EF={Lessthan5miles:"Less Than 5 Miles",Over5miles:"Over 5 Miles",NotAvailable:"Not Available"},l3={"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"},s3={Single:"Single",Married:"Married",Seperated:"Separated",Divorced:"Divorced",Widowed:"Widowed",DomesticPartner:"Domestic Partner"},u3={Female:"Female",Male:"Male"},E5={"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"},SF={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"},$F={Verbal_Threshold:"Limited right to sue",Zero_Threshold:"Unlimited right to sue"},DF={Primary:"Primary",Secondary:"Secondary"},xF={cov1000:"$1,000",cov10000:"$10,000"},CF={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"},AF={cov250:"$250",cov500:"$500",cov1000:"$1,000",cov2000:"$2,000",cov2500:"$2,500"},wF={"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"]},TF={"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"},c3=wF,S5=TF;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 $d(e){return Sy(e,E5)}function $5(e){return Sy(e,_5)}function D5(e){return Sy(e,S5)}function NF(e){return e.trim().toLowerCase()}function d3(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=d3(e[t.expirationDateKey]),i=d3(e[t.effectiveDateKey]);return n==null||i==null?!1:n<i}const MF=new Set(["HomePolicy","BundlePolicy"]);function Yc(e,t,n){return String(e.key??"")!=="lapse_in_coverage"||!n||!MF.has(n)?!0:t.home_prior_carrier_name!=="NoPriorInsurance"}function $y(e){let t=null,n=null,i=null;const o=new Set,s=new Set,c=m=>{const h=String(m.key??""),y=NF(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 f3=["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"],Dy="credify_quote_id",xy="credify_auth_token";function m3(e){try{localStorage.setItem(Dy,e)}catch(t){console.error("Failed to save quoteId to localStorage:",t)}}function rf(){try{return localStorage.getItem(Dy)}catch(e){return console.error("Failed to load quoteId from localStorage:",e),null}}function x5(){try{localStorage.removeItem(Dy)}catch(e){console.error("Failed to clear quoteId from localStorage:",e)}}function RF(e){try{localStorage.setItem(xy,e)}catch(t){console.error("Failed to save authToken to localStorage:",t)}}function OF(){try{return localStorage.getItem(xy)}catch(e){return console.error("Failed to load authToken from localStorage:",e),null}}function C5(){try{localStorage.removeItem(xy)}catch(e){console.error("Failed to clear authToken from localStorage:",e)}}function kF(){x5(),C5()}const BF="credify-insurance-widget",LF="1.0",A5=25,w5=64*1024,PF=`
|
|
121
|
-
…[truncated]`;let p3=!1,h3=null,y3="",T5=A5,y0=w5,Cs=[];function IF(e){return typeof e=="string"?e:e instanceof URL?e.href:e.url}function FF(e,t){return t?.method?t.method.toUpperCase():typeof e!="string"&&!(e instanceof URL)&&e.method?e.method.toUpperCase():"GET"}function g3(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 jF(e){try{const t=[];return new URL(e).searchParams.forEach((n,i)=>t.push({name:i,value:n})),t}catch{return[]}}function zF(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 UF(e){const t=e.length;return t<=y0?{text:e,size:t}:{text:e.slice(0,y0)+PF,size:t}}function HF(e){Cs.push(e),Cs.length>T5&&Cs.shift()}function VF(e){if(p3)return!0;if(typeof window>"u"||typeof window.fetch!="function")return!1;y3=e.baseUrl,T5=e.maxEntries??A5,y0=e.maxBodyBytes??w5,h3=window.fetch.bind(window);const t=h3;return window.fetch=async(n,i)=>{let o;try{o=IF(n)}catch{return t(n,i)}if(!o.startsWith(y3))return t(n,i);const s=g3(i?.headers??(typeof n!="string"&&!(n instanceof URL)?n.headers:void 0)),c={startedDateTime:new Date().toISOString(),time:-1,request:{method:FF(n,i),url:o,httpVersion:"HTTP/1.1",headers:s,queryString:jF(o),cookies:[],headersSize:-1,bodySize:typeof i?.body=="string"?i.body.length:-1,postData:zF(s,i)},response:GF(),cache:{},timings:{send:0,wait:-1,receive:0}};HF(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=g3(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}=UF(g);c.response.content.text=E,c.response.content.size=S,c.response.bodySize=S}).catch(()=>{})}catch{}return m},p3=!0,!0}function GF(){return{status:0,statusText:"",httpVersion:"HTTP/1.1",headers:[],cookies:[],content:{size:0,mimeType:""},redirectURL:"",headersSize:-1,bodySize:-1}}function ZF(){return{log:{version:"1.2",creator:{name:BF,version:LF},entries:Cs.map(e=>({...e}))}}}function YF(){return Cs.length}const qF=[/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],KF=[/\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]",WF=8;function af(e){for(const t of qF)if(t.test(e))return!0;return!1}function Ka(e){let t=e;for(const n of KF)t=t.replace(n,qa);return t}function Ua(e,t=0,n=new WeakSet){if(t>WF)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 b3(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 v3(e){for(const t of e)t.value=af(t.name)?qa:Ka(t.value)}function _3(e){try{return JSON.stringify(Ua(JSON.parse(e)))}catch{return Ka(e)}}function QF(e){const t=JSON.parse(JSON.stringify(e));for(const n of t.log.entries){v3(n.request.headers),v3(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=_3(n.request.postData.text)),n.response.content.text&&(n.response.content.text=_3(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{YF()>0&&n.addAttachment({filename:"quote-failure.har",data:JSON.stringify(QF(ZF())),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 JF=6e4,E3=new Map;function XF(e){try{return new URL(e).pathname}catch{return e}}function S3(e,t,n){if(!(n>=500&&n<600)&&!(n===0))return;e.__sentryReported=!0;const s=XF(t),c=`${s}:${n}`,d=Date.now(),m=E3.get(c);m&&d-m<JF||(E3.set(c,d),Uo(e,{phase:"api_request",endpoint:s,statusCode:n}))}function Wc(e){sl=e,RF(e)}function Jr(){return sl}function Qc(){const e=OF();e&&(sl=e)}function N5(){sl=null,C5()}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 S3(s,e,0),o}if(!i.ok){let o=`Request failed with status ${i.status}`,s;try{const d=await i.json();o=d.error||o,typeof d.retryAfterSeconds=="number"&&(s=d.retryAfterSeconds)}catch{o=i.statusText||o}if(s===void 0){const d=Number(i.headers?.get("Retry-After"));Number.isFinite(d)&&d>0&&(s=d)}const c=new Error(o);throw c.statusCode=i.status,c.retryAfterSeconds=s,S3(c,e,i.status),c}return i}async function Qs(e){try{return await e.json()}catch{return{}}}async function ej(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 tj(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 M5(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 nj(e){return await(await qt(`${Rt}/verify-quote`,{action:"resume",resumeToken:e})).json()}async function R5(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 $3(e){const t=e?{quoteId:e}:{};return await(await qt(`${Rt}/get-quote`,t)).json()}async function O5(e){return(await qt(`${Rt}/get-vehicle-options`,e)).json()}async function rj(e){return(await qt(`${Rt}/get-vehicle-options`,{...e,action:"vinDecode"})).json()}async function aj(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 ij(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 oj(e){await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"dismissVehiclePrefill"})}async function lj(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 sj(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 uj(e){await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"dismissDriverPrefill"})}async function cj(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 dj(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 fj={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:LI,auto_prior_liability_limit:jI,auto_reason_for_no_insurance:zI,residence_type:PI,home_prior_carrier_name:II,policy_bi:UI,policy_um:HI,policy_pd:VI,policy_mp:GI,policy_umpd:ZI,policy_pip:YI,policy_auto_death_indemnity:qI,vehicle_comp_deductible:p0,vehicle_coll_deductible:p0,vehicle_towing_and_labor:h0,vehicle_transportation_expense:v5,education_level:_5,industry:E5,occupation:S5,usage:FI,architectural_style:eF,dwelling_type:tF,occupancy_type:nF,construction_quality:rF,construction_type:aF,foundation_type:iF,located_over_water:oF,number_of_stories:lF,exterior_wall_type:sF,roof_material_type:uF,roof_shape:cF,roof_updated_type:dF,heating_type:fF,oil_tank_location:mF,basement_type:pF,plumbing_type:hF,personal_liability:yF,dwelling_medical_payments:gF,all_perils_deductible:bF,windstorm_deductible:vF,distance_from_fire_hydrant_ft:_F,distance_from_fire_station_miles:EF,employment_industry:l3,marital_status:s3,gender:u3,co_applicant_employment_industry:l3,co_applicant_marital_status:s3,co_applicant_gender:u3,description:SF,tort_threshold:$F,pip_coverage_type:DF,extended_medical:xF,additional_pip:CF,policy_pip_deductible:AF},x3=["OTHER / NOT LISTED"],C3=["SEDAN","SUV","COUPE","HATCHBACK","PICKUP","VAN","WAGON","OTHER"],mj=["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 A3(e){const t=e.replace(/\D+/g,"");if(t!=="")return BI(t)}function pj(e){return e==="-"||e==="+"||e==="."||e==="e"||e==="E"}const hj={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:9,loss_of_use_coverage:9,amount_paid_cents:7,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,number_of_parking_spaces: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},w3=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"]),yj=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"},gj={license_number:20};function bj(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 vj=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!vj.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 T3(e,t){return Jc(e)?"Yes":t}function N3(e){return typeof e=="number"&&Number.isFinite(e)?e:typeof e=="string"&&e.trim()!==""&&!Number.isNaN(Number(e))?Number(e):null}function M3(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 R3(e,t){const n=N3(e),i=N3(t);if(n!=null&&i!=null)return n-i;const o=M3(e),s=M3(t);return o!=null&&s!=null?o-s:e==null||t==null?null:String(e).localeCompare(String(t))}function _j(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=R3(e,n);return i!=null&&i<0}case"greaterThan":{const i=R3(e,n);return i!=null&&i>0}case"contains":return _j(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 Ej(e,t){return e?.length?`${e.join("-")}-${t}`:t}const Sj="__items",Pc=e=>`${e}${Sj}`;function $n(e){return e==null?"":typeof e=="string"?e:String(e)}function O3(e){return e==null?"":typeof e=="number"&&Number.isFinite(e)||typeof e=="string"?e:""}function $j(e){return e==null?"":typeof e=="string"||typeof e=="number"?e:String(e)}function k5({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=>O5({quoteId:s,...z})),[h,s]),g=b.useMemo(()=>py(e),[e]),E=b.useMemo(()=>$y(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]),$=b.useMemo(()=>{const z={};return t&&Object.assign(z,t),z},[t]),[x,w]=b.useState($);b.useEffect(()=>{w($)},[$]);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({}),O=b.useCallback(async(z,T)=>{if(!s||!o3(T))return;const N=z?z.join("-"):"_root";Ae(ie=>({...ie,[N]:!0})),de(ie=>({...ie,[N]:null}));try{const ie=await rj({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=b5.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 $e=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),Ce=ms(be,_e.conditionalType,_e.conditionalValue),xe=ms(me,_e.conditionalType,_e.conditionalValue);if(Ce&&!xe&&_e.conditionalQuestionsAllowMultiple){const Ne=_e.conditionalQuestions??[];if(Ne.length>0){const re=Pc(N);$e=tr($e,[...T??[],re],[]);const oe=(De,Ee)=>{De.forEach(Te=>{(Te.conditionals??[]).forEach(ke=>{if(ke.conditionalQuestionsAllowMultiple){const Ue=Pc(Te.key);$e=tr($e,[...Ee,Ue],[])}const qe=ke.conditionalQuestions??[];qe.length>0&&oe(qe,Ee)})})};oe(Ne,[...T??[],re])}}}}n&&i?i($e):w($e),I($e)};if(N==="vehicle_policy_selections"){const me=A.vehicles__items??[],$e=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=$e.length>1,be=Ue=>Object.entries(Ue).map(([ze,tt])=>({value:ze,label:tt})),Ce=Ed(A.state??A.State),xe=(Ue,ze)=>Object.fromEntries(Ue.filter(tt=>tt in ze).map(tt=>[tt,ze[tt]])),re=be(xe(Ce?KI:WI,p0)),oe=Ce?xe(QI,h0):h0,De=be(oe),Te=be(xe(Ce?JI:XI,v5)),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=$e.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:De,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:$e.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??[],$e=A.drivers__items??[];if(S&&$e.length<=1)return null;if(me.length===0||$e.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=(Ce,xe,Ne)=>{const re={...se},oe=`v${Ce}`;re[oe]={...re[oe]??{}},re[oe][`d${xe}`]=Ne,Ie(re)},be=Ce=>{if($e.length<2)return null;const xe=se[`v${Ce}`];if(!xe)return null;const Ne=$e.map((De,Ee)=>xe[`d${Ee}`]??0),re=Ne.filter(De=>De>0);if(re.length>=2&&re.every(De=>De===re[0])&&re[0]===50)return`Assignments for Vehicle ${Ce+1} cannot be 50 percent for both Drivers.`;const oe=Ne.reduce((De,Ee)=>De+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((Ce,xe)=>{const Ne=[Ce.year,Ce.make,Ce.model].filter(Boolean).join(" ")||`Vehicle ${xe+1}`,re=be(xe);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:Ne}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:$e.map((oe,De)=>{const Ee=[oe.first_name,oe.last_name].filter(Boolean).join(" ")||`Driver ${De+1}`,Te=se[`v${xe}`]?.[`d${De}`];return v.jsx("div",{style:{flex:"0 0 140px"},children:v.jsx(Tp,{id:`assignment-v${xe}-d${De}`,label:`${Ee} %`,value:Te??"",min:0,max:100,step:1,inputMode:"numeric",onChange:Re=>{const ke=Re.currentTarget.value.replace(/\D+/g,"");_e(xe,De,ke===""?0:Math.min(100,parseInt(ke,10)))}})},`${xe}-${De}`)})}),re&&v.jsx("p",{style:{color:"#dc3545",fontSize:"0.85rem",marginTop:"8px",marginBottom:0},children:re})]},xe)})]},N)}switch(z.inputType){case"text":{if(N==="vin"&&s){const me=T?T.join("-"):"_root",$e=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:$n(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:$e||!o3($n(Se)),className:"btn btn-outline shrink-0 self-end !w-auto min-w-[8.5rem] px-4 whitespace-nowrap disabled:opacity-50",onClick:()=>O(T,$n(Se)),children:$e?"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=$n(Se);return v.jsx(jc,{id:N,label:ie,hint:ge,value:me,inputMode:"numeric",pattern:"[0-9]*",maxLength:6,onChange:$e=>{const se=$e.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:$n(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"),$e=typeof me=="string"?me:"",se=$e?`${$e}. Re-enter to update.${ge?` ${ge}`:""}`:ge;return v.jsx(q7,{id:N,label:ie,hint:se,value:$n(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:$n(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we,autoComplete:Lc[N],maxLength:gj[N]},N)}case"email":return v.jsx(K7,{id:N,label:ie,value:$n(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(Q7,{id:N,label:ie,value:$n(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(UE,{id:N,label:ie,value:$n(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(W7,{id:N,label:ie,value:$n(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"url",T),"aria-required":he||void 0,error:we},N);case"number":{const me=hj[N];return w3.has(N)||yj.has(N)?v.jsx(Y7,{id:N,label:ie,hint:ge,value:O3(Se),isCurrency:w3.has(N),maxDigits:me,onChange:$e=>Ie(A3($e.currentTarget.value)),onBlur:()=>C(N,"number",T),required:he,"aria-required":he||void 0,error:we},N):v.jsx(Tp,{id:N,label:ie,hint:ge,value:O3(Se),inputMode:"numeric",pattern:"[0-9]*",onKeyDown:$e=>{if(pj($e.key)){$e.preventDefault();return}me!==void 0&&/^\d$/.test($e.key)&&String($e.currentTarget.value).replace(/\D/g,"").length>=me&&$e.preventDefault()},onChange:$e=>{let se=$e.currentTarget.value;me!==void 0&&(se=se.slice(0,me)),Ie(A3(se))},onBlur:()=>C(N,"number",T),required:he,"aria-required":he||void 0,error:we},N)}case"textarea":return v.jsx(J7,{id:N,label:ie,value:$n(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:$e}=bj(N);return v.jsx(kO,{id:N,label:ie,hint:ge,value:$n(Se),min:me,max:$e,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:[],$e=`${N}-error`;return v.jsxs("fieldset",{className:"space-y-2","aria-describedby":we?$e: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:Ce=>{const xe=new Set(me);Ce.currentTarget.checked?xe.add(se):xe.delete(se),Ie(Array.from(xe))},"aria-required":he||void 0,"aria-describedby":we?$e:void 0},_e)})}),we&&v.jsx("p",{id:$e,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??[],$e=T&&T.length>0?`${N}__${T.join("__")}`:N;return v.jsx(PO,{legend:ie,required:he,children:me.map(se=>v.jsx(LO,{name:$e,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(Ne=>Ne.vin)??[]);let $e=!1,se,_e,be;if(N==="year"||N==="make"||N==="model"||N==="body_style"){const Ne=T?T.join("-"):"_root";ye[Ne]&&($e=!0,se="Looking up VIN...")}if(!$e&&(N==="make"||N==="model"||N==="body_style")){const Ne=T?T.join("-"):"_root";be=Ne;const re=rn(A,T,"year"),oe=typeof re=="number"?re:Number(re);if(N==="make"){const De=`${Ne}:makes`;if(!oe||!Number.isFinite(oe))$e=!0,se="Select a year first";else{_e={year:oe};const Ee=B(_e);Ee&&Ee.length>0?me=Ee:ne[De]?(se="Loading makes...",me=[...f3]):me=[...f3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}else if(N==="model"){const De=`${Ne}:models`,Ee=String(rn(A,T,"make")??"");if(!Ee)$e=!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[De]?(se="Loading models...",me=[...x3]):me=[...x3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}else{const De=`${Ne}:bodyStyles`,Ee=String(rn(A,T,"make")??""),Te=String(rn(A,T,"model")??"");if(!Te)$e=!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[De]?(se="Loading body styles...",me=[...C3]):me=[...C3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}}if(N==="occupation"||N==="co_applicant_occupation"){const Ne=N==="co_applicant_occupation"?"co_applicant_employment_industry":void 0,re=Ne?void 0:rn(A,T,"industry"),oe=rn(A,T,Ne??"employment_industry"),Ee=String($d(re??oe)??"").trim();me=[...c3[Ee]??mj],typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}const Ce=Ej(T,N),xe=m?.has([...T??[],N].join("."))??!1;return v.jsx(ds,{id:Ce,label:se?`${ie} — ${se}`:ie,required:he,"aria-required":he||void 0,error:we,disabled:$e,value:xe?"":$j(Se),onChange:Ne=>{const re=Ne.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($d(re)??"").trim(),Te=c3[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 De=T?Es(oe,T)??{}:oe;G(N,{...De,[N]:re})},placeholder:se??"Select an option",onFocus:_e&&be?()=>X(be,_e):void 0,options:me.map(Ne=>({value:Ne,label:D3[N]?.[Ne]??fj[Ne]??Ne}))},Ce)}case"address":return v.jsx(UO,{id:N,label:ie,value:$n(Se),onChange:(me,$e)=>{let se=ln(A,T,N,me);const _e=$e?.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=$e?.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 $e=T3(ge,rn(A,T,he)),se=me.filter(be=>ms($e,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,Ce)=>{const xe=be.conditionalQuestions??[];if(!xe.length)return null;if(!be.conditionalQuestionsAllowMultiple)return v.jsx("div",{className:"mt-3",children:W(xe,T)},`branch-${he}-${Ce}`);const Ne=Pc(he),re=Es(A,[...T??[],Ne])??[],oe=Math.max(1,re.length||1),De=()=>{const Re=tr(A,[...T??[],Ne,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??[],Ne],Re);n&&i?i(ke):w(ke),I(ke)},Te=`${he}__c${Ce}`;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:De,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??[],Ne,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]}),xe.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}-${Ce}`)})]},`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 $e=E.currentCarrierKey?A[E.currentCarrierKey]:void 0;if(!($e&&$e!=="NoPriorInsurance"&&Xo(A,E)&&sh.has(Se)))return}Jc(ge)||z.push(ge);const he=ge.conditionals??[];if(!he.length)return;const we=T3(ge,rn(A,ie,Se)),Ie=he.filter($e=>ms(we,$e.conditionalType,$e.conditionalValue));(Ie.length>1&&!Ie.some($e=>$e.conditionalQuestionsAllowMultiple)?Ie.slice(0,1):Ie).forEach($e=>{const se=$e.conditionalQuestions??[];se.length&&($e.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:dj(c),"data-form-area":c??"unknown-stage",onSubmit:te,noValidate:!0,children:W(g)})}function k3({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})},$=()=>{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:$})]}),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 xj(){return v.jsx("a",{href:Dj,target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})}function B3(){return v.jsxs(v.Fragment,{children:["See our ",v.jsx(xj,{})," for how we use your information."]})}const Cj=new Set(["Product","Name","Home","HomeConstruction","HomeFeatures","Vehicle","Driver","Demographics","Customer","HomeCustomer","BundleCustomer"]),Aj=new Set(["AutoCurrentCarrier","HomeCurrentCarrier","HomePolicy","BundlePolicy","AutoPolicy"]);function wj(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--${wj(e)}`}function B5({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(B3,{})})]}):Aj.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."}):Cj.has(e)?v.jsx("p",{className:jo(e),"data-stage-key":e,children:v.jsx(B3,{})}):null:null}function L5(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=L5(aj),Ay=L5(lj),Tj=Cy.fetch,Nj=Cy.peek,Mj=Cy.prefetch,Rj=Ay.fetch,Oj=Ay.peek,kj=Ay.prefetch,Bj=["vin","year","make","model"];function Lj(e){if(!e||typeof e!="object")return!0;const t=e;return Bj.every(n=>{const i=t[n];return i==null||String(i).trim()===""})}function Pj(e,t){if(t.length===0)return e;const n=e.vehicles__items??[],i=n.filter(c=>!Lj(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 Ij=["first_name","last_name","date_of_birth"];function P5(e){if(!e||typeof e!="object")return!0;const t=e;return Ij.every(n=>{const i=t[n];return i==null||String(i).trim()===""})}function L3(e){return`${String(e.first_name??"").trim()} ${String(e.last_name??"").trim()}`.trim().toUpperCase()}function Fj(e,t){if(t.length===0)return e;const n=e.drivers__items??[],i=n.filter(c=>!P5(c)),o=new Set(i.map(L3).filter(c=>c!=="")),s=t.filter(c=>{const d=L3(c);return d===""||!o.has(d)});return s.length===0&&i.length===n.length?e:{...e,drivers:"Yes",drivers__items:[...i,...s]}}function jj(e){return(e.drivers__items??[]).some(n=>!P5(n))}const zj=["widgetOpened","widgetClosed","stageViewed","stageCompleted","flowCompleted","ratesViewed","ratesBack","submissionFailed"],Dd={};function Uj(e){let t=Dd[e];return t||(t=new Set,Dd[e]=t),t}function I5(e,t){Uj(e).add(t)}function F5(e,t){Dd[e]?.delete(t)}function ni(e,...t){const n=Dd[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 Hj(){ni("widgetOpened")}function Vj(){ni("widgetClosed")}function Gj(e){ni("stageViewed",e)}function P3(e){ni("stageCompleted",e)}function Zj(){ni("flowCompleted")}function Yj(e){ni("ratesViewed",e)}function qj(){ni("ratesBack")}function ps(e){ni("submissionFailed",e)}const j5=new Set(["Disabled","Retired","Unemployed","Other"]);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!j5.has(s)}function Wj(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!j5.has(s)}function z5(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 z5(e)?"Yes":t}function I3(e){return typeof e=="number"&&Number.isFinite(e)?e:typeof e=="string"&&e.trim()!==""&&!Number.isNaN(Number(e))?Number(e):null}function F3(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 j3(e,t){const n=I3(e),i=I3(t);if(n!=null&&i!=null)return n-i;const o=F3(e),s=F3(t);return o!=null&&s!=null?o-s:e==null||t==null?null:String(e).localeCompare(String(t))}function Qj(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=j3(e,n);return i!=null&&i<0}case"greaterThan":{const i=j3(e,n);return i!=null&&i>0}case"contains":return Qj(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 Jj=new Set(["auto_prior_years","auto_prior_months","auto_continuous_coverage_years"]);function Xj(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=$y(i),s=[],c=d=>{d.forEach(m=>{if(!qc(m,t,o)||!Kj(m,t)||!Yc(m,t,n))return;const h=String(m.key);if(nf(h,n,t)){const $=o.currentCarrierKey?t[o.currentCarrierKey]:void 0;if(!($&&$!=="NoPriorInsurance"&&Xo(t,o)&&Jj.has(h)))return}z5(m)||s.push(m);const y=wy(m,t[h]),g=m.conditionals??[];if(!g.length)return;const E=g.filter($=>Ty(y,$.conditionalType,$.conditionalValue));(E.length>1&&!E.some($=>$.conditionalQuestionsAllowMultiple)?E.slice(0,1):E).forEach($=>{const x=$.conditionalQuestions??[];x.length&&($.conditionalQuestionsAllowMultiple||c(x))})})};return c(i),s}const U5="__items",xd=e=>`${e}${U5}`;function ez(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 $=t[xd(d)]??[];if($.length===0){n.push({groupKey:d,index:-1,fieldKey:"",fieldLabel:"",message:"At least one entry is required"});continue}for(const[x,w]of $.entries()){const R=[...i,xd(d),x],I=of(S,w,o).filter(Z=>!(ez(Z,R)||!Wj(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 tz(e,t,n){const i=[];return Cd(e,t,i,[],n,t),i}function nz(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,$]of E.entries())typeof $!="object"||$===null||(i(of(g,$,n),$,{groupKey:s,index:S}),v0(g,$,n,i))}}}function H5(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 z3({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),[$,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:$,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 rz({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,$]=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,O=de?.key??null,B=b.useRef(h);B.current=h;const X=z3({targetStage:"Vehicle",stageKey:O,quoteId:s,fetchSuggestions:Tj,peekSuggestions:Nj,applySelection:ij,dismissSelection:oj,mergeItems:Pj,setAllValues:y}),F=z3({targetStage:"Driver",stageKey:O,quoteId:s,fetchSuggestions:Rj,peekSuggestions:Oj,applySelection:sj,dismissSelection:uj,mergeItems:Fj,setAllValues:y,shouldSkip:()=>jj(B.current)}),G=O==="Vehicle"&&X.isPending||O==="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&&O&&c?.has(O)?!1:!!(he||e.slice(j+1).every(Ie=>Ie.key==="AutoPolicy")&&(h.drivers__items??[]).length<=1)},[j,e,h,O,c]);b.useEffect(()=>{Ae&&d>=e.length&&m(e.length-1)},[d,e.length,Ae]),b.useEffect(()=>{L(0),Z([])},[O]),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||!O){$(!1),I(null);return}if(g[O]){$(!1),I(null);return}let he=!1;return $(!0),I(null),Promise.resolve(de.loadQuestions()).then(we=>{if(!he){if(!Array.isArray(we))throw new Error(`loadQuestions("${O}") did not return an array`);E(Ie=>({...Ie,[O]:we}))}}).catch(we=>{he||I(`Failed to load stage "${de?.title??""}": ${we?.message??"Unknown error"}`)}).finally(()=>{he||$(!1)}),()=>{he=!0}},[de,O,g]);const U=O?g[O]:void 0,W=b.useMemo(()=>$y(py(U??[])),[U]);b.useEffect(()=>{de&&O&&U&&Gj({stageKey:O,stageTitle:de.title??O,stepIndex:d+1,totalSteps:e.length})},[O,d,e.length,de,U]);const Y=b.useMemo(()=>{if(!U)return{};const he={};(me=>{const $e=[],se=_e=>{_e.forEach((be,Ce)=>{const xe=Ya(be,Ce);$e.push(xe);const Ne=xd(xe);$e.push(Ne),(be.conditionals??[]).forEach(oe=>{const De=oe.conditionalQuestions??[];De.length>0&&se(De)})})};return se(me),$e})(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,$e]of Object.entries(h))me.endsWith(U5)&&!(me in he)&&(he[me]=$e);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,O??void 0),we=xs(h,W),Ie=he.map(Ee=>Kc(Ee,W)?{...Ee,required:we}:Ee),me=Fs(Ie,Y),$e=new Set(Ie.map((Ee,Te)=>Ya(Ee,Te))),se=Object.entries(me).some(([Ee,Te])=>Te&&$e.has(Ee)),_e=nz(U,h,O??void 0),Ce=he.some(Ee=>String(Ee.key??"")==="vehicle_policy_selections")?H5(h):!1,xe=h.driver_vehicle_assignments,Ne=h.drivers__items??[];let re=!1;if(xe&&Ne.length>=2){const Ee=h.vehicles__items??[];for(let Te=0;Te<Ee.length;Te++){const Re=xe[`v${Te}`];if(!Re)continue;const ke=Ne.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||Ce||re){const Ee=new Map(Ie.map((ke,qe)=>[Ya(ke,qe),ke])),Re=[...Object.entries(me).filter(([ke,qe])=>!!qe&&$e.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,Ce?"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[O??""]===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,O??""):await t(Y,O??""),{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===O),ze=Ue>=0?Math.min(Ue+1,qe.length-1):Math.min(d+1,qe.length-1);ne.current[O??""]=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=Xj(O??"unknown-stage");return Ae?v.jsxs("div",{className:`form-wizard-shell form-wizard-shell--${Se}`,"data-stage-key":O??void 0,children:[O==="Vehicle"&&X.suggestions&&X.suggestions.length>0&&v.jsx(k3,{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}),O==="Driver"&&F.suggestions&&F.suggestions.length>0&&v.jsx(k3,{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:O==="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(k5,{questions:U??[],controlledValues:Y,onChangeValues:te,onSubmit:()=>N(),quoteId:s,widgetStageKey:O??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(!O)return he;const we={...he};return delete we[O],we})},children:"Retry"})]}),v.jsx(B5,{stageKey:O})]}),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 V5={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"}},U3=["#0369A1","#1D4ED8","#0F766E","#7C3AED","#B45309","#DC2626","#0891B2","#9333EA"];function az(e){return e.replace(/[^A-Za-z0-9]/g,"").slice(0,3).toUpperCase()||"CAR"}function G5(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").trim()}function Ti(e){if(!e)return e;const t=V5[e];return t?t.name:G5(e)}function iz(e){const t=new Set,n=[];return e.forEach((i,o)=>{const c=V5[i]??{name:G5(i),abbr:az(i),color:U3[o%U3.length]};t.has(c.name)||(t.add(c.name),n.push(c))}),n}function oz(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),iz(n)}const lz="https://getcredify.com/privacy-policy";function sz({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:lz,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: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(sz,{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 Z5=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});function Y5(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 cz(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 H3({onBack:e}){const t=()=>{qj(),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 dz({rate:e,status:t,onRequestBind:n,disabled:i,showLobLabel:o=!0,className:s}){const c=Y5(e)/100,d=Z5.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($=>!!$&&typeof $.label=="string"&&$.label.trim()!==""&&typeof $.value=="string"&&$.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(($,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:$.label}),v.jsx("dd",{className:"text-right text-xs font-semibold text-slate-900",children:$.value})]},`${$.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 fz({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 mz({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,$]=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,O]=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 De=oe.lob??null;De&&h[oe.quote_rate_id]==="success"&&re.add(De)}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(()=>cz(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||(kF(),N5(),$(!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]),$e=b.useMemo(()=>{if(!n)return[];const re=d.some(Ee=>Ee.lob==="PersonalAuto"),oe=d.some(Ee=>Ee.lob==="PersonalHome"),De=[];return re||De.push("Sorry, no rates found for Personal Auto."),oe||De.push("Sorry, no rates found for Homeowners."),De},[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(H3,{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"),O(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),O(null),j("idle")},Ce=async()=>{if(!A||!i)return;const re=V.trim();if(!re){O("Please enter your phone number.");return}j("sending"),O(null);try{await M5(i,re),ye("code"),j("sent")}catch(oe){const De=oe;if(j("idle"),De?.message==="sms_rate_limited"){const Ee=De.retryAfterSeconds??60;ye("code"),O(`We just sent a code to that number. You can request another in ${Ee} second${Ee===1?"":"s"}.`);return}O("We could not send a code to that number. Please check it and try again.")}},xe=async()=>{if(!A||!i)return;const re=ne.trim();if(!re){O("Please enter the code we texted you.");return}j("verifying"),O(null);try{const{isVerified:oe,token:De,code:Ee}=await g0(i,re);if(!oe||!De){j("sent"),O(Ee==="OTP_EXPIRED"?"That code has expired. Request a new one and try again.":"That code was incorrect. Please try again.");return}Wc(De);const Te=A;Z(!0),L(null),j("idle"),w(Te)}catch(oe){const De=oe;if(j("sent"),De?.message==="too_many_attempts"){O("Too many incorrect attempts. Request a new code to try again.");return}O("Something went wrong verifying your code. Please try again.")}},Ne=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 cj(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(" "),De="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(UE,{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:De,children:"Back to rates"}),v.jsx("button",{type:"button",onClick:Ce,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(B5,{stageKey:"SMSVerification"}),v.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-3",children:[v.jsx("button",{type:"button",onClick:()=>{ye("phone"),O(null)},className:De,children:"Change number"}),v.jsx("button",{type:"button",onClick:xe,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:Z5.format(Y5(x.rate)/100),lobLabel:re,acknowledged:R,onAcknowledgeChange:I,onCancel:_e,onProceed:Ne,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"}),$e.length>0&&v.jsx("div",{className:"mt-3 space-y-1",children:$e.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(fz,{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(dz,{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(H3,{onBack:t})]})}function pz({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(k5,{questions:n,controlledValues:i,onChangeValues:o,onSubmit:()=>{},quoteId:c,widgetStageKey:e,invalidValueKeys:m,fetchVehicleOptions:d})]})}const V3=new Set(["make","model","body_style","occupation","co_applicant_occupation","quote_vehicle_id"]),G3={vehicles:"Vehicle",drivers:"Driver",driver_accidents:"Accident",driver_violations:"Violation",losses:"Loss",home_losses:"Loss"};function Z3(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 hz=new Set(["SMSVerification","CanopyConnect","Phone"]);function yz({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"||V3.has(String(h.key??"")))return;const E=Z3(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||V3.has(S))return;const $=Z3(E);if($.length===0)return;const x=y[S];if(!Cr(x,E.inputType)&&!$.includes(String(x))){const w=G3[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 tz(t,n,e)){const y=G3[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")&&H5(n)&&d.push({key:"__vehicle_policy",label:"Vehicle coverage selections",message:"Coverage selections are incomplete"}),Ez(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=_z(n);h&&d.push(h)}return{stageKey:e,errorsByKey:c,issues:d,hasIssues:d.length>0}}async function gz(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 bz=/^[A-Z]{2}$/,vz=/^\d{5}(-\d{4})?$/;function _z(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 bz.test(n)&&vz.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 Ez(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($=>xi($)):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=$d(y.industry),y.education_level=$5(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 Sz={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 q5(e){const t=e?.trim().toUpperCase();if(!t)return"your state";const n=Sz[t];return n?`${n} (${t})`:"your state"}const $z=1500,Dz=800;function xz(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 Cz({stages:e,initialValues:t,quoteId:n,isSubmitting:i,onConfirmed:o}){const s=b.useMemo(()=>e.filter(te=>!hz.has(String(te.key))),[e]),[c,d]=b.useState(t),[m,h]=b.useState({}),[y,g]=b.useState(null),[E,S]=b.useState(!0),[$,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,$]);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)})},$z),()=>{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=xz(c),O=b.useRef(new Map),B=b.useRef(Promise.resolve()),X=b.useCallback(te=>{const z=`${te.year??""}|${te.make??""}|${te.model??""}`,T=O.current,N=T.get(z);if(N)return N;const ie=B.current.catch(()=>{}).then(()=>O5({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(()=>{gz(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]=yz({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 R5(te);if(!z){A(`Sorry, Credify Corporation doesn't currently offer insurance in ${q5(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(pz,{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"],Y3={Auto:{label:"Auto Policy",icon:"🚗",accent:"#0369A1"},Home:{label:"Home Policy",icon:"🏠",accent:"#059669"},Bundle:{label:"Home + Auto Bundle",icon:"🔗",accent:"#7C3AED"}},q3={Auto:6e4,Home:9e4,Bundle:12e4};function Az({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 wz({providers:e=[],totalTime:t=6e4,flow:n="Auto",isComplete:i=!1,onComplete:o}){const s=Y3[n]??Y3.Auto,c=q3[n]??q3.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),[$,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 c5(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 zL=(e,t={})=>n=>{const i=s5({...n,processors:t});return an(e,i),u5(i,e),c5(i,e)},_d=(e,t,n={})=>i=>{const{libraryOptions:o,target:s}=i??{},c=s5({...o??{},target:s,io:t,processors:n});return an(e,c),u5(c,e),c5(c,e)},UL={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},HL=(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=UL[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}))])}},VL=(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)},GL=(e,t,n,i)=>{n.type="boolean"},ZL=(e,t,n,i)=>{n.not={}},YL=(e,t,n,i)=>{},qL=(e,t,n,i)=>{const o=e._zod.def,s=Ux(o.entries);s.every(c=>typeof c=="number")&&(n.type="number"),s.every(c=>typeof c=="string")&&(n.type="string"),n.enum=s},KL=(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},WL=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},QL=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},JL=(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"]})},XL=(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)},eP=(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},tP=(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},nP=(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"}]},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},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,n.default=JSON.parse(JSON.stringify(o.defaultValue))},iP=(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)))},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;let c;try{c=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=c},lP=(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},sP=(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},d5=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType},uP=ue("ZodISODateTime",(e,t)=>{fB.init(e,t),wt.init(e,t)});function cP(e){return gL(uP,e)}const dP=ue("ZodISODate",(e,t)=>{mB.init(e,t),wt.init(e,t)});function fP(e){return bL(dP,e)}const mP=ue("ZodISOTime",(e,t)=>{pB.init(e,t),wt.init(e,t)});function pP(e){return vL(mP,e)}const hP=ue("ZodISODuration",(e,t)=>{hB.init(e,t),wt.init(e,t)});function yP(e){return _L(hP,e)}const gP=(e,t)=>{Yx.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ak(e,n)},flatten:{value:n=>rk(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",gP,{Parent:Error}),bP=vy(cr),vP=_y(cr),_P=Xd(cr),EP=ef(cr),SP=lk(cr),$P=sk(cr),DP=uk(cr),xP=ck(cr),CP=dk(cr),AP=fk(cr),wP=mk(cr),TP=pk(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=zL(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)=>bP(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>_P(e,n,i),e.parseAsync=async(n,i)=>vP(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>EP(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>SP(e,n,i),e.decode=(n,i)=>$P(e,n,i),e.encodeAsync=async(n,i)=>DP(e,n,i),e.decodeAsync=async(n,i)=>xP(e,n,i),e.safeEncode=(n,i)=>CP(e,n,i),e.safeDecode=(n,i)=>AP(e,n,i),e.safeEncodeAsync=async(n,i)=>wP(e,n,i),e.safeDecodeAsync=async(n,i)=>TP(e,n,i),e.refine=(n,i)=>e.check(xI(n,i)),e.superRefine=n=>e.check(CI(n)),e.overwrite=n=>e.check(dl(n)),e.optional=()=>e3(e),e.exactOptional=()=>fI(e),e.nullable=()=>t3(e),e.nullish=()=>e3(t3(e)),e.nonoptional=n=>bI(e,n),e.array=()=>tI(e),e.or=n=>p5([e,n]),e.and=n=>oI(e,n),e.transform=n=>n3(e,cI(n)),e.default=n=>hI(e,n),e.prefault=n=>gI(e,n),e.catch=n=>_I(e,n),e.pipe=n=>n3(e,n),e.readonly=()=>$I(e),e.describe=n=>{const i=e.clone();return vs.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return vs.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return vs.get(e);const i=e.clone();return vs.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),f5=ue("_ZodString",(e,t)=>{Ey.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,s)=>HL(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(CL(...i)),e.includes=(...i)=>e.check(TL(...i)),e.startsWith=(...i)=>e.check(NL(...i)),e.endsWith=(...i)=>e.check(ML(...i)),e.min=(...i)=>e.check(vd(...i)),e.max=(...i)=>e.check(o5(...i)),e.length=(...i)=>e.check(l5(...i)),e.nonempty=(...i)=>e.check(vd(1,...i)),e.lowercase=i=>e.check(AL(i)),e.uppercase=i=>e.check(wL(i)),e.trim=()=>e.check(OL()),e.normalize=(...i)=>e.check(RL(...i)),e.toLowerCase=()=>e.check(kL()),e.toUpperCase=()=>e.check(BL()),e.slugify=()=>e.check(LL())}),NP=ue("ZodString",(e,t)=>{Ey.init(e,t),f5.init(e,t),e.email=n=>e.check(WB(MP,n)),e.url=n=>e.check(tL(RP,n)),e.jwt=n=>e.check(yL(YP,n)),e.emoji=n=>e.check(nL(OP,n)),e.guid=n=>e.check(Y1(Q1,n)),e.uuid=n=>e.check(QB(Mc,n)),e.uuidv4=n=>e.check(JB(Mc,n)),e.uuidv6=n=>e.check(XB(Mc,n)),e.uuidv7=n=>e.check(eL(Mc,n)),e.nanoid=n=>e.check(rL(kP,n)),e.guid=n=>e.check(Y1(Q1,n)),e.cuid=n=>e.check(aL(BP,n)),e.cuid2=n=>e.check(iL(LP,n)),e.ulid=n=>e.check(oL(PP,n)),e.base64=n=>e.check(mL(VP,n)),e.base64url=n=>e.check(pL(GP,n)),e.xid=n=>e.check(lL(IP,n)),e.ksuid=n=>e.check(sL(FP,n)),e.ipv4=n=>e.check(uL(jP,n)),e.ipv6=n=>e.check(cL(zP,n)),e.cidrv4=n=>e.check(dL(UP,n)),e.cidrv6=n=>e.check(fL(HP,n)),e.e164=n=>e.check(hL(ZP,n)),e.datetime=n=>e.check(cP(n)),e.date=n=>e.check(fP(n)),e.time=n=>e.check(pP(n)),e.duration=n=>e.check(yP(n))});function ja(e){return KB(NP,e)}const wt=ue("ZodStringFormat",(e,t)=>{At.init(e,t),f5.init(e,t)}),MP=ue("ZodEmail",(e,t)=>{rB.init(e,t),wt.init(e,t)}),Q1=ue("ZodGUID",(e,t)=>{tB.init(e,t),wt.init(e,t)}),Mc=ue("ZodUUID",(e,t)=>{nB.init(e,t),wt.init(e,t)}),RP=ue("ZodURL",(e,t)=>{aB.init(e,t),wt.init(e,t)}),OP=ue("ZodEmoji",(e,t)=>{iB.init(e,t),wt.init(e,t)}),kP=ue("ZodNanoID",(e,t)=>{oB.init(e,t),wt.init(e,t)}),BP=ue("ZodCUID",(e,t)=>{lB.init(e,t),wt.init(e,t)}),LP=ue("ZodCUID2",(e,t)=>{sB.init(e,t),wt.init(e,t)}),PP=ue("ZodULID",(e,t)=>{uB.init(e,t),wt.init(e,t)}),IP=ue("ZodXID",(e,t)=>{cB.init(e,t),wt.init(e,t)}),FP=ue("ZodKSUID",(e,t)=>{dB.init(e,t),wt.init(e,t)}),jP=ue("ZodIPv4",(e,t)=>{yB.init(e,t),wt.init(e,t)}),zP=ue("ZodIPv6",(e,t)=>{gB.init(e,t),wt.init(e,t)}),UP=ue("ZodCIDRv4",(e,t)=>{bB.init(e,t),wt.init(e,t)}),HP=ue("ZodCIDRv6",(e,t)=>{vB.init(e,t),wt.init(e,t)}),VP=ue("ZodBase64",(e,t)=>{_B.init(e,t),wt.init(e,t)}),GP=ue("ZodBase64URL",(e,t)=>{SB.init(e,t),wt.init(e,t)}),ZP=ue("ZodE164",(e,t)=>{$B.init(e,t),wt.init(e,t)}),YP=ue("ZodJWT",(e,t)=>{xB.init(e,t),wt.init(e,t)}),m5=ue("ZodNumber",(e,t)=>{n5.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,s)=>VL(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}),qP=ue("ZodNumberFormat",(e,t)=>{CB.init(e,t),m5.init(e,t)});function J1(e){return SL(qP,e)}const KP=ue("ZodBoolean",(e,t)=>{AB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>GL(e,n,i)});function WP(e){return $L(KP,e)}const QP=ue("ZodUnknown",(e,t)=>{wB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>YL()});function X1(){return DL(QP)}const JP=ue("ZodNever",(e,t)=>{TB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>ZL(e,n,i)});function XP(e){return xL(JP,e)}const eI=ue("ZodArray",(e,t)=>{NB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>JL(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(o5(n,i)),e.length=(n,i)=>e.check(l5(n,i)),e.unwrap=()=>e.element});function tI(e,t){return PL(eI,e,t)}const nI=ue("ZodObject",(e,t)=>{RB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>XL(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:XP()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>JO(e,n),e.safeExtend=n=>XO(e,n),e.merge=n=>ek(e,n),e.pick=n=>WO(e,n),e.omit=n=>QO(e,n),e.partial=(...n)=>tk(h5,e,n[0]),e.required=(...n)=>nk(y5,e,n[0])});function rI(e,t){const n={type:"object",shape:e??{},...Le(t)};return new nI(n)}const aI=ue("ZodUnion",(e,t)=>{OB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>eP(e,n,i,o),e.options=t.options});function p5(e,t){return new aI({type:"union",options:e,...Le(t)})}const iI=ue("ZodIntersection",(e,t)=>{kB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>tP(e,n,i,o)});function oI(e,t){return new iI({type:"intersection",left:e,right:t})}const d0=ue("ZodEnum",(e,t)=>{BB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,s)=>qL(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 lI=ue("ZodLiteral",(e,t)=>{LB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>KL(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 sI(e,t){return new lI({type:"literal",values:Array.isArray(e)?e:[e],...Le(t)})}const uI=ue("ZodTransform",(e,t)=>{PB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>QL(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new jx(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 cI(e){return new uI({type:"transform",transform:e})}const h5=ue("ZodOptional",(e,t)=>{i5.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>d5(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function e3(e){return new h5({type:"optional",innerType:e})}const dI=ue("ZodExactOptional",(e,t)=>{IB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>d5(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function fI(e){return new dI({type:"optional",innerType:e})}const mI=ue("ZodNullable",(e,t)=>{FB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>nP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function t3(e){return new mI({type:"nullable",innerType:e})}const pI=ue("ZodDefault",(e,t)=>{jB.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.removeDefault=e.unwrap});function hI(e,t){return new pI({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Vx(t)}})}const yI=ue("ZodPrefault",(e,t)=>{zB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>iP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function gI(e,t){return new yI({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Vx(t)}})}const y5=ue("ZodNonOptional",(e,t)=>{UB.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 bI(e,t){return new y5({type:"nonoptional",innerType:e,...Le(t)})}const vI=ue("ZodCatch",(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,e.removeCatch=e.unwrap});function _I(e,t){return new vI({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const EI=ue("ZodPipe",(e,t)=>{VB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>lP(e,n,i,o),e.in=t.in,e.out=t.out});function n3(e,t){return new EI({type:"pipe",in:e,out:t})}const SI=ue("ZodReadonly",(e,t)=>{GB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>sP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function $I(e){return new SI({type:"readonly",innerType:e})}const DI=ue("ZodCustom",(e,t)=>{ZB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>WL(e,n)});function xI(e,t={}){return IL(DI,e,t)}function CI(e){return FL(e)}const f0={custom:"custom"};function Ht(e){return EL(m5,e)}const AI=["additional_pip","tort_threshold","pip_coverage_type","extended_medical","policy_pip_deductible"],wI=new Set([...AI,"is_corporation"]);rI({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:WP().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 TI=new Set(["Home","HomeConstruction","HomeFeatures","Demographics"]),NI=new Set(["HomePolicy","BundlePolicy"]),MI=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):wI.has(e)?!r3(n):e==="household_size"?!(t&&TI.has(t)):e==="number_of_mortgagees"?!(t&&NI.has(t)):(e==="has_co_applicant"||e==="co_applicant_middle_name"||e==="co_applicant_relationship")&&t&&MI.has(t)?!1:e==="multi_policy_discount"&&t==="HomePolicy"?!0:RI.has(e)}const RI=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"]),g5=new Date().getUTCFullYear(),Rc=ja().trim().min(1,"Required").regex(/^[A-Za-z\s]+$/,"Only alphabetic characters are allowed."),a3=p5([sI(""),ja().trim().regex(/^[A-Za-z\s]*$/,"Only alphabetic characters are allowed.")]).optional(),OI=(e,t,n)=>Ht({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)=>Ht({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)=>Ht({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(g5,`${e} cannot be in the future.`),kc=e=>Ht({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.`),ds=(e,t,n=0)=>{const i=Math.pow(10,t)-1,o=i.toLocaleString("en-US"),s=n.toLocaleString("en-US");return Ht({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.`)},kI={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:Ht({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:OI("Square footage",1,999999),sale_price_cents:Ht({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:Ht({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:Ht({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."),number_of_parking_spaces:Ht({error:"Number of covered parking spaces must be a number."}).int("Number of covered parking spaces must be a whole number.").min(1,"Number of covered parking spaces must be between 1 and 3.").max(3,"Number of covered parking spaces must be between 1 and 3."),dwelling_replacement_cost:ds("Replacement cost",9,1),other_structures_coverage:ds("Other structures",9),personal_property_coverage:ds("Personal property",9),loss_of_use_coverage:ds("Loss of use coverage",9),years_at_address:Ht({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:Ht({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:Ht({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:Ht({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:Ht({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:Ht({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:Ht({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:ds("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:Ht({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:Ht({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:Ht({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}function i3(e){const t=/^cov(\d+)to(\d+)$/.exec(e);if(t)return{perPerson:Number(t[1]),perOccurrence:Number(t[2])};const n=/^cov(\d+)CSL$/.exec(e);return n?{perPerson:Number(n[1]),perOccurrence:Number(n[1])}:null}const b5=[{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>g5)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=m=>m.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=i3(t),d=i3(n);if(!(!c||!d)&&(c.perPerson>d.perPerson||c.perOccurrence>d.perOccurrence))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=kI[e];if(!n)return;const i=n.safeParse(t);return i.success?void 0:i.error.issues[0].message}function o3(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 BI(e,t){const n={};for(const i of b5){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=BI(i,o);for(const[c,d]of Object.entries(s))n[c]=d;return n}function LI(e){if(e===""||e===null||e===void 0)return;const t=Number(e);return Number.isNaN(t)?void 0:t}const PI={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"},II={OwnHome:"Own Home",OwnCondo:"Own Condo",RentHome:"Rent Home",RentCondo:"Rent Condo",RentApartment:"Rent Apartment",LiveWithParents:"Live With Parents"},FI={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"},jI={Business:"Business",Pleasure:"Pleasure",Farming:"Farming",To_FromWork:"To/From Work",To_FromSchool:"To/From School"},zI={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"},UI={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"},HI={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"},VI={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"},GI={Dontknow:"Don't know",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000",cov250000:"250,000",cov500000:"500,000"},ZI={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"},YI={cov25000:"25,000",cov35000:"35,000",cov50000:"50,000",cov100000:"100,000",cov200000:"200,000",cov250000:"250,000",cov300000:"300,000",cov500000:"500,000"},qI={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"},KI={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"},WI=["NoCoverage","Zero","Fifty","Hundred","TwoHunderd","TwoHundredfifty","FiveHundred","SeventyFiveHundred","Thousand","TwoThousand"],QI=["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"},JI=["NoCoverage","TwentyFive","Fifty","SeventyFive","Hundred","TwoHundred","Unlimited"],v5={NoCoverage:"No Coverage",cov20to600:"20/600",cov25to750:"25/750",cov30to900:"30/900",cov40to1200:"40/1,200",cov50to1500:"50/1,500",cov100to3000:"100/3,000"},XI=["NoCoverage","cov20to600","cov25to750","cov30to900","cov40to1200","cov50to1500","cov100to3000"],eF=["NoCoverage","cov20to600","cov30to900","cov40to1200","cov50to1500"],_5={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"},tF={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"},nF={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)"},rF={OwnerPrimary:"Owner Primary",OwnerSecondary:"Owner Secondary",OwnerSeasonal:"Owner Seasonal"},aF={Basic:"Basic",Modest:"Modest",Average:"Average",AboveAverage:"Above Average",Expensive:"Expensive",VeryExpensive:"Very Expensive",Opulent:"Opulent"},iF={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"},oF={Slab:"Slab",Basement:"Basement",CrawlSpace:"Crawl Space",PartialBasement:"Partial Basement",PiersPostsPiles:"Piers / Posts / Piles",Open:"Open"},lF={NotOverWater:"No",PartiallyOverWater:"Partially Over Water",FullyOrEntirelyOverWater:"Fully or Entirely Over Water"},sF={One:"1",OneHalf:"1.5",Two:"2",TwoHalf:"2.5",Three:"3",ThreeHalf:"3.5",Four:"4",BiLevel:"Bi-Level",TriLevel:"Tri-Level"},uF={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"},cF={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"},dF={B_Gable:"Gable",C_Hip:"Hip",A_Flat:"Flat",D_Other:"Other"},fF={NotUpdated:"Not Updated",PartialUpdate:"Partial Update",CompleteUpdate:"Complete Update"},mF={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"},pF={AboveGround:"Above Ground",BelowGround:"Below Ground"},hF={Basement:"Below Grade Basement",SplitLevelBasement:"Split Level Basement",WalkoutBasement:"Walkout Basement"},yF={EntirelyCopper:"Entirely Copper",EntirelyGalvanized:"Entirely Galvanized",EntirelyPEX:"Entirely PEX",EntirelyPVC:"Entirely PVC",Polybutylene:"Polybutylene"},gF={TwentyFive:"$25,000",Fifty:"$50,000",OneHundred:"$100,000",TwoHundred:"$200,000",ThreeHundred:"$300,000",FourHundred:"$400,000",FiveHundred:"$500,000"},bF={cov1000:"$1,000",cov2000:"$2,000",cov3000:"$3,000",cov4000:"$4,000",cov5000:"$5,000"},vF={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%"},_F={None:"None",OnePercent:"1%",TwoPercent:"2%",FivePercent:"5%",TenPercent:"10%"},EF={_0_500ft:"0-500 Feet",_501_1000ft:"501-1000 Feet",_1001ftAndGreater:"1001 Feet And Greater"},SF={Lessthan5miles:"Less Than 5 Miles",Over5miles:"Over 5 Miles",NotAvailable:"Not Available"},l3={"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"},s3={Single:"Single",Married:"Married",Seperated:"Separated",Divorced:"Divorced",Widowed:"Widowed",DomesticPartner:"Domestic Partner"},u3={Female:"Female",Male:"Male"},E5={"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"},$F={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"},DF={Verbal_Threshold:"Limited right to sue",Zero_Threshold:"Unlimited right to sue"},xF={Primary:"Primary",Secondary:"Secondary"},CF={cov1000:"$1,000",cov10000:"$10,000"},AF={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"},wF={cov250:"$250",cov500:"$500",cov1000:"$1,000",cov2000:"$2,000",cov2500:"$2,500"},TF={"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"]},NF={"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"},c3=TF,S5=NF;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 $d(e){return Sy(e,E5)}function $5(e){return Sy(e,_5)}function D5(e){return Sy(e,S5)}function MF(e){return e.trim().toLowerCase()}function d3(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 Ds(e,t){if(!t.effectiveDateKey||!t.expirationDateKey)return!1;const n=d3(e[t.expirationDateKey]),i=d3(e[t.effectiveDateKey]);return n==null||i==null?!1:n<i}const RF=new Set(["HomePolicy","BundlePolicy"]);function Yc(e,t,n){return String(e.key??"")!=="lapse_in_coverage"||!n||!RF.has(n)?!0:t.home_prior_carrier_name!=="NoPriorInsurance"}function $y(e){let t=null,n=null,i=null,o=null;const s=new Set,c=new Set,d=h=>{const y=String(h.key??""),g=MF(String(h.question??""));!t&&(y==="auto_prior_carrier_name"||y==="home_prior_carrier_name"||g.includes("current auto insurance company"))&&(t=y),!n&&(y==="auto_prior_carrier_name"||g.includes("current auto insurance company"))&&(n=y),!i&&(y==="effective_date"||g.includes("when do you need your insurance to begin"))&&(i=y),!o&&(y==="auto_prior_expiration_date"||y==="home_prior_expiration_date"||g.includes("when does the current policy expire"))&&(o=y),(y==="auto_reason_for_no_insurance"||g.includes("reason you are not currently insured")||g.includes("reason for lapse in coverage"))&&s.add(y),(y==="auto_prior_years"||y==="auto_prior_months"||y==="auto_continuous_coverage_years"||y==="auto_prior_expiration_date"||y==="auto_current_annual_premium_cents"||y==="auto_prior_liability_limit")&&c.add(y)};e.forEach(d);const m=h=>{h.forEach(y=>{(y.conditionals??[]).forEach(g=>{const E=g.conditionalQuestions??[];E.forEach(d),m(E)})})};return m(e),{currentCarrierKey:t,autoCarrierKey:n,effectiveDateKey:i,expirationDateKey:o,noInsuranceReasonKeys:s,hideWhenNoPriorInsuranceKeys:c}}function x5(e,t){return!!t.autoCarrierKey&&e[t.autoCarrierKey]==="NoPriorInsurance"}function xs(e,t){return x5(e,t)?!0: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?!1:Ds(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 f3=["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"],Dy="credify_quote_id",xy="credify_auth_token";function m3(e){try{localStorage.setItem(Dy,e)}catch(t){console.error("Failed to save quoteId to localStorage:",t)}}function rf(){try{return localStorage.getItem(Dy)}catch(e){return console.error("Failed to load quoteId from localStorage:",e),null}}function C5(){try{localStorage.removeItem(Dy)}catch(e){console.error("Failed to clear quoteId from localStorage:",e)}}function OF(e){try{localStorage.setItem(xy,e)}catch(t){console.error("Failed to save authToken to localStorage:",t)}}function kF(){try{return localStorage.getItem(xy)}catch(e){return console.error("Failed to load authToken from localStorage:",e),null}}function A5(){try{localStorage.removeItem(xy)}catch(e){console.error("Failed to clear authToken from localStorage:",e)}}function BF(){C5(),A5()}const LF="credify-insurance-widget",PF="1.0",w5=25,T5=64*1024,IF=`
|
|
121
|
+
…[truncated]`;let p3=!1,h3=null,y3="",N5=w5,y0=T5,Cs=[];function FF(e){return typeof e=="string"?e:e instanceof URL?e.href:e.url}function jF(e,t){return t?.method?t.method.toUpperCase():typeof e!="string"&&!(e instanceof URL)&&e.method?e.method.toUpperCase():"GET"}function g3(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 zF(e){try{const t=[];return new URL(e).searchParams.forEach((n,i)=>t.push({name:i,value:n})),t}catch{return[]}}function UF(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 HF(e){const t=e.length;return t<=y0?{text:e,size:t}:{text:e.slice(0,y0)+IF,size:t}}function VF(e){Cs.push(e),Cs.length>N5&&Cs.shift()}function GF(e){if(p3)return!0;if(typeof window>"u"||typeof window.fetch!="function")return!1;y3=e.baseUrl,N5=e.maxEntries??w5,y0=e.maxBodyBytes??T5,h3=window.fetch.bind(window);const t=h3;return window.fetch=async(n,i)=>{let o;try{o=FF(n)}catch{return t(n,i)}if(!o.startsWith(y3))return t(n,i);const s=g3(i?.headers??(typeof n!="string"&&!(n instanceof URL)?n.headers:void 0)),c={startedDateTime:new Date().toISOString(),time:-1,request:{method:jF(n,i),url:o,httpVersion:"HTTP/1.1",headers:s,queryString:zF(o),cookies:[],headersSize:-1,bodySize:typeof i?.body=="string"?i.body.length:-1,postData:UF(s,i)},response:ZF(),cache:{},timings:{send:0,wait:-1,receive:0}};VF(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=g3(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}=HF(g);c.response.content.text=E,c.response.content.size=S,c.response.bodySize=S}).catch(()=>{})}catch{}return m},p3=!0,!0}function ZF(){return{status:0,statusText:"",httpVersion:"HTTP/1.1",headers:[],cookies:[],content:{size:0,mimeType:""},redirectURL:"",headersSize:-1,bodySize:-1}}function YF(){return{log:{version:"1.2",creator:{name:LF,version:PF},entries:Cs.map(e=>({...e}))}}}function qF(){return Cs.length}const KF=[/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],WF=[/\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]",QF=8;function af(e){for(const t of KF)if(t.test(e))return!0;return!1}function Ka(e){let t=e;for(const n of WF)t=t.replace(n,qa);return t}function Ua(e,t=0,n=new WeakSet){if(t>QF)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 b3(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 v3(e){for(const t of e)t.value=af(t.name)?qa:Ka(t.value)}function _3(e){try{return JSON.stringify(Ua(JSON.parse(e)))}catch{return Ka(e)}}function JF(e){const t=JSON.parse(JSON.stringify(e));for(const n of t.log.entries){v3(n.request.headers),v3(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=_3(n.request.postData.text)),n.response.content.text&&(n.response.content.text=_3(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{qF()>0&&n.addAttachment({filename:"quote-failure.har",data:JSON.stringify(JF(YF())),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 ll=null;const XF=6e4,E3=new Map;function ej(e){try{return new URL(e).pathname}catch{return e}}function S3(e,t,n){if(!(n>=500&&n<600)&&!(n===0))return;e.__sentryReported=!0;const s=ej(t),c=`${s}:${n}`,d=Date.now(),m=E3.get(c);m&&d-m<XF||(E3.set(c,d),Uo(e,{phase:"api_request",endpoint:s,statusCode:n}))}function Wc(e){ll=e,OF(e)}function Jr(){return ll}function Qc(){const e=kF();e&&(ll=e)}function M5(){ll=null,A5()}async function qt(e,t){const n={"Content-Type":"application/json"};ll&&(n.Authorization=`Bearer ${ll}`);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 S3(s,e,0),o}if(!i.ok){let o=`Request failed with status ${i.status}`,s;try{const d=await i.json();o=d.error||o,typeof d.retryAfterSeconds=="number"&&(s=d.retryAfterSeconds)}catch{o=i.statusText||o}if(s===void 0){const d=Number(i.headers?.get("Retry-After"));Number.isFinite(d)&&d>0&&(s=d)}const c=new Error(o);throw c.statusCode=i.status,c.retryAfterSeconds=s,S3(c,e,i.status),c}return i}async function Qs(e){try{return await e.json()}catch{return{}}}async function tj(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 nj(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 R5(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 rj(e){return await(await qt(`${Rt}/verify-quote`,{action:"resume",resumeToken:e})).json()}async function O5(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 $3(e){const t=e?{quoteId:e}:{};return await(await qt(`${Rt}/get-quote`,t)).json()}async function k5(e){return(await qt(`${Rt}/get-vehicle-options`,e)).json()}async function aj(e){return(await qt(`${Rt}/get-vehicle-options`,{...e,action:"vinDecode"})).json()}async function ij(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 oj(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 lj(e){await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"dismissVehiclePrefill"})}async function sj(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 uj(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 cj(e){await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"dismissDriverPrefill"})}async function dj(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 fj(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 mj={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:PI,auto_prior_liability_limit:zI,auto_reason_for_no_insurance:UI,residence_type:II,home_prior_carrier_name:FI,policy_bi:HI,policy_um:VI,policy_pd:GI,policy_mp:ZI,policy_umpd:YI,policy_pip:qI,policy_auto_death_indemnity:KI,vehicle_comp_deductible:p0,vehicle_coll_deductible:p0,vehicle_towing_and_labor:h0,vehicle_transportation_expense:v5,education_level:_5,industry:E5,occupation:S5,usage:jI,architectural_style:tF,dwelling_type:nF,occupancy_type:rF,construction_quality:aF,construction_type:iF,foundation_type:oF,located_over_water:lF,number_of_stories:sF,exterior_wall_type:uF,roof_material_type:cF,roof_shape:dF,roof_updated_type:fF,heating_type:mF,oil_tank_location:pF,basement_type:hF,plumbing_type:yF,personal_liability:gF,dwelling_medical_payments:bF,all_perils_deductible:vF,windstorm_deductible:_F,distance_from_fire_hydrant_ft:EF,distance_from_fire_station_miles:SF,employment_industry:l3,marital_status:s3,gender:u3,co_applicant_employment_industry:l3,co_applicant_marital_status:s3,co_applicant_gender:u3,description:$F,tort_threshold:DF,pip_coverage_type:xF,extended_medical:CF,additional_pip:AF,policy_pip_deductible:wF},x3=["OTHER / NOT LISTED"],C3=["SEDAN","SUV","COUPE","HATCHBACK","PICKUP","VAN","WAGON","OTHER"],pj=["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 A3(e){const t=e.replace(/\D+/g,"");if(t!=="")return LI(t)}function hj(e){return e==="-"||e==="+"||e==="."||e==="e"||e==="E"}const yj={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:9,loss_of_use_coverage:9,amount_paid_cents:7,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,number_of_parking_spaces: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},w3=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"]),gj=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"},bj={license_number:20};function vj(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 _j=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!_j.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 T3(e,t){return Jc(e)?"Yes":t}function N3(e){return typeof e=="number"&&Number.isFinite(e)?e:typeof e=="string"&&e.trim()!==""&&!Number.isNaN(Number(e))?Number(e):null}function M3(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 R3(e,t){const n=N3(e),i=N3(t);if(n!=null&&i!=null)return n-i;const o=M3(e),s=M3(t);return o!=null&&s!=null?o-s:e==null||t==null?null:String(e).localeCompare(String(t))}function Ej(e,t){return Array.isArray(e)?e.some(n=>n===t):typeof e=="string"?t!=null&&e.includes(String(t)):!1}function fs(e,t,n){switch(t){case"equals":return e===n;case"notEquals":return e!==n&&e!==""&&e!=null;case"lessThan":{const i=R3(e,n);return i!=null&&i<0}case"greaterThan":{const i=R3(e,n);return i!=null&&i>0}case"contains":return Ej(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 _s(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 _s(e,[...t??[],n])}function ln(e,t,n,i){return tr(e,[...t??[],n],i)}function Sj(e,t){return e?.length?`${e.join("-")}-${t}`:t}const $j="__items",Pc=e=>`${e}${$j}`;function $n(e){return e==null?"":typeof e=="string"?e:String(e)}function O3(e){return e==null?"":typeof e=="number"&&Number.isFinite(e)||typeof e=="string"?e:""}function Dj(e){return e==null?"":typeof e=="string"||typeof e=="number"?e:String(e)}function B5({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=>k5({quoteId:s,...z})),[h,s]),g=b.useMemo(()=>py(e),[e]),E=b.useMemo(()=>$y(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]),$=b.useMemo(()=>{const z={};return t&&Object.assign(z,t),z},[t]),[x,w]=b.useState($);b.useEffect(()=>{w($)},[$]);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({}),O=b.useCallback(async(z,T)=>{if(!s||!o3(T))return;const N=z?z.join("-"):"_root";Ae(ie=>({...ie,[N]:!0})),de(ie=>({...ie,[N]:null}));try{const ie=await aj({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?_s(A,z)??{}:ie;return z?{state:ie.state,...ge,[T]:N}:{...ge,[T]:N}}function G(z,T){const N=b5.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||E.autoCarrierKey)?x5(A,E)||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 $e=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),Ce=fs(be,_e.conditionalType,_e.conditionalValue),xe=fs(me,_e.conditionalType,_e.conditionalValue);if(Ce&&!xe&&_e.conditionalQuestionsAllowMultiple){const Ne=_e.conditionalQuestions??[];if(Ne.length>0){const re=Pc(N);$e=tr($e,[...T??[],re],[]);const oe=(De,Ee)=>{De.forEach(Te=>{(Te.conditionals??[]).forEach(ke=>{if(ke.conditionalQuestionsAllowMultiple){const Ue=Pc(Te.key);$e=tr($e,[...Ee,Ue],[])}const qe=ke.conditionalQuestions??[];qe.length>0&&oe(qe,Ee)})})};oe(Ne,[...T??[],re])}}}}n&&i?i($e):w($e),I($e)};if(N==="vehicle_policy_selections"){const me=A.vehicles__items??[],$e=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=$e.length>1,be=Ue=>Object.entries(Ue).map(([ze,tt])=>({value:ze,label:tt})),Ce=Ed(A.state??A.State),xe=(Ue,ze)=>Object.fromEntries(Ue.filter(tt=>tt in ze).map(tt=>[tt,ze[tt]])),re=be(xe(Ce?WI:QI,p0)),oe=Ce?xe(JI,h0):h0,De=be(oe),Te=be(xe(Ce?XI:eF,v5)),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=$e.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(cs,{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(cs,{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(cs,{id:`veh-${ze}-tow`,label:"Towing and Labor",required:!0,placeholder:"Select...",options:De,value:Tt("vehicle_towing_and_labor"),onChange:Ye=>Re(ze,"vehicle_towing_and_labor",Ye.currentTarget.value)}),v.jsx(cs,{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:$e.map((Ye,Hn)=>{const fl=[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:`${fl} %`,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??[],$e=A.drivers__items??[];if(S&&$e.length<=1)return null;if(me.length===0||$e.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=(Ce,xe,Ne)=>{const re={...se},oe=`v${Ce}`;re[oe]={...re[oe]??{}},re[oe][`d${xe}`]=Ne,Ie(re)},be=Ce=>{if($e.length<2)return null;const xe=se[`v${Ce}`];if(!xe)return null;const Ne=$e.map((De,Ee)=>xe[`d${Ee}`]??0),re=Ne.filter(De=>De>0);if(re.length>=2&&re.every(De=>De===re[0])&&re[0]===50)return`Assignments for Vehicle ${Ce+1} cannot be 50 percent for both Drivers.`;const oe=Ne.reduce((De,Ee)=>De+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((Ce,xe)=>{const Ne=[Ce.year,Ce.make,Ce.model].filter(Boolean).join(" ")||`Vehicle ${xe+1}`,re=be(xe);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:Ne}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:$e.map((oe,De)=>{const Ee=[oe.first_name,oe.last_name].filter(Boolean).join(" ")||`Driver ${De+1}`,Te=se[`v${xe}`]?.[`d${De}`];return v.jsx("div",{style:{flex:"0 0 140px"},children:v.jsx(Tp,{id:`assignment-v${xe}-d${De}`,label:`${Ee} %`,value:Te??"",min:0,max:100,step:1,inputMode:"numeric",onChange:Re=>{const ke=Re.currentTarget.value.replace(/\D+/g,"");_e(xe,De,ke===""?0:Math.min(100,parseInt(ke,10)))}})},`${xe}-${De}`)})}),re&&v.jsx("p",{style:{color:"#dc3545",fontSize:"0.85rem",marginTop:"8px",marginBottom:0},children:re})]},xe)})]},N)}switch(z.inputType){case"text":{if(N==="vin"&&s){const me=T?T.join("-"):"_root",$e=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:$n(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:$e||!o3($n(Se)),className:"btn btn-outline shrink-0 self-end !w-auto min-w-[8.5rem] px-4 whitespace-nowrap disabled:opacity-50",onClick:()=>O(T,$n(Se)),children:$e?"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=$n(Se);return v.jsx(jc,{id:N,label:ie,hint:ge,value:me,inputMode:"numeric",pattern:"[0-9]*",maxLength:6,onChange:$e=>{const se=$e.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:$n(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"),$e=typeof me=="string"?me:"",se=$e?`${$e}. Re-enter to update.${ge?` ${ge}`:""}`:ge;return v.jsx(K7,{id:N,label:ie,hint:se,value:$n(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:$n(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we,autoComplete:Lc[N],maxLength:bj[N]},N)}case"email":return v.jsx(W7,{id:N,label:ie,value:$n(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(J7,{id:N,label:ie,value:$n(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(UE,{id:N,label:ie,value:$n(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(Q7,{id:N,label:ie,value:$n(Se),onChange:me=>Ie(me.currentTarget.value),onBlur:()=>C(N,"url",T),"aria-required":he||void 0,error:we},N);case"number":{const me=yj[N];return w3.has(N)||gj.has(N)?v.jsx(q7,{id:N,label:ie,hint:ge,value:O3(Se),isCurrency:w3.has(N),maxDigits:me,onChange:$e=>Ie(A3($e.currentTarget.value)),onBlur:()=>C(N,"number",T),required:he,"aria-required":he||void 0,error:we},N):v.jsx(Tp,{id:N,label:ie,hint:ge,value:O3(Se),inputMode:"numeric",pattern:"[0-9]*",onKeyDown:$e=>{if(hj($e.key)){$e.preventDefault();return}me!==void 0&&/^\d$/.test($e.key)&&String($e.currentTarget.value).replace(/\D/g,"").length>=me&&$e.preventDefault()},onChange:$e=>{let se=$e.currentTarget.value;me!==void 0&&(se=se.slice(0,me)),Ie(A3(se))},onBlur:()=>C(N,"number",T),required:he,"aria-required":he||void 0,error:we},N)}case"textarea":return v.jsx(X7,{id:N,label:ie,value:$n(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:$e}=vj(N);return v.jsx(BO,{id:N,label:ie,hint:ge,value:$n(Se),min:me,max:$e,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:[],$e=`${N}-error`;return v.jsxs("fieldset",{className:"space-y-2","aria-describedby":we?$e: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:Ce=>{const xe=new Set(me);Ce.currentTarget.checked?xe.add(se):xe.delete(se),Ie(Array.from(xe))},"aria-required":he||void 0,"aria-describedby":we?$e:void 0},_e)})}),we&&v.jsx("p",{id:$e,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??[],$e=T&&T.length>0?`${N}__${T.join("__")}`:N;return v.jsx(IO,{legend:ie,required:he,children:me.map(se=>v.jsx(PO,{name:$e,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(Ne=>Ne.vin)??[]);let $e=!1,se,_e,be;if(N==="year"||N==="make"||N==="model"||N==="body_style"){const Ne=T?T.join("-"):"_root";ye[Ne]&&($e=!0,se="Looking up VIN...")}if(!$e&&(N==="make"||N==="model"||N==="body_style")){const Ne=T?T.join("-"):"_root";be=Ne;const re=rn(A,T,"year"),oe=typeof re=="number"?re:Number(re);if(N==="make"){const De=`${Ne}:makes`;if(!oe||!Number.isFinite(oe))$e=!0,se="Select a year first";else{_e={year:oe};const Ee=B(_e);Ee&&Ee.length>0?me=Ee:ne[De]?(se="Loading makes...",me=[...f3]):me=[...f3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}else if(N==="model"){const De=`${Ne}:models`,Ee=String(rn(A,T,"make")??"");if(!Ee)$e=!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[De]?(se="Loading models...",me=[...x3]):me=[...x3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}else{const De=`${Ne}:bodyStyles`,Ee=String(rn(A,T,"make")??""),Te=String(rn(A,T,"model")??"");if(!Te)$e=!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[De]?(se="Loading body styles...",me=[...C3]):me=[...C3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}}if(N==="occupation"||N==="co_applicant_occupation"){const Ne=N==="co_applicant_occupation"?"co_applicant_employment_industry":void 0,re=Ne?void 0:rn(A,T,"industry"),oe=rn(A,T,Ne??"employment_industry"),Ee=String($d(re??oe)??"").trim();me=[...c3[Ee]??pj],typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}const Ce=Sj(T,N),xe=m?.has([...T??[],N].join("."))??!1;return v.jsx(cs,{id:Ce,label:se?`${ie} — ${se}`:ie,required:he,"aria-required":he||void 0,error:we,disabled:$e,value:xe?"":Dj(Se),onChange:Ne=>{const re=Ne.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($d(re)??"").trim(),Te=c3[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 De=T?_s(oe,T)??{}:oe;G(N,{...De,[N]:re})},placeholder:se??"Select an option",onFocus:_e&&be?()=>X(be,_e):void 0,options:me.map(Ne=>({value:Ne,label:D3[N]?.[Ne]??mj[Ne]??Ne}))},Ce)}case"address":return v.jsx(HO,{id:N,label:ie,value:$n(Se),onChange:(me,$e)=>{let se=ln(A,T,N,me);const _e=$e?.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=$e?.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"&&Ds(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 $e=T3(ge,rn(A,T,he)),se=me.filter(be=>fs($e,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,Ce)=>{const xe=be.conditionalQuestions??[];if(!xe.length)return null;if(!be.conditionalQuestionsAllowMultiple)return v.jsx("div",{className:"mt-3",children:W(xe,T)},`branch-${he}-${Ce}`);const Ne=Pc(he),re=_s(A,[...T??[],Ne])??[],oe=Math.max(1,re.length||1),De=()=>{const Re=tr(A,[...T??[],Ne,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??[],Ne],Re);n&&i?i(ke):w(ke),I(ke)},Te=`${he}__c${Ce}`;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:De,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??[],Ne,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}`,fl=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,fl]}),xe.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"&&Ds(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=>fs(ri,Rn.conditionalType,Rn.conditionalValue));return(Vn.length>1&&!Vn.some(Rn=>Rn.conditionalQuestionsAllowMultiple)?Vn.slice(0,1):Vn).map((Rn,pl)=>{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}-${pl}`);const ua=Pc(Nn.key),br=_s(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 hl=[...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,hl)]},`nested-item-${Ue}-${pl}-${dr}`)})]},`nested-repeat-${Ue}-${pl}`)})})()]},`${Ue}-${gr}`)})]},`group-${Ue}`)})]},`branch-${he}-${Ce}`)})]},`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 $e=E.currentCarrierKey?A[E.currentCarrierKey]:void 0;if(!($e&&$e!=="NoPriorInsurance"&&Ds(A,E)&&sh.has(Se)))return}Jc(ge)||z.push(ge);const he=ge.conditionals??[];if(!he.length)return;const we=T3(ge,rn(A,ie,Se)),Ie=he.filter($e=>fs(we,$e.conditionalType,$e.conditionalValue));(Ie.length>1&&!Ie.some($e=>$e.conditionalQuestionsAllowMultiple)?Ie.slice(0,1):Ie).forEach($e=>{const se=$e.conditionalQuestions??[];se.length&&($e.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:fj(c),"data-form-area":c??"unknown-stage",onSubmit:te,noValidate:!0,children:W(g)})}function k3({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})},$=()=>{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:$})]}),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 xj="https://getcredify.com/privacy-policy";function Cj(){return v.jsx("a",{href:xj,target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})}function B3(){return v.jsxs(v.Fragment,{children:["See our ",v.jsx(Cj,{})," for how we use your information."]})}const Aj=new Set(["Product","Name","Home","HomeConstruction","HomeFeatures","Vehicle","Driver","Demographics","Customer","HomeCustomer","BundleCustomer"]),wj=new Set(["AutoCurrentCarrier","HomeCurrentCarrier","HomePolicy","BundlePolicy","AutoPolicy"]);function Tj(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--${Tj(e)}`}function L5({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(B3,{})})]}):wj.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."}):Aj.has(e)?v.jsx("p",{className:jo(e),"data-stage-key":e,children:v.jsx(B3,{})}):null:null}function P5(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=P5(ij),Ay=P5(sj),Nj=Cy.fetch,Mj=Cy.peek,Rj=Cy.prefetch,Oj=Ay.fetch,kj=Ay.peek,Bj=Ay.prefetch,Lj=["vin","year","make","model"];function Pj(e){if(!e||typeof e!="object")return!0;const t=e;return Lj.every(n=>{const i=t[n];return i==null||String(i).trim()===""})}function Ij(e,t){if(t.length===0)return e;const n=e.vehicles__items??[],i=n.filter(c=>!Pj(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 Fj=["first_name","last_name","date_of_birth"];function I5(e){if(!e||typeof e!="object")return!0;const t=e;return Fj.every(n=>{const i=t[n];return i==null||String(i).trim()===""})}function L3(e){return`${String(e.first_name??"").trim()} ${String(e.last_name??"").trim()}`.trim().toUpperCase()}function jj(e,t){if(t.length===0)return e;const n=e.drivers__items??[],i=n.filter(c=>!I5(c)),o=new Set(i.map(L3).filter(c=>c!=="")),s=t.filter(c=>{const d=L3(c);return d===""||!o.has(d)});return s.length===0&&i.length===n.length?e:{...e,drivers:"Yes",drivers__items:[...i,...s]}}function zj(e){return(e.drivers__items??[]).some(n=>!I5(n))}const Uj=["widgetOpened","widgetClosed","stageViewed","stageCompleted","flowCompleted","ratesViewed","ratesBack","submissionFailed"],Dd={};function Hj(e){let t=Dd[e];return t||(t=new Set,Dd[e]=t),t}function F5(e,t){Hj(e).add(t)}function j5(e,t){Dd[e]?.delete(t)}function ni(e,...t){const n=Dd[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 Vj(){ni("widgetOpened")}function Gj(){ni("widgetClosed")}function Zj(e){ni("stageViewed",e)}function P3(e){ni("stageCompleted",e)}function Yj(){ni("flowCompleted")}function qj(e){ni("ratesViewed",e)}function Kj(){ni("ratesBack")}function ms(e){ni("submissionFailed",e)}const z5=new Set(["Disabled","Retired","Unemployed","Other"]);function Wj(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!z5.has(s)}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!z5.has(s)}function U5(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 U5(e)?"Yes":t}function I3(e){return typeof e=="number"&&Number.isFinite(e)?e:typeof e=="string"&&e.trim()!==""&&!Number.isNaN(Number(e))?Number(e):null}function F3(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 j3(e,t){const n=I3(e),i=I3(t);if(n!=null&&i!=null)return n-i;const o=F3(e),s=F3(t);return o!=null&&s!=null?o-s:e==null||t==null?null:String(e).localeCompare(String(t))}function Jj(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=j3(e,n);return i!=null&&i<0}case"greaterThan":{const i=j3(e,n);return i!=null&&i>0}case"contains":return Jj(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 Xj=new Set(["auto_prior_years","auto_prior_months","auto_continuous_coverage_years"]);function ez(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=$y(i),s=[],c=d=>{d.forEach(m=>{if(!qc(m,t,o)||!Wj(m,t)||!Yc(m,t,n))return;const h=String(m.key);if(nf(h,n,t)){const $=o.currentCarrierKey?t[o.currentCarrierKey]:void 0;if(!($&&$!=="NoPriorInsurance"&&Ds(t,o)&&Xj.has(h)))return}U5(m)||s.push(m);const y=wy(m,t[h]),g=m.conditionals??[];if(!g.length)return;const E=g.filter($=>Ty(y,$.conditionalType,$.conditionalValue));(E.length>1&&!E.some($=>$.conditionalQuestionsAllowMultiple)?E.slice(0,1):E).forEach($=>{const x=$.conditionalQuestions??[];x.length&&($.conditionalQuestionsAllowMultiple||c(x))})})};return c(i),s}const H5="__items",xd=e=>`${e}${H5}`;function tz(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 $=t[xd(d)]??[];if($.length===0){n.push({groupKey:d,index:-1,fieldKey:"",fieldLabel:"",message:"At least one entry is required"});continue}for(const[x,w]of $.entries()){const R=[...i,xd(d),x],I=of(S,w,o).filter(Z=>!(tz(Z,R)||!Qj(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 nz(e,t,n){const i=[];return Cd(e,t,i,[],n,t),i}function rz(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,$]of E.entries())typeof $!="object"||$===null||(i(of(g,$,n),$,{groupKey:s,index:S}),v0(g,$,n,i))}}}function V5(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 z3({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),[$,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:$,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 az({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,$]=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,O=de?.key??null,B=b.useRef(h);B.current=h;const X=z3({targetStage:"Vehicle",stageKey:O,quoteId:s,fetchSuggestions:Nj,peekSuggestions:Mj,applySelection:oj,dismissSelection:lj,mergeItems:Ij,setAllValues:y}),F=z3({targetStage:"Driver",stageKey:O,quoteId:s,fetchSuggestions:Oj,peekSuggestions:kj,applySelection:uj,dismissSelection:cj,mergeItems:jj,setAllValues:y,shouldSkip:()=>zj(B.current)}),G=O==="Vehicle"&&X.isPending||O==="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&&O&&c?.has(O)?!1:!!(he||e.slice(j+1).every(Ie=>Ie.key==="AutoPolicy")&&(h.drivers__items??[]).length<=1)},[j,e,h,O,c]);b.useEffect(()=>{Ae&&d>=e.length&&m(e.length-1)},[d,e.length,Ae]),b.useEffect(()=>{L(0),Z([])},[O]),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||!O){$(!1),I(null);return}if(g[O]){$(!1),I(null);return}let he=!1;return $(!0),I(null),Promise.resolve(de.loadQuestions()).then(we=>{if(!he){if(!Array.isArray(we))throw new Error(`loadQuestions("${O}") did not return an array`);E(Ie=>({...Ie,[O]:we}))}}).catch(we=>{he||I(`Failed to load stage "${de?.title??""}": ${we?.message??"Unknown error"}`)}).finally(()=>{he||$(!1)}),()=>{he=!0}},[de,O,g]);const U=O?g[O]:void 0,W=b.useMemo(()=>$y(py(U??[])),[U]);b.useEffect(()=>{de&&O&&U&&Zj({stageKey:O,stageTitle:de.title??O,stepIndex:d+1,totalSteps:e.length})},[O,d,e.length,de,U]);const Y=b.useMemo(()=>{if(!U)return{};const he={};(me=>{const $e=[],se=_e=>{_e.forEach((be,Ce)=>{const xe=Ya(be,Ce);$e.push(xe);const Ne=xd(xe);$e.push(Ne),(be.conditionals??[]).forEach(oe=>{const De=oe.conditionalQuestions??[];De.length>0&&se(De)})})};return se(me),$e})(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,$e]of Object.entries(h))me.endsWith(H5)&&!(me in he)&&(he[me]=$e);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,O??void 0),we=xs(h,W),Ie=he.map(Ee=>Kc(Ee,W)?{...Ee,required:we}:Ee),me=Fs(Ie,Y),$e=new Set(Ie.map((Ee,Te)=>Ya(Ee,Te))),se=Object.entries(me).some(([Ee,Te])=>Te&&$e.has(Ee)),_e=rz(U,h,O??void 0),Ce=he.some(Ee=>String(Ee.key??"")==="vehicle_policy_selections")?V5(h):!1,xe=h.driver_vehicle_assignments,Ne=h.drivers__items??[];let re=!1;if(xe&&Ne.length>=2){const Ee=h.vehicles__items??[];for(let Te=0;Te<Ee.length;Te++){const Re=xe[`v${Te}`];if(!Re)continue;const ke=Ne.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||Ce||re){const Ee=new Map(Ie.map((ke,qe)=>[Ya(ke,qe),ke])),Re=[...Object.entries(me).filter(([ke,qe])=>!!qe&&$e.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,Ce?"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[O??""]===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,O??""):await t(Y,O??""),{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===O),ze=Ue>=0?Math.min(Ue+1,qe.length-1):Math.min(d+1,qe.length-1);ne.current[O??""]=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=ez(O??"unknown-stage");return Ae?v.jsxs("div",{className:`form-wizard-shell form-wizard-shell--${Se}`,"data-stage-key":O??void 0,children:[O==="Vehicle"&&X.suggestions&&X.suggestions.length>0&&v.jsx(k3,{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}),O==="Driver"&&F.suggestions&&F.suggestions.length>0&&v.jsx(k3,{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:O==="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(B5,{questions:U??[],controlledValues:Y,onChangeValues:te,onSubmit:()=>N(),quoteId:s,widgetStageKey:O??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(!O)return he;const we={...he};return delete we[O],we})},children:"Retry"})]}),v.jsx(L5,{stageKey:O})]}),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 G5={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"}},U3=["#0369A1","#1D4ED8","#0F766E","#7C3AED","#B45309","#DC2626","#0891B2","#9333EA"];function iz(e){return e.replace(/[^A-Za-z0-9]/g,"").slice(0,3).toUpperCase()||"CAR"}function Z5(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").trim()}function Ti(e){if(!e)return e;const t=G5[e];return t?t.name:Z5(e)}function oz(e){const t=new Set,n=[];return e.forEach((i,o)=>{const c=G5[i]??{name:Z5(i),abbr:iz(i),color:U3[o%U3.length]};t.has(c.name)||(t.add(c.name),n.push(c))}),n}function lz(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),oz(n)}const sz="https://getcredify.com/privacy-policy";function uz({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:sz,target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Notice"}),"."]})})})}function cz({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(uz,{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 Y5=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});function q5(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 dz(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 H3({onBack:e}){const t=()=>{Kj(),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 fz({rate:e,status:t,onRequestBind:n,disabled:i,showLobLabel:o=!0,className:s}){const c=q5(e)/100,d=Y5.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($=>!!$&&typeof $.label=="string"&&$.label.trim()!==""&&typeof $.value=="string"&&$.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(($,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:$.label}),v.jsx("dd",{className:"text-right text-xs font-semibold text-slate-900",children:$.value})]},`${$.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 mz({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 pz({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,$]=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,O]=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 De=oe.lob??null;De&&h[oe.quote_rate_id]==="success"&&re.add(De)}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(()=>dz(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||(BF(),M5(),$(!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]),$e=b.useMemo(()=>{if(!n)return[];const re=d.some(Ee=>Ee.lob==="PersonalAuto"),oe=d.some(Ee=>Ee.lob==="PersonalHome"),De=[];return re||De.push("Sorry, no rates found for Personal Auto."),oe||De.push("Sorry, no rates found for Homeowners."),De},[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(H3,{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"),O(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),O(null),j("idle")},Ce=async()=>{if(!A||!i)return;const re=V.trim();if(!re){O("Please enter your phone number.");return}j("sending"),O(null);try{await R5(i,re),ye("code"),j("sent")}catch(oe){const De=oe;if(j("idle"),De?.message==="sms_rate_limited"){const Ee=De.retryAfterSeconds??60;ye("code"),O(`We just sent a code to that number. You can request another in ${Ee} second${Ee===1?"":"s"}.`);return}O("We could not send a code to that number. Please check it and try again.")}},xe=async()=>{if(!A||!i)return;const re=ne.trim();if(!re){O("Please enter the code we texted you.");return}j("verifying"),O(null);try{const{isVerified:oe,token:De,code:Ee}=await g0(i,re);if(!oe||!De){j("sent"),O(Ee==="OTP_EXPIRED"?"That code has expired. Request a new one and try again.":"That code was incorrect. Please try again.");return}Wc(De);const Te=A;Z(!0),L(null),j("idle"),w(Te)}catch(oe){const De=oe;if(j("sent"),De?.message==="too_many_attempts"){O("Too many incorrect attempts. Request a new code to try again.");return}O("Something went wrong verifying your code. Please try again.")}},Ne=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 dj(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(" "),De="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(UE,{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:De,children:"Back to rates"}),v.jsx("button",{type:"button",onClick:Ce,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(L5,{stageKey:"SMSVerification"}),v.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-3",children:[v.jsx("button",{type:"button",onClick:()=>{ye("phone"),O(null)},className:De,children:"Change number"}),v.jsx("button",{type:"button",onClick:xe,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(cz,{carrierName:Ti(x.rate.carrier_name),formattedPremium:Y5.format(q5(x.rate)/100),lobLabel:re,acknowledged:R,onAcknowledgeChange:I,onCancel:_e,onProceed:Ne,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"}),$e.length>0&&v.jsx("div",{className:"mt-3 space-y-1",children:$e.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(mz,{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(fz,{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(H3,{onBack:t})]})}function hz({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(B5,{questions:n,controlledValues:i,onChangeValues:o,onSubmit:()=>{},quoteId:c,widgetStageKey:e,invalidValueKeys:m,fetchVehicleOptions:d})]})}const V3=new Set(["make","model","body_style","occupation","co_applicant_occupation","quote_vehicle_id"]),G3={vehicles:"Vehicle",drivers:"Driver",driver_accidents:"Accident",driver_violations:"Violation",losses:"Loss",home_losses:"Loss"};function Z3(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 yz=new Set(["SMSVerification","CanopyConnect","Phone"]);function gz({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"||V3.has(String(h.key??"")))return;const E=Z3(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||V3.has(S))return;const $=Z3(E);if($.length===0)return;const x=y[S];if(!Cr(x,E.inputType)&&!$.includes(String(x))){const w=G3[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 nz(t,n,e)){const y=G3[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")&&V5(n)&&d.push({key:"__vehicle_policy",label:"Vehicle coverage selections",message:"Coverage selections are incomplete"}),Sz(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=Ez(n);h&&d.push(h)}return{stageKey:e,errorsByKey:c,issues:d,hasIssues:d.length>0}}async function bz(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 vz=/^[A-Z]{2}$/,_z=/^\d{5}(-\d{4})?$/;function Ez(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 vz.test(n)&&_z.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 Sz(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($=>xi($)):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=$d(y.industry),y.education_level=$5(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 $z={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 K5(e){const t=e?.trim().toUpperCase();if(!t)return"your state";const n=$z[t];return n?`${n} (${t})`:"your state"}const Dz=1500,xz=800;function Cz(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 Az({stages:e,initialValues:t,quoteId:n,isSubmitting:i,onConfirmed:o}){const s=b.useMemo(()=>e.filter(te=>!yz.has(String(te.key))),[e]),[c,d]=b.useState(t),[m,h]=b.useState({}),[y,g]=b.useState(null),[E,S]=b.useState(!0),[$,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,$]);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)})},Dz),()=>{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=Cz(c),O=b.useRef(new Map),B=b.useRef(Promise.resolve()),X=b.useCallback(te=>{const z=`${te.year??""}|${te.make??""}|${te.model??""}`,T=O.current,N=T.get(z);if(N)return N;const ie=B.current.catch(()=>{}).then(()=>k5({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(()=>{bz(c,X).then(T=>{j.current===te&&J(T)}).finally(()=>{j.current===te&&Ae(!1)})},xz);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]=gz({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 O5(te);if(!z){A(`Sorry, Credify Corporation doesn't currently offer insurance in ${K5(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(hz,{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"],Y3={Auto:{label:"Auto Policy",icon:"🚗",accent:"#0369A1"},Home:{label:"Home Policy",icon:"🏠",accent:"#059669"},Bundle:{label:"Home + Auto Bundle",icon:"🔗",accent:"#7C3AED"}},q3={Auto:6e4,Home:9e4,Bundle:12e4};function wz({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 Tz({providers:e=[],totalTime:t=6e4,flow:n="Auto",isComplete:i=!1,onComplete:o}){const s=Y3[n]??Y3.Auto,c=q3[n]??q3.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),[$,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: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(Az,{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[$]},`${m}-${$}`)]})]})}),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 K5({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 Tz(){try{return typeof mh<"u"&&mh?mh:{}}catch{return{}}}function Nz(e){const t=Tz(),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 W5(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 Mz(){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 Rz(e){const t={app_id:e,hide_default_launcher:!0},n=rf();return n&&(t.quote_id=n),t}function Q5(e){if(typeof window>"u")return;Mz();const t=Rz(e);if(window.intercomSettings=t,_0){window.Intercom("update",t);return}window.Intercom("boot",t),_0=!0,W5(`https://widget.intercom.io/widget/${e}`).catch(()=>{})}function Oz(){typeof window?.Intercom=="function"&&window.Intercom("show")}function kz(e){typeof window?.Intercom=="function"&&window.Intercom("showNewMessage",e)}function Bz(e){typeof window?.Intercom=="function"&&window.Intercom("update",e)}function Lz(){if(typeof window?.Intercom=="function")try{window.Intercom("shutdown")}catch{}_0=!1}const Pz="https://js.cobrowse.io/CobrowseIO.js";let E0=!1;async function Iz(e){await W5(Pz);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 Fz(e){if(typeof window>"u")return null;try{const t=await Iz(e);return t?.createSessionCode?await t.createSessionCode():null}catch{return null}}function jz(){try{window.CobrowseIO?.stop?.()}catch{}E0=!1}const zz="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 Uz(e){Zz();const t=Nz();if(sr=t,!!t.enabled&&t.proactiveOnError&&t.intercomAppId){const n=i=>{S0||(S0=!0,Q5(t.intercomAppId),Bz({last_quote_error:i?.reason??"unknown"}),kz(zz))};I5("submissionFailed",n),Xc=n}}function J5(){!sr?.enabled||!sr.intercomAppId||(Q5(sr.intercomAppId),Oz())}function Hz(){return!sr?.enabled||!sr.cobrowseLicense?Promise.resolve(null):Fz(sr.cobrowseLicense)}function Vz(){return!!(sr?.enabled&&sr.intercomAppId)}function Gz(){return!!(sr?.enabled&&sr.cobrowseLicense)}function Zz(){Xc&&(F5("submissionFailed",Xc),Xc=null),Lz(),jz(),S0=!1,sr=null}const Yz="Chat with our support team in real time — we'll help you finish your quote.",qz="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.",K3="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",W3="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 Kz(){const e=Vz(),t=Gz(),[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 Hz();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:J5,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:K3,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:`${W3} ${m==="chat"?"opacity-100":"opacity-0"}`,children:Yz})]}),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:K3,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:`${W3} ${m==="screen"?"opacity-100":"opacity-0"}`,children:qz})]})]}),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 Q3=null;function Wz(){const e=Q3;return Q3=null,e}let Qz=!1;function Jz(){return Qz}function He(e){if(e===!0)return"Yes";if(e===!1)return"No"}function Dn(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 Xz(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=Dn(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=Dn(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=Dn(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=Dn(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=Dn(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=Dn(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=Dn(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=Dn(d.date_first_licensed)),d.education_level&&(m.education_level=$5(d.education_level)),d.occupation&&(m.occupation=D5(d.occupation)),d.industry&&(m.industry=$d(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=Dn(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 $={};return S.code&&($.code=S.code),S.occurred_at&&($.occurred_at=Dn(S.occurred_at)),$}));const g=d.driver_accidents;g&&g.length>0&&(m.driver_accidents="Yes",m.driver_accidents__items=g.map(S=>{const $={};return S.occurred_at&&($.occurred_at=Dn(S.occurred_at)),S.description&&($.description=S.description),S.quote_vehicle_id&&($.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&&($.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&&($.personal_injury_amount_paid_cents=S.personal_injury_amount_paid_cents),$}));const E=d.losses;return E&&E.length>0&&(m.losses="Yes",m.losses__items=E.map(S=>{const $={};return S.description&&($.description=S.description),S.date_of_incident&&($.date_of_incident=Dn(S.date_of_incident)),S.amount_paid_cents!==null&&S.amount_paid_cents!==void 0&&($.amount_paid_cents=S.amount_paid_cents),S.quote_vehicle_id&&($.quote_vehicle_id=s[S.quote_vehicle_id]??S.quote_vehicle_id),$})),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=Dn(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=Dn(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 eU={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 tU(e){return eU[e]||e}const J3=new Set(["Zip","Product","Driver","Vehicle"]);function nU(e){return e?Array.isArray(e.drivers__items)?e.drivers__items.length:Array.isArray(e.drivers)?e.drivers.length:null:null}function X3(e,t){const n=nU(t),i=e.filter(s=>s.key!=="AutoPolicy"),o=i.length>0?i:e;return o}function rU(e,t){const n=e.findIndex(o=>o.key===t);return n<0?t:e[n+1]?.key??t}function X5(e){return e.some(t=>String(t.key)==="BundlePolicy"||String(t.key)==="BundleCustomer")}function eE(e){return X5(e)?"Bundle":e.some(t=>String(t.key)==="Vehicle"||String(t.key)==="Driver")?"Auto":"Home"}const aU={Auto:45e3,Home:5e4,Bundle:1e5},tE=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function iU(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 oU(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 lU({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,$]=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),[O,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=eE(n);let _e=!1;const be=[];let Ce=0,xe=0;const Ne=66,re=3,oe=5e3;let De=!1;const Ee=async()=>{if(_e)return;Ce++;try{const{quote:Re}=await $3(o??void 0);if(_e)return;if(xe=0,!De){const qe=Re?.appetites??null,Ue=oz(qe,se);Ue.length>0&&(I(Ue),De=!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"}),$(!1);return}}catch(Re){if(xe++,console.warn("Provider polling: getQuote failed",{attempt:Ce,consecutiveFailures:xe,error:Re}),xe>=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"}),$(!1);return}}if(_e)return;if(Ce>=Ne){Uo(new Error(`Quote failed: rate-generation timed out after ${Ne} polls`),{quoteId:c.current??void 0,phase:"rates_polling_timeout"}),ps({reason:"timeout"}),J({message:"submission_failed"}),$(!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:tU(be),loadQuestions:async()=>{const Ce=await ej(be,c.current??void 0);let xe=iU(be,Ce.questions);return xe=oU(be,xe),xe}}))}b.useEffect(()=>{const se=async()=>{try{const _e=Wz();if(_e)try{const{token:Ce,quoteId:xe}=await nj(_e);Ce&&xe&&(Wc(Ce),m3(xe))}catch(Ce){Ce.statusCode===401&&B(!0)}const be=rf();if(Qc(),be){ne(!0),s(be);try{const Ce=Jr(),xe=await $3(Ce?void 0:be);if(!xe||!xe.quote)throw new Error("Invalid response from getQuote: missing quote data");const{quote:Ne}=xe,{stages:re}=await Bc(be),oe=T(re);i(oe);let De;try{De=Xz(Ne),M(De)}catch(Ue){throw new Error(`Failed to transform quote data: ${Ue instanceof Error?Ue.message:"Unknown error"}`)}const Ee=X3(oe,De);i(Ee);const Te=Ne?.review_status??null;if(E(Te!=null),Te==="pending_review"&&Jr()){F(!0);return}const Re=Ne?.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,$(!0);return}}V(0)}catch(Ce){const xe=Ce;if(xe.statusCode===404)x5(),s(null);else if(xe.statusCode===401){N5();try{const{stages:Ne}=await Bc(be),re=T(Ne);i(re);const oe=re.findIndex(De=>De.key==="SMSVerification");V(oe>=0?oe:re.length-1)}catch{}}}finally{ne(!1)}}else{const{stages:Ce}=await Bc();i(T(Ce))}}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(tE)??_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(tE)).filter(re=>!re.hasAttribute("disabled")&&re.getAttribute("aria-hidden")!=="true");if(be.length===0){se.preventDefault(),_e.focus();return}const Ce=be[0],xe=be[be.length-1],Ne=document.activeElement;se.shiftKey&&Ne===Ce?(se.preventDefault(),xe.focus()):!se.shiftKey&&Ne===xe&&(se.preventDefault(),Ce.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),$(!1),Ae(null),de(!1),z(!1))},[e]),b.useEffect(()=>{e&&Hj()},[e]),b.useEffect(()=>{d&&Array.isArray(d)&&Yj({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,$(!0);let be;try{be=await La(se,!0,o??void 0)}catch(Ne){throw $(!1),Ne}if(be.status==="submission_failed"){Uo(new Error(`Quote failed at submission: ${be.message}`),{quoteId:o??void 0,phase:_e}),$(!1),w(!1),A.current=null,ps({reason:"submission"}),J({message:be.message});return}if(be.status==="success")try{const{rates:Ne}=await lh(o??void 0);A.current=Ne,w(!0)}catch(Ne){throw $(!1),Ne}const Ce=n.length,xe=n[Ce-1];P3({stageKey:xe?.key??"unknown",stageTitle:xe?.title??"unknown",stepIndex:Ce,totalSteps:Ce}),Zj()}catch(be){be?.__sentryReported||Uo(be,{quoteId:o??void 0,phase:_e}),$(!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=()=>{Vj(),t()},$e=!!(!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 ${$e?"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-y-auto",children:[O&&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(K5,{onGoBack:ie}),!pe&&S&&(()=>{const se=eE(n);return v.jsx(wz,{providers:R,totalTime:aU[se],flow:se,isComplete:x,onComplete:()=>{$(!1),w(!1),I([]),A.current&&(m(A.current),A.current=null)}})})(),!pe&&!S&&ye&&v.jsx(BO,{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(Cz,{stages:n,initialValues:L??{},quoteId:o,isSubmitting:j,onConfirmed:he}):v.jsx(rz,{stages:n,initialValues:L??void 0,initialActive:Z,quoteId:o??void 0,nonTerminalStageKeys:J3,onStageComplete:async(se,_e)=>{try{const be=xi(se);let Ce=o,xe=n;const Ne=xe.findIndex(De=>De.key===_e),re=xe[Ne],oe=rU(xe,_e);if(Ce)if(_e==="Phone"){const De=be.phone;if(!De)throw new Error("Phone number is required.");const Ee=Jr();await La({...be,current_stage:oe,suppress_verification_sms:!0},!1,Ee?void 0:Ce),await M5(Ce,De)}else if(_e==="SMSVerification"){const{isVerified:De,token:Ee}=await g0(Ce,be.sms_code);if(!De)throw new Error("Invalid SMS code");Ee&&Wc(Ee),await La({current_stage:oe},!1)}else if(_e==="Product"){const De=Jr(),{isSupported:Ee}=await R5(be.state,De?void 0:Ce??void 0);if(await La({...be,current_stage:Ee?oe:_e},!1,De?void 0:Ce),!Ee){const Te=q5(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 De=Jr();await La({...be,current_stage:oe},!1,De?void 0:Ce||void 0)}else{const De=be.postal_code??"";if(!De)throw new Error("ZIP code is required to start a quote.");const Te=(await tj(De,Jz()))?.quoteId;if(!Te||typeof Te!="string"||Te.trim()==="")throw new Error(`Failed to create quote - invalid quoteId returned: ${Te}`);Ce=Te,s(Te),m3(Te),await La({...be,current_stage:oe},!1,Te)}if(_e==="Name"&&Ce){const De=String(se.product??"");(De==="Auto"||De==="Both")&&Mj(Ce)}if(_e==="Vehicle"&&Ce&&kj(Ce),J3.has(_e))try{const{stages:De}=await Bc(Ce||void 0);xe=T(De),xe=X3(xe,se),i(xe)}catch(De){console.warn("Unable to refresh stages after flow-shaping step",De)}return P3({stageKey:_e,stageTitle:re?.title??_e,stepIndex:Ne+1,totalSteps:xe.length}),{success:!0,latestStages:xe}}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 xe=Jr();return await La({...be,suppress_verification_sms:!0},!1,xe?void 0:o),Ae({allValues:se}),{success:!0}}if(_e==="SMSVerification"){const be=xi(se),{isVerified:Ce,token:xe,code:Ne}=await g0(o,be.sms_code);return Ce?(xe&&Wc(xe),Ae({allValues:se}),{success:!0}):{success:!1,error:Ne==="OTP_EXPIRED"?"That code has expired. Request a new one.":"Invalid SMS code"}}return Ae({allValues:se}),{success:!0}}catch{const Ce="Oops, something went wrong. Please try again later.";return J({message:Ce}),{success:!1,error:Ce}}}})})," ",!pe&&d&&o&&v.jsx(mz,{rates:d,onBack:()=>m(null),isBundleFlow:X5(n),quoteId:o,initialPhone:L?.phone??"",requirePursueVerification:g,onSubScreenChange:y})]}),v.jsxs("div",{className:"widget-legal-footer space-y-1.5",children:[v.jsx(Kz,{}),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 sU({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(K5,{onGoBack:e})})]})}var hh={dsn:"",environment:"production",release:"7f8f8c84bf8de64d5f693b906961e1fcd1ad0b4f"};function uU(){try{return typeof hh<"u"&&hh?hh:{}}catch{return{}}}let nE=!1;function cU(e,t){if(!e)return t;const n=Number(e);return Number.isFinite(n)&&n>=0&&n<=1?n:t}function dU(e={}){if(nE)return!0;if(typeof window>"u")return!1;const t=uU(),n=e.dsn??t.dsn;return!n||e.enabled===!1?!1:(VF({baseUrl:Rt}),F7({dsn:n,environment:e.environment??t.environment??"production",release:e.release??t.release,sendDefaultPii:!1,maxBreadcrumbs:50,tracesSampleRate:e.tracesSampleRate??cU(t.tracesSampleRate,.1),tracePropagationTargets:[Rt],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSend:i=>b3(i),beforeBreadcrumb:i=>i&&(b3({breadcrumbs:[i]}),i)}),nE=!0,P7("replayIntegration").then(i=>{try{yT(i({maskAllText:!0,maskAllInputs:!0,blockAllMedia:!0,networkDetailAllowUrls:[Rt],networkCaptureBodies:!1}))}catch{}}).catch(()=>{}),!0)}function fU(){const[e,t]=b.useState(!1);b.useEffect(()=>{dU(),Uz()},[]);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=zj.map(c=>{const d=(m,h)=>o(c,m,h);return I5(c,d),[c,d]});return()=>{for(const[c,d]of s)F5(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":J5();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(sU,{onClose:i}),children:v.jsx(lU,{isOpen:e,onClose:i})})}const mU="modulepreload",pU=function(e){return"/iframe/"+e},rE={},hU=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=pU(y),y in rE)return;rE[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":mU,g||(S.as="script"),S.crossOrigin="",S.href=y,m&&S.setAttribute("nonce",m),document.head.appendChild(S),g)return new Promise(($,x)=>{S.addEventListener("load",$),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 aE={key:""};const yU="mock";function gU(){try{typeof aE<"u"&&aE?.key;return}catch{return}}function bU(){const e=gU();if(!e||typeof window>"u"||!window.location)return!1;try{return new URLSearchParams(window.location.search).get(yU)===e}catch{return!1}}const vU=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 iE=!1;function _U(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 EU(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 oE(e,t=200){return new Response(JSON.stringify(e),{status:t,headers:{"Content-Type":"application/json"}})}function SU(){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 $U(){if(iE||typeof window>"u"||typeof window.fetch!="function"||!bU())return;iE=!0;const e=window.fetch.bind(window),t=hU(()=>import("./backend-CY4n4nTm.js"),[]);window.fetch=async(n,i)=>{const o=_U(n);if(!o||!vU.has(o))return e(n,i);const s=await EU(n,i),{handleMockRequest:c}=await t;await new Promise(d=>window.setTimeout(d,120));try{return oE(c(o,s))}catch(d){return oE({error:d instanceof Error?d.message:"Mock handler error"},404)}},SU(),typeof console<"u"&&console.info("[Credify] Mock mode active — all API calls are served from in-memory fixtures.")}$U();vA.createRoot(document.getElementById("root")).render(v.jsx(b.StrictMode,{children:v.jsx(fU,{})}));
|
|
164
|
-
//# sourceMappingURL=iframe-
|
|
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(wz,{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[$]},`${m}-${$}`)]})]})}),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 W5({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 Nz(){try{return typeof mh<"u"&&mh?mh:{}}catch{return{}}}function Mz(e){const t=Nz(),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 Q5(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 Rz(){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 Oz(e){const t={app_id:e,hide_default_launcher:!0},n=rf();return n&&(t.quote_id=n),t}function J5(e){if(typeof window>"u")return;Rz();const t=Oz(e);if(window.intercomSettings=t,_0){window.Intercom("update",t);return}window.Intercom("boot",t),_0=!0,Q5(`https://widget.intercom.io/widget/${e}`).catch(()=>{})}function kz(){typeof window?.Intercom=="function"&&window.Intercom("show")}function Bz(e){typeof window?.Intercom=="function"&&window.Intercom("showNewMessage",e)}function Lz(e){typeof window?.Intercom=="function"&&window.Intercom("update",e)}function Pz(){if(typeof window?.Intercom=="function")try{window.Intercom("shutdown")}catch{}_0=!1}const Iz="https://js.cobrowse.io/CobrowseIO.js";let E0=!1;async function Fz(e){await Q5(Iz);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 jz(e){if(typeof window>"u")return null;try{const t=await Fz(e);return t?.createSessionCode?await t.createSessionCode():null}catch{return null}}function zz(){try{window.CobrowseIO?.stop?.()}catch{}E0=!1}const Uz="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 Hz(e){Yz();const t=Mz();if(sr=t,!!t.enabled&&t.proactiveOnError&&t.intercomAppId){const n=i=>{S0||(S0=!0,J5(t.intercomAppId),Lz({last_quote_error:i?.reason??"unknown"}),Bz(Uz))};F5("submissionFailed",n),Xc=n}}function X5(){!sr?.enabled||!sr.intercomAppId||(J5(sr.intercomAppId),kz())}function Vz(){return!sr?.enabled||!sr.cobrowseLicense?Promise.resolve(null):jz(sr.cobrowseLicense)}function Gz(){return!!(sr?.enabled&&sr.intercomAppId)}function Zz(){return!!(sr?.enabled&&sr.cobrowseLicense)}function Yz(){Xc&&(j5("submissionFailed",Xc),Xc=null),Pz(),zz(),S0=!1,sr=null}const qz="Chat with our support team in real time — we'll help you finish your quote.",Kz="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.",K3="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",W3="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 Wz(){const e=Gz(),t=Zz(),[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 Vz();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:X5,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:K3,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:`${W3} ${m==="chat"?"opacity-100":"opacity-0"}`,children:qz})]}),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:K3,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:`${W3} ${m==="screen"?"opacity-100":"opacity-0"}`,children:Kz})]})]}),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 Q3=null;function Qz(){const e=Q3;return Q3=null,e}let Jz=!1;function Xz(){return Jz}function He(e){if(e===!0)return"Yes";if(e===!1)return"No"}function Dn(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 eU(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=Dn(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=Dn(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=Dn(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=Dn(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=Dn(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=Dn(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=Dn(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=Dn(d.date_first_licensed)),d.education_level&&(m.education_level=$5(d.education_level)),d.occupation&&(m.occupation=D5(d.occupation)),d.industry&&(m.industry=$d(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=Dn(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 $={};return S.code&&($.code=S.code),S.occurred_at&&($.occurred_at=Dn(S.occurred_at)),$}));const g=d.driver_accidents;g&&g.length>0&&(m.driver_accidents="Yes",m.driver_accidents__items=g.map(S=>{const $={};return S.occurred_at&&($.occurred_at=Dn(S.occurred_at)),S.description&&($.description=S.description),S.quote_vehicle_id&&($.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&&($.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&&($.personal_injury_amount_paid_cents=S.personal_injury_amount_paid_cents),$}));const E=d.losses;return E&&E.length>0&&(m.losses="Yes",m.losses__items=E.map(S=>{const $={};return S.description&&($.description=S.description),S.date_of_incident&&($.date_of_incident=Dn(S.date_of_incident)),S.amount_paid_cents!==null&&S.amount_paid_cents!==void 0&&($.amount_paid_cents=S.amount_paid_cents),S.quote_vehicle_id&&($.quote_vehicle_id=s[S.quote_vehicle_id]??S.quote_vehicle_id),$})),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=Dn(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=Dn(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 tU={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 nU(e){return tU[e]||e}const J3=new Set(["Zip","Product","Driver","Vehicle"]);function rU(e){return e?Array.isArray(e.drivers__items)?e.drivers__items.length:Array.isArray(e.drivers)?e.drivers.length:null:null}function X3(e,t){const n=rU(t),i=e.filter(s=>s.key!=="AutoPolicy"),o=i.length>0?i:e;return o}function aU(e,t){const n=e.findIndex(o=>o.key===t);return n<0?t:e[n+1]?.key??t}function eC(e){return e.some(t=>String(t.key)==="BundlePolicy"||String(t.key)==="BundleCustomer")}function eE(e){return eC(e)?"Bundle":e.some(t=>String(t.key)==="Vehicle"||String(t.key)==="Driver")?"Auto":"Home"}const iU={Auto:45e3,Home:5e4,Bundle:1e5},tE=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function oU(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 lU(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 sU({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,$]=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),[O,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=eE(n);let _e=!1;const be=[];let Ce=0,xe=0;const Ne=66,re=3,oe=5e3;let De=!1;const Ee=async()=>{if(_e)return;Ce++;try{const{quote:Re}=await $3(o??void 0);if(_e)return;if(xe=0,!De){const qe=Re?.appetites??null,Ue=lz(qe,se);Ue.length>0&&(I(Ue),De=!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"}),ms({reason:"submission"}),J({message:"submission_failed"}),$(!1);return}}catch(Re){if(xe++,console.warn("Provider polling: getQuote failed",{attempt:Ce,consecutiveFailures:xe,error:Re}),xe>=re){Re?.__sentryReported||Uo(Re,{quoteId:c.current??void 0,phase:"rates_polling",message:`Quote failed: ${re} consecutive get-quote poll failures`}),ms({reason:"network"}),J({message:"submission_failed"}),$(!1);return}}if(_e)return;if(Ce>=Ne){Uo(new Error(`Quote failed: rate-generation timed out after ${Ne} polls`),{quoteId:c.current??void 0,phase:"rates_polling_timeout"}),ms({reason:"timeout"}),J({message:"submission_failed"}),$(!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:nU(be),loadQuestions:async()=>{const Ce=await tj(be,c.current??void 0);let xe=oU(be,Ce.questions);return xe=lU(be,xe),xe}}))}b.useEffect(()=>{const se=async()=>{try{const _e=Qz();if(_e)try{const{token:Ce,quoteId:xe}=await rj(_e);Ce&&xe&&(Wc(Ce),m3(xe))}catch(Ce){Ce.statusCode===401&&B(!0)}const be=rf();if(Qc(),be){ne(!0),s(be);try{const Ce=Jr(),xe=await $3(Ce?void 0:be);if(!xe||!xe.quote)throw new Error("Invalid response from getQuote: missing quote data");const{quote:Ne}=xe,{stages:re}=await Bc(be),oe=T(re);i(oe);let De;try{De=eU(Ne),M(De)}catch(Ue){throw new Error(`Failed to transform quote data: ${Ue instanceof Error?Ue.message:"Unknown error"}`)}const Ee=X3(oe,De);i(Ee);const Te=Ne?.review_status??null;if(E(Te!=null),Te==="pending_review"&&Jr()){F(!0);return}const Re=Ne?.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,$(!0);return}}V(0)}catch(Ce){const xe=Ce;if(xe.statusCode===404)C5(),s(null);else if(xe.statusCode===401){M5();try{const{stages:Ne}=await Bc(be),re=T(Ne);i(re);const oe=re.findIndex(De=>De.key==="SMSVerification");V(oe>=0?oe:re.length-1)}catch{}}}finally{ne(!1)}}else{const{stages:Ce}=await Bc();i(T(Ce))}}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(tE)??_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(tE)).filter(re=>!re.hasAttribute("disabled")&&re.getAttribute("aria-hidden")!=="true");if(be.length===0){se.preventDefault(),_e.focus();return}const Ce=be[0],xe=be[be.length-1],Ne=document.activeElement;se.shiftKey&&Ne===Ce?(se.preventDefault(),xe.focus()):!se.shiftKey&&Ne===xe&&(se.preventDefault(),Ce.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),$(!1),Ae(null),de(!1),z(!1))},[e]),b.useEffect(()=>{e&&Vj()},[e]),b.useEffect(()=>{d&&Array.isArray(d)&&qj({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,$(!0);let be;try{be=await La(se,!0,o??void 0)}catch(Ne){throw $(!1),Ne}if(be.status==="submission_failed"){Uo(new Error(`Quote failed at submission: ${be.message}`),{quoteId:o??void 0,phase:_e}),$(!1),w(!1),A.current=null,ms({reason:"submission"}),J({message:be.message});return}if(be.status==="success")try{const{rates:Ne}=await lh(o??void 0);A.current=Ne,w(!0)}catch(Ne){throw $(!1),Ne}const Ce=n.length,xe=n[Ce-1];P3({stageKey:xe?.key??"unknown",stageTitle:xe?.title??"unknown",stepIndex:Ce,totalSteps:Ce}),Yj()}catch(be){be?.__sentryReported||Uo(be,{quoteId:o??void 0,phase:_e}),$(!1),ms({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=()=>{Gj(),t()},$e=!!(!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 ${$e?"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-y-auto",children:[O&&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(W5,{onGoBack:ie}),!pe&&S&&(()=>{const se=eE(n);return v.jsx(Tz,{providers:R,totalTime:iU[se],flow:se,isComplete:x,onComplete:()=>{$(!1),w(!1),I([]),A.current&&(m(A.current),A.current=null)}})})(),!pe&&!S&&ye&&v.jsx(LO,{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(Az,{stages:n,initialValues:L??{},quoteId:o,isSubmitting:j,onConfirmed:he}):v.jsx(az,{stages:n,initialValues:L??void 0,initialActive:Z,quoteId:o??void 0,nonTerminalStageKeys:J3,onStageComplete:async(se,_e)=>{try{const be=xi(se);let Ce=o,xe=n;const Ne=xe.findIndex(De=>De.key===_e),re=xe[Ne],oe=aU(xe,_e);if(Ce)if(_e==="Phone"){const De=be.phone;if(!De)throw new Error("Phone number is required.");const Ee=Jr();await La({...be,current_stage:oe,suppress_verification_sms:!0},!1,Ee?void 0:Ce),await R5(Ce,De)}else if(_e==="SMSVerification"){const{isVerified:De,token:Ee}=await g0(Ce,be.sms_code);if(!De)throw new Error("Invalid SMS code");Ee&&Wc(Ee),await La({current_stage:oe},!1)}else if(_e==="Product"){const De=Jr(),{isSupported:Ee}=await O5(be.state,De?void 0:Ce??void 0);if(await La({...be,current_stage:Ee?oe:_e},!1,De?void 0:Ce),!Ee){const Te=K5(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 De=Jr();await La({...be,current_stage:oe},!1,De?void 0:Ce||void 0)}else{const De=be.postal_code??"";if(!De)throw new Error("ZIP code is required to start a quote.");const Te=(await nj(De,Xz()))?.quoteId;if(!Te||typeof Te!="string"||Te.trim()==="")throw new Error(`Failed to create quote - invalid quoteId returned: ${Te}`);Ce=Te,s(Te),m3(Te),await La({...be,current_stage:oe},!1,Te)}if(_e==="Name"&&Ce){const De=String(se.product??"");(De==="Auto"||De==="Both")&&Rj(Ce)}if(_e==="Vehicle"&&Ce&&Bj(Ce),J3.has(_e))try{const{stages:De}=await Bc(Ce||void 0);xe=T(De),xe=X3(xe,se),i(xe)}catch(De){console.warn("Unable to refresh stages after flow-shaping step",De)}return P3({stageKey:_e,stageTitle:re?.title??_e,stepIndex:Ne+1,totalSteps:xe.length}),{success:!0,latestStages:xe}}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 xe=Jr();return await La({...be,suppress_verification_sms:!0},!1,xe?void 0:o),Ae({allValues:se}),{success:!0}}if(_e==="SMSVerification"){const be=xi(se),{isVerified:Ce,token:xe,code:Ne}=await g0(o,be.sms_code);return Ce?(xe&&Wc(xe),Ae({allValues:se}),{success:!0}):{success:!1,error:Ne==="OTP_EXPIRED"?"That code has expired. Request a new one.":"Invalid SMS code"}}return Ae({allValues:se}),{success:!0}}catch{const Ce="Oops, something went wrong. Please try again later.";return J({message:Ce}),{success:!1,error:Ce}}}})})," ",!pe&&d&&o&&v.jsx(pz,{rates:d,onBack:()=>m(null),isBundleFlow:eC(n),quoteId:o,initialPhone:L?.phone??"",requirePursueVerification:g,onSubScreenChange:y})]}),v.jsxs("div",{className:"widget-legal-footer space-y-1.5",children:[v.jsx(Wz,{}),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 uU({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(W5,{onGoBack:e})})]})}var hh={dsn:"",environment:"production",release:"abcaeb25b7b9741ef000420e8ed66d260aac3c28"};function cU(){try{return typeof hh<"u"&&hh?hh:{}}catch{return{}}}let nE=!1;function dU(e,t){if(!e)return t;const n=Number(e);return Number.isFinite(n)&&n>=0&&n<=1?n:t}function fU(e={}){if(nE)return!0;if(typeof window>"u")return!1;const t=cU(),n=e.dsn??t.dsn;return!n||e.enabled===!1?!1:(GF({baseUrl:Rt}),j7({dsn:n,environment:e.environment??t.environment??"production",release:e.release??t.release,sendDefaultPii:!1,maxBreadcrumbs:50,tracesSampleRate:e.tracesSampleRate??dU(t.tracesSampleRate,.1),tracePropagationTargets:[Rt],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSend:i=>b3(i),beforeBreadcrumb:i=>i&&(b3({breadcrumbs:[i]}),i)}),nE=!0,I7("replayIntegration").then(i=>{try{gT(i({maskAllText:!0,maskAllInputs:!0,blockAllMedia:!0,networkDetailAllowUrls:[Rt],networkCaptureBodies:!1}))}catch{}}).catch(()=>{}),!0)}function mU(){const[e,t]=b.useState(!1);b.useEffect(()=>{fU(),Hz()},[]);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=Uj.map(c=>{const d=(m,h)=>o(c,m,h);return F5(c,d),[c,d]});return()=>{for(const[c,d]of s)j5(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":X5();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(uU,{onClose:i}),children:v.jsx(sU,{isOpen:e,onClose:i})})}const pU="modulepreload",hU=function(e){return"/iframe/"+e},rE={},yU=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=hU(y),y in rE)return;rE[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":pU,g||(S.as="script"),S.crossOrigin="",S.href=y,m&&S.setAttribute("nonce",m),document.head.appendChild(S),g)return new Promise(($,x)=>{S.addEventListener("load",$),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 aE={key:""};const gU="mock";function bU(){try{typeof aE<"u"&&aE?.key;return}catch{return}}function vU(){const e=bU();if(!e||typeof window>"u"||!window.location)return!1;try{return new URLSearchParams(window.location.search).get(gU)===e}catch{return!1}}const _U=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 iE=!1;function EU(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 SU(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 oE(e,t=200){return new Response(JSON.stringify(e),{status:t,headers:{"Content-Type":"application/json"}})}function $U(){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 DU(){if(iE||typeof window>"u"||typeof window.fetch!="function"||!vU())return;iE=!0;const e=window.fetch.bind(window),t=yU(()=>import("./backend-CY4n4nTm.js"),[]);window.fetch=async(n,i)=>{const o=EU(n);if(!o||!_U.has(o))return e(n,i);const s=await SU(n,i),{handleMockRequest:c}=await t;await new Promise(d=>window.setTimeout(d,120));try{return oE(c(o,s))}catch(d){return oE({error:d instanceof Error?d.message:"Mock handler error"},404)}},$U(),typeof console<"u"&&console.info("[Credify] Mock mode active — all API calls are served from in-memory fixtures.")}DU();_A.createRoot(document.getElementById("root")).render(v.jsx(b.StrictMode,{children:v.jsx(mU,{})}));
|
|
164
|
+
//# sourceMappingURL=iframe-Ck1xjtKy.js.map
|