@getcredify/credify-insurance-widget 1.40.0 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +69 -3
  2. package/dist/api-RBpxlUxA.js +51 -0
  3. package/dist/components/ProductChooser.d.ts +5 -0
  4. package/dist/components/ScreenShareButton.d.ts +4 -0
  5. package/dist/components/Widget.d.ts +13 -0
  6. package/dist/components/WidgetErrorFallback.d.ts +11 -0
  7. package/dist/components/index.d.ts +9 -0
  8. package/dist/credify-insurance-widget.css +1 -1
  9. package/dist/dob-calendar-RIJ5S6YU-CPTnehH2.js +2933 -0
  10. package/dist/fixtures-ijbZ16Zg-CD1k11fg.js +276 -0
  11. package/dist/iframe/assets/dob-calendar-RIJ5S6YU-D1-0B2xV.css +1 -0
  12. package/dist/iframe/assets/dob-calendar-RIJ5S6YU-DkeMmMY0.js +1 -0
  13. package/dist/iframe/assets/fixtures-ijbZ16Zg-Bj-DhqkB.js +1 -0
  14. package/dist/iframe/assets/iframe-CfQAC0Hv.js +494 -0
  15. package/dist/iframe/assets/iframe-DFqQdMHv.css +1 -0
  16. package/dist/iframe/assets/mockJump-CL8w249w-D4zKPVys.js +1 -0
  17. package/dist/iframe/assets/zipCities-CU_i9iT--B1AIvNRh.js +1 -0
  18. package/dist/iframe/iframe.html +2 -2
  19. package/dist/index.d.ts +76 -0
  20. package/dist/index.es.js +6 -26321
  21. package/dist/index.umd.js +436 -107
  22. package/dist/internal/IframeWidgetController.d.ts +6 -0
  23. package/dist/internal/WidgetController.d.ts +6 -0
  24. package/dist/internal/configureKit.d.ts +4 -0
  25. package/dist/internal/ensureFont.d.ts +2 -0
  26. package/dist/mock/config.d.ts +30 -0
  27. package/dist/mock/installMockFetch.d.ts +6 -0
  28. package/dist/mockJump-CL8w249w-KvYoZQMN.js +19 -0
  29. package/dist/utils/api.d.ts +24 -0
  30. package/dist/utils/events.d.ts +126 -0
  31. package/dist/utils/har/recorder.d.ts +32 -0
  32. package/dist/utils/har/types.d.ts +70 -0
  33. package/dist/utils/product.d.ts +30 -0
  34. package/dist/utils/resumeLink.d.ts +35 -0
  35. package/dist/utils/sentry/devEnvironment.d.ts +10 -0
  36. package/dist/utils/sentry/init.d.ts +33 -0
  37. package/dist/utils/sentry/redact.d.ts +50 -0
  38. package/dist/utils/sentry/reportQuoteFailure.d.ts +31 -0
  39. package/dist/utils/sentry/reportSideEffectFailure.d.ts +2 -0
  40. package/dist/utils/storage.d.ts +8 -0
  41. package/dist/utils/support/bland.d.ts +50 -0
  42. package/dist/utils/support/cobrowse.d.ts +37 -0
  43. package/dist/utils/support/config.d.ts +34 -0
  44. package/dist/utils/support/index.d.ts +27 -0
  45. package/dist/utils/support/loader.d.ts +13 -0
  46. package/dist/utils/testMode.d.ts +11 -0
  47. package/dist/widget-BEY4lY4B.js +27319 -0
  48. package/dist/zipCities-CU_i9iT--DNeFQLgu.js +3330 -0
  49. package/package.json +8 -4
  50. package/dist/backend-xPum4ql0.js +0 -387
  51. package/dist/backend-xPum4ql0.js.map +0 -1
  52. package/dist/iframe/assets/backend-CY4n4nTm.js +0 -2
  53. package/dist/iframe/assets/backend-CY4n4nTm.js.map +0 -1
  54. package/dist/iframe/assets/iframe--qj6NOS3.js +0 -164
  55. package/dist/iframe/assets/iframe--qj6NOS3.js.map +0 -1
  56. package/dist/iframe/assets/iframe-m4vqnMx_.css +0 -1
  57. package/dist/index.es.js.map +0 -1
  58. package/dist/index.umd.js.map +0 -1
@@ -0,0 +1,494 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dob-calendar-RIJ5S6YU-DkeMmMY0.js","assets/dob-calendar-RIJ5S6YU-D1-0B2xV.css"])))=>i.map(i=>d[i]);
2
+ var MS=e=>{throw TypeError(e)};var TS=(e,t,r)=>t.has(e)||MS("Cannot "+r);var Jt=(e,t,r)=>(TS(e,t,"read from private field"),r?r.call(e):t.get(e)),NS=(e,t,r)=>t.has(e)?MS("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),nm=(e,t,r,o)=>(TS(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);function RR(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in e)){const c=Object.getOwnPropertyDescriptor(o,s);c&&Object.defineProperty(e,s,c.get?c:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();function OR(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rm={exports:{}},El={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var RS;function jR(){if(RS)return El;RS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(o,s,c){var u=null;if(c!==void 0&&(u=""+c),s.key!==void 0&&(u=""+s.key),"key"in s){c={};for(var f in s)f!=="key"&&(c[f]=s[f])}else c=s;return s=c.ref,{$$typeof:e,type:o,key:u,ref:s!==void 0?s:null,props:c}}return El.Fragment=t,El.jsx=r,El.jsxs=r,El}var OS;function DR(){return OS||(OS=1,rm.exports=jR()),rm.exports}var d=DR(),am={exports:{}},Ne={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var jS;function PR(){if(jS)return Ne;jS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function x(R){return R===null||typeof R!="object"?null:(R=S&&R[S]||R["@@iterator"],typeof R=="function"?R:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,w={};function k(R,q,ee){this.props=R,this.context=q,this.refs=w,this.updater=ee||C}k.prototype.isReactComponent={},k.prototype.setState=function(R,q){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,q,"setState")},k.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function M(){}M.prototype=k.prototype;function T(R,q,ee){this.props=R,this.context=q,this.refs=w,this.updater=ee||C}var N=T.prototype=new M;N.constructor=T,A(N,k.prototype),N.isPureReactComponent=!0;var O=Array.isArray;function P(){}var I={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function Z(R,q,ee){var oe=ee.ref;return{$$typeof:e,type:R,key:q,ref:oe!==void 0?oe:null,props:ee}}function re(R,q){return Z(R.type,q,R.props)}function ne(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function Y(R){var q={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(ee){return q[ee]})}var le=/\/+/g;function ue(R,q){return typeof R=="object"&&R!==null&&R.key!=null?Y(""+R.key):q.toString(36)}function be(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(P,P):(R.status="pending",R.then(function(q){R.status==="pending"&&(R.status="fulfilled",R.value=q)},function(q){R.status==="pending"&&(R.status="rejected",R.reason=q)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function L(R,q,ee,oe,ge){var Ee=typeof R;(Ee==="undefined"||Ee==="boolean")&&(R=null);var Se=!1;if(R===null)Se=!0;else switch(Ee){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(R.$$typeof){case e:case t:Se=!0;break;case y:return Se=R._init,L(Se(R._payload),q,ee,oe,ge)}}if(Se)return ge=ge(R),Se=oe===""?"."+ue(R,0):oe,O(ge)?(ee="",Se!=null&&(ee=Se.replace(le,"$&/")+"/"),L(ge,q,ee,"",function($e){return $e})):ge!=null&&(ne(ge)&&(ge=re(ge,ee+(ge.key==null||R&&R.key===ge.key?"":(""+ge.key).replace(le,"$&/")+"/")+Se)),q.push(ge)),1;Se=0;var de=oe===""?".":oe+":";if(O(R))for(var he=0;he<R.length;he++)oe=R[he],Ee=de+ue(oe,he),Se+=L(oe,q,ee,Ee,ge);else if(he=x(R),typeof he=="function")for(R=he.call(R),he=0;!(oe=R.next()).done;)oe=oe.value,Ee=de+ue(oe,he++),Se+=L(oe,q,ee,Ee,ge);else if(Ee==="object"){if(typeof R.then=="function")return L(be(R),q,ee,oe,ge);throw q=String(R),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Se}function V(R,q,ee){if(R==null)return R;var oe=[],ge=0;return L(R,oe,"","",function(Ee){return q.call(ee,Ee,ge++)}),oe}function B(R){if(R._status===-1){var q=R._result;q=q(),q.then(function(ee){(R._status===0||R._status===-1)&&(R._status=1,R._result=ee)},function(ee){(R._status===0||R._status===-1)&&(R._status=2,R._result=ee)}),R._status===-1&&(R._status=0,R._result=q)}if(R._status===1)return R._result.default;throw R._result}var te=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=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(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},ce={map:V,forEach:function(R,q,ee){V(R,function(){q.apply(this,arguments)},ee)},count:function(R){var q=0;return V(R,function(){q++}),q},toArray:function(R){return V(R,function(q){return q})||[]},only:function(R){if(!ne(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Ne.Activity=v,Ne.Children=ce,Ne.Component=k,Ne.Fragment=r,Ne.Profiler=s,Ne.PureComponent=T,Ne.StrictMode=o,Ne.Suspense=h,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(R){return I.H.useMemoCache(R)}},Ne.cache=function(R){return function(){return R.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(R,q,ee){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var oe=A({},R.props),ge=R.key;if(q!=null)for(Ee in q.key!==void 0&&(ge=""+q.key),q)!z.call(q,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&q.ref===void 0||(oe[Ee]=q[Ee]);var Ee=arguments.length-2;if(Ee===1)oe.children=ee;else if(1<Ee){for(var Se=Array(Ee),de=0;de<Ee;de++)Se[de]=arguments[de+2];oe.children=Se}return Z(R.type,ge,oe)},Ne.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:c,_context:R},R},Ne.createElement=function(R,q,ee){var oe,ge={},Ee=null;if(q!=null)for(oe in q.key!==void 0&&(Ee=""+q.key),q)z.call(q,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ge[oe]=q[oe]);var Se=arguments.length-2;if(Se===1)ge.children=ee;else if(1<Se){for(var de=Array(Se),he=0;he<Se;he++)de[he]=arguments[he+2];ge.children=de}if(R&&R.defaultProps)for(oe in Se=R.defaultProps,Se)ge[oe]===void 0&&(ge[oe]=Se[oe]);return Z(R,Ee,ge)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(R){return{$$typeof:f,render:R}},Ne.isValidElement=ne,Ne.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:B}},Ne.memo=function(R,q){return{$$typeof:g,type:R,compare:q===void 0?null:q}},Ne.startTransition=function(R){var q=I.T,ee={};I.T=ee;try{var oe=R(),ge=I.S;ge!==null&&ge(ee,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(P,te)}catch(Ee){te(Ee)}finally{q!==null&&ee.types!==null&&(q.types=ee.types),I.T=q}},Ne.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Ne.use=function(R){return I.H.use(R)},Ne.useActionState=function(R,q,ee){return I.H.useActionState(R,q,ee)},Ne.useCallback=function(R,q){return I.H.useCallback(R,q)},Ne.useContext=function(R){return I.H.useContext(R)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(R,q){return I.H.useDeferredValue(R,q)},Ne.useEffect=function(R,q){return I.H.useEffect(R,q)},Ne.useEffectEvent=function(R){return I.H.useEffectEvent(R)},Ne.useId=function(){return I.H.useId()},Ne.useImperativeHandle=function(R,q,ee){return I.H.useImperativeHandle(R,q,ee)},Ne.useInsertionEffect=function(R,q){return I.H.useInsertionEffect(R,q)},Ne.useLayoutEffect=function(R,q){return I.H.useLayoutEffect(R,q)},Ne.useMemo=function(R,q){return I.H.useMemo(R,q)},Ne.useOptimistic=function(R,q){return I.H.useOptimistic(R,q)},Ne.useReducer=function(R,q,ee){return I.H.useReducer(R,q,ee)},Ne.useRef=function(R){return I.H.useRef(R)},Ne.useState=function(R){return I.H.useState(R)},Ne.useSyncExternalStore=function(R,q,ee){return I.H.useSyncExternalStore(R,q,ee)},Ne.useTransition=function(){return I.H.useTransition()},Ne.version="19.2.7",Ne}var DS;function gy(){return DS||(DS=1,am.exports=PR()),am.exports}var b=gy();const IR=OR(b),vs=RR({__proto__:null,default:IR},[b]);var om={exports:{}},Al={},im={exports:{}},sm={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var PS;function $R(){return PS||(PS=1,(function(e){function t(L,V){var B=L.length;L.push(V);e:for(;0<B;){var te=B-1>>>1,ce=L[te];if(0<s(ce,V))L[te]=V,L[B]=ce,B=te;else break e}}function r(L){return L.length===0?null:L[0]}function o(L){if(L.length===0)return null;var V=L[0],B=L.pop();if(B!==V){L[0]=B;e:for(var te=0,ce=L.length,R=ce>>>1;te<R;){var q=2*(te+1)-1,ee=L[q],oe=q+1,ge=L[oe];if(0>s(ee,B))oe<ce&&0>s(ge,ee)?(L[te]=ge,L[oe]=B,te=oe):(L[te]=ee,L[q]=B,te=q);else if(oe<ce&&0>s(ge,B))L[te]=ge,L[oe]=B,te=oe;else break e}}return V}function s(L,V){var B=L.sortIndex-V.sortIndex;return B!==0?B:L.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],g=[],y=1,v=null,S=3,x=!1,C=!1,A=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function N(L){for(var V=r(g);V!==null;){if(V.callback===null)o(g);else if(V.startTime<=L)o(g),V.sortIndex=V.expirationTime,t(h,V);else break;V=r(g)}}function O(L){if(A=!1,N(L),!C)if(r(h)!==null)C=!0,P||(P=!0,Y());else{var V=r(g);V!==null&&be(O,V.startTime-L)}}var P=!1,I=-1,z=5,Z=-1;function re(){return w?!0:!(e.unstable_now()-Z<z)}function ne(){if(w=!1,P){var L=e.unstable_now();Z=L;var V=!0;try{e:{C=!1,A&&(A=!1,M(I),I=-1),x=!0;var B=S;try{t:{for(N(L),v=r(h);v!==null&&!(v.expirationTime>L&&re());){var te=v.callback;if(typeof te=="function"){v.callback=null,S=v.priorityLevel;var ce=te(v.expirationTime<=L);if(L=e.unstable_now(),typeof ce=="function"){v.callback=ce,N(L),V=!0;break t}v===r(h)&&o(h),N(L)}else o(h);v=r(h)}if(v!==null)V=!0;else{var R=r(g);R!==null&&be(O,R.startTime-L),V=!1}}break e}finally{v=null,S=B,x=!1}V=void 0}}finally{V?Y():P=!1}}}var Y;if(typeof T=="function")Y=function(){T(ne)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ue=le.port2;le.port1.onmessage=ne,Y=function(){ue.postMessage(null)}}else Y=function(){k(ne,0)};function be(L,V){I=k(function(){L(e.unstable_now())},V)}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(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_next=function(L){switch(S){case 1:case 2:case 3:var V=3;break;default:V=S}var B=S;S=V;try{return L()}finally{S=B}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var B=S;S=L;try{return V()}finally{S=B}},e.unstable_scheduleCallback=function(L,V,B){var te=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?te+B:te):B=te,L){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=B+ce,L={id:y++,callback:V,priorityLevel:L,startTime:B,expirationTime:ce,sortIndex:-1},B>te?(L.sortIndex=B,t(g,L),r(h)===null&&L===r(g)&&(A?(M(I),I=-1):A=!0,be(O,B-te))):(L.sortIndex=ce,t(h,L),C||x||(C=!0,P||(P=!0,Y()))),L},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(L){var V=S;return function(){var B=S;S=V;try{return L.apply(this,arguments)}finally{S=B}}}})(sm)),sm}var IS;function LR(){return IS||(IS=1,im.exports=$R()),im.exports}var lm={exports:{}},en={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var $S;function zR(){if($S)return en;$S=1;var e=gy();function t(h){var g="https://react.dev/errors/"+h;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(h,g,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,children:h,containerInfo:g,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,g){if(h==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return en.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,en.createPortal=function(h,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(t(299));return c(h,g,null,y)},en.flushSync=function(h){var g=u.T,y=o.p;try{if(u.T=null,o.p=2,h)return h()}finally{u.T=g,o.p=y,o.d.f()}},en.preconnect=function(h,g){typeof h=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(h,g))},en.prefetchDNS=function(h){typeof h=="string"&&o.d.D(h)},en.preinit=function(h,g){if(typeof h=="string"&&g&&typeof g.as=="string"){var y=g.as,v=f(y,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,x=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?o.d.S(h,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:x}):y==="script"&&o.d.X(h,{crossOrigin:v,integrity:S,fetchPriority:x,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},en.preinitModule=function(h,g){if(typeof h=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=f(g.as,g.crossOrigin);o.d.M(h,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(h)},en.preload=function(h,g){if(typeof h=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,v=f(y,g.crossOrigin);o.d.L(h,y,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},en.preloadModule=function(h,g){if(typeof h=="string")if(g){var y=f(g.as,g.crossOrigin);o.d.m(h,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(h)},en.requestFormReset=function(h){o.d.r(h)},en.unstable_batchedUpdates=function(h,g){return h(g)},en.useFormState=function(h,g,y){return u.H.useFormState(h,g,y)},en.useFormStatus=function(){return u.H.useHostTransitionStatus()},en.version="19.2.7",en}var LS;function hw(){if(LS)return lm.exports;LS=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(),lm.exports=zR(),lm.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var zS;function HR(){if(zS)return Al;zS=1;var e=LR(),t=gy(),r=hw();function o(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var a=n,i=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(i=a.return),n=a.return;while(n)}return a.tag===3?i:null}function u(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function f(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function h(n){if(c(n)!==n)throw Error(o(188))}function g(n){var a=n.alternate;if(!a){if(a=c(n),a===null)throw Error(o(188));return a!==n?null:n}for(var i=n,l=a;;){var p=i.return;if(p===null)break;var m=p.alternate;if(m===null){if(l=p.return,l!==null){i=l;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===i)return h(p),n;if(m===l)return h(p),a;m=m.sibling}throw Error(o(188))}if(i.return!==l.return)i=p,l=m;else{for(var _=!1,E=p.child;E;){if(E===i){_=!0,i=p,l=m;break}if(E===l){_=!0,l=p,i=m;break}E=E.sibling}if(!_){for(E=m.child;E;){if(E===i){_=!0,i=m,l=p;break}if(E===l){_=!0,l=m,i=p;break}E=E.sibling}if(!_)throw Error(o(189))}}if(i.alternate!==l)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?n:a}function y(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=y(n),a!==null)return a;n=n.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),T=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function Y(n){return n===null||typeof n!="object"?null:(n=ne&&n[ne]||n["@@iterator"],typeof n=="function"?n:null)}var le=Symbol.for("react.client.reference");function ue(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===le?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case A:return"Fragment";case k:return"Profiler";case w:return"StrictMode";case O:return"Suspense";case P:return"SuspenseList";case Z:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case C:return"Portal";case T:return n.displayName||"Context";case M:return(n._context.displayName||"Context")+".Consumer";case N:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case I:return a=n.displayName||null,a!==null?a:ue(n.type)||"Memo";case z:a=n._payload,n=n._init;try{return ue(n(a))}catch{}}return null}var be=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},te=[],ce=-1;function R(n){return{current:n}}function q(n){0>ce||(n.current=te[ce],te[ce]=null,ce--)}function ee(n,a){ce++,te[ce]=n.current,n.current=a}var oe=R(null),ge=R(null),Ee=R(null),Se=R(null);function de(n,a){switch(ee(Ee,a),ee(ge,n),ee(oe,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?X1(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=X1(a),n=Q1(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}q(oe),ee(oe,n)}function he(){q(oe),q(ge),q(Ee)}function $e(n){n.memoizedState!==null&&ee(Se,n);var a=oe.current,i=Q1(a,n.type);a!==i&&(ee(ge,n),ee(oe,i))}function De(n){ge.current===n&&(q(oe),q(ge)),Se.current===n&&(q(Se),Sl._currentValue=B)}var ze,at;function ot(n){if(ze===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);ze=a&&a[1]||"",at=-1<i.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+ze+n+at}var At=!1;function Dn(n,a){if(!n||At)return"";At=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(G){var F=G}Reflect.construct(n,[],X)}else{try{X.call()}catch(G){F=G}n.call(X.prototype)}}else{try{throw Error()}catch(G){F=G}(X=n())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(G){if(G&&F&&typeof G.stack=="string")return[G.stack,F.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=l.DetermineComponentFrameRoot(),_=m[0],E=m[1];if(_&&E){var j=_.split(`
45
+ `),U=E.split(`
46
+ `);for(p=l=0;l<j.length&&!j[l].includes("DetermineComponentFrameRoot");)l++;for(;p<U.length&&!U[p].includes("DetermineComponentFrameRoot");)p++;if(l===j.length||p===U.length)for(l=j.length-1,p=U.length-1;1<=l&&0<=p&&j[l]!==U[p];)p--;for(;1<=l&&0<=p;l--,p--)if(j[l]!==U[p]){if(l!==1||p!==1)do if(l--,p--,0>p||j[l]!==U[p]){var W=`
47
+ `+j[l].replace(" at new "," at ");return n.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",n.displayName)),W}while(1<=l&&0<=p);break}}}finally{At=!1,Error.prepareStackTrace=i}return(i=n?n.displayName||n.name:"")?ot(i):""}function Qn(n,a){switch(n.tag){case 26:case 27:case 5:return ot(n.type);case 16:return ot("Lazy");case 13:return n.child!==a&&a!==null?ot("Suspense Fallback"):ot("Suspense");case 19:return ot("SuspenseList");case 0:case 15:return Dn(n.type,!1);case 11:return Dn(n.type.render,!1);case 1:return Dn(n.type,!0);case 31:return ot("Activity");default:return""}}function Pn(n){try{var a="",i=null;do a+=Qn(n,i),i=n,n=n.return;while(n);return a}catch(l){return`
48
+ Error generating stack: `+l.message+`
49
+ `+l.stack}}var J=Object.prototype.hasOwnProperty,xe=e.unstable_scheduleCallback,Te=e.unstable_cancelCallback,Ye=e.unstable_shouldYield,oo=e.unstable_requestPaint,Tt=e.unstable_now,fa=e.unstable_getCurrentPriorityLevel,ai=e.unstable_ImmediatePriority,wc=e.unstable_UserBlockingPriority,cr=e.unstable_NormalPriority,ie=e.unstable_LowPriority,ae=e.unstable_IdlePriority,ye=e.log,me=e.unstable_setDisableYieldValue,Me=null,Ae=null;function qe(n){if(typeof ye=="function"&&me(n),Ae&&typeof Ae.setStrictMode=="function")try{Ae.setStrictMode(Me,n)}catch{}}var Oe=Math.clz32?Math.clz32:_n,We=Math.log,It=Math.LN2;function _n(n){return n>>>=0,n===0?32:31-(We(n)/It|0)|0}var vt=256,Qt=262144,Sn=4194304;function ur(n){var a=n&42;if(a!==0)return a;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function io(n,a,i){var l=n.pendingLanes;if(l===0)return 0;var p=0,m=n.suspendedLanes,_=n.pingedLanes;n=n.warmLanes;var E=l&134217727;return E!==0?(l=E&~m,l!==0?p=ur(l):(_&=E,_!==0?p=ur(_):i||(i=E&~n,i!==0&&(p=ur(i))))):(E=l&~m,E!==0?p=ur(E):_!==0?p=ur(_):i||(i=l&~n,i!==0&&(p=ur(i)))),p===0?0:a!==0&&a!==p&&(a&m)===0&&(m=p&-p,i=a&-a,m>=i||m===32&&(i&4194048)!==0)?a:p}function Ds(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function vT(n,a){switch(n){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 Ob(){var n=Sn;return Sn<<=1,(Sn&62914560)===0&&(Sn=4194304),n}function qf(n){for(var a=[],i=0;31>i;i++)a.push(n);return a}function Ps(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function bT(n,a,i,l,p,m){var _=n.pendingLanes;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=i,n.entangledLanes&=i,n.errorRecoveryDisabledLanes&=i,n.shellSuspendCounter=0;var E=n.entanglements,j=n.expirationTimes,U=n.hiddenUpdates;for(i=_&~i;0<i;){var W=31-Oe(i),X=1<<W;E[W]=0,j[W]=-1;var F=U[W];if(F!==null)for(U[W]=null,W=0;W<F.length;W++){var G=F[W];G!==null&&(G.lane&=-536870913)}i&=~X}l!==0&&jb(n,l,0),m!==0&&p===0&&n.tag!==0&&(n.suspendedLanes|=m&~(_&~a))}function jb(n,a,i){n.pendingLanes|=a,n.suspendedLanes&=~a;var l=31-Oe(a);n.entangledLanes|=a,n.entanglements[l]=n.entanglements[l]|1073741824|i&261930}function Db(n,a){var i=n.entangledLanes|=a;for(n=n.entanglements;i;){var l=31-Oe(i),p=1<<l;p&a|n[l]&a&&(n[l]|=a),i&=~p}}function Pb(n,a){var i=a&-a;return i=(i&42)!==0?1:Gf(i),(i&(n.suspendedLanes|a))!==0?0:i}function Gf(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Vf(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Ib(){var n=V.p;return n!==0?n:(n=window.event,n===void 0?32:SS(n.type))}function $b(n,a){var i=V.p;try{return V.p=n,a()}finally{V.p=i}}var pa=Math.random().toString(36).slice(2),qt="__reactFiber$"+pa,cn="__reactProps$"+pa,oi="__reactContainer$"+pa,Zf="__reactEvents$"+pa,_T="__reactListeners$"+pa,ST="__reactHandles$"+pa,Lb="__reactResources$"+pa,Is="__reactMarker$"+pa;function Yf(n){delete n[qt],delete n[cn],delete n[Zf],delete n[_T],delete n[ST]}function ii(n){var a=n[qt];if(a)return a;for(var i=n.parentNode;i;){if(a=i[oi]||i[qt]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(n=oS(n);n!==null;){if(i=n[qt])return i;n=oS(n)}return a}n=i,i=n.parentNode}return null}function si(n){if(n=n[qt]||n[oi]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function $s(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(o(33))}function li(n){var a=n[Lb];return a||(a=n[Lb]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ht(n){n[Is]=!0}var zb=new Set,Hb={};function so(n,a){ci(n,a),ci(n+"Capture",a)}function ci(n,a){for(Hb[n]=a,n=0;n<a.length;n++)zb.add(a[n])}var xT=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]*$"),Ub={},Bb={};function CT(n){return J.call(Bb,n)?!0:J.call(Ub,n)?!1:xT.test(n)?Bb[n]=!0:(Ub[n]=!0,!1)}function Ec(n,a,i){if(CT(a))if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+i)}}function Ac(n,a,i){if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+i)}}function kr(n,a,i,l){if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttributeNS(a,i,""+l)}}function In(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Fb(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function wT(n,a,i){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,m=l.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return p.call(this)},set:function(_){i=""+_,m.call(this,_)}}),Object.defineProperty(n,a,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(_){i=""+_},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function Wf(n){if(!n._valueTracker){var a=Fb(n)?"checked":"value";n._valueTracker=wT(n,a,""+n[a])}}function qb(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var i=a.getValue(),l="";return n&&(l=Fb(n)?n.checked?"true":"false":n.value),n=l,n!==i?(a.setValue(n),!0):!1}function kc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var ET=/[\n"\\]/g;function $n(n){return n.replace(ET,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Kf(n,a,i,l,p,m,_,E){n.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?n.type=_:n.removeAttribute("type"),a!=null?_==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+In(a)):n.value!==""+In(a)&&(n.value=""+In(a)):_!=="submit"&&_!=="reset"||n.removeAttribute("value"),a!=null?Xf(n,_,In(a)):i!=null?Xf(n,_,In(i)):l!=null&&n.removeAttribute("value"),p==null&&m!=null&&(n.defaultChecked=!!m),p!=null&&(n.checked=p&&typeof p!="function"&&typeof p!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?n.name=""+In(E):n.removeAttribute("name")}function Gb(n,a,i,l,p,m,_,E){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(n.type=m),a!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||a!=null)){Wf(n);return}i=i!=null?""+In(i):"",a=a!=null?""+In(a):i,E||a===n.value||(n.value=a),n.defaultValue=a}l=l??p,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=E?n.checked:!!l,n.defaultChecked=!!l,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(n.name=_),Wf(n)}function Xf(n,a,i){a==="number"&&kc(n.ownerDocument)===n||n.defaultValue===""+i||(n.defaultValue=""+i)}function ui(n,a,i,l){if(n=n.options,a){a={};for(var p=0;p<i.length;p++)a["$"+i[p]]=!0;for(i=0;i<n.length;i++)p=a.hasOwnProperty("$"+n[i].value),n[i].selected!==p&&(n[i].selected=p),p&&l&&(n[i].defaultSelected=!0)}else{for(i=""+In(i),a=null,p=0;p<n.length;p++){if(n[p].value===i){n[p].selected=!0,l&&(n[p].defaultSelected=!0);return}a!==null||n[p].disabled||(a=n[p])}a!==null&&(a.selected=!0)}}function Vb(n,a,i){if(a!=null&&(a=""+In(a),a!==n.value&&(n.value=a),i==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=i!=null?""+In(i):""}function Zb(n,a,i,l){if(a==null){if(l!=null){if(i!=null)throw Error(o(92));if(be(l)){if(1<l.length)throw Error(o(93));l=l[0]}i=l}i==null&&(i=""),a=i}i=In(a),n.defaultValue=i,l=n.textContent,l===i&&l!==""&&l!==null&&(n.value=l),Wf(n)}function di(n,a){if(a){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=a;return}}n.textContent=a}var AT=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 Yb(n,a,i){var l=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":l?n.setProperty(a,i):typeof i!="number"||i===0||AT.has(a)?a==="float"?n.cssFloat=i:n[a]=(""+i).trim():n[a]=i+"px"}function Wb(n,a,i){if(a!=null&&typeof a!="object")throw Error(o(62));if(n=n.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var p in a)l=a[p],a.hasOwnProperty(p)&&i[p]!==l&&Yb(n,p,l)}else for(var m in a)a.hasOwnProperty(m)&&Yb(n,m,a[m])}function Qf(n){if(n.indexOf("-")===-1)return!1;switch(n){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 kT=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"]]),MT=/^[\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 Mc(n){return MT.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Mr(){}var Jf=null;function ep(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var fi=null,pi=null;function Kb(n){var a=si(n);if(a&&(n=a.stateNode)){var i=n[cn]||null;e:switch(n=a.stateNode,a.type){case"input":if(Kf(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+$n(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var l=i[a];if(l!==n&&l.form===n.form){var p=l[cn]||null;if(!p)throw Error(o(90));Kf(l,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(a=0;a<i.length;a++)l=i[a],l.form===n.form&&qb(l)}break e;case"textarea":Vb(n,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&ui(n,!!i.multiple,a,!1)}}}var tp=!1;function Xb(n,a,i){if(tp)return n(a,i);tp=!0;try{var l=n(a);return l}finally{if(tp=!1,(fi!==null||pi!==null)&&(mu(),fi&&(a=fi,n=pi,pi=fi=null,Kb(a),n)))for(a=0;a<n.length;a++)Kb(n[a])}}function Ls(n,a){var i=n.stateNode;if(i===null)return null;var l=i[cn]||null;if(l===null)return null;i=l[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":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(o(231,a,typeof i));return i}var Tr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),np=!1;if(Tr)try{var zs={};Object.defineProperty(zs,"passive",{get:function(){np=!0}}),window.addEventListener("test",zs,zs),window.removeEventListener("test",zs,zs)}catch{np=!1}var ha=null,rp=null,Tc=null;function Qb(){if(Tc)return Tc;var n,a=rp,i=a.length,l,p="value"in ha?ha.value:ha.textContent,m=p.length;for(n=0;n<i&&a[n]===p[n];n++);var _=i-n;for(l=1;l<=_&&a[i-l]===p[m-l];l++);return Tc=p.slice(n,1<l?1-l:void 0)}function Nc(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Rc(){return!0}function Jb(){return!1}function un(n){function a(i,l,p,m,_){this._reactName=i,this._targetInst=p,this.type=l,this.nativeEvent=m,this.target=_,this.currentTarget=null;for(var E in n)n.hasOwnProperty(E)&&(i=n[E],this[E]=i?i(m):m[E]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Rc:Jb,this.isPropagationStopped=Jb,this}return v(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Rc)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Rc)},persist:function(){},isPersistent:Rc}),a}var lo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oc=un(lo),Hs=v({},lo,{view:0,detail:0}),TT=un(Hs),ap,op,Us,jc=v({},Hs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sp,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Us&&(Us&&n.type==="mousemove"?(ap=n.screenX-Us.screenX,op=n.screenY-Us.screenY):op=ap=0,Us=n),ap)},movementY:function(n){return"movementY"in n?n.movementY:op}}),e0=un(jc),NT=v({},jc,{dataTransfer:0}),RT=un(NT),OT=v({},Hs,{relatedTarget:0}),ip=un(OT),jT=v({},lo,{animationName:0,elapsedTime:0,pseudoElement:0}),DT=un(jT),PT=v({},lo,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),IT=un(PT),$T=v({},lo,{data:0}),t0=un($T),LT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zT={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"},HT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UT(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=HT[n])?!!a[n]:!1}function sp(){return UT}var BT=v({},Hs,{key:function(n){if(n.key){var a=LT[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=Nc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?zT[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sp,charCode:function(n){return n.type==="keypress"?Nc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Nc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),FT=un(BT),qT=v({},jc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),n0=un(qT),GT=v({},Hs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sp}),VT=un(GT),ZT=v({},lo,{propertyName:0,elapsedTime:0,pseudoElement:0}),YT=un(ZT),WT=v({},jc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),KT=un(WT),XT=v({},lo,{newState:0,oldState:0}),QT=un(XT),JT=[9,13,27,32],lp=Tr&&"CompositionEvent"in window,Bs=null;Tr&&"documentMode"in document&&(Bs=document.documentMode);var eN=Tr&&"TextEvent"in window&&!Bs,r0=Tr&&(!lp||Bs&&8<Bs&&11>=Bs),a0=" ",o0=!1;function i0(n,a){switch(n){case"keyup":return JT.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function s0(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var hi=!1;function tN(n,a){switch(n){case"compositionend":return s0(a);case"keypress":return a.which!==32?null:(o0=!0,a0);case"textInput":return n=a.data,n===a0&&o0?null:n;default:return null}}function nN(n,a){if(hi)return n==="compositionend"||!lp&&i0(n,a)?(n=Qb(),Tc=rp=ha=null,hi=!1,n):null;switch(n){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 r0&&a.locale!=="ko"?null:a.data;default:return null}}var rN={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 l0(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!rN[n.type]:a==="textarea"}function c0(n,a,i,l){fi?pi?pi.push(l):pi=[l]:fi=l,a=xu(a,"onChange"),0<a.length&&(i=new Oc("onChange","change",null,i,l),n.push({event:i,listeners:a}))}var Fs=null,qs=null;function aN(n){G1(n,0)}function Dc(n){var a=$s(n);if(qb(a))return n}function u0(n,a){if(n==="change")return a}var d0=!1;if(Tr){var cp;if(Tr){var up="oninput"in document;if(!up){var f0=document.createElement("div");f0.setAttribute("oninput","return;"),up=typeof f0.oninput=="function"}cp=up}else cp=!1;d0=cp&&(!document.documentMode||9<document.documentMode)}function p0(){Fs&&(Fs.detachEvent("onpropertychange",h0),qs=Fs=null)}function h0(n){if(n.propertyName==="value"&&Dc(qs)){var a=[];c0(a,qs,n,ep(n)),Xb(aN,a)}}function oN(n,a,i){n==="focusin"?(p0(),Fs=a,qs=i,Fs.attachEvent("onpropertychange",h0)):n==="focusout"&&p0()}function iN(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Dc(qs)}function sN(n,a){if(n==="click")return Dc(a)}function lN(n,a){if(n==="input"||n==="change")return Dc(a)}function cN(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var xn=typeof Object.is=="function"?Object.is:cN;function Gs(n,a){if(xn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var i=Object.keys(n),l=Object.keys(a);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var p=i[l];if(!J.call(a,p)||!xn(n[p],a[p]))return!1}return!0}function m0(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function g0(n,a){var i=m0(n);n=0;for(var l;i;){if(i.nodeType===3){if(l=n+i.textContent.length,n<=a&&l>=a)return{node:i,offset:a-n};n=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=m0(i)}}function y0(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?y0(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function v0(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=kc(n.document);a instanceof n.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)n=a.contentWindow;else break;a=kc(n.document)}return a}function dp(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var uN=Tr&&"documentMode"in document&&11>=document.documentMode,mi=null,fp=null,Vs=null,pp=!1;function b0(n,a,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;pp||mi==null||mi!==kc(l)||(l=mi,"selectionStart"in l&&dp(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Vs&&Gs(Vs,l)||(Vs=l,l=xu(fp,"onSelect"),0<l.length&&(a=new Oc("onSelect","select",null,a,i),n.push({event:a,listeners:l}),a.target=mi)))}function co(n,a){var i={};return i[n.toLowerCase()]=a.toLowerCase(),i["Webkit"+n]="webkit"+a,i["Moz"+n]="moz"+a,i}var gi={animationend:co("Animation","AnimationEnd"),animationiteration:co("Animation","AnimationIteration"),animationstart:co("Animation","AnimationStart"),transitionrun:co("Transition","TransitionRun"),transitionstart:co("Transition","TransitionStart"),transitioncancel:co("Transition","TransitionCancel"),transitionend:co("Transition","TransitionEnd")},hp={},_0={};Tr&&(_0=document.createElement("div").style,"AnimationEvent"in window||(delete gi.animationend.animation,delete gi.animationiteration.animation,delete gi.animationstart.animation),"TransitionEvent"in window||delete gi.transitionend.transition);function uo(n){if(hp[n])return hp[n];if(!gi[n])return n;var a=gi[n],i;for(i in a)if(a.hasOwnProperty(i)&&i in _0)return hp[n]=a[i];return n}var S0=uo("animationend"),x0=uo("animationiteration"),C0=uo("animationstart"),dN=uo("transitionrun"),fN=uo("transitionstart"),pN=uo("transitioncancel"),w0=uo("transitionend"),E0=new Map,mp="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(" ");mp.push("scrollEnd");function Jn(n,a){E0.set(n,a),so(a,[n])}var Pc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Ln=[],yi=0,gp=0;function Ic(){for(var n=yi,a=gp=yi=0;a<n;){var i=Ln[a];Ln[a++]=null;var l=Ln[a];Ln[a++]=null;var p=Ln[a];Ln[a++]=null;var m=Ln[a];if(Ln[a++]=null,l!==null&&p!==null){var _=l.pending;_===null?p.next=p:(p.next=_.next,_.next=p),l.pending=p}m!==0&&A0(i,p,m)}}function $c(n,a,i,l){Ln[yi++]=n,Ln[yi++]=a,Ln[yi++]=i,Ln[yi++]=l,gp|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function yp(n,a,i,l){return $c(n,a,i,l),Lc(n)}function fo(n,a){return $c(n,null,null,a),Lc(n)}function A0(n,a,i){n.lanes|=i;var l=n.alternate;l!==null&&(l.lanes|=i);for(var p=!1,m=n.return;m!==null;)m.childLanes|=i,l=m.alternate,l!==null&&(l.childLanes|=i),m.tag===22&&(n=m.stateNode,n===null||n._visibility&1||(p=!0)),n=m,m=m.return;return n.tag===3?(m=n.stateNode,p&&a!==null&&(p=31-Oe(i),n=m.hiddenUpdates,l=n[p],l===null?n[p]=[a]:l.push(a),a.lane=i|536870912),m):null}function Lc(n){if(50<hl)throw hl=0,Ah=null,Error(o(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var vi={};function hN(n,a,i,l){this.tag=n,this.key=i,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(n,a,i,l){return new hN(n,a,i,l)}function vp(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Nr(n,a){var i=n.alternate;return i===null?(i=Cn(n.tag,a,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=a,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&65011712,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,a=n.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i.refCleanup=n.refCleanup,i}function k0(n,a){n.flags&=65011714;var i=n.alternate;return i===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,a=i.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function zc(n,a,i,l,p,m){var _=0;if(l=n,typeof n=="function")vp(n)&&(_=1);else if(typeof n=="string")_=bR(n,i,oe.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case Z:return n=Cn(31,i,a,p),n.elementType=Z,n.lanes=m,n;case A:return po(i.children,p,m,a);case w:_=8,p|=24;break;case k:return n=Cn(12,i,a,p|2),n.elementType=k,n.lanes=m,n;case O:return n=Cn(13,i,a,p),n.elementType=O,n.lanes=m,n;case P:return n=Cn(19,i,a,p),n.elementType=P,n.lanes=m,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case T:_=10;break e;case M:_=9;break e;case N:_=11;break e;case I:_=14;break e;case z:_=16,l=null;break e}_=29,i=Error(o(130,n===null?"null":typeof n,"")),l=null}return a=Cn(_,i,a,p),a.elementType=n,a.type=l,a.lanes=m,a}function po(n,a,i,l){return n=Cn(7,n,l,a),n.lanes=i,n}function bp(n,a,i){return n=Cn(6,n,null,a),n.lanes=i,n}function M0(n){var a=Cn(18,null,null,0);return a.stateNode=n,a}function _p(n,a,i){return a=Cn(4,n.children!==null?n.children:[],n.key,a),a.lanes=i,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var T0=new WeakMap;function zn(n,a){if(typeof n=="object"&&n!==null){var i=T0.get(n);return i!==void 0?i:(a={value:n,source:a,stack:Pn(a)},T0.set(n,a),a)}return{value:n,source:a,stack:Pn(a)}}var bi=[],_i=0,Hc=null,Zs=0,Hn=[],Un=0,ma=null,dr=1,fr="";function Rr(n,a){bi[_i++]=Zs,bi[_i++]=Hc,Hc=n,Zs=a}function N0(n,a,i){Hn[Un++]=dr,Hn[Un++]=fr,Hn[Un++]=ma,ma=n;var l=dr;n=fr;var p=32-Oe(l)-1;l&=~(1<<p),i+=1;var m=32-Oe(a)+p;if(30<m){var _=p-p%5;m=(l&(1<<_)-1).toString(32),l>>=_,p-=_,dr=1<<32-Oe(a)+p|i<<p|l,fr=m+n}else dr=1<<m|i<<p|l,fr=n}function Sp(n){n.return!==null&&(Rr(n,1),N0(n,1,0))}function xp(n){for(;n===Hc;)Hc=bi[--_i],bi[_i]=null,Zs=bi[--_i],bi[_i]=null;for(;n===ma;)ma=Hn[--Un],Hn[Un]=null,fr=Hn[--Un],Hn[Un]=null,dr=Hn[--Un],Hn[Un]=null}function R0(n,a){Hn[Un++]=dr,Hn[Un++]=fr,Hn[Un++]=ma,dr=a.id,fr=a.overflow,ma=n}var Gt=null,mt=null,Ze=!1,ga=null,Bn=!1,Cp=Error(o(519));function ya(n){var a=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ys(zn(a,n)),Cp}function O0(n){var a=n.stateNode,i=n.type,l=n.memoizedProps;switch(a[qt]=n,a[cn]=l,i){case"dialog":Ue("cancel",a),Ue("close",a);break;case"iframe":case"object":case"embed":Ue("load",a);break;case"video":case"audio":for(i=0;i<gl.length;i++)Ue(gl[i],a);break;case"source":Ue("error",a);break;case"img":case"image":case"link":Ue("error",a),Ue("load",a);break;case"details":Ue("toggle",a);break;case"input":Ue("invalid",a),Gb(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ue("invalid",a);break;case"textarea":Ue("invalid",a),Zb(a,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||l.suppressHydrationWarning===!0||W1(a.textContent,i)?(l.popover!=null&&(Ue("beforetoggle",a),Ue("toggle",a)),l.onScroll!=null&&Ue("scroll",a),l.onScrollEnd!=null&&Ue("scrollend",a),l.onClick!=null&&(a.onclick=Mr),a=!0):a=!1,a||ya(n,!0)}function j0(n){for(Gt=n.return;Gt;)switch(Gt.tag){case 5:case 31:case 13:Bn=!1;return;case 27:case 3:Bn=!0;return;default:Gt=Gt.return}}function Si(n){if(n!==Gt)return!1;if(!Ze)return j0(n),Ze=!0,!1;var a=n.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=n.type,i=!(i!=="form"&&i!=="button")||Uh(n.type,n.memoizedProps)),i=!i),i&&mt&&ya(n),j0(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));mt=aS(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));mt=aS(n)}else a===27?(a=mt,Ra(n.type)?(n=Vh,Vh=null,mt=n):mt=a):mt=Gt?qn(n.stateNode.nextSibling):null;return!0}function ho(){mt=Gt=null,Ze=!1}function wp(){var n=ga;return n!==null&&(hn===null?hn=n:hn.push.apply(hn,n),ga=null),n}function Ys(n){ga===null?ga=[n]:ga.push(n)}var Ep=R(null),mo=null,Or=null;function va(n,a,i){ee(Ep,a._currentValue),a._currentValue=i}function jr(n){n._currentValue=Ep.current,q(Ep)}function Ap(n,a,i){for(;n!==null;){var l=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),n===i)break;n=n.return}}function kp(n,a,i,l){var p=n.child;for(p!==null&&(p.return=n);p!==null;){var m=p.dependencies;if(m!==null){var _=p.child;m=m.firstContext;e:for(;m!==null;){var E=m;m=p;for(var j=0;j<a.length;j++)if(E.context===a[j]){m.lanes|=i,E=m.alternate,E!==null&&(E.lanes|=i),Ap(m.return,i,n),l||(_=null);break e}m=E.next}}else if(p.tag===18){if(_=p.return,_===null)throw Error(o(341));_.lanes|=i,m=_.alternate,m!==null&&(m.lanes|=i),Ap(_,i,n),_=null}else _=p.child;if(_!==null)_.return=p;else for(_=p;_!==null;){if(_===n){_=null;break}if(p=_.sibling,p!==null){p.return=_.return,_=p;break}_=_.return}p=_}}function xi(n,a,i,l){n=null;for(var p=a,m=!1;p!==null;){if(!m){if((p.flags&524288)!==0)m=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var _=p.alternate;if(_===null)throw Error(o(387));if(_=_.memoizedProps,_!==null){var E=p.type;xn(p.pendingProps.value,_.value)||(n!==null?n.push(E):n=[E])}}else if(p===Se.current){if(_=p.alternate,_===null)throw Error(o(387));_.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(n!==null?n.push(Sl):n=[Sl])}p=p.return}n!==null&&kp(a,n,i,l),a.flags|=262144}function Uc(n){for(n=n.firstContext;n!==null;){if(!xn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function go(n){mo=n,Or=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Vt(n){return D0(mo,n)}function Bc(n,a){return mo===null&&go(n),D0(n,a)}function D0(n,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},Or===null){if(n===null)throw Error(o(308));Or=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else Or=Or.next=a;return i}var mN=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(i,l){n.push(l)}};this.abort=function(){a.aborted=!0,n.forEach(function(i){return i()})}},gN=e.unstable_scheduleCallback,yN=e.unstable_NormalPriority,Nt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mp(){return{controller:new mN,data:new Map,refCount:0}}function Ws(n){n.refCount--,n.refCount===0&&gN(yN,function(){n.controller.abort()})}var Ks=null,Tp=0,Ci=0,wi=null;function vN(n,a){if(Ks===null){var i=Ks=[];Tp=0,Ci=Oh(),wi={status:"pending",value:void 0,then:function(l){i.push(l)}}}return Tp++,a.then(P0,P0),a}function P0(){if(--Tp===0&&Ks!==null){wi!==null&&(wi.status="fulfilled");var n=Ks;Ks=null,Ci=0,wi=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function bN(n,a){var i=[],l={status:"pending",value:null,reason:null,then:function(p){i.push(p)}};return n.then(function(){l.status="fulfilled",l.value=a;for(var p=0;p<i.length;p++)(0,i[p])(a)},function(p){for(l.status="rejected",l.reason=p,p=0;p<i.length;p++)(0,i[p])(void 0)}),l}var I0=L.S;L.S=function(n,a){b1=Tt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&vN(n,a),I0!==null&&I0(n,a)};var yo=R(null);function Np(){var n=yo.current;return n!==null?n:pt.pooledCache}function Fc(n,a){a===null?ee(yo,yo.current):ee(yo,a.pool)}function $0(){var n=Np();return n===null?null:{parent:Nt._currentValue,pool:n}}var Ei=Error(o(460)),Rp=Error(o(474)),qc=Error(o(542)),Gc={then:function(){}};function L0(n){return n=n.status,n==="fulfilled"||n==="rejected"}function z0(n,a,i){switch(i=n[i],i===void 0?n.push(a):i!==a&&(a.then(Mr,Mr),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,U0(n),n;default:if(typeof a.status=="string")a.then(Mr,Mr);else{if(n=pt,n!==null&&100<n.shellSuspendCounter)throw Error(o(482));n=a,n.status="pending",n.then(function(l){if(a.status==="pending"){var p=a;p.status="fulfilled",p.value=l}},function(l){if(a.status==="pending"){var p=a;p.status="rejected",p.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,U0(n),n}throw bo=a,Ei}}function vo(n){try{var a=n._init;return a(n._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(bo=i,Ei):i}}var bo=null;function H0(){if(bo===null)throw Error(o(459));var n=bo;return bo=null,n}function U0(n){if(n===Ei||n===qc)throw Error(o(483))}var Ai=null,Xs=0;function Vc(n){var a=Xs;return Xs+=1,Ai===null&&(Ai=[]),z0(Ai,n,a)}function Qs(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Zc(n,a){throw a.$$typeof===S?Error(o(525)):(n=Object.prototype.toString.call(a),Error(o(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function B0(n){function a($,D){if(n){var H=$.deletions;H===null?($.deletions=[D],$.flags|=16):H.push(D)}}function i($,D){if(!n)return null;for(;D!==null;)a($,D),D=D.sibling;return null}function l($){for(var D=new Map;$!==null;)$.key!==null?D.set($.key,$):D.set($.index,$),$=$.sibling;return D}function p($,D){return $=Nr($,D),$.index=0,$.sibling=null,$}function m($,D,H){return $.index=H,n?(H=$.alternate,H!==null?(H=H.index,H<D?($.flags|=67108866,D):H):($.flags|=67108866,D)):($.flags|=1048576,D)}function _($){return n&&$.alternate===null&&($.flags|=67108866),$}function E($,D,H,K){return D===null||D.tag!==6?(D=bp(H,$.mode,K),D.return=$,D):(D=p(D,H),D.return=$,D)}function j($,D,H,K){var _e=H.type;return _e===A?W($,D,H.props.children,K,H.key):D!==null&&(D.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===z&&vo(_e)===D.type)?(D=p(D,H.props),Qs(D,H),D.return=$,D):(D=zc(H.type,H.key,H.props,null,$.mode,K),Qs(D,H),D.return=$,D)}function U($,D,H,K){return D===null||D.tag!==4||D.stateNode.containerInfo!==H.containerInfo||D.stateNode.implementation!==H.implementation?(D=_p(H,$.mode,K),D.return=$,D):(D=p(D,H.children||[]),D.return=$,D)}function W($,D,H,K,_e){return D===null||D.tag!==7?(D=po(H,$.mode,K,_e),D.return=$,D):(D=p(D,H),D.return=$,D)}function X($,D,H){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=bp(""+D,$.mode,H),D.return=$,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return H=zc(D.type,D.key,D.props,null,$.mode,H),Qs(H,D),H.return=$,H;case C:return D=_p(D,$.mode,H),D.return=$,D;case z:return D=vo(D),X($,D,H)}if(be(D)||Y(D))return D=po(D,$.mode,H,null),D.return=$,D;if(typeof D.then=="function")return X($,Vc(D),H);if(D.$$typeof===T)return X($,Bc($,D),H);Zc($,D)}return null}function F($,D,H,K){var _e=D!==null?D.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return _e!==null?null:E($,D,""+H,K);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return H.key===_e?j($,D,H,K):null;case C:return H.key===_e?U($,D,H,K):null;case z:return H=vo(H),F($,D,H,K)}if(be(H)||Y(H))return _e!==null?null:W($,D,H,K,null);if(typeof H.then=="function")return F($,D,Vc(H),K);if(H.$$typeof===T)return F($,D,Bc($,H),K);Zc($,H)}return null}function G($,D,H,K,_e){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return $=$.get(H)||null,E(D,$,""+K,_e);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return $=$.get(K.key===null?H:K.key)||null,j(D,$,K,_e);case C:return $=$.get(K.key===null?H:K.key)||null,U(D,$,K,_e);case z:return K=vo(K),G($,D,H,K,_e)}if(be(K)||Y(K))return $=$.get(H)||null,W(D,$,K,_e,null);if(typeof K.then=="function")return G($,D,H,Vc(K),_e);if(K.$$typeof===T)return G($,D,H,Bc(D,K),_e);Zc(D,K)}return null}function fe($,D,H,K){for(var _e=null,Ke=null,pe=D,Pe=D=0,Ve=null;pe!==null&&Pe<H.length;Pe++){pe.index>Pe?(Ve=pe,pe=null):Ve=pe.sibling;var Xe=F($,pe,H[Pe],K);if(Xe===null){pe===null&&(pe=Ve);break}n&&pe&&Xe.alternate===null&&a($,pe),D=m(Xe,D,Pe),Ke===null?_e=Xe:Ke.sibling=Xe,Ke=Xe,pe=Ve}if(Pe===H.length)return i($,pe),Ze&&Rr($,Pe),_e;if(pe===null){for(;Pe<H.length;Pe++)pe=X($,H[Pe],K),pe!==null&&(D=m(pe,D,Pe),Ke===null?_e=pe:Ke.sibling=pe,Ke=pe);return Ze&&Rr($,Pe),_e}for(pe=l(pe);Pe<H.length;Pe++)Ve=G(pe,$,Pe,H[Pe],K),Ve!==null&&(n&&Ve.alternate!==null&&pe.delete(Ve.key===null?Pe:Ve.key),D=m(Ve,D,Pe),Ke===null?_e=Ve:Ke.sibling=Ve,Ke=Ve);return n&&pe.forEach(function(Ia){return a($,Ia)}),Ze&&Rr($,Pe),_e}function Ce($,D,H,K){if(H==null)throw Error(o(151));for(var _e=null,Ke=null,pe=D,Pe=D=0,Ve=null,Xe=H.next();pe!==null&&!Xe.done;Pe++,Xe=H.next()){pe.index>Pe?(Ve=pe,pe=null):Ve=pe.sibling;var Ia=F($,pe,Xe.value,K);if(Ia===null){pe===null&&(pe=Ve);break}n&&pe&&Ia.alternate===null&&a($,pe),D=m(Ia,D,Pe),Ke===null?_e=Ia:Ke.sibling=Ia,Ke=Ia,pe=Ve}if(Xe.done)return i($,pe),Ze&&Rr($,Pe),_e;if(pe===null){for(;!Xe.done;Pe++,Xe=H.next())Xe=X($,Xe.value,K),Xe!==null&&(D=m(Xe,D,Pe),Ke===null?_e=Xe:Ke.sibling=Xe,Ke=Xe);return Ze&&Rr($,Pe),_e}for(pe=l(pe);!Xe.done;Pe++,Xe=H.next())Xe=G(pe,$,Pe,Xe.value,K),Xe!==null&&(n&&Xe.alternate!==null&&pe.delete(Xe.key===null?Pe:Xe.key),D=m(Xe,D,Pe),Ke===null?_e=Xe:Ke.sibling=Xe,Ke=Xe);return n&&pe.forEach(function(NR){return a($,NR)}),Ze&&Rr($,Pe),_e}function ut($,D,H,K){if(typeof H=="object"&&H!==null&&H.type===A&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case x:e:{for(var _e=H.key;D!==null;){if(D.key===_e){if(_e=H.type,_e===A){if(D.tag===7){i($,D.sibling),K=p(D,H.props.children),K.return=$,$=K;break e}}else if(D.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===z&&vo(_e)===D.type){i($,D.sibling),K=p(D,H.props),Qs(K,H),K.return=$,$=K;break e}i($,D);break}else a($,D);D=D.sibling}H.type===A?(K=po(H.props.children,$.mode,K,H.key),K.return=$,$=K):(K=zc(H.type,H.key,H.props,null,$.mode,K),Qs(K,H),K.return=$,$=K)}return _($);case C:e:{for(_e=H.key;D!==null;){if(D.key===_e)if(D.tag===4&&D.stateNode.containerInfo===H.containerInfo&&D.stateNode.implementation===H.implementation){i($,D.sibling),K=p(D,H.children||[]),K.return=$,$=K;break e}else{i($,D);break}else a($,D);D=D.sibling}K=_p(H,$.mode,K),K.return=$,$=K}return _($);case z:return H=vo(H),ut($,D,H,K)}if(be(H))return fe($,D,H,K);if(Y(H)){if(_e=Y(H),typeof _e!="function")throw Error(o(150));return H=_e.call(H),Ce($,D,H,K)}if(typeof H.then=="function")return ut($,D,Vc(H),K);if(H.$$typeof===T)return ut($,D,Bc($,H),K);Zc($,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,D!==null&&D.tag===6?(i($,D.sibling),K=p(D,H),K.return=$,$=K):(i($,D),K=bp(H,$.mode,K),K.return=$,$=K),_($)):i($,D)}return function($,D,H,K){try{Xs=0;var _e=ut($,D,H,K);return Ai=null,_e}catch(pe){if(pe===Ei||pe===qc)throw pe;var Ke=Cn(29,pe,null,$.mode);return Ke.lanes=K,Ke.return=$,Ke}finally{}}}var _o=B0(!0),F0=B0(!1),ba=!1;function Op(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jp(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function _a(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Sa(n,a,i){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(Je&2)!==0){var p=l.pending;return p===null?a.next=a:(a.next=p.next,p.next=a),l.pending=a,a=Lc(n),A0(n,null,i),a}return $c(n,l,a,i),Lc(n)}function Js(n,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var l=a.lanes;l&=n.pendingLanes,i|=l,a.lanes=i,Db(n,i)}}function Dp(n,a){var i=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var p=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var _={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?p=m=_:m=m.next=_,i=i.next}while(i!==null);m===null?p=m=a:m=m.next=a}else p=m=a;i={baseState:l.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=a:n.next=a,i.lastBaseUpdate=a}var Pp=!1;function el(){if(Pp){var n=wi;if(n!==null)throw n}}function tl(n,a,i,l){Pp=!1;var p=n.updateQueue;ba=!1;var m=p.firstBaseUpdate,_=p.lastBaseUpdate,E=p.shared.pending;if(E!==null){p.shared.pending=null;var j=E,U=j.next;j.next=null,_===null?m=U:_.next=U,_=j;var W=n.alternate;W!==null&&(W=W.updateQueue,E=W.lastBaseUpdate,E!==_&&(E===null?W.firstBaseUpdate=U:E.next=U,W.lastBaseUpdate=j))}if(m!==null){var X=p.baseState;_=0,W=U=j=null,E=m;do{var F=E.lane&-536870913,G=F!==E.lane;if(G?(Ge&F)===F:(l&F)===F){F!==0&&F===Ci&&(Pp=!0),W!==null&&(W=W.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var fe=n,Ce=E;F=a;var ut=i;switch(Ce.tag){case 1:if(fe=Ce.payload,typeof fe=="function"){X=fe.call(ut,X,F);break e}X=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=Ce.payload,F=typeof fe=="function"?fe.call(ut,X,F):fe,F==null)break e;X=v({},X,F);break e;case 2:ba=!0}}F=E.callback,F!==null&&(n.flags|=64,G&&(n.flags|=8192),G=p.callbacks,G===null?p.callbacks=[F]:G.push(F))}else G={lane:F,tag:E.tag,payload:E.payload,callback:E.callback,next:null},W===null?(U=W=G,j=X):W=W.next=G,_|=F;if(E=E.next,E===null){if(E=p.shared.pending,E===null)break;G=E,E=G.next,G.next=null,p.lastBaseUpdate=G,p.shared.pending=null}}while(!0);W===null&&(j=X),p.baseState=j,p.firstBaseUpdate=U,p.lastBaseUpdate=W,m===null&&(p.shared.lanes=0),Aa|=_,n.lanes=_,n.memoizedState=X}}function q0(n,a){if(typeof n!="function")throw Error(o(191,n));n.call(a)}function G0(n,a){var i=n.callbacks;if(i!==null)for(n.callbacks=null,n=0;n<i.length;n++)q0(i[n],a)}var ki=R(null),Yc=R(0);function V0(n,a){n=Br,ee(Yc,n),ee(ki,a),Br=n|a.baseLanes}function Ip(){ee(Yc,Br),ee(ki,ki.current)}function $p(){Br=Yc.current,q(ki),q(Yc)}var wn=R(null),Fn=null;function xa(n){var a=n.alternate;ee(kt,kt.current&1),ee(wn,n),Fn===null&&(a===null||ki.current!==null||a.memoizedState!==null)&&(Fn=n)}function Lp(n){ee(kt,kt.current),ee(wn,n),Fn===null&&(Fn=n)}function Z0(n){n.tag===22?(ee(kt,kt.current),ee(wn,n),Fn===null&&(Fn=n)):Ca()}function Ca(){ee(kt,kt.current),ee(wn,wn.current)}function En(n){q(wn),Fn===n&&(Fn=null),q(kt)}var kt=R(0);function Wc(n){for(var a=n;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||qh(i)||Gh(i)))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===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Dr=0,je=null,lt=null,Rt=null,Kc=!1,Mi=!1,So=!1,Xc=0,nl=0,Ti=null,_N=0;function Ct(){throw Error(o(321))}function zp(n,a){if(a===null)return!1;for(var i=0;i<a.length&&i<n.length;i++)if(!xn(n[i],a[i]))return!1;return!0}function Hp(n,a,i,l,p,m){return Dr=m,je=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,L.H=n===null||n.memoizedState===null?N_:th,So=!1,m=i(l,p),So=!1,Mi&&(m=W0(a,i,l,p)),Y0(n),m}function Y0(n){L.H=ol;var a=lt!==null&&lt.next!==null;if(Dr=0,Rt=lt=je=null,Kc=!1,nl=0,Ti=null,a)throw Error(o(300));n===null||Ot||(n=n.dependencies,n!==null&&Uc(n)&&(Ot=!0))}function W0(n,a,i,l){je=n;var p=0;do{if(Mi&&(Ti=null),nl=0,Mi=!1,25<=p)throw Error(o(301));if(p+=1,Rt=lt=null,n.updateQueue!=null){var m=n.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}L.H=R_,m=a(i,l)}while(Mi);return m}function SN(){var n=L.H,a=n.useState()[0];return a=typeof a.then=="function"?rl(a):a,n=n.useState()[0],(lt!==null?lt.memoizedState:null)!==n&&(je.flags|=1024),a}function Up(){var n=Xc!==0;return Xc=0,n}function Bp(n,a,i){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~i}function Fp(n){if(Kc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Kc=!1}Dr=0,Rt=lt=je=null,Mi=!1,nl=Xc=0,Ti=null}function nn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?je.memoizedState=Rt=n:Rt=Rt.next=n,Rt}function Mt(){if(lt===null){var n=je.alternate;n=n!==null?n.memoizedState:null}else n=lt.next;var a=Rt===null?je.memoizedState:Rt.next;if(a!==null)Rt=a,lt=n;else{if(n===null)throw je.alternate===null?Error(o(467)):Error(o(310));lt=n,n={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},Rt===null?je.memoizedState=Rt=n:Rt=Rt.next=n}return Rt}function Qc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rl(n){var a=nl;return nl+=1,Ti===null&&(Ti=[]),n=z0(Ti,n,a),a=je,(Rt===null?a.memoizedState:Rt.next)===null&&(a=a.alternate,L.H=a===null||a.memoizedState===null?N_:th),n}function Jc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return rl(n);if(n.$$typeof===T)return Vt(n)}throw Error(o(438,String(n)))}function qp(n){var a=null,i=je.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var l=je.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(p){return p.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=Qc(),je.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(n),l=0;l<n;l++)i[l]=re;return a.index++,i}function Pr(n,a){return typeof a=="function"?a(n):a}function eu(n){var a=Mt();return Gp(a,lt,n)}function Gp(n,a,i){var l=n.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=i;var p=n.baseQueue,m=l.pending;if(m!==null){if(p!==null){var _=p.next;p.next=m.next,m.next=_}a.baseQueue=p=m,l.pending=null}if(m=n.baseState,p===null)n.memoizedState=m;else{a=p.next;var E=_=null,j=null,U=a,W=!1;do{var X=U.lane&-536870913;if(X!==U.lane?(Ge&X)===X:(Dr&X)===X){var F=U.revertLane;if(F===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),X===Ci&&(W=!0);else if((Dr&F)===F){U=U.next,F===Ci&&(W=!0);continue}else X={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},j===null?(E=j=X,_=m):j=j.next=X,je.lanes|=F,Aa|=F;X=U.action,So&&i(m,X),m=U.hasEagerState?U.eagerState:i(m,X)}else F={lane:X,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},j===null?(E=j=F,_=m):j=j.next=F,je.lanes|=X,Aa|=X;U=U.next}while(U!==null&&U!==a);if(j===null?_=m:j.next=E,!xn(m,n.memoizedState)&&(Ot=!0,W&&(i=wi,i!==null)))throw i;n.memoizedState=m,n.baseState=_,n.baseQueue=j,l.lastRenderedState=m}return p===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function Vp(n){var a=Mt(),i=a.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=n;var l=i.dispatch,p=i.pending,m=a.memoizedState;if(p!==null){i.pending=null;var _=p=p.next;do m=n(m,_.action),_=_.next;while(_!==p);xn(m,a.memoizedState)||(Ot=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),i.lastRenderedState=m}return[m,l]}function K0(n,a,i){var l=je,p=Mt(),m=Ze;if(m){if(i===void 0)throw Error(o(407));i=i()}else i=a();var _=!xn((lt||p).memoizedState,i);if(_&&(p.memoizedState=i,Ot=!0),p=p.queue,Wp(J0.bind(null,l,p,n),[n]),p.getSnapshot!==a||_||Rt!==null&&Rt.memoizedState.tag&1){if(l.flags|=2048,Ni(9,{destroy:void 0},Q0.bind(null,l,p,i,a),null),pt===null)throw Error(o(349));m||(Dr&127)!==0||X0(l,a,i)}return i}function X0(n,a,i){n.flags|=16384,n={getSnapshot:a,value:i},a=je.updateQueue,a===null?(a=Qc(),je.updateQueue=a,a.stores=[n]):(i=a.stores,i===null?a.stores=[n]:i.push(n))}function Q0(n,a,i,l){a.value=i,a.getSnapshot=l,e_(a)&&t_(n)}function J0(n,a,i){return i(function(){e_(a)&&t_(n)})}function e_(n){var a=n.getSnapshot;n=n.value;try{var i=a();return!xn(n,i)}catch{return!0}}function t_(n){var a=fo(n,2);a!==null&&mn(a,n,2)}function Zp(n){var a=nn();if(typeof n=="function"){var i=n;if(n=i(),So){qe(!0);try{i()}finally{qe(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pr,lastRenderedState:n},a}function n_(n,a,i,l){return n.baseState=i,Gp(n,lt,typeof l=="function"?l:Pr)}function xN(n,a,i,l,p){if(ru(n))throw Error(o(485));if(n=a.action,n!==null){var m={payload:p,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){m.listeners.push(_)}};L.T!==null?i(!0):m.isTransition=!1,l(m),i=a.pending,i===null?(m.next=a.pending=m,r_(a,m)):(m.next=i.next,a.pending=i.next=m)}}function r_(n,a){var i=a.action,l=a.payload,p=n.state;if(a.isTransition){var m=L.T,_={};L.T=_;try{var E=i(p,l),j=L.S;j!==null&&j(_,E),a_(n,a,E)}catch(U){Yp(n,a,U)}finally{m!==null&&_.types!==null&&(m.types=_.types),L.T=m}}else try{m=i(p,l),a_(n,a,m)}catch(U){Yp(n,a,U)}}function a_(n,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){o_(n,a,l)},function(l){return Yp(n,a,l)}):o_(n,a,i)}function o_(n,a,i){a.status="fulfilled",a.value=i,i_(a),n.state=i,a=n.pending,a!==null&&(i=a.next,i===a?n.pending=null:(i=i.next,a.next=i,r_(n,i)))}function Yp(n,a,i){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=i,i_(a),a=a.next;while(a!==l)}n.action=null}function i_(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function s_(n,a){return a}function l_(n,a){if(Ze){var i=pt.formState;if(i!==null){e:{var l=je;if(Ze){if(mt){t:{for(var p=mt,m=Bn;p.nodeType!==8;){if(!m){p=null;break t}if(p=qn(p.nextSibling),p===null){p=null;break t}}m=p.data,p=m==="F!"||m==="F"?p:null}if(p){mt=qn(p.nextSibling),l=p.data==="F!";break e}}ya(l)}l=!1}l&&(a=i[0])}}return i=nn(),i.memoizedState=i.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s_,lastRenderedState:a},i.queue=l,i=k_.bind(null,je,l),l.dispatch=i,l=Zp(!1),m=eh.bind(null,je,!1,l.queue),l=nn(),p={state:a,dispatch:null,action:n,pending:null},l.queue=p,i=xN.bind(null,je,p,m,i),p.dispatch=i,l.memoizedState=n,[a,i,!1]}function c_(n){var a=Mt();return u_(a,lt,n)}function u_(n,a,i){if(a=Gp(n,a,s_)[0],n=eu(Pr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=rl(a)}catch(_){throw _===Ei?qc:_}else l=a;a=Mt();var p=a.queue,m=p.dispatch;return i!==a.memoizedState&&(je.flags|=2048,Ni(9,{destroy:void 0},CN.bind(null,p,i),null)),[l,m,n]}function CN(n,a){n.action=a}function d_(n){var a=Mt(),i=lt;if(i!==null)return u_(a,i,n);Mt(),a=a.memoizedState,i=Mt();var l=i.queue.dispatch;return i.memoizedState=n,[a,l,!1]}function Ni(n,a,i,l){return n={tag:n,create:i,deps:l,inst:a,next:null},a=je.updateQueue,a===null&&(a=Qc(),je.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=n.next=n:(l=i.next,i.next=n,n.next=l,a.lastEffect=n),n}function f_(){return Mt().memoizedState}function tu(n,a,i,l){var p=nn();je.flags|=n,p.memoizedState=Ni(1|a,{destroy:void 0},i,l===void 0?null:l)}function nu(n,a,i,l){var p=Mt();l=l===void 0?null:l;var m=p.memoizedState.inst;lt!==null&&l!==null&&zp(l,lt.memoizedState.deps)?p.memoizedState=Ni(a,m,i,l):(je.flags|=n,p.memoizedState=Ni(1|a,m,i,l))}function p_(n,a){tu(8390656,8,n,a)}function Wp(n,a){nu(2048,8,n,a)}function wN(n){je.flags|=4;var a=je.updateQueue;if(a===null)a=Qc(),je.updateQueue=a,a.events=[n];else{var i=a.events;i===null?a.events=[n]:i.push(n)}}function h_(n){var a=Mt().memoizedState;return wN({ref:a,nextImpl:n}),function(){if((Je&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}function m_(n,a){return nu(4,2,n,a)}function g_(n,a){return nu(4,4,n,a)}function y_(n,a){if(typeof a=="function"){n=n();var i=a(n);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function v_(n,a,i){i=i!=null?i.concat([n]):null,nu(4,4,y_.bind(null,a,n),i)}function Kp(){}function b_(n,a){var i=Mt();a=a===void 0?null:a;var l=i.memoizedState;return a!==null&&zp(a,l[1])?l[0]:(i.memoizedState=[n,a],n)}function __(n,a){var i=Mt();a=a===void 0?null:a;var l=i.memoizedState;if(a!==null&&zp(a,l[1]))return l[0];if(l=n(),So){qe(!0);try{n()}finally{qe(!1)}}return i.memoizedState=[l,a],l}function Xp(n,a,i){return i===void 0||(Dr&1073741824)!==0&&(Ge&261930)===0?n.memoizedState=a:(n.memoizedState=i,n=S1(),je.lanes|=n,Aa|=n,i)}function S_(n,a,i,l){return xn(i,a)?i:ki.current!==null?(n=Xp(n,i,l),xn(n,a)||(Ot=!0),n):(Dr&42)===0||(Dr&1073741824)!==0&&(Ge&261930)===0?(Ot=!0,n.memoizedState=i):(n=S1(),je.lanes|=n,Aa|=n,a)}function x_(n,a,i,l,p){var m=V.p;V.p=m!==0&&8>m?m:8;var _=L.T,E={};L.T=E,eh(n,!1,a,i);try{var j=p(),U=L.S;if(U!==null&&U(E,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var W=bN(j,l);al(n,a,W,Mn(n))}else al(n,a,l,Mn(n))}catch(X){al(n,a,{then:function(){},status:"rejected",reason:X},Mn())}finally{V.p=m,_!==null&&E.types!==null&&(_.types=E.types),L.T=_}}function EN(){}function Qp(n,a,i,l){if(n.tag!==5)throw Error(o(476));var p=C_(n).queue;x_(n,p,a,B,i===null?EN:function(){return w_(n),i(l)})}function C_(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pr,lastRenderedState:B},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pr,lastRenderedState:i},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function w_(n){var a=C_(n);a.next===null&&(a=n.alternate.memoizedState),al(n,a.next.queue,{},Mn())}function Jp(){return Vt(Sl)}function E_(){return Mt().memoizedState}function A_(){return Mt().memoizedState}function AN(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var i=Mn();n=_a(i);var l=Sa(a,n,i);l!==null&&(mn(l,a,i),Js(l,a,i)),a={cache:Mp()},n.payload=a;return}a=a.return}}function kN(n,a,i){var l=Mn();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ru(n)?M_(a,i):(i=yp(n,a,i,l),i!==null&&(mn(i,n,l),T_(i,a,l)))}function k_(n,a,i){var l=Mn();al(n,a,i,l)}function al(n,a,i,l){var p={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(ru(n))M_(a,p);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var _=a.lastRenderedState,E=m(_,i);if(p.hasEagerState=!0,p.eagerState=E,xn(E,_))return $c(n,a,p,0),pt===null&&Ic(),!1}catch{}finally{}if(i=yp(n,a,p,l),i!==null)return mn(i,n,l),T_(i,a,l),!0}return!1}function eh(n,a,i,l){if(l={lane:2,revertLane:Oh(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ru(n)){if(a)throw Error(o(479))}else a=yp(n,i,l,2),a!==null&&mn(a,n,2)}function ru(n){var a=n.alternate;return n===je||a!==null&&a===je}function M_(n,a){Mi=Kc=!0;var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}function T_(n,a,i){if((i&4194048)!==0){var l=a.lanes;l&=n.pendingLanes,i|=l,a.lanes=i,Db(n,i)}}var ol={readContext:Vt,use:Jc,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};ol.useEffectEvent=Ct;var N_={readContext:Vt,use:Jc,useCallback:function(n,a){return nn().memoizedState=[n,a===void 0?null:a],n},useContext:Vt,useEffect:p_,useImperativeHandle:function(n,a,i){i=i!=null?i.concat([n]):null,tu(4194308,4,y_.bind(null,a,n),i)},useLayoutEffect:function(n,a){return tu(4194308,4,n,a)},useInsertionEffect:function(n,a){tu(4,2,n,a)},useMemo:function(n,a){var i=nn();a=a===void 0?null:a;var l=n();if(So){qe(!0);try{n()}finally{qe(!1)}}return i.memoizedState=[l,a],l},useReducer:function(n,a,i){var l=nn();if(i!==void 0){var p=i(a);if(So){qe(!0);try{i(a)}finally{qe(!1)}}}else p=a;return l.memoizedState=l.baseState=p,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:p},l.queue=n,n=n.dispatch=kN.bind(null,je,n),[l.memoizedState,n]},useRef:function(n){var a=nn();return n={current:n},a.memoizedState=n},useState:function(n){n=Zp(n);var a=n.queue,i=k_.bind(null,je,a);return a.dispatch=i,[n.memoizedState,i]},useDebugValue:Kp,useDeferredValue:function(n,a){var i=nn();return Xp(i,n,a)},useTransition:function(){var n=Zp(!1);return n=x_.bind(null,je,n.queue,!0,!1),nn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,i){var l=je,p=nn();if(Ze){if(i===void 0)throw Error(o(407));i=i()}else{if(i=a(),pt===null)throw Error(o(349));(Ge&127)!==0||X0(l,a,i)}p.memoizedState=i;var m={value:i,getSnapshot:a};return p.queue=m,p_(J0.bind(null,l,m,n),[n]),l.flags|=2048,Ni(9,{destroy:void 0},Q0.bind(null,l,m,i,a),null),i},useId:function(){var n=nn(),a=pt.identifierPrefix;if(Ze){var i=fr,l=dr;i=(l&~(1<<32-Oe(l)-1)).toString(32)+i,a="_"+a+"R_"+i,i=Xc++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=_N++,a="_"+a+"r_"+i.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:Jp,useFormState:l_,useActionState:l_,useOptimistic:function(n){var a=nn();a.memoizedState=a.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=eh.bind(null,je,!0,i),i.dispatch=a,[n,a]},useMemoCache:qp,useCacheRefresh:function(){return nn().memoizedState=AN.bind(null,je)},useEffectEvent:function(n){var a=nn(),i={impl:n};return a.memoizedState=i,function(){if((Je&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},th={readContext:Vt,use:Jc,useCallback:b_,useContext:Vt,useEffect:Wp,useImperativeHandle:v_,useInsertionEffect:m_,useLayoutEffect:g_,useMemo:__,useReducer:eu,useRef:f_,useState:function(){return eu(Pr)},useDebugValue:Kp,useDeferredValue:function(n,a){var i=Mt();return S_(i,lt.memoizedState,n,a)},useTransition:function(){var n=eu(Pr)[0],a=Mt().memoizedState;return[typeof n=="boolean"?n:rl(n),a]},useSyncExternalStore:K0,useId:E_,useHostTransitionStatus:Jp,useFormState:c_,useActionState:c_,useOptimistic:function(n,a){var i=Mt();return n_(i,lt,n,a)},useMemoCache:qp,useCacheRefresh:A_};th.useEffectEvent=h_;var R_={readContext:Vt,use:Jc,useCallback:b_,useContext:Vt,useEffect:Wp,useImperativeHandle:v_,useInsertionEffect:m_,useLayoutEffect:g_,useMemo:__,useReducer:Vp,useRef:f_,useState:function(){return Vp(Pr)},useDebugValue:Kp,useDeferredValue:function(n,a){var i=Mt();return lt===null?Xp(i,n,a):S_(i,lt.memoizedState,n,a)},useTransition:function(){var n=Vp(Pr)[0],a=Mt().memoizedState;return[typeof n=="boolean"?n:rl(n),a]},useSyncExternalStore:K0,useId:E_,useHostTransitionStatus:Jp,useFormState:d_,useActionState:d_,useOptimistic:function(n,a){var i=Mt();return lt!==null?n_(i,lt,n,a):(i.baseState=n,[n,i.queue.dispatch])},useMemoCache:qp,useCacheRefresh:A_};R_.useEffectEvent=h_;function nh(n,a,i,l){a=n.memoizedState,i=i(l,a),i=i==null?a:v({},a,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var rh={enqueueSetState:function(n,a,i){n=n._reactInternals;var l=Mn(),p=_a(l);p.payload=a,i!=null&&(p.callback=i),a=Sa(n,p,l),a!==null&&(mn(a,n,l),Js(a,n,l))},enqueueReplaceState:function(n,a,i){n=n._reactInternals;var l=Mn(),p=_a(l);p.tag=1,p.payload=a,i!=null&&(p.callback=i),a=Sa(n,p,l),a!==null&&(mn(a,n,l),Js(a,n,l))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var i=Mn(),l=_a(i);l.tag=2,a!=null&&(l.callback=a),a=Sa(n,l,i),a!==null&&(mn(a,n,i),Js(a,n,i))}};function O_(n,a,i,l,p,m,_){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,m,_):a.prototype&&a.prototype.isPureReactComponent?!Gs(i,l)||!Gs(p,m):!0}function j_(n,a,i,l){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,l),a.state!==n&&rh.enqueueReplaceState(a,a.state,null)}function xo(n,a){var i=a;if("ref"in a){i={};for(var l in a)l!=="ref"&&(i[l]=a[l])}if(n=n.defaultProps){i===a&&(i=v({},i));for(var p in n)i[p]===void 0&&(i[p]=n[p])}return i}function D_(n){Pc(n)}function P_(n){console.error(n)}function I_(n){Pc(n)}function au(n,a){try{var i=n.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function $_(n,a,i){try{var l=n.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function ah(n,a,i){return i=_a(i),i.tag=3,i.payload={element:null},i.callback=function(){au(n,a)},i}function L_(n){return n=_a(n),n.tag=3,n}function z_(n,a,i,l){var p=i.type.getDerivedStateFromError;if(typeof p=="function"){var m=l.value;n.payload=function(){return p(m)},n.callback=function(){$_(a,i,l)}}var _=i.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(n.callback=function(){$_(a,i,l),typeof p!="function"&&(ka===null?ka=new Set([this]):ka.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function MN(n,a,i,l,p){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=i.alternate,a!==null&&xi(a,i,p,!0),i=wn.current,i!==null){switch(i.tag){case 31:case 13:return Fn===null?gu():i.alternate===null&&wt===0&&(wt=3),i.flags&=-257,i.flags|=65536,i.lanes=p,l===Gc?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([l]):a.add(l),Th(n,l,p)),!1;case 22:return i.flags|=65536,l===Gc?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([l]):i.add(l)),Th(n,l,p)),!1}throw Error(o(435,i.tag))}return Th(n,l,p),gu(),!1}if(Ze)return a=wn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=p,l!==Cp&&(n=Error(o(422),{cause:l}),Ys(zn(n,i)))):(l!==Cp&&(a=Error(o(423),{cause:l}),Ys(zn(a,i))),n=n.current.alternate,n.flags|=65536,p&=-p,n.lanes|=p,l=zn(l,i),p=ah(n.stateNode,l,p),Dp(n,p),wt!==4&&(wt=2)),!1;var m=Error(o(520),{cause:l});if(m=zn(m,i),pl===null?pl=[m]:pl.push(m),wt!==4&&(wt=2),a===null)return!0;l=zn(l,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,n=p&-p,i.lanes|=n,n=ah(i.stateNode,l,n),Dp(i,n),!1;case 1:if(a=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(ka===null||!ka.has(m))))return i.flags|=65536,p&=-p,i.lanes|=p,p=L_(p),z_(p,n,i,l),Dp(i,p),!1}i=i.return}while(i!==null);return!1}var oh=Error(o(461)),Ot=!1;function Zt(n,a,i,l){a.child=n===null?F0(a,null,i,l):_o(a,n.child,i,l)}function H_(n,a,i,l,p){i=i.render;var m=a.ref;if("ref"in l){var _={};for(var E in l)E!=="ref"&&(_[E]=l[E])}else _=l;return go(a),l=Hp(n,a,i,_,m,p),E=Up(),n!==null&&!Ot?(Bp(n,a,p),Ir(n,a,p)):(Ze&&E&&Sp(a),a.flags|=1,Zt(n,a,l,p),a.child)}function U_(n,a,i,l,p){if(n===null){var m=i.type;return typeof m=="function"&&!vp(m)&&m.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=m,B_(n,a,m,l,p)):(n=zc(i.type,null,l,a,a.mode,p),n.ref=a.ref,n.return=a,a.child=n)}if(m=n.child,!ph(n,p)){var _=m.memoizedProps;if(i=i.compare,i=i!==null?i:Gs,i(_,l)&&n.ref===a.ref)return Ir(n,a,p)}return a.flags|=1,n=Nr(m,l),n.ref=a.ref,n.return=a,a.child=n}function B_(n,a,i,l,p){if(n!==null){var m=n.memoizedProps;if(Gs(m,l)&&n.ref===a.ref)if(Ot=!1,a.pendingProps=l=m,ph(n,p))(n.flags&131072)!==0&&(Ot=!0);else return a.lanes=n.lanes,Ir(n,a,p)}return ih(n,a,i,l,p)}function F_(n,a,i,l){var p=l.children,m=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((a.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,n!==null){for(l=a.child=n.child,p=0;l!==null;)p=p|l.lanes|l.childLanes,l=l.sibling;l=p&~m}else l=0,a.child=null;return q_(n,a,m,i,l)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Fc(a,m!==null?m.cachePool:null),m!==null?V0(a,m):Ip(),Z0(a);else return l=a.lanes=536870912,q_(n,a,m!==null?m.baseLanes|i:i,i,l)}else m!==null?(Fc(a,m.cachePool),V0(a,m),Ca(),a.memoizedState=null):(n!==null&&Fc(a,null),Ip(),Ca());return Zt(n,a,p,i),a.child}function il(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function q_(n,a,i,l,p){var m=Np();return m=m===null?null:{parent:Nt._currentValue,pool:m},a.memoizedState={baseLanes:i,cachePool:m},n!==null&&Fc(a,null),Ip(),Z0(a),n!==null&&xi(n,a,l,!0),a.childLanes=p,null}function ou(n,a){return a=su({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function G_(n,a,i){return _o(a,n.child,null,i),n=ou(a,a.pendingProps),n.flags|=2,En(a),a.memoizedState=null,n}function TN(n,a,i){var l=a.pendingProps,p=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(Ze){if(l.mode==="hidden")return n=ou(a,l),a.lanes=536870912,il(null,n);if(Lp(a),(n=mt)?(n=rS(n,Bn),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:ma!==null?{id:dr,overflow:fr}:null,retryLane:536870912,hydrationErrors:null},i=M0(n),i.return=a,a.child=i,Gt=a,mt=null)):n=null,n===null)throw ya(a);return a.lanes=536870912,null}return ou(a,l)}var m=n.memoizedState;if(m!==null){var _=m.dehydrated;if(Lp(a),p)if(a.flags&256)a.flags&=-257,a=G_(n,a,i);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(o(558));else if(Ot||xi(n,a,i,!1),p=(i&n.childLanes)!==0,Ot||p){if(l=pt,l!==null&&(_=Pb(l,i),_!==0&&_!==m.retryLane))throw m.retryLane=_,fo(n,_),mn(l,n,_),oh;gu(),a=G_(n,a,i)}else n=m.treeContext,mt=qn(_.nextSibling),Gt=a,Ze=!0,ga=null,Bn=!1,n!==null&&R0(a,n),a=ou(a,l),a.flags|=4096;return a}return n=Nr(n.child,{mode:l.mode,children:l.children}),n.ref=a.ref,a.child=n,n.return=a,n}function iu(n,a){var i=a.ref;if(i===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(n===null||n.ref!==i)&&(a.flags|=4194816)}}function ih(n,a,i,l,p){return go(a),i=Hp(n,a,i,l,void 0,p),l=Up(),n!==null&&!Ot?(Bp(n,a,p),Ir(n,a,p)):(Ze&&l&&Sp(a),a.flags|=1,Zt(n,a,i,p),a.child)}function V_(n,a,i,l,p,m){return go(a),a.updateQueue=null,i=W0(a,l,i,p),Y0(n),l=Up(),n!==null&&!Ot?(Bp(n,a,m),Ir(n,a,m)):(Ze&&l&&Sp(a),a.flags|=1,Zt(n,a,i,m),a.child)}function Z_(n,a,i,l,p){if(go(a),a.stateNode===null){var m=vi,_=i.contextType;typeof _=="object"&&_!==null&&(m=Vt(_)),m=new i(l,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=rh,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=l,m.state=a.memoizedState,m.refs={},Op(a),_=i.contextType,m.context=typeof _=="object"&&_!==null?Vt(_):vi,m.state=a.memoizedState,_=i.getDerivedStateFromProps,typeof _=="function"&&(nh(a,i,_,l),m.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(_=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),_!==m.state&&rh.enqueueReplaceState(m,m.state,null),tl(a,l,m,p),el(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(n===null){m=a.stateNode;var E=a.memoizedProps,j=xo(i,E);m.props=j;var U=m.context,W=i.contextType;_=vi,typeof W=="object"&&W!==null&&(_=Vt(W));var X=i.getDerivedStateFromProps;W=typeof X=="function"||typeof m.getSnapshotBeforeUpdate=="function",E=a.pendingProps!==E,W||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(E||U!==_)&&j_(a,m,l,_),ba=!1;var F=a.memoizedState;m.state=F,tl(a,l,m,p),el(),U=a.memoizedState,E||F!==U||ba?(typeof X=="function"&&(nh(a,i,X,l),U=a.memoizedState),(j=ba||O_(a,i,j,l,F,U,_))?(W||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=U),m.props=l,m.state=U,m.context=_,l=j):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{m=a.stateNode,jp(n,a),_=a.memoizedProps,W=xo(i,_),m.props=W,X=a.pendingProps,F=m.context,U=i.contextType,j=vi,typeof U=="object"&&U!==null&&(j=Vt(U)),E=i.getDerivedStateFromProps,(U=typeof E=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(_!==X||F!==j)&&j_(a,m,l,j),ba=!1,F=a.memoizedState,m.state=F,tl(a,l,m,p),el();var G=a.memoizedState;_!==X||F!==G||ba||n!==null&&n.dependencies!==null&&Uc(n.dependencies)?(typeof E=="function"&&(nh(a,i,E,l),G=a.memoizedState),(W=ba||O_(a,i,W,l,F,G,j)||n!==null&&n.dependencies!==null&&Uc(n.dependencies))?(U||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,G,j),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,G,j)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||_===n.memoizedProps&&F===n.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||_===n.memoizedProps&&F===n.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=G),m.props=l,m.state=G,m.context=j,l=W):(typeof m.componentDidUpdate!="function"||_===n.memoizedProps&&F===n.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||_===n.memoizedProps&&F===n.memoizedState||(a.flags|=1024),l=!1)}return m=l,iu(n,a),l=(a.flags&128)!==0,m||l?(m=a.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,n!==null&&l?(a.child=_o(a,n.child,null,p),a.child=_o(a,null,i,p)):Zt(n,a,i,p),a.memoizedState=m.state,n=a.child):n=Ir(n,a,p),n}function Y_(n,a,i,l){return ho(),a.flags|=256,Zt(n,a,i,l),a.child}var sh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lh(n){return{baseLanes:n,cachePool:$0()}}function ch(n,a,i){return n=n!==null?n.childLanes&~i:0,a&&(n|=kn),n}function W_(n,a,i){var l=a.pendingProps,p=!1,m=(a.flags&128)!==0,_;if((_=m)||(_=n!==null&&n.memoizedState===null?!1:(kt.current&2)!==0),_&&(p=!0,a.flags&=-129),_=(a.flags&32)!==0,a.flags&=-33,n===null){if(Ze){if(p?xa(a):Ca(),(n=mt)?(n=rS(n,Bn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:ma!==null?{id:dr,overflow:fr}:null,retryLane:536870912,hydrationErrors:null},i=M0(n),i.return=a,a.child=i,Gt=a,mt=null)):n=null,n===null)throw ya(a);return Gh(n)?a.lanes=32:a.lanes=536870912,null}var E=l.children;return l=l.fallback,p?(Ca(),p=a.mode,E=su({mode:"hidden",children:E},p),l=po(l,p,i,null),E.return=a,l.return=a,E.sibling=l,a.child=E,l=a.child,l.memoizedState=lh(i),l.childLanes=ch(n,_,i),a.memoizedState=sh,il(null,l)):(xa(a),uh(a,E))}var j=n.memoizedState;if(j!==null&&(E=j.dehydrated,E!==null)){if(m)a.flags&256?(xa(a),a.flags&=-257,a=dh(n,a,i)):a.memoizedState!==null?(Ca(),a.child=n.child,a.flags|=128,a=null):(Ca(),E=l.fallback,p=a.mode,l=su({mode:"visible",children:l.children},p),E=po(E,p,i,null),E.flags|=2,l.return=a,E.return=a,l.sibling=E,a.child=l,_o(a,n.child,null,i),l=a.child,l.memoizedState=lh(i),l.childLanes=ch(n,_,i),a.memoizedState=sh,a=il(null,l));else if(xa(a),Gh(E)){if(_=E.nextSibling&&E.nextSibling.dataset,_)var U=_.dgst;_=U,l=Error(o(419)),l.stack="",l.digest=_,Ys({value:l,source:null,stack:null}),a=dh(n,a,i)}else if(Ot||xi(n,a,i,!1),_=(i&n.childLanes)!==0,Ot||_){if(_=pt,_!==null&&(l=Pb(_,i),l!==0&&l!==j.retryLane))throw j.retryLane=l,fo(n,l),mn(_,n,l),oh;qh(E)||gu(),a=dh(n,a,i)}else qh(E)?(a.flags|=192,a.child=n.child,a=null):(n=j.treeContext,mt=qn(E.nextSibling),Gt=a,Ze=!0,ga=null,Bn=!1,n!==null&&R0(a,n),a=uh(a,l.children),a.flags|=4096);return a}return p?(Ca(),E=l.fallback,p=a.mode,j=n.child,U=j.sibling,l=Nr(j,{mode:"hidden",children:l.children}),l.subtreeFlags=j.subtreeFlags&65011712,U!==null?E=Nr(U,E):(E=po(E,p,i,null),E.flags|=2),E.return=a,l.return=a,l.sibling=E,a.child=l,il(null,l),l=a.child,E=n.child.memoizedState,E===null?E=lh(i):(p=E.cachePool,p!==null?(j=Nt._currentValue,p=p.parent!==j?{parent:j,pool:j}:p):p=$0(),E={baseLanes:E.baseLanes|i,cachePool:p}),l.memoizedState=E,l.childLanes=ch(n,_,i),a.memoizedState=sh,il(n.child,l)):(xa(a),i=n.child,n=i.sibling,i=Nr(i,{mode:"visible",children:l.children}),i.return=a,i.sibling=null,n!==null&&(_=a.deletions,_===null?(a.deletions=[n],a.flags|=16):_.push(n)),a.child=i,a.memoizedState=null,i)}function uh(n,a){return a=su({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function su(n,a){return n=Cn(22,n,null,a),n.lanes=0,n}function dh(n,a,i){return _o(a,n.child,null,i),n=uh(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function K_(n,a,i){n.lanes|=a;var l=n.alternate;l!==null&&(l.lanes|=a),Ap(n.return,a,i)}function fh(n,a,i,l,p,m){var _=n.memoizedState;_===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:p,treeForkCount:m}:(_.isBackwards=a,_.rendering=null,_.renderingStartTime=0,_.last=l,_.tail=i,_.tailMode=p,_.treeForkCount=m)}function X_(n,a,i){var l=a.pendingProps,p=l.revealOrder,m=l.tail;l=l.children;var _=kt.current,E=(_&2)!==0;if(E?(_=_&1|2,a.flags|=128):_&=1,ee(kt,_),Zt(n,a,l,i),l=Ze?Zs:0,!E&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&K_(n,i,a);else if(n.tag===19)K_(n,i,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(p){case"forwards":for(i=a.child,p=null;i!==null;)n=i.alternate,n!==null&&Wc(n)===null&&(p=i),i=i.sibling;i=p,i===null?(p=a.child,a.child=null):(p=i.sibling,i.sibling=null),fh(a,!1,p,i,m,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,p=a.child,a.child=null;p!==null;){if(n=p.alternate,n!==null&&Wc(n)===null){a.child=p;break}n=p.sibling,p.sibling=i,i=p,p=n}fh(a,!0,i,null,m,l);break;case"together":fh(a,!1,null,null,void 0,l);break;default:a.memoizedState=null}return a.child}function Ir(n,a,i){if(n!==null&&(a.dependencies=n.dependencies),Aa|=a.lanes,(i&a.childLanes)===0)if(n!==null){if(xi(n,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(o(153));if(a.child!==null){for(n=a.child,i=Nr(n,n.pendingProps),a.child=i,i.return=a;n.sibling!==null;)n=n.sibling,i=i.sibling=Nr(n,n.pendingProps),i.return=a;i.sibling=null}return a.child}function ph(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Uc(n)))}function NN(n,a,i){switch(a.tag){case 3:de(a,a.stateNode.containerInfo),va(a,Nt,n.memoizedState.cache),ho();break;case 27:case 5:$e(a);break;case 4:de(a,a.stateNode.containerInfo);break;case 10:va(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Lp(a),null;break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(xa(a),a.flags|=128,null):(i&a.child.childLanes)!==0?W_(n,a,i):(xa(a),n=Ir(n,a,i),n!==null?n.sibling:null);xa(a);break;case 19:var p=(n.flags&128)!==0;if(l=(i&a.childLanes)!==0,l||(xi(n,a,i,!1),l=(i&a.childLanes)!==0),p){if(l)return X_(n,a,i);a.flags|=128}if(p=a.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),ee(kt,kt.current),l)break;return null;case 22:return a.lanes=0,F_(n,a,i,a.pendingProps);case 24:va(a,Nt,n.memoizedState.cache)}return Ir(n,a,i)}function Q_(n,a,i){if(n!==null)if(n.memoizedProps!==a.pendingProps)Ot=!0;else{if(!ph(n,i)&&(a.flags&128)===0)return Ot=!1,NN(n,a,i);Ot=(n.flags&131072)!==0}else Ot=!1,Ze&&(a.flags&1048576)!==0&&N0(a,Zs,a.index);switch(a.lanes=0,a.tag){case 16:e:{var l=a.pendingProps;if(n=vo(a.elementType),a.type=n,typeof n=="function")vp(n)?(l=xo(n,l),a.tag=1,a=Z_(null,a,n,l,i)):(a.tag=0,a=ih(null,a,n,l,i));else{if(n!=null){var p=n.$$typeof;if(p===N){a.tag=11,a=H_(null,a,n,l,i);break e}else if(p===I){a.tag=14,a=U_(null,a,n,l,i);break e}}throw a=ue(n)||n,Error(o(306,a,""))}}return a;case 0:return ih(n,a,a.type,a.pendingProps,i);case 1:return l=a.type,p=xo(l,a.pendingProps),Z_(n,a,l,p,i);case 3:e:{if(de(a,a.stateNode.containerInfo),n===null)throw Error(o(387));l=a.pendingProps;var m=a.memoizedState;p=m.element,jp(n,a),tl(a,l,null,i);var _=a.memoizedState;if(l=_.cache,va(a,Nt,l),l!==m.cache&&kp(a,[Nt],i,!0),el(),l=_.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:_.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=Y_(n,a,l,i);break e}else if(l!==p){p=zn(Error(o(424)),a),Ys(p),a=Y_(n,a,l,i);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(mt=qn(n.firstChild),Gt=a,Ze=!0,ga=null,Bn=!0,i=F0(a,null,l,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(ho(),l===p){a=Ir(n,a,i);break e}Zt(n,a,l,i)}a=a.child}return a;case 26:return iu(n,a),n===null?(i=cS(a.type,null,a.pendingProps,null))?a.memoizedState=i:Ze||(i=a.type,n=a.pendingProps,l=Cu(Ee.current).createElement(i),l[qt]=a,l[cn]=n,Yt(l,i,n),Ht(l),a.stateNode=l):a.memoizedState=cS(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return $e(a),n===null&&Ze&&(l=a.stateNode=iS(a.type,a.pendingProps,Ee.current),Gt=a,Bn=!0,p=mt,Ra(a.type)?(Vh=p,mt=qn(l.firstChild)):mt=p),Zt(n,a,a.pendingProps.children,i),iu(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&Ze&&((p=l=mt)&&(l=iR(l,a.type,a.pendingProps,Bn),l!==null?(a.stateNode=l,Gt=a,mt=qn(l.firstChild),Bn=!1,p=!0):p=!1),p||ya(a)),$e(a),p=a.type,m=a.pendingProps,_=n!==null?n.memoizedProps:null,l=m.children,Uh(p,m)?l=null:_!==null&&Uh(p,_)&&(a.flags|=32),a.memoizedState!==null&&(p=Hp(n,a,SN,null,null,i),Sl._currentValue=p),iu(n,a),Zt(n,a,l,i),a.child;case 6:return n===null&&Ze&&((n=i=mt)&&(i=sR(i,a.pendingProps,Bn),i!==null?(a.stateNode=i,Gt=a,mt=null,n=!0):n=!1),n||ya(a)),null;case 13:return W_(n,a,i);case 4:return de(a,a.stateNode.containerInfo),l=a.pendingProps,n===null?a.child=_o(a,null,l,i):Zt(n,a,l,i),a.child;case 11:return H_(n,a,a.type,a.pendingProps,i);case 7:return Zt(n,a,a.pendingProps,i),a.child;case 8:return Zt(n,a,a.pendingProps.children,i),a.child;case 12:return Zt(n,a,a.pendingProps.children,i),a.child;case 10:return l=a.pendingProps,va(a,a.type,l.value),Zt(n,a,l.children,i),a.child;case 9:return p=a.type._context,l=a.pendingProps.children,go(a),p=Vt(p),l=l(p),a.flags|=1,Zt(n,a,l,i),a.child;case 14:return U_(n,a,a.type,a.pendingProps,i);case 15:return B_(n,a,a.type,a.pendingProps,i);case 19:return X_(n,a,i);case 31:return TN(n,a,i);case 22:return F_(n,a,i,a.pendingProps);case 24:return go(a),l=Vt(Nt),n===null?(p=Np(),p===null&&(p=pt,m=Mp(),p.pooledCache=m,m.refCount++,m!==null&&(p.pooledCacheLanes|=i),p=m),a.memoizedState={parent:l,cache:p},Op(a),va(a,Nt,p)):((n.lanes&i)!==0&&(jp(n,a),tl(a,null,null,i),el()),p=n.memoizedState,m=a.memoizedState,p.parent!==l?(p={parent:l,cache:l},a.memoizedState=p,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=p),va(a,Nt,l)):(l=m.cache,va(a,Nt,l),l!==p.cache&&kp(a,[Nt],i,!0))),Zt(n,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(o(156,a.tag))}function $r(n){n.flags|=4}function hh(n,a,i,l,p){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(p&335544128)===p)if(n.stateNode.complete)n.flags|=8192;else if(E1())n.flags|=8192;else throw bo=Gc,Rp}else n.flags&=-16777217}function J_(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!hS(a))if(E1())n.flags|=8192;else throw bo=Gc,Rp}function lu(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Ob():536870912,n.lanes|=a,Di|=a)}function sl(n,a){if(!Ze)switch(n.tailMode){case"hidden":a=n.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function gt(n){var a=n.alternate!==null&&n.alternate.child===n.child,i=0,l=0;if(a)for(var p=n.child;p!==null;)i|=p.lanes|p.childLanes,l|=p.subtreeFlags&65011712,l|=p.flags&65011712,p.return=n,p=p.sibling;else for(p=n.child;p!==null;)i|=p.lanes|p.childLanes,l|=p.subtreeFlags,l|=p.flags,p.return=n,p=p.sibling;return n.subtreeFlags|=l,n.childLanes=i,a}function RN(n,a,i){var l=a.pendingProps;switch(xp(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(a),null;case 1:return gt(a),null;case 3:return i=a.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),jr(Nt),he(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(Si(a)?$r(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,wp())),gt(a),null;case 26:var p=a.type,m=a.memoizedState;return n===null?($r(a),m!==null?(gt(a),J_(a,m)):(gt(a),hh(a,p,null,l,i))):m?m!==n.memoizedState?($r(a),gt(a),J_(a,m)):(gt(a),a.flags&=-16777217):(n=n.memoizedProps,n!==l&&$r(a),gt(a),hh(a,p,n,l,i)),null;case 27:if(De(a),i=Ee.current,p=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&$r(a);else{if(!l){if(a.stateNode===null)throw Error(o(166));return gt(a),null}n=oe.current,Si(a)?O0(a):(n=iS(p,l,i),a.stateNode=n,$r(a))}return gt(a),null;case 5:if(De(a),p=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&$r(a);else{if(!l){if(a.stateNode===null)throw Error(o(166));return gt(a),null}if(m=oe.current,Si(a))O0(a);else{var _=Cu(Ee.current);switch(m){case 1:m=_.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:m=_.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":m=_.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":m=_.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":m=_.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof l.is=="string"?_.createElement("select",{is:l.is}):_.createElement("select"),l.multiple?m.multiple=!0:l.size&&(m.size=l.size);break;default:m=typeof l.is=="string"?_.createElement(p,{is:l.is}):_.createElement(p)}}m[qt]=a,m[cn]=l;e:for(_=a.child;_!==null;){if(_.tag===5||_.tag===6)m.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=m;e:switch(Yt(m,p,l),p){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&$r(a)}}return gt(a),hh(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,i),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==l&&$r(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(o(166));if(n=Ee.current,Si(a)){if(n=a.stateNode,i=a.memoizedProps,l=null,p=Gt,p!==null)switch(p.tag){case 27:case 5:l=p.memoizedProps}n[qt]=a,n=!!(n.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||W1(n.nodeValue,i)),n||ya(a,!0)}else n=Cu(n).createTextNode(l),n[qt]=a,a.stateNode=n}return gt(a),null;case 31:if(i=a.memoizedState,n===null||n.memoizedState!==null){if(l=Si(a),i!==null){if(n===null){if(!l)throw Error(o(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(557));n[qt]=a}else ho(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;gt(a),n=!1}else i=wp(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=i),n=!0;if(!n)return a.flags&256?(En(a),a):(En(a),null);if((a.flags&128)!==0)throw Error(o(558))}return gt(a),null;case 13:if(l=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(p=Si(a),l!==null&&l.dehydrated!==null){if(n===null){if(!p)throw Error(o(318));if(p=a.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(o(317));p[qt]=a}else ho(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;gt(a),p=!1}else p=wp(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=p),p=!0;if(!p)return a.flags&256?(En(a),a):(En(a),null)}return En(a),(a.flags&128)!==0?(a.lanes=i,a):(i=l!==null,n=n!==null&&n.memoizedState!==null,i&&(l=a.child,p=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(p=l.alternate.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==p&&(l.flags|=2048)),i!==n&&i&&(a.child.flags|=8192),lu(a,a.updateQueue),gt(a),null);case 4:return he(),n===null&&Ih(a.stateNode.containerInfo),gt(a),null;case 10:return jr(a.type),gt(a),null;case 19:if(q(kt),l=a.memoizedState,l===null)return gt(a),null;if(p=(a.flags&128)!==0,m=l.rendering,m===null)if(p)sl(l,!1);else{if(wt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(m=Wc(n),m!==null){for(a.flags|=128,sl(l,!1),n=m.updateQueue,a.updateQueue=n,lu(a,n),a.subtreeFlags=0,n=i,i=a.child;i!==null;)k0(i,n),i=i.sibling;return ee(kt,kt.current&1|2),Ze&&Rr(a,l.treeForkCount),a.child}n=n.sibling}l.tail!==null&&Tt()>pu&&(a.flags|=128,p=!0,sl(l,!1),a.lanes=4194304)}else{if(!p)if(n=Wc(m),n!==null){if(a.flags|=128,p=!0,n=n.updateQueue,a.updateQueue=n,lu(a,n),sl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!m.alternate&&!Ze)return gt(a),null}else 2*Tt()-l.renderingStartTime>pu&&i!==536870912&&(a.flags|=128,p=!0,sl(l,!1),a.lanes=4194304);l.isBackwards?(m.sibling=a.child,a.child=m):(n=l.last,n!==null?n.sibling=m:a.child=m,l.last=m)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=Tt(),n.sibling=null,i=kt.current,ee(kt,p?i&1|2:i&1),Ze&&Rr(a,l.treeForkCount),n):(gt(a),null);case 22:case 23:return En(a),$p(),l=a.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(i&536870912)!==0&&(a.flags&128)===0&&(gt(a),a.subtreeFlags&6&&(a.flags|=8192)):gt(a),i=a.updateQueue,i!==null&&lu(a,i.retryQueue),i=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==i&&(a.flags|=2048),n!==null&&q(yo),null;case 24:return i=null,n!==null&&(i=n.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),jr(Nt),gt(a),null;case 25:return null;case 30:return null}throw Error(o(156,a.tag))}function ON(n,a){switch(xp(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return jr(Nt),he(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return De(a),null;case 31:if(a.memoizedState!==null){if(En(a),a.alternate===null)throw Error(o(340));ho()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(En(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(o(340));ho()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return q(kt),null;case 4:return he(),null;case 10:return jr(a.type),null;case 22:case 23:return En(a),$p(),n!==null&&q(yo),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return jr(Nt),null;case 25:return null;default:return null}}function e1(n,a){switch(xp(a),a.tag){case 3:jr(Nt),he();break;case 26:case 27:case 5:De(a);break;case 4:he();break;case 31:a.memoizedState!==null&&En(a);break;case 13:En(a);break;case 19:q(kt);break;case 10:jr(a.type);break;case 22:case 23:En(a),$p(),n!==null&&q(yo);break;case 24:jr(Nt)}}function ll(n,a){try{var i=a.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var p=l.next;i=p;do{if((i.tag&n)===n){l=void 0;var m=i.create,_=i.inst;l=m(),_.destroy=l}i=i.next}while(i!==p)}}catch(E){st(a,a.return,E)}}function wa(n,a,i){try{var l=a.updateQueue,p=l!==null?l.lastEffect:null;if(p!==null){var m=p.next;l=m;do{if((l.tag&n)===n){var _=l.inst,E=_.destroy;if(E!==void 0){_.destroy=void 0,p=a;var j=i,U=E;try{U()}catch(W){st(p,j,W)}}}l=l.next}while(l!==m)}}catch(W){st(a,a.return,W)}}function t1(n){var a=n.updateQueue;if(a!==null){var i=n.stateNode;try{G0(a,i)}catch(l){st(n,n.return,l)}}}function n1(n,a,i){i.props=xo(n.type,n.memoizedProps),i.state=n.memoizedState;try{i.componentWillUnmount()}catch(l){st(n,a,l)}}function cl(n,a){try{var i=n.ref;if(i!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof i=="function"?n.refCleanup=i(l):i.current=l}}catch(p){st(n,a,p)}}function pr(n,a){var i=n.ref,l=n.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(p){st(n,a,p)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(p){st(n,a,p)}else i.current=null}function r1(n){var a=n.type,i=n.memoizedProps,l=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(p){st(n,n.return,p)}}function mh(n,a,i){try{var l=n.stateNode;eR(l,n.type,i,a),l[cn]=a}catch(p){st(n,n.return,p)}}function a1(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Ra(n.type)||n.tag===4}function gh(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||a1(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Ra(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function yh(n,a,i){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(n,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(n),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=Mr));else if(l!==4&&(l===27&&Ra(n.type)&&(i=n.stateNode,a=null),n=n.child,n!==null))for(yh(n,a,i),n=n.sibling;n!==null;)yh(n,a,i),n=n.sibling}function cu(n,a,i){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?i.insertBefore(n,a):i.appendChild(n);else if(l!==4&&(l===27&&Ra(n.type)&&(i=n.stateNode),n=n.child,n!==null))for(cu(n,a,i),n=n.sibling;n!==null;)cu(n,a,i),n=n.sibling}function o1(n){var a=n.stateNode,i=n.memoizedProps;try{for(var l=n.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);Yt(a,l,i),a[qt]=n,a[cn]=i}catch(m){st(n,n.return,m)}}var Lr=!1,jt=!1,vh=!1,i1=typeof WeakSet=="function"?WeakSet:Set,Ut=null;function jN(n,a){if(n=n.containerInfo,zh=Nu,n=v0(n),dp(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{i=(i=n.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var p=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var _=0,E=-1,j=-1,U=0,W=0,X=n,F=null;t:for(;;){for(var G;X!==i||p!==0&&X.nodeType!==3||(E=_+p),X!==m||l!==0&&X.nodeType!==3||(j=_+l),X.nodeType===3&&(_+=X.nodeValue.length),(G=X.firstChild)!==null;)F=X,X=G;for(;;){if(X===n)break t;if(F===i&&++U===p&&(E=_),F===m&&++W===l&&(j=_),(G=X.nextSibling)!==null)break;X=F,F=X.parentNode}X=G}i=E===-1||j===-1?null:{start:E,end:j}}else i=null}i=i||{start:0,end:0}}else i=null;for(Hh={focusedElem:n,selectionRange:i},Nu=!1,Ut=a;Ut!==null;)if(a=Ut,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,Ut=n;else for(;Ut!==null;){switch(a=Ut,m=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(i=0;i<n.length;i++)p=n[i],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&m!==null){n=void 0,i=a,p=m.memoizedProps,m=m.memoizedState,l=i.stateNode;try{var fe=xo(i.type,p);n=l.getSnapshotBeforeUpdate(fe,m),l.__reactInternalSnapshotBeforeUpdate=n}catch(Ce){st(i,i.return,Ce)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,i=n.nodeType,i===9)Fh(n);else if(i===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Fh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(o(163))}if(n=a.sibling,n!==null){n.return=a.return,Ut=n;break}Ut=a.return}}function s1(n,a,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Hr(n,i),l&4&&ll(5,i);break;case 1:if(Hr(n,i),l&4)if(n=i.stateNode,a===null)try{n.componentDidMount()}catch(_){st(i,i.return,_)}else{var p=xo(i.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(p,a,n.__reactInternalSnapshotBeforeUpdate)}catch(_){st(i,i.return,_)}}l&64&&t1(i),l&512&&cl(i,i.return);break;case 3:if(Hr(n,i),l&64&&(n=i.updateQueue,n!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{G0(n,a)}catch(_){st(i,i.return,_)}}break;case 27:a===null&&l&4&&o1(i);case 26:case 5:Hr(n,i),a===null&&l&4&&r1(i),l&512&&cl(i,i.return);break;case 12:Hr(n,i);break;case 31:Hr(n,i),l&4&&u1(n,i);break;case 13:Hr(n,i),l&4&&d1(n,i),l&64&&(n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(i=BN.bind(null,i),lR(n,i))));break;case 22:if(l=i.memoizedState!==null||Lr,!l){a=a!==null&&a.memoizedState!==null||jt,p=Lr;var m=jt;Lr=l,(jt=a)&&!m?Ur(n,i,(i.subtreeFlags&8772)!==0):Hr(n,i),Lr=p,jt=m}break;case 30:break;default:Hr(n,i)}}function l1(n){var a=n.alternate;a!==null&&(n.alternate=null,l1(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&Yf(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var bt=null,dn=!1;function zr(n,a,i){for(i=i.child;i!==null;)c1(n,a,i),i=i.sibling}function c1(n,a,i){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(Me,i)}catch{}switch(i.tag){case 26:jt||pr(i,a),zr(n,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:jt||pr(i,a);var l=bt,p=dn;Ra(i.type)&&(bt=i.stateNode,dn=!1),zr(n,a,i),vl(i.stateNode),bt=l,dn=p;break;case 5:jt||pr(i,a);case 6:if(l=bt,p=dn,bt=null,zr(n,a,i),bt=l,dn=p,bt!==null)if(dn)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(i.stateNode)}catch(m){st(i,a,m)}else try{bt.removeChild(i.stateNode)}catch(m){st(i,a,m)}break;case 18:bt!==null&&(dn?(n=bt,tS(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,i.stateNode),Bi(n)):tS(bt,i.stateNode));break;case 4:l=bt,p=dn,bt=i.stateNode.containerInfo,dn=!0,zr(n,a,i),bt=l,dn=p;break;case 0:case 11:case 14:case 15:wa(2,i,a),jt||wa(4,i,a),zr(n,a,i);break;case 1:jt||(pr(i,a),l=i.stateNode,typeof l.componentWillUnmount=="function"&&n1(i,a,l)),zr(n,a,i);break;case 21:zr(n,a,i);break;case 22:jt=(l=jt)||i.memoizedState!==null,zr(n,a,i),jt=l;break;default:zr(n,a,i)}}function u1(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Bi(n)}catch(i){st(a,a.return,i)}}}function d1(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Bi(n)}catch(i){st(a,a.return,i)}}function DN(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new i1),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new i1),a;default:throw Error(o(435,n.tag))}}function uu(n,a){var i=DN(n);a.forEach(function(l){if(!i.has(l)){i.add(l);var p=FN.bind(null,n,l);l.then(p,p)}})}function fn(n,a){var i=a.deletions;if(i!==null)for(var l=0;l<i.length;l++){var p=i[l],m=n,_=a,E=_;e:for(;E!==null;){switch(E.tag){case 27:if(Ra(E.type)){bt=E.stateNode,dn=!1;break e}break;case 5:bt=E.stateNode,dn=!1;break e;case 3:case 4:bt=E.stateNode.containerInfo,dn=!0;break e}E=E.return}if(bt===null)throw Error(o(160));c1(m,_,p),bt=null,dn=!1,m=p.alternate,m!==null&&(m.return=null),p.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)f1(a,n),a=a.sibling}var er=null;function f1(n,a){var i=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:fn(a,n),pn(n),l&4&&(wa(3,n,n.return),ll(3,n),wa(5,n,n.return));break;case 1:fn(a,n),pn(n),l&512&&(jt||i===null||pr(i,i.return)),l&64&&Lr&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(i=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var p=er;if(fn(a,n),pn(n),l&512&&(jt||i===null||pr(i,i.return)),l&4){var m=i!==null?i.memoizedState:null;if(l=n.memoizedState,i===null)if(l===null)if(n.stateNode===null){e:{l=n.type,i=n.memoizedProps,p=p.ownerDocument||p;t:switch(l){case"title":m=p.getElementsByTagName("title")[0],(!m||m[Is]||m[qt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=p.createElement(l),p.head.insertBefore(m,p.querySelector("head > title"))),Yt(m,l,i),m[qt]=n,Ht(m),l=m;break e;case"link":var _=fS("link","href",p).get(l+(i.href||""));if(_){for(var E=0;E<_.length;E++)if(m=_[E],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){_.splice(E,1);break t}}m=p.createElement(l),Yt(m,l,i),p.head.appendChild(m);break;case"meta":if(_=fS("meta","content",p).get(l+(i.content||""))){for(E=0;E<_.length;E++)if(m=_[E],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){_.splice(E,1);break t}}m=p.createElement(l),Yt(m,l,i),p.head.appendChild(m);break;default:throw Error(o(468,l))}m[qt]=n,Ht(m),l=m}n.stateNode=l}else pS(p,n.type,n.stateNode);else n.stateNode=dS(p,l,n.memoizedProps);else m!==l?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,l===null?pS(p,n.type,n.stateNode):dS(p,l,n.memoizedProps)):l===null&&n.stateNode!==null&&mh(n,n.memoizedProps,i.memoizedProps)}break;case 27:fn(a,n),pn(n),l&512&&(jt||i===null||pr(i,i.return)),i!==null&&l&4&&mh(n,n.memoizedProps,i.memoizedProps);break;case 5:if(fn(a,n),pn(n),l&512&&(jt||i===null||pr(i,i.return)),n.flags&32){p=n.stateNode;try{di(p,"")}catch(fe){st(n,n.return,fe)}}l&4&&n.stateNode!=null&&(p=n.memoizedProps,mh(n,p,i!==null?i.memoizedProps:p)),l&1024&&(vh=!0);break;case 6:if(fn(a,n),pn(n),l&4){if(n.stateNode===null)throw Error(o(162));l=n.memoizedProps,i=n.stateNode;try{i.nodeValue=l}catch(fe){st(n,n.return,fe)}}break;case 3:if(Au=null,p=er,er=wu(a.containerInfo),fn(a,n),er=p,pn(n),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Bi(a.containerInfo)}catch(fe){st(n,n.return,fe)}vh&&(vh=!1,p1(n));break;case 4:l=er,er=wu(n.stateNode.containerInfo),fn(a,n),pn(n),er=l;break;case 12:fn(a,n),pn(n);break;case 31:fn(a,n),pn(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,uu(n,l)));break;case 13:fn(a,n),pn(n),n.child.flags&8192&&n.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(fu=Tt()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,uu(n,l)));break;case 22:p=n.memoizedState!==null;var j=i!==null&&i.memoizedState!==null,U=Lr,W=jt;if(Lr=U||p,jt=W||j,fn(a,n),jt=W,Lr=U,pn(n),l&8192)e:for(a=n.stateNode,a._visibility=p?a._visibility&-2:a._visibility|1,p&&(i===null||j||Lr||jt||Co(n)),i=null,a=n;;){if(a.tag===5||a.tag===26){if(i===null){j=i=a;try{if(m=j.stateNode,p)_=m.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{E=j.stateNode;var X=j.memoizedProps.style,F=X!=null&&X.hasOwnProperty("display")?X.display:null;E.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(fe){st(j,j.return,fe)}}}else if(a.tag===6){if(i===null){j=a;try{j.stateNode.nodeValue=p?"":j.memoizedProps}catch(fe){st(j,j.return,fe)}}}else if(a.tag===18){if(i===null){j=a;try{var G=j.stateNode;p?nS(G,!0):nS(j.stateNode,!1)}catch(fe){st(j,j.return,fe)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=n.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,uu(n,i))));break;case 19:fn(a,n),pn(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,uu(n,l)));break;case 30:break;case 21:break;default:fn(a,n),pn(n)}}function pn(n){var a=n.flags;if(a&2){try{for(var i,l=n.return;l!==null;){if(a1(l)){i=l;break}l=l.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var p=i.stateNode,m=gh(n);cu(n,m,p);break;case 5:var _=i.stateNode;i.flags&32&&(di(_,""),i.flags&=-33);var E=gh(n);cu(n,E,_);break;case 3:case 4:var j=i.stateNode.containerInfo,U=gh(n);yh(n,U,j);break;default:throw Error(o(161))}}catch(W){st(n,n.return,W)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function p1(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;p1(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Hr(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)s1(n,a.alternate,a),a=a.sibling}function Co(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:wa(4,a,a.return),Co(a);break;case 1:pr(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&n1(a,a.return,i),Co(a);break;case 27:vl(a.stateNode);case 26:case 5:pr(a,a.return),Co(a);break;case 22:a.memoizedState===null&&Co(a);break;case 30:Co(a);break;default:Co(a)}n=n.sibling}}function Ur(n,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,p=n,m=a,_=m.flags;switch(m.tag){case 0:case 11:case 15:Ur(p,m,i),ll(4,m);break;case 1:if(Ur(p,m,i),l=m,p=l.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(U){st(l,l.return,U)}if(l=m,p=l.updateQueue,p!==null){var E=l.stateNode;try{var j=p.shared.hiddenCallbacks;if(j!==null)for(p.shared.hiddenCallbacks=null,p=0;p<j.length;p++)q0(j[p],E)}catch(U){st(l,l.return,U)}}i&&_&64&&t1(m),cl(m,m.return);break;case 27:o1(m);case 26:case 5:Ur(p,m,i),i&&l===null&&_&4&&r1(m),cl(m,m.return);break;case 12:Ur(p,m,i);break;case 31:Ur(p,m,i),i&&_&4&&u1(p,m);break;case 13:Ur(p,m,i),i&&_&4&&d1(p,m);break;case 22:m.memoizedState===null&&Ur(p,m,i),cl(m,m.return);break;case 30:break;default:Ur(p,m,i)}a=a.sibling}}function bh(n,a){var i=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==i&&(n!=null&&n.refCount++,i!=null&&Ws(i))}function _h(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Ws(n))}function tr(n,a,i,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)h1(n,a,i,l),a=a.sibling}function h1(n,a,i,l){var p=a.flags;switch(a.tag){case 0:case 11:case 15:tr(n,a,i,l),p&2048&&ll(9,a);break;case 1:tr(n,a,i,l);break;case 3:tr(n,a,i,l),p&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Ws(n)));break;case 12:if(p&2048){tr(n,a,i,l),n=a.stateNode;try{var m=a.memoizedProps,_=m.id,E=m.onPostCommit;typeof E=="function"&&E(_,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(j){st(a,a.return,j)}}else tr(n,a,i,l);break;case 31:tr(n,a,i,l);break;case 13:tr(n,a,i,l);break;case 23:break;case 22:m=a.stateNode,_=a.alternate,a.memoizedState!==null?m._visibility&2?tr(n,a,i,l):ul(n,a):m._visibility&2?tr(n,a,i,l):(m._visibility|=2,Ri(n,a,i,l,(a.subtreeFlags&10256)!==0||!1)),p&2048&&bh(_,a);break;case 24:tr(n,a,i,l),p&2048&&_h(a.alternate,a);break;default:tr(n,a,i,l)}}function Ri(n,a,i,l,p){for(p=p&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var m=n,_=a,E=i,j=l,U=_.flags;switch(_.tag){case 0:case 11:case 15:Ri(m,_,E,j,p),ll(8,_);break;case 23:break;case 22:var W=_.stateNode;_.memoizedState!==null?W._visibility&2?Ri(m,_,E,j,p):ul(m,_):(W._visibility|=2,Ri(m,_,E,j,p)),p&&U&2048&&bh(_.alternate,_);break;case 24:Ri(m,_,E,j,p),p&&U&2048&&_h(_.alternate,_);break;default:Ri(m,_,E,j,p)}a=a.sibling}}function ul(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=n,l=a,p=l.flags;switch(l.tag){case 22:ul(i,l),p&2048&&bh(l.alternate,l);break;case 24:ul(i,l),p&2048&&_h(l.alternate,l);break;default:ul(i,l)}a=a.sibling}}var dl=8192;function Oi(n,a,i){if(n.subtreeFlags&dl)for(n=n.child;n!==null;)m1(n,a,i),n=n.sibling}function m1(n,a,i){switch(n.tag){case 26:Oi(n,a,i),n.flags&dl&&n.memoizedState!==null&&_R(i,er,n.memoizedState,n.memoizedProps);break;case 5:Oi(n,a,i);break;case 3:case 4:var l=er;er=wu(n.stateNode.containerInfo),Oi(n,a,i),er=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=dl,dl=16777216,Oi(n,a,i),dl=l):Oi(n,a,i));break;default:Oi(n,a,i)}}function g1(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function fl(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];Ut=l,v1(l,n)}g1(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)y1(n),n=n.sibling}function y1(n){switch(n.tag){case 0:case 11:case 15:fl(n),n.flags&2048&&wa(9,n,n.return);break;case 3:fl(n);break;case 12:fl(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,du(n)):fl(n);break;default:fl(n)}}function du(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];Ut=l,v1(l,n)}g1(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:wa(8,a,a.return),du(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,du(a));break;default:du(a)}n=n.sibling}}function v1(n,a){for(;Ut!==null;){var i=Ut;switch(i.tag){case 0:case 11:case 15:wa(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ws(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Ut=l;else e:for(i=n;Ut!==null;){l=Ut;var p=l.sibling,m=l.return;if(l1(l),l===i){Ut=null;break e}if(p!==null){p.return=m,Ut=p;break e}Ut=m}}}var PN={getCacheForType:function(n){var a=Vt(Nt),i=a.data.get(n);return i===void 0&&(i=n(),a.data.set(n,i)),i},cacheSignal:function(){return Vt(Nt).controller.signal}},IN=typeof WeakMap=="function"?WeakMap:Map,Je=0,pt=null,He=null,Ge=0,it=0,An=null,Ea=!1,ji=!1,Sh=!1,Br=0,wt=0,Aa=0,wo=0,xh=0,kn=0,Di=0,pl=null,hn=null,Ch=!1,fu=0,b1=0,pu=1/0,hu=null,ka=null,$t=0,Ma=null,Pi=null,Fr=0,wh=0,Eh=null,_1=null,hl=0,Ah=null;function Mn(){return(Je&2)!==0&&Ge!==0?Ge&-Ge:L.T!==null?Oh():Ib()}function S1(){if(kn===0)if((Ge&536870912)===0||Ze){var n=Qt;Qt<<=1,(Qt&3932160)===0&&(Qt=262144),kn=n}else kn=536870912;return n=wn.current,n!==null&&(n.flags|=32),kn}function mn(n,a,i){(n===pt&&(it===2||it===9)||n.cancelPendingCommit!==null)&&(Ii(n,0),Ta(n,Ge,kn,!1)),Ps(n,i),((Je&2)===0||n!==pt)&&(n===pt&&((Je&2)===0&&(wo|=i),wt===4&&Ta(n,Ge,kn,!1)),hr(n))}function x1(n,a,i){if((Je&6)!==0)throw Error(o(327));var l=!i&&(a&127)===0&&(a&n.expiredLanes)===0||Ds(n,a),p=l?zN(n,a):Mh(n,a,!0),m=l;do{if(p===0){ji&&!l&&Ta(n,a,0,!1);break}else{if(i=n.current.alternate,m&&!$N(i)){p=Mh(n,a,!1),m=!1;continue}if(p===2){if(m=a,n.errorRecoveryDisabledLanes&m)var _=0;else _=n.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){a=_;e:{var E=n;p=pl;var j=E.current.memoizedState.isDehydrated;if(j&&(Ii(E,_).flags|=256),_=Mh(E,_,!1),_!==2){if(Sh&&!j){E.errorRecoveryDisabledLanes|=m,wo|=m,p=4;break e}m=hn,hn=p,m!==null&&(hn===null?hn=m:hn.push.apply(hn,m))}p=_}if(m=!1,p!==2)continue}}if(p===1){Ii(n,0),Ta(n,a,0,!0);break}e:{switch(l=n,m=p,m){case 0:case 1:throw Error(o(345));case 4:if((a&4194048)!==a)break;case 6:Ta(l,a,kn,!Ea);break e;case 2:hn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((a&62914560)===a&&(p=fu+300-Tt(),10<p)){if(Ta(l,a,kn,!Ea),io(l,0,!0)!==0)break e;Fr=a,l.timeoutHandle=J1(C1.bind(null,l,i,hn,hu,Ch,a,kn,wo,Di,Ea,m,"Throttled",-0,0),p);break e}C1(l,i,hn,hu,Ch,a,kn,wo,Di,Ea,m,null,-0,0)}}break}while(!0);hr(n)}function C1(n,a,i,l,p,m,_,E,j,U,W,X,F,G){if(n.timeoutHandle=-1,X=a.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mr},m1(a,m,X);var fe=(m&62914560)===m?fu-Tt():(m&4194048)===m?b1-Tt():0;if(fe=SR(X,fe),fe!==null){Fr=m,n.cancelPendingCommit=fe(R1.bind(null,n,a,m,i,l,p,_,E,j,W,X,null,F,G)),Ta(n,m,_,!U);return}}R1(n,a,m,i,l,p,_,E,j)}function $N(n){for(var a=n;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var p=i[l],m=p.getSnapshot;p=p.value;try{if(!xn(m(),p))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ta(n,a,i,l){a&=~xh,a&=~wo,n.suspendedLanes|=a,n.pingedLanes&=~a,l&&(n.warmLanes|=a),l=n.expirationTimes;for(var p=a;0<p;){var m=31-Oe(p),_=1<<m;l[m]=-1,p&=~_}i!==0&&jb(n,i,a)}function mu(){return(Je&6)===0?(ml(0),!1):!0}function kh(){if(He!==null){if(it===0)var n=He.return;else n=He,Or=mo=null,Fp(n),Ai=null,Xs=0,n=He;for(;n!==null;)e1(n.alternate,n),n=n.return;He=null}}function Ii(n,a){var i=n.timeoutHandle;i!==-1&&(n.timeoutHandle=-1,rR(i)),i=n.cancelPendingCommit,i!==null&&(n.cancelPendingCommit=null,i()),Fr=0,kh(),pt=n,He=i=Nr(n.current,null),Ge=a,it=0,An=null,Ea=!1,ji=Ds(n,a),Sh=!1,Di=kn=xh=wo=Aa=wt=0,hn=pl=null,Ch=!1,(a&8)!==0&&(a|=a&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=a;0<l;){var p=31-Oe(l),m=1<<p;a|=n[p],l&=~m}return Br=a,Ic(),i}function w1(n,a){je=null,L.H=ol,a===Ei||a===qc?(a=H0(),it=3):a===Rp?(a=H0(),it=4):it=a===oh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,An=a,He===null&&(wt=1,au(n,zn(a,n.current)))}function E1(){var n=wn.current;return n===null?!0:(Ge&4194048)===Ge?Fn===null:(Ge&62914560)===Ge||(Ge&536870912)!==0?n===Fn:!1}function A1(){var n=L.H;return L.H=ol,n===null?ol:n}function k1(){var n=L.A;return L.A=PN,n}function gu(){wt=4,Ea||(Ge&4194048)!==Ge&&wn.current!==null||(ji=!0),(Aa&134217727)===0&&(wo&134217727)===0||pt===null||Ta(pt,Ge,kn,!1)}function Mh(n,a,i){var l=Je;Je|=2;var p=A1(),m=k1();(pt!==n||Ge!==a)&&(hu=null,Ii(n,a)),a=!1;var _=wt;e:do try{if(it!==0&&He!==null){var E=He,j=An;switch(it){case 8:kh(),_=6;break e;case 3:case 2:case 9:case 6:wn.current===null&&(a=!0);var U=it;if(it=0,An=null,$i(n,E,j,U),i&&ji){_=0;break e}break;default:U=it,it=0,An=null,$i(n,E,j,U)}}LN(),_=wt;break}catch(W){w1(n,W)}while(!0);return a&&n.shellSuspendCounter++,Or=mo=null,Je=l,L.H=p,L.A=m,He===null&&(pt=null,Ge=0,Ic()),_}function LN(){for(;He!==null;)M1(He)}function zN(n,a){var i=Je;Je|=2;var l=A1(),p=k1();pt!==n||Ge!==a?(hu=null,pu=Tt()+500,Ii(n,a)):ji=Ds(n,a);e:do try{if(it!==0&&He!==null){a=He;var m=An;t:switch(it){case 1:it=0,An=null,$i(n,a,m,1);break;case 2:case 9:if(L0(m)){it=0,An=null,T1(a);break}a=function(){it!==2&&it!==9||pt!==n||(it=7),hr(n)},m.then(a,a);break e;case 3:it=7;break e;case 4:it=5;break e;case 7:L0(m)?(it=0,An=null,T1(a)):(it=0,An=null,$i(n,a,m,7));break;case 5:var _=null;switch(He.tag){case 26:_=He.memoizedState;case 5:case 27:var E=He;if(_?hS(_):E.stateNode.complete){it=0,An=null;var j=E.sibling;if(j!==null)He=j;else{var U=E.return;U!==null?(He=U,yu(U)):He=null}break t}}it=0,An=null,$i(n,a,m,5);break;case 6:it=0,An=null,$i(n,a,m,6);break;case 8:kh(),wt=6;break e;default:throw Error(o(462))}}HN();break}catch(W){w1(n,W)}while(!0);return Or=mo=null,L.H=l,L.A=p,Je=i,He!==null?0:(pt=null,Ge=0,Ic(),wt)}function HN(){for(;He!==null&&!Ye();)M1(He)}function M1(n){var a=Q_(n.alternate,n,Br);n.memoizedProps=n.pendingProps,a===null?yu(n):He=a}function T1(n){var a=n,i=a.alternate;switch(a.tag){case 15:case 0:a=V_(i,a,a.pendingProps,a.type,void 0,Ge);break;case 11:a=V_(i,a,a.pendingProps,a.type.render,a.ref,Ge);break;case 5:Fp(a);default:e1(i,a),a=He=k0(a,Br),a=Q_(i,a,Br)}n.memoizedProps=n.pendingProps,a===null?yu(n):He=a}function $i(n,a,i,l){Or=mo=null,Fp(a),Ai=null,Xs=0;var p=a.return;try{if(MN(n,p,a,i,Ge)){wt=1,au(n,zn(i,n.current)),He=null;return}}catch(m){if(p!==null)throw He=p,m;wt=1,au(n,zn(i,n.current)),He=null;return}a.flags&32768?(Ze||l===1?n=!0:ji||(Ge&536870912)!==0?n=!1:(Ea=n=!0,(l===2||l===9||l===3||l===6)&&(l=wn.current,l!==null&&l.tag===13&&(l.flags|=16384))),N1(a,n)):yu(a)}function yu(n){var a=n;do{if((a.flags&32768)!==0){N1(a,Ea);return}n=a.return;var i=RN(a.alternate,a,Br);if(i!==null){He=i;return}if(a=a.sibling,a!==null){He=a;return}He=a=n}while(a!==null);wt===0&&(wt=5)}function N1(n,a){do{var i=ON(n.alternate,n);if(i!==null){i.flags&=32767,He=i;return}if(i=n.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(n=n.sibling,n!==null)){He=n;return}He=n=i}while(n!==null);wt=6,He=null}function R1(n,a,i,l,p,m,_,E,j){n.cancelPendingCommit=null;do vu();while($t!==0);if((Je&6)!==0)throw Error(o(327));if(a!==null){if(a===n.current)throw Error(o(177));if(m=a.lanes|a.childLanes,m|=gp,bT(n,i,m,_,E,j),n===pt&&(He=pt=null,Ge=0),Pi=a,Ma=n,Fr=i,wh=m,Eh=p,_1=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,qN(cr,function(){return I1(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=L.T,L.T=null,p=V.p,V.p=2,_=Je,Je|=4;try{jN(n,a,i)}finally{Je=_,V.p=p,L.T=l}}$t=1,O1(),j1(),D1()}}function O1(){if($t===1){$t=0;var n=Ma,a=Pi,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=L.T,L.T=null;var l=V.p;V.p=2;var p=Je;Je|=4;try{f1(a,n);var m=Hh,_=v0(n.containerInfo),E=m.focusedElem,j=m.selectionRange;if(_!==E&&E&&E.ownerDocument&&y0(E.ownerDocument.documentElement,E)){if(j!==null&&dp(E)){var U=j.start,W=j.end;if(W===void 0&&(W=U),"selectionStart"in E)E.selectionStart=U,E.selectionEnd=Math.min(W,E.value.length);else{var X=E.ownerDocument||document,F=X&&X.defaultView||window;if(F.getSelection){var G=F.getSelection(),fe=E.textContent.length,Ce=Math.min(j.start,fe),ut=j.end===void 0?Ce:Math.min(j.end,fe);!G.extend&&Ce>ut&&(_=ut,ut=Ce,Ce=_);var $=g0(E,Ce),D=g0(E,ut);if($&&D&&(G.rangeCount!==1||G.anchorNode!==$.node||G.anchorOffset!==$.offset||G.focusNode!==D.node||G.focusOffset!==D.offset)){var H=X.createRange();H.setStart($.node,$.offset),G.removeAllRanges(),Ce>ut?(G.addRange(H),G.extend(D.node,D.offset)):(H.setEnd(D.node,D.offset),G.addRange(H))}}}}for(X=[],G=E;G=G.parentNode;)G.nodeType===1&&X.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<X.length;E++){var K=X[E];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Nu=!!zh,Hh=zh=null}finally{Je=p,V.p=l,L.T=i}}n.current=a,$t=2}}function j1(){if($t===2){$t=0;var n=Ma,a=Pi,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=L.T,L.T=null;var l=V.p;V.p=2;var p=Je;Je|=4;try{s1(n,a.alternate,a)}finally{Je=p,V.p=l,L.T=i}}$t=3}}function D1(){if($t===4||$t===3){$t=0,oo();var n=Ma,a=Pi,i=Fr,l=_1;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?$t=5:($t=0,Pi=Ma=null,P1(n,n.pendingLanes));var p=n.pendingLanes;if(p===0&&(ka=null),Vf(i),a=a.stateNode,Ae&&typeof Ae.onCommitFiberRoot=="function")try{Ae.onCommitFiberRoot(Me,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=L.T,p=V.p,V.p=2,L.T=null;try{for(var m=n.onRecoverableError,_=0;_<l.length;_++){var E=l[_];m(E.value,{componentStack:E.stack})}}finally{L.T=a,V.p=p}}(Fr&3)!==0&&vu(),hr(n),p=n.pendingLanes,(i&261930)!==0&&(p&42)!==0?n===Ah?hl++:(hl=0,Ah=n):hl=0,ml(0)}}function P1(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Ws(a)))}function vu(){return O1(),j1(),D1(),I1()}function I1(){if($t!==5)return!1;var n=Ma,a=wh;wh=0;var i=Vf(Fr),l=L.T,p=V.p;try{V.p=32>i?32:i,L.T=null,i=Eh,Eh=null;var m=Ma,_=Fr;if($t=0,Pi=Ma=null,Fr=0,(Je&6)!==0)throw Error(o(331));var E=Je;if(Je|=4,y1(m.current),h1(m,m.current,_,i),Je=E,ml(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot=="function")try{Ae.onPostCommitFiberRoot(Me,m)}catch{}return!0}finally{V.p=p,L.T=l,P1(n,a)}}function $1(n,a,i){a=zn(i,a),a=ah(n.stateNode,a,2),n=Sa(n,a,2),n!==null&&(Ps(n,2),hr(n))}function st(n,a,i){if(n.tag===3)$1(n,n,i);else for(;a!==null;){if(a.tag===3){$1(a,n,i);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ka===null||!ka.has(l))){n=zn(i,n),i=L_(2),l=Sa(a,i,2),l!==null&&(z_(i,l,a,n),Ps(l,2),hr(l));break}}a=a.return}}function Th(n,a,i){var l=n.pingCache;if(l===null){l=n.pingCache=new IN;var p=new Set;l.set(a,p)}else p=l.get(a),p===void 0&&(p=new Set,l.set(a,p));p.has(i)||(Sh=!0,p.add(i),n=UN.bind(null,n,a,i),a.then(n,n))}function UN(n,a,i){var l=n.pingCache;l!==null&&l.delete(a),n.pingedLanes|=n.suspendedLanes&i,n.warmLanes&=~i,pt===n&&(Ge&i)===i&&(wt===4||wt===3&&(Ge&62914560)===Ge&&300>Tt()-fu?(Je&2)===0&&Ii(n,0):xh|=i,Di===Ge&&(Di=0)),hr(n)}function L1(n,a){a===0&&(a=Ob()),n=fo(n,a),n!==null&&(Ps(n,a),hr(n))}function BN(n){var a=n.memoizedState,i=0;a!==null&&(i=a.retryLane),L1(n,i)}function FN(n,a){var i=0;switch(n.tag){case 31:case 13:var l=n.stateNode,p=n.memoizedState;p!==null&&(i=p.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(a),L1(n,i)}function qN(n,a){return xe(n,a)}var bu=null,Li=null,Nh=!1,_u=!1,Rh=!1,Na=0;function hr(n){n!==Li&&n.next===null&&(Li===null?bu=Li=n:Li=Li.next=n),_u=!0,Nh||(Nh=!0,VN())}function ml(n,a){if(!Rh&&_u){Rh=!0;do for(var i=!1,l=bu;l!==null;){if(n!==0){var p=l.pendingLanes;if(p===0)var m=0;else{var _=l.suspendedLanes,E=l.pingedLanes;m=(1<<31-Oe(42|n)+1)-1,m&=p&~(_&~E),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,B1(l,m))}else m=Ge,m=io(l,l===pt?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(m&3)===0||Ds(l,m)||(i=!0,B1(l,m));l=l.next}while(i);Rh=!1}}function GN(){z1()}function z1(){_u=Nh=!1;var n=0;Na!==0&&nR()&&(n=Na);for(var a=Tt(),i=null,l=bu;l!==null;){var p=l.next,m=H1(l,a);m===0?(l.next=null,i===null?bu=p:i.next=p,p===null&&(Li=i)):(i=l,(n!==0||(m&3)!==0)&&(_u=!0)),l=p}$t!==0&&$t!==5||ml(n),Na!==0&&(Na=0)}function H1(n,a){for(var i=n.suspendedLanes,l=n.pingedLanes,p=n.expirationTimes,m=n.pendingLanes&-62914561;0<m;){var _=31-Oe(m),E=1<<_,j=p[_];j===-1?((E&i)===0||(E&l)!==0)&&(p[_]=vT(E,a)):j<=a&&(n.expiredLanes|=E),m&=~E}if(a=pt,i=Ge,i=io(n,n===a?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,i===0||n===a&&(it===2||it===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&Te(l),n.callbackNode=null,n.callbackPriority=0;if((i&3)===0||Ds(n,i)){if(a=i&-i,a===n.callbackPriority)return a;switch(l!==null&&Te(l),Vf(i)){case 2:case 8:i=wc;break;case 32:i=cr;break;case 268435456:i=ae;break;default:i=cr}return l=U1.bind(null,n),i=xe(i,l),n.callbackPriority=a,n.callbackNode=i,a}return l!==null&&l!==null&&Te(l),n.callbackPriority=2,n.callbackNode=null,2}function U1(n,a){if($t!==0&&$t!==5)return n.callbackNode=null,n.callbackPriority=0,null;var i=n.callbackNode;if(vu()&&n.callbackNode!==i)return null;var l=Ge;return l=io(n,n===pt?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(x1(n,l,a),H1(n,Tt()),n.callbackNode!=null&&n.callbackNode===i?U1.bind(null,n):null)}function B1(n,a){if(vu())return null;x1(n,a,!0)}function VN(){aR(function(){(Je&6)!==0?xe(ai,GN):z1()})}function Oh(){if(Na===0){var n=Ci;n===0&&(n=vt,vt<<=1,(vt&261888)===0&&(vt=256)),Na=n}return Na}function F1(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Mc(""+n)}function q1(n,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,n.id&&i.setAttribute("form",n.id),a.parentNode.insertBefore(i,a),n=new FormData(n),i.parentNode.removeChild(i),n}function ZN(n,a,i,l,p){if(a==="submit"&&i&&i.stateNode===p){var m=F1((p[cn]||null).action),_=l.submitter;_&&(a=(a=_[cn]||null)?F1(a.formAction):_.getAttribute("formAction"),a!==null&&(m=a,_=null));var E=new Oc("action","action",null,l,p);n.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Na!==0){var j=_?q1(p,_):new FormData(p);Qp(i,{pending:!0,data:j,method:p.method,action:m},null,j)}}else typeof m=="function"&&(E.preventDefault(),j=_?q1(p,_):new FormData(p),Qp(i,{pending:!0,data:j,method:p.method,action:m},m,j))},currentTarget:p}]})}}for(var jh=0;jh<mp.length;jh++){var Dh=mp[jh],YN=Dh.toLowerCase(),WN=Dh[0].toUpperCase()+Dh.slice(1);Jn(YN,"on"+WN)}Jn(S0,"onAnimationEnd"),Jn(x0,"onAnimationIteration"),Jn(C0,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(dN,"onTransitionRun"),Jn(fN,"onTransitionStart"),Jn(pN,"onTransitionCancel"),Jn(w0,"onTransitionEnd"),ci("onMouseEnter",["mouseout","mouseover"]),ci("onMouseLeave",["mouseout","mouseover"]),ci("onPointerEnter",["pointerout","pointerover"]),ci("onPointerLeave",["pointerout","pointerover"]),so("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),so("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),so("onBeforeInput",["compositionend","keypress","textInput","paste"]),so("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),so("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),so("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gl="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(" "),KN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gl));function G1(n,a){a=(a&4)!==0;for(var i=0;i<n.length;i++){var l=n[i],p=l.event;l=l.listeners;e:{var m=void 0;if(a)for(var _=l.length-1;0<=_;_--){var E=l[_],j=E.instance,U=E.currentTarget;if(E=E.listener,j!==m&&p.isPropagationStopped())break e;m=E,p.currentTarget=U;try{m(p)}catch(W){Pc(W)}p.currentTarget=null,m=j}else for(_=0;_<l.length;_++){if(E=l[_],j=E.instance,U=E.currentTarget,E=E.listener,j!==m&&p.isPropagationStopped())break e;m=E,p.currentTarget=U;try{m(p)}catch(W){Pc(W)}p.currentTarget=null,m=j}}}}function Ue(n,a){var i=a[Zf];i===void 0&&(i=a[Zf]=new Set);var l=n+"__bubble";i.has(l)||(V1(a,n,2,!1),i.add(l))}function Ph(n,a,i){var l=0;a&&(l|=4),V1(i,n,l,a)}var Su="_reactListening"+Math.random().toString(36).slice(2);function Ih(n){if(!n[Su]){n[Su]=!0,zb.forEach(function(i){i!=="selectionchange"&&(KN.has(i)||Ph(i,!1,n),Ph(i,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Su]||(a[Su]=!0,Ph("selectionchange",!1,a))}}function V1(n,a,i,l){switch(SS(a)){case 2:var p=wR;break;case 8:p=ER;break;default:p=Xh}i=p.bind(null,a,i,n),p=void 0,!np||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(p=!0),l?p!==void 0?n.addEventListener(a,i,{capture:!0,passive:p}):n.addEventListener(a,i,!0):p!==void 0?n.addEventListener(a,i,{passive:p}):n.addEventListener(a,i,!1)}function $h(n,a,i,l,p){var m=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var _=l.tag;if(_===3||_===4){var E=l.stateNode.containerInfo;if(E===p)break;if(_===4)for(_=l.return;_!==null;){var j=_.tag;if((j===3||j===4)&&_.stateNode.containerInfo===p)return;_=_.return}for(;E!==null;){if(_=ii(E),_===null)return;if(j=_.tag,j===5||j===6||j===26||j===27){l=m=_;continue e}E=E.parentNode}}l=l.return}Xb(function(){var U=m,W=ep(i),X=[];e:{var F=E0.get(n);if(F!==void 0){var G=Oc,fe=n;switch(n){case"keypress":if(Nc(i)===0)break e;case"keydown":case"keyup":G=FT;break;case"focusin":fe="focus",G=ip;break;case"focusout":fe="blur",G=ip;break;case"beforeblur":case"afterblur":G=ip;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=e0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=RT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=VT;break;case S0:case x0:case C0:G=DT;break;case w0:G=YT;break;case"scroll":case"scrollend":G=TT;break;case"wheel":G=KT;break;case"copy":case"cut":case"paste":G=IT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=n0;break;case"toggle":case"beforetoggle":G=QT}var Ce=(a&4)!==0,ut=!Ce&&(n==="scroll"||n==="scrollend"),$=Ce?F!==null?F+"Capture":null:F;Ce=[];for(var D=U,H;D!==null;){var K=D;if(H=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||H===null||$===null||(K=Ls(D,$),K!=null&&Ce.push(yl(D,K,H))),ut)break;D=D.return}0<Ce.length&&(F=new G(F,fe,null,i,W),X.push({event:F,listeners:Ce}))}}if((a&7)===0){e:{if(F=n==="mouseover"||n==="pointerover",G=n==="mouseout"||n==="pointerout",F&&i!==Jf&&(fe=i.relatedTarget||i.fromElement)&&(ii(fe)||fe[oi]))break e;if((G||F)&&(F=W.window===W?W:(F=W.ownerDocument)?F.defaultView||F.parentWindow:window,G?(fe=i.relatedTarget||i.toElement,G=U,fe=fe?ii(fe):null,fe!==null&&(ut=c(fe),Ce=fe.tag,fe!==ut||Ce!==5&&Ce!==27&&Ce!==6)&&(fe=null)):(G=null,fe=U),G!==fe)){if(Ce=e0,K="onMouseLeave",$="onMouseEnter",D="mouse",(n==="pointerout"||n==="pointerover")&&(Ce=n0,K="onPointerLeave",$="onPointerEnter",D="pointer"),ut=G==null?F:$s(G),H=fe==null?F:$s(fe),F=new Ce(K,D+"leave",G,i,W),F.target=ut,F.relatedTarget=H,K=null,ii(W)===U&&(Ce=new Ce($,D+"enter",fe,i,W),Ce.target=H,Ce.relatedTarget=ut,K=Ce),ut=K,G&&fe)t:{for(Ce=XN,$=G,D=fe,H=0,K=$;K;K=Ce(K))H++;K=0;for(var _e=D;_e;_e=Ce(_e))K++;for(;0<H-K;)$=Ce($),H--;for(;0<K-H;)D=Ce(D),K--;for(;H--;){if($===D||D!==null&&$===D.alternate){Ce=$;break t}$=Ce($),D=Ce(D)}Ce=null}else Ce=null;G!==null&&Z1(X,F,G,Ce,!1),fe!==null&&ut!==null&&Z1(X,ut,fe,Ce,!0)}}e:{if(F=U?$s(U):window,G=F.nodeName&&F.nodeName.toLowerCase(),G==="select"||G==="input"&&F.type==="file")var Ke=u0;else if(l0(F))if(d0)Ke=lN;else{Ke=iN;var pe=oN}else G=F.nodeName,!G||G.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?U&&Qf(U.elementType)&&(Ke=u0):Ke=sN;if(Ke&&(Ke=Ke(n,U))){c0(X,Ke,i,W);break e}pe&&pe(n,F,U),n==="focusout"&&U&&F.type==="number"&&U.memoizedProps.value!=null&&Xf(F,"number",F.value)}switch(pe=U?$s(U):window,n){case"focusin":(l0(pe)||pe.contentEditable==="true")&&(mi=pe,fp=U,Vs=null);break;case"focusout":Vs=fp=mi=null;break;case"mousedown":pp=!0;break;case"contextmenu":case"mouseup":case"dragend":pp=!1,b0(X,i,W);break;case"selectionchange":if(uN)break;case"keydown":case"keyup":b0(X,i,W)}var Pe;if(lp)e:{switch(n){case"compositionstart":var Ve="onCompositionStart";break e;case"compositionend":Ve="onCompositionEnd";break e;case"compositionupdate":Ve="onCompositionUpdate";break e}Ve=void 0}else hi?i0(n,i)&&(Ve="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(Ve="onCompositionStart");Ve&&(r0&&i.locale!=="ko"&&(hi||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&hi&&(Pe=Qb()):(ha=W,rp="value"in ha?ha.value:ha.textContent,hi=!0)),pe=xu(U,Ve),0<pe.length&&(Ve=new t0(Ve,n,null,i,W),X.push({event:Ve,listeners:pe}),Pe?Ve.data=Pe:(Pe=s0(i),Pe!==null&&(Ve.data=Pe)))),(Pe=eN?tN(n,i):nN(n,i))&&(Ve=xu(U,"onBeforeInput"),0<Ve.length&&(pe=new t0("onBeforeInput","beforeinput",null,i,W),X.push({event:pe,listeners:Ve}),pe.data=Pe)),ZN(X,n,U,i,W)}G1(X,a)})}function yl(n,a,i){return{instance:n,listener:a,currentTarget:i}}function xu(n,a){for(var i=a+"Capture",l=[];n!==null;){var p=n,m=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||m===null||(p=Ls(n,i),p!=null&&l.unshift(yl(n,p,m)),p=Ls(n,a),p!=null&&l.push(yl(n,p,m))),n.tag===3)return l;n=n.return}return[]}function XN(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Z1(n,a,i,l,p){for(var m=a._reactName,_=[];i!==null&&i!==l;){var E=i,j=E.alternate,U=E.stateNode;if(E=E.tag,j!==null&&j===l)break;E!==5&&E!==26&&E!==27||U===null||(j=U,p?(U=Ls(i,m),U!=null&&_.unshift(yl(i,U,j))):p||(U=Ls(i,m),U!=null&&_.push(yl(i,U,j)))),i=i.return}_.length!==0&&n.push({event:a,listeners:_})}var QN=/\r\n?/g,JN=/\u0000|\uFFFD/g;function Y1(n){return(typeof n=="string"?n:""+n).replace(QN,`
50
+ `).replace(JN,"")}function W1(n,a){return a=Y1(a),Y1(n)===a}function ct(n,a,i,l,p,m){switch(i){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||di(n,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&di(n,""+l);break;case"className":Ac(n,"class",l);break;case"tabIndex":Ac(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ac(n,i,l);break;case"style":Wb(n,l,m);break;case"data":if(a!=="object"){Ac(n,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||i!=="href")){n.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(i);break}l=Mc(""+l),n.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(i,"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 m=="function"&&(i==="formAction"?(a!=="input"&&ct(n,a,"name",p.name,p,null),ct(n,a,"formEncType",p.formEncType,p,null),ct(n,a,"formMethod",p.formMethod,p,null),ct(n,a,"formTarget",p.formTarget,p,null)):(ct(n,a,"encType",p.encType,p,null),ct(n,a,"method",p.method,p,null),ct(n,a,"target",p.target,p,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(i);break}l=Mc(""+l),n.setAttribute(i,l);break;case"onClick":l!=null&&(n.onclick=Mr);break;case"onScroll":l!=null&&Ue("scroll",n);break;case"onScrollEnd":l!=null&&Ue("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(p.children!=null)throw Error(o(60));n.innerHTML=i}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}i=Mc(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(i,""+l):n.removeAttribute(i);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":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(i,""):n.removeAttribute(i);break;case"capture":case"download":l===!0?n.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(i,l):n.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(i,l):n.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(i):n.setAttribute(i,l);break;case"popover":Ue("beforetoggle",n),Ue("toggle",n),Ec(n,"popover",l);break;case"xlinkActuate":kr(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":kr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":kr(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":kr(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":kr(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":kr(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":kr(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":kr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":kr(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ec(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=kT.get(i)||i,Ec(n,i,l))}}function Lh(n,a,i,l,p,m){switch(i){case"style":Wb(n,l,m);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(p.children!=null)throw Error(o(60));n.innerHTML=i}}break;case"children":typeof l=="string"?di(n,l):(typeof l=="number"||typeof l=="bigint")&&di(n,""+l);break;case"onScroll":l!=null&&Ue("scroll",n);break;case"onScrollEnd":l!=null&&Ue("scrollend",n);break;case"onClick":l!=null&&(n.onclick=Mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hb.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(p=i.endsWith("Capture"),a=i.slice(2,p?i.length-7:void 0),m=n[cn]||null,m=m!=null?m[i]:null,typeof m=="function"&&n.removeEventListener(a,m,p),typeof l=="function")){typeof m!="function"&&m!==null&&(i in n?n[i]=null:n.hasAttribute(i)&&n.removeAttribute(i)),n.addEventListener(a,l,p);break e}i in n?n[i]=l:l===!0?n.setAttribute(i,""):Ec(n,i,l)}}}function Yt(n,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",n),Ue("load",n);var l=!1,p=!1,m;for(m in i)if(i.hasOwnProperty(m)){var _=i[m];if(_!=null)switch(m){case"src":l=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:ct(n,a,m,_,i,null)}}p&&ct(n,a,"srcSet",i.srcSet,i,null),l&&ct(n,a,"src",i.src,i,null);return;case"input":Ue("invalid",n);var E=m=_=p=null,j=null,U=null;for(l in i)if(i.hasOwnProperty(l)){var W=i[l];if(W!=null)switch(l){case"name":p=W;break;case"type":_=W;break;case"checked":j=W;break;case"defaultChecked":U=W;break;case"value":m=W;break;case"defaultValue":E=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(o(137,a));break;default:ct(n,a,l,W,i,null)}}Gb(n,m,E,j,U,_,p,!1);return;case"select":Ue("invalid",n),l=_=m=null;for(p in i)if(i.hasOwnProperty(p)&&(E=i[p],E!=null))switch(p){case"value":m=E;break;case"defaultValue":_=E;break;case"multiple":l=E;default:ct(n,a,p,E,i,null)}a=m,i=_,n.multiple=!!l,a!=null?ui(n,!!l,a,!1):i!=null&&ui(n,!!l,i,!0);return;case"textarea":Ue("invalid",n),m=p=l=null;for(_ in i)if(i.hasOwnProperty(_)&&(E=i[_],E!=null))switch(_){case"value":l=E;break;case"defaultValue":p=E;break;case"children":m=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(o(91));break;default:ct(n,a,_,E,i,null)}Zb(n,l,p,m);return;case"option":for(j in i)if(i.hasOwnProperty(j)&&(l=i[j],l!=null))switch(j){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ct(n,a,j,l,i,null)}return;case"dialog":Ue("beforetoggle",n),Ue("toggle",n),Ue("cancel",n),Ue("close",n);break;case"iframe":case"object":Ue("load",n);break;case"video":case"audio":for(l=0;l<gl.length;l++)Ue(gl[l],n);break;case"image":Ue("error",n),Ue("load",n);break;case"details":Ue("toggle",n);break;case"embed":case"source":case"link":Ue("error",n),Ue("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in i)if(i.hasOwnProperty(U)&&(l=i[U],l!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:ct(n,a,U,l,i,null)}return;default:if(Qf(a)){for(W in i)i.hasOwnProperty(W)&&(l=i[W],l!==void 0&&Lh(n,a,W,l,i,void 0));return}}for(E in i)i.hasOwnProperty(E)&&(l=i[E],l!=null&&ct(n,a,E,l,i,null))}function eR(n,a,i,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,m=null,_=null,E=null,j=null,U=null,W=null;for(G in i){var X=i[G];if(i.hasOwnProperty(G)&&X!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":j=X;default:l.hasOwnProperty(G)||ct(n,a,G,null,l,X)}}for(var F in l){var G=l[F];if(X=i[F],l.hasOwnProperty(F)&&(G!=null||X!=null))switch(F){case"type":m=G;break;case"name":p=G;break;case"checked":U=G;break;case"defaultChecked":W=G;break;case"value":_=G;break;case"defaultValue":E=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(o(137,a));break;default:G!==X&&ct(n,a,F,G,l,X)}}Kf(n,_,E,j,U,W,m,p);return;case"select":G=_=E=F=null;for(m in i)if(j=i[m],i.hasOwnProperty(m)&&j!=null)switch(m){case"value":break;case"multiple":G=j;default:l.hasOwnProperty(m)||ct(n,a,m,null,l,j)}for(p in l)if(m=l[p],j=i[p],l.hasOwnProperty(p)&&(m!=null||j!=null))switch(p){case"value":F=m;break;case"defaultValue":E=m;break;case"multiple":_=m;default:m!==j&&ct(n,a,p,m,l,j)}a=E,i=_,l=G,F!=null?ui(n,!!i,F,!1):!!l!=!!i&&(a!=null?ui(n,!!i,a,!0):ui(n,!!i,i?[]:"",!1));return;case"textarea":G=F=null;for(E in i)if(p=i[E],i.hasOwnProperty(E)&&p!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:ct(n,a,E,null,l,p)}for(_ in l)if(p=l[_],m=i[_],l.hasOwnProperty(_)&&(p!=null||m!=null))switch(_){case"value":F=p;break;case"defaultValue":G=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:p!==m&&ct(n,a,_,p,l,m)}Vb(n,F,G);return;case"option":for(var fe in i)if(F=i[fe],i.hasOwnProperty(fe)&&F!=null&&!l.hasOwnProperty(fe))switch(fe){case"selected":n.selected=!1;break;default:ct(n,a,fe,null,l,F)}for(j in l)if(F=l[j],G=i[j],l.hasOwnProperty(j)&&F!==G&&(F!=null||G!=null))switch(j){case"selected":n.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:ct(n,a,j,F,l,G)}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 Ce in i)F=i[Ce],i.hasOwnProperty(Ce)&&F!=null&&!l.hasOwnProperty(Ce)&&ct(n,a,Ce,null,l,F);for(U in l)if(F=l[U],G=i[U],l.hasOwnProperty(U)&&F!==G&&(F!=null||G!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(o(137,a));break;default:ct(n,a,U,F,l,G)}return;default:if(Qf(a)){for(var ut in i)F=i[ut],i.hasOwnProperty(ut)&&F!==void 0&&!l.hasOwnProperty(ut)&&Lh(n,a,ut,void 0,l,F);for(W in l)F=l[W],G=i[W],!l.hasOwnProperty(W)||F===G||F===void 0&&G===void 0||Lh(n,a,W,F,l,G);return}}for(var $ in i)F=i[$],i.hasOwnProperty($)&&F!=null&&!l.hasOwnProperty($)&&ct(n,a,$,null,l,F);for(X in l)F=l[X],G=i[X],!l.hasOwnProperty(X)||F===G||F==null&&G==null||ct(n,a,X,F,l,G)}function K1(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function tR(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var p=i[l],m=p.transferSize,_=p.initiatorType,E=p.duration;if(m&&E&&K1(_)){for(_=0,E=p.responseEnd,l+=1;l<i.length;l++){var j=i[l],U=j.startTime;if(U>E)break;var W=j.transferSize,X=j.initiatorType;W&&K1(X)&&(j=j.responseEnd,_+=W*(j<E?1:(E-U)/(j-U)))}if(--l,a+=8*(m+_)/(p.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var zh=null,Hh=null;function Cu(n){return n.nodeType===9?n:n.ownerDocument}function X1(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Q1(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function Uh(n,a){return n==="textarea"||n==="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 Bh=null;function nR(){var n=window.event;return n&&n.type==="popstate"?n===Bh?!1:(Bh=n,!0):(Bh=null,!1)}var J1=typeof setTimeout=="function"?setTimeout:void 0,rR=typeof clearTimeout=="function"?clearTimeout:void 0,eS=typeof Promise=="function"?Promise:void 0,aR=typeof queueMicrotask=="function"?queueMicrotask:typeof eS<"u"?function(n){return eS.resolve(null).then(n).catch(oR)}:J1;function oR(n){setTimeout(function(){throw n})}function Ra(n){return n==="head"}function tS(n,a){var i=a,l=0;do{var p=i.nextSibling;if(n.removeChild(i),p&&p.nodeType===8)if(i=p.data,i==="/$"||i==="/&"){if(l===0){n.removeChild(p),Bi(a);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")vl(n.ownerDocument.documentElement);else if(i==="head"){i=n.ownerDocument.head,vl(i);for(var m=i.firstChild;m;){var _=m.nextSibling,E=m.nodeName;m[Is]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=_}}else i==="body"&&vl(n.ownerDocument.body);i=p}while(i);Bi(a)}function nS(n,a){var i=n;n=0;do{var l=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(n===0)break;n--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||n++;i=l}while(i)}function Fh(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Fh(i),Yf(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}n.removeChild(i)}}function iR(n,a,i,l){for(;n.nodeType===1;){var p=i;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[Is])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(m=n.getAttribute("rel"),m==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(m!==p.rel||n.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||n.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||n.getAttribute("title")!==(p.title==null?null:p.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(m=n.getAttribute("src"),(m!==(p.src==null?null:p.src)||n.getAttribute("type")!==(p.type==null?null:p.type)||n.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&m&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var m=p.name==null?null:""+p.name;if(p.type==="hidden"&&n.getAttribute("name")===m)return n}else return n;if(n=qn(n.nextSibling),n===null)break}return null}function sR(n,a,i){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=qn(n.nextSibling),n===null))return null;return n}function rS(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=qn(n.nextSibling),n===null))return null;return n}function qh(n){return n.data==="$?"||n.data==="$~"}function Gh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function lR(n,a){var i=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||i.readyState!=="loading")a();else{var l=function(){a(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function qn(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var Vh=null;function aS(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var i=n.data;if(i==="/$"||i==="/&"){if(a===0)return qn(n.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}n=n.nextSibling}return null}function oS(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return n;a--}else i!=="/$"&&i!=="/&"||a++}n=n.previousSibling}return null}function iS(n,a,i){switch(a=Cu(i),n){case"html":if(n=a.documentElement,!n)throw Error(o(452));return n;case"head":if(n=a.head,!n)throw Error(o(453));return n;case"body":if(n=a.body,!n)throw Error(o(454));return n;default:throw Error(o(451))}}function vl(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);Yf(n)}var Gn=new Map,sS=new Set;function wu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var qr=V.d;V.d={f:cR,r:uR,D:dR,C:fR,L:pR,m:hR,X:gR,S:mR,M:yR};function cR(){var n=qr.f(),a=mu();return n||a}function uR(n){var a=si(n);a!==null&&a.tag===5&&a.type==="form"?w_(a):qr.r(n)}var zi=typeof document>"u"?null:document;function lS(n,a,i){var l=zi;if(l&&typeof a=="string"&&a){var p=$n(a);p='link[rel="'+n+'"][href="'+p+'"]',typeof i=="string"&&(p+='[crossorigin="'+i+'"]'),sS.has(p)||(sS.add(p),n={rel:n,crossOrigin:i,href:a},l.querySelector(p)===null&&(a=l.createElement("link"),Yt(a,"link",n),Ht(a),l.head.appendChild(a)))}}function dR(n){qr.D(n),lS("dns-prefetch",n,null)}function fR(n,a){qr.C(n,a),lS("preconnect",n,a)}function pR(n,a,i){qr.L(n,a,i);var l=zi;if(l&&n&&a){var p='link[rel="preload"][as="'+$n(a)+'"]';a==="image"&&i&&i.imageSrcSet?(p+='[imagesrcset="'+$n(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(p+='[imagesizes="'+$n(i.imageSizes)+'"]')):p+='[href="'+$n(n)+'"]';var m=p;switch(a){case"style":m=Hi(n);break;case"script":m=Ui(n)}Gn.has(m)||(n=v({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:n,as:a},i),Gn.set(m,n),l.querySelector(p)!==null||a==="style"&&l.querySelector(bl(m))||a==="script"&&l.querySelector(_l(m))||(a=l.createElement("link"),Yt(a,"link",n),Ht(a),l.head.appendChild(a)))}}function hR(n,a){qr.m(n,a);var i=zi;if(i&&n){var l=a&&typeof a.as=="string"?a.as:"script",p='link[rel="modulepreload"][as="'+$n(l)+'"][href="'+$n(n)+'"]',m=p;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ui(n)}if(!Gn.has(m)&&(n=v({rel:"modulepreload",href:n},a),Gn.set(m,n),i.querySelector(p)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(_l(m)))return}l=i.createElement("link"),Yt(l,"link",n),Ht(l),i.head.appendChild(l)}}}function mR(n,a,i){qr.S(n,a,i);var l=zi;if(l&&n){var p=li(l).hoistableStyles,m=Hi(n);a=a||"default";var _=p.get(m);if(!_){var E={loading:0,preload:null};if(_=l.querySelector(bl(m)))E.loading=5;else{n=v({rel:"stylesheet",href:n,"data-precedence":a},i),(i=Gn.get(m))&&Zh(n,i);var j=_=l.createElement("link");Ht(j),Yt(j,"link",n),j._p=new Promise(function(U,W){j.onload=U,j.onerror=W}),j.addEventListener("load",function(){E.loading|=1}),j.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Eu(_,a,l)}_={type:"stylesheet",instance:_,count:1,state:E},p.set(m,_)}}}function gR(n,a){qr.X(n,a);var i=zi;if(i&&n){var l=li(i).hoistableScripts,p=Ui(n),m=l.get(p);m||(m=i.querySelector(_l(p)),m||(n=v({src:n,async:!0},a),(a=Gn.get(p))&&Yh(n,a),m=i.createElement("script"),Ht(m),Yt(m,"link",n),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(p,m))}}function yR(n,a){qr.M(n,a);var i=zi;if(i&&n){var l=li(i).hoistableScripts,p=Ui(n),m=l.get(p);m||(m=i.querySelector(_l(p)),m||(n=v({src:n,async:!0,type:"module"},a),(a=Gn.get(p))&&Yh(n,a),m=i.createElement("script"),Ht(m),Yt(m,"link",n),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(p,m))}}function cS(n,a,i,l){var p=(p=Ee.current)?wu(p):null;if(!p)throw Error(o(446));switch(n){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=Hi(i.href),i=li(p).hoistableStyles,l=i.get(a),l||(l={type:"style",instance:null,count:0,state:null},i.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){n=Hi(i.href);var m=li(p).hoistableStyles,_=m.get(n);if(_||(p=p.ownerDocument||p,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(n,_),(m=p.querySelector(bl(n)))&&!m._p&&(_.instance=m,_.state.loading=5),Gn.has(n)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Gn.set(n,i),m||vR(p,n,i,_.state))),a&&l===null)throw Error(o(528,""));return _}if(a&&l!==null)throw Error(o(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ui(i),i=li(p).hoistableScripts,l=i.get(a),l||(l={type:"script",instance:null,count:0,state:null},i.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,n))}}function Hi(n){return'href="'+$n(n)+'"'}function bl(n){return'link[rel="stylesheet"]['+n+"]"}function uS(n){return v({},n,{"data-precedence":n.precedence,precedence:null})}function vR(n,a,i,l){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=n.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),Yt(a,"link",i),Ht(a),n.head.appendChild(a))}function Ui(n){return'[src="'+$n(n)+'"]'}function _l(n){return"script[async]"+n}function dS(n,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var l=n.querySelector('style[data-href~="'+$n(i.href)+'"]');if(l)return a.instance=l,Ht(l),l;var p=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),Ht(l),Yt(l,"style",p),Eu(l,i.precedence,n),a.instance=l;case"stylesheet":p=Hi(i.href);var m=n.querySelector(bl(p));if(m)return a.state.loading|=4,a.instance=m,Ht(m),m;l=uS(i),(p=Gn.get(p))&&Zh(l,p),m=(n.ownerDocument||n).createElement("link"),Ht(m);var _=m;return _._p=new Promise(function(E,j){_.onload=E,_.onerror=j}),Yt(m,"link",l),a.state.loading|=4,Eu(m,i.precedence,n),a.instance=m;case"script":return m=Ui(i.src),(p=n.querySelector(_l(m)))?(a.instance=p,Ht(p),p):(l=i,(p=Gn.get(m))&&(l=v({},i),Yh(l,p)),n=n.ownerDocument||n,p=n.createElement("script"),Ht(p),Yt(p,"link",l),n.head.appendChild(p),a.instance=p);case"void":return null;default:throw Error(o(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,Eu(l,i.precedence,n));return a.instance}function Eu(n,a,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=l.length?l[l.length-1]:null,m=p,_=0;_<l.length;_++){var E=l[_];if(E.dataset.precedence===a)m=E;else if(m!==p)break}m?m.parentNode.insertBefore(n,m.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(n,a.firstChild))}function Zh(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Yh(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var Au=null;function fS(n,a,i){if(Au===null){var l=new Map,p=Au=new Map;p.set(i,l)}else p=Au,l=p.get(i),l||(l=new Map,p.set(i,l));if(l.has(n))return l;for(l.set(n,null),i=i.getElementsByTagName(n),p=0;p<i.length;p++){var m=i[p];if(!(m[Is]||m[qt]||n==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var _=m.getAttribute(a)||"";_=n+_;var E=l.get(_);E?E.push(m):l.set(_,[m])}}return l}function pS(n,a,i){n=n.ownerDocument||n,n.head.insertBefore(i,a==="title"?n.querySelector("head > title"):null)}function bR(n,a,i){if(i===1||a.itemProp!=null)return!1;switch(n){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 n=a.disabled,typeof a.precedence=="string"&&n==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 hS(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function _R(n,a,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var p=Hi(l.href),m=a.querySelector(bl(p));if(m){a=m._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=ku.bind(n),a.then(n,n)),i.state.loading|=4,i.instance=m,Ht(m);return}m=a.ownerDocument||a,l=uS(l),(p=Gn.get(p))&&Zh(l,p),m=m.createElement("link"),Ht(m);var _=m;_._p=new Promise(function(E,j){_.onload=E,_.onerror=j}),Yt(m,"link",l),i.instance=m}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(n.count++,i=ku.bind(n),a.addEventListener("load",i),a.addEventListener("error",i))}}var Wh=0;function SR(n,a){return n.stylesheets&&n.count===0&&Tu(n,n.stylesheets),0<n.count||0<n.imgCount?function(i){var l=setTimeout(function(){if(n.stylesheets&&Tu(n,n.stylesheets),n.unsuspend){var m=n.unsuspend;n.unsuspend=null,m()}},6e4+a);0<n.imgBytes&&Wh===0&&(Wh=62500*tR());var p=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Tu(n,n.stylesheets),n.unsuspend)){var m=n.unsuspend;n.unsuspend=null,m()}},(n.imgBytes>Wh?50:800)+a);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(p)}}:null}function ku(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tu(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Mu=null;function Tu(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Mu=new Map,a.forEach(xR,n),Mu=null,ku.call(n))}function xR(n,a){if(!(a.state.loading&4)){var i=Mu.get(n);if(i)var l=i.get(null);else{i=new Map,Mu.set(n,i);for(var p=n.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<p.length;m++){var _=p[m];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(i.set(_.dataset.precedence,_),l=_)}l&&i.set(null,l)}p=a.instance,_=p.getAttribute("data-precedence"),m=i.get(_)||l,m===l&&i.set(null,p),i.set(_,p),this.count++,l=ku.bind(this),p.addEventListener("load",l),p.addEventListener("error",l),m?m.parentNode.insertBefore(p,m.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(p,n.firstChild)),a.state.loading|=4}}var Sl={$$typeof:T,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function CR(n,a,i,l,p,m,_,E,j){this.tag=1,this.containerInfo=n,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=qf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qf(0),this.hiddenUpdates=qf(null),this.identifierPrefix=l,this.onUncaughtError=p,this.onCaughtError=m,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function mS(n,a,i,l,p,m,_,E,j,U,W,X){return n=new CR(n,a,i,_,j,U,W,X,E),a=1,m===!0&&(a|=24),m=Cn(3,null,null,a),n.current=m,m.stateNode=n,a=Mp(),a.refCount++,n.pooledCache=a,a.refCount++,m.memoizedState={element:l,isDehydrated:i,cache:a},Op(m),n}function gS(n){return n?(n=vi,n):vi}function yS(n,a,i,l,p,m){p=gS(p),l.context===null?l.context=p:l.pendingContext=p,l=_a(a),l.payload={element:i},m=m===void 0?null:m,m!==null&&(l.callback=m),i=Sa(n,l,a),i!==null&&(mn(i,n,a),Js(i,n,a))}function vS(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<a?i:a}}function Kh(n,a){vS(n,a),(n=n.alternate)&&vS(n,a)}function bS(n){if(n.tag===13||n.tag===31){var a=fo(n,67108864);a!==null&&mn(a,n,67108864),Kh(n,67108864)}}function _S(n){if(n.tag===13||n.tag===31){var a=Mn();a=Gf(a);var i=fo(n,a);i!==null&&mn(i,n,a),Kh(n,a)}}var Nu=!0;function wR(n,a,i,l){var p=L.T;L.T=null;var m=V.p;try{V.p=2,Xh(n,a,i,l)}finally{V.p=m,L.T=p}}function ER(n,a,i,l){var p=L.T;L.T=null;var m=V.p;try{V.p=8,Xh(n,a,i,l)}finally{V.p=m,L.T=p}}function Xh(n,a,i,l){if(Nu){var p=Qh(l);if(p===null)$h(n,a,l,Ru,i),xS(n,l);else if(kR(p,n,a,i,l))l.stopPropagation();else if(xS(n,l),a&4&&-1<AR.indexOf(n)){for(;p!==null;){var m=si(p);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var _=ur(m.pendingLanes);if(_!==0){var E=m;for(E.pendingLanes|=2,E.entangledLanes|=2;_;){var j=1<<31-Oe(_);E.entanglements[1]|=j,_&=~j}hr(m),(Je&6)===0&&(pu=Tt()+500,ml(0))}}break;case 31:case 13:E=fo(m,2),E!==null&&mn(E,m,2),mu(),Kh(m,2)}if(m=Qh(l),m===null&&$h(n,a,l,Ru,i),m===p)break;p=m}p!==null&&l.stopPropagation()}else $h(n,a,l,null,i)}}function Qh(n){return n=ep(n),Jh(n)}var Ru=null;function Jh(n){if(Ru=null,n=ii(n),n!==null){var a=c(n);if(a===null)n=null;else{var i=a.tag;if(i===13){if(n=u(a),n!==null)return n;n=null}else if(i===31){if(n=f(a),n!==null)return n;n=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return Ru=n,null}function SS(n){switch(n){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(fa()){case ai:return 2;case wc:return 8;case cr:case ie:return 32;case ae:return 268435456;default:return 32}default:return 32}}var em=!1,Oa=null,ja=null,Da=null,xl=new Map,Cl=new Map,Pa=[],AR="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 xS(n,a){switch(n){case"focusin":case"focusout":Oa=null;break;case"dragenter":case"dragleave":ja=null;break;case"mouseover":case"mouseout":Da=null;break;case"pointerover":case"pointerout":xl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cl.delete(a.pointerId)}}function wl(n,a,i,l,p,m){return n===null||n.nativeEvent!==m?(n={blockedOn:a,domEventName:i,eventSystemFlags:l,nativeEvent:m,targetContainers:[p]},a!==null&&(a=si(a),a!==null&&bS(a)),n):(n.eventSystemFlags|=l,a=n.targetContainers,p!==null&&a.indexOf(p)===-1&&a.push(p),n)}function kR(n,a,i,l,p){switch(a){case"focusin":return Oa=wl(Oa,n,a,i,l,p),!0;case"dragenter":return ja=wl(ja,n,a,i,l,p),!0;case"mouseover":return Da=wl(Da,n,a,i,l,p),!0;case"pointerover":var m=p.pointerId;return xl.set(m,wl(xl.get(m)||null,n,a,i,l,p)),!0;case"gotpointercapture":return m=p.pointerId,Cl.set(m,wl(Cl.get(m)||null,n,a,i,l,p)),!0}return!1}function CS(n){var a=ii(n.target);if(a!==null){var i=c(a);if(i!==null){if(a=i.tag,a===13){if(a=u(i),a!==null){n.blockedOn=a,$b(n.priority,function(){_S(i)});return}}else if(a===31){if(a=f(i),a!==null){n.blockedOn=a,$b(n.priority,function(){_S(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Ou(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var i=Qh(n.nativeEvent);if(i===null){i=n.nativeEvent;var l=new i.constructor(i.type,i);Jf=l,i.target.dispatchEvent(l),Jf=null}else return a=si(i),a!==null&&bS(a),n.blockedOn=i,!1;a.shift()}return!0}function wS(n,a,i){Ou(n)&&i.delete(a)}function MR(){em=!1,Oa!==null&&Ou(Oa)&&(Oa=null),ja!==null&&Ou(ja)&&(ja=null),Da!==null&&Ou(Da)&&(Da=null),xl.forEach(wS),Cl.forEach(wS)}function ju(n,a){n.blockedOn===a&&(n.blockedOn=null,em||(em=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,MR)))}var Du=null;function ES(n){Du!==n&&(Du=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Du===n&&(Du=null);for(var a=0;a<n.length;a+=3){var i=n[a],l=n[a+1],p=n[a+2];if(typeof l!="function"){if(Jh(l||i)===null)continue;break}var m=si(i);m!==null&&(n.splice(a,3),a-=3,Qp(m,{pending:!0,data:p,method:i.method,action:l},l,p))}}))}function Bi(n){function a(j){return ju(j,n)}Oa!==null&&ju(Oa,n),ja!==null&&ju(ja,n),Da!==null&&ju(Da,n),xl.forEach(a),Cl.forEach(a);for(var i=0;i<Pa.length;i++){var l=Pa[i];l.blockedOn===n&&(l.blockedOn=null)}for(;0<Pa.length&&(i=Pa[0],i.blockedOn===null);)CS(i),i.blockedOn===null&&Pa.shift();if(i=(n.ownerDocument||n).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var p=i[l],m=i[l+1],_=p[cn]||null;if(typeof m=="function")_||ES(i);else if(_){var E=null;if(m&&m.hasAttribute("formAction")){if(p=m,_=m[cn]||null)E=_.formAction;else if(Jh(p)!==null)continue}else E=_.action;typeof E=="function"?i[l+1]=E:(i.splice(l,3),l-=3),ES(i)}}}function AS(){function n(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(_){return p=_})},focusReset:"manual",scroll:"manual"})}function a(){p!==null&&(p(),p=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,p=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),p!==null&&(p(),p=null)}}}function tm(n){this._internalRoot=n}Pu.prototype.render=tm.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(o(409));var i=a.current,l=Mn();yS(i,l,n,a,null,null)},Pu.prototype.unmount=tm.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;yS(n.current,2,null,n,null,null),mu(),a[oi]=null}};function Pu(n){this._internalRoot=n}Pu.prototype.unstable_scheduleHydration=function(n){if(n){var a=Ib();n={blockedOn:null,target:n,priority:a};for(var i=0;i<Pa.length&&a!==0&&a<Pa[i].priority;i++);Pa.splice(i,0,n),i===0&&CS(n)}};var kS=t.version;if(kS!=="19.2.7")throw Error(o(527,kS,"19.2.7"));V.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(o(188)):(n=Object.keys(n).join(","),Error(o(268,n)));return n=g(a),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var TR={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Iu.isDisabled&&Iu.supportsFiber)try{Me=Iu.inject(TR),Ae=Iu}catch{}}return Al.createRoot=function(n,a){if(!s(n))throw Error(o(299));var i=!1,l="",p=D_,m=P_,_=I_;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),a=mS(n,1,!1,null,null,i,l,null,p,m,_,AS),n[oi]=a.current,Ih(n),new tm(a)},Al.hydrateRoot=function(n,a,i){if(!s(n))throw Error(o(299));var l=!1,p="",m=D_,_=P_,E=I_,j=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(p=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(_=i.onCaughtError),i.onRecoverableError!==void 0&&(E=i.onRecoverableError),i.formState!==void 0&&(j=i.formState)),a=mS(n,1,!0,a,i??null,l,p,j,m,_,E,AS),a.context=gS(null),i=a.current,l=Mn(),l=Gf(l),p=_a(l),p.callback=null,Sa(i,p,l),i=l,a.current.lanes=i,Ps(a,i),hr(a),n[oi]=a.current,Ih(n),new Pu(a)},Al.version="19.2.7",Al}var HS;function UR(){if(HS)return om.exports;HS=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(),om.exports=HR(),om.exports}var BR=UR();const dt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Fa="8.55.2",et=globalThis;function Bd(e,t,r){const o=r||et,s=o.__SENTRY__=o.__SENTRY__||{},c=s[Fa]=s[Fa]||{};return c[e]||(c[e]=t())}const Zo=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,FR="Sentry Logger ",lg=["debug","info","warn","error","log","assert","trace"],Ed={};function Yo(e){if(!("console"in et))return e();const t=et.console,r={},o=Object.keys(Ed);o.forEach(s=>{const c=Ed[s];r[s]=t[s],t[s]=c});try{return e()}finally{o.forEach(s=>{t[s]=r[s]})}}function qR(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Zo?lg.forEach(r=>{t[r]=(...o)=>{e&&Yo(()=>{et.console[r](`${FR}[${r}]:`,...o)})}}):lg.forEach(r=>{t[r]=()=>{}}),t}const we=Bd("logger",qR),mw=50,Po="?",US=/\(error: (.*)\)/,BS=/captureMessage|captureException/;function gw(...e){const t=e.sort((r,o)=>r[0]-o[0]).map(r=>r[1]);return(r,o=0,s=0)=>{const c=[],u=r.split(`
51
+ `);for(let f=o;f<u.length;f++){const h=u[f];if(h.length>1024)continue;const g=US.test(h)?h.replace(US,"$1"):h;if(!g.match(/\S*Error: /)){for(const y of t){const v=y(g);if(v){c.push(v);break}}if(c.length>=mw+s)break}}return VR(c.slice(s))}}function GR(e){return Array.isArray(e)?gw(...e):e}function VR(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test($u(t).function||"")&&t.pop(),t.reverse(),BS.test($u(t).function||"")&&(t.pop(),BS.test($u(t).function||"")&&t.pop()),t.slice(0,mw).map(r=>({...r,filename:r.filename||$u(t).filename,function:r.function||Po}))}function $u(e){return e[e.length-1]||{}}const cm="<anonymous>";function Ya(e){try{return!e||typeof e!="function"?cm:e.name||cm}catch{return cm}}function FS(e){const t=e.exception;if(t){const r=[];try{return t.values.forEach(o=>{o.stacktrace.frames&&r.push(...o.stacktrace.frames)}),r}catch{return}}}const dd={},qS={};function Wo(e,t){dd[e]=dd[e]||[],dd[e].push(t)}function Ko(e,t){if(!qS[e]){qS[e]=!0;try{t()}catch(r){Zo&&we.error(`Error while instrumenting ${e}`,r)}}}function ir(e,t){const r=e&&dd[e];if(r)for(const o of r)try{o(t)}catch(s){Zo&&we.error(`Error while triggering instrumentation handler.
52
+ Type: ${e}
53
+ Name: ${Ya(o)}
54
+ Error:`,s)}}let um=null;function ZR(e){const t="error";Wo(t,e),Ko(t,YR)}function YR(){um=et.onerror,et.onerror=function(e,t,r,o,s){return ir("error",{column:o,error:s,line:r,msg:e,url:t}),um?um.apply(this,arguments):!1},et.onerror.__SENTRY_INSTRUMENTED__=!0}let dm=null;function WR(e){const t="unhandledrejection";Wo(t,e),Ko(t,KR)}function KR(){dm=et.onunhandledrejection,et.onunhandledrejection=function(e){return ir("unhandledrejection",e),dm?dm.apply(this,arguments):!0},et.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Fd(){return yy(et),et}function yy(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Fa,t[Fa]=t[Fa]||{}}const yw=Object.prototype.toString;function qd(e){switch(yw.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Io(e,Error)}}function bs(e,t){return yw.call(e)===`[object ${t}]`}function vw(e){return bs(e,"ErrorEvent")}function GS(e){return bs(e,"DOMError")}function XR(e){return bs(e,"DOMException")}function Qr(e){return bs(e,"String")}function vy(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function by(e){return e===null||vy(e)||typeof e!="object"&&typeof e!="function"}function ss(e){return bs(e,"Object")}function Gd(e){return typeof Event<"u"&&Io(e,Event)}function QR(e){return typeof Element<"u"&&Io(e,Element)}function JR(e){return bs(e,"RegExp")}function Vd(e){return!!(e&&e.then&&typeof e.then=="function")}function eO(e){return ss(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Io(e,t){try{return e instanceof t}catch{return!1}}function bw(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const _y=et,tO=80;function _w(e,t={}){if(!e)return"<unknown>";try{let r=e;const o=5,s=[];let c=0,u=0;const f=" > ",h=f.length;let g;const y=Array.isArray(t)?t:t.keyAttrs,v=!Array.isArray(t)&&t.maxStringLength||tO;for(;r&&c++<o&&(g=nO(r,y),!(g==="html"||c>1&&u+s.length*h+g.length>=v));)s.push(g),u+=g.length,r=r.parentNode;return s.reverse().join(f)}catch{return"<unknown>"}}function nO(e,t){const r=e,o=[];if(!r||!r.tagName)return"";if(_y.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}o.push(r.tagName.toLowerCase());const s=t&&t.length?t.filter(u=>r.getAttribute(u)).map(u=>[u,r.getAttribute(u)]):null;if(s&&s.length)s.forEach(u=>{o.push(`[${u[0]}="${u[1]}"]`)});else{r.id&&o.push(`#${r.id}`);const u=r.className;if(u&&Qr(u)){const f=u.split(/\s+/);for(const h of f)o.push(`.${h}`)}}const c=["aria-label","type","name","title","alt"];for(const u of c){const f=r.getAttribute(u);f&&o.push(`[${u}="${f}"]`)}return o.join("")}function rO(){try{return _y.document.location.href}catch{return""}}function aO(e){if(!_y.HTMLElement)return null;let t=e;const r=5;for(let o=0;o<r;o++){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 es(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function VS(e,t){if(!Array.isArray(e))return"";const r=[];for(let o=0;o<e.length;o++){const s=e[o];try{bw(s)?r.push("[VueViewModel]"):r.push(String(s))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function oO(e,t,r=!1){return Qr(e)?JR(t)?t.test(e):Qr(t)?r?e===t:e.includes(t):!1:!1}function Zd(e,t=[],r=!1){return t.some(o=>oO(e,o,r))}function Rn(e,t,r){if(!(t in e))return;const o=e[t],s=r(o);typeof s=="function"&&Sw(s,o);try{e[t]=s}catch{Zo&&we.log(`Failed to replace method "${t}" in object`,e)}}function $o(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{Zo&&we.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Sw(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,$o(e,"__sentry_original__",t)}catch{}}function Sy(e){return e.__sentry_original__}function xw(e){if(qd(e))return{message:e.message,name:e.name,stack:e.stack,...YS(e)};if(Gd(e)){const t={type:e.type,target:ZS(e.target),currentTarget:ZS(e.currentTarget),...YS(e)};return typeof CustomEvent<"u"&&Io(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function ZS(e){try{return QR(e)?_w(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function YS(e){if(typeof e=="object"&&e!==null){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}else return{}}function iO(e,t=40){const r=Object.keys(xw(e));r.sort();const o=r[0];if(!o)return"[object has no keys]";if(o.length>=t)return es(o,t);for(let s=r.length;s>0;s--){const c=r.slice(0,s).join(", ");if(!(c.length>t))return s===r.length?c:es(c,t)}return""}function Yn(e){return cg(e,new Map)}function cg(e,t){if(sO(e)){const r=t.get(e);if(r!==void 0)return r;const o={};t.set(e,o);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(o[s]=cg(e[s],t));return o}if(Array.isArray(e)){const r=t.get(e);if(r!==void 0)return r;const o=[];return t.set(e,o),e.forEach(s=>{o.push(cg(s,t))}),o}return e}function sO(e){if(!ss(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Cw=1e3;function ec(){return Date.now()/Cw}function lO(){const{performance:e}=et;if(!e||!e.now)return ec;const t=Date.now()-e.now(),r=e.timeOrigin==null?t:e.timeOrigin;return()=>(r+e.now())/Cw}const Jr=lO();(()=>{const{performance:e}=et;if(!e||!e.now)return;const t=3600*1e3,r=e.now(),o=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+r-o):t,c=s<t,u=e.timing&&e.timing.navigationStart,h=typeof u=="number"?Math.abs(u+r-o):t,g=h<t;return c||g?s<=h?e.timeOrigin:u:o})();function Wn(){const e=et,t=e.crypto||e.msCrypto;let r=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{const o=new Uint8Array(1);return t.getRandomValues(o),o[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,o=>(o^(r()&15)>>o/4).toString(16))}function ww(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Ha(e){const{message:t,event_id:r}=e;if(t)return t;const o=ww(e);return o?o.type&&o.value?`${o.type}: ${o.value}`:o.type||o.value||r||"<unknown>":r||"<unknown>"}function ug(e,t,r){const o=e.exception=e.exception||{},s=o.values=o.values||[],c=s[0]=s[0]||{};c.value||(c.value=t||""),c.type||(c.type="Error")}function ls(e,t){const r=ww(e);if(!r)return;const o={type:"generic",handled:!0},s=r.mechanism;if(r.mechanism={...o,...s,...t},t&&"data"in t){const c={...s&&s.data,...t.data};r.mechanism.data=c}}function WS(e){if(cO(e))return!0;try{$o(e,"__sentry_captured__",!0)}catch{}return!1}function cO(e){try{return e.__sentry_captured__}catch{}}var Vr;(function(e){e[e.PENDING=0]="PENDING";const r=1;e[e.RESOLVED=r]="RESOLVED";const o=2;e[e.REJECTED=o]="REJECTED"})(Vr||(Vr={}));function Lo(e){return new Vn(t=>{t(e)})}function Ad(e){return new Vn((t,r)=>{r(e)})}class Vn{constructor(t){Vn.prototype.__init.call(this),Vn.prototype.__init2.call(this),Vn.prototype.__init3.call(this),Vn.prototype.__init4.call(this),this._state=Vr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(r){this._reject(r)}}then(t,r){return new Vn((o,s)=>{this._handlers.push([!1,c=>{if(!t)o(c);else try{o(t(c))}catch(u){s(u)}},c=>{if(!r)s(c);else try{o(r(c))}catch(u){s(u)}}]),this._executeHandlers()})}catch(t){return this.then(r=>r,t)}finally(t){return new Vn((r,o)=>{let s,c;return this.then(u=>{c=!1,s=u,t&&t()},u=>{c=!0,s=u,t&&t()}).then(()=>{if(c){o(s);return}r(s)})})}__init(){this._resolve=t=>{this._setResult(Vr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Vr.REJECTED,t)}}__init3(){this._setResult=(t,r)=>{if(this._state===Vr.PENDING){if(Vd(r)){r.then(this._resolve,this._reject);return}this._state=t,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Vr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(r=>{r[0]||(this._state===Vr.RESOLVED&&r[1](this._value),this._state===Vr.REJECTED&&r[2](this._value),r[0]=!0)})}}}function uO(e){const t=Jr(),r={sid:Wn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>fO(r)};return e&&cs(r,e),r}function cs(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||Jr(),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:Wn()),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 r=e.timestamp-e.started;e.duration=r>=0?r: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 dO(e,t){let r={};e.status==="ok"&&(r={status:"exited"}),cs(e,r)}function fO(e){return Yn({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 KS(){return Wn()}function dg(){return Wn().substring(16)}function Yd(e,t,r=2){if(!t||typeof t!="object"||r<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const o={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(o[s]=Yd(o[s],t[s],r-1));return o}const fg="_sentrySpan";function XS(e,t){t?$o(e,fg,t):delete e[fg]}function QS(e){return e[fg]}const pO=100;class xy{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:KS(),spanId:dg()}}clone(){const t=new xy;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,XS(t,QS(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&&cs(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,r){return this._tags={...this._tags,[t]:r},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,r){return this._extra={...this._extra,[t]:r},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,r){return r===null?delete this._contexts[t]:this._contexts[t]=r,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 r=typeof t=="function"?t(this):t,[o,s]=r instanceof Wa?[r.getScopeData(),r.getRequestSession()]:ss(r)?[t,t.requestSession]:[],{tags:c,extra:u,user:f,contexts:h,level:g,fingerprint:y=[],propagationContext:v}=o||{};return this._tags={...this._tags,...c},this._extra={...this._extra,...u},this._contexts={...this._contexts,...h},f&&Object.keys(f).length&&(this._user=f),g&&(this._level=g),y.length&&(this._fingerprint=y),v&&(this._propagationContext=v),s&&(this._requestSession=s),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,XS(this,void 0),this._attachments=[],this.setPropagationContext({traceId:KS()}),this._notifyScopeListeners(),this}addBreadcrumb(t,r){const o=typeof r=="number"?r:pO;if(o<=0)return this;const s={timestamp:ec(),...t};return this._breadcrumbs.push(s),this._breadcrumbs.length>o&&(this._breadcrumbs=this._breadcrumbs.slice(-o),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:QS(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Yd(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:dg(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,r){const o=r&&r.event_id?r.event_id:Wn();if(!this._client)return we.warn("No client configured on scope - will not capture exception!"),o;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...r,event_id:o},this),o}captureMessage(t,r,o){const s=o&&o.event_id?o.event_id:Wn();if(!this._client)return we.warn("No client configured on scope - will not capture message!"),s;const c=new Error(t);return this._client.captureMessage(t,r,{originalException:t,syntheticException:c,...o,event_id:s},this),s}captureEvent(t,r){const o=r&&r.event_id?r.event_id:Wn();return this._client?(this._client.captureEvent(t,{...r,event_id:o},this),o):(we.warn("No client configured on scope - will not capture event!"),o)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const Wa=xy;function hO(){return Bd("defaultCurrentScope",()=>new Wa)}function mO(){return Bd("defaultIsolationScope",()=>new Wa)}class gO{constructor(t,r){let o;t?o=t:o=new Wa;let s;r?s=r:s=new Wa,this._stack=[{scope:o}],this._isolationScope=s}withScope(t){const r=this._pushScope();let o;try{o=t(r)}catch(s){throw this._popScope(),s}return Vd(o)?o.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),o)}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 us(){const e=Fd(),t=yy(e);return t.stack=t.stack||new gO(hO(),mO())}function yO(e){return us().withScope(e)}function vO(e,t){const r=us();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function JS(e){return us().withScope(()=>e(us().getIsolationScope()))}function bO(){return{withIsolationScope:JS,withScope:yO,withSetScope:vO,withSetIsolationScope:(e,t)=>JS(t),getCurrentScope:()=>us().getScope(),getIsolationScope:()=>us().getIsolationScope()}}function Cy(e){const t=yy(e);return t.acs?t.acs:bO()}function wr(){const e=Fd();return Cy(e).getCurrentScope()}function to(){const e=Fd();return Cy(e).getIsolationScope()}function _O(){return Bd("globalScope",()=>new Wa)}function wy(...e){const t=Fd(),r=Cy(t);if(e.length===2){const[o,s]=e;return o?r.withSetScope(o,s):r.withScope(s)}return r.withScope(e[0])}function zt(){return wr().getClient()}function SO(e){const t=e.getPropagationContext(),{traceId:r,spanId:o,parentSpanId:s}=t;return Yn({trace_id:r,span_id:o,parent_span_id:s})}const xO="_sentryMetrics";function CO(e){const t=e[xO];if(!t)return;const r={};for(const[,[o,s]]of t)(r[o]||(r[o]=[])).push(Yn(s));return r}const wO="sentry.source",EO="sentry.sample_rate",AO="sentry.op",kO="sentry.origin",MO=0,TO=1,NO="sentry-",RO=/^sentry-/;function OO(e){const t=jO(e);if(!t)return;const r=Object.entries(t).reduce((o,[s,c])=>{if(s.match(RO)){const u=s.slice(NO.length);o[u]=c}return o},{});if(Object.keys(r).length>0)return r}function jO(e){if(!(!e||!Qr(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,r)=>{const o=ex(r);return Object.entries(o).forEach(([s,c])=>{t[s]=c}),t},{}):ex(e)}function ex(e){return e.split(",").map(t=>t.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((t,[r,o])=>(r&&o&&(t[r]=o),t),{})}const DO=1;let tx=!1;function PO(e){const{spanId:t,traceId:r,isRemote:o}=e.spanContext(),s=o?t:Ey(e).parent_span_id,c=o?dg():t;return Yn({parent_span_id:s,span_id:c,trace_id:r})}function nx(e){return typeof e=="number"?rx(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?rx(e.getTime()):Jr()}function rx(e){return e>9999999999?e/1e3:e}function Ey(e){if($O(e))return e.getSpanJSON();try{const{spanId:t,traceId:r}=e.spanContext();if(IO(e)){const{attributes:o,startTime:s,name:c,endTime:u,parentSpanId:f,status:h}=e;return Yn({span_id:t,trace_id:r,data:o,description:c,parent_span_id:f,start_timestamp:nx(s),timestamp:nx(u)||void 0,status:zO(h),op:o[AO],origin:o[kO],_metrics_summary:CO(e)})}return{span_id:t,trace_id:r}}catch{return{}}}function IO(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function $O(e){return typeof e.getSpanJSON=="function"}function LO(e){const{traceFlags:t}=e.spanContext();return t===DO}function zO(e){if(!(!e||e.code===MO))return e.code===TO?"ok":e.message||"unknown_error"}const HO="_sentryRootSpan";function Ew(e){return e[HO]||e}function UO(){tx||(Yo(()=>{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.")}),tx=!0)}function BO(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=zt(),r=t&&t.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}const Ay="production",FO="_frozenDsc";function Aw(e,t){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},s=Yn({environment:r.environment||Ay,release:r.release,public_key:o,trace_id:e});return t.emit("createDsc",s),s}function qO(e,t){const r=t.getPropagationContext();return r.dsc||Aw(r.traceId,e)}function GO(e){const t=zt();if(!t)return{};const r=Ew(e),o=r[FO];if(o)return o;const s=r.spanContext().traceState,c=s&&s.get("sentry.dsc"),u=c&&OO(c);if(u)return u;const f=Aw(e.spanContext().traceId,t),h=Ey(r),g=h.data||{},y=g[EO];y!=null&&(f.sample_rate=`${y}`);const v=g[wO],S=h.description;return v!=="url"&&S&&(f.transaction=S),BO()&&(f.sampled=String(LO(r))),t.emit("createDsc",f,r),f}function VO(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){dt&&we.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 ZO=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function YO(e){return e==="http"||e==="https"}function tc(e,t=!1){const{host:r,path:o,pass:s,port:c,projectId:u,protocol:f,publicKey:h}=e;return`${f}://${h}${t&&s?`:${s}`:""}@${r}${c?`:${c}`:""}/${o&&`${o}/`}${u}`}function WO(e){const t=ZO.exec(e);if(!t){Yo(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[r,o,s="",c="",u="",f=""]=t.slice(1);let h="",g=f;const y=g.split("/");if(y.length>1&&(h=y.slice(0,-1).join("/"),g=y.pop()),g){const v=g.match(/^\d+/);v&&(g=v[0])}return kw({host:c,pass:s,path:h,projectId:g,port:u,protocol:r,publicKey:o})}function kw(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function KO(e){if(!Zo)return!0;const{port:t,projectId:r,protocol:o}=e;return["protocol","publicKey","host","projectId"].find(u=>e[u]?!1:(we.error(`Invalid Sentry Dsn: ${u} missing`),!0))?!1:r.match(/^\d+$/)?YO(o)?t&&isNaN(parseInt(t,10))?(we.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(we.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),!1):(we.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Mw(e){const t=typeof e=="string"?WO(e):kw(e);if(!(!t||!KO(t)))return t}function XO(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function r(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let c=0;c<t.length;c++)if(t[c]===s)return!0;return t.push(s),!1}function o(s){if(e)t.delete(s);else for(let c=0;c<t.length;c++)if(t[c]===s){t.splice(c,1);break}}return[r,o]}function Zr(e,t=100,r=1/0){try{return pg("",e,t,r)}catch(o){return{ERROR:`**non-serializable** (${o})`}}}function Tw(e,t=3,r=100*1024){const o=Zr(e,t);return tj(o)>r?Tw(e,t-1,r):o}function pg(e,t,r=1/0,o=1/0,s=XO()){const[c,u]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const f=QO(e,t);if(!f.startsWith("[object "))return f;if(t.__sentry_skip_normalization__)return t;const h=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:r;if(h===0)return f.replace("object ","");if(c(t))return"[Circular ~]";const g=t;if(g&&typeof g.toJSON=="function")try{const x=g.toJSON();return pg("",x,h-1,o,s)}catch{}const y=Array.isArray(t)?[]:{};let v=0;const S=xw(t);for(const x in S){if(!Object.prototype.hasOwnProperty.call(S,x))continue;if(v>=o){y[x]="[MaxProperties ~]";break}const C=S[x];y[x]=pg(x,C,h-1,o,s),v++}return u(t),y}function QO(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(bw(t))return"[VueViewModel]";if(eO(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Ya(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const r=JO(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function JO(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function ej(e){return~-encodeURI(e).split(/%..|./).length}function tj(e){return ej(JSON.stringify(e))}function nc(e,t=[]){return[e,t]}function nj(e,t){const[r,o]=e;return[r,[...o,t]]}function ax(e,t){const r=e[1];for(const o of r){const s=o[0].type;if(t(o,s))return!0}return!1}function hg(e){return et.__SENTRY__&&et.__SENTRY__.encodePolyfill?et.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function rj(e){const[t,r]=e;let o=JSON.stringify(t);function s(c){typeof o=="string"?o=typeof c=="string"?o+c:[hg(o),c]:o.push(typeof c=="string"?hg(c):c)}for(const c of r){const[u,f]=c;if(s(`
55
+ ${JSON.stringify(u)}
56
+ `),typeof f=="string"||f instanceof Uint8Array)s(f);else{let h;try{h=JSON.stringify(f)}catch{h=JSON.stringify(Zr(f))}s(h)}}return typeof o=="string"?o:aj(o)}function aj(e){const t=e.reduce((s,c)=>s+c.length,0),r=new Uint8Array(t);let o=0;for(const s of e)r.set(s,o),o+=s.length;return r}function oj(e){const t=typeof e.data=="string"?hg(e.data):e.data;return[Yn({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const ij={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 ox(e){return ij[e]}function Nw(e){if(!e||!e.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function sj(e,t,r,o){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&o&&{dsn:tc(o)},...s&&{trace:Yn({...s})}}}function lj(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 cj(e,t,r,o){const s=Nw(r),c={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!o&&t&&{dsn:tc(t)}},u="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return nc(c,[u])}function uj(e,t,r,o){const s=Nw(r),c=e.type&&e.type!=="replay_event"?e.type:"event";lj(e,r&&r.sdk);const u=sj(e,s,o,t);return delete e.sdkProcessingMetadata,nc(u,[[{type:c},e]])}function mg(e,t,r,o=0){return new Vn((s,c)=>{const u=e[o];if(t===null||typeof u!="function")s(t);else{const f=u({...t},r);dt&&u.id&&f===null&&we.log(`Event processor "${u.id}" dropped event`),Vd(f)?f.then(h=>mg(e,h,r,o+1).then(s)).then(null,c):mg(e,f,r,o+1).then(s).then(null,c)}})}let Lu,ix,zu;function dj(e){const t=et._sentryDebugIds;if(!t)return{};const r=Object.keys(t);return zu&&r.length===ix||(ix=r.length,zu=r.reduce((o,s)=>{Lu||(Lu={});const c=Lu[s];if(c)o[c[0]]=c[1];else{const u=e(s);for(let f=u.length-1;f>=0;f--){const h=u[f],g=h&&h.filename,y=t[s];if(g&&y){o[g]=y,Lu[s]=[g,y];break}}}return o},{})),zu}function fj(e,t){const{fingerprint:r,span:o,breadcrumbs:s,sdkProcessingMetadata:c}=t;pj(e,t),o&&gj(e,o),yj(e,r),hj(e,s),mj(e,c)}function sx(e,t){const{extra:r,tags:o,user:s,contexts:c,level:u,sdkProcessingMetadata:f,breadcrumbs:h,fingerprint:g,eventProcessors:y,attachments:v,propagationContext:S,transactionName:x,span:C}=t;Hu(e,"extra",r),Hu(e,"tags",o),Hu(e,"user",s),Hu(e,"contexts",c),e.sdkProcessingMetadata=Yd(e.sdkProcessingMetadata,f,2),u&&(e.level=u),x&&(e.transactionName=x),C&&(e.span=C),h.length&&(e.breadcrumbs=[...e.breadcrumbs,...h]),g.length&&(e.fingerprint=[...e.fingerprint,...g]),y.length&&(e.eventProcessors=[...e.eventProcessors,...y]),v.length&&(e.attachments=[...e.attachments,...v]),e.propagationContext={...e.propagationContext,...S}}function Hu(e,t,r){e[t]=Yd(e[t],r,1)}function pj(e,t){const{extra:r,tags:o,user:s,contexts:c,level:u,transactionName:f}=t,h=Yn(r);h&&Object.keys(h).length&&(e.extra={...h,...e.extra});const g=Yn(o);g&&Object.keys(g).length&&(e.tags={...g,...e.tags});const y=Yn(s);y&&Object.keys(y).length&&(e.user={...y,...e.user});const v=Yn(c);v&&Object.keys(v).length&&(e.contexts={...v,...e.contexts}),u&&(e.level=u),f&&e.type!=="transaction"&&(e.transaction=f)}function hj(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}function mj(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function gj(e,t){e.contexts={trace:PO(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:GO(t),...e.sdkProcessingMetadata};const r=Ew(t),o=Ey(r).description;o&&!e.transaction&&e.type==="transaction"&&(e.transaction=o)}function yj(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 vj(e,t,r,o,s,c){const{normalizeDepth:u=3,normalizeMaxBreadth:f=1e3}=e,h={...t,event_id:t.event_id||r.event_id||Wn(),timestamp:t.timestamp||ec()},g=r.integrations||e.integrations.map(w=>w.name);bj(h,e),xj(h,g),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&_j(h,e.stackParser);const y=wj(o,r.captureContext);r.mechanism&&ls(h,r.mechanism);const v=s?s.getEventProcessors():[],S=_O().getScopeData();if(c){const w=c.getScopeData();sx(S,w)}if(y){const w=y.getScopeData();sx(S,w)}const x=[...r.attachments||[],...S.attachments];x.length&&(r.attachments=x),fj(h,S);const C=[...v,...S.eventProcessors];return mg(C,h,r).then(w=>(w&&Sj(w),typeof u=="number"&&u>0?Cj(w,u,f):w))}function bj(e,t){const{environment:r,release:o,dist:s,maxValueLength:c=250}=t;e.environment=e.environment||r||Ay,!e.release&&o&&(e.release=o),!e.dist&&s&&(e.dist=s),e.message&&(e.message=es(e.message,c));const u=e.exception&&e.exception.values&&e.exception.values[0];u&&u.value&&(u.value=es(u.value,c));const f=e.request;f&&f.url&&(f.url=es(f.url,c))}function _j(e,t){const r=dj(t);try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(s=>{r&&s.filename&&(s.debug_id=r[s.filename])})})}catch{}}function Sj(e){const t={};try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.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 r=e.debug_meta.images;Object.entries(t).forEach(([o,s])=>{r.push({type:"sourcemap",code_file:o,debug_id:s})})}function xj(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Cj(e,t,r){if(!e)return null;const o={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:Zr(s.data,t,r)}}))},...e.user&&{user:Zr(e.user,t,r)},...e.contexts&&{contexts:Zr(e.contexts,t,r)},...e.extra&&{extra:Zr(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&o.contexts&&(o.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(o.contexts.trace.data=Zr(e.contexts.trace.data,t,r))),e.spans&&(o.spans=e.spans.map(s=>({...s,...s.data&&{data:Zr(s.data,t,r)}}))),e.contexts&&e.contexts.flags&&o.contexts&&(o.contexts.flags=Zr(e.contexts.flags,3,r)),o}function wj(e,t){if(!t)return e;const r=e?e.clone():new Wa;return r.update(t),r}function Ej(e){if(e)return Aj(e)?{captureContext:e}:Mj(e)?{captureContext:e}:e}function Aj(e){return e instanceof Wa||typeof e=="function"}const kj=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Mj(e){return Object.keys(e).some(t=>kj.includes(t))}function Xo(e,t){return wr().captureException(e,Ej(t))}function Rw(e,t){return wr().captureEvent(e,t)}function Tj(e,t){to().setContext(e,t)}function fm(e,t){to().setTag(e,t)}function Nj(){return to().lastEventId()}function lx(e){const t=zt(),r=to(),o=wr(),{release:s,environment:c=Ay}=t&&t.getOptions()||{},{userAgent:u}=et.navigator||{},f=uO({release:s,environment:c,user:o.getUser()||r.getUser(),...u&&{userAgent:u},...e}),h=r.getSession();return h&&h.status==="ok"&&cs(h,{status:"exited"}),Ow(),r.setSession(f),o.setSession(f),f}function Ow(){const e=to(),t=wr(),r=t.getSession()||e.getSession();r&&dO(r),jw(),e.setSession(),t.setSession()}function jw(){const e=to(),t=wr(),r=zt(),o=t.getSession()||e.getSession();o&&r&&r.captureSession(o)}function cx(e=!1){if(e){Ow();return}jw()}const Rj="7";function Dw(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function Oj(e){return`${Dw(e)}${e.projectId}/envelope/`}function jj(e,t){const r={sentry_version:Rj};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}function Dj(e,t,r){return t||`${Oj(e)}?${jj(e,r)}`}function Pj(e,t){const r=Mw(e);if(!r)return"";const o=`${Dw(r)}embed/error-page/`;let s=`dsn=${tc(r)}`;for(const c in t)if(c!=="dsn"&&c!=="onClose")if(c==="user"){const u=t.user;if(!u)continue;u.name&&(s+=`&name=${encodeURIComponent(u.name)}`),u.email&&(s+=`&email=${encodeURIComponent(u.email)}`)}else s+=`&${encodeURIComponent(c)}=${encodeURIComponent(t[c])}`;return`${o}?${s}`}const ux=[];function Ij(e){const t={};return e.forEach(r=>{const{name:o}=r,s=t[o];s&&!s.isDefaultInstance&&r.isDefaultInstance||(t[o]=r)}),Object.values(t)}function $j(e){const t=e.defaultIntegrations||[],r=e.integrations;t.forEach(u=>{u.isDefaultInstance=!0});let o;if(Array.isArray(r))o=[...t,...r];else if(typeof r=="function"){const u=r(t);o=Array.isArray(u)?u:[u]}else o=t;const s=Ij(o),c=s.findIndex(u=>u.name==="Debug");if(c>-1){const[u]=s.splice(c,1);s.push(u)}return s}function Lj(e,t){const r={};return t.forEach(o=>{o&&Pw(e,o,r)}),r}function dx(e,t){for(const r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)}function Pw(e,t,r){if(r[t.name]){dt&&we.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,ux.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),ux.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const o=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,c)=>o(s,c,e))}if(typeof t.processEvent=="function"){const o=t.processEvent.bind(t),s=Object.assign((c,u)=>o(c,u,e),{id:t.name});e.addEventProcessor(s)}dt&&we.log(`Integration installed: ${t.name}`)}function zj(e){const t=zt();if(!t){dt&&we.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function Hj(e,t,r){const o=[{type:"client_report"},{timestamp:ec(),discarded_events:e}];return nc(t?{dsn:t}:{},[o])}class or extends Error{constructor(t,r="warn"){super(t),this.message=t,this.logLevel=r}}const fx="Not capturing exception because it's already been captured.";class Uj{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Mw(t.dsn):dt&&we.warn("No DSN provided, client will not send events."),this._dsn){const s=Dj(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:s})}const o=["enableTracing","tracesSampleRate","tracesSampler"].find(s=>s in t&&t[s]==null);o&&Yo(()=>{console.warn(`[Sentry] Deprecation warning: \`${o}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,r,o){const s=Wn();if(WS(t))return dt&&we.log(fx),s;const c={event_id:s,...r};return this._process(this.eventFromException(t,c).then(u=>this._captureEvent(u,c,o))),c.event_id}captureMessage(t,r,o,s){const c={event_id:Wn(),...o},u=vy(t)?t:String(t),f=by(t)?this.eventFromMessage(u,r,c):this.eventFromException(t,c);return this._process(f.then(h=>this._captureEvent(h,c,s))),c.event_id}captureEvent(t,r,o){const s=Wn();if(r&&r.originalException&&WS(r.originalException))return dt&&we.log(fx),s;const c={event_id:s,...r},f=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,c,f||o)),c.event_id}captureSession(t){typeof t.release!="string"?dt&&we.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),cs(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(t).then(o=>r.flush(t).then(s=>o&&s))):Lo(!0)}close(t){return this.flush(t).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}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 r=this._integrations[t.name];Pw(this,t,this._integrations),r||dx(this,[t])}sendEvent(t,r={}){this.emit("beforeSendEvent",t,r);let o=uj(t,this._dsn,this._options._metadata,this._options.tunnel);for(const c of r.attachments||[])o=nj(o,oj(c));const s=this.sendEnvelope(o);s&&s.then(c=>this.emit("afterSendEvent",t,c),null)}sendSession(t){const r=cj(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,r,o){if(this._options.sendClientReports){const s=typeof o=="number"?o:1,c=`${t}:${r}`;dt&&we.log(`Recording outcome: "${c}"${s>1?` (${s} times)`:""}`),this._outcomes[c]=(this._outcomes[c]||0)+s}}on(t,r){const o=this._hooks[t]=this._hooks[t]||[];return o.push(r),()=>{const s=o.indexOf(r);s>-1&&o.splice(s,1)}}emit(t,...r){const o=this._hooks[t];o&&o.forEach(s=>s(...r))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,r=>(dt&&we.error("Error while sending envelope:",r),r)):(dt&&we.error("Transport disabled"),Lo({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Lj(this,t),dx(this,t)}_updateSessionFromEvent(t,r){let o=r.level==="fatal",s=!1;const c=r.exception&&r.exception.values;if(c){s=!0;for(const h of c){const g=h.mechanism;if(g&&g.handled===!1){o=!0;break}}}const u=t.status==="ok";(u&&t.errors===0||u&&o)&&(cs(t,{...o&&{status:"crashed"},errors:t.errors||Number(s||o)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Vn(r=>{let o=0;const s=1,c=setInterval(()=>{this._numProcessing==0?(clearInterval(c),r(!0)):(o+=s,t&&o>=t&&(clearInterval(c),r(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,r,o=wr(),s=to()){const c=this.getOptions(),u=Object.keys(this._integrations);return!r.integrations&&u.length>0&&(r.integrations=u),this.emit("preprocessEvent",t,r),t.type||s.setLastEventId(t.event_id||r.event_id),vj(c,t,r,o,this,s).then(f=>{if(f===null)return f;f.contexts={trace:SO(o),...f.contexts};const h=qO(this,o);return f.sdkProcessingMetadata={dynamicSamplingContext:h,...f.sdkProcessingMetadata},f})}_captureEvent(t,r={},o){return this._processEvent(t,r,o).then(s=>s.event_id,s=>{dt&&(s instanceof or&&s.logLevel==="log"?we.log(s.message):we.warn(s))})}_processEvent(t,r,o){const s=this.getOptions(),{sampleRate:c}=s,u=$w(t),f=Iw(t),h=t.type||"error",g=`before send for type \`${h}\``,y=typeof c>"u"?void 0:VO(c);if(f&&typeof y=="number"&&Math.random()>y)return this.recordDroppedEvent("sample_rate","error",t),Ad(new or(`Discarding event because it's not included in the random sample (sampling rate = ${c})`,"log"));const v=h==="replay_event"?"replay":h,x=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,r,o,x).then(C=>{if(C===null)throw this.recordDroppedEvent("event_processor",v,t),new or("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return C;const w=Fj(this,s,C,r);return Bj(w,g)}).then(C=>{if(C===null){if(this.recordDroppedEvent("before_send",v,t),u){const M=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",M)}throw new or(`${g} returned \`null\`, will not send event.`,"log")}const A=o&&o.getSession();if(!u&&A&&this._updateSessionFromEvent(A,C),u){const k=C.sdkProcessingMetadata&&C.sdkProcessingMetadata.spanCountBeforeProcessing||0,M=C.spans?C.spans.length:0,T=k-M;T>0&&this.recordDroppedEvent("before_send","span",T)}const w=C.transaction_info;if(u&&w&&C.transaction!==t.transaction){const k="custom";C.transaction_info={...w,source:k}}return this.sendEvent(C,r),C}).then(null,C=>{throw C instanceof or?C:(this.captureException(C,{data:{__sentry__:!0},originalException:C}),new or(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
57
+ Reason: ${C}`))})}_process(t){this._numProcessing++,t.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([r,o])=>{const[s,c]=r.split(":");return{reason:s,category:c,quantity:o}})}_flushOutcomes(){dt&&we.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){dt&&we.log("No outcomes to send");return}if(!this._dsn){dt&&we.log("No dsn provided, will not send outcomes");return}dt&&we.log("Sending outcomes:",t);const r=Hj(t,this._options.tunnel&&tc(this._dsn));this.sendEnvelope(r)}}function Bj(e,t){const r=`${t} must return \`null\` or a valid event.`;if(Vd(e))return e.then(o=>{if(!ss(o)&&o!==null)throw new or(r);return o},o=>{throw new or(`${t} rejected with ${o}`)});if(!ss(e)&&e!==null)throw new or(r);return e}function Fj(e,t,r,o){const{beforeSend:s,beforeSendTransaction:c,beforeSendSpan:u}=t;if(Iw(r)&&s)return s(r,o);if($w(r)){if(r.spans&&u){const f=[];for(const h of r.spans){const g=u(h);g?f.push(g):(UO(),e.recordDroppedEvent("before_send","span"))}r.spans=f}if(c){if(r.spans){const f=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:f}}return c(r,o)}}return r}function Iw(e){return e.type===void 0}function $w(e){return e.type==="transaction"}function qj(e,t){t.debug===!0&&(dt?we.enable():Yo(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),wr().update(t.initialScope);const o=new e(t);return Gj(o),o.init(),o}function Gj(e){wr().setClient(e)}function Vj(e){const t=[];function r(){return e===void 0||t.length<e}function o(u){return t.splice(t.indexOf(u),1)[0]||Promise.resolve(void 0)}function s(u){if(!r())return Ad(new or("Not adding Promise because buffer limit was reached."));const f=u();return t.indexOf(f)===-1&&t.push(f),f.then(()=>o(f)).then(null,()=>o(f).then(null,()=>{})),f}function c(u){return new Vn((f,h)=>{let g=t.length;if(!g)return f(!0);const y=setTimeout(()=>{u&&u>0&&f(!1)},u);t.forEach(v=>{Lo(v).then(()=>{--g||(clearTimeout(y),f(!0))},h)})})}return{$:t,add:s,drain:c}}const Zj=60*1e3;function Yj(e,t=Date.now()){const r=parseInt(`${e}`,10);if(!isNaN(r))return r*1e3;const o=Date.parse(`${e}`);return isNaN(o)?Zj:o-t}function Wj(e,t){return e[t]||e.all||0}function Kj(e,t,r=Date.now()){return Wj(e,t)>r}function Xj(e,{statusCode:t,headers:r},o=Date.now()){const s={...e},c=r&&r["x-sentry-rate-limits"],u=r&&r["retry-after"];if(c)for(const f of c.trim().split(",")){const[h,g,,,y]=f.split(":",5),v=parseInt(h,10),S=(isNaN(v)?60:v)*1e3;if(!g)s.all=o+S;else for(const x of g.split(";"))x==="metric_bucket"?(!y||y.split(";").includes("custom"))&&(s[x]=o+S):s[x]=o+S}else u?s.all=o+Yj(u,o):t===429&&(s.all=o+60*1e3);return s}const Qj=64;function Jj(e,t,r=Vj(e.bufferSize||Qj)){let o={};const s=u=>r.drain(u);function c(u){const f=[];if(ax(u,(v,S)=>{const x=ox(S);if(Kj(o,x)){const C=px(v,S);e.recordDroppedEvent("ratelimit_backoff",x,C)}else f.push(v)}),f.length===0)return Lo({});const h=nc(u[0],f),g=v=>{ax(h,(S,x)=>{const C=px(S,x);e.recordDroppedEvent(v,ox(x),C)})},y=()=>t({body:rj(h)}).then(v=>(v.statusCode!==void 0&&(v.statusCode<200||v.statusCode>=300)&&dt&&we.warn(`Sentry responded with status code ${v.statusCode} to sent event.`),o=Xj(o,v),v),v=>{throw g("network_error"),v});return r.add(y).then(v=>v,v=>{if(v instanceof or)return dt&&we.error("Skipped sending event because buffer is full."),g("queue_overflow"),Lo({});throw v})}return{send:c,flush:s}}function px(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Lw(e,t,r=[t],o="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:r.map(c=>({name:`${o}:@sentry/${c}`,version:Fa})),version:Fa}),e._metadata=s}const eD=100;function Ka(e,t){const r=zt(),o=to();if(!r)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:c=eD}=r.getOptions();if(c<=0)return;const f={timestamp:ec(),...e},h=s?Yo(()=>s(f,t)):f;h!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",h,t),o.addBreadcrumb(h,c))}let hx;const tD="FunctionToString",mx=new WeakMap,nD=(()=>({name:tD,setupOnce(){hx=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Sy(this),r=mx.has(zt())&&t!==void 0?t:this;return hx.apply(r,e)}}catch{}},setup(e){mx.set(e,!0)}})),rD=nD,aD=[/^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$/],oD="InboundFilters",iD=((e={})=>({name:oD,processEvent(t,r,o){const s=o.getOptions(),c=lD(e,s);return cD(t,c)?null:t}})),sD=iD;function lD(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:aD],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function cD(e,t){return t.ignoreInternal&&mD(e)?(dt&&we.warn(`Event dropped due to being internal Sentry Error.
58
+ Event: ${Ha(e)}`),!0):uD(e,t.ignoreErrors)?(dt&&we.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
59
+ Event: ${Ha(e)}`),!0):yD(e)?(dt&&we.warn(`Event dropped due to not having an error message, error type or stacktrace.
60
+ Event: ${Ha(e)}`),!0):dD(e,t.ignoreTransactions)?(dt&&we.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
61
+ Event: ${Ha(e)}`),!0):fD(e,t.denyUrls)?(dt&&we.warn(`Event dropped due to being matched by \`denyUrls\` option.
62
+ Event: ${Ha(e)}.
63
+ Url: ${kd(e)}`),!0):pD(e,t.allowUrls)?!1:(dt&&we.warn(`Event dropped due to not being matched by \`allowUrls\` option.
64
+ Event: ${Ha(e)}.
65
+ Url: ${kd(e)}`),!0)}function uD(e,t){return e.type||!t||!t.length?!1:hD(e).some(r=>Zd(r,t))}function dD(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const r=e.transaction;return r?Zd(r,t):!1}function fD(e,t){if(!t||!t.length)return!1;const r=kd(e);return r?Zd(r,t):!1}function pD(e,t){if(!t||!t.length)return!0;const r=kd(e);return r?Zd(r,t):!0}function hD(e){const t=[];e.message&&t.push(e.message);let r;try{r=e.exception.values[e.exception.values.length-1]}catch{}return r&&r.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`)),t}function mD(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function gD(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&r.filename!=="<anonymous>"&&r.filename!=="[native code]")return r.filename||null}return null}function kd(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?gD(t):null}catch{return dt&&we.error(`Cannot extract url for event ${Ha(e)}`),null}}function yD(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 vD(e,t,r=250,o,s,c,u){if(!c.exception||!c.exception.values||!u||!Io(u.originalException,Error))return;const f=c.exception.values.length>0?c.exception.values[c.exception.values.length-1]:void 0;f&&(c.exception.values=bD(gg(e,t,s,u.originalException,o,c.exception.values,f,0),r))}function gg(e,t,r,o,s,c,u,f){if(c.length>=r+1)return c;let h=[...c];if(Io(o[s],Error)){gx(u,f);const g=e(t,o[s]),y=h.length;yx(g,s,y,f),h=gg(e,t,r,o[s],s,[g,...h],g,y)}return Array.isArray(o.errors)&&o.errors.forEach((g,y)=>{if(Io(g,Error)){gx(u,f);const v=e(t,g),S=h.length;yx(v,`errors[${y}]`,S,f),h=gg(e,t,r,g,s,[v,...h],v,S)}}),h}function gx(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 yx(e,t,r,o){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:o}}function bD(e,t){return e.map(r=>(r.value&&(r.value=es(r.value,t)),r))}function pm(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",o=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:o,relative:t[5]+r+o}}function _D(e){const t="console";Wo(t,e),Ko(t,SD)}function SD(){"console"in et&&lg.forEach(function(e){e in et.console&&Rn(et.console,e,function(t){return Ed[e]=t,function(...r){ir("console",{args:r,level:e});const s=Ed[e];s&&s.apply(et.console,r)}})})}function xD(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const CD="Dedupe",wD=(()=>{let e;return{name:CD,processEvent(t){if(t.type)return t;try{if(AD(t,e))return dt&&we.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),ED=wD;function AD(e,t){return t?!!(kD(e,t)||MD(e,t)):!1}function kD(e,t){const r=e.message,o=t.message;return!(!r&&!o||r&&!o||!r&&o||r!==o||!Hw(e,t)||!zw(e,t))}function MD(e,t){const r=vx(t),o=vx(e);return!(!r||!o||r.type!==o.type||r.value!==o.value||!Hw(e,t)||!zw(e,t))}function zw(e,t){let r=FS(e),o=FS(t);if(!r&&!o)return!0;if(r&&!o||!r&&o||(r=r,o=o,o.length!==r.length))return!1;for(let s=0;s<o.length;s++){const c=o[s],u=r[s];if(c.filename!==u.filename||c.lineno!==u.lineno||c.colno!==u.colno||c.function!==u.function)return!1}return!0}function Hw(e,t){let r=e.fingerprint,o=t.fingerprint;if(!r&&!o)return!0;if(r&&!o||!r&&o)return!1;r=r,o=o;try{return r.join("")===o.join("")}catch{return!1}}function vx(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Uw(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const yg=et;function Bw(){if(!("fetch"in yg))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function vg(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function TD(){if(typeof EdgeRuntime=="string")return!0;if(!Bw())return!1;if(vg(yg.fetch))return!0;let e=!1;const t=yg.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=vg(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){Zo&&we.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function ND(e,t){const r="fetch";Wo(r,e),Ko(r,()=>RD(void 0,t))}function RD(e,t=!1){t&&!TD()||Rn(et,"fetch",function(r){return function(...o){const s=new Error,{method:c,url:u}=OD(o),f={args:o,fetchData:{method:c,url:u},startTimestamp:Jr()*1e3,virtualError:s};return ir("fetch",{...f}),r.apply(et,o).then(async h=>(ir("fetch",{...f,endTimestamp:Jr()*1e3,response:h}),h),h=>{throw ir("fetch",{...f,endTimestamp:Jr()*1e3,error:h}),qd(h)&&h.stack===void 0&&(h.stack=s.stack,$o(h,"framesToPop",1)),h})}})}function bg(e,t){return!!e&&typeof e=="object"&&!!e[t]}function bx(e){return typeof e=="string"?e:e?bg(e,"url")?e.url:e.toString?e.toString():"":""}function OD(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[r,o]=e;return{url:bx(r),method:bg(o,"method")?String(o.method).toUpperCase():"GET"}}const t=e[0];return{url:bx(t),method:bg(t,"method")?String(t.method).toUpperCase():"GET"}}function jD(){return"npm"}const Uu=et;function DD(){const e=Uu.chrome,t=e&&e.app&&e.app.runtime,r="history"in Uu&&!!Uu.history.pushState&&!!Uu.history.replaceState;return!t&&r}const Le=et;let _g=0;function Fw(){return _g>0}function PD(){_g++,setTimeout(()=>{_g--})}function ds(e,t={}){function r(s){return typeof s=="function"}if(!r(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(Sy(e))return e}catch{return e}const o=function(...s){try{const c=s.map(u=>ds(u,t));return e.apply(this,c)}catch(c){throw PD(),wy(u=>{u.addEventProcessor(f=>(t.mechanism&&(ug(f,void 0),ls(f,t.mechanism)),f.extra={...f.extra,arguments:s},f)),Xo(c)}),c}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(o[s]=e[s])}catch{}Sw(o,e),$o(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get(){return e.name}})}catch{}return o}const qa=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ky(e,t){const r=My(e,t),o={type:HD(t),value:UD(t)};return r.length&&(o.stacktrace={frames:r}),o.type===void 0&&o.value===""&&(o.value="Unrecoverable error caught"),o}function ID(e,t,r,o){const s=zt(),c=s&&s.getOptions().normalizeDepth,u=VD(t),f={__serialized__:Tw(t,c)};if(u)return{exception:{values:[ky(e,u)]},extra:f};const h={exception:{values:[{type:Gd(t)?t.constructor.name:o?"UnhandledRejection":"Error",value:qD(t,{isUnhandledRejection:o})}]},extra:f};if(r){const g=My(e,r);g.length&&(h.exception.values[0].stacktrace={frames:g})}return h}function hm(e,t){return{exception:{values:[ky(e,t)]}}}function My(e,t){const r=t.stacktrace||t.stack||"",o=LD(t),s=zD(t);try{return e(r,o,s)}catch{}return[]}const $D=/Minified React error #\d+;/i;function LD(e){return e&&$D.test(e.message)?1:0}function zD(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function qw(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function HD(e){const t=e&&e.name;return!t&&qw(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function UD(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:qw(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function BD(e,t,r,o){const s=r&&r.syntheticException||void 0,c=Ty(e,t,s,o);return ls(c),c.level="error",r&&r.event_id&&(c.event_id=r.event_id),Lo(c)}function FD(e,t,r="info",o,s){const c=o&&o.syntheticException||void 0,u=Sg(e,t,c,s);return u.level=r,o&&o.event_id&&(u.event_id=o.event_id),Lo(u)}function Ty(e,t,r,o,s){let c;if(vw(t)&&t.error)return hm(e,t.error);if(GS(t)||XR(t)){const u=t;if("stack"in t)c=hm(e,t);else{const f=u.name||(GS(u)?"DOMError":"DOMException"),h=u.message?`${f}: ${u.message}`:f;c=Sg(e,h,r,o),ug(c,h)}return"code"in u&&(c.tags={...c.tags,"DOMException.code":`${u.code}`}),c}return qd(t)?hm(e,t):ss(t)||Gd(t)?(c=ID(e,t,r,s),ls(c,{synthetic:!0}),c):(c=Sg(e,t,r,o),ug(c,`${t}`),ls(c,{synthetic:!0}),c)}function Sg(e,t,r,o){const s={};if(o&&r){const c=My(e,r);c.length&&(s.exception={values:[{value:t,stacktrace:{frames:c}}]}),ls(s,{synthetic:!0})}if(vy(t)){const{__sentry_template_string__:c,__sentry_template_values__:u}=t;return s.logentry={message:c,params:u},s}return s.message=t,s}function qD(e,{isUnhandledRejection:t}){const r=iO(e),o=t?"promise rejection":"exception";return vw(e)?`Event \`ErrorEvent\` captured as ${o} with message \`${e.message}\``:Gd(e)?`Event \`${GD(e)}\` (type=${e.type}) captured as ${o}`:`Object captured as ${o} with keys: ${r}`}function GD(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function VD(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];if(r instanceof Error)return r}}function ZD(e,{metadata:t,tunnel:r,dsn:o}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!o&&{dsn:tc(o)}},c=YD(e);return nc(s,[c])}function YD(e){return[{type:"user_report"},e]}class WD extends Uj{constructor(t){const r={parentSpanIsAlwaysRootSpan:!0,...t},o=Le.SENTRY_SDK_SOURCE||jD();Lw(r,"browser",["browser"],o),super(r),r.sendClientReports&&Le.document&&Le.document.addEventListener("visibilitychange",()=>{Le.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,r){return BD(this._options.stackParser,t,r,this._options.attachStacktrace)}eventFromMessage(t,r="info",o){return FD(this._options.stackParser,t,r,o,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){qa&&we.warn("SDK not enabled, will not capture user feedback.");return}const r=ZD(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(r)}_prepareEvent(t,r,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,r,o)}}const KD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,on=et,XD=1e3;let _x,xg,Cg;function QD(e){Wo("dom",e),Ko("dom",JD)}function JD(){if(!on.document)return;const e=ir.bind(null,"dom"),t=Sx(e,!0);on.document.addEventListener("click",t,!1),on.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(r=>{const s=on[r],c=s&&s.prototype;!c||!c.hasOwnProperty||!c.hasOwnProperty("addEventListener")||(Rn(c,"addEventListener",function(u){return function(f,h,g){if(f==="click"||f=="keypress")try{const y=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},v=y[f]=y[f]||{refCount:0};if(!v.handler){const S=Sx(e);v.handler=S,u.call(this,f,S,g)}v.refCount++}catch{}return u.call(this,f,h,g)}}),Rn(c,"removeEventListener",function(u){return function(f,h,g){if(f==="click"||f=="keypress")try{const y=this.__sentry_instrumentation_handlers__||{},v=y[f];v&&(v.refCount--,v.refCount<=0&&(u.call(this,f,v.handler,g),v.handler=void 0,delete y[f]),Object.keys(y).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return u.call(this,f,h,g)}}))})}function e4(e){if(e.type!==xg)return!1;try{if(!e.target||e.target._sentryId!==Cg)return!1}catch{}return!0}function t4(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Sx(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const o=n4(r);if(t4(r.type,o))return;$o(r,"_sentryCaptured",!0),o&&!o._sentryId&&$o(o,"_sentryId",Wn());const s=r.type==="keypress"?"input":r.type;e4(r)||(e({event:r,name:s,global:t}),xg=r.type,Cg=o?o._sentryId:void 0),clearTimeout(_x),_x=on.setTimeout(()=>{Cg=void 0,xg=void 0},XD)}}function n4(e){try{return e.target}catch{return null}}let Bu;function Gw(e){const t="history";Wo(t,e),Ko(t,r4)}function r4(){if(!DD())return;const e=on.onpopstate;on.onpopstate=function(...r){const o=on.location.href,s=Bu;if(Bu=o,ir("history",{from:s,to:o}),e)try{return e.apply(this,r)}catch{}};function t(r){return function(...o){const s=o.length>2?o[2]:void 0;if(s){const c=Bu,u=String(s);Bu=u,ir("history",{from:c,to:u})}return r.apply(this,o)}}Rn(on.history,"pushState",t),Rn(on.history,"replaceState",t)}const fd={};function a4(e){const t=fd[e];if(t)return t;let r=on[e];if(vg(r))return fd[e]=r.bind(on);const o=on.document;if(o&&typeof o.createElement=="function")try{const s=o.createElement("iframe");s.hidden=!0,o.head.appendChild(s);const c=s.contentWindow;c&&c[e]&&(r=c[e]),o.head.removeChild(s)}catch(s){KD&&we.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return r&&(fd[e]=r.bind(on))}function xx(e){fd[e]=void 0}const Dl="__sentry_xhr_v3__";function o4(e){Wo("xhr",e),Ko("xhr",i4)}function i4(){if(!on.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,r,o){const s=new Error,c=Jr()*1e3,u=Qr(o[0])?o[0].toUpperCase():void 0,f=s4(o[1]);if(!u||!f)return t.apply(r,o);r[Dl]={method:u,url:f,request_headers:{}},u==="POST"&&f.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const h=()=>{const g=r[Dl];if(g&&r.readyState===4){try{g.status_code=r.status}catch{}const y={endTimestamp:Jr()*1e3,startTimestamp:c,xhr:r,virtualError:s};ir("xhr",y)}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?r.onreadystatechange=new Proxy(r.onreadystatechange,{apply(g,y,v){return h(),g.apply(y,v)}}):r.addEventListener("readystatechange",h),r.setRequestHeader=new Proxy(r.setRequestHeader,{apply(g,y,v){const[S,x]=v,C=y[Dl];return C&&Qr(S)&&Qr(x)&&(C.request_headers[S.toLowerCase()]=x),g.apply(y,v)}}),t.apply(r,o)}}),e.send=new Proxy(e.send,{apply(t,r,o){const s=r[Dl];if(!s)return t.apply(r,o);o[0]!==void 0&&(s.body=o[0]);const c={startTimestamp:Jr()*1e3,xhr:r};return ir("xhr",c),t.apply(r,o)}})}function s4(e){if(Qr(e))return e;try{return e.toString()}catch{}}function l4(e,t=a4("fetch")){let r=0,o=0;function s(c){const u=c.body.length;r+=u,o++;const f={body:c.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&o<15,...e.fetchOptions};if(!t)return xx("fetch"),Ad("No fetch implementation available");try{return t(e.url,f).then(h=>(r-=u,o--,{statusCode:h.status,headers:{"x-sentry-rate-limits":h.headers.get("X-Sentry-Rate-Limits"),"retry-after":h.headers.get("Retry-After")}}))}catch(h){return xx("fetch"),r-=u,o--,Ad(h)}}return Jj(e,s)}const c4=30,u4=50;function wg(e,t,r,o){const s={filename:e,function:t==="<anonymous>"?Po:t,in_app:!0};return r!==void 0&&(s.lineno=r),o!==void 0&&(s.colno=o),s}const d4=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,f4=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,p4=/\((\S*)(?::(\d+))(?::(\d+))\)/,h4=e=>{const t=d4.exec(e);if(t){const[,o,s,c]=t;return wg(o,Po,+s,+c)}const r=f4.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const u=p4.exec(r[2]);u&&(r[2]=u[1],r[3]=u[2],r[4]=u[3])}const[s,c]=Vw(r[1]||Po,r[2]);return wg(c,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},m4=[c4,h4],g4=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,y4=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,v4=e=>{const t=g4.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const c=y4.exec(t[3]);c&&(t[1]=t[1]||"eval",t[3]=c[1],t[4]=c[2],t[5]="")}let o=t[3],s=t[1]||Po;return[s,o]=Vw(s,o),wg(o,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},b4=[u4,v4],_4=[m4,b4],S4=gw(..._4),Vw=(e,t)=>{const r=e.indexOf("safari-extension")!==-1,o=e.indexOf("safari-web-extension")!==-1;return r||o?[e.indexOf("@")!==-1?e.split("@")[0]:Po,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Fu=1024,x4="Breadcrumbs",C4=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:x4,setup(r){t.console&&_D(k4(r)),t.dom&&QD(A4(r,t.dom)),t.xhr&&o4(M4(r)),t.fetch&&ND(T4(r)),t.history&&Gw(N4(r)),t.sentry&&r.on("beforeSendEvent",E4(r))}}}),w4=C4;function E4(e){return function(r){zt()===e&&Ka({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:Ha(r)},{event:r})}}function A4(e,t){return function(o){if(zt()!==e)return;let s,c,u=typeof t=="object"?t.serializeAttribute:void 0,f=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;f&&f>Fu&&(qa&&we.warn(`\`dom.maxStringLength\` cannot exceed ${Fu}, but a value of ${f} was configured. Sentry will use ${Fu} instead.`),f=Fu),typeof u=="string"&&(u=[u]);try{const g=o.event,y=R4(g)?g.target:g;s=_w(y,{keyAttrs:u,maxStringLength:f}),c=aO(y)}catch{s="<unknown>"}if(s.length===0)return;const h={category:`ui.${o.name}`,message:s};c&&(h.data={"ui.component_name":c}),Ka(h,{event:o.event,name:o.name,global:o.global})}}function k4(e){return function(r){if(zt()!==e)return;const o={category:"console",data:{arguments:r.args,logger:"console"},level:xD(r.level),message:VS(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)o.message=`Assertion failed: ${VS(r.args.slice(1)," ")||"console.assert"}`,o.data.arguments=r.args.slice(1);else return;Ka(o,{input:r.args,level:r.level})}}function M4(e){return function(r){if(zt()!==e)return;const{startTimestamp:o,endTimestamp:s}=r,c=r.xhr[Dl];if(!o||!s||!c)return;const{method:u,url:f,status_code:h,body:g}=c,y={method:u,url:f,status_code:h},v={xhr:r.xhr,input:g,startTimestamp:o,endTimestamp:s},S=Uw(h);Ka({category:"xhr",data:y,type:"http",level:S},v)}}function T4(e){return function(r){if(zt()!==e)return;const{startTimestamp:o,endTimestamp:s}=r;if(s&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const c=r.fetchData,u={data:r.error,input:r.args,startTimestamp:o,endTimestamp:s};Ka({category:"fetch",data:c,level:"error",type:"http"},u)}else{const c=r.response,u={...r.fetchData,status_code:c&&c.status},f={input:r.args,response:c,startTimestamp:o,endTimestamp:s},h=Uw(u.status_code);Ka({category:"fetch",data:u,type:"http",level:h},f)}}}function N4(e){return function(r){if(zt()!==e)return;let o=r.from,s=r.to;const c=pm(Le.location.href);let u=o?pm(o):void 0;const f=pm(s);(!u||!u.path)&&(u=c),c.protocol===f.protocol&&c.host===f.host&&(s=f.relative),c.protocol===u.protocol&&c.host===u.host&&(o=u.relative),Ka({category:"navigation",data:{from:o,to:s}})}}function R4(e){return!!e&&!!e.target}const O4=["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"],j4="BrowserApiErrors",D4=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:j4,setupOnce(){t.setTimeout&&Rn(Le,"setTimeout",Cx),t.setInterval&&Rn(Le,"setInterval",Cx),t.requestAnimationFrame&&Rn(Le,"requestAnimationFrame",P4),t.XMLHttpRequest&&"XMLHttpRequest"in Le&&Rn(XMLHttpRequest.prototype,"send",I4);const r=t.eventTarget;r&&(Array.isArray(r)?r:O4).forEach($4)}}}),Zw=D4;function Cx(e){return function(...t){const r=t[0];return t[0]=ds(r,{mechanism:{data:{function:Ya(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function P4(e){return function(t){return e.apply(this,[ds(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Ya(e)},handled:!1,type:"instrument"}})])}}function I4(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in r&&typeof r[s]=="function"&&Rn(r,s,function(c){const u={mechanism:{data:{function:s,handler:Ya(c)},handled:!1,type:"instrument"}},f=Sy(c);return f&&(u.mechanism.data.handler=Ya(f)),ds(c,u)})}),e.apply(this,t)}}function $4(e){const r=Le[e],o=r&&r.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(Rn(o,"addEventListener",function(s){return function(c,u,f){try{L4(u)&&(u.handleEvent=ds(u.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ya(u),target:e},handled:!1,type:"instrument"}}))}catch{}return s.apply(this,[c,ds(u,{mechanism:{data:{function:"addEventListener",handler:Ya(u),target:e},handled:!1,type:"instrument"}}),f])}}),Rn(o,"removeEventListener",function(s){return function(c,u,f){try{const h=u.__sentry_wrapped__;h&&s.call(this,c,h,f)}catch{}return s.call(this,c,u,f)}}))}function L4(e){return typeof e.handleEvent=="function"}const z4=()=>({name:"BrowserSession",setupOnce(){if(typeof Le.document>"u"){qa&&we.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}lx({ignoreDuration:!0}),cx(),Gw(({from:e,to:t})=>{e!==void 0&&e!==t&&(lx({ignoreDuration:!0}),cx())})}}),H4="GlobalHandlers",U4=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:H4,setupOnce(){Error.stackTraceLimit=50},setup(r){t.onerror&&(F4(r),wx("onerror")),t.onunhandledrejection&&(q4(r),wx("onunhandledrejection"))}}}),B4=U4;function F4(e){ZR(t=>{const{stackParser:r,attachStacktrace:o}=Yw();if(zt()!==e||Fw())return;const{msg:s,url:c,line:u,column:f,error:h}=t,g=Z4(Ty(r,h||s,void 0,o,!1),c,u,f);g.level="error",Rw(g,{originalException:h,mechanism:{handled:!1,type:"onerror"}})})}function q4(e){WR(t=>{const{stackParser:r,attachStacktrace:o}=Yw();if(zt()!==e||Fw())return;const s=G4(t),c=by(s)?V4(s):Ty(r,s,void 0,o,!0);c.level="error",Rw(c,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function G4(e){if(by(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 V4(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Z4(e,t,r,o){const s=e.exception=e.exception||{},c=s.values=s.values||[],u=c[0]=c[0]||{},f=u.stacktrace=u.stacktrace||{},h=f.frames=f.frames||[],g=o,y=r,v=Qr(t)&&t.length>0?t:rO();return h.length===0&&h.push({colno:g,filename:v,function:Po,in_app:!0,lineno:y}),e}function wx(e){qa&&we.log(`Global Handler attached: ${e}`)}function Yw(){const e=zt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Y4=()=>({name:"HttpContext",preprocessEvent(e){if(!Le.navigator&&!Le.location&&!Le.document)return;const t=e.request&&e.request.url||Le.location&&Le.location.href,{referrer:r}=Le.document||{},{userAgent:o}=Le.navigator||{},s={...e.request&&e.request.headers,...r&&{Referer:r},...o&&{"User-Agent":o}},c={...e.request,...t&&{url:t},headers:s};e.request=c}}),W4="cause",K4=5,X4="LinkedErrors",Q4=((e={})=>{const t=e.limit||K4,r=e.key||W4;return{name:X4,preprocessEvent(o,s,c){const u=c.getOptions();vD(ky,u.stackParser,u.maxValueLength,r,t,o,s)}}}),J4=Q4;function e3(e){const t=[sD(),rD(),Zw(),w4(),B4(),J4(),ED(),Y4()];return e.autoSessionTracking!==!1&&t.push(z4()),t}function t3(e={}){const t={defaultIntegrations:e3(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Le.SENTRY_RELEASE&&Le.SENTRY_RELEASE.id?Le.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function n3(){const e=typeof Le.window<"u"&&Le;if(!e)return!1;const t=e.chrome?"chrome":"browser",r=e[t],o=r&&r.runtime&&r.runtime.id,s=Le.location&&Le.location.href||"",c=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],u=!!o&&Le===Le.top&&c.some(h=>s.startsWith(`${h}//`)),f=typeof e.nw<"u";return!!o&&!u&&!f}function r3(e={}){const t=t3(e);if(!t.skipBrowserExtensionCheck&&n3()){Yo(()=>{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}qa&&(Bw()||we.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const r={...t,stackParser:GR(t.stackParser||S4),integrations:$j(t),transport:t.transport||l4};return qj(WD,r)}function Ex(e={}){if(!Le.document){qa&&we.error("Global document not defined in showReportDialog call");return}const t=wr(),r=t.getClient(),o=r&&r.getDsn();if(!o){qa&&we.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const f=Nj();f&&(e.eventId=f)}const s=Le.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=Pj(o,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:c}=e;if(c){const f=h=>{if(h.data==="__sentry_reportdialog_closed__")try{c()}finally{Le.removeEventListener("message",f)}};Le.addEventListener("message",f)}const u=Le.document.head||Le.document.body;u?u.appendChild(s):qa&&we.error("Not injecting report dialog. No injection point found in HTML")}const a3={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"},Ax=Le;async function o3(e,t){const r=a3[e],o=Ax.Sentry=Ax.Sentry||{},s=o[e];if(typeof s=="function"&&!("_isShim"in s))return s;const c=i3(r),u=Le.document.createElement("script");u.src=c,u.crossOrigin="anonymous",u.referrerPolicy="origin";const f=new Promise((v,S)=>{u.addEventListener("load",()=>v()),u.addEventListener("error",S)}),h=Le.document.currentScript,g=Le.document.body||Le.document.head||h&&h.parentElement;if(g)g.appendChild(u);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await f}catch{throw new Error(`Error when loading integration: ${e}`)}const y=o[e];if(typeof y!="function")throw new Error(`Could not load integration: ${e}`);return y}function i3(e){const t=zt(),r=t&&t.getOptions(),o=r&&r.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${Fa}/${e}.min.js`,o).toString()}function s3(e){const t={...e};return Lw(t,"react"),Tj("react",{version:b.version}),r3(t)}function l3(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function c3(e,t){const r=new WeakSet;function o(s,c){if(!r.has(s)){if(s.cause)return r.add(s),o(s.cause,c);s.cause=c}}o(e,t)}function u3(e,{componentStack:t},r){if(l3(b.version)&&qd(e)&&t){const o=new Error(e.message);o.name=`React ErrorBoundary ${e.name}`,o.stack=t,c3(e,o)}return Xo(e,{...r,captureContext:{contexts:{react:{componentStack:t}}}})}var mm={exports:{}},tt={};/** @license React v16.13.1
66
+ * react-is.production.min.js
67
+ *
68
+ * Copyright (c) Facebook, Inc. and its affiliates.
69
+ *
70
+ * This source code is licensed under the MIT license found in the
71
+ * LICENSE file in the root directory of this source tree.
72
+ */var kx;function d3(){if(kx)return tt;kx=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,g=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function T(O){if(typeof O=="object"&&O!==null){var P=O.$$typeof;switch(P){case t:switch(O=O.type,O){case h:case g:case o:case c:case s:case v:return O;default:switch(O=O&&O.$$typeof,O){case f:case y:case C:case x:case u:return O;default:return P}}case r:return P}}}function N(O){return T(O)===g}return tt.AsyncMode=h,tt.ConcurrentMode=g,tt.ContextConsumer=f,tt.ContextProvider=u,tt.Element=t,tt.ForwardRef=y,tt.Fragment=o,tt.Lazy=C,tt.Memo=x,tt.Portal=r,tt.Profiler=c,tt.StrictMode=s,tt.Suspense=v,tt.isAsyncMode=function(O){return N(O)||T(O)===h},tt.isConcurrentMode=N,tt.isContextConsumer=function(O){return T(O)===f},tt.isContextProvider=function(O){return T(O)===u},tt.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},tt.isForwardRef=function(O){return T(O)===y},tt.isFragment=function(O){return T(O)===o},tt.isLazy=function(O){return T(O)===C},tt.isMemo=function(O){return T(O)===x},tt.isPortal=function(O){return T(O)===r},tt.isProfiler=function(O){return T(O)===c},tt.isStrictMode=function(O){return T(O)===s},tt.isSuspense=function(O){return T(O)===v},tt.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===o||O===g||O===c||O===s||O===v||O===S||typeof O=="object"&&O!==null&&(O.$$typeof===C||O.$$typeof===x||O.$$typeof===u||O.$$typeof===f||O.$$typeof===y||O.$$typeof===w||O.$$typeof===k||O.$$typeof===M||O.$$typeof===A)},tt.typeOf=T,tt}var Mx;function f3(){return Mx||(Mx=1,mm.exports=d3()),mm.exports}var gm,Tx;function p3(){if(Tx)return gm;Tx=1;var e=f3(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[e.ForwardRef]=o,c[e.Memo]=s;function u(C){return e.isMemo(C)?s:c[C.$$typeof]||t}var f=Object.defineProperty,h=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,S=Object.prototype;function x(C,A,w){if(typeof A!="string"){if(S){var k=v(A);k&&k!==S&&x(C,k,w)}var M=h(A);g&&(M=M.concat(g(A)));for(var T=u(C),N=u(A),O=0;O<M.length;++O){var P=M[O];if(!r[P]&&!(w&&w[P])&&!(N&&N[P])&&!(T&&T[P])){var I=y(A,P);try{f(C,P,I)}catch{}}}}return C}return gm=x,gm}p3();const h3=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nx={componentStack:null,error:null,eventId:null};class Ny extends b.Component{constructor(t){super(t),Ny.prototype.__init.call(this),this.state=Nx,this._openFallbackReportDialog=!0;const r=zt();r&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=r.on("afterSendEvent",o=>{!o.type&&this._lastEventId&&o.event_id===this._lastEventId&&Ex({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,r){const{componentStack:o}=r,s=o??void 0,{beforeCapture:c,onError:u,showDialog:f,dialogOptions:h}=this.props;wy(g=>{c&&c(g,t,s);const y=this.props.handled!=null?this.props.handled:!!this.props.fallback,v=u3(t,r,{mechanism:{handled:y}});u&&u(t,s,v),f&&(this._lastEventId=v,this._openFallbackReportDialog&&Ex({...h,eventId:v})),this.setState({error:t,componentStack:o,eventId:v})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:r,eventId:o}=this.state,{onUnmount:s}=this.props;s&&s(t,r,o),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:r,componentStack:o,eventId:s}=this.state;t&&t(r,o,s),this.setState(Nx)}}render(){const{fallback:t,children:r}=this.props,o=this.state;if(o.error){let s;return typeof t=="function"?s=b.createElement(t,{error:o.error,componentStack:o.componentStack,resetError:this.resetErrorBoundary,eventId:o.eventId}):s=t,b.isValidElement(s)?s:(t&&h3&&we.warn("fallback did not produce a valid ReactElement"),null)}return typeof r=="function"?r():r}}function Ww(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Ww(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Kw(){for(var e,t,r=0,o="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Ww(e))&&(o&&(o+=" "),o+=t);return o}const Ry="-",m3=e=>{const t=y3(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{const f=u.split(Ry);return f[0]===""&&f.length!==1&&f.shift(),Xw(f,t)||g3(u)},getConflictingClassGroupIds:(u,f)=>{const h=r[u]||[];return f&&o[u]?[...h,...o[u]]:h}}},Xw=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),s=o?Xw(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;const c=e.join(Ry);return t.validators.find(({validator:u})=>u(c))?.classGroupId},Rx=/^\[(.+)\]$/,g3=e=>{if(Rx.test(e)){const t=Rx.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},y3=e=>{const{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return b3(Object.entries(e.classGroups),r).forEach(([c,u])=>{Eg(u,o,c,t)}),o},Eg=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){const c=s===""?t:Ox(t,s);c.classGroupId=r;return}if(typeof s=="function"){if(v3(s)){Eg(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([c,u])=>{Eg(u,Ox(t,c),r,o)})})},Ox=(e,t)=>{let r=e;return t.split(Ry).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},v3=e=>e.isThemeGetter,b3=(e,t)=>t?e.map(([r,o])=>{const s=o.map(c=>typeof c=="string"?t+c:typeof c=="object"?Object.fromEntries(Object.entries(c).map(([u,f])=>[t+u,f])):c);return[r,s]}):e,_3=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const s=(c,u)=>{r.set(c,u),t++,t>e&&(t=0,o=r,r=new Map)};return{get(c){let u=r.get(c);if(u!==void 0)return u;if((u=o.get(c))!==void 0)return s(c,u),u},set(c,u){r.has(c)?r.set(c,u):s(c,u)}}},Qw="!",S3=e=>{const{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],c=t.length,u=f=>{const h=[];let g=0,y=0,v;for(let w=0;w<f.length;w++){let k=f[w];if(g===0){if(k===s&&(o||f.slice(w,w+c)===t)){h.push(f.slice(y,w)),y=w+c;continue}if(k==="/"){v=w;continue}}k==="["?g++:k==="]"&&g--}const S=h.length===0?f:f.substring(y),x=S.startsWith(Qw),C=x?S.substring(1):S,A=v&&v>y?v-y:void 0;return{modifiers:h,hasImportantModifier:x,baseClassName:C,maybePostfixModifierPosition:A}};return r?f=>r({className:f,parseClassName:u}):u},x3=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},C3=e=>({cache:_3(e.cacheSize),parseClassName:S3(e),...m3(e)}),w3=/\s+/,E3=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,c=[],u=e.trim().split(w3);let f="";for(let h=u.length-1;h>=0;h-=1){const g=u[h],{modifiers:y,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:x}=r(g);let C=!!x,A=o(C?S.substring(0,x):S);if(!A){if(!C){f=g+(f.length>0?" "+f:f);continue}if(A=o(S),!A){f=g+(f.length>0?" "+f:f);continue}C=!1}const w=x3(y).join(":"),k=v?w+Qw:w,M=k+A;if(c.includes(M))continue;c.push(M);const T=s(A,C);for(let N=0;N<T.length;++N){const O=T[N];c.push(k+O)}f=g+(f.length>0?" "+f:f)}return f};function A3(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Jw(t))&&(o&&(o+=" "),o+=r);return o}const Jw=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Jw(e[o]))&&(r&&(r+=" "),r+=t);return r};function jx(e,...t){let r,o,s,c=u;function u(h){const g=t.reduce((y,v)=>v(y),e());return r=C3(g),o=r.cache.get,s=r.cache.set,c=f,f(h)}function f(h){const g=o(h);if(g)return g;const y=E3(h,r);return s(h,y),y}return function(){return c(A3.apply(null,arguments))}}const yt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},eE=/^\[(?:([a-z-]+):)?(.+)\]$/i,k3=/^\d+\/\d+$/,M3=new Set(["px","full","screen"]),T3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,N3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,R3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,O3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,j3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gr=e=>ts(e)||M3.has(e)||k3.test(e),$a=e=>_s(e,"length",U3),ts=e=>!!e&&!Number.isNaN(Number(e)),ym=e=>_s(e,"number",ts),kl=e=>!!e&&Number.isInteger(Number(e)),D3=e=>e.endsWith("%")&&ts(e.slice(0,-1)),Ie=e=>eE.test(e),La=e=>T3.test(e),P3=new Set(["length","size","percentage"]),I3=e=>_s(e,P3,tE),$3=e=>_s(e,"position",tE),L3=new Set(["image","url"]),z3=e=>_s(e,L3,F3),H3=e=>_s(e,"",B3),Ml=()=>!0,_s=(e,t,r)=>{const o=eE.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},U3=e=>N3.test(e)&&!R3.test(e),tE=()=>!1,B3=e=>O3.test(e),F3=e=>j3.test(e),Dx=()=>{const e=yt("colors"),t=yt("spacing"),r=yt("blur"),o=yt("brightness"),s=yt("borderColor"),c=yt("borderRadius"),u=yt("borderSpacing"),f=yt("borderWidth"),h=yt("contrast"),g=yt("grayscale"),y=yt("hueRotate"),v=yt("invert"),S=yt("gap"),x=yt("gradientColorStops"),C=yt("gradientColorStopPositions"),A=yt("inset"),w=yt("margin"),k=yt("opacity"),M=yt("padding"),T=yt("saturate"),N=yt("scale"),O=yt("sepia"),P=yt("skew"),I=yt("space"),z=yt("translate"),Z=()=>["auto","contain","none"],re=()=>["auto","hidden","clip","visible","scroll"],ne=()=>["auto",Ie,t],Y=()=>[Ie,t],le=()=>["",Gr,$a],ue=()=>["auto",ts,Ie],be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",Ie],ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[ts,Ie];return{cacheSize:500,separator:":",theme:{colors:[Ml],spacing:[Gr,$a],blur:["none","",La,Ie],brightness:R(),borderColor:[e],borderRadius:["none","","full",La,Ie],borderSpacing:Y(),borderWidth:le(),contrast:R(),grayscale:te(),hueRotate:R(),invert:te(),gap:Y(),gradientColorStops:[e],gradientColorStopPositions:[D3,$a],inset:ne(),margin:ne(),opacity:R(),padding:Y(),saturate:R(),scale:R(),sepia:te(),skew:R(),space:Y(),translate:Y()},classGroups:{aspect:[{aspect:["auto","square","video",Ie]}],container:["container"],columns:[{columns:[La]}],"break-after":[{"break-after":ce()}],"break-before":[{"break-before":ce()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...be(),Ie]}],overflow:[{overflow:re()}],"overflow-x":[{"overflow-x":re()}],"overflow-y":[{"overflow-y":re()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[A]}],"inset-x":[{"inset-x":[A]}],"inset-y":[{"inset-y":[A]}],start:[{start:[A]}],end:[{end:[A]}],top:[{top:[A]}],right:[{right:[A]}],bottom:[{bottom:[A]}],left:[{left:[A]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",kl,Ie]}],basis:[{basis:ne()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ie]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",kl,Ie]}],"grid-cols":[{"grid-cols":[Ml]}],"col-start-end":[{col:["auto",{span:["full",kl,Ie]},Ie]}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":[Ml]}],"row-start-end":[{row:["auto",{span:[kl,Ie]},Ie]}],"row-start":[{"row-start":ue()}],"row-end":[{"row-end":ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ie]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ie,t]}],"min-w":[{"min-w":[Ie,t,"min","max","fit"]}],"max-w":[{"max-w":[Ie,t,"none","full","min","max","fit","prose",{screen:[La]},La]}],h:[{h:[Ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",La,$a]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ym]}],"font-family":[{font:[Ml]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ie]}],"line-clamp":[{"line-clamp":["none",ts,ym]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Gr,Ie]}],"list-image":[{"list-image":["none",Ie]}],"list-style-type":[{list:["none","disc","decimal",Ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Gr,$a]}],"underline-offset":[{"underline-offset":["auto",Gr,Ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...be(),$3]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",I3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},z3]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[c]}],"rounded-s":[{"rounded-s":[c]}],"rounded-e":[{"rounded-e":[c]}],"rounded-t":[{"rounded-t":[c]}],"rounded-r":[{"rounded-r":[c]}],"rounded-b":[{"rounded-b":[c]}],"rounded-l":[{"rounded-l":[c]}],"rounded-ss":[{"rounded-ss":[c]}],"rounded-se":[{"rounded-se":[c]}],"rounded-ee":[{"rounded-ee":[c]}],"rounded-es":[{"rounded-es":[c]}],"rounded-tl":[{"rounded-tl":[c]}],"rounded-tr":[{"rounded-tr":[c]}],"rounded-br":[{"rounded-br":[c]}],"rounded-bl":[{"rounded-bl":[c]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:L()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[Gr,Ie]}],"outline-w":[{outline:[Gr,$a]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[Gr,$a]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",La,H3]}],"shadow-color":[{shadow:[Ml]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",La,Ie]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[v]}],saturate:[{saturate:[T]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ie]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",Ie]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[kl,Ie]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Gr,$a,ym]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},q3=(e,{cacheSize:t,prefix:r,separator:o,experimentalParseClassName:s,extend:c={},override:u={}})=>{Pl(e,"cacheSize",t),Pl(e,"prefix",r),Pl(e,"separator",o),Pl(e,"experimentalParseClassName",s);for(const f in u)G3(e[f],u[f]);for(const f in c)V3(e[f],c[f]);return e},Pl=(e,t,r)=>{r!==void 0&&(e[t]=r)},G3=(e,t)=>{if(t)for(const r in t)Pl(e,r,t[r])},V3=(e,t)=>{if(t)for(const r in t){const o=t[r];o!==void 0&&(e[r]=(e[r]||[]).concat(o))}},Z3=(e,...t)=>typeof e=="function"?jx(Dx,e,...t):jx(()=>q3(Dx(),e),...t);var Y3=Z3({prefix:"cds-"});function ft(...e){return Y3(Kw(e))}var _t="cds-w-full cds-rounded-lg cds-border cds-border-input cds-bg-background cds-px-3 cds-py-2.5 cds-text-base cds-text-fg placeholder:cds-text-fg-muted/70 focus:cds-border-primary focus:cds-outline-none focus:cds-ring-2 focus:cds-ring-ring/40 disabled:cds-cursor-not-allowed disabled:cds-opacity-50",Fe="focus-visible:cds-outline-none focus-visible:cds-ring-2 focus-visible:cds-ring-ring focus-visible:cds-ring-offset-2 focus-visible:cds-ring-offset-background",Oy=b.forwardRef(({className:e,...t},r)=>d.jsx("input",{ref:r,className:ft(_t,e),...t}));Oy.displayName="Input";var W3={Zip:{title:"Let's start with your ZIP code",subtitle:"It tells us which carriers can write a policy where you live.",short:"ZIP"},Email:{title:"Where should we send your quotes?",subtitle:"We email your quotes so you can come back to them later.",short:"Email"},Product:{title:"What's the address?",short:"Address"},Name:{title:"Who are we quoting?",subtitle:"Carriers need the name and date of birth on the policy.",short:"About you"},Home:{title:"Tell us about your home",subtitle:"We've filled in what public records show — correct anything that looks off.",short:"Your home"},HomePolicy:{title:"How much coverage do you need?",subtitle:"We've filled in typical amounts for a home like yours. Change anything — a licensed agent can fine-tune it with you later.",short:"Home coverage"},Vehicle:{title:"Which vehicles are we covering?",subtitle:"Add every vehicle you want on the policy.",short:"Vehicles"},Driver:{title:"Who drives them?",subtitle:"Include everyone in your household who drives these vehicles.",short:"Drivers"},AutoCurrentCarrier:{title:"Your current coverage, then your new one",subtitle:"Prior coverage history is one of the biggest factors in your rate.",short:"Auto coverage"},BundlePolicy:{title:"Your home and auto coverage",subtitle:"Set both sides of the bundle here.",short:"Coverage"},Demographics:{title:"About you, the applicant",subtitle:"These are your own details — the person the policy is issued to.",short:"Applicant info"},Ssn:{title:"Your Social Security number",subtitle:"Optional in most states, and it usually lowers your quote by improving the match.",short:"Applicant SSN"},Phone:{title:"Where can we reach you?",subtitle:"We'll text a code only when you choose a quote to move forward with.",short:"Phone"},SMSVerification:{title:"Verify your phone",subtitle:"Enter the 6-digit code we just texted you.",short:"Verify"}},K3=e=>({title:e.replace(/([a-z])([A-Z])/g,"$1 $2"),short:e.replace(/([a-z])([A-Z])/g,"$1 $2")}),X3={Home:{title:"What's your property address?",subtitle:"Carriers rate your home on its exact location.",short:"Address"},Auto:{title:"Where do you keep your vehicles?",subtitle:"Your garaging address drives most of your auto rate.",short:"Address"},Bundle:{title:"What's your property address?",subtitle:"We use it for both the home policy and where your vehicles are kept.",short:"Address"}},Q3={Demographics:"These are your own details — the person the policy is issued to, not another driver.",Ssn:"The applicant's SSN, not a driver's. Optional in most states, and it usually lowers your quote by improving the match."},J3=new Set(["Auto","Bundle"]),Ag=(e,t)=>{if(e==="Product"&&t)return X3[t];let r=W3[e]??K3(e),o=Q3[e];return o&&t&&J3.has(t)?{...r,subtitle:o}:r},e5={title:"Review your answers",subtitle:"Carriers price from exactly this — a quick check now avoids surprises later.",short:"Review"},t5={title:"Your quotes",short:"Quotes"},n5={Auto:{label:"Auto insurance",heading:"Compare real auto quotes",pageTitle:"Auto insurance quotes"},Home:{label:"Home insurance",heading:"Compare real home quotes",pageTitle:"Home insurance quotes"},Bundle:{label:"Home + auto bundle",heading:"Bundle home and auto",pageTitle:"Home and auto bundle quotes"}},r5=null,nE=()=>r5;const a5="modulepreload",o5=function(e){return"/iframe/"+e},Px={},Be=function(t,r,o){let s=Promise.resolve();if(r&&r.length>0){let h=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=u?.nonce||u?.getAttribute("nonce");s=h(r.map(g=>{if(g=o5(g),g in Px)return;Px[g]=!0;const y=g.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${v}`))return;const S=document.createElement("link");if(S.rel=y?"stylesheet":a5,y||(S.as="script"),S.crossOrigin="",S.href=g,f&&S.setAttribute("nonce",f),document.head.appendChild(S),y)return new Promise((x,C)=>{S.addEventListener("load",x),S.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${g}`)))})}))}function c(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return s.then(u=>{for(const f of u||[])f.status==="rejected"&&c(f.reason);return t().catch(c)})};var Ix=Object.defineProperty,Qo=(e,t)=>{let r={};for(var o in e)Ix(r,o,{get:e[o],enumerable:!0});return Ix(r,Symbol.toStringTag,{value:"Module"}),r},$x;function Q(e,t,r){function o(f,h){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:h,constr:u,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),t(f,h);const g=u.prototype,y=Object.keys(g);for(let v=0;v<y.length;v++){const S=y[v];S in f||(f[S]=g[S].bind(f))}}const s=r?.Parent??Object;class c extends s{}Object.defineProperty(c,"name",{value:e});function u(f){var h;const g=r?.Parent?new c:this;o(g,f),(h=g._zod).deferred??(h.deferred=[]);for(const y of g._zod.deferred)y();return g}return Object.defineProperty(u,"init",{value:o}),Object.defineProperty(u,Symbol.hasInstance,{value:f=>r?.Parent&&f instanceof r.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class ns extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class rE extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}($x=globalThis).__zod_globalConfig??($x.__zod_globalConfig={});const i5=globalThis.__zod_globalConfig;function zo(e){return i5}function kg(e,t){return typeof t=="bigint"?t.toString():t}function jy(e){return e==null}function Dy(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function s5(e,t){const r=e/t,o=Math.round(r),s=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<s?0:r-o}const Lx=Symbol("evaluating");function ht(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==Lx)return o===void 0&&(o=Lx,o=r()),o},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function l5(...e){const t={};for(const r of e){const o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function c5(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const aE="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function zx(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Mg(e){if(zx(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(zx(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function oE(e){return Mg(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Bl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function u5(e,t,r){const o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function ke(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}const d5={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 Qi(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function f5(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function p5(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function qu(e){return typeof e=="string"?e:e?.message}function Ho(e,t,r){const o=e.message?e.message:qu(e.inst?._zod.def?.error?.(e))??qu(t?.error?.(e))??qu(r.customError?.(e))??qu(r.localeError?.(e))??"Invalid input",{inst:s,continue:c,input:u,...f}=e;return f.path??(f.path=[]),f.message=o,t?.reportInput&&(f.input=u),f}function Py(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Fl(...e){const[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}const iE=(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,kg,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},sE=Q("$ZodError",iE),lE=Q("$ZodError",iE,{Parent:Error});function h5(e,t=r=>r.message){const r={},o=[];for(const s of e.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(t(s))):o.push(t(s));return{formErrors:o,fieldErrors:r}}function m5(e,t=r=>r.message){const r={_errors:[]},o=(s,c=[])=>{for(const u of s.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(f=>o({issues:f},[...c,...u.path]));else if(u.code==="invalid_key")o({issues:u.issues},[...c,...u.path]);else if(u.code==="invalid_element")o({issues:u.issues},[...c,...u.path]);else{const f=[...c,...u.path];if(f.length===0)r._errors.push(t(u));else{let h=r,g=0;for(;g<f.length;){const y=f[g];g===f.length-1?(h[y]=h[y]||{_errors:[]},h[y]._errors.push(t(u))):h[y]=h[y]||{_errors:[]},h=h[y],g++}}}};return o(e),r}const Iy=e=>(t,r,o,s)=>{const c=o?{...o,async:!1}:{async:!1},u=t._zod.run({value:r,issues:[]},c);if(u instanceof Promise)throw new ns;if(u.issues.length){const f=new(s?.Err??e)(u.issues.map(h=>Ho(h,c,zo())));throw aE(f,s?.callee),f}return u.value},$y=e=>async(t,r,o,s)=>{const c=o?{...o,async:!0}:{async:!0};let u=t._zod.run({value:r,issues:[]},c);if(u instanceof Promise&&(u=await u),u.issues.length){const f=new(s?.Err??e)(u.issues.map(h=>Ho(h,c,zo())));throw aE(f,s?.callee),f}return u.value},Wd=e=>(t,r,o)=>{const s=o?{...o,async:!1}:{async:!1},c=t._zod.run({value:r,issues:[]},s);if(c instanceof Promise)throw new ns;return c.issues.length?{success:!1,error:new(e??sE)(c.issues.map(u=>Ho(u,s,zo())))}:{success:!0,data:c.value}},g5=Wd(lE),Kd=e=>async(t,r,o)=>{const s=o?{...o,async:!0}:{async:!0};let c=t._zod.run({value:r,issues:[]},s);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(u=>Ho(u,s,zo())))}:{success:!0,data:c.value}},y5=Kd(lE),v5=e=>(t,r,o)=>{const s=o?{...o,direction:"backward"}:{direction:"backward"};return Iy(e)(t,r,s)},b5=e=>(t,r,o)=>Iy(e)(t,r,o),_5=e=>async(t,r,o)=>{const s=o?{...o,direction:"backward"}:{direction:"backward"};return $y(e)(t,r,s)},S5=e=>async(t,r,o)=>$y(e)(t,r,o),x5=e=>(t,r,o)=>{const s=o?{...o,direction:"backward"}:{direction:"backward"};return Wd(e)(t,r,s)},C5=e=>(t,r,o)=>Wd(e)(t,r,o),w5=e=>async(t,r,o)=>{const s=o?{...o,direction:"backward"}:{direction:"backward"};return Kd(e)(t,r,s)},E5=e=>async(t,r,o)=>Kd(e)(t,r,o),A5=/^[cC][0-9a-z]{6,}$/,k5=/^[0-9a-z]+$/,M5=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,T5=/^[0-9a-vA-V]{20}$/,N5=/^[A-Za-z0-9]{27}$/,R5=/^[a-zA-Z0-9_-]{21}$/,O5=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,j5=/^([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})$/,Hx=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)$/,D5=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,P5="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function I5(){return new RegExp(P5,"u")}const $5=/^(?:(?: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])$/,L5=/^(([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}|:))$/,z5=/^((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])$/,H5=/^(([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])$/,U5=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,cE=/^[A-Za-z0-9_-]*$/,B5=/^https?$/,F5=/^\+[1-9]\d{6,14}$/,uE="(?:(?:\\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])))",q5=new RegExp(`^${uE}$`);function dE(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 G5(e){return new RegExp(`^${dE(e)}$`)}function V5(e){const t=dE({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${r.join("|")})`;return new RegExp(`^${uE}T(?:${o})$`)}const Z5=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Y5=/^-?\d+$/,W5=/^-?\d+(?:\.\d+)?$/,K5=/^[^A-Z]*$/,X5=/^[^a-z]*$/,bn=Q("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),fE={number:"number",bigint:"bigint",object:"date"},pE=Q("$ZodCheckLessThan",(e,t)=>{bn.init(e,t);const r=fE[typeof t.value];e._zod.onattach.push(o=>{const s=o._zod.bag,c=(t.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<c&&(t.inclusive?s.maximum=t.value:s.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),hE=Q("$ZodCheckGreaterThan",(e,t)=>{bn.init(e,t);const r=fE[typeof t.value];e._zod.onattach.push(o=>{const s=o._zod.bag,c=(t.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>c&&(t.inclusive?s.minimum=t.value:s.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Q5=Q("$ZodCheckMultipleOf",(e,t)=>{bn.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):s5(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),J5=Q("$ZodCheckNumberFormat",(e,t)=>{bn.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),o=r?"int":"number",[s,c]=d5[t.format];e._zod.onattach.push(u=>{const f=u._zod.bag;f.format=t.format,f.minimum=s,f.maximum=c,r&&(f.pattern=Y5)}),e._zod.check=u=>{const f=u.value;if(r){if(!Number.isInteger(f)){u.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?u.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):u.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}f<s&&u.issues.push({origin:"number",input:f,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!t.abort}),f>c&&u.issues.push({origin:"number",input:f,code:"too_big",maximum:c,inclusive:!0,inst:e,continue:!t.abort})}}),eP=Q("$ZodCheckMaxLength",(e,t)=>{var r;bn.init(e,t),(r=e._zod.def).when??(r.when=o=>{const s=o.value;return!jy(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const s=o.value;if(s.length<=t.maximum)return;const u=Py(s);o.issues.push({origin:u,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),tP=Q("$ZodCheckMinLength",(e,t)=>{var r;bn.init(e,t),(r=e._zod.def).when??(r.when=o=>{const s=o.value;return!jy(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const s=o.value;if(s.length>=t.minimum)return;const u=Py(s);o.issues.push({origin:u,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),nP=Q("$ZodCheckLengthEquals",(e,t)=>{var r;bn.init(e,t),(r=e._zod.def).when??(r.when=o=>{const s=o.value;return!jy(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=o=>{const s=o.value,c=s.length;if(c===t.length)return;const u=Py(s),f=c>t.length;o.issues.push({origin:u,...f?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Xd=Q("$ZodCheckStringFormat",(e,t)=>{var r,o;bn.init(e,t),e._zod.onattach.push(s=>{const c=s._zod.bag;c.format=t.format,t.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),rP=Q("$ZodCheckRegex",(e,t)=>{Xd.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),aP=Q("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=K5),Xd.init(e,t)}),oP=Q("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=X5),Xd.init(e,t)}),iP=Q("$ZodCheckIncludes",(e,t)=>{bn.init(e,t);const r=Bl(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(s=>{const c=s._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(o)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),sP=Q("$ZodCheckStartsWith",(e,t)=>{bn.init(e,t);const r=new RegExp(`^${Bl(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),lP=Q("$ZodCheckEndsWith",(e,t)=>{bn.init(e,t);const r=new RegExp(`.*${Bl(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),cP=Q("$ZodCheckOverwrite",(e,t)=>{bn.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}}),uP={major:4,minor:4,patch:3},Wt=Q("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=uP;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const s of o)for(const c of s._zod.onattach)c(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(u,f,h)=>{let g=Qi(u),y;for(const v of f){if(v._zod.def.when){if(f5(u)||!v._zod.def.when(u))continue}else if(g)continue;const S=u.issues.length,x=v._zod.check(u);if(x instanceof Promise&&h?.async===!1)throw new ns;if(y||x instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await x,u.issues.length!==S&&(g||(g=Qi(u,S)))});else{if(u.issues.length===S)continue;g||(g=Qi(u,S))}}return y?y.then(()=>u):u},c=(u,f,h)=>{if(Qi(u))return u.aborted=!0,u;const g=s(f,o,h);if(g instanceof Promise){if(h.async===!1)throw new ns;return g.then(y=>e._zod.parse(y,h))}return e._zod.parse(g,h)};e._zod.run=(u,f)=>{if(f.skipChecks)return e._zod.parse(u,f);if(f.direction==="backward"){const g=e._zod.parse({value:u.value,issues:[]},{...f,skipChecks:!0});return g instanceof Promise?g.then(y=>c(y,u,f)):c(g,u,f)}const h=e._zod.parse(u,f);if(h instanceof Promise){if(f.async===!1)throw new ns;return h.then(g=>s(g,o,f))}return s(h,o,f)}}ht(e,"~standard",()=>({validate:s=>{try{const c=g5(e,s);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return y5(e,s).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}))}),Ly=Q("$ZodString",(e,t)=>{Wt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Z5(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),St=Q("$ZodStringFormat",(e,t)=>{Xd.init(e,t),Ly.init(e,t)}),dP=Q("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=j5),St.init(e,t)}),fP=Q("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Hx(o))}else t.pattern??(t.pattern=Hx());St.init(e,t)}),pP=Q("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=D5),St.init(e,t)}),hP=Q("$ZodURL",(e,t)=>{St.init(e,t),e._zod.check=r=>{try{const o=r.value.trim();if(!t.normalize&&t.protocol?.source===B5.source&&!/^https?:\/\//i.test(o)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}const s=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(s.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=s.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),mP=Q("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=I5()),St.init(e,t)}),gP=Q("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=R5),St.init(e,t)}),yP=Q("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=A5),St.init(e,t)}),vP=Q("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=k5),St.init(e,t)}),bP=Q("$ZodULID",(e,t)=>{t.pattern??(t.pattern=M5),St.init(e,t)}),_P=Q("$ZodXID",(e,t)=>{t.pattern??(t.pattern=T5),St.init(e,t)}),SP=Q("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=N5),St.init(e,t)}),xP=Q("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=V5(t)),St.init(e,t)}),CP=Q("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=q5),St.init(e,t)}),wP=Q("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=G5(t)),St.init(e,t)}),EP=Q("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=O5),St.init(e,t)}),AP=Q("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=$5),St.init(e,t),e._zod.bag.format="ipv4"}),kP=Q("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=L5),St.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),MP=Q("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=z5),St.init(e,t)}),TP=Q("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=H5),St.init(e,t),e._zod.check=r=>{const o=r.value.split("/");try{if(o.length!==2)throw new Error;const[s,c]=o;if(!c)throw new Error;const u=Number(c);if(`${u}`!==c)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${s}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function mE(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const NP=Q("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=U5),St.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{mE(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function RP(e){if(!cE.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return mE(r)}const OP=Q("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=cE),St.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{RP(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),jP=Q("$ZodE164",(e,t)=>{t.pattern??(t.pattern=F5),St.init(e,t)});function DP(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[o]=r;if(!o)return!1;const s=JSON.parse(atob(o));return!("typ"in s&&s?.typ!=="JWT"||!s.alg||t&&(!("alg"in s)||s.alg!==t))}catch{return!1}}const PP=Q("$ZodJWT",(e,t)=>{St.init(e,t),e._zod.check=r=>{DP(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),gE=Q("$ZodNumber",(e,t)=>{Wt.init(e,t),e._zod.pattern=e._zod.bag.pattern??W5,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const s=r.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return r;const c=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...c?{received:c}:{}}),r}}),IP=Q("$ZodNumberFormat",(e,t)=>{J5.init(e,t),gE.init(e,t)});function Ux(e,t,r){e.issues.length&&t.issues.push(...p5(r,e.issues)),t.value[r]=e.value}const $P=Q("$ZodArray",(e,t)=>{Wt.init(e,t),e._zod.parse=(r,o)=>{const s=r.value;if(!Array.isArray(s))return r.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),r;r.value=Array(s.length);const c=[];for(let u=0;u<s.length;u++){const f=s[u],h=t.element._zod.run({value:f,issues:[]},o);h instanceof Promise?c.push(h.then(g=>Ux(g,r,u))):Ux(h,r,u)}return c.length?Promise.all(c).then(()=>r):r}});function Bx(e,t,r,o){for(const c of e)if(c.issues.length===0)return t.value=c.value,t;const s=e.filter(c=>!Qi(c));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(c=>c.issues.map(u=>Ho(u,o,zo())))}),t)}const LP=Q("$ZodUnion",(e,t)=>{Wt.init(e,t),ht(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),ht(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),ht(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),ht(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=>Dy(s.source)).join("|")})$`)}});const r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,s)=>{if(r)return r(o,s);let c=!1;const u=[];for(const f of t.options){const h=f._zod.run({value:o.value,issues:[]},s);if(h instanceof Promise)u.push(h),c=!0;else{if(h.issues.length===0)return h;u.push(h)}}return c?Promise.all(u).then(f=>Bx(f,o,e,s)):Bx(u,o,e,s)}}),zP=Q("$ZodIntersection",(e,t)=>{Wt.init(e,t),e._zod.parse=(r,o)=>{const s=r.value,c=t.left._zod.run({value:s,issues:[]},o),u=t.right._zod.run({value:s,issues:[]},o);return c instanceof Promise||u instanceof Promise?Promise.all([c,u]).then(([h,g])=>Fx(r,h,g)):Fx(r,c,u)}});function Tg(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(Mg(e)&&Mg(t)){const r=Object.keys(t),o=Object.keys(e).filter(c=>r.indexOf(c)!==-1),s={...e,...t};for(const c of o){const u=Tg(e[c],t[c]);if(!u.valid)return{valid:!1,mergeErrorPath:[c,...u.mergeErrorPath]};s[c]=u.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let o=0;o<e.length;o++){const s=e[o],c=t[o],u=Tg(s,c);if(!u.valid)return{valid:!1,mergeErrorPath:[o,...u.mergeErrorPath]};r.push(u.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Fx(e,t,r){const o=new Map;let s;for(const f of t.issues)if(f.code==="unrecognized_keys"){s??(s=f);for(const h of f.keys)o.has(h)||o.set(h,{}),o.get(h).l=!0}else e.issues.push(f);for(const f of r.issues)if(f.code==="unrecognized_keys")for(const h of f.keys)o.has(h)||o.set(h,{}),o.get(h).r=!0;else e.issues.push(f);const c=[...o].filter(([,f])=>f.l&&f.r).map(([f])=>f);if(c.length&&s&&e.issues.push({...s,keys:c}),Qi(e))return e;const u=Tg(t.value,r.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}const HP=Q("$ZodLiteral",(e,t)=>{if(Wt.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Bl(o):o?Bl(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,s)=>{const c=o.value;return r.has(c)||o.issues.push({code:"invalid_value",values:t.values,input:c,inst:e}),o}}),UP=Q("$ZodTransform",(e,t)=>{Wt.init(e,t),e._zod.optin="optional",e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new rE(e.constructor.name);const s=t.transform(r.value,r);if(o.async)return(s instanceof Promise?s:Promise.resolve(s)).then(u=>(r.value=u,r.fallback=!0,r));if(s instanceof Promise)throw new ns;return r.value=s,r.fallback=!0,r}});function qx(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const yE=Q("$ZodOptional",(e,t)=>{Wt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ht(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ht(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Dy(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){const s=r.value,c=t.innerType._zod.run(r,o);return c instanceof Promise?c.then(u=>qx(u,s)):qx(c,s)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),BP=Q("$ZodExactOptional",(e,t)=>{yE.init(e,t),ht(e._zod,"values",()=>t.innerType._zod.values),ht(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),FP=Q("$ZodNullable",(e,t)=>{Wt.init(e,t),ht(e._zod,"optin",()=>t.innerType._zod.optin),ht(e._zod,"optout",()=>t.innerType._zod.optout),ht(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Dy(r.source)}|null)$`):void 0}),ht(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),qP=Q("$ZodDefault",(e,t)=>{Wt.init(e,t),e._zod.optin="optional",ht(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;const s=t.innerType._zod.run(r,o);return s instanceof Promise?s.then(c=>Gx(c,t)):Gx(s,t)}});function Gx(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const GP=Q("$ZodPrefault",(e,t)=>{Wt.init(e,t),e._zod.optin="optional",ht(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),VP=Q("$ZodNonOptional",(e,t)=>{Wt.init(e,t),ht(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{const s=t.innerType._zod.run(r,o);return s instanceof Promise?s.then(c=>Vx(c,e)):Vx(s,e)}});function Vx(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 ZP=Q("$ZodCatch",(e,t)=>{Wt.init(e,t),e._zod.optin="optional",ht(e._zod,"optout",()=>t.innerType._zod.optout),ht(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);const s=t.innerType._zod.run(r,o);return s instanceof Promise?s.then(c=>(r.value=c.value,c.issues.length&&(r.value=t.catchValue({...r,error:{issues:c.issues.map(u=>Ho(u,o,zo()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(c=>Ho(c,o,zo()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),YP=Q("$ZodPipe",(e,t)=>{Wt.init(e,t),ht(e._zod,"values",()=>t.in._zod.values),ht(e._zod,"optin",()=>t.in._zod.optin),ht(e._zod,"optout",()=>t.out._zod.optout),ht(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){const c=t.out._zod.run(r,o);return c instanceof Promise?c.then(u=>Gu(u,t.in,o)):Gu(c,t.in,o)}const s=t.in._zod.run(r,o);return s instanceof Promise?s.then(c=>Gu(c,t.out,o)):Gu(s,t.out,o)}});function Gu(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}const WP=Q("$ZodReadonly",(e,t)=>{Wt.init(e,t),ht(e._zod,"propValues",()=>t.innerType._zod.propValues),ht(e._zod,"values",()=>t.innerType._zod.values),ht(e._zod,"optin",()=>t.innerType?._zod?.optin),ht(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);const s=t.innerType._zod.run(r,o);return s instanceof Promise?s.then(Zx):Zx(s)}});function Zx(e){return e.value=Object.freeze(e.value),e}const KP=Q("$ZodCustom",(e,t)=>{bn.init(e,t),Wt.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{const o=r.value,s=t.fn(o);if(s instanceof Promise)return s.then(c=>Yx(c,r,o,e));Yx(s,r,o,e)}});function Yx(e,t,r,o){if(!e){const s={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(s.params=o._zod.def.params),t.issues.push(Fl(s))}}var Wx;class XP{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const o={...this.get(r)??{}};delete o.id;const s={...o,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function QP(){return new XP}(Wx=globalThis).__zod_globalRegistry??(Wx.__zod_globalRegistry=QP());const Il=globalThis.__zod_globalRegistry;function JP(e,t){return new e({type:"string",...ke(t)})}function vE(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ke(t)})}function Kx(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ke(t)})}function eI(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ke(t)})}function tI(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ke(t)})}function nI(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ke(t)})}function rI(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ke(t)})}function aI(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ke(t)})}function oI(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ke(t)})}function iI(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ke(t)})}function sI(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ke(t)})}function lI(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ke(t)})}function cI(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ke(t)})}function uI(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ke(t)})}function dI(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ke(t)})}function fI(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ke(t)})}function pI(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ke(t)})}function hI(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ke(t)})}function mI(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ke(t)})}function gI(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ke(t)})}function yI(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ke(t)})}function vI(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ke(t)})}function bI(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ke(t)})}function _I(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ke(t)})}function SI(e,t){return new e({type:"string",format:"date",check:"string_format",...ke(t)})}function xI(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ke(t)})}function CI(e,t){return new e({type:"string",format:"duration",check:"string_format",...ke(t)})}function wI(e,t){return new e({type:"number",coerce:!0,checks:[],...ke(t)})}function EI(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ke(t)})}function Xx(e,t){return new pE({check:"less_than",...ke(t),value:e,inclusive:!1})}function vm(e,t){return new pE({check:"less_than",...ke(t),value:e,inclusive:!0})}function Qx(e,t){return new hE({check:"greater_than",...ke(t),value:e,inclusive:!1})}function bm(e,t){return new hE({check:"greater_than",...ke(t),value:e,inclusive:!0})}function Jx(e,t){return new Q5({check:"multiple_of",...ke(t),value:e})}function bE(e,t){return new eP({check:"max_length",...ke(t),maximum:e})}function Md(e,t){return new tP({check:"min_length",...ke(t),minimum:e})}function _E(e,t){return new nP({check:"length_equals",...ke(t),length:e})}function AI(e,t){return new rP({check:"string_format",format:"regex",...ke(t),pattern:e})}function kI(e){return new aP({check:"string_format",format:"lowercase",...ke(e)})}function MI(e){return new oP({check:"string_format",format:"uppercase",...ke(e)})}function TI(e,t){return new iP({check:"string_format",format:"includes",...ke(t),includes:e})}function NI(e,t){return new sP({check:"string_format",format:"starts_with",...ke(t),prefix:e})}function RI(e,t){return new lP({check:"string_format",format:"ends_with",...ke(t),suffix:e})}function Ss(e){return new cP({check:"overwrite",tx:e})}function OI(e){return Ss(t=>t.normalize(e))}function jI(){return Ss(e=>e.trim())}function DI(){return Ss(e=>e.toLowerCase())}function PI(){return Ss(e=>e.toUpperCase())}function II(){return Ss(e=>c5(e))}function $I(e,t,r){return new e({type:"array",element:t,...ke(r)})}function LI(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ke(r)})}function zI(e,t){const r=HI(o=>(o.addIssue=s=>{if(typeof s=="string")o.issues.push(Fl(s,o.value,r._zod.def));else{const c=s;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=o.value),c.inst??(c.inst=r),c.continue??(c.continue=!r._zod.def.abort),o.issues.push(Fl(c))}},e(o.value,o)),t);return r}function HI(e,t){const r=new bn({check:"custom",...ke(t)});return r._zod.check=e,r}function SE(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??Il,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 ln(e,t,r={path:[],schemaPath:[]}){var o;const s=e._zod.def,c=t.seen.get(e);if(c)return c.count++,r.schemaPath.includes(e)&&(c.cycle=r.path),c.schema;const u={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,u);const f=e._zod.toJSONSchema?.();if(f)u.schema=f;else{const y={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,u.schema,y);else{const S=u.schema,x=t.processors[s.type];if(!x)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);x(e,t,S,y)}const v=e._zod.parent;v&&(u.ref||(u.ref=v),ln(v,t,y),t.seen.get(v).isParent=!0)}const h=t.metadataRegistry.get(e);return h&&Object.assign(u.schema,h),t.io==="input"&&an(e)&&(delete u.schema.examples,delete u.schema.default),t.io==="input"&&"_prefault"in u.schema&&((o=u.schema).default??(o.default=u.schema._prefault)),delete u.schema._prefault,t.seen.get(e).schema}function xE(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const u of e.seen.entries()){const f=e.metadataRegistry.get(u[0])?.id;if(f){const h=o.get(f);if(h&&h!==u[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(f,u[0])}}const s=u=>{const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=e.external.registry.get(u[0])?.id,S=e.external.uri??(C=>C);if(v)return{ref:S(v)};const x=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=x,{defId:x,ref:`${S("__shared")}#/${f}/${x}`}}if(u[1]===r)return{ref:"#"};const g=`#/${f}/`,y=u[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:g+y}},c=u=>{if(u[1].schema.$ref)return;const f=u[1],{ref:h,defId:g}=s(u);f.def={...f.schema},g&&(f.defId=g);const y=f.schema;for(const v in y)delete y[v];y.$ref=h};if(e.cycles==="throw")for(const u of e.seen.entries()){const f=u[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/<root>
73
+
74
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const f=u[1];if(t===u[0]){c(u);continue}if(e.external){const g=e.external.registry.get(u[0])?.id;if(t!==u[0]&&g){c(u);continue}}if(e.metadataRegistry.get(u[0])?.id){c(u);continue}if(f.cycle){c(u);continue}if(f.count>1&&e.reused==="ref"){c(u);continue}}}function CE(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=f=>{const h=e.seen.get(f);if(h.ref===null)return;const g=h.def??h.schema,y={...g},v=h.ref;if(h.ref=null,v){o(v);const x=e.seen.get(v),C=x.schema;if(C.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(g.allOf=g.allOf??[],g.allOf.push(C)):Object.assign(g,C),Object.assign(g,y),f._zod.parent===v)for(const w in g)w==="$ref"||w==="allOf"||w in y||delete g[w];if(C.$ref&&x.def)for(const w in g)w==="$ref"||w==="allOf"||w in x.def&&JSON.stringify(g[w])===JSON.stringify(x.def[w])&&delete g[w]}const S=f._zod.parent;if(S&&S!==v){o(S);const x=e.seen.get(S);if(x?.schema.$ref&&(g.$ref=x.schema.$ref,x.def))for(const C in g)C==="$ref"||C==="allOf"||C in x.def&&JSON.stringify(g[C])===JSON.stringify(x.def[C])&&delete g[C]}e.override({zodSchema:f,jsonSchema:g,path:h.path??[]})};for(const f of[...e.seen.entries()].reverse())o(f[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const f=e.external.registry.get(t)?.id;if(!f)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(f)}Object.assign(s,r.def??r.schema);const c=e.metadataRegistry.get(t)?.id;c!==void 0&&s.id===c&&delete s.id;const u=e.external?.defs??{};for(const f of e.seen.entries()){const h=f[1];h.def&&h.defId&&(h.def.id===h.defId&&delete h.def.id,u[h.defId]=h.def)}e.external||Object.keys(u).length>0&&(e.target==="draft-2020-12"?s.$defs=u:s.definitions=u);try{const f=JSON.parse(JSON.stringify(s));return Object.defineProperty(f,"~standard",{value:{...t["~standard"],jsonSchema:{input:Td(t,"input",e.processors),output:Td(t,"output",e.processors)}},enumerable:!1,writable:!1}),f}catch{throw new Error("Error converting schema to JSON.")}}function an(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return an(o.element,r);if(o.type==="set")return an(o.valueType,r);if(o.type==="lazy")return an(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return an(o.innerType,r);if(o.type==="intersection")return an(o.left,r)||an(o.right,r);if(o.type==="record"||o.type==="map")return an(o.keyType,r)||an(o.valueType,r);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:an(o.in,r)||an(o.out,r);if(o.type==="object"){for(const s in o.shape)if(an(o.shape[s],r))return!0;return!1}if(o.type==="union"){for(const s of o.options)if(an(s,r))return!0;return!1}if(o.type==="tuple"){for(const s of o.items)if(an(s,r))return!0;return!!(o.rest&&an(o.rest,r))}return!1}const UI=(e,t={})=>r=>{const o=SE({...r,processors:t});return ln(e,o),xE(o,e),CE(o,e)},Td=(e,t,r={})=>o=>{const{libraryOptions:s,target:c}=o??{},u=SE({...s??{},target:c,io:t,processors:r});return ln(e,u),xE(u,e),CE(u,e)},BI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},FI=(e,t,r,o)=>{const s=r;s.type="string";const{minimum:c,maximum:u,format:f,patterns:h,contentEncoding:g}=e._zod.bag;if(typeof c=="number"&&(s.minLength=c),typeof u=="number"&&(s.maxLength=u),f&&(s.format=BI[f]??f,s.format===""&&delete s.format,f==="time"&&delete s.format),g&&(s.contentEncoding=g),h&&h.size>0){const y=[...h];y.length===1?s.pattern=y[0].source:y.length>1&&(s.allOf=[...y.map(v=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:v.source}))])}},qI=(e,t,r,o)=>{const s=r,{minimum:c,maximum:u,format:f,multipleOf:h,exclusiveMaximum:g,exclusiveMinimum:y}=e._zod.bag;typeof f=="string"&&f.includes("int")?s.type="integer":s.type="number";const v=typeof y=="number"&&y>=(c??Number.NEGATIVE_INFINITY),S=typeof g=="number"&&g<=(u??Number.POSITIVE_INFINITY),x=t.target==="draft-04"||t.target==="openapi-3.0";v?x?(s.minimum=y,s.exclusiveMinimum=!0):s.exclusiveMinimum=y:typeof c=="number"&&(s.minimum=c),S?x?(s.maximum=g,s.exclusiveMaximum=!0):s.exclusiveMaximum=g:typeof u=="number"&&(s.maximum=u),typeof h=="number"&&(s.multipleOf=h)},GI=(e,t,r,o)=>{const s=e._zod.def,c=[];for(const u of s.values)if(u===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof u=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");c.push(Number(u))}else c.push(u);if(c.length!==0)if(c.length===1){const u=c[0];r.type=u===null?"null":typeof u,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[u]:r.const=u}else c.every(u=>typeof u=="number")&&(r.type="number"),c.every(u=>typeof u=="string")&&(r.type="string"),c.every(u=>typeof u=="boolean")&&(r.type="boolean"),c.every(u=>u===null)&&(r.type="null"),r.enum=c},VI=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},ZI=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},YI=(e,t,r,o)=>{const s=r,c=e._zod.def,{minimum:u,maximum:f}=e._zod.bag;typeof u=="number"&&(s.minItems=u),typeof f=="number"&&(s.maxItems=f),s.type="array",s.items=ln(c.element,t,{...o,path:[...o.path,"items"]})},WI=(e,t,r,o)=>{const s=e._zod.def,c=s.inclusive===!1,u=s.options.map((f,h)=>ln(f,t,{...o,path:[...o.path,c?"oneOf":"anyOf",h]}));c?r.oneOf=u:r.anyOf=u},KI=(e,t,r,o)=>{const s=e._zod.def,c=ln(s.left,t,{...o,path:[...o.path,"allOf",0]}),u=ln(s.right,t,{...o,path:[...o.path,"allOf",1]}),f=g=>"allOf"in g&&Object.keys(g).length===1,h=[...f(c)?c.allOf:[c],...f(u)?u.allOf:[u]];r.allOf=h},XI=(e,t,r,o)=>{const s=e._zod.def,c=ln(s.innerType,t,o),u=t.seen.get(e);t.target==="openapi-3.0"?(u.ref=s.innerType,r.nullable=!0):r.anyOf=[c,{type:"null"}]},QI=(e,t,r,o)=>{const s=e._zod.def;ln(s.innerType,t,o);const c=t.seen.get(e);c.ref=s.innerType},JI=(e,t,r,o)=>{const s=e._zod.def;ln(s.innerType,t,o);const c=t.seen.get(e);c.ref=s.innerType,r.default=JSON.parse(JSON.stringify(s.defaultValue))},e6=(e,t,r,o)=>{const s=e._zod.def;ln(s.innerType,t,o);const c=t.seen.get(e);c.ref=s.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},t6=(e,t,r,o)=>{const s=e._zod.def;ln(s.innerType,t,o);const c=t.seen.get(e);c.ref=s.innerType;let u;try{u=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=u},n6=(e,t,r,o)=>{const s=e._zod.def,c=s.in._zod.traits.has("$ZodTransform"),u=t.io==="input"?c?s.out:s.in:s.out;ln(u,t,o);const f=t.seen.get(e);f.ref=u},r6=(e,t,r,o)=>{const s=e._zod.def;ln(s.innerType,t,o);const c=t.seen.get(e);c.ref=s.innerType,r.readOnly=!0},wE=(e,t,r,o)=>{const s=e._zod.def;ln(s.innerType,t,o);const c=t.seen.get(e);c.ref=s.innerType},a6=Q("ZodISODateTime",(e,t)=>{xP.init(e,t),xt.init(e,t)});function o6(e){return _I(a6,e)}const i6=Q("ZodISODate",(e,t)=>{CP.init(e,t),xt.init(e,t)});function s6(e){return SI(i6,e)}const l6=Q("ZodISOTime",(e,t)=>{wP.init(e,t),xt.init(e,t)});function c6(e){return xI(l6,e)}const u6=Q("ZodISODuration",(e,t)=>{EP.init(e,t),xt.init(e,t)});function d6(e){return CI(u6,e)}const f6=(e,t)=>{sE.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>m5(e,r)},flatten:{value:r=>h5(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,kg,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,kg,2)}},isEmpty:{get(){return e.issues.length===0}}})},Xn=Q("ZodError",f6,{Parent:Error}),p6=Iy(Xn),h6=$y(Xn),m6=Wd(Xn),g6=Kd(Xn),y6=v5(Xn),v6=b5(Xn),b6=_5(Xn),_6=S5(Xn),S6=x5(Xn),x6=C5(Xn),C6=w5(Xn),w6=E5(Xn),eC=new WeakMap;function Qd(e,t,r){const o=Object.getPrototypeOf(e);let s=eC.get(o);if(s||(s=new Set,eC.set(o,s)),!s.has(t)){s.add(t);for(const c in r){const u=r[c];Object.defineProperty(o,c,{configurable:!0,enumerable:!1,get(){const f=u.bind(this);return Object.defineProperty(this,c,{configurable:!0,writable:!0,enumerable:!0,value:f}),f},set(f){Object.defineProperty(this,c,{configurable:!0,writable:!0,enumerable:!0,value:f})}})}}}const Kt=Q("ZodType",(e,t)=>(Wt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Td(e,"input"),output:Td(e,"output")}}),e.toJSONSchema=UI(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,o)=>p6(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>m6(e,r,o),e.parseAsync=async(r,o)=>h6(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>g6(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>y6(e,r,o),e.decode=(r,o)=>v6(e,r,o),e.encodeAsync=async(r,o)=>b6(e,r,o),e.decodeAsync=async(r,o)=>_6(e,r,o),e.safeEncode=(r,o)=>S6(e,r,o),e.safeDecode=(r,o)=>x6(e,r,o),e.safeEncodeAsync=async(r,o)=>C6(e,r,o),e.safeDecodeAsync=async(r,o)=>w6(e,r,o),Qd(e,"ZodType",{check(...r){const o=this.def;return this.clone(l5(o,{checks:[...o.checks??[],...r.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,o){return u5(this,r,o)},brand(){return this},register(r,o){return r.add(this,o),this},refine(r,o){return this.check(m$(r,o))},superRefine(r,o){return this.check(g$(r,o))},overwrite(r){return this.check(Ss(r))},optional(){return rC(this)},exactOptional(){return t$(this)},nullable(){return aC(this)},nullish(){return rC(aC(this))},nonoptional(r){return l$(this,r)},array(){return G6(this)},or(r){return ME([this,r])},and(r){return Y6(this,r)},transform(r){return oC(this,Q6(r))},default(r){return a$(this,r)},prefault(r){return i$(this,r)},catch(r){return u$(this,r)},pipe(r){return oC(this,r)},readonly(){return p$(this)},describe(r){const o=this.clone();return Il.add(o,{description:r}),o},meta(...r){if(r.length===0)return Il.get(this);const o=this.clone();return Il.add(o,r[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return Il.get(e)?.description},configurable:!0}),e)),EE=Q("_ZodString",(e,t)=>{Ly.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(o,s,c)=>FI(e,o,s);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Qd(e,"_ZodString",{regex(...o){return this.check(AI(...o))},includes(...o){return this.check(TI(...o))},startsWith(...o){return this.check(NI(...o))},endsWith(...o){return this.check(RI(...o))},min(...o){return this.check(Md(...o))},max(...o){return this.check(bE(...o))},length(...o){return this.check(_E(...o))},nonempty(...o){return this.check(Md(1,...o))},lowercase(o){return this.check(kI(o))},uppercase(o){return this.check(MI(o))},trim(){return this.check(jI())},normalize(...o){return this.check(OI(...o))},toLowerCase(){return this.check(DI())},toUpperCase(){return this.check(PI())},slugify(){return this.check(II())}})}),E6=Q("ZodString",(e,t)=>{Ly.init(e,t),EE.init(e,t),e.email=r=>e.check(vE(AE,r)),e.url=r=>e.check(aI(k6,r)),e.jwt=r=>e.check(bI(B6,r)),e.emoji=r=>e.check(oI(M6,r)),e.guid=r=>e.check(Kx(tC,r)),e.uuid=r=>e.check(eI(Vu,r)),e.uuidv4=r=>e.check(tI(Vu,r)),e.uuidv6=r=>e.check(nI(Vu,r)),e.uuidv7=r=>e.check(rI(Vu,r)),e.nanoid=r=>e.check(iI(T6,r)),e.guid=r=>e.check(Kx(tC,r)),e.cuid=r=>e.check(sI(N6,r)),e.cuid2=r=>e.check(lI(R6,r)),e.ulid=r=>e.check(cI(O6,r)),e.base64=r=>e.check(gI(z6,r)),e.base64url=r=>e.check(yI(H6,r)),e.xid=r=>e.check(uI(j6,r)),e.ksuid=r=>e.check(dI(D6,r)),e.ipv4=r=>e.check(fI(P6,r)),e.ipv6=r=>e.check(pI(I6,r)),e.cidrv4=r=>e.check(hI($6,r)),e.cidrv6=r=>e.check(mI(L6,r)),e.e164=r=>e.check(vI(U6,r)),e.datetime=r=>e.check(o6(r)),e.date=r=>e.check(s6(r)),e.time=r=>e.check(c6(r)),e.duration=r=>e.check(d6(r))});function Ua(e){return JP(E6,e)}const xt=Q("ZodStringFormat",(e,t)=>{St.init(e,t),EE.init(e,t)}),AE=Q("ZodEmail",(e,t)=>{pP.init(e,t),xt.init(e,t)});function A6(e){return vE(AE,e)}const tC=Q("ZodGUID",(e,t)=>{dP.init(e,t),xt.init(e,t)}),Vu=Q("ZodUUID",(e,t)=>{fP.init(e,t),xt.init(e,t)}),k6=Q("ZodURL",(e,t)=>{hP.init(e,t),xt.init(e,t)}),M6=Q("ZodEmoji",(e,t)=>{mP.init(e,t),xt.init(e,t)}),T6=Q("ZodNanoID",(e,t)=>{gP.init(e,t),xt.init(e,t)}),N6=Q("ZodCUID",(e,t)=>{yP.init(e,t),xt.init(e,t)}),R6=Q("ZodCUID2",(e,t)=>{vP.init(e,t),xt.init(e,t)}),O6=Q("ZodULID",(e,t)=>{bP.init(e,t),xt.init(e,t)}),j6=Q("ZodXID",(e,t)=>{_P.init(e,t),xt.init(e,t)}),D6=Q("ZodKSUID",(e,t)=>{SP.init(e,t),xt.init(e,t)}),P6=Q("ZodIPv4",(e,t)=>{AP.init(e,t),xt.init(e,t)}),I6=Q("ZodIPv6",(e,t)=>{kP.init(e,t),xt.init(e,t)}),$6=Q("ZodCIDRv4",(e,t)=>{MP.init(e,t),xt.init(e,t)}),L6=Q("ZodCIDRv6",(e,t)=>{TP.init(e,t),xt.init(e,t)}),z6=Q("ZodBase64",(e,t)=>{NP.init(e,t),xt.init(e,t)}),H6=Q("ZodBase64URL",(e,t)=>{OP.init(e,t),xt.init(e,t)}),U6=Q("ZodE164",(e,t)=>{jP.init(e,t),xt.init(e,t)}),B6=Q("ZodJWT",(e,t)=>{PP.init(e,t),xt.init(e,t)}),kE=Q("ZodNumber",(e,t)=>{gE.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(o,s,c)=>qI(e,o,s),Qd(e,"ZodNumber",{gt(o,s){return this.check(Qx(o,s))},gte(o,s){return this.check(bm(o,s))},min(o,s){return this.check(bm(o,s))},lt(o,s){return this.check(Xx(o,s))},lte(o,s){return this.check(vm(o,s))},max(o,s){return this.check(vm(o,s))},int(o){return this.check(nC(o))},safe(o){return this.check(nC(o))},positive(o){return this.check(Qx(0,o))},nonnegative(o){return this.check(bm(0,o))},negative(o){return this.check(Xx(0,o))},nonpositive(o){return this.check(vm(0,o))},multipleOf(o,s){return this.check(Jx(o,s))},step(o,s){return this.check(Jx(o,s))},finite(){return this}});const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null}),F6=Q("ZodNumberFormat",(e,t)=>{IP.init(e,t),kE.init(e,t)});function nC(e){return EI(F6,e)}const q6=Q("ZodArray",(e,t)=>{$P.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>YI(e,r,o,s),e.element=t.element,Qd(e,"ZodArray",{min(r,o){return this.check(Md(r,o))},nonempty(r){return this.check(Md(1,r))},max(r,o){return this.check(bE(r,o))},length(r,o){return this.check(_E(r,o))},unwrap(){return this.element}})});function G6(e,t){return $I(q6,e,t)}const V6=Q("ZodUnion",(e,t)=>{LP.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>WI(e,r,o,s),e.options=t.options});function ME(e,t){return new V6({type:"union",options:e,...ke(t)})}const Z6=Q("ZodIntersection",(e,t)=>{zP.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>KI(e,r,o,s)});function Y6(e,t){return new Z6({type:"intersection",left:e,right:t})}const W6=Q("ZodLiteral",(e,t)=>{HP.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>GI(e,r,o),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 K6(e,t){return new W6({type:"literal",values:Array.isArray(e)?e:[e],...ke(t)})}const X6=Q("ZodTransform",(e,t)=>{UP.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>ZI(e,r),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new rE(e.constructor.name);r.addIssue=c=>{if(typeof c=="string")r.issues.push(Fl(c,r.value,t));else{const u=c;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=r.value),u.inst??(u.inst=e),r.issues.push(Fl(u))}};const s=t.transform(r.value,r);return s instanceof Promise?s.then(c=>(r.value=c,r.fallback=!0,r)):(r.value=s,r.fallback=!0,r)}});function Q6(e){return new X6({type:"transform",transform:e})}const J6=Q("ZodOptional",(e,t)=>{yE.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>wE(e,r,o,s),e.unwrap=()=>e._zod.def.innerType});function rC(e){return new J6({type:"optional",innerType:e})}const e$=Q("ZodExactOptional",(e,t)=>{BP.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>wE(e,r,o,s),e.unwrap=()=>e._zod.def.innerType});function t$(e){return new e$({type:"optional",innerType:e})}const n$=Q("ZodNullable",(e,t)=>{FP.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>XI(e,r,o,s),e.unwrap=()=>e._zod.def.innerType});function aC(e){return new n$({type:"nullable",innerType:e})}const r$=Q("ZodDefault",(e,t)=>{qP.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>JI(e,r,o,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function a$(e,t){return new r$({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():oE(t)}})}const o$=Q("ZodPrefault",(e,t)=>{GP.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>e6(e,r,o,s),e.unwrap=()=>e._zod.def.innerType});function i$(e,t){return new o$({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():oE(t)}})}const s$=Q("ZodNonOptional",(e,t)=>{VP.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>QI(e,r,o,s),e.unwrap=()=>e._zod.def.innerType});function l$(e,t){return new s$({type:"nonoptional",innerType:e,...ke(t)})}const c$=Q("ZodCatch",(e,t)=>{ZP.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>t6(e,r,o,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function u$(e,t){return new c$({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const d$=Q("ZodPipe",(e,t)=>{YP.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>n6(e,r,o,s),e.in=t.in,e.out=t.out});function oC(e,t){return new d$({type:"pipe",in:e,out:t})}const f$=Q("ZodReadonly",(e,t)=>{WP.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>r6(e,r,o,s),e.unwrap=()=>e._zod.def.innerType});function p$(e){return new f$({type:"readonly",innerType:e})}const h$=Q("ZodCustom",(e,t)=>{KP.init(e,t),Kt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>VI(e,r)});function m$(e,t={}){return LI(h$,e,t)}function g$(e,t){return zI(e,t)}function Pt(e){return wI(kE,e)}var y$=["Auto","Home","Bundle"],ea="__items",Nn=e=>`${e}${ea}`,v$=e=>e.inputType==="select"||e.inputType==="radio"||e.inputType==="checkbox",zy={auto_prior_carrier_name:{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"},auto_prior_liability_limit:{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"},auto_reason_for_no_insurance:{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"},residence_type:{OwnHome:"Own Home",OwnCondo:"Own Condo",RentHome:"Rent Home",RentCondo:"Rent Condo",RentApartment:"Rent Apartment",LiveWithParents:"Live With Parents"},home_prior_carrier_name:{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"},policy_bi:{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"},policy_um:{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"},policy_pd:{Dontknow:"Don't know",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000",cov250000:"250,000",cov500000:"500,000"},policy_mp:{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"},policy_umpd:{cov25000:"25,000",cov35000:"35,000",cov50000:"50,000",cov100000:"100,000",cov200000:"200,000",cov250000:"250,000",cov300000:"300,000",cov500000:"500,000"},policy_pip:{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"},policy_auto_death_indemnity:{NoCoverage:"No Coverage",cov5000:"5,000",cov10000:"10,000"},vehicle_comp_deductible:{NoCoverage:"No Coverage",Zero:"0",Fifty:"50",Hundred:"100",TwoHunderd:"200",TwoHundredfifty:"250",FiveHundred:"500",SeventyFiveHundred:"750",Thousand:"1,000",TwoThousand:"2,000"},vehicle_coll_deductible:{NoCoverage:"No Coverage",Zero:"0",Fifty:"50",Hundred:"100",TwoHunderd:"200",TwoHundredfifty:"250",FiveHundred:"500",SeventyFiveHundred:"750",Thousand:"1,000",TwoThousand:"2,000"},vehicle_towing_and_labor:{NoCoverage:"No Coverage",TwentyFive:"25",Forty:"40",Fifty:"50",SeventyFive:"75",Eighty:"80",Hundred:"100",TwelveHundred:"120",TwoHundred:"200",Unlimited:"Unlimited"},vehicle_transportation_expense:{NoCoverage:"No Coverage",cov20to600:"20/600",cov25to750:"25/750",cov30to900:"30/900",cov40to1200:"40/1,200",cov50to1500:"50/1,500",cov100to3000:"100/3,000"},education_level:{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"},industry:{"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"},occupation:{"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"},usage:{Business:"Business",Pleasure:"Pleasure",Farming:"Farming",To_FromWork:"To/From Work",To_FromSchool:"To/From School"},architectural_style:{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"},dwelling_type:{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)"},occupancy_type:{OwnerPrimary:"Owner Primary",OwnerSecondary:"Owner Secondary",OwnerSeasonal:"Owner Seasonal"},construction_quality:{Basic:"Basic",Modest:"Modest",Average:"Average",AboveAverage:"Above Average",Expensive:"Expensive",VeryExpensive:"Very Expensive",Opulent:"Opulent"},construction_type:{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"},foundation_type:{Slab:"Slab",Basement:"Basement",CrawlSpace:"Crawl Space",PartialBasement:"Partial Basement",PiersPostsPiles:"Piers / Posts / Piles",Open:"Open"},located_over_water:{NotOverWater:"No",PartiallyOverWater:"Partially Over Water",FullyOrEntirelyOverWater:"Fully or Entirely Over Water"},number_of_stories:{One:"1",OneHalf:"1.5",Two:"2",TwoHalf:"2.5",Three:"3",ThreeHalf:"3.5",Four:"4",BiLevel:"Bi-Level",TriLevel:"Tri-Level"},exterior_wall_type:{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"},roof_material_type:{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"},roof_shape:{B_Gable:"Gable",C_Hip:"Hip",A_Flat:"Flat",D_Other:"Other"},roof_updated_type:{NotUpdated:"Not Updated",PartialUpdate:"Partial Update",CompleteUpdate:"Complete Update"},heating_type:{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"},oil_tank_location:{AboveGround:"Above Ground",BelowGround:"Below Ground"},basement_type:{Basement:"Below Grade Basement",SplitLevelBasement:"Split Level Basement",WalkoutBasement:"Walkout Basement"},plumbing_type:{EntirelyCopper:"Entirely Copper",EntirelyGalvanized:"Entirely Galvanized",EntirelyPEX:"Entirely PEX",EntirelyPVC:"Entirely PVC",Polybutylene:"Polybutylene"},personal_liability:{TwentyFive:"$25,000",Fifty:"$50,000",OneHundred:"$100,000",TwoHundred:"$200,000",ThreeHundred:"$300,000",FourHundred:"$400,000",FiveHundred:"$500,000"},dwelling_medical_payments:{cov1000:"$1,000",cov2000:"$2,000",cov3000:"$3,000",cov4000:"$4,000",cov5000:"$5,000"},all_perils_deductible:{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%"},windstorm_deductible:{None:"None",OnePercent:"1%",TwoPercent:"2%",FivePercent:"5%",TenPercent:"10%"},distance_from_fire_hydrant_ft:{_0_500ft:"0-500 Feet",_501_1000ft:"501-1000 Feet",_1001ftAndGreater:"1001 Feet And Greater"},distance_from_fire_station_miles:{Lessthan5miles:"Less Than 5 Miles",Over5miles:"Over 5 Miles",NotAvailable:"Not Available"},employment_industry:{"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"},marital_status:{Single:"Single",Married:"Married",Seperated:"Separated",Divorced:"Divorced",Widowed:"Widowed",DomesticPartner:"Domestic Partner"},gender:{Female:"Female",Male:"Male"},co_applicant_employment_industry:{"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"},co_applicant_marital_status:{Single:"Single",Married:"Married",Seperated:"Separated",Divorced:"Divorced",Widowed:"Widowed",DomesticPartner:"Domestic Partner"},co_applicant_gender:{Female:"Female",Male:"Male"},description:{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"},tort_threshold:{Verbal_Threshold:"Limited right to sue",Zero_Threshold:"Unlimited right to sue"},pip_coverage_type:{Primary:"Primary",Secondary:"Secondary"},extended_medical:{cov1000:"$1,000",cov10000:"$10,000"},additional_pip:{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"},policy_pip_deductible:{cov250:"$250",cov500:"$500",cov1000:"$1,000",cov2000:"$2,000",cov2500:"$2,500"}},b$={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"},_$={"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"]},TE={"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"},Jd=new Set(["Disabled","Retired","Unemployed","Other"]),iC=new Set(["AAA","AARP","AIG","AIC","CNA","USAA","SR22","PIP","UM","UMPD","BI","PD","MP"]),S$=new Set,ql=e=>{if(iC.has(e)||/^[A-Z]{2}$/.test(e))return e;let t=e.replace(/^[A-Z]_(?=[A-Za-z])/,"");return/^[A-Z0-9_]+$/.test(t)?t.split("_").filter(Boolean).map(r=>iC.has(r)?r:r.charAt(0)+r.slice(1).toLowerCase()).join(" "):t.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").replace(/_/g," ").trim()},Hy=(e,t)=>zy[e]?.[t]||b$[t]||ql(t),NE=(e,t)=>(t??[]).map(r=>({value:r,label:Hy(e,r)})),Uy=e=>{let t=String(e??"").trim();return!t||Jd.has(t)?null:_$[t]??null},RE=e=>TE[e]??ql(e),x$=()=>[...S$].sort(),C$=Qo({ADDRESS_COLUMN_PREFIXES:()=>By,addressFromColumns:()=>Fy,addressToColumns:()=>OE,composeAddress:()=>nf,normalizeStateCode:()=>ef,parseAddress:()=>tf}),ef=e=>{let t=e.trim();return/^[A-Za-z]{2}$/.test(t)?t.toUpperCase():t},tf=e=>{let[t="",r="",o=""]=e.split(",").map(c=>c.trim()).filter(Boolean),s=/^([A-Za-z .]{2,})\s+(\d{5})(?:-\d{4})?$/.exec(o);return{line_1:t,city:r,state:ef(s?.[1]?.trim()??""),postal_code:s?.[2]??""}},nf=e=>{let t=[e.line_1.trim(),e.line_2.trim()].filter(Boolean).join(" ");if(!t)return"";let r=ef(e.state.trim());return`${t}, ${e.city.trim()}, ${r} ${e.postal_code.trim()}`.replace(/\s+/g," ").trim()},By={address:"",prior_address:"prior_",garaging_address:"garaging_address_"},Tl=(e,t)=>{let r=e[t];return r==null?"":String(r)},Fy=(e,t)=>nf({line_1:Tl(e,`${t}line_1`),line_2:Tl(e,`${t}line_2`),city:Tl(e,`${t}city`),state:Tl(e,`${t}state`),postal_code:Tl(e,`${t}postal_code`)}),OE=(e,t)=>{let r=tf(e);return{[`${t}line_1`]:r.line_1||null,[`${t}city`]:r.city||null,[`${t}state`]:r.state||null,[`${t}postal_code`]:r.postal_code||null}},rc=e=>{let t=(r,o)=>r.map((s,c)=>{let u=o.length?o.join("__"):"root",f=s.key??`${u}__q${c}_${String(s.question).slice(0,24).replace(/\W+/g,"-")||"field"}`,h=(s.conditionals??[]).map((g,y)=>({...g,conditionalQuestions:g.conditionalQuestions?t(g.conditionalQuestions,[...o,`${f}__c${y}`]):void 0}));return{...s,key:f,conditionals:h}});return t(e,[])},sC=e=>typeof e=="number"&&Number.isFinite(e)?e:typeof e=="string"&&e.trim()!==""&&!Number.isNaN(Number(e))?Number(e):null,lC=e=>{if(e instanceof Date&&!Number.isNaN(e.getTime()))return e.getTime();if(typeof e=="string"){let t=Date.parse(e);return Number.isNaN(t)?null:t}return null},cC=(e,t)=>{let r=sC(e),o=sC(t);if(r!=null&&o!=null)return r-o;let s=lC(e),c=lC(t);return s!=null&&c!=null?s-c:e==null||t==null?null:String(e).localeCompare(String(t))},w$=(e,t)=>Array.isArray(e)?e.some(r=>r===t):typeof e=="string"&&t!=null&&e.includes(String(t)),jE=(e,t,r)=>{switch(t){case"equals":return e===r;case"notEquals":return e!==r&&e!==""&&e!=null;case"lessThan":{let o=cC(e,r);return o!=null&&o<0}case"greaterThan":{let o=cC(e,r);return o!=null&&o>0}case"contains":return w$(e,r);case"startsWith":return e!=null&&r!=null&&String(e).startsWith(String(r));case"endsWith":return e!=null&&r!=null&&String(e).endsWith(String(r));default:return!1}},xs=e=>e.inputType!=="radio"||!e.options||e.options.length!==1||e.options[0]!=="Yes"?!1:(e.conditionals??[]).some(t=>t.conditionalQuestionsAllowMultiple&&t.conditionalType==="equals"&&t.conditionalValue==="Yes"),E$=(e,t)=>xs(e)?"Yes":t,qy=e=>(e.conditionals??[]).find(t=>t.conditionalQuestionsAllowMultiple),ac=(e,t)=>{let r=E$(e,t[e.key]),o=(e.conditionals??[]).filter(s=>jE(r,s.conditionalType,s.conditionalValue));return o.length>1&&!o.some(s=>s.conditionalQuestionsAllowMultiple)?o.slice(0,1):o},DE=new Set(["additional_pip","tort_threshold","pip_coverage_type","extended_medical","policy_pip_deductible","is_corporation"]),PE=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"]),A$=new Set(["Home","HomeConstruction","HomeFeatures","Demographics"]),k$=new Set(["HomePolicy","BundlePolicy"]),M$=new Set(["HomeCustomer","BundleCustomer","Demographics"]),rf=e=>{if(typeof e!="string"||!e.trim())return!1;let t=e.trim().toLowerCase();return t==="nj"||t==="n.j."||t==="n.j"||t==="new jersey"},uC=e=>!!e&&rf(e.state??e.State),Gy=(e,t,r)=>e==="has_health_insurance_auto_accident"?t==="BundleCustomer"||t==="Demographics"?!1:!uC(r):DE.has(e)?!uC(r):e==="household_size"?!(t&&A$.has(t)):e==="number_of_mortgagees"?!(t&&k$.has(t)):(e==="has_co_applicant"||e==="co_applicant_middle_name"||e==="co_applicant_relationship")&&t&&M$.has(t)?!1:e==="multi_policy_discount"&&t==="HomePolicy"||PE.has(e),T$=new Set(["auto_prior_years","auto_prior_months","auto_continuous_coverage_years"]),dC=e=>{if(typeof e!="string")return null;let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return null;let[r,o,s]=[Number(t[1]),Number(t[2]),Number(t[3])];if(o<1||o>12||s<1||s>31)return null;let c=new Date(Date.UTC(r,o-1,s));return c.getUTCFullYear()!==r||c.getUTCMonth()!==o-1||c.getUTCDate()!==s?null:c.getTime()},Ng=(e,t)=>{if(!t.effectiveDateKey||!t.expirationDateKey)return!1;let r=dC(e[t.expirationDateKey]),o=dC(e[t.effectiveDateKey]);return r==null||o==null?!1:r<o},N$=e=>{let t=null,r=null,o=null,s=new Set,c=new Set,u=h=>{let g=h.key??"",y=String(h.question??"").trim().toLowerCase();!t&&(g==="auto_prior_carrier_name"||g==="home_prior_carrier_name"||y.includes("current auto insurance company"))&&(t=g),!r&&(g==="effective_date"||y.includes("when do you need your insurance to begin"))&&(r=g),!o&&(g==="auto_prior_expiration_date"||g==="home_prior_expiration_date"||y.includes("when does the current policy expire"))&&(o=g),(g==="auto_reason_for_no_insurance"||y.includes("reason you are not currently insured")||y.includes("reason for lapse in coverage"))&&s.add(g),(g==="auto_prior_years"||g==="auto_prior_months"||g==="auto_continuous_coverage_years"||g==="auto_prior_expiration_date"||g==="auto_current_annual_premium_cents"||g==="auto_prior_liability_limit")&&c.add(g)};e.forEach(u);let f=h=>{h.forEach(g=>{(g.conditionals??[]).forEach(y=>{let v=y.conditionalQuestions??[];v.forEach(u),f(v)})})};return f(e),{currentCarrierKey:t,effectiveDateKey:r,expirationDateKey:o,noInsuranceReasonKeys:s,hideWhenNoPriorInsuranceKeys:c}},R$=(e,t)=>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"&&Ng(e,t)?!1:Ng(e,t),O$=(e,t,r)=>{let o=e.key??"";if(r.noInsuranceReasonKeys.has(o)&&r.currentCarrierKey==="home_prior_carrier_name"&&t.home_prior_carrier_name==="NoPriorInsurance"&&t.auto_prior_carrier_name!=="NoPriorInsurance")return!1;let s=(r.currentCarrierKey?t[r.currentCarrierKey]:void 0)==="NoPriorInsurance";return s&&r.hideWhenNoPriorInsuranceKeys.has(o)?!1:!r.noInsuranceReasonKeys.has(o)||s?!0:R$(t,r)},j$=new Set(["HomePolicy","BundlePolicy"]),D$=(e,t,r)=>(e.key??"")!=="lapse_in_coverage"||!r||!j$.has(r)||t.home_prior_carrier_name!=="NoPriorInsurance",P$=(e,t)=>{let r=e.key??"";if(r==="co_applicant_occupation"||r!=="occupation")return!0;let o=String(t.industry??t.employment_industry??"").trim();return!Jd.has(o)},Uo=(e,t,r)=>{let o=rc(e),s=N$(o),c=[],u=f=>{f.forEach(h=>{if(!O$(h,t,s)||!P$(h,t)||!D$(h,t,r))return;let g=h.key??"";if(Gy(g,r,t)){let y=s.currentCarrierKey?t[s.currentCarrierKey]:void 0;if(!(y&&y!=="NoPriorInsurance"&&Ng(t,s)&&T$.has(g)))return}xs(h)||c.push(h),ac(h,t).forEach(y=>{let v=y.conditionalQuestions??[];v.length&&(y.conditionalQuestionsAllowMultiple||u(v))})})};return u(o),c},af=(e,t,r,o,s)=>{let c=rc(e),u=[],f=h=>{h.forEach(g=>{let y=g.key??"";if(!Gy(y,o,r)&&(s!==0||y!=="relationship_to_insured"&&y!=="is_registered_owner")){if(y==="occupation"){let v=String(t.industry??t.employment_industry??"").trim();if(Jd.has(v))return}xs(g)||u.push(g),ac(g,t).forEach(v=>{let S=v.conditionalQuestions??[];!S.length||v.conditionalQuestionsAllowMultiple||f(S)})}})};return f(c),u},Kn=(e,t)=>{let r=e[Nn(t)];return Array.isArray(r)?r:[]},IE=new Date().getUTCFullYear(),Zu=Ua().trim().min(1,"Required").regex(/^[A-Za-z\s]+$/,"Only alphabetic characters are allowed."),fC=ME([K6(""),Ua().trim().regex(/^[A-Za-z\s]*$/,"Only alphabetic characters are allowed.")]).optional(),I$=(e,t,r)=>Pt({error:`${e} must be a number.`}).min(t,`${e} must be between ${t.toLocaleString("en-US")} and ${r.toLocaleString("en-US")}.`).max(r,`${e} must be between ${t.toLocaleString("en-US")} and ${r.toLocaleString("en-US")}.`).int(`${e} must be a whole number.`),Fi=(e,t)=>Pt({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.`),Yu=(e,t=1600)=>Pt({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(IE,`${e} cannot be in the future.`),Wu=e=>Pt({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.`),Nl=(e,t,r=0)=>{let o=10**t-1;return Pt({error:`${e} must be a number.`}).min(r,`${e}: Value must be between ${r.toLocaleString("en-US")} and ${o.toLocaleString("en-US")}.`).max(o,`${e}: Value must be between ${r.toLocaleString("en-US")} and ${o.toLocaleString("en-US")}.`).int(`${e} must be a whole number.`)},$E={email:Ua().trim().min(1,"Required").pipe(A6("Please enter a valid email address.")),phone:Ua().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:Ua().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:Ua().trim().min(1,"Required").regex(/^\d{6}$/,"Please enter the 6-digit code."),first_name:Zu,last_name:Zu,middle_name:fC,co_applicant_first_name:Zu,co_applicant_last_name:Zu,co_applicant_middle_name:fC,year_built:Yu("Year built",1800),year_roof_updated:Pt({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:Yu("Heating update year"),plumbing_update_year:Yu("Plumbing update year"),electrical_update_year:Yu("Electrical update year"),total_area_sq_ft:I$("Square footage",1,999999),sale_price_cents:Pt({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:Wu("Number of years with your prior carrier"),home_continuous_coverage_years:Wu("How long you have had continuous home coverage"),household_size:Pt({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:Pt({error:"Number of mortgagees must be a number."}).int().min(0,"Number of mortgagees cannot be negative.").max(3,"Number of mortgagees must be between 0 and 3."),dwelling_replacement_cost:Nl("Replacement cost",9,1),other_structures_coverage:Nl("Other structures",9),personal_property_coverage:Nl("Personal property",9),loss_of_use_coverage:Nl("Loss of use coverage",9),years_at_address:Pt({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:Pt({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:Pt({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:Pt({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:Pt({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:Pt({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."),number_of_parking_spaces:Pt({error:"Number of parking spaces must be a number."}).int().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."),distance_to_coast_miles:Pt({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:Nl("Amount paid",7),license_number:Ua().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."),property_damage_amount_paid_cents:Fi("Property damage amount paid",9999999),personal_injury_amount_paid_cents:Fi("Personal injury amount paid",9999999),vin:Ua().superRefine((e,t)=>{if(typeof e=="string"&&e.trim()!==""){if(/\s/.test(e)){t.addIssue({code:"custom",message:"VIN cannot contain spaces."});return}/^[A-HJ-NPR-Z0-9]{17}$/i.test(e.trim())||t.addIssue({code:"custom",message:"VIN must be exactly 17 letters and numbers (excluding I, O, and Q)."})}}),annual_mileage:Pt({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:Pt({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:Fi("Modifications value",9999999),cost_new_value_cents:Fi("Cost new value",9999999),stated_value_amount_cents:Fi("Stated Value Amount",9999999),auto_current_annual_premium_cents:Fi("Current annual premium",9999999),auto_prior_years:Wu("Years with prior auto carrier"),auto_prior_months:Pt({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:Wu("Years with continuous auto coverage")},LE=(e,t)=>{let r=$E[e];if(!r)return;let o=r.safeParse(t);return o.success?void 0:o.error.issues[0]?.message},Vy=e=>{if(/\s/.test(e))return!1;let t=e.trim();return t.length===17&&/^[A-HJ-NPR-Z0-9]{17}$/i.test(t)},$$=e=>new Date(`${e}T00:00:00Z`),rs=()=>{let e=new Date;return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))},Rg=(e,t)=>{let r=t.getUTCFullYear()-e.getUTCFullYear(),o=t.getUTCMonth()-e.getUTCMonth();return(o<0||o===0&&t.getUTCDate()<e.getUTCDate())&&--r,r},Og=(e,t)=>new Date(Date.UTC(e.getUTCFullYear()+t,e.getUTCMonth(),e.getUTCDate())),gr=e=>{if(!e||typeof e!="string")return null;let t=$$(e);return Number.isNaN(t.getTime())?null:t},rr=e=>{if(e==null||e==="")return null;let t=Number(e);return Number.isNaN(t)?null:t},qi=(e,t)=>({targetKey:e,dependsOn:[e],validate:r=>{if(!r[e]||typeof r[e]!="string")return;let o=gr(r[e]);return o?o>rs()?t:void 0:"Invalid date."}}),Gi=(e,t)=>({targetKey:e,dependsOn:[e,"date_of_birth"],validate:r=>{let o=rr(r[e]),s=gr(r.date_of_birth);if(!(o==null||!s))return o>Rg(s,rs())?t:void 0}}),pC=(e,t)=>({targetKey:e,dependsOn:[e],validate:r=>{if(!r[e]||typeof r[e]!="string")return;let o=gr(r[e]);if(!o)return"Invalid date.";let s=rs();return o<Og(s,-1)||o>Og(s,1)?t:void 0}}),hC=e=>{let t=/^cov(\d+)to(\d+)$/.exec(e);if(t)return{perPerson:Number(t[1]),perOccurrence:Number(t[2])};let r=/^cov(\d+)CSL$/.exec(e);return r?{perPerson:Number(r[1]),perOccurrence:Number(r[1])}:null},Zy=e=>typeof e.ssn_display=="string"&&e.ssn_display.trim()!=="",zE=e=>rf(e.state)&&!Zy(e),HE=(e,t)=>e.required||e.key==="social_security_number"&&zE(t),UE=[{targetKey:"social_security_number",dependsOn:["social_security_number","state"],validate:e=>{if(!("social_security_number"in e)||!zE(e))return;let t=e.social_security_number;return(typeof t=="string"?t.trim():"")===""?"Social Security Number is required.":void 0}},{targetKey:"date_of_birth",dependsOn:["date_of_birth"],validate:e=>{if(!e.date_of_birth||typeof e.date_of_birth!="string")return;let t=gr(e.date_of_birth);return t?t.getUTCFullYear()<1900?"Date of birth year can't be earlier than 1900.":Rg(t,rs())<18?"Applicant can't be under the age of 18.":void 0:"Invalid date."}},{targetKey:"co_applicant_date_of_birth",dependsOn:["co_applicant_date_of_birth"],validate:e=>{if(!e.co_applicant_date_of_birth||typeof e.co_applicant_date_of_birth!="string")return;let t=gr(e.co_applicant_date_of_birth);return t?t.getUTCFullYear()<1900?"Date of birth year can't be earlier than 1900.":Rg(t,rs())<16?"Co-applicant can't be under the age of 16.":void 0:"Invalid date."}},{targetKey:"year_roof_updated",dependsOn:["year_roof_updated","year_built"],validate:e=>{let t=rr(e.year_roof_updated);if(t!=null)return t<(rr(e.year_built)??1e3)||t>IE?"Roof renovation/replacement year must be between the home's build year and the current year.":void 0}},{targetKey:"move_in_date",dependsOn:["move_in_date","year_built"],validate:e=>{let t=gr(e.move_in_date),r=rr(e.year_built);if(!(!t||r==null))return t.getUTCFullYear()<r?"Purchase date cannot be prior to the year the building was originally constructed.":void 0}},qi("move_in_date","Purchase date cannot be in the future."),qi("date_first_licensed","Date first licensed cannot be in the future."),{targetKey:"date_first_licensed",dependsOn:["date_first_licensed","date_of_birth"],validate:e=>{let t=gr(e.date_first_licensed),r=gr(e.date_of_birth);if(!(!t||!r))return t<r?"Date licensed cannot be before driver date of birth.":t<Og(r,16)?"Driver must be at least 16 years old at the date first licensed.":void 0}},qi("occurred_at","Incident date cannot be in the future."),qi("accident_prevention_course_date","Course date cannot be in the future."),qi("date_of_incident","Loss date cannot be in the future."),qi("purchase_date","Vehicle purchase date cannot be in the future."),{targetKey:"effective_date",dependsOn:["effective_date"],validate:e=>{if(!e.effective_date||typeof e.effective_date!="string")return;let t=gr(e.effective_date);if(!t)return"Invalid date.";let r=rs(),o=new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth()+3,r.getUTCDate()));if(t<r)return"Insurance start date cannot be in the past.";if(t>o)return"Insurance must begin within 3 months from today."}},Gi("years_at_address","Time at address cannot be greater than the applicant age."),Gi("years_at_prior_address","Years at prior address cannot be greater than the applicant age."),{targetKey:"home_prior_years",dependsOn:["home_prior_years","home_continuous_coverage_years"],validate:e=>{let t=rr(e.home_prior_years),r=rr(e.home_continuous_coverage_years);if(t!=null&&r!=null)return t>r?"Years with prior carrier cannot be higher than years with continuous coverage.":void 0}},Gi("home_prior_years","Years with prior carrier cannot be greater than the Applicant's age."),Gi("home_continuous_coverage_years","Years with continuous home coverage cannot be greater than the Applicant's age."),pC("home_prior_expiration_date","Policy expiration date must be between 1 year ago and 1 year from now."),{targetKey:"purchase_date",dependsOn:["purchase_date","year"],validate:e=>{let t=gr(e.purchase_date),r=rr(e.year);if(!(!t||r==null))return t.getUTCFullYear()<r?"The year the vehicle was purchased is not valid with the model year.":void 0}},pC("auto_prior_expiration_date","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=>{let t=rr(e.auto_prior_years),r=rr(e.auto_continuous_coverage_years);if(t!=null&&r!=null)return t>r?"Years with prior auto carrier cannot be higher than years with continuous coverage.":void 0}},Gi("auto_prior_years","Years with prior auto carrier cannot be greater than the Applicant's age."),Gi("auto_continuous_coverage_years","Years with continuous auto coverage cannot be greater than the Applicant's age."),{targetKey:"vehicle_coll_deductible",dependsOn:["vehicle_coll_deductible","vehicle_comp_deductible"],validate:e=>{let t=e.vehicle_coll_deductible,r=e.vehicle_comp_deductible;if(!(typeof t!="string"||!t||typeof r!="string"||!r))return r==="NoCoverage"&&t!=="NoCoverage"?"Collision Coverage cannot be chosen if Comprehensive is No Coverage.":void 0}},{targetKey:"policy_um",dependsOn:["policy_um","policy_bi"],validate:e=>{let t=e.policy_um,r=e.policy_bi;if(typeof t!="string"||!t||typeof r!="string"||!r||t==="Reject"||r==="Dontknow")return;let o=u=>u.endsWith("CSL");if(o(t)&&!o(r))return"A Combined Single Limit cannot be selected for Uninsured/Underinsured Motorist unless a Combined Single Limit has also been selected for Liability.";let s=hC(t),c=hC(r);if(!(!s||!c))return s.perPerson>c.perPerson||s.perOccurrence>c.perOccurrence?"Uninsured/Underinsured Motorist Limit value cannot be greater than Bodily Injury Limit value.":void 0}},{targetKey:"policy_umpd",dependsOn:["policy_umpd","policy_pd"],validate:e=>{let t=e.policy_umpd,r=e.policy_pd;if(typeof t!="string"||!t||typeof r!="string"||!r||t==="NoCoverage"||r==="Dontknow")return;let o=u=>{if(!u.startsWith("cov"))return null;let f=Number.parseInt(u.replace("cov",""),10);return Number.isNaN(f)?null:f},s=o(t),c=o(r);return s!=null&&c!=null&&s>c?"Uninsured Motorist Property Damage Limit value cannot be greater than Liability Property Damage Limit value.":void 0}},{targetKey:"custom_equipment_value_cents",dependsOn:["custom_equipment_value_cents","stated_value_amount_cents"],validate:e=>{let t=rr(e.custom_equipment_value_cents),r=rr(e.stated_value_amount_cents);if(t!=null&&r!=null)return r>0&&t>0?"Modifications should be included in the stated value of the vehicle. If a stated value quote is not required, remove the stated value.":void 0}}],BE=(e,t)=>{let r={};for(let o of UE){if(t?.has(o.targetKey))continue;let s=o.validate(e);s&&!r[o.targetKey]&&(r[o.targetKey]=s)}return r},fs=(e,t)=>t==="number"?e==null||typeof e=="string"&&e.trim()==="":t==="checkbox"?e!==!0:e==null||typeof e=="string"&&e.trim()==="",jg=(e,t)=>{let r={};e.forEach(u=>{let f=u.key,h=t[f];if(u.required&&fs(h,u.inputType)){r[f]="Required";return}if(!fs(h,u.inputType)){let g=LE(f,h);g&&(r[f]=g)}});let o={...t};e.forEach(u=>{u.key in o||(o[u.key]="")});let s=BE(o,new Set(Object.keys(r))),c=new Set(e.map(u=>u.key));for(let[u,f]of Object.entries(s))c.has(u)&&(r[u]=f);return r},L$=Qo({DRIVER_ASSIGNMENTS_KEY:()=>Xa,VEHICLE_COVERAGE_KEYS:()=>oc,VEHICLE_COVERAGE_LABELS:()=>sc,VEHICLE_POLICY_SELECTIONS_KEY:()=>ps,assignmentsFor:()=>of,driverAssignmentError:()=>Xy,driverPercent:()=>Wy,ensureAutoCoverageSelections:()=>FE,vehicleCoverageErrors:()=>Qy,vehicleCoverageOptions:()=>Yy,vehicleDisplayName:()=>ic,withDriverPercent:()=>Ky}),ps="vehicle_policy_selections",FE=(e,t)=>e!=="AutoCurrentCarrier"||t.some(r=>r.key==="vehicle_policy_selections")?[...t]:[...t,{question:"Vehicle coverage selections",inputType:"custom",key:ps,required:!1}],oc=["vehicle_comp_deductible","vehicle_coll_deductible","vehicle_towing_and_labor","vehicle_transportation_expense"],mC=["NoCoverage","Zero","Fifty","Hundred","TwoHunderd","TwoHundredfifty","FiveHundred","Thousand","TwoThousand"],gC=["NoCoverage","Zero","Fifty","Hundred","TwoHunderd","TwoHundredfifty","FiveHundred","SeventyFiveHundred","Thousand","TwoThousand"],z$=["NoCoverage","TwentyFive","Forty","Fifty","SeventyFive","Eighty","Hundred","TwelveHundred","TwoHundred","Unlimited"],H$=["NoCoverage","TwentyFive","Fifty","SeventyFive","Hundred","TwoHundred","Unlimited"],U$=["NoCoverage","cov20to600","cov30to900","cov40to1200","cov50to1500"],B$=["NoCoverage","cov20to600","cov25to750","cov30to900","cov40to1200","cov50to1500","cov100to3000"],ic=(e,t)=>[e.year,e.make,e.model].filter(Boolean).join(" ")||`Vehicle ${t+1}`,sc={vehicle_comp_deductible:"Comprehensive deductible",vehicle_coll_deductible:"Collision deductible",vehicle_towing_and_labor:"Towing and Labor",vehicle_transportation_expense:"Transportation expense"},Yy=e=>{let t=rf(e);return{vehicle_comp_deductible:t?gC:mC,vehicle_coll_deductible:t?gC:mC,vehicle_towing_and_labor:t?H$:z$,vehicle_transportation_expense:t?B$:U$}},Xa="driver_vehicle_assignments",of=e=>{let t=e[Xa];return t&&typeof t=="object"?t:{}},Wy=(e,t,r)=>e[`v${t}`]?.[`d${r}`],Ky=(e,t,r,o)=>({...e,[`v${t}`]:{...e[`v${t}`]??{},[`d${r}`]:o}}),Xy=(e,t,r)=>{if(r<2)return null;let o=e[`v${t}`];if(!o)return null;let s=Array.from({length:r},(f,h)=>o[`d${h}`]??0),c=s.filter(f=>f>0);if(c.length>=2&&c.every(f=>f===50))return"Two drivers cannot both be at 50%. Give one of them the larger share.";let u=s.reduce((f,h)=>f+h,0);return u>0&&u!==100?`Driver percentages must add up to 100% (currently ${u}%).`:null},Qy=e=>{let t=[];return e.forEach((r,o)=>{let s={};for(let c of oc)fs(r?.[c],"select")&&(s[c]="Required");Object.keys(s).length&&t.push({index:o,errorsByKey:s})}),t},F$=Qo({REPEATABLE_GROUP_KEYS:()=>Jy,fromQuoteRecord:()=>ov,normalizeEducationLevelValue:()=>nv,normalizeIndustryValue:()=>tv,normalizeOccupationValue:()=>rv,toQuotePayload:()=>av}),qE=21474836,GE=new Set(["sale_price_cents"]),Jy=["drivers","vehicles","losses","home_losses","driver_violations","driver_accidents"],q$=e=>e==="Yes"||e!=="No"&&e,G$=e=>e===!0?"Yes":e===!1?"No":e,V$=e=>{if(typeof e!="number"||!Number.isFinite(e))return e;let t=Math.trunc(e);return t<1?e:Math.min(t,qE)*100},ev=(e,t)=>{if(typeof e!="string"||!t)return e;let r=e.trim();if(!r||t[r])return e;let o=r.toLowerCase();return Object.keys(t).find(s=>s.toLowerCase()===o||t[s]?.toLowerCase()===o)??e},tv=e=>ev(e,zy.industry),nv=e=>ev(e,zy.education_level),rv=e=>ev(e,TE),av=e=>{let t={},r=Object.keys(e).filter(f=>!f.includes(ea)),o=new Set,s=new Set;for(let[f,h]of Object.entries(e))if(f.endsWith("__items")&&Array.isArray(h)){let g=f.slice(0,-ea.length);s.add(g),r.includes(g)&&h.forEach(y=>{y&&typeof y=="object"&&Object.keys(y).forEach(v=>o.add(v))})}for(let[f,h]of Object.entries(e)){if(f.endsWith("__items")){let g=f.slice(0,-ea.length);if(!r.includes(g))continue;t[g]=Array.isArray(h)?h.map(y=>av(y)):h;continue}s.has(f)||o.has(f)||f.startsWith("__")||(t[f]=GE.has(f)?V$(h):q$(h))}let c=t.auto_prior_carrier_name;if(typeof c=="string"&&c.trim()!==""){let f=c==="NoPriorInsurance";if(t.auto_has_prior_insurance=!f,f)for(let h of["auto_prior_years","auto_prior_months","auto_prior_expiration_date","auto_prior_liability_limit","auto_continuous_coverage_years","auto_cancelled_declined_refused_to_renew","auto_current_annual_premium_cents"])delete t[h]}let u=t.home_prior_carrier_name;if(typeof u=="string"&&u.trim()!==""){let f=u==="NoPriorInsurance";if(t.home_has_prior_insurance=!f,f)for(let h of["home_prior_years","home_continuous_coverage_years","home_prior_expiration_date","property_insurance_cancelled"])delete t[h]}return Array.isArray(t.drivers)&&(t.drivers=t.drivers.map(f=>{if(!f||typeof f!="object")return f;let h={...f};return h.industry=tv(h.industry),h.education_level=nv(h.education_level),h.occupation=rv(h.occupation),h})),Array.isArray(t.home_losses)&&(t.home_losses=t.home_losses.map(f=>{if(!f||typeof f!="object")return f;let h=f,g=h.amount_paid_cents;if(typeof g!="number"||!Number.isFinite(g))return h;let y=Math.min(Math.max(Math.trunc(g),0),qE);return{...h,amount_paid_cents:y*100}})),t},ov=e=>{let t={};for(let[o,s]of Object.entries(e))if(s!=null){if(Array.isArray(s)){if(Jy.includes(o)){let c=s.map(u=>u&&typeof u=="object"?ov(u):u);t[Nn(o)]=c,t[o]=c.length?"Yes":"No"}continue}if(typeof s!="object"){if(GE.has(o)&&typeof s=="number"){t[o]=Math.round(s/100);continue}t[o]=G$(s)}}let r=t[Nn("home_losses")];Array.isArray(r)&&(t[Nn("home_losses")]=r.map(o=>{let s=o,c=s?.amount_paid_cents;return typeof c=="number"?{...s,amount_paid_cents:Math.round(c/100)}:s}));for(let[o,s]of Object.entries(t))typeof s=="string"&&/^\d{4}-\d{2}-\d{2}T/.test(s)&&(t[o]=s.slice(0,10));for(let[o,s]of Object.entries(By)){if(t[o])continue;let c=Fy(e,s);c&&(t[o]=c)}return t},sf=[{question:"What's your ZIP code?",inputType:"text",key:"postal_code",required:!0}],iv="Zip|",VE=[{question:"What is your email address?",inputType:"email",key:"email",required:!0}],ZE="Email|",YE=new Set(["TX","NJ"]),Gl={Auto:["Zip","Email","Product","Name","Vehicle","Driver","AutoCurrentCarrier","Demographics","Ssn","Phone"],Home:["Zip","Email","Product","Name","Home","HomePolicy","Demographics","Ssn","Phone"],Bundle:["Zip","Email","Product","Name","Home","Vehicle","Driver","BundlePolicy","Demographics","Ssn","Phone"]},sv=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"]),WE=new Set(["total_area_sq_ft","annual_mileage","miles_to_work","distance_to_coast_miles"]),lv=e=>sv.has(e),cv=e=>sv.has(e)||WE.has(e),uv=(e,t)=>{let r=String(e??"").replace(/\D/g,"");if(!r)return"";let o=Number(r);if(!Number.isFinite(o))return"";let s=o.toLocaleString("en-US");return t?`$${s}`:s},Z$=Qo({STAGES_BY_PRODUCT:()=>Gl,ZIP_FIRST_PAINT_CACHE_KEY:()=>iv,ZIP_FIRST_PAINT_QUESTIONS:()=>sf,itemScope:()=>lc,reviewGroupsForStage:()=>pv,reviewRowsForStage:()=>hv,stageSlice:()=>KE,validateStage:()=>fv}),Y$=["ssn_display"],lc=(e,t)=>{let r={...e,...t};for(let o of Y$)o in t||delete r[o];return r},W$=(e,t,r)=>{let o=lc(e,t);for(let s of r)s.key in t?o[s.key]=t[s.key]:delete o[s.key];return o},K$={vehicles:"Vehicle",drivers:"Driver",driver_accidents:"Accident",driver_violations:"Violation",losses:"Loss",home_losses:"Loss"},pd=e=>K$[e]??"Entry",dv=(e,t,r,o)=>{let s=(c,u)=>{c.forEach(f=>{let h=qy(f);if(h){let g=xs(f)||u[f.key]===h.conditionalValue;o(f.key,h.conditionalQuestions??[],g)}ac(f,u).forEach(g=>{g.conditionalQuestionsAllowMultiple||s(g.conditionalQuestions??[],u)})})};s(rc(e),t)},fv=({questions:e,values:t,stageKey:r})=>{let o=Uo(e,t,r),s=jg(o,t),c=[],u=[];for(let[f,h]of Object.entries(s)){let g=o.find(y=>y.key===f);u.push(`${g?.question??f}: ${h}`)}if(dv(e,t,r,(f,h,g)=>{if(!g)return;let y=Kn(t,f);if(!y.length){u.push(`Add at least one ${pd(f).toLowerCase()}.`),s[Nn(f)]=`Add at least one ${pd(f).toLowerCase()}.`;return}y.forEach((v,S)=>{let x=af(h,v,t,r,S),C=jg(x,W$(t,v,x)),A={};for(let w of x){let k=C[w.key];k&&(A[w.key]=k,u.push(`${pd(f)} ${S+1} — ${w.question}: ${k}`))}Object.keys(A).length&&c.push({groupKey:f,index:S,errorsByKey:A})})}),o.some(f=>f.key==="vehicle_policy_selections")){let f=Kn(t,"vehicles"),h=new Map;for(let v of Qy(f))h.set(v.index,{...v.errorsByKey}),u.push(`Vehicle ${v.index+1} — coverage selections are incomplete.`);let g=of(t),y=Kn(t,"drivers").length;f.forEach((v,S)=>{let x=Xy(g,S,y);x&&(h.set(S,{...h.get(S)??{},[Xa]:x}),u.push(`Vehicle ${S+1} — ${x}`))});for(let[v,S]of h)c.push({groupKey:"vehicles",index:v,errorsByKey:S})}return{errorsByKey:s,itemErrors:c,issues:u,isValid:Object.keys(s).length===0&&c.length===0}},yC=e=>Object.values(e).every(t=>t==null||String(t).trim()===""),KE=(e,t,r)=>{let o={};for(let c of Uo(e,t,r))c.key in t&&(o[c.key]=t[c.key]);dv(e,t,r,(c,u,f)=>{let h=Nn(c);if(!f||!(h in t))return;let g=Kn(t,c),y=g.filter(v=>!yC(v));!y.length&&g.length||(o[h]=y,o[c]=t[c]??"Yes")});let s=Nn("vehicles");return Uo(e,t,r).some(c=>c.key==="vehicle_policy_selections")&&s in t&&!(s in o)&&(o[s]=Kn(t,"vehicles").filter(c=>!yC(c)),o.vehicles=t.vehicles??"Yes","driver_vehicle_assignments"in t&&(o[Xa]=t[Xa])),o},X$=(e,t)=>[e.first_name,e.last_name].map(r=>String(r??"").trim()).filter(Boolean).join(" ")||`Driver ${t+1}`,Q$=(e,t,r)=>e==="vehicles"?ic(t,r):e==="drivers"?X$(t,r):`${pd(e)} ${r+1}`,pv=({questions:e,values:t,stageKey:r,suppressedKeys:o})=>{let s=[];return dv(e,t,r,(c,u,f)=>{if(!f)return;let h=Kn(t,c).map((g,y)=>{let v=lc(t,g),S=af(u,g,t,r,y);return{name:Q$(c,g,y),rows:S.filter(x=>!x.key.endsWith(ea)).filter(x=>!o?.has(x.key)).map(x=>({key:`${c}__${y}__${x.key}`,label:x.question,value:Dg(x,g[x.key],v)}))}});s.push({groupKey:c,label:c.replace(/_/g," ").replace(/^./,g=>g.toUpperCase()),entries:h})}),s},vC=e=>{let t=String(e??"").replace(/\D/g,"");return t.length>=4?t.slice(-4):null},Dg=(e,t,r)=>{if(e.key==="social_security_number"){let o=vC(t)??vC(r.ssn_display);return o?`•••–••–${o}`:"—"}return t==null||t===""?"—":t===!0?"Yes":t===!1?"No":Array.isArray(t)?`${t.length} added`:e.inputType==="select"||e.inputType==="radio"?Hy(e.key,String(t)):e.inputType==="number"&&cv(e.key)&&uv(t,lv(e.key))||String(t)},J$=e=>({question:sc[e],key:e,required:!0,inputType:"select"}),hv=({questions:e,values:t,stageKey:r,suppressedKeys:o})=>{let s=Uo(e,t,r),c=s.filter(u=>!u.key.endsWith(ea)).filter(u=>u.key!==ps).filter(u=>!o?.has(u.key)).map(u=>({key:u.key,label:u.question,value:Dg(u,t[u.key],t)}));return s.some(u=>u.key==="vehicle_policy_selections")&&Kn(t,"vehicles").forEach((u,f)=>{let h=ic(u,f);for(let g of oc)c.push({key:`${ps}__${f}__${g}`,label:`${h} — ${sc[g]}`,value:Dg(J$(g),u[g],t)})}),c};const nr=Object.freeze(Object.defineProperty({__proto__:null,$:xs,A:Xy,B:Zy,C:F$,D:sc,E:oc,F:L$,G:LE,H:HE,I:ic,J:DE,K:jg,L:Ky,M:FE,N:Qy,O:ps,P:Yy,Q:Uo,R:UE,S:rv,St:Nn,T:Xa,U:Vy,V:fs,W:BE,X:jE,Y:rc,Z:af,_:sf,_t:Hy,a:Z$,at:By,b:nv,bt:y$,c:WE,ct:C$,d:cv,dt:tf,et:rf,f:ZE,ft:Jd,g:iv,gt:Uy,h:YE,ht:RE,i:KE,it:qy,j:Wy,k:of,l:uv,lt:nf,m:Gl,mt:NE,n:pv,nt:Kn,o:fv,ot:Fy,p:VE,pt:ql,q:PE,r:hv,rt:ac,s:sv,st:OE,t:lc,tt:Gy,u:lv,ut:ef,v:Jy,vt:x$,w:av,x:tv,xt:v$,y:ov,yt:ea,z:$E},Symbol.toStringTag,{value:"Module"}));var Pg=e=>{let t=e.replace(/\D/g,"").replace(/^1/,"").slice(0,10);return t.length<=3?t:t.length<=6?`(${t.slice(0,3)}) ${t.slice(3)}`:`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`},mv=e=>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)}`,XE=e=>mv(e.replace(/\D/g,"").slice(0,9)),eL="•",tL=5,QE=e=>{let t=e.replace(/\D/g,"").slice(0,9),r=Math.min(t.length,tL);return mv("•".repeat(r)+t.slice(r))},JE=(e,t)=>{let r=e.replace(/\D/g,""),o=t.split("•").length-1;return(r.slice(0,o)+t.replace(/\D/g,"")).slice(0,9)},eA={CollDeductible:{key:"vehicle_coll_deductible",label:"Collision deductible",entity:"vehicle"},CompDeductible:{key:"vehicle_comp_deductible",label:"Comprehensive deductible",entity:"vehicle"},TowingAndLabor:{key:"vehicle_towing_and_labor",label:"Towing and labor",entity:"vehicle"},TransportationExpense:{key:"vehicle_transportation_expense",label:"Rental reimbursement",entity:"vehicle"},FullGlass:{key:"vehicle_full_glass",label:"Full glass coverage",entity:"vehicle"},LoanLease:{key:"vehicle_loan_lease",label:"Loan/lease payoff",entity:"vehicle"},AnyModifications:{key:"vehicle_has_modifications",label:"Vehicle modifications",entity:"vehicle"},AntiTheft:{key:"anti_theft_type",label:"Anti-theft device",entity:"vehicle"},AntiLockBrakes:{key:"anti_lock_brakes",label:"Anti-lock brakes",entity:"vehicle"},PassiveRestraints:{key:"passive_restraint_type",label:"Passive restraints",entity:"vehicle"},DaytimeRunningLights:{key:"daytime_running_lights",label:"Daytime running lights",entity:"vehicle"},BodyStyle:{key:"body_style",label:"Body style",entity:"vehicle"},NumberOfMiles:{key:"annual_mileage",label:"Annual mileage",entity:"vehicle"},MilesToWork:{key:"miles_to_work",label:"Miles to work",entity:"vehicle"},OwnershipType:{key:"ownership_type",label:"Own, finance, or lease",entity:"vehicle"},PrimeryUseOfVehicle:{key:"usage",label:"How the vehicle is used",entity:"vehicle"},WasTheCarNew:{key:"new_when_purchased",label:"New when purchased",entity:"vehicle"},GarageAddressDifferent:{key:"vehicle_garaged_at_residence",label:"Where the vehicle is parked",entity:"vehicle"},CostNewValue:{key:"cost_new_value_cents",label:"Original cost",entity:"vehicle"},PLYear:{key:"year",label:"Vehicle year",entity:"vehicle"},PLMake:{key:"make",label:"Vehicle make",entity:"vehicle"},PLModel:{key:"model",label:"Vehicle model",entity:"vehicle"},VIN:{key:"vin",label:"VIN",entity:"vehicle"},DOB:{key:"date_of_birth",label:"Date of birth",entity:"driver"},DriverDateLicensed:{key:"date_first_licensed",label:"Date first licensed",entity:"driver"},DriverLicenseNumber:{key:"license_number",label:"License number",entity:"driver"},DriverStateLicensed:{key:"license_state",label:"License state",entity:"driver"},DriverLicenseStatus:{key:"license_status",label:"License status",entity:"driver"},DriversLicenseBeenSuspendedOrRevoked:{key:"last_5_years_license_suspended_or_revoked",label:"License suspended or revoked",entity:"driver"},DriverOccupationStr:{key:"occupation",label:"Occupation",entity:"driver"},DriverEmploymentIndustry:{key:"industry",label:"Industry",entity:"driver"},DriverEducation:{key:"education_level",label:"Education",entity:"driver"},DriverRelationshipToDriver:{key:"relationship_to_insured",label:"Relationship to you",entity:"driver"},DriverSSN:{key:"social_security_number",label:"Social Security number",entity:"driver"},SR:{key:"sr22",label:"SR-22 filing",entity:"driver"},IsDefensiveDriver:{key:"accident_prevention_course",label:"Defensive driving course",entity:"driver"},DefensiveDriverCourseDate:{key:"accident_prevention_course_date",label:"Defensive driving course date",entity:"driver"},Gender:{key:"gender",label:"Gender",entity:"driver"},BI:{key:"policy_bi",label:"Bodily injury limit",entity:"coverage"},PD:{key:"policy_pd",label:"Property damage limit",entity:"coverage"},UM:{key:"policy_um",label:"Uninsured/underinsured motorist limit",entity:"coverage"},UMPD:{key:"policy_umpd",label:"Uninsured motorist property damage",entity:"coverage"},MP:{key:"policy_mp",label:"Medical payments",entity:"coverage"},PIP:{key:"policy_pip",label:"Personal injury protection",entity:"coverage"},PIPDeductible:{key:"policy_pip_deductible",label:"PIP deductible",entity:"coverage"},AdditionalPIP:{key:"additional_pip",label:"Additional PIP",entity:"coverage"},AutoDeathIndemnity:{key:"policy_auto_death_indemnity",label:"Death indemnity",entity:"coverage"},TortThreshold:{key:"tort_threshold",label:"Lawsuit (tort) option",entity:"coverage"},HealthCare:{key:"pip_coverage_type",label:"PIP coverage type",entity:"coverage"},ExtendedMedical:{key:"extended_medical",label:"Extended medical",entity:"coverage"},HealthInsCoversAutoAccident:{key:"has_health_insurance_auto_accident",label:"Health insurance covers auto accidents",entity:"coverage"},EffectiveDate:{key:"effective_date",label:"Policy start date",entity:"coverage"},PLAllPerilsDeductible:{key:"all_perils_deductible",label:"Deductible",entity:"coverage"},WindstormDeductible:{key:"windstorm_deductible",label:"Windstorm deductible",entity:"coverage"},PLPersonalLiability:{key:"personal_liability",label:"Personal liability",entity:"coverage"},PLPersonalProperty:{key:"personal_property_coverage",label:"Personal property coverage",entity:"coverage"},PLOtherStructures:{key:"other_structures_coverage",label:"Other structures coverage",entity:"coverage"},PersonalLineReplacementCost:{key:"dwelling_replacement_cost",label:"Dwelling replacement cost",entity:"coverage"},DwellingMedicalPayments:{key:"dwelling_medical_payments",label:"Medical payments to others",entity:"coverage"},LossOfUse:{key:"loss_of_use_coverage",label:"Loss of use coverage",entity:"coverage"},NumberOfMortgagees:{key:"number_of_mortgagees",label:"Number of mortgages",entity:"coverage"},PLYearBuilt:{key:"year_built",label:"Year built",entity:"home"},PLSquareFootage:{key:"total_area_sq_ft",label:"Square footage",entity:"home"},PLTypeOfDwelling:{key:"dwelling_type",label:"Dwelling type",entity:"home"},PLConstructionType:{key:"construction_type",label:"Construction type",entity:"home"},PLNumberOfStories:{key:"number_of_stories",label:"Number of stories",entity:"home"},PLNumberOfUnits:{key:"number_of_units",label:"Number of units",entity:"home"},PLNumberOfUnitsInFirewall:{key:"number_of_units_in_firewall",label:"Units in firewall",entity:"home"},PLHeatingType:{key:"heating_type",label:"Heating type",entity:"home"},RoofType:{key:"roof_material_type",label:"Roof material",entity:"home"},MitRoofShape:{key:"roof_shape",label:"Roof shape",entity:"home"},PLRoofUpdated:{key:"roof_updated_type",label:"Roof update",entity:"home"},RoofUpdatedYear:{key:"year_roof_updated",label:"Year the roof was updated",entity:"home"},TypeOfFoundation:{key:"foundation_type",label:"Foundation type",entity:"home"},ExteriorWallsConstruction:{key:"exterior_wall_type",label:"Exterior walls",entity:"home"},ArchitectureStyle:{key:"architectural_style",label:"Architectural style",entity:"home"},ConstructionQuality:{key:"construction_quality",label:"Construction quality",entity:"home"},BasementType:{key:"basement_type",label:"Basement type",entity:"home"},OccupancyType:{key:"occupancy_type",label:"Occupancy",entity:"home"},TypeOfResidence:{key:"residence_type",label:"Residence type",entity:"home"},PurchaseDate:{key:"move_in_date",label:"Move-in date",entity:"home"},PurchasePrice:{key:"sale_price_cents",label:"Purchase price",entity:"home"},DistanceToFireHydrant:{key:"distance_from_fire_hydrant_ft",label:"Distance to fire hydrant",entity:"home"},DistanceToFireStation:{key:"distance_from_fire_station_miles",label:"Distance to fire station",entity:"home"},NumberOfDogsOnPremises:{key:"number_of_dogs",label:"Dogs on the property",entity:"home"},ViciousExoticAnimals:{key:"has_vicious_animals",label:"Vicious or exotic animals",entity:"home"},ShortTermRental:{key:"short_term_rental",label:"Short-term rental use",entity:"home"},GatedOrLimited:{key:"gated_community_discount",label:"Gated community",entity:"home"},BuildingOverWater:{key:"located_over_water",label:"Built over water",entity:"home"},HomeUnderConstruction:{key:"under_construction",label:"Under construction",entity:"home"},BusinessOrDaycare:{key:"has_business_on_premises",label:"Business on the property",entity:"home"},SmokeDetector:{key:"smoke_detectors",label:"Smoke detectors",entity:"home"},BurglarAlarm:{key:"burglar_alarm_system",label:"Burglar alarm",entity:"home"},BurglarAlarmType:{key:"burglar_alarm_system_type",label:"Burglar alarm type",entity:"home"},FireDetection:{key:"fire_detection_system",label:"Fire detection system",entity:"home"},FireDetectionType:{key:"fire_detection_system_type",label:"Fire detection type",entity:"home"},FireExtinguisher:{key:"fire_extinguisher",label:"Fire extinguisher",entity:"home"},DeadBoltLocks:{key:"deadbolt_locks",label:"Deadbolt locks",entity:"home"},SprinklerSystem:{key:"sprinkler_system",label:"Sprinkler system",entity:"home"},SprinklerSystemType:{key:"sprinkler_system_type",label:"Sprinkler system type",entity:"home"},ElectricCircuitBreaker:{key:"electric_circuit_breaker",label:"Circuit breakers",entity:"home"},PlumbingType:{key:"plumbing_type",label:"Plumbing type",entity:"home"},OilTankLocation:{key:"oil_tank_location",label:"Oil tank location",entity:"home"},TypeGarageCarport:{key:"garage_type",label:"Garage type",entity:"home"},StormShutters:{key:"storm_shutters",label:"Storm shutters",entity:"home"},MitCreditForm:{key:"mit_credit_form",label:"Wind mitigation form",entity:"home"},HeatingUpdateYN:{key:"heating_update_yn",label:"Heating updated",entity:"home"},PLHeatingUpdate:{key:"heating_update_type",label:"Heating update type",entity:"home"},HeatingUpdateYear:{key:"heating_update_year",label:"Year heating was updated",entity:"home"},PlumbingUpdateYN:{key:"plumbing_update_yn",label:"Plumbing updated",entity:"home"},PLPlumbingUpdated:{key:"plumbing_update_type",label:"Plumbing update type",entity:"home"},PlumbingUpdatedYear:{key:"plumbing_update_year",label:"Year plumbing was updated",entity:"home"},ElectricalUpdateYN:{key:"electrical_update_yn",label:"Electrical updated",entity:"home"},PLElectircalUpdated:{key:"electrical_update_type",label:"Electrical update type",entity:"home"},ElectircalUpdatedYear:{key:"electrical_update_year",label:"Year electrical was updated",entity:"home"},FirstName:{key:"first_name",label:"First name",entity:"applicant"},MiddleName:{key:"middle_name",label:"Middle name",entity:"applicant"},LastName:{key:"last_name",label:"Last name",entity:"applicant"},DateOfBirth:{key:"date_of_birth",label:"Date of birth",entity:"applicant"},PersonalLineGender:{key:"gender",label:"Gender",entity:"applicant"},MaritalStatus:{key:"marital_status",label:"Marital status",entity:"applicant"},Email:{key:"email",label:"Email address",entity:"applicant"},PrimaryPhoneNumber:{key:"phone",label:"Phone number",entity:"applicant"},SSN:{key:"social_security_number",label:"Social Security number",entity:"applicant"},OccupationStr:{key:"occupation",label:"Occupation",entity:"applicant"},EmploymentIndustry:{key:"industry",label:"Industry",entity:"applicant"},YearsAtAddress:{key:"years_at_address",label:"Years at this address",entity:"applicant"},MonthsAtAddress:{key:"months_at_address",label:"Months at this address",entity:"applicant"},IsMailAddress:{key:"is_mailing_address_different",label:"Mailing address",entity:"applicant"},CreditCheckPermission:{key:"order_credit_authorized",label:"Credit check permission",entity:"applicant"},IssuedCorporationOrTrustInd:{key:"is_corporation",label:"Corporation or trust",entity:"applicant"},AnyAdditionalInsured:{key:"has_co_applicant",label:"Co-applicant",entity:"applicant"},CoFirstName:{key:"co_applicant_first_name",label:"Co-applicant's first name",entity:"applicant"},CoMiddleName:{key:"co_applicant_middle_name",label:"Co-applicant's middle name",entity:"applicant"},CoLastName:{key:"co_applicant_last_name",label:"Co-applicant's last name",entity:"applicant"},CoDateOfBirth:{key:"co_applicant_date_of_birth",label:"Co-applicant's date of birth",entity:"applicant"},CoPersonalLineGender:{key:"co_applicant_gender",label:"Co-applicant's gender",entity:"applicant"},CoMaritalStatus:{key:"co_applicant_marital_status",label:"Co-applicant's marital status",entity:"applicant"},CoOccupationStr:{key:"co_applicant_occupation",label:"Co-applicant's occupation",entity:"applicant"},CoEmploymentIndustry:{key:"co_applicant_employment_industry",label:"Co-applicant's industry",entity:"applicant"},SelectRelationshipToClient:{key:"co_applicant_relationship",label:"Relationship to co-applicant",entity:"applicant"},CurrentPersonalAutoCarrier:{key:"auto_prior_carrier_name",label:"Current auto carrier",entity:"history"},PriorInsuranceCarrier:{key:"auto_prior_carrier_name",label:"Current auto carrier",entity:"history"},CurrentPersonalHomeownerCarrier:{key:"home_prior_carrier_name",label:"Current home carrier",entity:"history"},YearsWithPriorCarrierAuto:{key:"auto_prior_years",label:"Years with your auto carrier",entity:"history"},MonthsWithPriorCarrierAuto:{key:"auto_prior_months",label:"Months with your auto carrier",entity:"history"},YearsWithPriorCarrierHome:{key:"home_prior_years",label:"Years with your home carrier",entity:"history"},YearsWithContinuousCoverageAuto:{key:"auto_continuous_coverage_years",label:"Years of continuous auto coverage",entity:"history"},YearsWithContinuousCoverageHome:{key:"home_continuous_coverage_years",label:"Years of continuous home coverage",entity:"history"},PriorCarrierExpirationDateAuto:{key:"auto_prior_expiration_date",label:"Auto policy expiration date",entity:"history"},PriorCarrierExperationDate:{key:"home_prior_expiration_date",label:"Home policy expiration date",entity:"history"},SelectPriorLiabilityLimitsAuto:{key:"auto_prior_liability_limit",label:"Current liability limits",entity:"history"},SelectReasonNoPriorAutoInsurance:{key:"auto_reason_for_no_insurance",label:"Reason for no prior insurance",entity:"history"},CurrentAutoAnnualPremium:{key:"auto_current_annual_premium_cents",label:"Current annual premium",entity:"history"},LapsInCoverage:{key:"lapse_in_coverage",label:"Lapse in coverage",entity:"history"},AutoInsuranceCancelled:{key:"auto_cancelled_declined_refused_to_renew",label:"Auto policy cancelled or non-renewed",entity:"history"},PropertyInsuranceCancelled:{key:"property_insurance_cancelled",label:"Home policy cancelled or non-renewed",entity:"history"},ForeclosureOrRepossessionOrBankruptcy:{key:"named_insured_foreclosure_repo_bankruptcy",label:"Foreclosure, repossession, or bankruptcy",entity:"history"},InsuranceFraud:{key:"named_insured_convicted_insurance_fraud",label:"Insurance fraud conviction",entity:"history"},HomeAutoInsurance:{key:"multi_policy_discount",label:"Bundling discount",entity:"history"},AutoHomeInsurance:{key:"multi_policy_discount",label:"Bundling discount",entity:"history"}},Ig={};for(let e of Object.values(eA))e.key&&!Ig[e.key]&&(Ig[e.key]=e);var bC={PersonalVehicles:"vehicle",Vehicles:"vehicle",Drivers:"driver"},nL=/\[\?\([^)]*\)\]/g,rL=/\[\?\(@__id__\s*==\s*'([^']*)'\)\]/g,aL=new Set(["Id","SequenceNum","Assignments","IsDrv","DriverId","MainVehicleId"]),oL=e=>/^[a-z][a-z0-9_]*$/.test(e),gv=e=>{let t=(e??"").trim();if(!t)return{raw:t,entity:"general",label:"",isOpaque:!0};if(oL(t)){let f=Ig[t];return{raw:t,entity:f?.entity??"general",key:t,label:f?.label??ql(t),isOpaque:!f}}let r=[...t.matchAll(rL)].map(f=>f[1]),o=t.replace(nL,"").split(".").filter(Boolean),s=o[o.length-1]??t;if(aL.has(s))return{raw:t,entity:"general",label:"",isOpaque:!0};let c=o.find(f=>f in bC),u=eA[s];return{raw:t,entity:(c?bC[c]:void 0)??u?.entity??"general",entityId:r[r.length-1],key:u?.key,label:u?.label??ql(s),isOpaque:!u}},iL=`vehicles${ea}`,zl=`drivers${ea}`,sL=["vin","year","make","model"],tA=e=>{if(!e||typeof e!="object")return!0;let t=e;return sL.every(r=>{let o=t[r];return o==null||String(o).trim()===""})},lL=e=>String(e.vin??"").trim().toUpperCase(),cL=["first_name","last_name","date_of_birth"],lf=e=>{if(!e||typeof e!="object")return!0;let t=e;return cL.every(r=>{let o=t[r];return o==null||String(o).trim()===""})},_C=(e,t)=>{let r=String(e??"").toUpperCase().replace(/[^A-Z\s]/g," ").split(/\s+/).filter(Boolean);return(t==="first"?r[0]:r[r.length-1])??""},aa=(e,t="")=>({name:[_C(e[`${t}first_name`],"first"),_C(e[`${t}last_name`],"last")].filter(Boolean).join(" "),dateOfBirth:String(e[`${t}date_of_birth`]??"").trim().slice(0,10)}),nA=e=>{let t=String(e??"").toUpperCase().replace(/[^A-Z\s]/g," ").split(/\s+/).filter(Boolean);return{name:t.length>1?`${t[0]} ${t[t.length-1]}`:t[0]??"",dateOfBirth:""}},cc=(e,t)=>!e.name||!t.name||e.name!==t.name?!1:e.dateOfBirth&&t.dateOfBirth?e.dateOfBirth===t.dateOfBirth:!0,uL=e=>aa(e).name,rA=(e,t,{gateKey:r,itemsKeyName:o,isEmpty:s,identity:c})=>{if(!t.length)return e;let u=e[o],f=Array.isArray(u)?u:[],h=f.filter(v=>!s(v)),g=new Set(h.map(c).filter(v=>v!=="")),y=t.filter(v=>{let S=c(v);return S===""||!g.has(S)});return!y.length&&h.length===f.length?e:{...e,[r]:"Yes",[o]:[...h,...y]}},aA=(e,t)=>rA(e,t,{gateKey:"vehicles",itemsKeyName:iL,isEmpty:tA,identity:lL}),oA=(e,t)=>{let r=rA(e,t,{gateKey:"drivers",itemsKeyName:zl,isEmpty:lf,identity:uL});if(r===e)return e;let o=aa(e);if(!o.name)return r;let s=r[zl]??[],c=s.findIndex(f=>cc(aa(f),o));if(c===0)return r;let u=c>0?[s[c],...s.filter((f,h)=>h!==c)]:[{},...s];return{...r,[zl]:u}},iA=e=>{let t=aa(e);return t.name?lA(e).some(r=>cc(aa(r),t)):!1},sA=e=>{let t=aa(e);return t.name?lA(e).findIndex(r=>cc(aa(r),t)):-1},lA=e=>{let t=e[zl];return Array.isArray(t)?t:[]},cA=e=>{let t=e[zl];return(Array.isArray(t)?t:[]).some(r=>!lf(r))},uA={applicant:{gender:"gender",marital_status:"marital_status",employment_industry:"industry",occupation:"occupation"},applicantSsn:{social_security_number:"social_security_number"},coApplicant:{co_applicant_first_name:"first_name",co_applicant_middle_name:"middle_name",co_applicant_last_name:"last_name",co_applicant_date_of_birth:"date_of_birth",co_applicant_gender:"gender",co_applicant_marital_status:"marital_status",co_applicant_employment_industry:"industry",co_applicant_occupation:"occupation",co_applicant_relationship:"relationship_to_insured"},driverFromApplicant:{first_name:"first_name",last_name:"last_name",date_of_birth:"date_of_birth",gender:"gender",marital_status:"marital_status",industry:"employment_industry",occupation:"occupation",social_security_number:"social_security_number"}},dL={applicant:{industryKey:"employment_industry",occupationKey:"occupation"},coApplicant:{industryKey:"co_applicant_employment_industry",occupationKey:"co_applicant_occupation"},driverFromApplicant:{industryKey:"industry",occupationKey:"occupation"}},fL={Separated:["Seperated"],Seperated:["Separated"],DomesticPartner:["Domestic Partner"],"Domestic Partner":["DomesticPartner"]},pL=(e,t)=>{let r=e.options;if(!Array.isArray(r)||r.length===0)return t;let o=String(t);return r.includes(o)?t:(fL[o]??[]).find(s=>r.includes(s))},dA=(e,t="")=>[e[`${t}first_name`],e[`${t}last_name`]].map(r=>String(r??"").trim()).filter(Boolean).join(" "),fA=e=>dA(e),yv=(e,t={})=>Kn(e,"drivers").flatMap((r,o)=>{if(t.exclude?.(r,o))return[];let s=dA(r);return s||!fs(r.date_of_birth)?[{index:o,name:s||`Driver ${o+1}`}]:[]}),cf=({kind:e,source:t,targetQuestions:r})=>{let o=new Map(r.map(u=>[u.key,u])),s={};for(let[u,f]of Object.entries(uA[e])){let h=o.get(u);if(!h)continue;let g=t[f];if(fs(g,h.inputType))continue;let y=pL(h,g);y!==void 0&&(s[u]=y)}let c=dL[e];return c&&s[c.occupationKey]!==void 0&&(Uy(s[c.industryKey])?.includes(String(s[c.occupationKey]))||delete s[c.occupationKey]),s},hL=Qo({COVERAGE_EDITED_KEY:()=>Vl,COVERAGE_SHARE_OF_DWELLING:()=>Cs,DWELLING_KEY:()=>uf,PURCHASE_PRICE_KEY:()=>vv,backfillRelatedCoverages:()=>Cv,coverageSharePercent:()=>bv,deriveRelatedCoverages:()=>xv,derivedCoverageAmount:()=>df,isCoverageEdited:()=>_v,markCoverageEdited:()=>Sv,seedHomeCoverages:()=>hA}),Cs={other_structures_coverage:.1,personal_property_coverage:.5,loss_of_use_coverage:.2},uf="dwelling_replacement_cost",vv="sale_price_cents",Vl="__coverage_edited",SC=500,df=(e,t)=>Math.round(e*t/SC)*SC,bv=e=>{let t=Cs[e];return t===void 0?null:Math.round(t*100)},pA=e=>{let t=e[Vl];return Array.isArray(t)?t.filter(r=>typeof r=="string"):[]},_v=(e,t)=>pA(e).includes(t),hs=e=>{let t=String(e??"").replace(/\D/g,"");if(!t)return null;let r=Number(t);return Number.isFinite(r)&&r>0?r:null},Sv=(e,t,r)=>{if(Cs[t]===void 0)return{};let o=pA(e);return hs(r)===null?o.includes(t)?{[Vl]:o.filter(s=>s!==t)}:{}:o.includes(t)?{}:{[Vl]:[...o,t]}},xv=(e,t)=>{let r=hs(t);if(r===null)return{};let o={};for(let[s,c]of Object.entries(Cs))_v(e,s)||(o[s]=df(r,c));return o},Cv=e=>{let t=hs(e[uf]);if(t===null)return{};let r={};for(let[o,s]of Object.entries(Cs))hs(e[o])===null&&(r[o]=df(t,s));return r},hA=e=>{let t={};if(hs(e.dwelling_replacement_cost)===null){let r=hs(e[vv]);r!==null&&(t[uf]=r)}return{...t,...Cv({...e,...t})}},mL={SafecoPersonal:"Safeco",SafecoPersoanl:"Safeco",AssuranceAmerica:"Assurance America",CommonWealthCasualty:"Commonwealth Casualty",Alinsco:"Alinsco",ACORDBOLTPersonalAuto:"Bolt Auto",ACORDBOLTPersonalHome:"Bolt Home",TwentyFirstCentury:"21st Century",ACentral:"A-Central",AAA:"AAA",AARP:"AARP",Acadia:"Acadia",Ace:"ACE",Acuity:"Acuity",AdirondackInsExchange:"Adirondack",Aegis:"Aegis",AIC:"AIC",AIG:"AIG",AlfaAlliance:"Alfa Alliance",AllianzOfAmerica:"Allianz",AllianzOfAmericaJefferson:"Allianz Jefferson",Allied:"Allied",Allmerica:"Allmerica",Allstate:"Allstate",AmericaFirst:"America First",AmericanCommerce:"American Commerce",AmericanFamily:"American Family",Amica:"Amica",Ameriprise:"Ameriprise",ASILloyds:"ASI Lloyds",Assurant:"Assurant",AtlasGeneralAgency:"Atlas General",AustinMutual:"Austin Mutual",Autoone:"AutoOne",AutoOwners:"Auto-Owners",BadgerMutual:"Badger Mutual",Balboa:"Balboa",Bamboo:"Bamboo",Bankers:"Bankers",BeaconNational:"Beacon National",BrethernMutual:"Brethren Mutual",BristolWest:"Bristol West",BunkerHill:"Bunker Hill",CapitalInsuranceGroup:"Capital Insurance",Celina:"Celina",CentralMutualOfOH:"Central Mutual",Chubb:"Chubb",ChubbInsurance:"Chubb",Cincinnati:"Cincinnati",Citizens:"Citizens",Clearcover:"Clearcover",CNA:"CNA",ColonialPenn:"Colonial Penn",ColoradoCasualty:"Colorado Casualty",Columbia:"Columbia",CommerceWest:"Commerce West",CommonwealthCasualty:"Commonwealth Casualty",ConstitutionalCasualty:"Constitutional Casualty",Cornerstone:"Cornerstone",Countrywide:"Countrywide",CSE:"CSE",Cumberland:"Cumberland",Cypress:"Cypress",Dairyland:"Dairyland",Deerbrook:"Deerbrook",Direct:"Direct",Donegal:"Donegal",Drive:"Drive",Electric:"Electric",EMC:"EMC",Encompass:"Encompass",Erie:"Erie",Esurance:"Esurance",ExcelsiorInsuranceCompany:"Excelsior",Explorer:"Explorer",FairPlan:"FAIR Plan",FarmBureau:"Farm Bureau",Farmers:"Farmers",Fidelity:"Fidelity",FirstAmerican:"First American",Foremost:"Foremost",ForemostInsuranceCompany:"Foremost",Geico:"GEICO",GeneralCasualty:"General Casualty",GermantownMutual:"Germantown Mutual",GMAC:"GMAC",Grange:"Grange",GreatAmerican:"Great American",Grinnell:"Grinnell Mutual",GuideOne:"GuideOne",Hanover:"Hanover",Harbor:"Harbor",Harleysville:"Harleysville",Hartford:"The Hartford",HartfordOMNI:"Hartford OMNI",HastingsMutual:"Hastings Mutual",HawkeyeSecurity:"Hawkeye Security",HDI:"HDI",HippoInsuranceCompany:"Hippo",HomeownersOfAmerica:"Homeowners of America",Homesite:"Homesite",HoraceMann:"Horace Mann",HoustonGeneral:"Houston General",IFA:"IFA",ImperialCasualty:"Imperial Casualty",Indiana:"Indiana Insurance",IndianaFarmers:"Indiana Farmers",Infinity:"Infinity",Insurequest:"Insurequest",Integon:"Integon",Integrity:"Integrity",Kemper:"Kemper",LibertyMutual:"Liberty Mutual",LibertyNorthwest:"Liberty Northwest",MainStreetAmerica:"Main Street America",Mapfre:"MAPFRE",MarkelInsuranceCompany:"Markel",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",NatGenPremier:"NatGen Premier",NationalGeneral:"National General",Nationwide:"Nationwide",NationwideScottsdale:"Nationwide Scottsdale",NewYorkCentralMutual:"NY Central Mutual",NJManufacturers:"NJM Insurance",NJSkylands:"NJ Skylands",Northstar:"Northstar",Occidental:"Occidental",OhioCasualty:"Ohio Casualty",OmahaPC:"Omaha P&C",OneBeacon:"OneBeacon",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",PureHighValue:"PURE",Republic:"Republic",RockfordMutual:"Rockford Mutual",RoyalAndSunAlliance:"Royal & SunAlliance",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",StateFarmFloridaInsuranceCompany:"State Farm Florida",SunshineStateInsuranceCompany:"Sunshine State",Travelers:"Travelers",Tower:"Tower",TWFG:"TWFG",Unigard:"Unigard",UnitedFireAndCasualty:"United Fire & Casualty",Unitrin:"Unitrin",Universal:"Universal",USAA:"USAA",UticaNational:"Utica National",Victoria:"Victoria",Wellington:"Wellington",WestBend:"West Bend",WesternNational:"Western National",WesternReserveGroup:"Western Reserve",Westfield:"Westfield",WhiteMountains:"White Mountains",WilsonMutual:"Wilson Mutual",Windsor:"Windsor",Zurich:"Zurich"},gL=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").trim(),yn=e=>e&&(mL[e]??gL(e)),wv={PersonalHome:"Homeowners",PersonalAuto:"Personal Auto",Flood:"Flood",ExcessFlood:"Excess Flood",_other:"Other"},xC=["PersonalHome","PersonalAuto","Flood","ExcessFlood"],Wr=e=>e?wv[e]??e:null,Zl=e=>{if(e.monthly_premium_cents!=null)return e.monthly_premium_cents;let t=Number.isFinite(e.term_months)&&e.term_months>0?e.term_months:1;return Math.round((e.premium_cents||0)/t)},Ev=e=>e.admitted_status==="non_admitted"||e.admitted_status==="not_quoted"?e.admitted_status:"admitted",mA=e=>{let t={admitted:[],non_admitted:[],not_quoted:[]};for(let r of e)t[Ev(r)].push(r);return t},yL=(e,t)=>Zl(e)-Zl(t),vL=(e,t)=>yn(e.carrier_name).localeCompare(yn(t.carrier_name)),gA=(e,{sortBy:t="premium"}={})=>{if(!e.length)return[];let r=t==="carrier"?vL:yL;if(!e.some(c=>c.lob))return[{lob:null,title:"Rates",rates:[...e].sort(r)}];let o=new Map;for(let c of e){let u=c.lob||"_other",f=o.get(u);f?f.push(c):o.set(u,[c])}let s=c=>{let u=xC.indexOf(c);return u===-1?xC.length:u};return[...o.entries()].sort(([c],[u])=>s(c)-s(u)).map(([c,u])=>({lob:c,title:wv[c]??c,rates:[...u].sort(r)}))},yA=e=>(e.coverages??[]).filter(t=>!!t&&typeof t.label=="string"&&t.label.trim()!==""&&typeof t.value=="string"&&t.value.trim()!==""),bL=[{match:/uninsured.*motorist.*(?:cannot|can not|can't) be (?:greater|higher|more) than.*bodily injury/i,render:()=>"Uninsured motorist coverage can't be higher than your bodily injury limit. Lower it, or raise bodily injury to match."},{match:/(?:cannot|can not|can't) be (?:greater|higher|more) than/i,render:e=>e?`${e} is set higher than this carrier allows.`:"One limit is set higher than this carrier allows."},{match:/please complete all required fields|is required|(?:cannot|can not|can't) be (?:empty|blank)|must be (?:provided|entered)/i,render:()=>"These need an answer before the carrier can price your quote:",shared:!0}],_L={vehicle:"Your vehicles",driver:"Your drivers",coverage:"Your coverage choices",home:"Your home",applicant:"Your details",history:"Your insurance history",general:"A few other answers"},SL=["vehicle","driver","home","coverage","history","applicant","general"],Hl=e=>typeof e=="string"?e.trim():typeof e=="number"?String(e):"",xL=e=>[Hl(e.year),Hl(e.make),Hl(e.model)].filter(Boolean).join(" "),CL=e=>[Hl(e.first_name),Hl(e.last_name)].filter(Boolean).join(" "),wL=(e,t)=>{let r=t.vehicles?.length===1?t.vehicles[0]:void 0;if(e==="vehicle"&&r){let s=xL(r);if(s)return`Your ${s}`}let o=t.drivers?.length===1?t.drivers[0]:void 0;if(e==="driver"&&o){let s=CL(o);if(s)return s}return _L[e]},CC=e=>e&&(e[0]??"").toUpperCase()+e.slice(1),vA=e=>e.length<=1?e[0]??"":e.length===2?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")}, and ${e[e.length-1]}`,bA=(e,t={})=>{let r=new Map,o=[],s=0;for(let u of e??[]){let f=gv(u.field??""),h=(f.key?t.describeField?.(f.key):void 0)?.label??(f.isOpaque?void 0:f.label);f.key&&o.push(f.key);let g=(u.message??"").trim(),y=bL.find(C=>C.match.test(g)),v=y?y.render(h):g;if(!v||!h&&!g){s+=1;continue}if(!h&&y?.shared){s+=1;continue}let S=r.get(f.entity)??{issues:[],seen:new Set},x=`${h??""}|${v}`;S.seen.has(x)||(S.seen.add(x),S.issues.push({label:h,message:v,key:f.key}),r.set(f.entity,S))}let c=[];for(let u of SL){let f=r.get(u);if(!f?.issues.length)continue;let h=f.issues[0]?.message??"",g=f.issues.every(y=>y.message===h&&y.label);c.push({id:u,heading:wL(u,t),sharedMessage:g?h:void 0,labels:g?f.issues.map(y=>y.label):[],issues:f.issues})}return{groups:c,otherCount:s,isOpaque:c.length===0,keys:[...new Set(o)]}},_A=e=>e.label?`${e.label}: ${CC(e.message)}`:CC(e.message),ws={},SA=e=>{ws=e},EL=()=>{ws={}},ff=e=>{try{e()}catch{}},Kr=(e,t)=>{ff(()=>ws.onQuoteFailure?.(e,t))},Av=(e,t)=>{ff(()=>ws.onBreadcrumb?.(e,t))},ms=(e,t)=>{ff(()=>ws.onTrack?.(e,t))},pf=e=>{ff(()=>ws.onContext?.(e))},xA=e=>pf({product:e}),CA=e=>pf({quoteId:e}),wA=e=>pf({stage:e}),Ro=e=>{if(e&&typeof e=="object"&&"statusCode"in e){let t=e.statusCode;if(typeof t=="number")return t}};const _m=Object.freeze(Object.defineProperty({__proto__:null,$:XE,A:df,B:cA,C:Cs,D:hL,E:Cv,F:fA,G:oA,H:lf,I:cf,J:gv,K:aA,L:yv,M:Sv,N:hA,O:bv,P:uA,Q:QE,R:sA,S:Vl,T:vv,U:tA,V:nA,W:cc,X:mv,Y:eL,Z:Pg,_:Wr,a:EL,b:mA,c:CA,d:bA,et:JE,f:_A,g:gA,h:yA,i:Kr,j:_v,k:xv,l:wA,m:wv,n:SA,o:pf,p:vA,q:aa,r:Ro,s:xA,t:Av,u:ms,v:Ev,w:uf,x:yn,y:Zl,z:iA},Symbol.toStringTag,{value:"Module"}));var AL={h:222,s:47,l:6},kL=(e,t,r)=>Math.min(r,Math.max(t,e)),wC=(e,t,r)=>{let o=e/255,s=t/255,c=r/255,u=Math.max(o,s,c),f=Math.min(o,s,c),h=u-f,g=(u+f)/2;if(h===0)return{h:0,s:0,l:g*100};let y=h/(1-Math.abs(2*g-1)),v;return v=u===o?(s-c)/h%6:u===s?(c-o)/h+2:(o-s)/h+4,v*=60,v<0&&(v+=360),{h:v,s:y*100,l:g*100}},ML=({h:e,s:t,l:r})=>{let o=t/100,s=r/100,c=(1-Math.abs(2*s-1))*o,u=(e%360+360)%360/60,f=c*(1-Math.abs(u%2-1)),h=s-c/2,g;return g=u<1?[c,f,0]:u<2?[f,c,0]:u<3?[0,c,f]:u<4?[0,f,c]:u<5?[f,0,c]:[c,0,f],[Math.round((g[0]+h)*255),Math.round((g[1]+h)*255),Math.round((g[2]+h)*255)]},TL=e=>{let t=e.trim().toLowerCase(),r=/^#([0-9a-f]{3}|[0-9a-f]{6})$/.exec(t);if(r?.[1]){let u=r[1],f=u.length===3?u.split("").map(g=>g+g).join(""):u,h=Number.parseInt(f,16);return wC(h>>16&255,h>>8&255,h&255)}let o=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/.exec(t);if(o?.[1]&&o[2]&&o[3])return wC(Number(o[1]),Number(o[2]),Number(o[3]));let s=/^hsla?\(\s*([\d.]+)(?:deg)?[\s,]+([\d.]+)%[\s,]+([\d.]+)%/.exec(t);if(s?.[1]&&s[2]&&s[3])return{h:Number(s[1]),s:Number(s[2]),l:Number(s[3])};let c=/^([\d.]+)\s+([\d.]+)%\s+([\d.]+)%$/.exec(t);return c?.[1]&&c[2]&&c[3]?{h:Number(c[1]),s:Number(c[2]),l:Number(c[3])}:null},NL=({h:e,s:t,l:r})=>`${Math.round(e)} ${Math.round(t)}% ${Math.round(r)}%`,EC=e=>{let[t,r,o]=ML(e),s=c=>{let u=c/255;return u<=.03928?u/12.92:((u+.055)/1.055)**2.4};return .2126*s(t)+.7152*s(r)+.0722*s(o)},$g=(e,t)=>{let r=EC(e),o=EC(t),s=Math.max(r,o),c=Math.min(r,o);return(s+.05)/(c+.05)},RL=e=>{let t={h:e.h,s:Math.min(e.s,15),l:98},r={h:e.h,s:Math.min(e.s,40),l:12};return $g(t,e)>=$g(r,e)?t:r},OL=(e,t=3.2)=>{let r={h:e.h,s:kL(e.s*.9,0,100),l:e.l};for(;r.l<92&&$g(r,AL)<t;)r.l+=2;return r},Nd=(e,t)=>e?TL(e):null,Sm=(e,t,r)=>{let o=Nd(e);return{light:o,dark:Nd(t)??(o?OL(o):null)}},Ku=(e,t,r)=>{r&&e.set(`--cds-${t}`,NL(r))},AC=(e,t)=>{let r=new Map,o=(h,g)=>t==="light"?h:g;e.radius&&r.set("--cds-radius",e.radius);let s=Sm(e.primary,e.primaryDark),c=Sm(e.accent,e.accentDark),u=Sm(e.destructive,e.destructiveDark);for(let[h,g]of[["primary",s],["accent",c],["destructive",u]]){let y=o(g.light,g.dark);Ku(r,h,y),y&&Ku(r,`${h}-foreground`,RL(y))}let f=[["background",e.background,e.backgroundDark],["surface",e.surface,e.surfaceDark],["text",e.text,e.textDark],["text-muted",e.textMuted,e.textMutedDark],["border",e.border,e.borderDark],["input",e.input,e.inputDark]];for(let[h,g,y]of f)Ku(r,h,Nd(o(g,y)));return Ku(r,"ring",Nd(o(e.ring,e.ringDark))??o(s.light,s.dark)),r},xm=(e,t,r="")=>t.size===0?"":`${r}${e} {
75
+ ${[...t].map(([o,s])=>`${r} ${o}: ${s};`).join(`
76
+ `)}
77
+ ${r}}
78
+ `,jL=(e,t)=>{let r=AC(e,"light"),o=AC(e,"dark"),s=[`${t}[data-cds-theme='dark']`,`.dark ${t}:not([data-cds-theme='light']):not([data-cds-theme='dark'])`].join(`,
79
+ `),c=xm(`${t}[data-cds-theme='auto']`,o," ");return[xm(t,r),xm(s,o),c?`@media (prefers-color-scheme: dark) {
80
+ ${c}}
81
+ `:""].filter(Boolean).join(`
82
+ `)},kC="cds-theme-overrides",MC=new WeakMap,Lg=new Map,zg=new Map,TC=0,DL=()=>{for(let[e,t]of zg){let r=t.deref();(!r||!r.isConnected)&&(zg.delete(e),Lg.delete(e))}},PL=e=>{let t=e.getElementById(kC);if(t instanceof HTMLStyleElement)return t;let r=e.createElement("style");return r.id=kC,e.head.appendChild(r),r},IL=(e,t)=>{e.classList.add("credify-ui"),t.mode?e.setAttribute("data-cds-theme",t.mode):e.hasAttribute("data-cds-theme")||e.setAttribute("data-cds-theme","light");let r=MC.get(e);r||(TC+=1,r=`cds-scope-${TC}`,MC.set(e,r)),e.setAttribute("data-cds-scope",r),zg.set(r,new WeakRef(e)),DL(),Lg.set(r,jL(t,`[data-cds-scope='${r}']`)),PL(e.ownerDocument).textContent=[...Lg.values()].join(`
83
+ `)},Rd=null,EA=e=>{Rd=e},Er=()=>{if(!Rd)throw Error("[credify-ui-kit] configureApi() must be called before using the API client.");return Rd},$L=()=>{Rd=null},Ji=()=>{try{return!!Er().isMockActive?.()}catch{return!1}},AA=()=>{try{return!!Er().isTestActive?.()}catch{return!1}},Bo=class extends Error{statusCode;retryAfterSeconds;constructor(t,r,o){super(t),this.name="CredifyApiError",this.statusCode=r,this.retryAfterSeconds=o}},hf=()=>`${Er().storagePrefix}quote_id`,mf=()=>`${Er().storagePrefix}auth_token`,kA=hf,MA=mf,LL="__mock",gs=e=>Er().isMockActive?.()?`${e}${LL}`:e,zL=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,TA=e=>{try{return localStorage.getItem(e)}catch{return null}},NA=(e,t)=>{try{localStorage.setItem(e,t)}catch{}},NC=e=>{try{localStorage.removeItem(e)}catch{}},Qa=()=>{let e=TA(gs(hf()));return e!==null&&!Er().isMockActive?.()&&!zL.test(e)?(Fo(),null):e},gf=e=>NA(gs(hf()),e),yf=()=>TA(gs(mf())),vf=e=>NA(gs(mf()),e),Fo=()=>{NC(gs(hf())),NC(gs(mf()))},Et=async(e,t)=>{let r=Er();if(r.mockTransport){let f=await r.mockTransport(e,t);if(f!=null)return f}let o={"Content-Type":"application/json"},s=yf();s&&(o.Authorization=`Bearer ${s}`);let c=await(r.fetchImpl??fetch)(`${r.baseUrl}${e}`,{method:"POST",headers:o,body:JSON.stringify(t)}),u={};try{u=await c.json()}catch{}if(!c.ok){let f=typeof u.error=="string"&&u.error||`Request failed with status ${c.status}`,h=c.status===429?typeof u.retryAfterSeconds=="number"?u.retryAfterSeconds:60:void 0;throw new Bo(f,c.status,h)}return u},Xt=(e,t)=>t&&!yf()?{...e,quoteId:t}:e,RC=()=>Er().source,RA=async(e,t=!1)=>{let r=await Et("/create-quote",t?{postal_code:e,source:RC(),is_test:!0}:{postal_code:e,source:RC()});if(!r.quoteId)throw new Bo("Invalid createQuote response",0);return gf(r.quoteId),{quoteId:r.quoteId}},OA=(e,t=!1,r)=>Et("/update-quote",Xt({payload:e,getRates:t},r)).then(o=>o.status?o:{status:"success"}),bf=e=>Et("/get-quote",Xt({},e)),jA=(e,t)=>Et("/is-supported-state",Xt({state:e},t)),kv=(e,t)=>Et("/verify-quote",{action:"send",quoteId:e,phone:t}),Mv=async(e,t)=>{let r=await Et("/verify-quote",{quoteId:e,smsCode:t});return r.isVerified&&r.token&&vf(r.token),{isVerified:!!r.isVerified}},Tv=e=>Et("/get-rates",Xt({},e)),DA=async e=>{let t=await Et("/verify-quote",Xt({action:"issue_resume_link"},e));if(!t.resumeToken)throw new Bo("Invalid issueResumeLink response",0);return{resumeToken:t.resumeToken,expiresAt:t.expiresAt??null}},Nv=async e=>{Fo();let t=await Et("/verify-quote",{action:"resume",resumeToken:e});if(!t.quoteId)throw new Bo("Invalid resume response",0);return gf(t.quoteId),t.isVerified&&t.token&&vf(t.token),{quoteId:t.quoteId}},Rv=(e,t)=>{let r=Array.isArray(e)?e:[e];return Et("/request-bind",{...r.length===1?{quoteRateId:r[0]}:{quoteRateIds:r},privacyNoticeAcknowledged:t}).then(o=>"success"in o?o:{success:!0})},PA=async(e,t)=>{try{return await Et("/prefill-property",Xt({...t},e))}catch{return{found:!1}}},IA=e=>Et("/get-stages-for-quote",Xt({},e)),$A=(e,t)=>Et("/get-questions-by-stage",Xt({stage:e},t)),_f=(e,t)=>Et("/get-vehicle-options",Xt({...e},t)),Ov=(e,t)=>_f({action:"vinDecode",vin:e},t),jv=async e=>{try{let{suggestions:t}=await Et("/get-vehicle-options",Xt({action:"vehiclePrefillSuggestions"},e));return t??[]}catch{return[]}},Dv=async(e,t)=>{try{let{items:r}=await Et("/get-vehicle-options",Xt({action:"applyVehiclePrefill",selectedIds:e},t));return r??[]}catch{return[]}},Pv=async e=>{try{await Et("/get-vehicle-options",Xt({action:"dismissVehiclePrefill"},e))}catch{}},Iv=async e=>{try{let{suggestions:t}=await Et("/get-vehicle-options",Xt({action:"driverPrefillSuggestions"},e));return t??[]}catch{return[]}},$v=async(e,t)=>{try{let{items:r}=await Et("/get-vehicle-options",Xt({action:"applyDriverPrefill",selectedIds:e},t));return r??[]}catch{return[]}},Lv=async e=>{try{await Et("/get-vehicle-options",Xt({action:"dismissDriverPrefill"},e))}catch{}},HL=Qo({prefillSuggestions:()=>Oo,resetPrefillSuggestions:()=>zv}),LA=e=>{let t=new Map,r=new Map,o=s=>{let c=t.get(s);if(c)return c;let u=e(s).then(f=>(r.set(s,f),f)).catch(()=>(t.get(s)===u&&t.delete(s),[]));return t.set(s,u),u};return{fetch:o,peek:s=>r.get(s),prefetch:s=>{o(s)},reset:()=>{t.clear(),r.clear()}}},hd=LA(jv),md=LA(Iv),Oo={vehicle:{fetch:hd.fetch,peek:hd.peek,prefetch:hd.prefetch},driver:{fetch:md.fetch,peek:md.peek,prefetch:md.prefetch}},zv=()=>{hd.reset(),md.reset()},UL=Qo({buildResumeUrl:()=>Hv,captureResumeTokenFromUrl:()=>Sf,consumeResumeToken:()=>uc,hasResumeToken:()=>xf}),Hg="credify_rt",BL=["mock"],Od=null,Sf=e=>{try{if(typeof window>"u")return;let t=new URL(window.location.href),r=t.searchParams.get(Hg);if(!r)return;Od=r,t.searchParams.delete(Hg),window.history.replaceState(window.history.state,"",t.toString())}catch(t){e?.(t)}},xf=()=>Od!==null,uc=()=>{let e=Od;return Od=null,e},Hv=e=>{let t=new URL(window.location.href),r=BL.map(o=>[o,t.searchParams.get(o)]).filter(o=>o[1]!==null);t.search="",t.hash="";for(let[o,s]of r)t.searchParams.set(o,s);return t.searchParams.set(Hg,e),t.toString()},Ug,Uv=e=>{Ug=e},OC=async e=>{try{let{ZIP_CITIES:t}=await Be(async()=>{const{ZIP_CITIES:r}=await import("./zipCities-CU_i9iT--B1AIvNRh.js");return{ZIP_CITIES:r}},[]);return t[e]??null}catch{return null}},Bv=async e=>{if(!/^\d{5}$/.test(e))return null;let t=!1;try{t=!!Er().isMockActive?.()}catch{t=!1}if(t){let{MOCK_ZIP_CITIES:r}=await Be(()=>import("./fixtures-ijbZ16Zg-Bj-DhqkB.js"),[]).then(o=>o.f);return r[e]??null}if(!Ug)return OC(e);try{return await Ug(e)}catch{return OC(e)}};const Bg=Object.freeze(Object.defineProperty({__proto__:null,A:OA,B:gf,C:_f,D:Nv,E:PA,F:kA,I:Fo,L:yf,M:Xt,N:Et,O:Rv,P:MA,R:Qa,S:IA,T:DA,_:Iv,a:uc,b:bf,c:Oo,d:$v,f:Dv,g:Pv,h:Lv,i:Sf,j:Mv,k:kv,l:HL,m:Ov,n:Uv,o:xf,p:RA,r:Hv,s:UL,t:Bv,u:zv,v:jv,w:jA,x:Tv,y:$A,z:vf},Symbol.toStringTag,{value:"Module"}));var FL=Object.defineProperty,Fv=(e,t)=>FL(e,"name",{value:t,configurable:!0});function Fg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Fv(Fg,"setRef");function zA(...e){return t=>{let r=!1;const o=e.map(s=>{const c=Fg(s,t);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let s=0;s<o.length;s++){const c=o[s];typeof c=="function"?c():Fg(e[s],null)}}}}Fv(zA,"composeRefs");function Qe(...e){return b.useCallback(zA(...e),e)}Fv(Qe,"useComposedRefs");var qL=Object.defineProperty,lr=(e,t)=>qL(e,"name",{value:t,configurable:!0});function _r(e){const t=b.forwardRef((r,o)=>{let{children:s,...c}=r,u=null,f=!1;const h=[];qg(s)&&typeof Xu=="function"&&(s=Xu(s._payload)),b.Children.forEach(s,S=>{if(FA(S)){f=!0;const x=S;let C="child"in x.props?x.props.child:x.props.children;qg(C)&&typeof Xu=="function"&&(C=Xu(C._payload)),u=ZL(x,C),h.push(u?.props?.children)}else h.push(S)}),u?u=b.cloneElement(u,void 0,h):!f&&b.Children.count(s)===1&&b.isValidElement(s)&&(u=s);const g=u?BA(u):void 0,y=Qe(o,g);if(!u){if(s||s===0)throw new Error(f?KL(e):WL(e));return s}const v=UA(c,u.props??{});return u.type!==b.Fragment&&(v.ref=o?y:g),b.cloneElement(u,v)});return t.displayName=`${e}.Slot`,t}lr(_r,"createSlot");var GL=_r("Slot"),HA=Symbol.for("radix.slottable");function VL(e){const t=lr(r=>"child"in r?r.children(r.child):r.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=HA,t}lr(VL,"createSlottable");var ZL=lr((e,t)=>{if("child"in e.props){const r=e.props.child;return b.isValidElement(r)?b.cloneElement(r,void 0,e.props.children(r.props.children)):null}return b.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function UA(e,t){const r={...t};for(const o in t){const s=e[o],c=t[o];/^on[A-Z]/.test(o)?s&&c?r[o]=(...f)=>{const h=c(...f);return s(...f),h}:s&&(r[o]=s):o==="style"?r[o]={...s,...c}:o==="className"&&(r[o]=[s,c].filter(Boolean).join(" "))}return{...e,...r}}lr(UA,"mergeProps");function BA(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}lr(BA,"getElementRef");function FA(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===HA}lr(FA,"isSlottable");var YL=Symbol.for("react.lazy");function qg(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===YL&&"_payload"in e&&qA(e._payload)}lr(qg,"isLazyComponent");function qA(e){return typeof e=="object"&&e!==null&&"then"in e}lr(qA,"isPromiseLike");var WL=lr(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),KL=lr(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Xu=vs[" use ".trim().toString()];const jC=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,DC=Kw,XL=(e,t)=>r=>{var o;if(t?.variants==null)return DC(e,r?.class,r?.className);const{variants:s,defaultVariants:c}=t,u=Object.keys(s).map(g=>{const y=r?.[g],v=c?.[g];if(y===null)return null;const S=jC(y)||jC(v);return s[g][S]}),f=r&&Object.entries(r).reduce((g,y)=>{let[v,S]=y;return S===void 0||(g[v]=S),g},{}),h=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((g,y)=>{let{class:v,className:S,...x}=y;return Object.entries(x).every(C=>{let[A,w]=C;return Array.isArray(w)?w.includes({...c,...f}[A]):{...c,...f}[A]===w})?[...g,v,S]:g},[]);return DC(e,u,h,r?.class,r?.className)};var QL=Object.defineProperty,Zn=(e,t)=>QL(e,"name",{value:t,configurable:!0});function JL(e,t){const r=b.createContext(t);r.displayName=e+"Context";const o=Zn(c=>{const{children:u,...f}=c,h=b.useMemo(()=>f,Object.values(f));return d.jsx(r.Provider,{value:h,children:u})},"Provider");o.displayName=e+"Provider";function s(c,u={}){const{optional:f=!1}=u,h=b.useContext(r);if(h)return h;if(t!==void 0)return t;if(!f)throw new Error(`\`${c}\` must be used within \`${e}\``)}return Zn(s,"useContext"),[o,s]}Zn(JL,"createContext");function jn(e,t=[]){let r=[];function o(c,u){const f=b.createContext(u);f.displayName=c+"Context";const h=r.length;r=[...r,u];const g=Zn(v=>{const{scope:S,children:x,...C}=v,A=S?.[e]?.[h]||f,w=b.useMemo(()=>C,Object.values(C));return d.jsx(A.Provider,{value:w,children:x})},"Provider");g.displayName=c+"Provider";function y(v,S,x={}){const{optional:C=!1}=x,A=S?.[e]?.[h]||f,w=b.useContext(A);if(w)return w;if(u!==void 0)return u;if(!C)throw new Error(`\`${v}\` must be used within \`${c}\``)}return Zn(y,"useContext"),[g,y]}Zn(o,"createContext");const s=Zn(()=>{const c=r.map(u=>b.createContext(u));return Zn(function(f){const h=f?.[e]||c;return b.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])},"useScope")},"createScope");return s.scopeName=e,[o,GA(s,...t)]}Zn(jn,"createContextScope");function GA(...e){const t=e[0];if(e.length===1)return t;const r=Zn(()=>{const o=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return Zn(function(c){const u=o.reduce((f,{useScope:h,scopeName:g})=>{const v=h(c)[`__scope${g}`];return{...f,...v}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}Zn(GA,"composeContextScopes");var ez=Object.defineProperty,Es=(e,t)=>ez(e,"name",{value:t,configurable:!0}),VA=!!(typeof window<"u"&&window.document&&window.document.createElement);function Re(e,t,{checkForDefaultPrevented:r=!0}={}){return Es(function(s){if(e?.(s),r===!1||!s||!s.defaultPrevented)return t?.(s)},"handleEvent")}Es(Re,"composeEventHandlers");function tz(e){if(!VA)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}Es(tz,"getOwnerWindow");function Gg(e){if(!VA)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}Es(Gg,"getOwnerDocument");function ZA(e,t=!1){const{activeElement:r}=Gg(e);if(!r?.nodeName)return null;if(YA(r)&&r.contentDocument)return ZA(r.contentDocument.body,t);if(t){const o=r.getAttribute("aria-activedescendant");if(o){const s=Gg(r).getElementById(o);if(s)return s}}return r}Es(ZA,"getActiveElement");function YA(e){return e.tagName==="IFRAME"}Es(YA,"isFrame");var Lt=globalThis?.document?b.useLayoutEffect:()=>{},nz=Object.defineProperty,rz=(e,t)=>nz(e,"name",{value:t,configurable:!0}),PC=vs[" useEffectEvent ".trim().toString()],IC=vs[" useInsertionEffect ".trim().toString()];function WA(e){if(typeof PC=="function")return PC(e);const t=b.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof IC=="function"?IC(()=>{t.current=e}):Lt(()=>{t.current=e}),b.useMemo(()=>((...r)=>t.current?.(...r)),[])}rz(WA,"useEffectEvent");var az=Object.defineProperty,dc=(e,t)=>az(e,"name",{value:t,configurable:!0}),oz=vs[" useInsertionEffect ".trim().toString()]||Lt;function Sr({prop:e,defaultProp:t,onChange:r=dc(()=>{},"onChange"),caller:o}){const[s,c,u]=KA({defaultProp:t,onChange:r}),f=e!==void 0,h=f?e:s,g=b.useCallback(y=>{if(f){const v=XA(y)?y(e):y;v!==e&&u.current?.(v)}else c(y)},[f,e,c,u]);return[h,g]}dc(Sr,"useControllableState");function KA({defaultProp:e,onChange:t}){const[r,o]=b.useState(e),s=b.useRef(r),c=b.useRef(t);return oz(()=>{c.current=t},[t]),b.useEffect(()=>{s.current!==r&&(c.current?.(r),s.current=r)},[r,s]),[r,o,c]}dc(KA,"useUncontrolledState");function XA(e){return typeof e=="function"}dc(XA,"isFunction");var $C=Symbol("RADIX:SYNC_STATE");function iz(e,t,r,o){const{prop:s,defaultProp:c,onChange:u,caller:f}=t,h=s!==void 0,g=WA(u),y=[{...r,state:c}];o&&y.push(o);const[v,S]=b.useReducer((w,k)=>{if(k.type===$C)return{...w,state:k.state};const M=e(w,k);return h&&!Object.is(M.state,w.state)&&g(M.state),M},...y),x=v.state,C=b.useRef(x);b.useEffect(()=>{C.current!==x&&(C.current=x,h||g(x))},[x,C,h]);const A=b.useMemo(()=>s!==void 0?{...v,state:s}:v,[v,s]);return b.useEffect(()=>{h&&!Object.is(s,v.state)&&S({type:$C,state:s})},[s,v.state,h]),[A,S]}dc(iz,"useControllableStateReducer");var sz=Object.defineProperty,lz=(e,t)=>sz(e,"name",{value:t,configurable:!0});function Cf(e){const[t,r]=b.useState(void 0);return Lt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let u,f;if("borderBoxSize"in c){const h=c.borderBoxSize,g=Array.isArray(h)?h[0]:h;u=g.inlineSize,f=g.blockSize}else u=e.offsetWidth,f=e.offsetHeight;r({width:u,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else r(void 0)},[e]),t}lz(Cf,"useSize");var cz=Object.defineProperty,oa=(e,t)=>cz(e,"name",{value:t,configurable:!0});function QA(e,t){return b.useReducer((r,o)=>t[r][o]??r,e)}oa(QA,"useStateMachine");var la=oa(e=>{const{present:t,children:r}=e,o=JA(t),s=typeof r=="function"?r({present:o.isPresent}):b.Children.only(r),c=ek(o.ref,tk(s));return typeof r=="function"||o.isPresent?b.cloneElement(s,{ref:c}):null},"Presence");function JA(e){const[t,r]=b.useState(),o=b.useRef(null),s=b.useRef(e),c=b.useRef("none"),u=b.useRef(void 0),f=e?"mounted":"unmounted",[h,g]=QA(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{h==="mounted"?(c.current=u.current??Xi(o.current),u.current=void 0):c.current="none"},[h]),Lt(()=>{const y=o.current,v=s.current;if(v!==e){const x=c.current,C=Xi(y);e?(u.current=C,g("MOUNT")):C==="none"||y?.display==="none"?g("UNMOUNT"):g(v&&x!==C?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,g]),Lt(()=>{if(t){let y;const v=t.ownerDocument.defaultView??window,S=oa(C=>{const w=Xi(o.current).includes(CSS.escape(C.animationName));if(C.target===t&&w&&(g("ANIMATION_END"),!s.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",y=v.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},"handleAnimationEnd"),x=oa(C=>{C.target===t&&(c.current=Xi(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",S),t.addEventListener("animationend",S),()=>{v.clearTimeout(y),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",S),t.removeEventListener("animationend",S)}}else g("ANIMATION_END")},[t,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:b.useCallback(y=>{if(y){const v=getComputedStyle(y);o.current=v,u.current=Xi(v)}else o.current=null;r(y)},[])}}oa(JA,"usePresence");function Vg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}oa(Vg,"setRef");function ek(...e){const t=b.useRef(e);return t.current=e,b.useCallback(r=>{const o=t.current;let s=!1;const c=o.map(u=>{const f=Vg(u,r);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u<c.length;u++){const f=c[u];typeof f=="function"?f():Vg(o[u],null)}}},[])}oa(ek,"useStableComposedRefs");function Xi(e){return e?.animationName||"none"}oa(Xi,"getAnimationName");function tk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}oa(tk,"getElementRef");var fc=hw(),uz=Object.defineProperty,dz=(e,t)=>uz(e,"name",{value:t,configurable:!0}),fz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rt=fz.reduce((e,t)=>{const r=_r(`Primitive.${t}`),o=b.forwardRef((s,c)=>{const{asChild:u,...f}=s,h=u?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(h,{...f,ref:c})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function nk(e,t){e&&fc.flushSync(()=>e.dispatchEvent(t))}dz(nk,"dispatchDiscreteCustomEvent");var pz=Object.defineProperty,ia=(e,t)=>pz(e,"name",{value:t,configurable:!0}),qv="Checkbox",[hz,PZ]=jn(qv),[mz,Gv]=hz(qv);function rk(e){const{__scopeCheckbox:t,checked:r,children:o,defaultChecked:s,disabled:c,form:u,name:f,onCheckedChange:h,required:g,value:y="on",internal_do_not_use_render:v}=e,[S,x]=Sr({prop:r,defaultProp:s??!1,onChange:h,caller:qv}),[C,A]=b.useState(null),[w,k]=b.useState(null),M=b.useRef(!1),[T,N]=b.useReducer(I=>I+1,0),O=C?!!u||!!C.closest("form"):!0,P={checked:S,disabled:c,setChecked:x,control:C,setControl:A,name:f,form:u,value:y,hasConsumerStoppedPropagationRef:M,userInteractionCount:T,onUserInteraction:N,required:g,defaultChecked:ta(s)?!1:s,isFormControl:O,bubbleInput:w,setBubbleInput:k};return d.jsx(mz,{scope:t,...P,children:ok(v)?v(P):o})}ia(rk,"CheckboxProvider");var gz="CheckboxTrigger",yz=b.forwardRef(ia(function({__scopeCheckbox:t,onKeyDown:r,onClick:o,...s},c){const{control:u,value:f,disabled:h,checked:g,required:y,setControl:v,setChecked:S,hasConsumerStoppedPropagationRef:x,onUserInteraction:C,isFormControl:A,bubbleInput:w}=Gv(gz,t),k=Qe(c,v),M=b.useRef(g);return b.useEffect(()=>{const T=u?.form;if(T){const N=ia(()=>S(M.current),"reset");return T.addEventListener("reset",N),()=>T.removeEventListener("reset",N)}},[u,S]),d.jsx(rt.button,{type:"button",role:"checkbox","aria-checked":ta(g)?"mixed":g,"aria-required":y,"data-state":Vv(g),"data-disabled":h?"":void 0,disabled:h,value:f,...s,ref:k,onKeyDown:Re(r,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:Re(o,T=>{C(),S(N=>ta(N)?!0:!N),w&&A&&(x.current=T.isPropagationStopped(),x.current||T.stopPropagation())})})},"CheckboxTrigger")),ak=b.forwardRef(ia(function(t,r){const{__scopeCheckbox:o,name:s,checked:c,defaultChecked:u,required:f,disabled:h,value:g,onCheckedChange:y,form:v,...S}=t;return d.jsx(rk,{__scopeCheckbox:o,checked:c,defaultChecked:u,disabled:h,required:f,onCheckedChange:y,name:s,form:v,value:g,internal_do_not_use_render:({isFormControl:x})=>d.jsxs(d.Fragment,{children:[d.jsx(yz,{...S,ref:r,__scopeCheckbox:o}),x&&d.jsx(Sz,{__scopeCheckbox:o})]})})},"Checkbox")),vz="CheckboxIndicator",bz=b.forwardRef(ia(function(t,r){const{__scopeCheckbox:o,forceMount:s,...c}=t,u=Gv(vz,o);return d.jsx(la,{present:s||ta(u.checked)||u.checked===!0,children:d.jsx(rt.span,{"data-state":Vv(u.checked),"data-disabled":u.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...t.style}})})},"CheckboxIndicator")),_z="CheckboxBubbleInput",Sz=b.forwardRef(ia(function({__scopeCheckbox:t,onClick:r,...o},s){const{control:c,hasConsumerStoppedPropagationRef:u,userInteractionCount:f,checked:h,defaultChecked:g,required:y,disabled:v,name:S,value:x,form:C,bubbleInput:A,setBubbleInput:w}=Gv(_z,t),k=Qe(s,w),M=Cf(c),T=b.useRef(!1),N=b.useRef(h),O=b.useRef(f);b.useEffect(()=>{const I=A;if(!I)return;const z=window.HTMLInputElement.prototype,re=Object.getOwnPropertyDescriptor(z,"checked").set,ne=f!==O.current;O.current=f;const Y=N.current!==h;N.current=h;const le=!(ne&&u.current);if(Y&&re){T.current=!ne;const ue=new Event("click",{bubbles:le});I.indeterminate=ta(h),re.call(I,ta(h)?!1:h),I.dispatchEvent(ue),T.current=!1}},[A,h,u,f]);const P=b.useRef(ta(h)?!1:h);return d.jsx(rt.input,{type:"checkbox","aria-hidden":!0,defaultChecked:g??P.current,required:y,disabled:v,name:S,value:x,form:C,...o,tabIndex:-1,ref:k,onClick:Re(r,I=>{T.current&&I.stopPropagation()}),style:{...o.style,...M,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function ok(e){return typeof e=="function"}ia(ok,"isFunction");function ta(e){return e==="indeterminate"}ia(ta,"isIndeterminate");function Vv(e){return ta(e)?"indeterminate":e?"checked":"unchecked"}ia(Vv,"getState");/**
84
+ * @license lucide-react v0.562.0 - ISC
85
+ *
86
+ * This source code is licensed under the ISC license.
87
+ * See the LICENSE file in the root directory of this source tree.
88
+ */const xz=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Cz=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,o)=>o?o.toUpperCase():r.toLowerCase()),LC=e=>{const t=Cz(e);return t.charAt(0).toUpperCase()+t.slice(1)},ik=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===r).join(" ").trim(),wz=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
89
+ * @license lucide-react v0.562.0 - ISC
90
+ *
91
+ * This source code is licensed under the ISC license.
92
+ * See the LICENSE file in the root directory of this source tree.
93
+ */var Ez={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
94
+ * @license lucide-react v0.562.0 - ISC
95
+ *
96
+ * This source code is licensed under the ISC license.
97
+ * See the LICENSE file in the root directory of this source tree.
98
+ */const Az=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:s="",children:c,iconNode:u,...f},h)=>b.createElement("svg",{ref:h,...Ez,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:ik("lucide",s),...!c&&!wz(f)&&{"aria-hidden":"true"},...f},[...u.map(([g,y])=>b.createElement(g,y)),...Array.isArray(c)?c:[c]]));/**
99
+ * @license lucide-react v0.562.0 - ISC
100
+ *
101
+ * This source code is licensed under the ISC license.
102
+ * See the LICENSE file in the root directory of this source tree.
103
+ */const se=(e,t)=>{const r=b.forwardRef(({className:o,...s},c)=>b.createElement(Az,{ref:c,iconNode:t,className:ik(`lucide-${xz(LC(e))}`,`lucide-${e}`,o),...s}));return r.displayName=LC(e),r};/**
104
+ * @license lucide-react v0.562.0 - ISC
105
+ *
106
+ * This source code is licensed under the ISC license.
107
+ * See the LICENSE file in the root directory of this source tree.
108
+ */const kz=[["path",{d:"M18 17.5a2.5 2.5 0 1 1-4 2.03V12",key:"yd12zl"}],["path",{d:"M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"larmp2"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"M6.6 15.572A2 2 0 1 0 10 17v-5",key:"1x1kqn"}]],zC=se("air-vent",kz);/**
109
+ * @license lucide-react v0.562.0 - ISC
110
+ *
111
+ * This source code is licensed under the ISC license.
112
+ * See the LICENSE file in the root directory of this source tree.
113
+ */const Mz=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],sk=se("ban",Mz);/**
114
+ * @license lucide-react v0.562.0 - ISC
115
+ *
116
+ * This source code is licensed under the ISC license.
117
+ * See the LICENSE file in the root directory of this source tree.
118
+ */const Tz=[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]],Nz=se("bed-double",Tz);/**
119
+ * @license lucide-react v0.562.0 - ISC
120
+ *
121
+ * This source code is licensed under the ISC license.
122
+ * See the LICENSE file in the root directory of this source tree.
123
+ */const Rz=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],HC=se("bell",Rz);/**
124
+ * @license lucide-react v0.562.0 - ISC
125
+ *
126
+ * This source code is licensed under the ISC license.
127
+ * See the LICENSE file in the root directory of this source tree.
128
+ */const Oz=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 9v6",key:"199k2o"}],["path",{d:"M16 15v6",key:"8rj2es"}],["path",{d:"M16 3v6",key:"1j6rpj"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 15v6",key:"1stoo3"}],["path",{d:"M8 3v6",key:"vlvjmk"}]],Eo=se("brick-wall",Oz);/**
129
+ * @license lucide-react v0.562.0 - ISC
130
+ *
131
+ * This source code is licensed under the ISC license.
132
+ * See the LICENSE file in the root directory of this source tree.
133
+ */const jz=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],UC=se("briefcase",jz);/**
134
+ * @license lucide-react v0.562.0 - ISC
135
+ *
136
+ * This source code is licensed under the ISC license.
137
+ * See the LICENSE file in the root directory of this source tree.
138
+ */const Dz=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],BC=se("bug",Dz);/**
139
+ * @license lucide-react v0.562.0 - ISC
140
+ *
141
+ * This source code is licensed under the ISC license.
142
+ * See the LICENSE file in the root directory of this source tree.
143
+ */const Pz=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],FC=se("building-2",Pz);/**
144
+ * @license lucide-react v0.562.0 - ISC
145
+ *
146
+ * This source code is licensed under the ISC license.
147
+ * See the LICENSE file in the root directory of this source tree.
148
+ */const Iz=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],$z=se("calendar-days",Iz);/**
149
+ * @license lucide-react v0.562.0 - ISC
150
+ *
151
+ * This source code is licensed under the ISC license.
152
+ * See the LICENSE file in the root directory of this source tree.
153
+ */const Lz=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],jd=se("car",Lz);/**
154
+ * @license lucide-react v0.562.0 - ISC
155
+ *
156
+ * This source code is licensed under the ISC license.
157
+ * See the LICENSE file in the root directory of this source tree.
158
+ */const zz=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],pc=se("check",zz);/**
159
+ * @license lucide-react v0.562.0 - ISC
160
+ *
161
+ * This source code is licensed under the ISC license.
162
+ * See the LICENSE file in the root directory of this source tree.
163
+ */const Hz=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],hc=se("chevron-down",Hz);/**
164
+ * @license lucide-react v0.562.0 - ISC
165
+ *
166
+ * This source code is licensed under the ISC license.
167
+ * See the LICENSE file in the root directory of this source tree.
168
+ */const Uz=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Bz=se("chevron-up",Uz);/**
169
+ * @license lucide-react v0.562.0 - ISC
170
+ *
171
+ * This source code is licensed under the ISC license.
172
+ * See the LICENSE file in the root directory of this source tree.
173
+ */const Fz=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Ao=se("circle-alert",Fz);/**
174
+ * @license lucide-react v0.562.0 - ISC
175
+ *
176
+ * This source code is licensed under the ISC license.
177
+ * See the LICENSE file in the root directory of this source tree.
178
+ */const qz=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v2",key:"a1is7l"}],["path",{d:"M8 14v2",key:"1e9m6t"}],["path",{d:"M16 20h.01",key:"xwek51"}],["path",{d:"M8 20h.01",key:"1vjney"}],["path",{d:"M12 16v2",key:"z66u1j"}],["path",{d:"M12 22h.01",key:"1urd7a"}]],qC=se("cloud-hail",qz);/**
179
+ * @license lucide-react v0.562.0 - ISC
180
+ *
181
+ * This source code is licensed under the ISC license.
182
+ * See the LICENSE file in the root directory of this source tree.
183
+ */const Gz=[["path",{d:"M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973",key:"1cez44"}],["path",{d:"m13 12-3 5h4l-3 5",key:"1t22er"}]],GC=se("cloud-lightning",Gz);/**
184
+ * @license lucide-react v0.562.0 - ISC
185
+ *
186
+ * This source code is licensed under the ISC license.
187
+ * See the LICENSE file in the root directory of this source tree.
188
+ */const Vz=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],Zz=se("cloud-rain",Vz);/**
189
+ * @license lucide-react v0.562.0 - ISC
190
+ *
191
+ * This source code is licensed under the ISC license.
192
+ * See the LICENSE file in the root directory of this source tree.
193
+ */const Yz=[["path",{d:"M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z",key:"1t2lqe"}],["path",{d:"M10 21.9V14L2.1 9.1",key:"o7czzq"}],["path",{d:"m10 14 11.9-6.9",key:"zm5e20"}],["path",{d:"M14 19.8v-8.1",key:"159ecu"}],["path",{d:"M18 17.5V9.4",key:"11uown"}]],ko=se("container",Yz);/**
194
+ * @license lucide-react v0.562.0 - ISC
195
+ *
196
+ * This source code is licensed under the ISC license.
197
+ * See the LICENSE file in the root directory of this source tree.
198
+ */const Wz=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Kz=se("copy",Wz);/**
199
+ * @license lucide-react v0.562.0 - ISC
200
+ *
201
+ * This source code is licensed under the ISC license.
202
+ * See the LICENSE file in the root directory of this source tree.
203
+ */const Xz=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],VC=se("credit-card",Xz);/**
204
+ * @license lucide-react v0.562.0 - ISC
205
+ *
206
+ * This source code is licensed under the ISC license.
207
+ * See the LICENSE file in the root directory of this source tree.
208
+ */const Qz=[["path",{d:"M11.25 16.25h1.5L12 17z",key:"w7jh35"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309",key:"u7s9ue"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5",key:"v8hric"}]],Jz=se("dog",Qz);/**
209
+ * @license lucide-react v0.562.0 - ISC
210
+ *
211
+ * This source code is licensed under the ISC license.
212
+ * See the LICENSE file in the root directory of this source tree.
213
+ */const e9=[["path",{d:"M10 12h.01",key:"1kxr2c"}],["path",{d:"M18 20V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14",key:"36qu9e"}],["path",{d:"M2 20h20",key:"owomy5"}]],Cm=se("door-closed",e9);/**
214
+ * @license lucide-react v0.562.0 - ISC
215
+ *
216
+ * This source code is licensed under the ISC license.
217
+ * See the LICENSE file in the root directory of this source tree.
218
+ */const t9=[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]],ZC=se("droplet",t9);/**
219
+ * @license lucide-react v0.562.0 - ISC
220
+ *
221
+ * This source code is licensed under the ISC license.
222
+ * See the LICENSE file in the root directory of this source tree.
223
+ */const n9=[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]],Rl=se("droplets",n9);/**
224
+ * @license lucide-react v0.562.0 - ISC
225
+ *
226
+ * This source code is licensed under the ISC license.
227
+ * See the LICENSE file in the root directory of this source tree.
228
+ */const r9=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],wm=se("file-text",r9);/**
229
+ * @license lucide-react v0.562.0 - ISC
230
+ *
231
+ * This source code is licensed under the ISC license.
232
+ * See the LICENSE file in the root directory of this source tree.
233
+ */const a9=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Ol=se("flame",a9);/**
234
+ * @license lucide-react v0.562.0 - ISC
235
+ *
236
+ * This source code is licensed under the ISC license.
237
+ * See the LICENSE file in the root directory of this source tree.
238
+ */const o9=[["path",{d:"M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5",key:"1wtuz0"}],["path",{d:"M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16",key:"e09ifn"}],["path",{d:"M2 21h13",key:"1x0fut"}],["path",{d:"M3 9h11",key:"1p7c0w"}]],YC=se("fuel",o9);/**
239
+ * @license lucide-react v0.562.0 - ISC
240
+ *
241
+ * This source code is licensed under the ISC license.
242
+ * See the LICENSE file in the root directory of this source tree.
243
+ */const i9=[["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["rect",{x:"2",y:"15",width:"20",height:"4",rx:"1",key:"g3x8cw"}]],s9=se("hard-hat",i9);/**
244
+ * @license lucide-react v0.562.0 - ISC
245
+ *
246
+ * This source code is licensed under the ISC license.
247
+ * See the LICENSE file in the root directory of this source tree.
248
+ */const l9=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]],WC=se("heart-pulse",l9);/**
249
+ * @license lucide-react v0.562.0 - ISC
250
+ *
251
+ * This source code is licensed under the ISC license.
252
+ * See the LICENSE file in the root directory of this source tree.
253
+ */const c9=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],u9=se("heart",c9);/**
254
+ * @license lucide-react v0.562.0 - ISC
255
+ *
256
+ * This source code is licensed under the ISC license.
257
+ * See the LICENSE file in the root directory of this source tree.
258
+ */const d9=[["path",{d:"M10 22v-6.57",key:"1wmca3"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M12 7h.01",key:"1ivr5q"}],["path",{d:"M14 15.43V22",key:"1q2vjd"}],["path",{d:"M15 16a5 5 0 0 0-6 0",key:"o9wqvi"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 7h.01",key:"1vti4s"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],KC=se("hotel",d9);/**
259
+ * @license lucide-react v0.562.0 - ISC
260
+ *
261
+ * This source code is licensed under the ISC license.
262
+ * See the LICENSE file in the root directory of this source tree.
263
+ */const f9=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],gd=se("house",f9);/**
264
+ * @license lucide-react v0.562.0 - ISC
265
+ *
266
+ * This source code is licensed under the ISC license.
267
+ * See the LICENSE file in the root directory of this source tree.
268
+ */const p9=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],h9=se("info",p9);/**
269
+ * @license lucide-react v0.562.0 - ISC
270
+ *
271
+ * This source code is licensed under the ISC license.
272
+ * See the LICENSE file in the root directory of this source tree.
273
+ */const m9=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],g9=se("key",m9);/**
274
+ * @license lucide-react v0.562.0 - ISC
275
+ *
276
+ * This source code is licensed under the ISC license.
277
+ * See the LICENSE file in the root directory of this source tree.
278
+ */const y9=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],rn=se("layers",y9);/**
279
+ * @license lucide-react v0.562.0 - ISC
280
+ *
281
+ * This source code is licensed under the ISC license.
282
+ * See the LICENSE file in the root directory of this source tree.
283
+ */const v9=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],b9=se("link-2",v9);/**
284
+ * @license lucide-react v0.562.0 - ISC
285
+ *
286
+ * This source code is licensed under the ISC license.
287
+ * See the LICENSE file in the root directory of this source tree.
288
+ */const _9=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"m21 3-6.75 6.75",key:"pv0uzu"}],["circle",{cx:"10",cy:"14",r:"6",key:"1qwbdc"}]],S9=se("mars",_9);/**
289
+ * @license lucide-react v0.562.0 - ISC
290
+ *
291
+ * This source code is licensed under the ISC license.
292
+ * See the LICENSE file in the root directory of this source tree.
293
+ */const x9=[["path",{d:"M5 12h14",key:"1ays0h"}]],C9=se("minus",x9);/**
294
+ * @license lucide-react v0.562.0 - ISC
295
+ *
296
+ * This source code is licensed under the ISC license.
297
+ * See the LICENSE file in the root directory of this source tree.
298
+ */const w9=[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]],mr=se("mountain",w9);/**
299
+ * @license lucide-react v0.562.0 - ISC
300
+ *
301
+ * This source code is licensed under the ISC license.
302
+ * See the LICENSE file in the root directory of this source tree.
303
+ */const E9=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],A9=se("pencil",E9);/**
304
+ * @license lucide-react v0.562.0 - ISC
305
+ *
306
+ * This source code is licensed under the ISC license.
307
+ * See the LICENSE file in the root directory of this source tree.
308
+ */const k9=[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["path",{d:"m9 20 3-6 3 6",key:"se2kox"}],["path",{d:"m6 8 6 2 6-2",key:"4o3us4"}],["path",{d:"M12 10v4",key:"1kjpxc"}]],Qu=se("person-standing",k9);/**
309
+ * @license lucide-react v0.562.0 - ISC
310
+ *
311
+ * This source code is licensed under the ISC license.
312
+ * See the LICENSE file in the root directory of this source tree.
313
+ */const M9=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],lk=se("phone",M9);/**
314
+ * @license lucide-react v0.562.0 - ISC
315
+ *
316
+ * This source code is licensed under the ISC license.
317
+ * See the LICENSE file in the root directory of this source tree.
318
+ */const T9=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3L11 9.999",key:"1lw9ds"}],["path",{d:"M15.973 4.027A13 13 0 0 0 5.902 2.373c-1.398.342-1.092 2.158.277 2.601a19.9 19.9 0 0 1 5.822 3.024",key:"ffj4ej"}],["path",{d:"M16.001 11.999a19.9 19.9 0 0 1 3.024 5.824c.444 1.369 2.26 1.676 2.603.278A13 13 0 0 0 20 8.069",key:"8tj4zw"}],["path",{d:"M18.352 3.352a1.205 1.205 0 0 0-1.704 0l-5.296 5.296a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l5.296-5.296a1.205 1.205 0 0 0 0-1.704z",key:"hh6h97"}]],Em=se("pickaxe",T9);/**
319
+ * @license lucide-react v0.562.0 - ISC
320
+ *
321
+ * This source code is licensed under the ISC license.
322
+ * See the LICENSE file in the root directory of this source tree.
323
+ */const N9=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ck=se("plus",N9);/**
324
+ * @license lucide-react v0.562.0 - ISC
325
+ *
326
+ * This source code is licensed under the ISC license.
327
+ * See the LICENSE file in the root directory of this source tree.
328
+ */const R9=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],Mo=se("rows-3",R9);/**
329
+ * @license lucide-react v0.562.0 - ISC
330
+ *
331
+ * This source code is licensed under the ISC license.
332
+ * See the LICENSE file in the root directory of this source tree.
333
+ */const O9=[["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M18 5v16",key:"1ethyx"}],["path",{d:"m4 6 7.106-3.79a2 2 0 0 1 1.788 0L20 6",key:"zywc2d"}],["path",{d:"m6 11-3.52 2.147a1 1 0 0 0-.48.854V19a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a1 1 0 0 0-.48-.853L18 11",key:"1d4ql0"}],["path",{d:"M6 5v16",key:"1sn0nx"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]],j9=se("school",O9);/**
334
+ * @license lucide-react v0.562.0 - ISC
335
+ *
336
+ * This source code is licensed under the ISC license.
337
+ * See the LICENSE file in the root directory of this source tree.
338
+ */const D9=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],P9=se("search",D9);/**
339
+ * @license lucide-react v0.562.0 - ISC
340
+ *
341
+ * This source code is licensed under the ISC license.
342
+ * See the LICENSE file in the root directory of this source tree.
343
+ */const I9=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Am=se("shield-alert",I9);/**
344
+ * @license lucide-react v0.562.0 - ISC
345
+ *
346
+ * This source code is licensed under the ISC license.
347
+ * See the LICENSE file in the root directory of this source tree.
348
+ */const $9=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Dd=se("shield-check",$9);/**
349
+ * @license lucide-react v0.562.0 - ISC
350
+ *
351
+ * This source code is licensed under the ISC license.
352
+ * See the LICENSE file in the root directory of this source tree.
353
+ */const L9=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],km=se("shield",L9);/**
354
+ * @license lucide-react v0.562.0 - ISC
355
+ *
356
+ * This source code is licensed under the ISC license.
357
+ * See the LICENSE file in the root directory of this source tree.
358
+ */const z9=[["path",{d:"M7 18v-6a5 5 0 1 1 10 0v6",key:"pcx96s"}],["path",{d:"M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z",key:"1b4s83"}],["path",{d:"M21 12h1",key:"jtio3y"}],["path",{d:"M18.5 4.5 18 5",key:"g5sp9y"}],["path",{d:"M2 12h1",key:"1uaihz"}],["path",{d:"M12 2v1",key:"11qlp1"}],["path",{d:"m4.929 4.929.707.707",key:"1i51kw"}],["path",{d:"M12 12v6",key:"3ahymv"}]],XC=se("siren",z9);/**
359
+ * @license lucide-react v0.562.0 - ISC
360
+ *
361
+ * This source code is licensed under the ISC license.
362
+ * See the LICENSE file in the root directory of this source tree.
363
+ */const H9=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],U9=se("snowflake",H9);/**
364
+ * @license lucide-react v0.562.0 - ISC
365
+ *
366
+ * This source code is licensed under the ISC license.
367
+ * See the LICENSE file in the root directory of this source tree.
368
+ */const B9=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],F9=se("sparkles",B9);/**
369
+ * @license lucide-react v0.562.0 - ISC
370
+ *
371
+ * This source code is licensed under the ISC license.
372
+ * See the LICENSE file in the root directory of this source tree.
373
+ */const q9=[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]],Mm=se("thermometer",q9);/**
374
+ * @license lucide-react v0.562.0 - ISC
375
+ *
376
+ * This source code is licensed under the ISC license.
377
+ * See the LICENSE file in the root directory of this source tree.
378
+ */const G9=[["path",{d:"M21 4H3",key:"1hwok0"}],["path",{d:"M18 8H6",key:"41n648"}],["path",{d:"M19 12H9",key:"1g4lpz"}],["path",{d:"M16 16h-6",key:"1j5d54"}],["path",{d:"M11 20H9",key:"39obr8"}]],Tm=se("tornado",G9);/**
379
+ * @license lucide-react v0.562.0 - ISC
380
+ *
381
+ * This source code is licensed under the ISC license.
382
+ * See the LICENSE file in the root directory of this source tree.
383
+ */const V9=[["path",{d:"m10 11 11 .9a1 1 0 0 1 .8 1.1l-.665 4.158a1 1 0 0 1-.988.842H20",key:"she1j9"}],["path",{d:"M16 18h-5",key:"bq60fd"}],["path",{d:"M18 5a1 1 0 0 0-1 1v5.573",key:"1kv8ia"}],["path",{d:"M3 4h8.129a1 1 0 0 1 .99.863L13 11.246",key:"1q1ert"}],["path",{d:"M4 11V4",key:"9ft8pt"}],["path",{d:"M7 15h.01",key:"k5ht0j"}],["path",{d:"M8 10.1V4",key:"1jgyzo"}],["circle",{cx:"18",cy:"18",r:"2",key:"1emm8v"}],["circle",{cx:"7",cy:"15",r:"5",key:"ddtuc"}]],Z9=se("tractor",V9);/**
384
+ * @license lucide-react v0.562.0 - ISC
385
+ *
386
+ * This source code is licensed under the ISC license.
387
+ * See the LICENSE file in the root directory of this source tree.
388
+ */const Y9=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],W9=se("trash-2",Y9);/**
389
+ * @license lucide-react v0.562.0 - ISC
390
+ *
391
+ * This source code is licensed under the ISC license.
392
+ * See the LICENSE file in the root directory of this source tree.
393
+ */const K9=[["path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4",key:"foxbe7"}],["path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3",key:"18arnh"}],["path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35",key:"ywahnh"}],["path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14",key:"ft0feo"}]],X9=se("tree-palm",K9);/**
394
+ * @license lucide-react v0.562.0 - ISC
395
+ *
396
+ * This source code is licensed under the ISC license.
397
+ * See the LICENSE file in the root directory of this source tree.
398
+ */const Q9=[["path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z",key:"cpyugq"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]],To=se("tree-pine",Q9);/**
399
+ * @license lucide-react v0.562.0 - ISC
400
+ *
401
+ * This source code is licensed under the ISC license.
402
+ * See the LICENSE file in the root directory of this source tree.
403
+ */const J9=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],uk=se("triangle-alert",J9);/**
404
+ * @license lucide-react v0.562.0 - ISC
405
+ *
406
+ * This source code is licensed under the ISC license.
407
+ * See the LICENSE file in the root directory of this source tree.
408
+ */const e8=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],QC=se("truck",e8);/**
409
+ * @license lucide-react v0.562.0 - ISC
410
+ *
411
+ * This source code is licensed under the ISC license.
412
+ * See the LICENSE file in the root directory of this source tree.
413
+ */const t8=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],dk=se("user-round-check",t8);/**
414
+ * @license lucide-react v0.562.0 - ISC
415
+ *
416
+ * This source code is licensed under the ISC license.
417
+ * See the LICENSE file in the root directory of this source tree.
418
+ */const n8=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],Nm=se("users-round",n8);/**
419
+ * @license lucide-react v0.562.0 - ISC
420
+ *
421
+ * This source code is licensed under the ISC license.
422
+ * See the LICENSE file in the root directory of this source tree.
423
+ */const r8=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],fk=se("users",r8);/**
424
+ * @license lucide-react v0.562.0 - ISC
425
+ *
426
+ * This source code is licensed under the ISC license.
427
+ * See the LICENSE file in the root directory of this source tree.
428
+ */const a8=[["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M9 19h6",key:"456am0"}],["circle",{cx:"12",cy:"9",r:"6",key:"1nw4tq"}]],o8=se("venus",a8);/**
429
+ * @license lucide-react v0.562.0 - ISC
430
+ *
431
+ * This source code is licensed under the ISC license.
432
+ * See the LICENSE file in the root directory of this source tree.
433
+ */const i8=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],Pd=se("waves",i8);/**
434
+ * @license lucide-react v0.562.0 - ISC
435
+ *
436
+ * This source code is licensed under the ISC license.
437
+ * See the LICENSE file in the root directory of this source tree.
438
+ */const s8=[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]],JC=se("wind",s8);/**
439
+ * @license lucide-react v0.562.0 - ISC
440
+ *
441
+ * This source code is licensed under the ISC license.
442
+ * See the LICENSE file in the root directory of this source tree.
443
+ */const l8=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Rm=se("wrench",l8);/**
444
+ * @license lucide-react v0.562.0 - ISC
445
+ *
446
+ * This source code is licensed under the ISC license.
447
+ * See the LICENSE file in the root directory of this source tree.
448
+ */const c8=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],u8=se("x",c8);/**
449
+ * @license lucide-react v0.562.0 - ISC
450
+ *
451
+ * This source code is licensed under the ISC license.
452
+ * See the LICENSE file in the root directory of this source tree.
453
+ */const d8=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],f8=se("zap",d8);var p8=Object.defineProperty,Ft=(e,t)=>p8(e,"name",{value:t,configurable:!0});function wf(e){const t=e+"CollectionProvider",[r,o]=jn(t),[s,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=Ft(A=>{const{scope:w,children:k}=A,M=b.useRef(null),T=b.useRef(new Map).current;return d.jsx(s,{scope:w,itemMap:T,collectionRef:M,children:k})},"CollectionProvider");u.displayName=t;const f=e+"CollectionSlot",h=_r(f),g=b.forwardRef((A,w)=>{const{scope:k,children:M}=A,T=c(f,k),N=Qe(w,T.collectionRef);return d.jsx(h,{ref:N,children:M})});g.displayName=f;const y=e+"CollectionItemSlot",v="data-radix-collection-item",S=_r(y),x=b.forwardRef((A,w)=>{const{scope:k,children:M,...T}=A,N=b.useRef(null),O=Qe(w,N),P=c(y,k);return b.useEffect(()=>(P.itemMap.set(N,{ref:N,...T}),()=>void P.itemMap.delete(N))),d.jsx(S,{[v]:"",ref:O,children:M})});x.displayName=y;function C(A){const w=c(e+"CollectionConsumer",A);return b.useCallback(()=>{const M=w.collectionRef.current;if(!M)return[];const T=Array.from(M.querySelectorAll(`[${v}]`));return Array.from(w.itemMap.values()).sort((P,I)=>T.indexOf(P.ref.current)-T.indexOf(I.ref.current))},[w.collectionRef,w.itemMap])}return Ft(C,"useCollection"),[{Provider:u,Slot:g,ItemSlot:x},C,o]}Ft(wf,"createCollection");var e2=new WeakMap,Dt,Tn,Om=(Tn=class extends Map{constructor(r){super(r);NS(this,Dt);nm(this,Dt,[...super.keys()]),e2.set(this,!0)}set(r,o){return e2.get(this)&&(this.has(r)?Jt(this,Dt)[Jt(this,Dt).indexOf(r)]=r:Jt(this,Dt).push(r)),super.set(r,o),this}insert(r,o,s){const c=this.has(o),u=Jt(this,Dt).length,f=Zv(r);let h=f>=0?f:u+f;const g=h<0||h>=u?-1:h;if(g===this.size||c&&g===this.size-1||g===-1)return this.set(o,s),this;const y=this.size+(c?0:1);f<0&&h++;const v=[...Jt(this,Dt)];let S,x=!1;for(let C=h;C<y;C++)if(h===C){let A=v[C];v[C]===o&&(A=v[C+1]),c&&this.delete(o),S=this.get(A),this.set(o,s)}else{!x&&v[C-1]===o&&(x=!0);const A=v[x?C:C-1],w=S;S=this.get(A),this.delete(A),this.set(A,w)}return this}with(r,o,s){const c=new Tn(this);return c.insert(r,o,s),c}before(r){const o=Jt(this,Dt).indexOf(r)-1;if(!(o<0))return this.entryAt(o)}setBefore(r,o,s){const c=Jt(this,Dt).indexOf(r);return c===-1?this:this.insert(c,o,s)}after(r){let o=Jt(this,Dt).indexOf(r);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(r,o,s){const c=Jt(this,Dt).indexOf(r);return c===-1?this:this.insert(c+1,o,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return nm(this,Dt,[]),super.clear()}delete(r){const o=super.delete(r);return o&&Jt(this,Dt).splice(Jt(this,Dt).indexOf(r),1),o}deleteAt(r){const o=this.keyAt(r);return o!==void 0?this.delete(o):!1}at(r){const o=yd(Jt(this,Dt),r);if(o!==void 0)return this.get(o)}entryAt(r){const o=yd(Jt(this,Dt),r);if(o!==void 0)return[o,this.get(o)]}indexOf(r){return Jt(this,Dt).indexOf(r)}keyAt(r){return yd(Jt(this,Dt),r)}from(r,o){const s=this.indexOf(r);if(s===-1)return;let c=s+o;return c<0&&(c=0),c>=this.size&&(c=this.size-1),this.at(c)}keyFrom(r,o){const s=this.indexOf(r);if(s===-1)return;let c=s+o;return c<0&&(c=0),c>=this.size&&(c=this.size-1),this.keyAt(c)}find(r,o){let s=0;for(const c of this){if(Reflect.apply(r,o,[c,s,this]))return c;s++}}findIndex(r,o){let s=0;for(const c of this){if(Reflect.apply(r,o,[c,s,this]))return s;s++}return-1}filter(r,o){const s=[];let c=0;for(const u of this)Reflect.apply(r,o,[u,c,this])&&s.push(u),c++;return new Tn(s)}map(r,o){const s=[];let c=0;for(const u of this)s.push([u[0],Reflect.apply(r,o,[u,c,this])]),c++;return new Tn(s)}reduce(...r){const[o,s]=r;let c=0,u=s??this.at(0);for(const f of this)c===0&&r.length===1?u=f:u=Reflect.apply(o,this,[u,f,c,this]),c++;return u}reduceRight(...r){const[o,s]=r;let c=s??this.at(-1);for(let u=this.size-1;u>=0;u--){const f=this.at(u);u===this.size-1&&r.length===1?c=f:c=Reflect.apply(o,this,[c,f,u,this])}return c}toSorted(r){const o=[...this.entries()].sort(r);return new Tn(o)}toReversed(){const r=new Tn;for(let o=this.size-1;o>=0;o--){const s=this.keyAt(o),c=this.get(s);r.set(s,c)}return r}toSpliced(...r){const o=[...this.entries()];return o.splice(...r),new Tn(o)}slice(r,o){const s=new Tn;let c=this.size-1;if(r===void 0)return s;r<0&&(r=r+this.size),o!==void 0&&o>0&&(c=o-1);for(let u=r;u<=c;u++){const f=this.keyAt(u),h=this.get(f);s.set(f,h)}return s}every(r,o){let s=0;for(const c of this){if(!Reflect.apply(r,o,[c,s,this]))return!1;s++}return!0}some(r,o){let s=0;for(const c of this){if(Reflect.apply(r,o,[c,s,this]))return!0;s++}return!1}},Dt=new WeakMap,Ft(Tn,"OrderedDict"),Tn);function yd(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const r=pk(e,t);return r===-1?void 0:e[r]}Ft(yd,"at");function pk(e,t){const r=e.length,o=Zv(t),s=o>=0?o:r+o;return s<0||s>=r?-1:s}Ft(pk,"toSafeIndex");function Zv(e){return e!==e||e===0?0:Math.trunc(e)}Ft(Zv,"toSafeInteger");function h8(e){const t=e+"CollectionProvider",[r,o]=jn(t),[s,c]=r(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Om,setItemMap:Ft(()=>{},"setItemMap")}),u=Ft(({state:T,...N})=>T?d.jsx(h,{...N,state:T}):d.jsx(f,{...N}),"CollectionProvider");u.displayName=t;const f=Ft(T=>{const N=w();return d.jsx(h,{...T,state:N})},"CollectionInit");f.displayName=t+"Init";const h=Ft(T=>{const{scope:N,children:O,state:P}=T,I=b.useRef(null),[z,Z]=b.useState(null),re=Qe(I,Z),[ne,Y]=P;return b.useEffect(()=>{if(!z)return;const le=gk(()=>{});return le.observe(z,{childList:!0,subtree:!0}),()=>{le.disconnect()}},[z]),d.jsx(s,{scope:N,itemMap:ne,setItemMap:Y,collectionRef:re,collectionRefObject:I,collectionElement:z,children:O})},"CollectionProviderImpl");h.displayName=t+"Impl";const g=e+"CollectionSlot",y=_r(g),v=b.forwardRef((T,N)=>{const{scope:O,children:P}=T,I=c(g,O),z=Qe(N,I.collectionRef);return d.jsx(y,{ref:z,children:P})});v.displayName=g;const S=e+"CollectionItemSlot",x="data-radix-collection-item",C=_r(S),A=b.forwardRef((T,N)=>{const{scope:O,children:P,...I}=T,z=b.useRef(null),[Z,re]=b.useState(null),ne=Qe(N,z,re),Y=c(S,O),{setItemMap:le}=Y,ue=b.useRef(I);hk(ue.current,I)||(ue.current=I);const be=ue.current;return b.useEffect(()=>{const L=be;return le(V=>Z?V.has(Z)?V.set(Z,{...L,element:Z}).toSorted(Zg):(V.set(Z,{...L,element:Z}),V.toSorted(Zg)):V),()=>{le(V=>!Z||!V.has(Z)?V:(V.delete(Z),new Om(V)))}},[Z,be,le]),d.jsx(C,{[x]:"",ref:ne,children:P})});A.displayName=S;function w(){return b.useState(new Om)}Ft(w,"useInitCollection");function k(T){const{itemMap:N}=c(e+"CollectionConsumer",T);return N}return Ft(k,"useCollection"),[{Provider:u,Slot:v,ItemSlot:A},{createCollectionScope:o,useCollection:k,useInitCollection:w}]}Ft(h8,"createCollection");function hk(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(const s of r)if(!Object.prototype.hasOwnProperty.call(t,s)||e[s]!==t[s])return!1;return!0}Ft(hk,"shallowEqual");function mk(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Ft(mk,"isElementPreceding");function Zg(e,t){return!e[1].element||!t[1].element?0:mk(e[1].element,t[1].element)?-1:1}Ft(Zg,"sortByDocumentPosition");function gk(e){return new MutationObserver(r=>{for(const o of r)if(o.type==="childList"){e();return}})}Ft(gk,"getChildListObserver");var m8=Object.defineProperty,g8=(e,t)=>m8(e,"name",{value:t,configurable:!0}),y8=vs[" useId ".trim().toString()]||(()=>{}),v8=0;function Jo(e){const[t,r]=b.useState(y8());return Lt(()=>{e||r(o=>o??String(v8++))},[e]),e||(t?`radix-${t}`:"")}g8(Jo,"useId");var b8=Object.defineProperty,_8=(e,t)=>b8(e,"name",{value:t,configurable:!0});function sr(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>((...r)=>t.current?.(...r)),[])}_8(sr,"useCallbackRef");var S8=Object.defineProperty,x8=(e,t)=>S8(e,"name",{value:t,configurable:!0}),C8=b.createContext(void 0);function mc(e){const t=b.useContext(C8);return e||t||"ltr"}x8(mc,"useDirection");var w8=Object.defineProperty,Yv=(e,t)=>w8(e,"name",{value:t,configurable:!0}),jm=!1;function yk(){const[e,t]=b.useState(jm);return b.useEffect(()=>{jm||(jm=!0,t(!0))},[]),e}Yv(yk,"useIsHydrated");var vk=vs[" useSyncExternalStore ".trim().toString()];function bk(){return()=>{}}Yv(bk,"subscribe");function _k(){return vk(bk,()=>!0,()=>!1)}Yv(_k,"useIsHydratedModern");var E8=typeof vk=="function"?_k:yk,A8=Object.defineProperty,ei=(e,t)=>A8(e,"name",{value:t,configurable:!0}),Dm="rovingFocusGroup.onEntryFocus",k8={bubbles:!1,cancelable:!0},Ef="RovingFocusGroup",[Yg,Sk,M8]=wf(Ef),[T8,xk]=jn(Ef,[M8]),[N8,R8]=T8(Ef),O8=b.forwardRef(ei(function(t,r){return d.jsx(Yg.Provider,{scope:t.__scopeRovingFocusGroup,children:d.jsx(Yg.Slot,{scope:t.__scopeRovingFocusGroup,children:d.jsx(j8,{...t,ref:r})})})},"RovingFocusGroup")),j8=b.forwardRef(ei(function(t,r){const{__scopeRovingFocusGroup:o,orientation:s,loop:c=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:g,onEntryFocus:y,preventScrollOnEntryFocus:v=!1,...S}=t,x=b.useRef(null),C=Qe(r,x),A=mc(u),[w,k]=Sr({prop:f,defaultProp:h??null,onChange:g,caller:Ef}),[M,T]=b.useState(!1),N=sr(y),O=Sk(o),P=b.useRef(!1),[I,z]=b.useState(0);return b.useEffect(()=>{const Z=x.current;if(Z)return Z.addEventListener(Dm,N),()=>Z.removeEventListener(Dm,N)},[N]),d.jsx(N8,{scope:o,orientation:s,dir:A,loop:c,currentTabStopId:w,onItemFocus:b.useCallback(Z=>k(Z),[k]),onItemShiftTab:b.useCallback(()=>T(!0),[]),onFocusableItemAdd:b.useCallback(()=>z(Z=>Z+1),[]),onFocusableItemRemove:b.useCallback(()=>z(Z=>Z-1),[]),children:d.jsx(rt.div,{tabIndex:M||I===0?-1:0,"data-orientation":s,...S,ref:C,style:{outline:"none",...t.style},onMouseDown:Re(t.onMouseDown,()=>{P.current=!0}),onFocus:Re(t.onFocus,Z=>{const re=!P.current;if(Z.target===Z.currentTarget&&re&&!M){const ne=new CustomEvent(Dm,k8);if(Z.currentTarget.dispatchEvent(ne),!ne.defaultPrevented){const Y=O().filter(V=>V.focusable),le=Y.find(V=>V.active),ue=Y.find(V=>V.id===w),L=[le,ue,...Y].filter(Boolean).map(V=>V.ref.current);Wv(L,v)}}P.current=!1}),onBlur:Re(t.onBlur,()=>T(!1))})})},"RovingFocusGroupImpl")),D8="RovingFocusGroupItem",P8=b.forwardRef(ei(function(t,r){const{__scopeRovingFocusGroup:o,focusable:s=!0,active:c=!1,tabStopId:u,children:f,...h}=t,g=Jo(),y=u||g,v=R8(D8,o),S=v.currentTabStopId===y,x=Sk(o),{onFocusableItemAdd:C,onFocusableItemRemove:A,currentTabStopId:w}=v,k=E8();return Lt(()=>{if(!(!k||!s))return C(),()=>A()},[k,s,C,A]),b.useEffect(()=>{if(!(k||!s))return C(),()=>A()},[k,s,C,A]),d.jsx(Yg.ItemSlot,{scope:o,id:y,focusable:s,active:c,children:d.jsx(rt.span,{tabIndex:S?0:-1,"data-orientation":v.orientation,...h,ref:r,onMouseDown:Re(t.onMouseDown,M=>{s?v.onItemFocus(y):M.preventDefault()}),onFocus:Re(t.onFocus,()=>v.onItemFocus(y)),onKeyDown:Re(t.onKeyDown,M=>{if(M.key==="Tab"&&M.shiftKey){v.onItemShiftTab();return}if(M.target!==M.currentTarget)return;const T=wk(M,v.orientation,v.dir);if(T!==void 0){if(M.metaKey||M.ctrlKey||M.altKey||M.shiftKey)return;M.preventDefault();let O=x().filter(P=>P.focusable).map(P=>P.ref.current);if(T==="last")O.reverse();else if(T==="prev"||T==="next"){T==="prev"&&O.reverse();const P=O.indexOf(M.currentTarget);O=v.loop?Ek(O,P+1):O.slice(P+1)}setTimeout(()=>Wv(O))}}),children:typeof f=="function"?f({isCurrentTabStop:S,hasTabStop:w!=null}):f})})},"RovingFocusGroupItem")),I8={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ck(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}ei(Ck,"getDirectionAwareKey");function wk(e,t,r){const o=Ck(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return I8[o]}ei(wk,"getFocusIntent");function Wv(e,t=!1){const r=document.activeElement;for(const o of e)if(o===r||(o.focus({preventScroll:t}),document.activeElement!==r))return}ei(Wv,"focusFirst");function Ek(e,t){return e.map((r,o)=>e[(t+o)%e.length])}ei(Ek,"wrapArray");var $8=O8,L8=P8,z8=Object.defineProperty,tn=(e,t)=>z8(e,"name",{value:t,configurable:!0}),Ak="Radio",[H8,kk]=jn(Ak),[U8,Af]=H8(Ak);function Mk(e){const{__scopeRadio:t,checked:r=!1,children:o,disabled:s,form:c,name:u,onCheck:f,required:h,value:g="on",internal_do_not_use_render:y}=e,[v,S]=b.useState(null),[x,C]=b.useState(null),A=b.useRef(!1),[w,k]=b.useReducer(N=>N+1,0),M=v?!!c||!!v.closest("form"):!0,T={checked:r,disabled:s,required:h,name:u,form:c,value:g,control:v,setControl:S,hasConsumerStoppedPropagationRef:A,userInteractionCount:w,onUserInteraction:k,isFormControl:M,bubbleInput:x,setBubbleInput:C,onCheck:tn(()=>f?.(),"onCheck")};return d.jsx(U8,{scope:t,...T,children:Tk(y)?y(T):o})}tn(Mk,"RadioProvider");var B8="RadioTrigger",F8=b.forwardRef(tn(function({__scopeRadio:t,onClick:r,...o},s){const{checked:c,disabled:u,value:f,setControl:h,onCheck:g,hasConsumerStoppedPropagationRef:y,onUserInteraction:v,isFormControl:S,bubbleInput:x}=Af(B8,t),C=Qe(s,h);return d.jsx(rt.button,{type:"button",role:"radio","aria-checked":c,"data-state":Kv(c),"data-disabled":u?"":void 0,disabled:u,value:f,...o,ref:C,onClick:Re(r,A=>{c||(v(),g()),x&&S&&(y.current=A.isPropagationStopped(),y.current||A.stopPropagation())})})},"RadioTrigger")),q8="RadioIndicator",G8=b.forwardRef(tn(function(t,r){const{__scopeRadio:o,forceMount:s,...c}=t,u=Af(q8,o);return d.jsx(la,{present:s||u.checked,children:d.jsx(rt.span,{"data-state":Kv(u.checked),"data-disabled":u.disabled?"":void 0,...c,ref:r})})},"RadioIndicator")),V8="RadioBubbleInput",Z8=b.forwardRef(tn(function({__scopeRadio:t,onClick:r,...o},s){const{control:c,checked:u,required:f,disabled:h,name:g,value:y,form:v,bubbleInput:S,setBubbleInput:x,hasConsumerStoppedPropagationRef:C,userInteractionCount:A}=Af(V8,t),w=Qe(s,x),k=Cf(c),M=b.useRef(!1),T=b.useRef(u),N=b.useRef(A);b.useEffect(()=>{const P=S;if(!P)return;const I=window.HTMLInputElement.prototype,Z=Object.getOwnPropertyDescriptor(I,"checked").set,re=A!==N.current;N.current=A;const ne=T.current!==u;T.current=u;const Y=!(re&&C.current);if(ne&&Z){M.current=!re;const le=new Event("click",{bubbles:Y});Z.call(P,u),P.dispatchEvent(le),M.current=!1}},[S,u,C,A]);const O=b.useRef(u);return d.jsx(rt.input,{type:"radio","aria-hidden":!0,defaultChecked:O.current,required:f,disabled:h,name:g,value:y,form:v,...o,tabIndex:-1,ref:w,onClick:Re(r,P=>{M.current&&P.stopPropagation()}),style:{...o.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"RadioBubbleInput"));function Tk(e){return typeof e=="function"}tn(Tk,"isFunction");function Kv(e){return e?"checked":"unchecked"}tn(Kv,"getState");var Y8=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Xv="RadioGroup",[W8,IZ]=jn(Xv,[xk,kk]),Nk=xk(),kf=kk(),[K8,X8]=W8(Xv),Rk=b.forwardRef(tn(function(t,r){const{__scopeRadioGroup:o,name:s,form:c,defaultValue:u,value:f,required:h=!1,disabled:g=!1,orientation:y,dir:v,loop:S=!0,onValueChange:x,...C}=t,A=Nk(o),w=mc(v),[k,M]=Sr({prop:f,defaultProp:u??null,onChange:x,caller:Xv}),[T,N]=b.useState(null),O=Qe(r,N),P=b.useRef(k);return b.useEffect(()=>{const I=c?T?.ownerDocument.getElementById(c):T?.closest("form");if(I instanceof HTMLFormElement){const z=tn(()=>M(P.current),"reset");return I.addEventListener("reset",z),()=>I.removeEventListener("reset",z)}},[T,c,M]),d.jsx(K8,{scope:o,name:s,form:c,required:h,disabled:g,value:k,onValueChange:M,children:d.jsx($8,{asChild:!0,...A,orientation:y,dir:w,loop:S,children:d.jsx(rt.div,{role:"radiogroup","aria-required":h,"aria-orientation":y,"data-disabled":g?"":void 0,dir:w,...C,ref:O})})})},"RadioGroup")),Q8="RadioGroupItemProvider",J8="RadioGroupItemTrigger";function Ok(e){const{__scopeRadioGroup:t,value:r,disabled:o,children:s,internal_do_not_use_render:c}=e,u=X8(Q8,t),f=kf(t),h=u.disabled||o;return d.jsx(Mk,{...f,checked:u.value===r,disabled:h,required:u.required,name:u.name,form:u.form,value:r,onCheck:()=>u.onValueChange(r),internal_do_not_use_render:c,children:s})}tn(Ok,"RadioGroupItemProvider");var eH=b.forwardRef(tn(function(t,r){const{__scopeRadioGroup:o,...s}=t,c=Nk(o),u=kf(o),{checked:f,disabled:h}=Af(J8,u.__scopeRadio),g=b.useRef(null),y=Qe(r,g),v=b.useRef(!1);return b.useEffect(()=>{const S=tn(C=>{Y8.includes(C.key)&&(v.current=!0)},"handleKeyDown"),x=tn(()=>v.current=!1,"handleKeyUp");return document.addEventListener("keydown",S),document.addEventListener("keyup",x),()=>{document.removeEventListener("keydown",S),document.removeEventListener("keyup",x)}},[]),d.jsx(L8,{asChild:!0,...c,focusable:!h,active:f,children:d.jsx(F8,{...u,...s,ref:y,onKeyDown:Re(s.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onFocus:Re(s.onFocus,()=>{v.current&&g.current?.click()})})})},"RadioGroupItemTrigger")),jk=b.forwardRef(tn(function(t,r){const{__scopeRadioGroup:o,value:s,disabled:c,...u}=t;return d.jsx(Ok,{__scopeRadioGroup:o,value:s,disabled:c,internal_do_not_use_render:({isFormControl:f})=>d.jsxs(d.Fragment,{children:[d.jsx(eH,{...u,ref:r,__scopeRadioGroup:o}),f&&d.jsx(tH,{__scopeRadioGroup:o})]})})},"RadioGroupItem")),tH=b.forwardRef(tn(function(t,r){const{__scopeRadioGroup:o,...s}=t,c=kf(o);return d.jsx(Z8,{...c,...s,ref:r})},"RadioGroupItemBubbleInput")),nH=b.forwardRef(tn(function(t,r){const{__scopeRadioGroup:o,...s}=t,c=kf(o);return d.jsx(G8,{...c,...s,ref:r})},"RadioGroupIndicator")),rH=Object.defineProperty,Bt=(e,t)=>rH(e,"name",{value:t,configurable:!0}),Wg="dismissableLayer.update",aH="dismissableLayer.pointerDownOutside",oH="dismissableLayer.focusOutside",t2,Dk=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Qv=b.forwardRef(Bt(function(t,r){const{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:g,...y}=t,v=b.useContext(Dk),[S,x]=b.useState(null),C=S?.ownerDocument??globalThis?.document,[,A]=b.useState({}),w=Qe(r,x),k=Array.from(v.layers),[M]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),T=M?k.indexOf(M):-1,N=S?k.indexOf(S):-1,O=v.layersWithOutsidePointerEventsDisabled.size>0,P=N>=T,I=b.useRef(!1),z=Ik(Y=>{u?.(Y),h?.(Y),Y.defaultPrevented||g?.()},{ownerDocument:C,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:I,dismissableSurfaces:v.dismissableSurfaces,shouldHandlePointerDownOutside:b.useCallback(Y=>{if(!(Y instanceof Node))return!1;const le=[...v.branches].some(ue=>ue.contains(Y));return P&&!le},[v.branches,P])}),Z=$k(Y=>{if(s&&I.current)return;const le=Y.target;[...v.branches].some(be=>be.contains(le))||(f?.(Y),h?.(Y),Y.defaultPrevented||g?.())},C),re=S?N===k.length-1:!1,ne=sr(Y=>{Y.key==="Escape"&&(c?.(Y),!Y.defaultPrevented&&g&&(Y.preventDefault(),g()))});return b.useEffect(()=>{if(re)return C.addEventListener("keydown",ne,{capture:!0}),()=>C.removeEventListener("keydown",ne,{capture:!0})},[C,re,ne]),b.useEffect(()=>{if(S)return o&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(t2=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(S)),v.layers.add(S),Kg(),()=>{o&&(v.layersWithOutsidePointerEventsDisabled.delete(S),v.layersWithOutsidePointerEventsDisabled.size===0&&(C.body.style.pointerEvents=t2))}},[S,C,o,v]),b.useEffect(()=>()=>{S&&(v.layers.delete(S),v.layersWithOutsidePointerEventsDisabled.delete(S),Kg())},[S,v]),b.useEffect(()=>{const Y=Bt(()=>A({}),"handleUpdate");return document.addEventListener(Wg,Y),()=>document.removeEventListener(Wg,Y)},[]),d.jsx(rt.div,{...y,ref:w,style:{pointerEvents:O?P?"auto":"none":void 0,...t.style},onFocusCapture:Re(t.onFocusCapture,Z.onFocusCapture),onBlurCapture:Re(t.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:Re(t.onPointerDownCapture,z.onPointerDownCapture)})},"DismissableLayer"));function Pk(){const e=b.useContext(Dk),[t,r]=b.useState(null);return b.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}Bt(Pk,"useDismissableLayerSurface");var iH=Bt(()=>!0,"IS_TRUE");function Ik(e,t){const{ownerDocument:r=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:c,shouldHandlePointerDownOutside:u=iH}=t,f=sr(e),h=b.useRef(!1),g=b.useRef(!1),y=b.useRef(new Map),v=b.useRef(()=>{});return b.useEffect(()=>{function S(){g.current=!1,s.current=!1,y.current.clear()}Bt(S,"resetOutsideInteraction");function x(){return Array.from(y.current.values()).some(Boolean)}Bt(x,"isOutsideInteractionIntercepted");function C(T){if(!g.current)return;const N=T.target;N instanceof Node&&[...c].some(P=>P.contains(N))||y.current.set(T.type,!0),T.type==="click"&&window.setTimeout(()=>{g.current&&v.current()},0)}Bt(C,"handleInteractionCapture");function A(T){g.current&&y.current.set(T.type,!1)}Bt(A,"handleInteractionBubble");const w=Bt(T=>{if(T.target&&!h.current){let N=function(){r.removeEventListener("click",v.current);const P=x();S(),P||Jv(aH,f,O,{discrete:!0})};if(Bt(N,"handleAndDispatchPointerDownOutsideEvent"),!u(T.target)){r.removeEventListener("click",v.current),S(),h.current=!1;return}const O={originalEvent:T};g.current=!0,s.current=o&&T.button===0,y.current.clear(),!o||T.button!==0?N():(r.removeEventListener("click",v.current),v.current=N,r.addEventListener("click",v.current,{once:!0}))}else r.removeEventListener("click",v.current),S();h.current=!1},"handlePointerDown"),k=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const T of k)r.addEventListener(T,C,!0),r.addEventListener(T,A);const M=window.setTimeout(()=>{r.addEventListener("pointerdown",w)},0);return()=>{window.clearTimeout(M),r.removeEventListener("pointerdown",w),r.removeEventListener("click",v.current);for(const T of k)r.removeEventListener(T,C,!0),r.removeEventListener(T,A)}},[r,f,o,s,c,u]),{onPointerDownCapture:Bt(()=>h.current=!0,"onPointerDownCapture")}}Bt(Ik,"usePointerDownOutside");function $k(e,t=globalThis?.document){const r=sr(e),o=b.useRef(!1);return b.useEffect(()=>{const s=Bt(c=>{c.target&&!o.current&&Jv(oH,r,{originalEvent:c},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:Bt(()=>o.current=!0,"onFocusCapture"),onBlurCapture:Bt(()=>o.current=!1,"onBlurCapture")}}Bt($k,"useFocusOutside");function Kg(){const e=new CustomEvent(Wg);document.dispatchEvent(e)}Bt(Kg,"dispatchUpdate");function Jv(e,t,r,{discrete:o}){const s=r.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),o?nk(s,c):s.dispatchEvent(c)}Bt(Jv,"handleAndDispatchCustomEvent");var sH=Object.defineProperty,sn=(e,t)=>sH(e,"name",{value:t,configurable:!0}),Pm="focusScope.autoFocusOnMount",Im="focusScope.autoFocusOnUnmount",n2={bubbles:!1,cancelable:!0},eb=b.forwardRef(sn(function(t,r){const{loop:o=!1,trapped:s=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...f}=t,[h,g]=b.useState(null),y=sr(c),v=sr(u),S=b.useRef(null),x=Qe(r,g),C=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(s){let w=function(N){if(C.paused||!h)return;const O=N.target;h.contains(O)?S.current=O:Yr(S.current,{select:!0})},k=function(N){if(C.paused||!h)return;const O=N.relatedTarget;O!==null&&(h.contains(O)||Yr(S.current,{select:!0}))},M=function(N){if(document.activeElement===document.body)for(const P of N)P.removedNodes.length>0&&Yr(h)};sn(w,"handleFocusIn"),sn(k,"handleFocusOut"),sn(M,"handleMutations"),document.addEventListener("focusin",w),document.addEventListener("focusout",k);const T=new MutationObserver(M);return h&&T.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",k),T.disconnect()}}},[s,h,C.paused]),b.useEffect(()=>{if(h){r2.add(C);const w=document.activeElement;if(!h.contains(w)){const M=new CustomEvent(Pm,n2);h.addEventListener(Pm,y),h.dispatchEvent(M),M.defaultPrevented||(Lk(Fk(tb(h)),{select:!0}),document.activeElement===w&&Yr(h))}return()=>{h.removeEventListener(Pm,y),setTimeout(()=>{const M=new CustomEvent(Im,n2);h.addEventListener(Im,v),h.dispatchEvent(M),M.defaultPrevented||Yr(w??document.body,{select:!0}),h.removeEventListener(Im,v),r2.remove(C)},0)}}},[h,y,v,C]);const A=b.useCallback(w=>{if(!o&&!s||C.paused)return;const k=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,M=document.activeElement;if(k&&M){const T=w.currentTarget,[N,O]=zk(T);N&&O?!w.shiftKey&&M===O?(w.preventDefault(),o&&Yr(N,{select:!0})):w.shiftKey&&M===N&&(w.preventDefault(),o&&Yr(O,{select:!0})):M===T&&w.preventDefault()}},[o,s,C.paused]);return d.jsx(rt.div,{tabIndex:-1,...f,ref:x,onKeyDown:A})},"FocusScope"));function Lk(e,{select:t=!1}={}){const r=document.activeElement;for(const o of e)if(Yr(o,{select:t}),document.activeElement!==r)return}sn(Lk,"focusFirst");function zk(e){const t=tb(e),r=Xg(t,e),o=Xg(t.reverse(),e);return[r,o]}sn(zk,"getTabbableEdges");function tb(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:sn(o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}sn(tb,"getTabbableCandidates");function Xg(e,t){const r=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(r?!o.checkVisibility({checkVisibilityCSS:!0}):Hk(o,{upTo:t})))return o}sn(Xg,"findVisible");function Hk(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}sn(Hk,"isHidden");function Uk(e){return e instanceof HTMLInputElement&&"select"in e}sn(Uk,"isSelectableInput");function Yr(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Uk(e)&&t&&e.select()}}sn(Yr,"focus");var r2=Bk();function Bk(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Qg(e,t),e.unshift(t)},remove(t){e=Qg(e,t),e[0]?.resume()}}}sn(Bk,"createFocusScopesStack");function Qg(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}sn(Qg,"arrayRemove");function Fk(e){return e.filter(t=>t.tagName!=="A")}sn(Fk,"removeLinks");var lH=Object.defineProperty,cH=(e,t)=>lH(e,"name",{value:t,configurable:!0}),nb=b.forwardRef(cH(function(t,r){const{container:o,...s}=t,[c,u]=b.useState(!1);Lt(()=>u(!0),[]);const f=o||c&&globalThis?.document?.body;return f?fc.createPortal(d.jsx(rt.div,{...s,ref:r}),f):null},"Portal")),uH=Object.defineProperty,rb=(e,t)=>uH(e,"name",{value:t,configurable:!0}),Ju=0,Vi=null;function dH(e){return gc(),e.children}rb(dH,"FocusGuards");function gc(){b.useEffect(()=>{Vi||(Vi={start:Jg(),end:Jg()});const{start:e,end:t}=Vi;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Ju++,()=>{Ju===1&&(Vi?.start.remove(),Vi?.end.remove(),Vi=null),Ju=Math.max(0,Ju-1)}},[])}rb(gc,"useFocusGuards");function Jg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}rb(Jg,"createFocusGuard");var yr=function(){return yr=Object.assign||function(t){for(var r,o=1,s=arguments.length;o<s;o++){r=arguments[o];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(t[c]=r[c])}return t},yr.apply(this,arguments)};function qk(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(r[o[s]]=e[o[s]]);return r}function fH(e,t,r){if(r||arguments.length===2)for(var o=0,s=t.length,c;o<s;o++)(c||!(o in t))&&(c||(c=Array.prototype.slice.call(t,0,o)),c[o]=t[o]);return e.concat(c||Array.prototype.slice.call(t))}var vd="right-scroll-bar-position",bd="width-before-scroll-bar",pH="with-scroll-bars-hidden",hH="--removed-body-scroll-bar-size";function $m(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mH(e,t){var r=b.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var s=r.value;s!==o&&(r.value=o,r.callback(o,s))}}}})[0];return r.callback=t,r.facade}var gH=typeof window<"u"?b.useLayoutEffect:b.useEffect,a2=new WeakMap;function yH(e,t){var r=mH(null,function(o){return e.forEach(function(s){return $m(s,o)})});return gH(function(){var o=a2.get(r);if(o){var s=new Set(o),c=new Set(e),u=r.current;s.forEach(function(f){c.has(f)||$m(f,null)}),c.forEach(function(f){s.has(f)||$m(f,u)})}a2.set(r,e)},[e]),r}function vH(e){return e}function bH(e,t){t===void 0&&(t=vH);var r=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(c){var u=t(c,o);return r.push(u),function(){r=r.filter(function(f){return f!==u})}},assignSyncMedium:function(c){for(o=!0;r.length;){var u=r;r=[],u.forEach(c)}r={push:function(f){return c(f)},filter:function(){return r}}},assignMedium:function(c){o=!0;var u=[];if(r.length){var f=r;r=[],f.forEach(c),u=r}var h=function(){var y=u;u=[],y.forEach(c)},g=function(){return Promise.resolve().then(h)};g(),r={push:function(y){u.push(y),g()},filter:function(y){return u=u.filter(y),r}}}};return s}function _H(e){e===void 0&&(e={});var t=bH(null);return t.options=yr({async:!0,ssr:!1},e),t}var Gk=function(e){var t=e.sideCar,r=qk(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return b.createElement(o,yr({},r))};Gk.isSideCarExport=!0;function SH(e,t){return e.useMedium(t),Gk}var Vk=_H(),Lm=function(){},Mf=b.forwardRef(function(e,t){var r=b.useRef(null),o=b.useState({onScrollCapture:Lm,onWheelCapture:Lm,onTouchMoveCapture:Lm}),s=o[0],c=o[1],u=e.forwardProps,f=e.children,h=e.className,g=e.removeScrollBar,y=e.enabled,v=e.shards,S=e.sideCar,x=e.noRelative,C=e.noIsolation,A=e.inert,w=e.allowPinchZoom,k=e.as,M=k===void 0?"div":k,T=e.gapMode,N=qk(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=S,P=yH([r,t]),I=yr(yr({},N),s);return b.createElement(b.Fragment,null,y&&b.createElement(O,{sideCar:Vk,removeScrollBar:g,shards:v,noRelative:x,noIsolation:C,inert:A,setCallbacks:c,allowPinchZoom:!!w,lockRef:r,gapMode:T}),u?b.cloneElement(b.Children.only(f),yr(yr({},I),{ref:P})):b.createElement(M,yr({},I,{className:h,ref:P}),f))});Mf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Mf.classNames={fullWidth:bd,zeroRight:vd};var xH=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function CH(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=xH();return t&&e.setAttribute("nonce",t),e}function wH(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function EH(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var AH=function(){var e=0,t=null;return{add:function(r){e==0&&(t=CH())&&(wH(t,r),EH(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kH=function(){var e=AH();return function(t,r){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Zk=function(){var e=kH(),t=function(r){var o=r.styles,s=r.dynamic;return e(o,s),null};return t},MH={left:0,top:0,right:0,gap:0},zm=function(e){return parseInt(e||"",10)||0},TH=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[zm(r),zm(o),zm(s)]},NH=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return MH;var t=TH(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}},RH=Zk(),as="data-scroll-locked",OH=function(e,t,r,o){var s=e.left,c=e.top,u=e.right,f=e.gap;return r===void 0&&(r="margin"),`
454
+ .`.concat(pH,` {
455
+ overflow: hidden `).concat(o,`;
456
+ padding-right: `).concat(f,"px ").concat(o,`;
457
+ }
458
+ body[`).concat(as,`] {
459
+ overflow: hidden `).concat(o,`;
460
+ overscroll-behavior: contain;
461
+ `).concat([t&&"position: relative ".concat(o,";"),r==="margin"&&`
462
+ padding-left: `.concat(s,`px;
463
+ padding-top: `).concat(c,`px;
464
+ padding-right: `).concat(u,`px;
465
+ margin-left:0;
466
+ margin-top:0;
467
+ margin-right: `).concat(f,"px ").concat(o,`;
468
+ `),r==="padding"&&"padding-right: ".concat(f,"px ").concat(o,";")].filter(Boolean).join(""),`
469
+ }
470
+
471
+ .`).concat(vd,` {
472
+ right: `).concat(f,"px ").concat(o,`;
473
+ }
474
+
475
+ .`).concat(bd,` {
476
+ margin-right: `).concat(f,"px ").concat(o,`;
477
+ }
478
+
479
+ .`).concat(vd," .").concat(vd,` {
480
+ right: 0 `).concat(o,`;
481
+ }
482
+
483
+ .`).concat(bd," .").concat(bd,` {
484
+ margin-right: 0 `).concat(o,`;
485
+ }
486
+
487
+ body[`).concat(as,`] {
488
+ `).concat(hH,": ").concat(f,`px;
489
+ }
490
+ `)},o2=function(){var e=parseInt(document.body.getAttribute(as)||"0",10);return isFinite(e)?e:0},jH=function(){b.useEffect(function(){return document.body.setAttribute(as,(o2()+1).toString()),function(){var e=o2()-1;e<=0?document.body.removeAttribute(as):document.body.setAttribute(as,e.toString())}},[])},DH=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,s=o===void 0?"margin":o;jH();var c=b.useMemo(function(){return NH(s)},[s]);return b.createElement(RH,{styles:OH(c,!t,s,r?"":"!important")})},ey=!1;if(typeof window<"u")try{var ed=Object.defineProperty({},"passive",{get:function(){return ey=!0,!0}});window.addEventListener("test",ed,ed),window.removeEventListener("test",ed,ed)}catch{ey=!1}var Zi=ey?{passive:!1}:!1,PH=function(e){return e.tagName==="TEXTAREA"},Yk=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!PH(e)&&r[t]==="visible")},IH=function(e){return Yk(e,"overflowY")},$H=function(e){return Yk(e,"overflowX")},i2=function(e,t){var r=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=Wk(e,o);if(s){var c=Kk(e,o),u=c[1],f=c[2];if(u>f)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},LH=function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[t,r,o]},zH=function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[t,r,o]},Wk=function(e,t){return e==="v"?IH(t):$H(t)},Kk=function(e,t){return e==="v"?LH(t):zH(t)},HH=function(e,t){return e==="h"&&t==="rtl"?-1:1},UH=function(e,t,r,o,s){var c=HH(e,window.getComputedStyle(t).direction),u=c*o,f=r.target,h=t.contains(f),g=!1,y=u>0,v=0,S=0;do{if(!f)break;var x=Kk(e,f),C=x[0],A=x[1],w=x[2],k=A-w-c*C;(C||k)&&Wk(e,f)&&(v+=k,S+=C);var M=f.parentNode;f=M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?M.host:M}while(!h&&f!==document.body||h&&(t.contains(f)||t===f));return(y&&Math.abs(v)<1||!y&&Math.abs(S)<1)&&(g=!0),g},td=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},s2=function(e){return[e.deltaX,e.deltaY]},l2=function(e){return e&&"current"in e?e.current:e},BH=function(e,t){return e[0]===t[0]&&e[1]===t[1]},FH=function(e){return`
491
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
492
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
493
+ `)},qH=0,Yi=[];function GH(e){var t=b.useRef([]),r=b.useRef([0,0]),o=b.useRef(),s=b.useState(qH++)[0],c=b.useState(Zk)[0],u=b.useRef(e);b.useEffect(function(){u.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var A=fH([e.lockRef.current],(e.shards||[]).map(l2),!0).filter(Boolean);return A.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),A.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var f=b.useCallback(function(A,w){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!u.current.allowPinchZoom;var k=td(A),M=r.current,T="deltaX"in A?A.deltaX:M[0]-k[0],N="deltaY"in A?A.deltaY:M[1]-k[1],O,P=A.target,I=Math.abs(T)>Math.abs(N)?"h":"v";if("touches"in A&&I==="h"&&P.type==="range")return!1;var z=window.getSelection(),Z=z&&z.anchorNode,re=Z?Z===P||Z.contains(P):!1;if(re)return!1;var ne=i2(I,P);if(!ne)return!0;if(ne?O=I:(O=I==="v"?"h":"v",ne=i2(I,P)),!ne)return!1;if(!o.current&&"changedTouches"in A&&(T||N)&&(o.current=O),!O)return!0;var Y=o.current||O;return UH(Y,w,A,Y==="h"?T:N)},[]),h=b.useCallback(function(A){var w=A;if(!(!Yi.length||Yi[Yi.length-1]!==c)){var k="deltaY"in w?s2(w):td(w),M=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&BH(O.delta,k)})[0];if(M&&M.should){w.cancelable&&w.preventDefault();return}if(!M){var T=(u.current.shards||[]).map(l2).filter(Boolean).filter(function(O){return O.contains(w.target)}),N=T.length>0?f(w,T[0]):!u.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),g=b.useCallback(function(A,w,k,M){var T={name:A,delta:w,target:k,should:M,shadowParent:VH(k)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(N){return N!==T})},1)},[]),y=b.useCallback(function(A){r.current=td(A),o.current=void 0},[]),v=b.useCallback(function(A){g(A.type,s2(A),A.target,f(A,e.lockRef.current))},[]),S=b.useCallback(function(A){g(A.type,td(A),A.target,f(A,e.lockRef.current))},[]);b.useEffect(function(){return Yi.push(c),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:S}),document.addEventListener("wheel",h,Zi),document.addEventListener("touchmove",h,Zi),document.addEventListener("touchstart",y,Zi),function(){Yi=Yi.filter(function(A){return A!==c}),document.removeEventListener("wheel",h,Zi),document.removeEventListener("touchmove",h,Zi),document.removeEventListener("touchstart",y,Zi)}},[]);var x=e.removeScrollBar,C=e.inert;return b.createElement(b.Fragment,null,C?b.createElement(c,{styles:FH(s)}):null,x?b.createElement(DH,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function VH(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ZH=SH(Vk,GH);var Tf=b.forwardRef(function(e,t){return b.createElement(Mf,yr({},e,{ref:t,sideCar:ZH}))});Tf.classNames=Mf.classNames;var YH=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Wi=new WeakMap,nd=new WeakMap,rd={},Hm=0,Xk=function(e){return e&&(e.host||Xk(e.parentNode))},WH=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=Xk(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},KH=function(e,t,r,o){var s=WH(t,Array.isArray(e)?e:[e]);rd[r]||(rd[r]=new WeakMap);var c=rd[r],u=[],f=new Set,h=new Set(s),g=function(v){!v||f.has(v)||(f.add(v),g(v.parentNode))};s.forEach(g);var y=function(v){!v||h.has(v)||Array.prototype.forEach.call(v.children,function(S){if(f.has(S))y(S);else try{var x=S.getAttribute(o),C=x!==null&&x!=="false",A=(Wi.get(S)||0)+1,w=(c.get(S)||0)+1;Wi.set(S,A),c.set(S,w),u.push(S),A===1&&C&&nd.set(S,!0),w===1&&S.setAttribute(r,"true"),C||S.setAttribute(o,"true")}catch(k){console.error("aria-hidden: cannot operate on ",S,k)}})};return y(t),f.clear(),Hm++,function(){u.forEach(function(v){var S=Wi.get(v)-1,x=c.get(v)-1;Wi.set(v,S),c.set(v,x),S||(nd.has(v)||v.removeAttribute(o),nd.delete(v)),x||v.removeAttribute(r)}),Hm--,Hm||(Wi=new WeakMap,Wi=new WeakMap,nd=new WeakMap,rd={})}},ab=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),s=YH(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live], script"))),KH(o,s,r,"aria-hidden")):function(){return null}},XH=Object.defineProperty,ca=(e,t)=>XH(e,"name",{value:t,configurable:!0}),Qk="Dialog",[Jk,$Z]=jn(Qk),[LZ,no]=Jk(Qk),eM="DialogPortal",[QH,tM]=Jk(eM,{forceMount:void 0}),JH=ca(e=>{const{__scopeDialog:t,forceMount:r,children:o,container:s}=e,c=no(eM,t);return d.jsx(QH,{scope:t,forceMount:r,children:b.Children.map(o,u=>d.jsx(la,{present:r||c.open,children:d.jsx(nb,{asChild:!0,container:s,children:u})}))})},"DialogPortal"),ty="DialogOverlay",eU=b.forwardRef(ca(function(t,r){const o=tM(ty,t.__scopeDialog),{forceMount:s=o.forceMount,...c}=t,u=no(ty,t.__scopeDialog);return u.modal?d.jsx(la,{present:s||u.open,children:d.jsx(nU,{...c,ref:r})}):null},"DialogOverlay")),tU=_r("DialogOverlay.RemoveScroll"),nU=b.forwardRef(ca(function(t,r){const{__scopeDialog:o,...s}=t,c=no(ty,o),u=Pk(),f=Qe(r,u);return d.jsx(Tf,{as:tU,allowPinchZoom:!0,shards:[c.contentRef],children:d.jsx(rt.div,{"data-state":ob(c.open),...s,ref:f,style:{pointerEvents:"auto",...s.style}})})},"DialogOverlayImpl")),Yl="DialogContent",nM=b.forwardRef(ca(function(t,r){const o=tM(Yl,t.__scopeDialog),{forceMount:s=o.forceMount,...c}=t,u=no(Yl,t.__scopeDialog);return d.jsx(la,{present:s||u.open,children:u.modal?d.jsx(rU,{...c,ref:r}):d.jsx(aU,{...c,ref:r})})},"DialogContent")),rU=b.forwardRef(ca(function(t,r){const o=no(Yl,t.__scopeDialog),s=b.useRef(null),c=Qe(r,o.contentRef,s);return b.useEffect(()=>{const u=s.current;if(u)return ab(u)},[]),d.jsx(rM,{...t,ref:c,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:Re(t.onCloseAutoFocus,u=>{u.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:Re(t.onPointerDownOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&u.preventDefault()}),onFocusOutside:Re(t.onFocusOutside,u=>u.preventDefault())})},"DialogContentModal")),aU=b.forwardRef(ca(function(t,r){const o=no(Yl,t.__scopeDialog),s=b.useRef(!1),c=b.useRef(!1);return d.jsx(rM,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{t.onCloseAutoFocus?.(u),u.defaultPrevented||(s.current||o.triggerRef.current?.focus(),u.preventDefault()),s.current=!1,c.current=!1},onInteractOutside:u=>{t.onInteractOutside?.(u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const f=u.target;o.triggerRef.current?.contains(f)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.current&&u.preventDefault()}})},"DialogContentNonModal")),rM=b.forwardRef(ca(function(t,r){const{__scopeDialog:o,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:u,...f}=t,h=no(Yl,o);return gc(),d.jsx(d.Fragment,{children:d.jsx(eb,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:c,onUnmountAutoFocus:u,children:d.jsx(Qv,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":ob(h.open),...f,ref:r,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl")),oU="DialogClose",iU=b.forwardRef(ca(function(t,r){const{__scopeDialog:o,...s}=t,c=no(oU,o);return d.jsx(rt.button,{type:"button",...s,ref:r,onClick:Re(t.onClick,()=>c.onOpenChange(!1))})},"DialogClose"));function ob(e){return e?"open":"closed"}ca(ob,"getState");var sU=Object.defineProperty,lU=(e,t)=>sU(e,"name",{value:t,configurable:!0});function ny(e,[t,r]){return Math.min(r,Math.max(t,e))}lU(ny,"clamp");const cU=["top","right","bottom","left"],Ja=Math.min,na=Math.max,Id=Math.round,ad=Math.floor,ra=e=>({x:e,y:e}),uU={left:"right",right:"left",bottom:"top",top:"bottom"};function aM(e,t,r){return na(e,Ja(t,r))}function sa(e,t){return typeof e=="function"?e(t):e}function eo(e){return e.split("-")[0]}function As(e){return e.split("-")[1]}function ib(e){return e==="x"?"y":"x"}function sb(e){return e==="y"?"height":"width"}function vr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function lb(e){return ib(vr(e))}function dU(e,t,r){r===void 0&&(r=!1);const o=As(e),s=lb(e),c=sb(s);let u=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(u=$d(u)),[u,$d(u)]}function fU(e){const t=$d(e);return[ry(e),t,ry(t)]}function ry(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const c2=["left","right"],u2=["right","left"],pU=["top","bottom"],hU=["bottom","top"];function mU(e,t,r){switch(e){case"top":case"bottom":return r?t?u2:c2:t?c2:u2;case"left":case"right":return t?pU:hU;default:return[]}}function gU(e,t,r,o){const s=As(e);let c=mU(eo(e),r==="start",o);return s&&(c=c.map(u=>u+"-"+s),t&&(c=c.concat(c.map(ry)))),c}function $d(e){const t=eo(e);return uU[t]+e.slice(t.length)}function yU(e){var t,r,o,s;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(o=e.bottom)!=null?o:0,left:(s=e.left)!=null?s:0}}function oM(e){return typeof e!="number"?yU(e):{top:e,right:e,bottom:e,left:e}}function Ld(e){const{x:t,y:r,width:o,height:s}=e;return{width:o,height:s,top:r,left:t,right:t+o,bottom:r+s,x:t,y:r}}function d2(e,t,r){let{reference:o,floating:s}=e;const c=vr(t),u=lb(t),f=sb(u),h=eo(t),g=c==="y",y=o.x+o.width/2-s.width/2,v=o.y+o.height/2-s.height/2,S=o[f]/2-s[f]/2;let x;switch(h){case"top":x={x:y,y:o.y-s.height};break;case"bottom":x={x:y,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:v};break;case"left":x={x:o.x-s.width,y:v};break;default:x={x:o.x,y:o.y}}const C=As(t);return C&&(x[u]+=S*(C==="end"?1:-1)*(r&&g?-1:1)),x}async function vU(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:u,elements:f,strategy:h}=e,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:S=!1,padding:x=0}=sa(t,e),C=oM(x),w=f[S?v==="floating"?"reference":"floating":v],k=Ld(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(w)))==null||r?w:w.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:g,rootBoundary:y,strategy:h})),M=v==="floating"?{x:o,y:s,width:u.floating.width,height:u.floating.height}:u.reference,T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),N=await(c.isElement==null?void 0:c.isElement(T))&&await(c.getScale==null?void 0:c.getScale(T))||{x:1,y:1},O=Ld(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:M,offsetParent:T,strategy:h}):M);return{top:(k.top-O.top+C.top)/N.y,bottom:(O.bottom-k.bottom+C.bottom)/N.y,left:(k.left-O.left+C.left)/N.x,right:(O.right-k.right+C.right)/N.x}}const bU=50,_U=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:u}=r,f=u.detectOverflow?u:{...u,detectOverflow:vU},h=await(u.isRTL==null?void 0:u.isRTL(t));let g=await u.getElementRects({reference:e,floating:t,strategy:s}),{x:y,y:v}=d2(g,o,h),S=o,x=0;const C={};for(let A=0;A<c.length;A++){const w=c[A];if(!w)continue;const{name:k,fn:M}=w,{x:T,y:N,data:O,reset:P}=await M({x:y,y:v,initialPlacement:o,placement:S,strategy:s,middlewareData:C,rects:g,platform:f,elements:{reference:e,floating:t}});y=T??y,v=N??v,C[k]={...C[k],...O},P&&x<bU&&(x++,typeof P=="object"&&(P.placement&&(S=P.placement),P.rects&&(g=P.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):P.rects),{x:y,y:v}=d2(g,S,h)),A=-1)}return{x:y,y:v,placement:S,strategy:s,middlewareData:C}},SU=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:u,elements:f,middlewareData:h}=t,{element:g,padding:y=0}=sa(e,t)||{};if(g==null)return{};const v=oM(y),S={x:r,y:o},x=lb(s),C=sb(x),A=await u.getDimensions(g),w=x==="y",k=w?"top":"left",M=w?"bottom":"right",T=w?"clientHeight":"clientWidth",N=c.reference[C]+c.reference[x]-S[x]-c.floating[C],O=S[x]-c.reference[x],P=await(u.getOffsetParent==null?void 0:u.getOffsetParent(g));let I=P?P[T]:0;(!I||!await(u.isElement==null?void 0:u.isElement(P)))&&(I=f.floating[T]||c.floating[C]);const z=N/2-O/2,Z=I/2-A[C]/2-1,re=Ja(v[k],Z),ne=Ja(v[M],Z),Y=I-A[C]-ne,le=I/2-A[C]/2+z,ue=aM(re,le,Y),be=!h.arrow&&As(s)!=null&&le!==ue&&c.reference[C]/2-(le<re?re:ne)-A[C]/2<0,L=be?le<re?le-re:le-Y:0;return{[x]:S[x]+L,data:{[x]:ue,centerOffset:le-ue-L,...be&&{alignmentOffset:L}},reset:be}}}),xU=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:u,initialPlacement:f,platform:h,elements:g}=t,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:S,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:A=!0,...w}=sa(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const k=eo(s),M=vr(f),T=eo(f)===f,N=await(h.isRTL==null?void 0:h.isRTL(g.floating)),O=S||(T||!A?[$d(f)]:fU(f)),P=C!=="none";!S&&P&&O.push(...gU(f,A,C,N));const I=[f,...O],z=await h.detectOverflow(t,w),Z=[];let re=((o=c.flip)==null?void 0:o.overflows)||[];if(y&&Z.push(z[k]),v){const ue=dU(s,u,N);Z.push(z[ue[0]],z[ue[1]])}if(re=[...re,{placement:s,overflows:Z}],!Z.every(ue=>ue<=0)){var ne,Y;const ue=(((ne=c.flip)==null?void 0:ne.index)||0)+1,be=I[ue];if(be&&(!(v==="alignment"?M!==vr(be):!1)||re.every(B=>vr(B.placement)===M?B.overflows[0]>0:!0)))return{data:{index:ue,overflows:re},reset:{placement:be}};let L=(Y=re.filter(V=>V.overflows[0]<=0).sort((V,B)=>V.overflows[1]-B.overflows[1])[0])==null?void 0:Y.placement;if(!L)switch(x){case"bestFit":{var le;const V=(le=re.filter(B=>{if(P){const te=vr(B.placement);return te===M||te==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(te=>te>0).reduce((te,ce)=>te+ce,0)]).sort((B,te)=>B[1]-te[1])[0])==null?void 0:le[0];V&&(L=V);break}case"initialPlacement":L=f;break}if(s!==L)return{reset:{placement:L}}}return{}}}};function f2(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function p2(e){return cU.some(t=>e[t]>=0)}const CU=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:o}=t,{strategy:s="referenceHidden",...c}=sa(e,t);switch(s){case"referenceHidden":{const u=await o.detectOverflow(t,{...c,elementContext:"reference"}),f=f2(u,r.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:p2(f)}}}case"escaped":{const u=await o.detectOverflow(t,{...c,altBoundary:!0}),f=f2(u,r.floating);return{data:{escapedOffsets:f,escaped:p2(f)}}}default:return{}}}}},iM=new Set(["left","top"]);async function wU(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),u=eo(r),f=As(r),h=vr(r)==="y",g=iM.has(u)?-1:1,y=c&&h?-1:1,v=sa(t,e);let{mainAxis:S,crossAxis:x,alignmentAxis:C}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return f&&typeof C=="number"&&(x=f==="end"?C*-1:C),h?{x:x*y,y:S*g}:{x:S*g,y:x*y}}const EU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:u,middlewareData:f}=t,h=await wU(t,e);return u===((r=f.offset)==null?void 0:r.placement)&&(o=f.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:u}}}}},AU=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s,platform:c}=t,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:M=>{let{x:T,y:N}=M;return{x:T,y:N}}},...g}=sa(e,t),y={x:r,y:o},v=await c.detectOverflow(t,g),S=vr(s),x=ib(S);let C=y[x],A=y[S];const w=(M,T)=>aM(T+v[M==="y"?"top":"left"],T,T-v[M==="y"?"bottom":"right"]);u&&(C=w(x,C)),f&&(A=w(S,A));const k=h.fn({...t,[x]:C,[S]:A});return{...k,data:{x:k.x-r,y:k.y-o,enabled:{[x]:u,[S]:f}}}}}},kU=function(e){return e===void 0&&(e={}),{options:e,fn(t){var r,o;const{x:s,y:c,placement:u,rects:f,middlewareData:h}=t,{offset:g=0,mainAxis:y=!0,crossAxis:v=!0}=sa(e,t),S={x:s,y:c},x=vr(u),C=ib(x);let A=S[C],w=S[x];const k=sa(g,t),M=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:(r=k.mainAxis)!=null?r:0,crossAxis:(o=k.crossAxis)!=null?o:0};if(y){const O=C==="y"?"height":"width",P=f.reference[C]-f.floating[O]+M.mainAxis,I=f.reference[C]+f.reference[O]-M.mainAxis;A<P?A=P:A>I&&(A=I)}if(v){var T,N;const O=C==="y"?"width":"height",P=iM.has(eo(u)),I=f.reference[x]-f.floating[O]+(P&&((T=h.offset)==null?void 0:T[x])||0)+(P?0:M.crossAxis),z=f.reference[x]+f.reference[O]+(P?0:((N=h.offset)==null?void 0:N[x])||0)-(P?M.crossAxis:0);w<I?w=I:w>z&&(w=z)}return{[C]:A,[x]:w}}}},MU=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:u=()=>{},...f}=sa(e,t),h=await s.detectOverflow(t,f),g=eo(r),y=As(r),v=vr(r)==="y",{width:S,height:x}=o.floating;let C,A;g==="top"||g==="bottom"?(C=g,A=y===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(A=g,C=y==="end"?"top":"bottom");const w=x-h.top-h.bottom,k=S-h.left-h.right,M=Ja(x-h[C],w),T=Ja(S-h[A],k),N=t.middlewareData.shift,O=!N;let P=M,I=T;N!=null&&N.enabled.x&&(I=k),N!=null&&N.enabled.y&&(P=w),O&&!y&&(v?I=S-2*na(h.left,h.right):P=x-2*na(h.top,h.bottom)),await u({...t,availableWidth:I,availableHeight:P});const z=await s.getDimensions(c.floating);return S!==z.width||x!==z.height?{reset:{rects:!0}}:{}}}};function Nf(){return typeof window<"u"}function ks(e){return sM(e)?(e.nodeName||"").toLowerCase():"#document"}function vn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ua(e){var t;return(t=(sM(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function sM(e){return Nf()?e instanceof Node||e instanceof vn(e).Node:!1}function xr(e){return Nf()?e instanceof Element||e instanceof vn(e).Element:!1}function ro(e){return Nf()?e instanceof HTMLElement||e instanceof vn(e).HTMLElement:!1}function h2(e){return!Nf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vn(e).ShadowRoot}function Rf(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Cr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&s!=="inline"&&s!=="contents"}function TU(e){return/^(table|td|th)$/.test(ks(e))}function Of(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const NU=/transform|translate|scale|rotate|perspective|filter/,RU=/paint|layout|strict|content/,No=e=>!!e&&e!=="none";let Um;function cb(e){const t=xr(e)?Cr(e):e;return No(t.transform)||No(t.translate)||No(t.scale)||No(t.rotate)||No(t.perspective)||!ub()&&(No(t.backdropFilter)||No(t.filter))||NU.test(t.willChange||"")||RU.test(t.contain||"")}function OU(e){let t=qo(e);for(;ro(t)&&!Wl(t);){if(cb(t))return t;if(Of(t))return null;t=qo(t)}return null}function ub(){return Um==null&&(Um=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Um}function Wl(e){return/^(html|body|#document)$/.test(ks(e))}function Cr(e){return vn(e).getComputedStyle(e)}function jf(e){return xr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qo(e){if(ks(e)==="html")return e;const t=e.assignedSlot||e.parentNode||h2(e)&&e.host||ua(e);return h2(t)?t.host:t}function lM(e){const t=qo(e);return Wl(t)?(e.ownerDocument||e).body:ro(t)&&Rf(t)?t:lM(t)}function Kl(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const s=lM(e),c=s===((o=e.ownerDocument)==null?void 0:o.body),u=vn(s);if(c){const f=ay(u);return t.concat(u,u.visualViewport||[],Rf(s)?s:[],f&&r?Kl(f):[])}else return t.concat(s,Kl(s,[],r))}function ay(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cM(e){const t=Cr(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const s=ro(e),c=s?e.offsetWidth:r,u=s?e.offsetHeight:o,f=Id(r)!==c||Id(o)!==u;return f&&(r=c,o=u),{width:r,height:o,$:f}}function db(e){return xr(e)?e:e.contextElement}function os(e){const t=db(e);if(!ro(t))return ra(1);const r=t.getBoundingClientRect(),{width:o,height:s,$:c}=cM(t);let u=(c?Id(r.width):r.width)/o,f=(c?Id(r.height):r.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const jU=ra(0);function uM(e){const t=vn(e);return!ub()||!t.visualViewport?jU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DU(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===vn(e)}function Go(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),c=db(e);let u=ra(1);t&&(o?xr(o)&&(u=os(o)):u=os(e));const f=DU(c,r,o)?uM(c):ra(0);let h=(s.left+f.x)/u.x,g=(s.top+f.y)/u.y,y=s.width/u.x,v=s.height/u.y;if(c&&o){const S=vn(c),x=xr(o)?vn(o):o;let C=S,A=ay(C);for(;A&&x!==C;){const w=os(A),k=A.getBoundingClientRect(),M=Cr(A),T=k.left+(A.clientLeft+parseFloat(M.paddingLeft))*w.x,N=k.top+(A.clientTop+parseFloat(M.paddingTop))*w.y;h*=w.x,g*=w.y,y*=w.x,v*=w.y,h+=T,g+=N,C=vn(A),A=ay(C)}}return Ld({width:y,height:v,x:h,y:g})}function Df(e,t){const r=jf(e).scrollLeft;return t?t.left+r:Go(ua(e)).left+r}function dM(e,t){const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-Df(e,r),s=r.top+t.scrollTop;return{x:o,y:s}}function PU(e){let{elements:t,rect:r,offsetParent:o,strategy:s}=e;const c=s==="fixed",u=ua(o),f=t?Of(t.floating):!1;if(o===u||f&&c)return r;let h={scrollLeft:0,scrollTop:0},g=ra(1);const y=ra(0),v=ro(o);if((v||!c)&&((ks(o)!=="body"||Rf(u))&&(h=jf(o)),v)){const x=Go(o);g=os(o),y.x=x.x+o.clientLeft,y.y=x.y+o.clientTop}const S=u&&!v&&!c?dM(u,h):ra(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-h.scrollLeft*g.x+y.x+S.x,y:r.y*g.y-h.scrollTop*g.y+y.y+S.y}}function IU(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function $U(e){const t=jf(e),r=e.ownerDocument.body,o=na(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=na(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let c=-t.scrollLeft+Df(e);const u=-t.scrollTop;return Cr(r).direction==="rtl"&&(c+=na(e.clientWidth,r.clientWidth)-o),{width:o,height:s,x:c,y:u}}const LU=25;function zU(e,t,r){r===void 0&&(r="viewport");const o=r==="layoutViewport",s=vn(e),c=ua(e),u=s.visualViewport;let f=c.clientWidth,h=c.clientHeight,g=0,y=0;if(u){const S=!ub()||t==="fixed";o?S||(g=-u.offsetLeft,y=-u.offsetTop):(f=u.width,h=u.height,S&&(g=u.offsetLeft,y=u.offsetTop))}if(Df(c)<=0){const S=c.ownerDocument,x=S.body,C=getComputedStyle(x),A=S.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,w=Math.abs(c.clientWidth-x.clientWidth-A),k=getComputedStyle(c).scrollbarGutter==="stable both-edges"?w/2:w;k<=LU&&(f-=k)}return{width:f,height:h,x:g,y}}function HU(e,t){const r=Go(e,!0,t==="fixed"),o=r.top+e.clientTop,s=r.left+e.clientLeft,c=os(e),u=e.clientWidth*c.x,f=e.clientHeight*c.y,h=s*c.x,g=o*c.y;return{width:u,height:f,x:h,y:g}}function m2(e,t,r){let o;if(t==="viewport"||t==="layoutViewport")o=zU(e,r,t);else if(t==="document")o=$U(ua(e));else if(xr(t))o=HU(t,r);else{const s=uM(e);o={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Ld(o)}function UU(e,t){const r=t.get(e);if(r)return r;let o=Kl(e,[],!1).filter(f=>xr(f)&&ks(f)!=="body"),s=null;const c=Cr(e).position==="fixed";let u=c?qo(e):e;for(;xr(u)&&!Wl(u);){const f=Cr(u),h=cb(u),g=s?s.position:c?"fixed":"";!h&&(g==="fixed"||g==="absolute"&&f.position==="static")?o=o.filter(v=>v!==u):s=f,u=qo(u)}return t.set(e,o),o}function BU(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const u=[...r==="clippingAncestors"?Of(t)?[]:UU(t,this._c):[].concat(r),o],f=m2(t,u[0],s);let h=f.top,g=f.right,y=f.bottom,v=f.left;for(let S=1;S<u.length;S++){const x=m2(t,u[S],s);h=na(x.top,h),g=Ja(x.right,g),y=Ja(x.bottom,y),v=na(x.left,v)}return{width:g-v,height:y-h,x:v,y:h}}function FU(e){const{width:t,height:r}=cM(e);return{width:t,height:r}}function qU(e,t,r){const o=ro(t),s=ua(t),c=r==="fixed",u=Go(e,!0,c,t);let f={scrollLeft:0,scrollTop:0};const h=ra(0);if((o||!c)&&((ks(t)!=="body"||Rf(s))&&(f=jf(t)),o)){const S=Go(t,!0,c,t);h.x=S.x+t.clientLeft,h.y=S.y+t.clientTop}!o&&s&&(h.x=Df(s));const g=s&&!o&&!c?dM(s,f):ra(0),y=u.left+f.scrollLeft-h.x-g.x,v=u.top+f.scrollTop-h.y-g.y;return{x:y,y:v,width:u.width,height:u.height}}function Bm(e){return Cr(e).position==="static"}function g2(e,t){if(!ro(e)||Cr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ua(e)===r&&(r=r.ownerDocument.body),r}function fM(e,t){const r=vn(e);if(Of(e))return r;if(!ro(e)){let s=qo(e);for(;s&&!Wl(s);){if(xr(s)&&!Bm(s))return s;s=qo(s)}return r}let o=g2(e,t);for(;o&&TU(o)&&Bm(o);)o=g2(o,t);return o&&Wl(o)&&Bm(o)&&!cb(o)?r:o||OU(e)||r}const GU=async function(e){const t=this.getOffsetParent||fM,r=this.getDimensions,o=await r(e.floating);return{reference:qU(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function VU(e){return Cr(e).direction==="rtl"}const ZU={convertOffsetParentRelativeRectToViewportRelativeRect:PU,getDocumentElement:ua,getClippingRect:BU,getOffsetParent:fM,getElementRects:GU,getClientRects:IU,getDimensions:FU,getScale:os,isElement:xr,isRTL:VU};function pM(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YU(e,t,r){let o=null,s;const c=ua(e);function u(){var y;clearTimeout(s),(y=o)==null||y.disconnect(),o=null}function f(y,v){y===void 0&&(y=!1),v===void 0&&(v=1),u();const S=e.getBoundingClientRect(),{left:x,top:C,width:A,height:w}=S;if(y||t(),!A||!w)return;const k=ad(C),M=ad(c.clientWidth-(x+A)),T=ad(c.clientHeight-(C+w)),N=ad(x),P={rootMargin:-k+"px "+-M+"px "+-T+"px "+-N+"px",threshold:na(0,Ja(1,v))||1};let I=!0;function z(Z){const re=Z[0].intersectionRatio;if(!pM(S,e.getBoundingClientRect()))return f();if(re!==v){if(!I)return f();re?f(!1,re):s=setTimeout(()=>{f(!1,1e-7)},1e3)}I=!1}try{o=new IntersectionObserver(z,{...P,root:c.ownerDocument})}catch{o=new IntersectionObserver(z,P)}o.observe(e)}const h=vn(e),g=()=>f(r);return h.addEventListener("resize",g),f(!0),()=>{h.removeEventListener("resize",g),u()}}function WU(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=o,g=db(e),y=s||c?[...g?Kl(g):[],...t?Kl(t):[]]:[];y.forEach(k=>{s&&k.addEventListener("scroll",r),c&&k.addEventListener("resize",r)});const v=g&&f?YU(g,r,c):null;let S=-1,x=null;u&&(x=new ResizeObserver(k=>{let[M]=k;M&&M.target===g&&x&&t&&(x.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var T;(T=x)==null||T.observe(t)})),r()}),g&&!h&&x.observe(g),t&&x.observe(t));let C,A=h?Go(e):null;h&&w();function w(){const k=Go(e);A&&!pM(A,k)&&r(),A=k,C=requestAnimationFrame(w)}return r(),()=>{var k;y.forEach(M=>{s&&M.removeEventListener("scroll",r),c&&M.removeEventListener("resize",r)}),v?.(),(k=x)==null||k.disconnect(),x=null,h&&cancelAnimationFrame(C)}}const KU=EU,XU=AU,QU=xU,JU=MU,eB=CU,y2=SU,tB=kU,nB=(e,t,r)=>{const o=new Map,s=r??{},c={...ZU,...s.platform,_c:o};return _U(e,t,{...s,platform:c})};var rB=typeof document<"u",aB=function(){},_d=rB?b.useLayoutEffect:aB;function zd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,o,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!zd(e[o],t[o]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,s[o]))return!1;for(o=r;o--!==0;){const c=s[o];if(!(c==="_owner"&&e.$$typeof)&&!zd(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function hM(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function v2(e,t){const r=hM(e);return Math.round(t*r)/r}function Fm(e){const t=b.useRef(e);return _d(()=>{t.current=e}),t}function oB(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:s,elements:{reference:c,floating:u}={},transform:f=!0,whileElementsMounted:h,open:g}=e,[y,v]=b.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[S,x]=b.useState(o);zd(S,o)||x(o);const[C,A]=b.useState(null),[w,k]=b.useState(null),M=b.useCallback(B=>{B!==P.current&&(P.current=B,A(B))},[]),T=b.useCallback(B=>{B!==I.current&&(I.current=B,k(B))},[]),N=c||C,O=u||w,P=b.useRef(null),I=b.useRef(null),z=b.useRef(y),Z=h!=null,re=Fm(h),ne=Fm(s),Y=Fm(g),le=b.useCallback(()=>{if(!P.current||!I.current)return;const B={placement:t,strategy:r,middleware:S};ne.current&&(B.platform=ne.current),nB(P.current,I.current,B).then(te=>{const ce={...te,isPositioned:Y.current!==!1};ue.current&&!zd(z.current,ce)&&(z.current=ce,fc.flushSync(()=>{v(ce)}))})},[S,t,r,ne,Y]);_d(()=>{g===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,v(B=>({...B,isPositioned:!1})))},[g]);const ue=b.useRef(!1);_d(()=>(ue.current=!0,()=>{ue.current=!1}),[]),_d(()=>{if(N&&(P.current=N),O&&(I.current=O),N&&O){if(re.current)return re.current(N,O,le);le()}},[N,O,le,re,Z]);const be=b.useMemo(()=>({reference:P,floating:I,setReference:M,setFloating:T}),[M,T]),L=b.useMemo(()=>({reference:N,floating:O}),[N,O]),V=b.useMemo(()=>{const B={position:r,left:0,top:0};if(!L.floating)return B;const te=v2(L.floating,y.x),ce=v2(L.floating,y.y);return f?{...B,transform:"translate("+te+"px, "+ce+"px)",...hM(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:te,top:ce}},[r,f,L.floating,y.x,y.y]);return b.useMemo(()=>({...y,update:le,refs:be,elements:L,floatingStyles:V}),[y,le,be,L,V])}const iB=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:o,padding:s}=typeof e=="function"?e(r):e;return o&&t(o)?o.current!=null?y2({element:o.current,padding:s}).fn(r):{}:o?y2({element:o,padding:s}).fn(r):{}}}},sB=(e,t)=>{const r=KU(e);return{name:r.name,fn:r.fn,options:[e,t]}},lB=(e,t)=>{const r=XU(e);return{name:r.name,fn:r.fn,options:[e,t]}},cB=(e,t)=>({fn:tB(e).fn,options:[e,t]}),uB=(e,t)=>{const r=QU(e);return{name:r.name,fn:r.fn,options:[e,t]}},dB=(e,t)=>{const r=JU(e);return{name:r.name,fn:r.fn,options:[e,t]}},fB=(e,t)=>{const r=eB(e);return{name:r.name,fn:r.fn,options:[e,t]}},pB=(e,t)=>{const r=iB(e);return{name:r.name,fn:r.fn,options:[e,t]}};var hB=Object.defineProperty,Ga=(e,t)=>hB(e,"name",{value:t,configurable:!0}),mM="Popper",[gM,Pf]=jn(mM),[mB,yM]=gM(mM),gB=Ga(e=>{const{__scopePopper:t,children:r}=e,[o,s]=b.useState(null),[c,u]=b.useState(void 0);return d.jsx(mB,{scope:t,anchor:o,onAnchorChange:s,placementState:c,setPlacementState:u,children:r})},"Popper"),yB="PopperAnchor",vB=b.forwardRef(Ga(function(t,r){const{__scopePopper:o,virtualRef:s,...c}=t,u=yM(yB,o),f=b.useRef(null),h=u.onAnchorChange,g=b.useCallback(A=>{f.current=A,A&&h(A)},[h]),y=Qe(r,g),v=b.useRef(null);b.useEffect(()=>{if(!s)return;const A=v.current;v.current=s.current,A!==v.current&&h(v.current)});const S=u.placementState&&If(u.placementState),x=S?.[0],C=S?.[1];return s?null:d.jsx(rt.div,{"data-radix-popper-side":x,"data-radix-popper-align":C,...c,ref:y})},"PopperAnchor")),vM="PopperContent",[bB,zZ]=gM(vM),_B=b.forwardRef(Ga(function(t,r){const{__scopePopper:o,side:s="bottom",sideOffset:c=0,align:u="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:v=0,sticky:S="partial",hideWhenDetached:x=!1,updatePositionStrategy:C="optimized",onPlaced:A,...w}=t,k=yM(vM,o),[M,T]=b.useState(null),N=Qe(r,T),[O,P]=b.useState(null),I=Cf(O),z=I?.width??0,Z=I?.height??0,re=s+(u!=="center"?"-"+u:""),ne=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},Y=Array.isArray(y)?y:[y],le=Y.length>0,ue={padding:ne,boundary:Y.filter(bM),altBoundary:le},{refs:be,floatingStyles:L,placement:V,isPositioned:B,middlewareData:te}=oB({strategy:"fixed",placement:re,whileElementsMounted:Ga((...he)=>WU(...he,{animationFrame:C==="always"}),"whileElementsMounted"),elements:{reference:k.anchor},middleware:[sB({mainAxis:c+Z,alignmentAxis:f}),g&&lB({mainAxis:!0,crossAxis:!1,limiter:S==="partial"?cB():void 0,...ue}),g&&uB({...ue}),dB({...ue,apply:Ga(({elements:he,rects:$e,availableWidth:De,availableHeight:ze})=>{const{width:at,height:ot}=$e.reference,At=he.floating.style;At.setProperty("--radix-popper-available-width",`${De}px`),At.setProperty("--radix-popper-available-height",`${ze}px`),At.setProperty("--radix-popper-anchor-width",`${at}px`),At.setProperty("--radix-popper-anchor-height",`${ot}px`)},"apply")}),O&&pB({element:O,padding:h}),SB({arrowWidth:z,arrowHeight:Z}),x&&fB({strategy:"referenceHidden",...ue,boundary:le?ue.boundary:void 0})]}),ce=k.setPlacementState;Lt(()=>(ce(V),()=>{ce(void 0)}),[V,ce]);const[R,q]=If(V),ee=sr(A);Lt(()=>{B&&ee?.()},[B,ee]);const oe=te.arrow?.x,ge=te.arrow?.y,Ee=te.arrow?.centerOffset!==0,[Se,de]=b.useState();return Lt(()=>{M&&de(window.getComputedStyle(M).zIndex)},[M]),d.jsx("div",{ref:be.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:B?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[te.transformOrigin?.x,te.transformOrigin?.y].join(" "),...te.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:d.jsx(bB,{scope:o,placedSide:R,placedAlign:q,onArrowChange:P,arrowX:oe,arrowY:ge,shouldHideArrow:Ee,children:d.jsx(rt.div,{"data-side":R,"data-align":q,...w,ref:N,style:{...w.style,animation:B?w.style?.animation:"none"}})})})},"PopperContent"));function bM(e){return e!==null}Ga(bM,"isNotNull");var SB=Ga(e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:o,middlewareData:s}=t,u=s.arrow?.centerOffset!==0,f=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[g,y]=If(r),v={start:"0%",center:"50%",end:"100%"}[y],S=(s.arrow?.x??0)+f/2,x=(s.arrow?.y??0)+h/2;let C="",A="";return g==="bottom"?(C=u?v:`${S}px`,A=`${-h}px`):g==="top"?(C=u?v:`${S}px`,A=`${o.floating.height+h}px`):g==="right"?(C=`${-h}px`,A=u?v:`${x}px`):g==="left"&&(C=`${o.floating.width+h}px`,A=u?v:`${x}px`),{data:{x:C,y:A}}}}),"transformOrigin");function If(e){const[t,r="center"]=e.split("-");return[t,r]}Ga(If,"getSideAndAlignFromPlacement");var _M=gB,SM=vB,xM=_B,xB=Object.defineProperty,nt=(e,t)=>xB(e,"name",{value:t,configurable:!0}),CB=[" ","Enter","ArrowUp","ArrowDown"],wB=[" ","Enter"],ys="Select",[$f,Lf,EB]=wf(ys),[ti,HZ]=jn(ys,[EB,Pf]),fb=Pf(),[AB,Ms]=ti(ys),[kB,MB]=ti(ys);function TB(e){const{__scopeSelect:t,children:r,open:o,defaultOpen:s,onOpenChange:c,value:u,defaultValue:f,onValueChange:h,dir:g,name:y,autoComplete:v,disabled:S,required:x,form:C,internal_do_not_use_render:A}=e,w=fb(t),[k,M]=b.useState(null),[T,N]=b.useState(null),[O,P]=b.useState(!1),I=mc(g),[z,Z]=Sr({prop:o,defaultProp:s??!1,onChange:c,caller:ys}),[re,ne]=Sr({prop:u,defaultProp:f,onChange:h,caller:ys}),Y=b.useRef(null),le=b.useRef(re);b.useEffect(()=>{const q=C?k?.ownerDocument.getElementById(C):k?.form;if(q instanceof HTMLFormElement){const ee=nt(()=>ne(le.current),"reset");return q.addEventListener("reset",ee),()=>q.removeEventListener("reset",ee)}},[C,k,ne]);const ue=k?!!C||!!k.closest("form"):!0,[be,L]=b.useState(new Set),V=Jo(),B=Array.from(be).map(q=>q.props.value).join(";"),te=b.useCallback(q=>{L(ee=>new Set(ee).add(q))},[]),ce=b.useCallback(q=>{L(ee=>{const oe=new Set(ee);return oe.delete(q),oe})},[]),R={required:x,trigger:k,onTriggerChange:M,valueNode:T,onValueNodeChange:N,valueNodeHasChildren:O,onValueNodeHasChildrenChange:P,contentId:V,value:re,onValueChange:ne,open:z,onOpenChange:Z,dir:I,triggerPointerDownPosRef:Y,disabled:S,name:y,autoComplete:v,form:C,nativeOptions:be,nativeSelectKey:B,isFormControl:ue};return d.jsx(_M,{...w,children:d.jsx(AB,{scope:t,...R,children:d.jsx($f.Provider,{scope:t,children:d.jsx(kB,{scope:t,onNativeOptionAdd:te,onNativeOptionRemove:ce,children:RM(A)?A(R):r})})})})}nt(TB,"SelectProvider");var NB="SelectTrigger",CM=b.forwardRef(nt(function(t,r){const{__scopeSelect:o,disabled:s=!1,...c}=t,u=fb(o),f=Ms(NB,o),h=f.disabled||s,g=Qe(r,f.onTriggerChange),y=Lf(o),v=b.useRef("touch"),[S,x,C]=mb(w=>{const k=y().filter(N=>!N.disabled),M=k.find(N=>N.value===f.value),T=gb(k,w,M);T!==void 0&&f.onValueChange(T.value)}),A=nt(w=>{h||(f.onOpenChange(!0),C()),w&&(f.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})},"handleOpen");return d.jsx(SM,{asChild:!0,...u,children:d.jsx(rt.button,{type:"button",role:"combobox","aria-controls":f.open?f.contentId:void 0,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":hb(f.value)?"":void 0,...c,ref:g,onClick:Re(c.onClick,w=>{w.currentTarget.focus(),v.current!=="mouse"&&A(w)}),onPointerDown:Re(c.onPointerDown,w=>{v.current=w.pointerType;const k=w.target;k.hasPointerCapture(w.pointerId)&&k.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(A(w),w.preventDefault())}),onKeyDown:Re(c.onKeyDown,w=>{const k=S.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&x(w.key),!(k&&w.key===" ")&&CB.includes(w.key)&&(A(),w.preventDefault())})})})},"SelectTrigger")),RB=b.forwardRef(nt(function(t,r){const{__scopeSelect:o,children:s,...c}=t;return d.jsx(rt.span,{"aria-hidden":!0,...c,ref:r,children:s||"▼"})},"SelectIcon")),OB="SelectPortal",[jB,DB]=ti(OB,{forceMount:void 0}),PB=nt(e=>{const{__scopeSelect:t,forceMount:r,...o}=e;return d.jsx(jB,{scope:e.__scopeSelect,forceMount:r,children:d.jsx(nb,{asChild:!0,...o})})},"SelectPortal"),Vo="SelectContent",wM=b.forwardRef(nt(function(t,r){const o=DB(Vo,t.__scopeSelect),{forceMount:s=o.forceMount,...c}=t,u=Ms(Vo,t.__scopeSelect),[f,h]=b.useState();return Lt(()=>{h(new DocumentFragment)},[]),d.jsx(la,{present:s||u.open,children:({present:g})=>g?d.jsx(LB,{...c,ref:r}):d.jsx(IB,{...c,fragment:f})})},"SelectContent")),IB=b.forwardRef(nt(function(t,r){const{__scopeSelect:o,children:s,fragment:c}=t;return c?fc.createPortal(d.jsx(EM,{scope:o,children:d.jsx($f.Slot,{scope:o,children:d.jsx("div",{ref:r,children:s})})}),c):null},"SelectContentFragment")),ar=10,[EM,ni]=ti(Vo),$B=_r("SelectContent.RemoveScroll"),LB=b.forwardRef(nt(function(t,r){const{__scopeSelect:o}=t,{position:s="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:u,onPointerDownOutside:f,side:h,sideOffset:g,align:y,alignOffset:v,arrowPadding:S,collisionBoundary:x,collisionPadding:C,sticky:A,hideWhenDetached:w,avoidCollisions:k,...M}=t,T=Ms(Vo,o),[N,O]=b.useState(null),[P,I]=b.useState(null),z=Qe(r,O),[Z,re]=b.useState(null),[ne,Y]=b.useState(null),le=Lf(o),[ue,be]=b.useState(!1),L=b.useRef(!1);b.useEffect(()=>{if(N)return ab(N)},[N]),gc();const V=b.useCallback(de=>{const[he,...$e]=le().map(at=>at.ref.current),[De]=$e.slice(-1),ze=document.activeElement;for(const at of de)if(at===ze||(at?.scrollIntoView({block:"nearest"}),at===he&&P&&(P.scrollTop=0),at===De&&P&&(P.scrollTop=P.scrollHeight),at?.focus(),document.activeElement!==ze))return},[le,P]),B=b.useCallback(()=>V([Z,N]),[V,Z,N]);b.useEffect(()=>{ue&&B()},[ue,B]);const{onOpenChange:te,triggerPointerDownPosRef:ce}=T;b.useEffect(()=>{if(N){let de={x:0,y:0};const he=nt(De=>{de={x:Math.abs(Math.round(De.pageX)-(ce.current?.x??0)),y:Math.abs(Math.round(De.pageY)-(ce.current?.y??0))}},"handlePointerMove"),$e=nt(De=>{de.x<=10&&de.y<=10?De.preventDefault():De.composedPath().includes(N)||te(!1),document.removeEventListener("pointermove",he),ce.current=null},"handlePointerUp");return ce.current!==null&&(document.addEventListener("pointermove",he),document.addEventListener("pointerup",$e,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",he),document.removeEventListener("pointerup",$e,{capture:!0})}}},[N,te,ce]),b.useEffect(()=>{const de=nt(()=>te(!1),"close");return window.addEventListener("blur",de),window.addEventListener("resize",de),()=>{window.removeEventListener("blur",de),window.removeEventListener("resize",de)}},[te]);const[R,q]=mb(de=>{const he=le().filter(ze=>!ze.disabled),$e=he.find(ze=>ze.ref.current===document.activeElement),De=gb(he,de,$e);De&&setTimeout(()=>De.ref.current?.focus())}),ee=b.useCallback((de,he,$e)=>{const De=!L.current&&!$e;(T.value!==void 0&&T.value===he||De)&&(re(de),De&&(L.current=!0))},[T.value]),oe=b.useCallback(()=>N?.focus(),[N]),ge=b.useCallback((de,he,$e)=>{const De=!L.current&&!$e;(T.value!==void 0&&T.value===he||De)&&Y(de)},[T.value]),Ee=s==="popper"?b2:zB,Se=Ee===b2?{side:h,sideOffset:g,align:y,alignOffset:v,arrowPadding:S,collisionBoundary:x,collisionPadding:C,sticky:A,hideWhenDetached:w,avoidCollisions:k}:{};return d.jsx(EM,{scope:o,content:N,viewport:P,onViewportChange:I,itemRefCallback:ee,selectedItem:Z,onItemLeave:oe,itemTextRefCallback:ge,focusSelectedItem:B,selectedItemText:ne,position:s,isPositioned:ue,searchRef:R,children:d.jsx(Tf,{as:$B,allowPinchZoom:!0,children:d.jsx(eb,{asChild:!0,trapped:T.open,onMountAutoFocus:de=>{de.preventDefault()},onUnmountAutoFocus:Re(c,de=>{T.trigger?.focus({preventScroll:!0}),de.preventDefault()}),children:d.jsx(Qv,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:de=>de.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:d.jsx(Ee,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:de=>de.preventDefault(),...M,...Se,onPlaced:()=>be(!0),ref:z,style:{display:"flex",flexDirection:"column",outline:"none",...M.style},onKeyDown:Re(M.onKeyDown,de=>{const he=de.ctrlKey||de.altKey||de.metaKey;if(de.key==="Tab"&&de.preventDefault(),!he&&de.key.length===1&&q(de.key),["ArrowUp","ArrowDown","Home","End"].includes(de.key)){let De=le().filter(ze=>!ze.disabled).map(ze=>ze.ref.current);if(["ArrowUp","End"].includes(de.key)&&(De=De.slice().reverse()),["ArrowUp","ArrowDown"].includes(de.key)){const ze=de.target,at=De.indexOf(ze);De=De.slice(at+1)}setTimeout(()=>V(De)),de.preventDefault()}})})})})})})},"SelectContentImpl")),zB=b.forwardRef(nt(function(t,r){const{__scopeSelect:o,onPlaced:s,...c}=t,u=Ms(Vo,o),f=ni(Vo,o),[h,g]=b.useState(null),[y,v]=b.useState(null),S=Qe(r,v),x=Lf(o),C=b.useRef(!1),A=b.useRef(!0),{viewport:w,selectedItem:k,selectedItemText:M,focusSelectedItem:T}=f,N=b.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&y&&w&&k&&M){const z=u.trigger.getBoundingClientRect(),Z=y.getBoundingClientRect(),re=u.valueNode.getBoundingClientRect(),ne=M.getBoundingClientRect();if(u.dir!=="rtl"){const ze=ne.left-Z.left,at=re.left-ze,ot=z.left-at,At=z.width+ot,Dn=Math.max(At,Z.width),Qn=window.innerWidth-ar,Pn=ny(at,[ar,Math.max(ar,Qn-Dn)]);h.style.minWidth=At+"px",h.style.left=Pn+"px"}else{const ze=Z.right-ne.right,at=window.innerWidth-re.right-ze,ot=window.innerWidth-z.right-at,At=z.width+ot,Dn=Math.max(At,Z.width),Qn=window.innerWidth-ar,Pn=ny(at,[ar,Math.max(ar,Qn-Dn)]);h.style.minWidth=At+"px",h.style.right=Pn+"px"}const Y=x(),le=window.innerHeight-ar*2,ue=w.scrollHeight,be=window.getComputedStyle(y),L=parseInt(be.borderTopWidth,10),V=parseInt(be.paddingTop,10),B=parseInt(be.borderBottomWidth,10),te=parseInt(be.paddingBottom,10),ce=L+V+ue+te+B,R=Math.min(k.offsetHeight*5,ce),q=window.getComputedStyle(w),ee=parseInt(q.paddingTop,10),oe=parseInt(q.paddingBottom,10),ge=z.top+z.height/2-ar,Ee=le-ge,Se=k.offsetHeight/2,de=k.offsetTop+Se,he=L+V+de,$e=ce-he;if(he<=ge){const ze=Y.length>0&&k===Y[Y.length-1].ref.current;h.style.bottom="0px";const at=y.clientHeight-w.offsetTop-w.offsetHeight,ot=Math.max(Ee,Se+(ze?oe:0)+at+B),At=he+ot;h.style.height=At+"px"}else{const ze=Y.length>0&&k===Y[0].ref.current;h.style.top="0px";const ot=Math.max(ge,L+w.offsetTop+(ze?ee:0)+Se)+$e;h.style.height=ot+"px",w.scrollTop=he-ge+w.offsetTop}h.style.margin=`${ar}px 0`,h.style.minHeight=R+"px",h.style.maxHeight=le+"px",s?.(),requestAnimationFrame(()=>C.current=!0)}},[x,u.trigger,u.valueNode,h,y,w,k,M,u.dir,s]);Lt(()=>N(),[N]);const[O,P]=b.useState();Lt(()=>{y&&P(window.getComputedStyle(y).zIndex)},[y]);const I=b.useCallback(z=>{z&&A.current===!0&&(N(),T?.(),A.current=!1)},[N,T]);return d.jsx(HB,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:C,onScrollButtonChange:I,children:d.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:d.jsx(rt.div,{...c,ref:S,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})},"SelectItemAlignedPosition")),b2=b.forwardRef(nt(function(t,r){const{__scopeSelect:o,align:s="start",collisionPadding:c=ar,...u}=t,f=fb(o);return d.jsx(xM,{...f,...u,ref:r,align:s,collisionPadding:c,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[HB,pb]=ti(Vo,{}),_2="SelectViewport",UB=b.forwardRef(nt(function(t,r){const{__scopeSelect:o,nonce:s,...c}=t,u=ni(_2,o),f=pb(_2,o),h=Qe(r,u.onViewportChange),g=b.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),d.jsx($f.Slot,{scope:o,children:d.jsx(rt.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:Re(c.onScroll,y=>{const v=y.currentTarget,{contentWrapper:S,shouldExpandOnScrollRef:x}=f;if(x?.current&&S){const C=Math.abs(g.current-v.scrollTop);if(C>0){const A=window.innerHeight-ar*2,w=parseFloat(S.style.minHeight),k=parseFloat(S.style.height),M=Math.max(w,k);if(M<A){const T=M+C,N=Math.min(A,T),O=T-N;S.style.height=N+"px",S.style.bottom==="0px"&&(v.scrollTop=O>0?O:0,S.style.justifyContent="flex-end")}}}g.current=v.scrollTop})})})]})},"SelectViewport")),BB="SelectGroup",[UZ,BZ]=ti(BB),oy="SelectItem",[FB,AM]=ti(oy),kM=b.forwardRef(nt(function(t,r){const{__scopeSelect:o,value:s,disabled:c=!1,textValue:u,...f}=t,h=Ms(oy,o),g=ni(oy,o),y=h.value===s,[v,S]=b.useState(u??""),[x,C]=b.useState(!1),A=sr(N=>g.itemRefCallback?.(N,s,c)),w=Qe(r,A),k=Jo(),M=b.useRef("touch"),T=nt(()=>{c||(h.onValueChange(s),h.onOpenChange(!1))},"handleSelect");return d.jsx(FB,{scope:o,value:s,disabled:c,textId:k,isSelected:y,onItemTextChange:b.useCallback(N=>{S(O=>O||(N?.textContent??"").trim())},[]),children:d.jsx($f.ItemSlot,{scope:o,value:s,disabled:c,textValue:v,children:d.jsx(rt.div,{role:"option","aria-labelledby":k,"data-highlighted":x?"":void 0,"aria-selected":y&&x,"data-state":y?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...f,ref:w,onFocus:Re(f.onFocus,()=>C(!0)),onBlur:Re(f.onBlur,()=>C(!1)),onClick:Re(f.onClick,()=>{M.current!=="mouse"&&T()}),onPointerUp:Re(f.onPointerUp,()=>{M.current==="mouse"&&T()}),onPointerDown:Re(f.onPointerDown,N=>{M.current=N.pointerType}),onPointerMove:Re(f.onPointerMove,N=>{M.current=N.pointerType,c?g.onItemLeave?.():M.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Re(f.onPointerLeave,N=>{N.currentTarget===document.activeElement&&g.onItemLeave?.()}),onKeyDown:Re(f.onKeyDown,N=>{c||N.target!==N.currentTarget||g.searchRef?.current!==""&&N.key===" "||(wB.includes(N.key)&&T(),N.key===" "&&N.preventDefault())})})})})},"SelectItem")),od="SelectItemText",qB=b.forwardRef(nt(function(t,r){const{__scopeSelect:o,className:s,style:c,...u}=t,f=Ms(od,o),h=ni(od,o),g=AM(od,o),y=MB(od,o),[v,S]=b.useState(null),x=sr(T=>h.itemTextRefCallback?.(T,g.value,g.disabled)),C=Qe(r,S,g.onItemTextChange,x),A=v?.textContent,w=b.useMemo(()=>d.jsx("option",{value:g.value,disabled:g.disabled,children:A},g.value),[g.disabled,g.value,A]),{onNativeOptionAdd:k,onNativeOptionRemove:M}=y;return Lt(()=>(k(w),()=>M(w)),[k,M,w]),d.jsxs(d.Fragment,{children:[d.jsx(rt.span,{id:g.textId,...u,ref:C}),g.isSelected&&f.valueNode&&!f.valueNodeHasChildren&&!hb(f.value)?fc.createPortal(u.children,f.valueNode):null]})},"SelectItemText")),GB="SelectItemIndicator",VB=b.forwardRef(nt(function(t,r){const{__scopeSelect:o,...s}=t;return AM(GB,o).isSelected?d.jsx(rt.span,{"aria-hidden":!0,...s,ref:r}):null},"SelectItemIndicator")),S2="SelectScrollUpButton",MM=b.forwardRef(nt(function(t,r){const o=ni(S2,t.__scopeSelect),s=pb(S2,t.__scopeSelect),[c,u]=b.useState(!1),f=Qe(r,s.onScrollButtonChange);return Lt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const y=g.scrollTop>0;u(y)};nt(h,"handleScroll");const g=o.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?d.jsx(NM,{...t,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=o;h&&g&&(h.scrollTop=h.scrollTop-g.offsetHeight)}}):null},"SelectScrollUpButton")),x2="SelectScrollDownButton",TM=b.forwardRef(nt(function(t,r){const o=ni(x2,t.__scopeSelect),s=pb(x2,t.__scopeSelect),[c,u]=b.useState(!1),f=Qe(r,s.onScrollButtonChange);return Lt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const y=g.scrollHeight-g.clientHeight,v=Math.ceil(g.scrollTop)<y;u(v)};nt(h,"handleScroll");const g=o.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?d.jsx(NM,{...t,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=o;h&&g&&(h.scrollTop=h.scrollTop+g.offsetHeight)}}):null},"SelectScrollDownButton")),NM=b.forwardRef(nt(function(t,r){const{__scopeSelect:o,onAutoScroll:s,...c}=t,u=ni("SelectScrollButton",o),f=b.useRef(null),h=Lf(o),g=b.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return b.useEffect(()=>()=>g(),[g]),Lt(()=>{h().find(v=>v.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),d.jsx(rt.div,{"aria-hidden":!0,...c,ref:r,style:{flexShrink:0,...c.style},onPointerDown:Re(c.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(s,50))}),onPointerMove:Re(c.onPointerMove,()=>{u.onItemLeave?.(),f.current===null&&(f.current=window.setInterval(s,50))}),onPointerLeave:Re(c.onPointerLeave,()=>{g()})})},"SelectScrollButtonImpl"));function RM(e){return typeof e=="function"}nt(RM,"isFunction");function hb(e){return e===""||e===void 0}nt(hb,"shouldShowPlaceholder");function mb(e){const t=sr(e),r=b.useRef(""),o=b.useRef(0),s=b.useCallback(u=>{const f=r.current+u;t(f),nt((function h(g){r.current=g,window.clearTimeout(o.current),g!==""&&(o.current=window.setTimeout(()=>h(""),1e3))}),"updateSearch")(f)},[t]),c=b.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,s,c]}nt(mb,"useTypeaheadSearch");function gb(e,t,r){const s=t.length>1&&Array.from(t).every(g=>g===t[0])?t[0]:t,c=r?e.indexOf(r):-1;let u=OM(e,Math.max(c,0));s.length===1&&(u=u.filter(g=>g!==r));const h=u.find(g=>g.textValue.toLowerCase().startsWith(s.toLowerCase()));return h!==r?h:void 0}nt(gb,"findNextItem");function OM(e,t){return e.map((r,o)=>e[(t+o)%e.length])}nt(OM,"wrapArray");var ZB=Object.defineProperty,ao=(e,t)=>ZB(e,"name",{value:t,configurable:!0}),yb="Popover",[jM,FZ]=jn(yb,[Pf]),vb=Pf(),[YB,Ts]=jM(yb),WB=ao(e=>{const{__scopePopover:t,children:r,open:o,defaultOpen:s,onOpenChange:c,modal:u=!1}=e,f=vb(t),h=b.useRef(null),[g,y]=b.useState(!1),[v,S]=Sr({prop:o,defaultProp:s??!1,onChange:c,caller:yb});return d.jsx(_M,{...f,children:d.jsx(YB,{scope:t,contentId:Jo(),triggerRef:h,open:v,onOpenChange:S,onOpenToggle:b.useCallback(()=>S(x=>!x),[S]),hasCustomAnchor:g,onCustomAnchorAdd:b.useCallback(()=>y(!0),[]),onCustomAnchorRemove:b.useCallback(()=>y(!1),[]),modal:u,children:r})})},"Popover"),KB="PopoverTrigger",XB=b.forwardRef(ao(function(t,r){const{__scopePopover:o,...s}=t,c=Ts(KB,o),u=vb(o),f=Qe(r,c.triggerRef),h=d.jsx(rt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":bb(c.open),...s,ref:f,onClick:Re(t.onClick,c.onOpenToggle)});return c.hasCustomAnchor?h:d.jsx(SM,{asChild:!0,...u,children:h})},"PopoverTrigger")),DM="PopoverPortal",[QB,JB]=jM(DM,{forceMount:void 0}),eF=ao(e=>{const{__scopePopover:t,forceMount:r,children:o,container:s}=e,c=Ts(DM,t);return d.jsx(QB,{scope:t,forceMount:r,children:d.jsx(la,{present:r||c.open,children:d.jsx(nb,{asChild:!0,container:s,children:o})})})},"PopoverPortal"),Xl="PopoverContent",tF=b.forwardRef(ao(function(t,r){const o=JB(Xl,t.__scopePopover),{forceMount:s=o.forceMount,...c}=t,u=Ts(Xl,t.__scopePopover);return d.jsx(la,{present:s||u.open,children:u.modal?d.jsx(rF,{...c,ref:r}):d.jsx(aF,{...c,ref:r})})},"PopoverContent")),nF=_r("PopoverContent.RemoveScroll"),rF=b.forwardRef(ao(function(t,r){const o=Ts(Xl,t.__scopePopover),s=b.useRef(null),c=Qe(r,s),u=b.useRef(!1);return b.useEffect(()=>{const f=s.current;if(f)return ab(f)},[]),d.jsx(Tf,{as:nF,allowPinchZoom:!0,children:d.jsx(PM,{...t,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Re(t.onCloseAutoFocus,f=>{f.preventDefault(),u.current||o.triggerRef.current?.focus()}),onPointerDownOutside:Re(t.onPointerDownOutside,f=>{const h=f.detail.originalEvent,g=h.button===0&&h.ctrlKey===!0,y=h.button===2||g;u.current=y},{checkForDefaultPrevented:!1}),onFocusOutside:Re(t.onFocusOutside,f=>f.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),aF=b.forwardRef(ao(function(t,r){const o=Ts(Xl,t.__scopePopover),s=b.useRef(!1),c=b.useRef(!1);return d.jsx(PM,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{t.onCloseAutoFocus?.(u),u.defaultPrevented||(s.current||o.triggerRef.current?.focus(),u.preventDefault()),s.current=!1,c.current=!1},onInteractOutside:u=>{t.onInteractOutside?.(u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const f=u.target;o.triggerRef.current?.contains(f)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.current&&u.preventDefault()}})},"PopoverContentNonModal")),PM=b.forwardRef(ao(function(t,r){const{__scopePopover:o,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:u,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:v,...S}=t,x=Ts(Xl,o),C=vb(o);return gc(),d.jsx(eb,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:c,onUnmountAutoFocus:u,children:d.jsx(Qv,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:v,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:y,onDismiss:()=>x.onOpenChange(!1),deferPointerDownOutside:!0,children:d.jsx(xM,{"data-state":bb(x.open),role:"dialog",id:x.contentId,...C,...S,ref:r,style:{...S.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function bb(e){return e?"open":"closed"}ao(bb,"getState");var oF=WB,iF=XB,sF=eF,IM=tF,lF=Object.defineProperty,yc=(e,t)=>lF(e,"name",{value:t,configurable:!0}),_b="Collapsible",[cF,$M]=jn(_b),[uF,Sb]=cF(_b),dF=b.forwardRef(yc(function(t,r){const{__scopeCollapsible:o,open:s,defaultOpen:c,disabled:u,onOpenChange:f,...h}=t,[g,y]=Sr({prop:s,defaultProp:c??!1,onChange:f,caller:_b});return d.jsx(uF,{scope:o,disabled:u,contentId:Jo(),open:g,onOpenToggle:b.useCallback(()=>y(v=>!v),[y]),children:d.jsx(rt.div,{"data-state":zf(g),"data-disabled":u?"":void 0,...h,ref:r})})},"Collapsible")),fF="CollapsibleTrigger",pF=b.forwardRef(yc(function(t,r){const{__scopeCollapsible:o,...s}=t,c=Sb(fF,o);return d.jsx(rt.button,{type:"button","aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open||!1,"data-state":zf(c.open),"data-disabled":c.disabled?"":void 0,disabled:c.disabled,...s,ref:r,onClick:Re(t.onClick,c.onOpenToggle)})},"CollapsibleTrigger")),LM="CollapsibleContent",hF=b.forwardRef(yc(function(t,r){const{forceMount:o,...s}=t,c=Sb(LM,t.__scopeCollapsible);return d.jsx(la,{present:o||c.open,children:({present:u})=>d.jsx(mF,{...s,ref:r,present:u})})},"CollapsibleContent")),mF=b.forwardRef(yc(function(t,r){const{__scopeCollapsible:o,present:s,children:c,...u}=t,f=Sb(LM,o),[h,g]=b.useState(s),y=b.useRef(null),v=Qe(r,y),S=b.useRef(0),x=S.current,C=b.useRef(0),A=C.current,w=f.open||h,k=b.useRef(w),M=b.useRef(void 0);return b.useEffect(()=>{const T=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(T)},[]),Lt(()=>{const T=y.current;if(T){M.current=M.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const N=T.getBoundingClientRect();S.current=N.height,C.current=N.width,k.current||(T.style.transitionDuration=M.current.transitionDuration,T.style.animationName=M.current.animationName),g(s)}},[f.open,s]),d.jsx(rt.div,{"data-state":zf(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!w,...u,ref:v,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":A?`${A}px`:void 0,...t.style},children:w&&c})},"CollapsibleContentImpl"));function zf(e){return e?"open":"closed"}yc(zf,"getState");var gF=dF,yF=pF,vF=hF,bF=Object.defineProperty,On=(e,t)=>bF(e,"name",{value:t,configurable:!0}),Ar="Accordion",_F=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[xb,SF,xF]=wf(Ar),[Hf,qZ]=jn(Ar,[xF,$M]),Cb=$M(),CF=b.forwardRef(On(function(t,r){const{type:o,...s}=t,c=s,u=s;return d.jsx(xb.Provider,{scope:t.__scopeAccordion,children:o==="multiple"?d.jsx(kF,{...u,ref:r}):d.jsx(AF,{...c,ref:r})})},"Accordion")),[zM,wF]=Hf(Ar),[HM,EF]=Hf(Ar,{collapsible:!1}),AF=b.forwardRef(On(function(t,r){const{value:o,defaultValue:s,onValueChange:c=On(()=>{},"onValueChange"),collapsible:u=!1,...f}=t,[h,g]=Sr({prop:o,defaultProp:s??"",onChange:c,caller:Ar});return d.jsx(zM,{scope:t.__scopeAccordion,value:b.useMemo(()=>h?[h]:[],[h]),onItemOpen:g,onItemClose:b.useCallback(()=>u&&g(""),[u,g]),children:d.jsx(HM,{scope:t.__scopeAccordion,collapsible:u,children:d.jsx(UM,{...f,ref:r})})})},"AccordionImplSingle")),kF=b.forwardRef(On(function(t,r){const{value:o,defaultValue:s,onValueChange:c=On(()=>{},"onValueChange"),...u}=t,[f,h]=Sr({prop:o,defaultProp:s??[],onChange:c,caller:Ar}),g=b.useCallback(v=>h((S=[])=>[...S,v]),[h]),y=b.useCallback(v=>h((S=[])=>S.filter(x=>x!==v)),[h]);return d.jsx(zM,{scope:t.__scopeAccordion,value:f,onItemOpen:g,onItemClose:y,children:d.jsx(HM,{scope:t.__scopeAccordion,collapsible:!0,children:d.jsx(UM,{...u,ref:r})})})},"AccordionImplMultiple")),[MF,Uf]=Hf(Ar),UM=b.forwardRef(On(function(t,r){const{__scopeAccordion:o,disabled:s,dir:c,orientation:u="vertical",...f}=t,h=b.useRef(null),g=Qe(h,r),y=SF(o),S=mc(c)==="ltr",x=Re(t.onKeyDown,C=>{if(!_F.includes(C.key))return;const A=C.target,w=y().filter(Z=>!Z.ref.current?.disabled),k=w.findIndex(Z=>Z.ref.current===A),M=w.length;if(k===-1)return;C.preventDefault();let T=k;const N=0,O=M-1,P=On(()=>{T=k+1,T>O&&(T=N)},"moveNext"),I=On(()=>{T=k-1,T<N&&(T=O)},"movePrev");switch(C.key){case"Home":T=N;break;case"End":T=O;break;case"ArrowRight":u==="horizontal"&&(S?P():I());break;case"ArrowDown":u==="vertical"&&P();break;case"ArrowLeft":u==="horizontal"&&(S?I():P());break;case"ArrowUp":u==="vertical"&&I();break}const z=T%M;w[z].ref.current?.focus()});return d.jsx(MF,{scope:o,disabled:s,direction:c,orientation:u,children:d.jsx(xb.Slot,{scope:o,children:d.jsx(rt.div,{...f,"data-orientation":u,ref:g,onKeyDown:s?void 0:x})})})},"AccordionImpl")),iy="AccordionItem",[TF,wb]=Hf(iy),NF=b.forwardRef(On(function(t,r){const{__scopeAccordion:o,value:s,...c}=t,u=Uf(iy,o),f=wF(iy,o),h=Cb(o),g=Jo(),y=s&&f.value.includes(s)||!1,v=u.disabled||t.disabled;return d.jsx(TF,{scope:o,open:y,disabled:v,triggerId:g,children:d.jsx(gF,{"data-orientation":u.orientation,"data-state":Eb(y),...h,...c,ref:r,disabled:v,open:y,onOpenChange:S=>{S?f.onItemOpen(s):f.onItemClose(s)}})})},"AccordionItem")),RF="AccordionHeader",OF=b.forwardRef(On(function(t,r){const{__scopeAccordion:o,...s}=t,c=Uf(Ar,o),u=wb(RF,o);return d.jsx(rt.h3,{"data-orientation":c.orientation,"data-state":Eb(u.open),"data-disabled":u.disabled?"":void 0,...s,ref:r})},"AccordionHeader")),C2="AccordionTrigger",jF=b.forwardRef(On(function(t,r){const{__scopeAccordion:o,...s}=t,c=Uf(Ar,o),u=wb(C2,o),f=EF(C2,o),h=Cb(o);return d.jsx(xb.ItemSlot,{scope:o,children:d.jsx(yF,{"aria-disabled":u.open&&!f.collapsible||void 0,"data-orientation":c.orientation,id:u.triggerId,...h,...s,ref:r})})},"AccordionTrigger")),DF="AccordionContent",PF=b.forwardRef(On(function(t,r){const{__scopeAccordion:o,...s}=t,c=Uf(Ar,o),u=wb(DF,o),f=Cb(o);return d.jsx(vF,{role:"region","aria-labelledby":u.triggerId,"data-orientation":c.orientation,...f,...s,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})},"AccordionContent"));function Eb(e){return e?"open":"closed"}On(Eb,"getState");var IF=CF,$F=NF,LF=OF,BM=jF,FM=PF,zF=XL("cds-inline-flex cds-items-center cds-justify-center cds-gap-2 cds-whitespace-nowrap cds-rounded-xl cds-text-sm cds-font-medium cds-transition-all cds-duration-300 focus-visible:cds-outline-none focus-visible:cds-ring-2 focus-visible:cds-ring-ring focus-visible:cds-ring-offset-2 focus-visible:cds-ring-offset-background disabled:cds-pointer-events-none disabled:cds-opacity-50 [&_svg]:cds-pointer-events-none [&_svg]:cds-size-4 [&_svg]:cds-shrink-0",{variants:{variant:{default:"cds-bg-primary cds-text-primary-foreground hover:cds-bg-primary/90 cds-shadow-md cds-shadow-primary/20",destructive:"cds-bg-destructive cds-text-destructive-foreground hover:cds-bg-destructive/90",outline:"cds-border cds-border-input cds-bg-background cds-text-fg hover:cds-bg-accent hover:cds-text-accent-foreground",surface:"cds-bg-surface cds-text-fg hover:cds-bg-surface/80",ghost:"cds-text-fg hover:cds-bg-accent hover:cds-text-accent-foreground",link:"cds-text-primary cds-underline-offset-4 hover:cds-underline",hero:"cds-bg-gradient-to-r cds-from-cta-from cds-to-cta-to cds-text-cta-foreground cds-font-semibold cds-shadow-lg cds-shadow-glow/25 hover:cds-shadow-xl hover:cds-shadow-glow/30 hover:cds-scale-[1.02] active:cds-scale-[0.98]",glass:"cds-bg-surface-elevated cds-border cds-border-glass-border cds-text-fg hover:cds-bg-surface-muted cds-shadow-sm"},size:{default:"cds-h-10 cds-px-4 cds-py-2",sm:"cds-h-9 cds-rounded-lg cds-px-3",lg:"cds-h-12 cds-rounded-xl cds-px-8 cds-text-base",xl:"cds-h-14 cds-rounded-2xl cds-px-10 cds-text-base",icon:"cds-h-10 cds-w-10"}},defaultVariants:{variant:"default",size:"default"}}),HF=b.forwardRef(({className:e,variant:t,size:r,asChild:o=!1,...s},c)=>{let u=ft(zF({variant:t,size:r}),e);return d.jsx(o?GL:"button",{className:u,ref:c,...s})});HF.displayName="Button";var qM=b.forwardRef(({className:e,...t},r)=>d.jsx("label",{ref:r,className:ft("cds-mb-1 cds-block cds-text-sm cds-font-semibold cds-text-fg",e),...t}));qM.displayName="Label";var UF=b.forwardRef(({className:e,...t},r)=>d.jsx("div",{ref:r,className:ft("cds-rounded-2xl cds-border cds-border-glass-border cds-bg-surface-elevated cds-text-card-foreground cds-shadow-sm",e),...t}));UF.displayName="Card";var BF=b.forwardRef(({className:e,...t},r)=>d.jsx("div",{ref:r,className:ft("cds-flex cds-flex-col cds-gap-1 cds-p-5",e),...t}));BF.displayName="CardHeader";var FF=b.forwardRef(({className:e,...t},r)=>d.jsx("div",{ref:r,className:ft("cds-p-5 cds-pt-0",e),...t}));FF.displayName="CardContent";var GM=b.forwardRef(({className:e,...t},r)=>d.jsx(ak,{ref:r,className:ft("cds-flex cds-h-6 cds-w-6 cds-shrink-0 cds-cursor-pointer cds-items-center cds-justify-center cds-rounded-md cds-border-2 cds-border-input cds-bg-background cds-transition-colors hover:cds-border-accent focus-visible:cds-outline-none focus-visible:cds-ring-2 focus-visible:cds-ring-ring focus-visible:cds-ring-offset-2 focus-visible:cds-ring-offset-background disabled:cds-cursor-not-allowed disabled:cds-opacity-50 data-[state=checked]:cds-border-accent data-[state=checked]:cds-bg-accent",e),...t,children:d.jsx(bz,{className:"cds-flex cds-items-center cds-justify-center cds-text-accent-foreground",children:d.jsx(pc,{className:"cds-h-4 cds-w-4",strokeWidth:3})})}));GM.displayName=ak.displayName;var qF=b.forwardRef(({className:e,rows:t=4,...r},o)=>d.jsx("textarea",{ref:o,rows:t,className:ft(_t,"cds-min-h-20 cds-resize-y",e),...r}));qF.displayName="Textarea";var GF=b.forwardRef(({className:e,...t},r)=>d.jsx(Rk,{ref:r,className:ft("cds-grid cds-gap-2",e),...t}));GF.displayName=Rk.displayName;var VF=b.forwardRef(({className:e,...t},r)=>d.jsx(jk,{ref:r,className:ft("cds-flex cds-h-6 cds-w-6 cds-shrink-0 cds-cursor-pointer cds-items-center cds-justify-center cds-rounded-full cds-border-2 cds-border-input cds-bg-background cds-transition-colors hover:cds-border-accent focus-visible:cds-outline-none focus-visible:cds-ring-2 focus-visible:cds-ring-ring focus-visible:cds-ring-offset-2 focus-visible:cds-ring-offset-background disabled:cds-cursor-not-allowed disabled:cds-opacity-50 data-[state=checked]:cds-border-accent",e),...t,children:d.jsx(nH,{className:"cds-h-3 cds-w-3 cds-rounded-full cds-bg-accent"})}));VF.displayName=jk.displayName;var ZF=b.forwardRef(({className:e,children:t,hideClose:r=!1,...o},s)=>d.jsxs(JH,{children:[d.jsx(eU,{className:"credify-ui cds-fixed cds-inset-0 cds-z-50 cds-bg-overlay/60"}),d.jsxs(nM,{ref:s,className:ft("credify-ui cds-fixed cds-left-1/2 cds-top-1/2 cds-z-50 cds-w-[calc(100%-2rem)] cds-max-w-lg -cds-translate-x-1/2 -cds-translate-y-1/2 cds-rounded-2xl cds-border cds-border-border cds-bg-surface-elevated cds-p-6 cds-text-fg cds-shadow-lg focus:cds-outline-none",e),...o,children:[t,r?null:d.jsx(iU,{"aria-label":"Close",className:"cds-absolute cds-right-4 cds-top-4 cds-rounded-md cds-p-1 cds-text-fg-muted cds-transition-colors hover:cds-text-fg focus-visible:cds-outline-none focus-visible:cds-ring-2 focus-visible:cds-ring-ring",children:d.jsx(u8,{className:"cds-h-4 cds-w-4"})})]})]}));ZF.displayName=nM.displayName;var $l=({onClick:e,disabled:t,children:r="Continue",className:o})=>d.jsx("button",{type:"button",disabled:t,onClick:e,className:ft("cds-mt-2 cds-w-full cds-rounded-xl cds-bg-accent cds-px-6 cds-py-3.5 cds-text-base cds-font-bold cds-text-accent-foreground cds-transition-colors hover:cds-bg-accent/90 disabled:cds-cursor-not-allowed disabled:cds-opacity-50",Fe,o),children:r}),Ql=({message:e})=>e?d.jsx("p",{role:"alert",className:"cds-mt-2 cds-text-sm cds-font-medium cds-text-destructive",children:e}):null,Xr="(512) 640-2609",is="tel:+15126402609",vc=({label:e,hint:t,error:r,className:o,children:s})=>{let c=b.useId(),u=t?`${c}-hint`:void 0,f=r?`${c}-error`:void 0;return d.jsxs("div",{className:ft("cds-mb-4",o),children:[d.jsx(qM,{htmlFor:c,children:e}),s({id:c,hintId:u,errorId:f}),t?d.jsx("p",{id:u,className:"cds-mt-1 cds-text-xs cds-text-fg-muted",children:t}):null,r?d.jsx("p",{id:f,role:"alert",className:"cds-mt-1 cds-text-xs cds-font-medium cds-text-destructive",children:r}):null]})},YF=b.forwardRef(({className:e,children:t,...r},o)=>d.jsxs(CM,{ref:o,className:ft("cds-flex cds-w-full cds-items-center cds-justify-between cds-rounded-lg cds-border cds-border-input cds-bg-background cds-px-3 cds-py-2.5 cds-text-base cds-text-fg hover:cds-border-primary/60 focus:cds-border-primary focus:cds-outline-none focus:cds-ring-2 focus:cds-ring-ring/40 disabled:cds-cursor-not-allowed disabled:cds-opacity-50 [&>span]:cds-truncate [&>span]:cds-text-left",e),...r,children:[t,d.jsx(RB,{asChild:!0,children:d.jsx(hc,{className:"cds-h-4 cds-w-4 cds-shrink-0 cds-text-fg-muted","aria-hidden":"true"})})]}));YF.displayName=CM.displayName;var VM=b.forwardRef(({className:e,...t},r)=>d.jsx(MM,{ref:r,className:ft("cds-flex cds-cursor-default cds-items-center cds-justify-center cds-py-1",e),...t,children:d.jsx(Bz,{className:"cds-h-4 cds-w-4"})}));VM.displayName=MM.displayName;var ZM=b.forwardRef(({className:e,...t},r)=>d.jsx(TM,{ref:r,className:ft("cds-flex cds-cursor-default cds-items-center cds-justify-center cds-py-1",e),...t,children:d.jsx(hc,{className:"cds-h-4 cds-w-4"})}));ZM.displayName=TM.displayName;var WF=b.forwardRef(({className:e,children:t,position:r="popper",...o},s)=>d.jsx(PB,{children:d.jsxs(wM,{ref:s,className:ft("credify-ui cds-relative cds-z-50 cds-max-h-72 cds-min-w-[8rem] cds-overflow-hidden cds-rounded-lg cds-border cds-border-border cds-bg-popover cds-text-popover-foreground cds-shadow-lg",r==="popper"&&"cds-w-full cds-min-w-[var(--radix-select-trigger-width)]",e),position:r,...o,children:[d.jsx(VM,{}),d.jsx(UB,{className:"cds-p-1",children:t}),d.jsx(ZM,{})]})}));WF.displayName=wM.displayName;var KF=b.forwardRef(({className:e,children:t,...r},o)=>d.jsxs(kM,{ref:o,className:ft("cds-relative cds-flex cds-w-full cds-cursor-pointer cds-select-none cds-items-center cds-rounded-md cds-py-2 cds-pl-8 cds-pr-2 cds-text-sm cds-outline-none data-[highlighted]:cds-bg-highlight data-[highlighted]:cds-text-fg data-[disabled]:cds-pointer-events-none data-[disabled]:cds-opacity-50",e),...r,children:[d.jsx("span",{className:"cds-absolute cds-left-2 cds-flex cds-h-4 cds-w-4 cds-items-center cds-justify-center",children:d.jsx(VB,{children:d.jsx(pc,{className:"cds-h-4 cds-w-4 cds-text-accent"})})}),d.jsx(qB,{children:t})]}));KF.displayName=kM.displayName;var id=e=>/^\d{5}$/.test(String(e??"").replace(/\D/g,"")),w2=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(e??"").trim()),XF=({label:e,value:t,onChange:r,error:o,hint:s,className:c})=>d.jsx(vc,{label:e,error:o,hint:s,className:c,children:({id:u,hintId:f,errorId:h})=>d.jsx(Oy,{id:u,type:"text",inputMode:"numeric",autoComplete:"postal-code",value:t,"aria-invalid":o?!0:void 0,"aria-describedby":[f,h].filter(Boolean).join(" ")||void 0,onChange:g=>r(g.target.value.replace(/\D/g,"").slice(0,5)),className:o?"cds-border-destructive":void 0})}),QF=({label:e,value:t,onChange:r,error:o,hint:s,className:c})=>d.jsx(vc,{label:e,error:o,hint:s,className:c,children:({id:u,hintId:f,errorId:h})=>d.jsx(Oy,{id:u,type:"email",inputMode:"email",autoComplete:"email",placeholder:"you@example.com",value:t,"aria-invalid":o?!0:void 0,"aria-describedby":[f,h].filter(Boolean).join(" ")||void 0,onChange:g=>r(g.target.value),className:o?"cds-border-destructive":void 0})}),YM=b.createContext({Link:"a",portalContainer:null}),JF=()=>b.useContext(YM).portalContainer,e7=({children:e,linkComponent:t="a",theme:r,mode:o,className:s,portalContainer:c=null})=>{let u=b.useRef(null),f=o??r?.mode??"light",h=r?JSON.stringify({...r,mode:f}):"",g=b.useRef(r);g.current=r,b.useEffect(()=>{let v=u.current,S=g.current;v&&S&&IL(v,{...S,mode:f})},[h]);let y=b.useMemo(()=>({Link:t,portalContainer:c}),[t,c]);return d.jsx(YM.Provider,{value:y,children:d.jsx("div",{ref:u,className:["credify-ui",s].filter(Boolean).join(" "),"data-cds-theme":f,children:e})})},Ab=oF,kb=iF,Bf=b.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},s)=>{let c=JF();return d.jsx(sF,{container:c??void 0,children:d.jsx(IM,{ref:s,align:t,sideOffset:r,collisionBoundary:c??void 0,collisionPadding:8,style:{maxHeight:"var(--radix-popover-content-available-height)",overflowY:"auto"},className:ft("credify-ui cds-z-50 cds-rounded-lg cds-border cds-border-border cds-bg-popover cds-p-3 cds-text-popover-foreground cds-shadow-lg cds-outline-none",e),...o})})});Bf.displayName=IM.displayName;var t7=IF,WM=b.forwardRef(({className:e,...t},r)=>d.jsx($F,{ref:r,className:ft("cds-border-b cds-border-border",e),...t}));WM.displayName="AccordionItem";var KM=b.forwardRef(({className:e,children:t,...r},o)=>d.jsx(LF,{className:"cds-flex",children:d.jsxs(BM,{ref:o,className:ft("cds-flex cds-flex-1 cds-items-center cds-justify-between cds-py-4 cds-text-left cds-font-medium cds-text-fg cds-transition-all hover:cds-underline focus-visible:cds-outline-none focus-visible:cds-ring-2 focus-visible:cds-ring-ring [&[data-state=open]>svg]:cds-rotate-180",e),...r,children:[t,d.jsx(hc,{className:"cds-h-4 cds-w-4 cds-shrink-0 cds-text-fg-muted cds-transition-transform cds-duration-200"})]})}));KM.displayName=BM.displayName;var XM=b.forwardRef(({className:e,children:t,...r},o)=>d.jsx(FM,{ref:o,className:"cds-overflow-hidden cds-text-sm cds-text-fg data-[state=closed]:cds-animate-accordion-up data-[state=open]:cds-animate-accordion-down",...r,children:d.jsx("div",{className:ft("cds-pb-4 cds-pt-0",e),children:t})}));XM.displayName=FM.displayName;var n7=b.lazy(()=>Be(()=>import("./dob-calendar-RIJ5S6YU-DkeMmMY0.js"),__vite__mapDeps([0,1]))),Sd=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,r7=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(t)return new Date(Number(t[1]),Number(t[2])-1,Number(t[3]))},qm=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);return t?`${t[2]}/${t[3]}/${t[1]}`:""},a7=e=>{if(e.includes("-"))return e;let t=e.replace(/\D/g,"").slice(0,8);return t.length<=2?t:t.length<=4?`${t.slice(0,2)}/${t.slice(2)}`:`${t.slice(0,2)}/${t.slice(2,4)}/${t.slice(4)}`},E2=e=>{let t=/^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(e.trim()),r=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/.exec(e.trim()),[o,s,c]=t?[Number(t[1]),Number(t[2]),Number(t[3])]:r?[Number(r[3]),Number(r[1]),Number(r[2])]:[0,0,0];if(!o)return"";let u=new Date(o,s-1,c);return u.getFullYear()===o&&u.getMonth()===s-1&&u.getDate()===c&&u<=new Date?Sd(u):""},o7=()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(pointer: coarse)").matches,i7=({id:e,hintId:t,value:r,onChange:o})=>{let[s,c]=b.useState(()=>qm(r)),[u,f]=b.useState(!1),h=new Date,[g,y]=b.useState(r);if(r!==g&&(y(r),E2(s)!==r&&c(qm(r))),o7())return d.jsx("input",{id:e,type:"date",max:Sd(h),"aria-describedby":t,className:_t,autoComplete:"bday",value:r,onChange:C=>o(C.target.value)});let v=r7(r),S=s.length===10&&!r,x=`${e}-error`;return d.jsxs("div",{children:[d.jsxs("div",{className:"cds-flex cds-gap-2",children:[d.jsx("input",{id:e,className:_t,inputMode:"numeric",autoComplete:"bday",placeholder:"MM/DD/YYYY","aria-invalid":S||void 0,"aria-describedby":S?`${x} ${t??""}`.trim():t,value:s,onChange:C=>{let A=a7(C.target.value);c(A),o(E2(A))}}),d.jsxs(Ab,{open:u,onOpenChange:f,children:[d.jsx(kb,{asChild:!0,children:d.jsx("button",{type:"button","aria-label":"Pick date of birth from a calendar",className:ft("cds-flex cds-w-12 cds-shrink-0 cds-items-center cds-justify-center cds-rounded-lg cds-border cds-border-input cds-bg-background cds-text-fg-muted cds-transition-colors hover:cds-border-accent hover:cds-text-accent",Fe),children:d.jsx($z,{className:"cds-h-5 cds-w-5","aria-hidden":"true"})})}),d.jsx(Bf,{align:"end",className:"cds-w-auto",children:d.jsx(b.Suspense,{fallback:d.jsx("div",{className:"cds-h-8 cds-w-64 cds-animate-pulse cds-rounded cds-bg-surface-muted"}),children:d.jsx(n7,{today:h,selected:v,onSelect:C=>{C&&(o(Sd(C)),c(qm(Sd(C)))),f(!1)}})})})]})]}),S?d.jsx("p",{id:x,role:"alert",className:"cds-mt-1 cds-text-xs cds-font-medium cds-text-destructive",children:"Enter a valid date of birth as MM/DD/YYYY — it can't be in the future."}):null]})},sy={},s7=e=>{sy=e},A2=!1,Gm,l7=()=>Gm||(Gm=new Promise(e=>{if(!sy.apiKey||typeof window>"u"){e(!1);return}if(window.google?.maps?.places){e(!0);return}if(A2){let r=Date.now(),o=()=>{window.google?.maps?.places?e(!0):Date.now()-r>8e3?e(!1):setTimeout(o,100)};o();return}A2=!0;let t=document.createElement("script");t.async=!0,t.src=`https://maps.googleapis.com/maps/api/js?key=${encodeURIComponent(sy.apiKey)}&libraries=places&loading=async&callback=credifyPlacesReady`,t.onerror=()=>e(!1),window.credifyPlacesReady=()=>e(!!window.google?.maps?.places),document.head.appendChild(t)}),Gm),c7=async()=>{if(!await l7()||!window.google?.maps?.places)return null;let e=new window.google.maps.places.AutocompleteService;return t=>new Promise(r=>{e.getPlacePredictions({input:t,componentRestrictions:{country:"us"}},o=>r((o??[]).slice(0,5)))})},k2,u7=e=>new Promise(t=>{if(typeof window>"u"||!window.google?.maps?.places){t(null);return}k2||=document.createElement("div"),new window.google.maps.places.PlacesService(k2).getDetails({placeId:e,fields:["address_components"]},(r,o)=>{if(o!=="OK"||!r?.address_components){t(null);return}let s=r.address_components.find(c=>c.types.includes("postal_code"));t(s?.short_name??s?.long_name??null)})}),d7=e=>{let t=e.split(",").map(c=>c.trim()).filter(c=>c&&c.toUpperCase()!=="USA"),r=t[0]??"",o=t[t.length-1]??"",s=/^([A-Z]{2})(?:\s+(\d{5}))?$/.exec(o);return{line_1:r,city:(s?t[t.length-2]:t[1])??"",state:s?.[1]??"",postal_code:s?.[2]??""}},f7="cds-mt-1 cds-text-xs cds-font-medium cds-text-destructive",p7=({label:e,value:t,onChange:r,onPick:o})=>{let s=`${b.useId()}-address-suggestions`,[c,u]=b.useState([]),[f,h]=b.useState(!1),[g,y]=b.useState(-1),v=b.useRef(null),S=b.useRef(void 0);b.useEffect(()=>{let k=!1;return c7().then(M=>{k||(v.current=M)}),()=>{k=!0,clearTimeout(S.current)}},[]);let x=()=>{u([]),h(!1),y(-1)},C=k=>{if(r(k),clearTimeout(S.current),!v.current||k.trim().length<3){x();return}S.current=setTimeout(()=>{v.current?.(k).then(M=>{u(M),h(M.length>0),y(-1)})},250)},A=k=>{o(k),x()},w=k=>{if(!(!f||!c.length)){if(k.key==="ArrowDown"||k.key==="ArrowUp"){k.preventDefault();let M=k.key==="ArrowDown"?1:-1;y(T=>(T+M+c.length)%c.length);return}if(k.key==="Enter"&&g>=0){k.preventDefault();let M=c[g];M&&A(M);return}k.key==="Escape"&&x()}};return d.jsx(vc,{label:e,children:({id:k})=>d.jsxs("div",{className:"cds-relative",children:[d.jsx("input",{id:k,type:"text",role:"combobox","aria-expanded":f,"aria-controls":s,"aria-autocomplete":"list","aria-activedescendant":g>=0?`${s}-${g}`:void 0,autoComplete:"address-line1",value:t,onChange:M=>C(M.target.value),onKeyDown:w,onBlur:()=>setTimeout(x,150),className:_t}),f&&c.length?d.jsx("ul",{id:s,role:"listbox","aria-label":"Address suggestions",className:"cds-absolute cds-z-20 cds-mt-1 cds-w-full cds-overflow-hidden cds-rounded-lg cds-border cds-border-border cds-bg-popover cds-shadow-lg",children:c.map((M,T)=>d.jsx("li",{children:d.jsx("button",{type:"button",id:`${s}-${T}`,role:"option","aria-selected":T===g,onMouseDown:N=>N.preventDefault(),onClick:()=>A(M),className:ft("cds-block cds-w-full cds-px-3 cds-py-2 cds-text-left cds-text-sm",T===g?"cds-bg-highlight cds-text-fg":"cds-text-popover-foreground"),children:M.description})},M.description))}):null]})})},h7=({question:e,values:t,error:r,onPatch:o})=>{let s=`__${e.key}`,c=String(t[e.key]??""),u=`${s}_line_1`in t;b.useEffect(()=>{if(u||!c)return;let x=tf(c);o({[`${s}_line_1`]:x.line_1,[`${s}_line_2`]:"",[`${s}_city`]:x.city||String(t.city??""),[`${s}_state`]:x.state||String(t.state??""),[`${s}_postal_code`]:x.postal_code||String(t.postal_code??"")})},[u,c]);let f=String(t[`${s}_line_1`]??""),h=String(t[`${s}_line_2`]??""),g=String(t[`${s}_city`]??t.city??""),y=String(t[`${s}_state`]??t.state??""),v=String(t[`${s}_postal_code`]??t.postal_code??"");b.useEffect(()=>{let x=nf({line_1:f,line_2:h,city:g,state:y,postal_code:v});!x&&c||x!==c&&o({[e.key]:x})},[f,h,g,y,v]);let S=(x,C,A,w={})=>d.jsx(vc,{label:C,children:({id:k})=>d.jsx("input",{id:k,type:"text",value:A,autoComplete:w.autoComplete,inputMode:w.inputMode,onChange:M=>o({[x]:w.uppercase?M.target.value.toUpperCase():M.target.value}),className:_t})});return d.jsxs("fieldset",{className:"cds-mb-2",children:[d.jsx("legend",{className:"cds-mb-1 cds-block cds-text-sm cds-font-semibold cds-text-fg",children:e.question}),d.jsx(p7,{label:"Street address",value:f,onChange:x=>o({[`${s}_line_1`]:x}),onPick:x=>{let C=d7(x.description);o({[`${s}_line_1`]:C.line_1,[`${s}_city`]:C.city||g,[`${s}_state`]:C.state||y,[`${s}_postal_code`]:C.postal_code||v}),u7(x.place_id).then(A=>{A&&o({[`${s}_postal_code`]:A})})}}),S(`${s}_line_2`,"Apt, unit, suite (optional)",h,{autoComplete:"address-line2"}),d.jsxs("div",{className:"cds-grid cds-gap-3 sm:cds-grid-cols-3",children:[S(`${s}_city`,"City",g,{autoComplete:"address-level2"}),S(`${s}_state`,"State",y,{autoComplete:"address-level1",uppercase:!0}),S(`${s}_postal_code`,"ZIP",v,{autoComplete:"postal-code",inputMode:"numeric"})]}),r?d.jsx("p",{className:f7,role:"alert",children:r}):null]})},m7=({label:e,checked:t,onChange:r,className:o})=>{let s=b.useId();return d.jsxs("label",{htmlFor:s,className:ft("cds-mb-2 cds-flex cds-cursor-pointer cds-items-center cds-justify-between cds-rounded-lg cds-border cds-border-border cds-bg-background cds-px-4 cds-py-3 cds-transition-colors hover:cds-border-accent/60 hover:cds-bg-highlight/40",o),children:[d.jsx("span",{className:"cds-text-sm cds-font-medium cds-text-fg",children:e}),d.jsx(GM,{id:s,checked:t,onCheckedChange:c=>r(c===!0)})]})},ve=e=>({className:t})=>d.jsx("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:t,focusable:"false",children:e}),sd=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 26 24 8l18 18"}),d.jsx("path",{d:"M10 26v14h28V26"})]})),g7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 26 16 10h16l10 16"}),d.jsx("path",{d:"M10 26v14h28V26"}),d.jsx("path",{d:"M16 10 24 26l8-16"})]})),y7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 16h36"}),d.jsx("path",{d:"M10 16v24h28V16"})]})),Vm=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 26 14 17l10-7 10 7 8 9"}),d.jsx("path",{d:"M10 26v14h28V26"})]})),v7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 26 24 8l18 18"}),d.jsx("path",{d:"M10 26v14h28V26"}),d.jsx("path",{d:"M24 8 15 17",strokeWidth:5,strokeOpacity:.35})]})),b7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 26 24 8l18 18",strokeWidth:5,strokeOpacity:.35}),d.jsx("path",{d:"M6 26 24 8l18 18"}),d.jsx("path",{d:"M10 26v14h28V26"})]})),_7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 26 24 8l18 18",strokeDasharray:"5 4"}),d.jsx("path",{d:"M10 26v14h28V26"})]})),za=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 24 24 10l18 14"}),d.jsx("path",{d:"M10 24v14h28V24"}),d.jsx("path",{d:"M20 38v-10h8v10"})]})),S7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M4 22 24 10l20 12"}),d.jsx("path",{d:"M8 22v16h32V22"}),d.jsx("path",{d:"M18 38v-8h6v8"})]})),x7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 20 24 8l18 12"}),d.jsx("path",{d:"M10 20v18h28V20"}),d.jsx("path",{d:"M20 38v-9h8v9"}),d.jsx("path",{d:"M14 24h4M30 24h4M14 30h4M30 30h4"})]})),C7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 24 24 10l16 14"}),d.jsx("path",{d:"M12 24v14h24V24"}),d.jsx("path",{d:"M20 38v-8h8v8"}),d.jsx("circle",{cx:"24",cy:"19",r:"1.6",fill:"currentColor",stroke:"none"})]})),w7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 22 16 12v-4"}),d.jsx("path",{d:"M12 22 24 10l12 12"}),d.jsx("path",{d:"M10 22v16h28V22"}),d.jsx("path",{d:"M20 38v-8h8v8"})]})),M2=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 18h32v20H8z"}),d.jsx("path",{d:"M8 18 24 8l16 10"}),d.jsx("path",{d:"M16 38V26h8v12"})]})),E7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M4 26 24 12l20 14"}),d.jsx("path",{d:"M8 26v12h32V26"}),d.jsx("path",{d:"M18 38v-7h6v7"})]})),A7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 24 24 9l18 15"}),d.jsx("path",{d:"M10 24v14h28V24"}),d.jsx("path",{d:"M20 38v-9h8v9"}),d.jsx("path",{d:"M24 9V4"})]})),k7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 20 24 6l18 14"}),d.jsx("path",{d:"M10 20v18h28V20"}),d.jsx("path",{d:"M14 20v6M20 20v6M28 20v6M34 20v6"}),d.jsx("path",{d:"M20 38v-8h8v8"})]})),M7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 20c0-6 6-12 16-12s16 6 16 12"}),d.jsx("path",{d:"M10 20v18h28V20"}),d.jsx("path",{d:"M20 38v-8h8v8"})]})),Zm=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 22c0-7 7-13 16-13s16 6 16 13"}),d.jsx("path",{d:"M10 22v16h28V22"}),d.jsx("path",{d:"M20 38v-9a4 4 0 0 1 8 0v9"})]})),T7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 18 24 8l16 10"}),d.jsx("path",{d:"M10 18v20h28V18"}),d.jsx("path",{d:"M24 18v20M10 28h28"})]})),Ym=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 22 24 10l18 12"}),d.jsx("path",{d:"M10 22v16h28V22"}),d.jsx("path",{d:"M10 27h28M10 32h28"})]})),T2=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M4 24 16 16l10 6"}),d.jsx("path",{d:"M26 22 36 14l8 6"}),d.jsx("path",{d:"M8 24v14h18V24"}),d.jsx("path",{d:"M26 22v16h14V22"})]})),N2=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M4 30 12 24l8 4"}),d.jsx("path",{d:"M20 28 28 20l8 5"}),d.jsx("path",{d:"M8 30v10h12V30"}),d.jsx("path",{d:"M20 28v12h14V28"}),d.jsx("path",{d:"M34 25 42 20v20h-8"})]})),R2=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 22 24 8l18 14"}),d.jsx("path",{d:"M10 22v16h28V22"}),d.jsx("path",{d:"M24 22v16"}),d.jsx("path",{d:"M14 38v-7h5v7M29 38v-7h5v7"})]})),N7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 20 18 12l10 8"}),d.jsx("path",{d:"M28 20 38 13l6 7"}),d.jsx("path",{d:"M10 20v18h18V20"}),d.jsx("path",{d:"M28 20v18h14V20"})]})),R7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 22 12 16l6 6M18 22l6-6 6 6M30 22l6-6 6 6"}),d.jsx("path",{d:"M8 22v16h10V22M18 22v16h12V22M30 22v16h10V22"})]})),O7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 20 24 10l16 10"}),d.jsx("path",{d:"M8 20v18h32V20"}),d.jsx("path",{d:"M8 26h32M8 32h32"})]})),j7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 14h32v24H8z"}),d.jsx("path",{d:"M24 14v24M8 26h32"})]})),D7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 10h32v28H8z"}),d.jsx("path",{d:"M14 16h5v5h-5zM24 16h5v5h-5zM33 16h3v5h-3z"}),d.jsx("path",{d:"M14 26h5v5h-5zM24 26h5v5h-5zM33 26h3v5h-3z"})]})),ri=(e,t)=>{let r=40-Math.min(e,4)*7-(t?3:0),o=[];for(let s=1;s<e;s+=1){let c=40-s*7;o.push(d.jsx("path",{d:`M10 ${c}h28`},s))}return ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:`M6 ${r} 24 ${Math.max(r-12,4)}l18 ${r-Math.max(r-12,4)}`}),d.jsx("path",{d:`M10 ${r}v${40-r}h28V${r}`}),o,t?d.jsx("path",{d:`M19 ${r}v-5h5`}):null]}))},P7=ri(1,!1),I7=ri(1,!0),O2=ri(2,!1),$7=ri(2,!0),L7=ri(3,!1),z7=ri(3,!0),H7=ri(4,!1),da=e=>ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 20 24 10l16 10"}),d.jsx("path",{d:"M11 20v10h26V20"}),d.jsx("path",{d:"M4 30h40"}),e]})),j2=da(d.jsx("path",{d:"M11 30v4h26v-4",strokeWidth:4})),U7=da(d.jsx("path",{d:"M11 30v11h26V30"})),B7=da(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M11 30v11h13V30"}),d.jsx("path",{d:"M24 30v4h13v-4",strokeWidth:4})]})),F7=da(d.jsx("path",{d:"M11 30v6h26v-6"})),q7=da(d.jsx(d.Fragment,{children:d.jsx("path",{d:"M13 30v10M24 30v10M35 30v10"})})),G7=da(d.jsx("path",{d:"M11 30v10M37 30v10",strokeDasharray:"4 3"})),D2=da(d.jsx("path",{d:"M11 30v11h26V30"})),V7=da(d.jsx(d.Fragment,{children:d.jsx("path",{d:"M11 30v11h13V36h13v-6"})})),Z7=da(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M11 30v11h26V30"}),d.jsx("path",{d:"M37 41h6"}),d.jsx("path",{d:"M30 41v-7h7"})]})),bc=e=>ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 24 18 14l12 10"}),d.jsx("path",{d:"M9 24v16h18V24"}),e]})),P2=bc(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M29 28h13v12H29z"}),d.jsx("path",{d:"M32 40v-7h7v7"})]})),Y7=bc(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M33 28h11v12H33z"}),d.jsx("path",{d:"M36 40v-7h5v7"})]})),W7=bc(d.jsx("path",{d:"M13 40v-8h10v8"})),K7=bc(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M9 34h18"}),d.jsx("path",{d:"M13 40v-4h10v4"})]})),X7=bc(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M29 30h14"}),d.jsx("path",{d:"M30 30v10M42 30v10"})]})),I2=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M22 40V22a4 4 0 0 1 8 0v18"}),d.jsx("path",{d:"M18 26h16M20 40h12M26 22v-4"}),d.jsx("path",{d:"M6 34h10"})]})),Q7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M26 40V24a4 4 0 0 1 8 0v16"}),d.jsx("path",{d:"M22 28h16M24 40h12M30 24v-4"}),d.jsx("path",{d:"M4 34h14",strokeDasharray:"4 3"})]})),J7=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M32 40V26a3 3 0 0 1 6 0v14"}),d.jsx("path",{d:"M29 29h12M30 40h10M35 26v-3"}),d.jsx("path",{d:"M4 34h20",strokeDasharray:"3 4"})]})),$2=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 22 24 10l16 12"}),d.jsx("path",{d:"M12 22v14h24V22"}),d.jsx("path",{d:"M4 40h40"})]})),eq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 20 24 8l16 12"}),d.jsx("path",{d:"M12 20v14h24V20"}),d.jsx("path",{d:"M4 40h16"}),d.jsx("path",{d:"M20 38c3-2 5 2 8 0s5 2 8 0 5 2 8 0"})]})),tq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M10 18 24 8l14 10"}),d.jsx("path",{d:"M14 18v12h20V18"}),d.jsx("path",{d:"M17 30v8M31 30v8"}),d.jsx("path",{d:"M4 40c3-2 5 2 8 0s5 2 8 0 5 2 8 0 5 2 8 0 5 2 8 0"})]})),_c=e=>ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 16h12a6 6 0 0 1 6 6v10a6 6 0 0 0 6 6h8"}),d.jsx("path",{d:"M6 12v8M42 34v8"}),d.jsx("text",{x:"24",y:"14",fill:"currentColor",stroke:"none",fontSize:"11",fontWeight:"700",textAnchor:"middle",children:e})]})),nq=_c("Cu"),rq=_c("Gal"),aq=_c("PEX"),oq=_c("PVC"),iq=_c("PB"),Wm=ve(d.jsxs(d.Fragment,{children:[d.jsx("circle",{cx:"24",cy:"24",r:"15"}),d.jsx("path",{d:"M24 9a15 15 0 0 1 0 30z",fill:"currentColor",stroke:"none",fillOpacity:.3})]})),Km=ve(d.jsxs(d.Fragment,{children:[d.jsx("circle",{cx:"24",cy:"24",r:"15",fill:"currentColor",stroke:"none",fillOpacity:.3}),d.jsx("circle",{cx:"24",cy:"24",r:"15"}),d.jsx("path",{d:"M17 24l5 5 9-10"})]})),sq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M4 34h40"}),d.jsx("rect",{x:"14",y:"16",width:"20",height:"14",rx:"4"}),d.jsx("path",{d:"M18 30v4M30 30v4"})]})),lq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M4 20h40"}),d.jsx("rect",{x:"14",y:"26",width:"20",height:"14",rx:"4"}),d.jsx("path",{d:"M24 26v-6"})]})),L2=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 26 20 16l12 10"}),d.jsx("path",{d:"M11 26v14h18V26"}),d.jsx("path",{d:"M36 20a10 10 0 0 1 0 16"}),d.jsx("path",{d:"M40 15a16 16 0 0 1 0 26"})]})),z2=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 26 20 16l12 10"}),d.jsx("path",{d:"M11 26v14h18V26"}),d.jsx("path",{d:"M31 30h11"}),d.jsx("path",{d:"M38 26l4 4-4 4"})]})),H2=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M10 26 24 14l14 12"}),d.jsx("path",{d:"M14 26v14h20V26"}),d.jsx("path",{d:"M24 34v-6"}),d.jsx("circle",{cx:"24",cy:"22",r:"2.5"})]})),cq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 14h32"}),d.jsx("path",{d:"M16 14v4M24 14v4M32 14v4"}),d.jsx("path",{d:"M12 26c2-4 4-4 4-8M20 26c2-4 4-4 4-8M28 26c2-4 4-4 4-8",strokeDasharray:"3 3"}),d.jsx("path",{d:"M8 38h32"})]})),uq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 14h32"}),d.jsx("path",{d:"M16 14v4M24 14v4"}),d.jsx("path",{d:"M12 26c2-4 4-4 4-8M20 26c2-4 4-4 4-8",strokeDasharray:"3 3"}),d.jsx("path",{d:"M8 38h18"})]})),U2=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M6 24 24 10l18 14"}),d.jsx("path",{d:"M10 24v14h28V24"}),d.jsx("circle",{cx:"24",cy:"28",r:"3"}),d.jsx("path",{d:"M18 38c0-4 3-6 6-6s6 2 6 6"})]})),dq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M4 22 16 12l12 10"}),d.jsx("path",{d:"M8 22v16h16V22"}),d.jsx("path",{d:"M26 28 35 21l9 7"}),d.jsx("path",{d:"M29 28v10h12V28"})]})),fq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 28 24 16l16 12"}),d.jsx("path",{d:"M12 28v12h24V28"}),d.jsx("circle",{cx:"38",cy:"11",r:"4"}),d.jsx("path",{d:"M38 4v2M38 16v2M45 11h-2M33 11h-2"})]})),pq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 30h32"}),d.jsx("path",{d:"M12 30l4-9h16l4 9"}),d.jsx("circle",{cx:"16",cy:"34",r:"3"}),d.jsx("circle",{cx:"32",cy:"34",r:"3"}),d.jsx("path",{d:"M20 15l3 3 6-6"})]})),hq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 30h32"}),d.jsx("path",{d:"M12 30l4-9h16l4 9"}),d.jsx("circle",{cx:"16",cy:"34",r:"3"}),d.jsx("circle",{cx:"32",cy:"34",r:"3"}),d.jsx("path",{d:"M18 10h12v8H18z"}),d.jsx("path",{d:"M21 14h6"})]})),mq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 30h32"}),d.jsx("path",{d:"M12 30l4-9h16l4 9"}),d.jsx("circle",{cx:"16",cy:"34",r:"3"}),d.jsx("circle",{cx:"32",cy:"34",r:"3"}),d.jsx("rect",{x:"19",y:"11",width:"10",height:"7",rx:"2"}),d.jsx("path",{d:"M21 11V9a3 3 0 0 1 6 0v2"})]})),gq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M10 32h28"}),d.jsx("path",{d:"M14 32l3-8h6l3 8"}),d.jsx("circle",{cx:"17",cy:"35",r:"2.5"}),d.jsx("path",{d:"M31 28a5 5 0 1 1 10 0v6H31z"}),d.jsx("path",{d:"M36 14v6M31 17l3 3M41 17l-3 3"})]})),yq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M10 32h28"}),d.jsx("path",{d:"M14 32l3-8h6l3 8"}),d.jsx("circle",{cx:"17",cy:"35",r:"2.5"}),d.jsx("path",{d:"M28 24h12v8H28z"}),d.jsx("path",{d:"M31 20l3 3 3-3"})]})),vq=ve(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M8 32h32"}),d.jsx("path",{d:"M12 32l4-9h16l4 9"}),d.jsx("circle",{cx:"16",cy:"35",r:"2.5"}),d.jsx("circle",{cx:"32",cy:"35",r:"2.5"}),d.jsx("path",{d:"M18 16l4 4 8-8"})]})),bq={co_applicant_gender:"gender"},_q={roof_shape:{byToken:{B_Gable:sd,C_Hip:g7,A_Flat:y7,D_Other:Vm},fallback:Vm},architectural_style:{byToken:{TwoFamilyHome:R2,American4square:T7,Basic:za,BiLevel:T2,Bungalow:E7,CapeCod:C7,Colonial:x7,ColonialSpanish:Zm,CompletelyCustom:M2,Contemporary:M2,ContractorModern:za,Farmhouse:A7,Folk:za,Log:Ym,Mediterranean:M7,Ranch:S7,TriLevel:N2,Tudor:k7,Vernacular:za,Victorian:w7},fallback:za},dwelling_type:{byToken:{SingleFamilyHouse:za,Townhouse:N7,Rowhouse:R7,Duplex:R2,Triplex:O7,Fourplex:j7,MultFamily:D7},fallback:za},number_of_stories:{byToken:{One:P7,OneHalf:I7,Two:O2,TwoHalf:$7,Three:L7,ThreeHalf:z7,Four:H7,BiLevel:T2,TriLevel:N2},fallback:O2},foundation_type:{byToken:{Slab:j2,Basement:U7,CrawlSpace:F7,PartialBasement:B7,PiersPostsPiles:q7,Open:G7},fallback:j2},basement_type:{byToken:{Basement:D2,SplitLevelBasement:V7,WalkoutBasement:Z7},fallback:D2},occupancy_type:{byToken:{OwnerPrimary:U2,OwnerSecondary:dq,OwnerSeasonal:fq},fallback:U2},roof_updated_type:{byToken:{NotUpdated:_7,PartialUpdate:v7,CompleteUpdate:b7},fallback:sd},located_over_water:{byToken:{NotOverWater:$2,PartiallyOverWater:eq,FullyOrEntirelyOverWater:tq},fallback:$2},construction_type:{byToken:{Frame:za,Masonry:Eo,MasonryVeneer:Eo,Log:Ym,Asbestos:Am,EFIS:rn,HardiPlank:Mo,SuperiorFireResistive:Ol,SuperiorMasonryNonCombustible:Eo,SuperiorNonCombustible:km},fallback:Eo},exterior_wall_type:{byToken:{VinylSiding:Mo,WoodFraming:To,BrickVeneer:Eo,Stucco:rn,AdobeBlock:ko,AluminumSiding:Mo,CementFiberShingles:rn,Clapboard:Mo,ConcreteBlock:ko,HardboardSiding:Mo,InsulatedConcreteForms:ko,LightGaugeSteelFraming:rn,LogsSolid:Ym,MasoniteSiding:Mo,PreEngineeredMetal:rn,SolidBrickConstruction:Eo,SolidConcrete:ko,StandardPoleFramed:To,Stone:mr,StructuralInsulatedPanels:rn,TimberFraming:To},fallback:Eo},roof_material_type:{byToken:{ASPHALT_SHINGLES:sd,ARCHITECTURAL_SHINGLES:rn,METAL:rn,TILE_CONCRETE:ko,ASBESTOS:Am,BUILT_UP:rn,COMPOSITION:rn,CONCRETE:ko,COPPER:F9,CORRUGATED_STEEL:Mo,FIBERGLASS:rn,FOAM:Rl,GRAVEL:mr,MEMBRANE:rn,MINERAL_FIBER_SHAKE:mr,PLASTIC:rn,ROCK:mr,ROLLED_PAPER:wm,RUBBER:rn,SLATE:mr,TAR:ZC,TAR_GRAVEL:mr,TILE_CLAY:ko,TILE_MISSION:Zm,TILE_SPANISH:Zm,TIN:rn,WOOD_FIBERGLASS_SHINGLES:To,WOOD_SHAKE:To,WOOD_SHINGLES:To,OTHER:Vm},fallback:sd},heating_type:{byToken:{Electric:f8,Gas:Ol,GasForcedAir:zC,GasHotWater:Rl,Oil:YC,OilForcedAir:zC,OilHotWater:Rl,SolidFuel:To,HeatPump:Mm,Other:Mm},fallback:Mm},plumbing_type:{byToken:{EntirelyCopper:nq,EntirelyGalvanized:rq,EntirelyPEX:aq,EntirelyPVC:oq,Polybutylene:iq},fallback:ZC},oil_tank_location:{byToken:{AboveGround:sq,BelowGround:lq},fallback:YC},heating_update_type:{byToken:{PartialUpdate:Wm,CompleteUpdate:Km},fallback:Rm},plumbing_update_type:{byToken:{PartialUpdate:Wm,CompleteUpdate:Km},fallback:Rm},electrical_update_type:{byToken:{PartialUpdate:Wm,CompleteUpdate:Km},fallback:Rm},garage_type:{byToken:{Attached:P2,Basement:K7,BuiltIn:W7,Carport:X7,Detached:Y7},fallback:P2},distance_from_fire_hydrant_ft:{byToken:{_0_500ft:I2,_501_1000ft:Q7,_1001ftAndGreater:J7},fallback:I2},distance_from_fire_station_miles:{byToken:{Lessthan5miles:XC,Over5miles:QC,NotAvailable:h9},fallback:XC},fire_detection_system_type:{byToken:{Central:L2,Direct:z2,Local:H2},fallback:HC},burglar_alarm_system_type:{byToken:{Central:L2,Direct:z2,Local:H2},fallback:HC},sprinkler_system_type:{byToken:{Full:cq,Partial:uq},fallback:Rl},ownership_type:{byToken:{Owned:pq,Leased:hq,Lien:mq},fallback:jd},usage:{byToken:{Business:UC,Pleasure:X9,Farming:Z9,To_FromWork:FC,To_FromSchool:j9},fallback:jd},gender:{byToken:{Female:o8,Male:S9},fallback:Qu},relationship_to_insured:{byToken:{Spouse:u9,Parent:Nm,Child:Nz,"Domestic Partner":fk,Relative:Nm,Employee:UC,Other:Qu},fallback:Qu},license_status:{byToken:{Valid:Dd,Suspended:Am,Permit:wm,Unlicensed:sk},fallback:wm},residence_type:{byToken:{OwnHome:gd,OwnCondo:FC,RentHome:g9,RentCondo:KC,RentApartment:KC,LiveWithParents:Nm},fallback:gd},description:{byToken:{"At Fault With Injuries":gq,"At Fault With No Injury":yq,"Not At Fault":vq,"All Others":Ao,Contamination:BC,"Credit Card":VC,Earthquake:mr,"Extended Coverage Perils":km,Fire:Ol,Flood:Pd,Hail:qC,Lightning:GC,"Medical Payments":WC,"Theft/Burglary":Cm,"Vandalism/Malicious Mischief":Em,"Water Damage":Rl,Wind:JC,Towing:QC,Glass:Ao,"Tornado/Hurricane":Tm,CONTAMINATION:BC,CREDITCARD:VC,DAMAGETOPROPERTYOFOTHERS:gd,DOGBITELIABILITY:Jz,EARTHMOVEMENT:mr,EARTHQUAKE:mr,EXTENDEDCOVERAGEPERILS:km,FIRE:Ol,FLOOD:Pd,FREEZINGWATERINCLUDINGBURSTPIPES:U9,HAIL:qC,HURRICANE:Tm,LIABILITYALLOTHER:Ao,LIGHTNING:GC,MEDICALPAYMENTS:WC,MYSTERIOUSDISAPPEARANCE:Ao,MYSTERIOUSDISAPPEARANCESCHEDULEDPROPERTY:Ao,PHYSICALDAMAGEALLOTHER:Em,SINKHOLE:mr,SLIPFALLLIABILITY:Qu,SMOKE:Ol,THEFTSCHEDULEDPROPERTY:Cm,THEFTBURGLARY:Cm,TORNADO:Tm,VANDALISMMALICIOUSMISCHIEF:Em,WATERDAMAGE:Zz,WIND:JC,WORKERSCOMPENSATION:s9,ALLOTHER:Ao},fallback:Ao}},Sq={Yes:pc,No:sk},QM=e=>_q[bq[e]??e],ly=(e,t)=>{let r=QM(e);if(r)return r.byToken[t]??r.fallback},Ns="cds-relative cds-flex cds-items-center cds-justify-center cds-rounded-xl cds-border-2 cds-transition-colors disabled:cds-cursor-not-allowed",Rs="cds-border-accent cds-bg-accent/10 cds-text-fg",Os="cds-border-border-strong cds-bg-surface-elevated cds-text-fg-muted hover:cds-border-accent/60",Sc="cds-border-destructive",xc=()=>d.jsx("span",{"aria-hidden":"true",className:"cds-absolute cds-right-1.5 cds-top-1.5 cds-flex cds-h-5 cds-w-5 cds-items-center cds-justify-center cds-rounded-full cds-bg-accent cds-text-xs cds-font-bold cds-text-accent-foreground",children:"✓"}),Cc=(e,t,r)=>{let o=b.useRef([]),s=b.useRef(null);b.useEffect(()=>{s.current!==null&&(o.current[s.current]?.focus(),s.current=null)},[t]);let c=e.findIndex(u=>u.value===t);return{tabStop:c>=0?c:0,onKeyDown:b.useCallback(u=>{let f=u.key==="ArrowRight"||u.key==="ArrowDown"?1:u.key==="ArrowLeft"||u.key==="ArrowUp"?-1:0;if(!f||e.length===0)return;u.preventDefault();let h=e.findIndex(v=>v.value===t),g=(h<0?0:h+f+e.length)%e.length,y=e[g];y&&(s.current=g,r(y.value))},[e,t,r]),register:b.useCallback(u=>f=>{o.current[u]=f},[])}},cy=({glyph:e,className:t})=>d.jsx("span",{"aria-hidden":"true",className:t??"cds-h-10 cds-w-10 cds-text-fg",children:d.jsx(e,{className:"cds-h-full cds-w-full"})}),xq=({fieldKey:e,label:t,options:r,value:o,invalid:s,describedBy:c,onChange:u})=>{let{tabStop:f,onKeyDown:h,register:g}=Cc(r,o,u),y=r.length<=4?"cds-grid-cols-2 sm:cds-grid-cols-4":"cds-grid-cols-2 sm:cds-grid-cols-3 md:cds-grid-cols-4";return d.jsx("div",{role:"radiogroup","aria-label":t,"aria-invalid":s||void 0,"aria-describedby":c,className:`cds-grid cds-gap-2 ${y}`,onKeyDown:h,children:r.map((v,S)=>{let x=v.value===o,C=ly(e,v.value);return d.jsxs("button",{ref:g(S),type:"button",role:"radio","aria-checked":x,tabIndex:S===f?0:-1,onClick:()=>u(v.value),className:`${Ns} cds-flex-col cds-gap-1 cds-p-3 cds-text-center cds-text-xs cds-font-medium ${Fe} ${x?Rs:`${Os} ${s?Sc:""}`}`,children:[x?d.jsx(xc,{}):null,C?d.jsx(cy,{glyph:C}):null,d.jsx("span",{children:v.label})]},v.value)})})},Cq=({label:e,options:t,value:r,invalid:o,describedBy:s,onChange:c})=>{let{tabStop:u,onKeyDown:f,register:h}=Cc(t,r,c);return d.jsx("div",{role:"radiogroup","aria-label":e,"aria-invalid":o||void 0,"aria-describedby":s,className:"cds-grid cds-grid-cols-2 cds-gap-2",onKeyDown:f,children:t.map((g,y)=>{let v=g.value===r,S=Sq[g.value];return d.jsxs("button",{ref:h(y),type:"button",role:"radio","aria-checked":v,tabIndex:y===u?0:-1,onClick:()=>c(g.value),className:`${Ns} cds-gap-2 cds-px-4 cds-py-3 cds-text-sm cds-font-semibold ${Fe} ${v?Rs:`${Os} ${o?Sc:""}`}`,children:[S?d.jsx(S,{"aria-hidden":"true",className:`cds-h-5 cds-w-5 ${v?"cds-text-accent":"cds-text-fg-muted"}`}):null,d.jsx("span",{children:g.label})]},g.value)})})},wq={tort_threshold:{Verbal_Threshold:"Lower premium. You can sue for pain and suffering only if your injury is serious, as NJ law defines it.",Zero_Threshold:"Higher premium. You keep the full right to sue for pain and suffering."},pip_coverage_type:{Primary:"Your auto policy pays your medical bills first.",Secondary:"Your health plan pays first and auto covers what it does not. Needs eligible health coverage."}},Eq=({fieldKey:e,label:t,options:r,value:o,invalid:s,describedBy:c,onChange:u})=>{let{tabStop:f,onKeyDown:h,register:g}=Cc(r,o,u),y=wq[e];return d.jsx("div",{role:"radiogroup","aria-label":t,"aria-invalid":s||void 0,"aria-describedby":c,className:`cds-grid cds-gap-2 ${r.length===2?"sm:cds-grid-cols-2":"sm:cds-grid-cols-3"}`,onKeyDown:h,children:r.map((v,S)=>{let x=v.value===o,C=y?.[v.value];return d.jsxs("button",{ref:g(S),type:"button",role:"radio","aria-checked":x,tabIndex:S===f?0:-1,onClick:()=>u(v.value),className:`${Ns} cds-flex-col cds-gap-1 cds-px-4 cds-py-3 ${Fe} ${x?Rs:`${Os} ${s?Sc:""}`}`,children:[x?d.jsx(xc,{}):null,d.jsx("span",{className:"cds-w-full cds-pr-6 cds-text-left cds-text-sm cds-font-bold cds-text-fg",children:v.label}),C?d.jsx("span",{className:"cds-w-full cds-text-left cds-text-[11px] cds-font-normal cds-leading-snug cds-text-fg-muted",children:C}):null]},v.value)})})},Aq=({id:e,fieldKey:t,label:r,options:o,value:s,invalid:c,describedBy:u,onChange:f})=>{let[h,g]=b.useState(!1),[y,v]=b.useState(""),S=b.useMemo(()=>{let A=y.trim().toLowerCase();return A?o.filter(w=>w.label.toLowerCase().includes(A)):o},[o,y]),x=o.find(A=>A.value===s),C=x?ly(t,x.value):void 0;return d.jsxs(Ab,{open:h,onOpenChange:A=>{g(A),A||v("")},children:[d.jsx(kb,{asChild:!0,children:d.jsxs("button",{type:"button",id:e,"aria-label":r,"aria-invalid":c||void 0,"aria-describedby":u,className:`${_t} cds-flex cds-items-center cds-justify-between cds-gap-2 cds-text-left ${c?"cds-border-destructive":""} ${Fe}`,children:[d.jsxs("span",{className:"cds-flex cds-min-w-0 cds-items-center cds-gap-2",children:[C?d.jsx(cy,{glyph:C,className:"cds-h-6 cds-w-6 cds-shrink-0 cds-text-fg"}):null,d.jsx("span",{className:`cds-truncate ${x?"cds-text-fg":"cds-text-fg-muted"}`,children:x?x.label:"Select…"})]}),d.jsx(hc,{"aria-hidden":"true",className:"cds-h-4 cds-w-4 cds-shrink-0 cds-text-fg-muted"})]})}),d.jsxs(Bf,{className:"cds-w-[min(30rem,calc(100vw-2rem))] cds-p-0",align:"start",children:[d.jsxs("div",{className:"cds-relative cds-border-b cds-border-border cds-p-2",children:[d.jsx(P9,{"aria-hidden":"true",className:"cds-pointer-events-none cds-absolute cds-left-4 cds-top-1/2 cds-h-4 cds-w-4 -cds-translate-y-1/2 cds-text-fg-muted"}),d.jsx("input",{autoFocus:!0,type:"text",value:y,onChange:A=>v(A.target.value),placeholder:"Type to search…","aria-label":`Search ${r}`,className:`${_t} cds-pl-9`})]}),S.length===0?d.jsx("p",{className:"cds-px-3 cds-py-6 cds-text-center cds-text-sm cds-text-fg-muted",children:"No matches"}):d.jsx("div",{role:"radiogroup","aria-label":r,className:"cds-grid cds-max-h-72 cds-grid-cols-2 cds-gap-2 cds-overflow-y-auto cds-p-2 sm:cds-grid-cols-3",children:S.map(A=>{let w=A.value===s,k=ly(t,A.value);return d.jsxs("button",{type:"button",role:"radio","aria-checked":w,onClick:()=>{f(A.value),g(!1),v("")},className:`${Ns} cds-flex-col cds-gap-1 cds-p-2.5 cds-text-center cds-text-xs cds-font-medium ${Fe} ${w?Rs:Os}`,children:[w?d.jsx(xc,{}):null,k?d.jsx(cy,{glyph:k,className:"cds-h-8 cds-w-8 cds-text-fg"}):null,d.jsx("span",{className:"cds-leading-tight",children:A.label})]},A.value)})})]})]})},JM=new Set(["Dontknow","Reject","None","NoCoverage","No_Coverage","NotAvailable"]),kq={personal_liability:"per occurrence",dwelling_medical_payments:"per person",policy_pd:"per accident",policy_mp:"per person",policy_umpd:"per accident",policy_pip:"per person",policy_auto_death_indemnity:"per person",policy_pip_deductible:"you pay per claim",extended_medical:"per person",vehicle_comp_deductible:"you pay per claim",vehicle_coll_deductible:"you pay per claim",vehicle_towing_and_labor:"per disablement",windstorm_deductible:"of your dwelling coverage"},Mq=new Set(["policy_pd","policy_mp","policy_umpd","policy_pip","policy_auto_death_indemnity","vehicle_comp_deductible","vehicle_coll_deductible","vehicle_towing_and_labor"]),Tq=/^([\d,]+)\s*\/\s*([\d,]+)$/,Nq=/^([\d,]+)\s*CSL$/i,Xm=e=>`$${e}${e.includes(",")?"":",000"}`,Rq=(e,t)=>{let r=Tq.exec(t);if(r)return e==="vehicle_transportation_expense"?`$${r[1]??""}/day, up to $${r[2]??""}`:`${Xm(r[1]??"")} per person · ${Xm(r[2]??"")} per accident`;let o=Nq.exec(t);return o?`${Xm(o[1]??"")} combined single limit`:kq[e]},Oq=(e,t)=>JM.has(t.value)||!Mq.has(e)?t.label:/^[\d,]+$/.test(t.label)?`$${t.label}`:t.label,Mb=({fieldKey:e,label:t,options:r,value:o,invalid:s,describedBy:c,detailFor:u,onChange:f})=>{let{tabStop:h,onKeyDown:g,register:y}=Cc(r,o,f);return d.jsx("div",{role:"radiogroup","aria-label":t,"aria-invalid":s||void 0,"aria-describedby":c,className:"cds-grid cds-grid-cols-2 cds-gap-2 sm:cds-grid-cols-3",onKeyDown:g,children:r.map((v,S)=>{let x=v.value===o,C=JM.has(v.value),A=C?void 0:u?.(v)??Rq(e,v.label);return d.jsxs("button",{ref:y(S),type:"button",role:"radio","aria-checked":x,tabIndex:S===h?0:-1,onClick:()=>f(v.value),className:`${Ns} cds-flex-col cds-gap-0.5 cds-px-3 cds-py-2.5 cds-text-center ${Fe} ${x?Rs:`${Os} ${s?Sc:""}`} ${C&&!x?"cds-border-dashed":""}`,children:[x?d.jsx(xc,{}):null,d.jsx("span",{className:C?"cds-text-sm cds-font-semibold cds-text-fg-muted":"cds-text-base cds-font-bold cds-text-fg",children:Oq(e,v)}),A?d.jsx("span",{className:"cds-text-[11px] cds-font-normal cds-leading-tight cds-text-fg-muted",children:A}):null]},v.value)})})},jo=e=>String(e??"").replace(/\D/g,""),jq=({id:e,label:t,value:r,config:o,invalid:s,describedBy:c,onChange:u})=>{let f=jo(r),h=f===""?null:Number(f),g=b.useRef(!1);b.useEffect(()=>{g.current||(g.current=!0,h===null&&u(o.min))},[h,o.min,u]);let y=S=>{if(h===null){u(o.min);return}u(Math.min(o.max,Math.max(o.min,h+S)))},v=`cds-flex cds-h-11 cds-w-11 cds-shrink-0 cds-items-center cds-justify-center cds-rounded-lg cds-border-2 cds-border-border-strong cds-bg-surface-elevated cds-text-fg cds-transition-colors hover:cds-border-accent hover:cds-bg-highlight disabled:cds-cursor-not-allowed disabled:cds-opacity-40 disabled:hover:cds-border-border-strong disabled:hover:cds-bg-surface-elevated ${Fe}`;return d.jsxs("div",{className:"cds-flex cds-items-center cds-gap-3",children:[d.jsx("button",{type:"button",onClick:()=>y(-1),disabled:h!==null&&h<=o.min,"aria-label":`Decrease ${t}`,className:v,children:d.jsx(C9,{"aria-hidden":"true",className:"cds-h-5 cds-w-5"})}),d.jsx("input",{id:e,type:"text",inputMode:"numeric","aria-label":t,"aria-invalid":s||void 0,"aria-describedby":c,value:f,onFocus:S=>S.target.select(),onChange:S=>{let x=jo(S.target.value);u(x===""?"":Number(x))},className:`cds-h-11 cds-w-full cds-min-w-0 cds-rounded-lg cds-border-2 cds-bg-surface-elevated cds-text-center cds-text-lg cds-font-bold cds-text-fg focus:cds-border-primary focus:cds-outline-none focus:cds-ring-2 focus:cds-ring-ring/40 ${s?"cds-border-destructive":"cds-border-border-strong"}`}),d.jsx("button",{type:"button",onClick:()=>y(1),disabled:h!==null&&h>=o.max,"aria-label":`Increase ${t}`,className:v,children:d.jsx(ck,{"aria-hidden":"true",className:"cds-h-5 cds-w-5"})})]})},Dq=200,Pq="cds-h-3 cds-w-full cds-cursor-pointer cds-appearance-none cds-rounded-full focus-visible:cds-outline-none focus-visible:cds-ring-2 focus-visible:cds-ring-ring focus-visible:cds-ring-offset-2 [&::-webkit-slider-thumb]:cds-h-7 [&::-webkit-slider-thumb]:cds-w-7 [&::-webkit-slider-thumb]:cds-appearance-none [&::-webkit-slider-thumb]:cds-rounded-full [&::-webkit-slider-thumb]:cds-border-4 [&::-webkit-slider-thumb]:cds-border-solid [&::-webkit-slider-thumb]:cds-border-surface-elevated [&::-webkit-slider-thumb]:cds-bg-accent [&::-webkit-slider-thumb]:cds-shadow-md [&::-webkit-slider-thumb]:cds-cursor-grab [&::-webkit-slider-thumb]:active:cds-cursor-grabbing [&::-moz-range-thumb]:cds-h-7 [&::-moz-range-thumb]:cds-w-7 [&::-moz-range-thumb]:cds-rounded-full [&::-moz-range-thumb]:cds-border-4 [&::-moz-range-thumb]:cds-border-solid [&::-moz-range-thumb]:cds-border-surface-elevated [&::-moz-range-thumb]:cds-bg-accent [&::-moz-range-thumb]:cds-shadow-md [&::-moz-range-thumb]:cds-cursor-grab",eT=(e,t)=>t?e.toLocaleString("en-US"):String(e),B2=(e,{currency:t,grouped:r=!0,unit:o})=>{let s=eT(e,r);return t?`$${s}`:o?`${s} ${o}`:s},tT=({id:e,label:t,value:r,config:o,invalid:s,describedBy:c,onChange:u})=>{let[f,h]=b.useState(()=>jo(r)),g=b.useRef(!1),y=b.useRef(void 0);b.useEffect(()=>()=>clearTimeout(y.current),[]),b.useEffect(()=>{g.current||h(jo(r))},[r]);let v=b.useRef(!1);b.useEffect(()=>{v.current||(v.current=!0,!(o.openBlank||jo(r)!=="")&&u(o.min))},[o.openBlank,o.min,u,r]);let S=k=>{h(k),g.current=!0,clearTimeout(y.current),y.current=setTimeout(()=>{g.current=!1,u(k===""?"":Number(k))},Dq)},x=f===""?o.min:Number(f),C=Math.min(o.max,Math.max(o.min,x)),A=(C-o.min)/(o.max-o.min)*100,w=!o.hardMax&&x<=o.max;return d.jsxs("div",{children:[d.jsx("div",{className:"cds-mb-2 cds-flex cds-justify-center",children:d.jsxs("div",{className:"cds-relative",children:[o.currency?d.jsx("span",{"aria-hidden":"true",className:`cds-absolute cds-left-3 cds-top-1/2 -cds-translate-y-1/2 cds-font-extrabold cds-text-fg ${o.lead?"cds-text-2xl":"cds-text-xl"}`,children:"$"}):null,d.jsx("input",{id:e,type:"text",inputMode:"numeric","aria-label":t,"aria-invalid":s||void 0,"aria-describedby":c,value:f===""?"":eT(x,o.grouped??!0),onFocus:k=>k.target.select(),onChange:k=>S(jo(k.target.value).slice(0,9)),className:`cds-rounded-lg cds-border-2 cds-bg-surface-elevated cds-py-2 cds-pr-3 cds-text-center cds-font-extrabold cds-text-fg focus:cds-border-primary focus:cds-outline-none focus:cds-ring-2 focus:cds-ring-ring/40 ${o.lead?"cds-w-48 cds-text-2xl":"cds-w-44 cds-text-xl"} ${o.currency?"cds-pl-8":"cds-pl-3"} ${s?"cds-border-destructive":"cds-border-border-strong"}`}),o.unit&&!o.currency?d.jsx("span",{"aria-hidden":"true",className:"cds-absolute cds-right-3 cds-top-1/2 -cds-translate-y-1/2 cds-text-xs cds-font-semibold cds-text-fg-muted",children:o.unit}):null]})}),d.jsx("input",{type:"range","aria-label":`${t} slider`,min:o.min,max:o.max,step:o.step,value:C,"aria-describedby":c,onChange:k=>S(k.target.value),className:Pq,style:{background:`linear-gradient(to right, hsl(var(--cds-accent)) ${A}%, hsl(var(--cds-border)) ${A}%)`}}),d.jsxs("div",{className:"cds-flex cds-justify-between cds-text-xs cds-text-fg-muted",children:[d.jsx("span",{children:B2(o.min,o)}),d.jsxs("span",{children:[B2(o.max,o),w?"+":""]})]})]})},Do=[{label:"Before 1940",from:1800,to:1939},{label:"1940s–50s",from:1940,to:1959},{label:"1960s–70s",from:1960,to:1979},{label:"1980s–90s",from:1980,to:1999},{label:"2000s",from:2e3,to:2009},{label:"2010 or newer",from:2010,to:new Date().getFullYear()}],Iq=e=>{if(!Number.isFinite(e)||e<=0)return-1;let t=Do.findIndex(o=>e>=o.from&&e<=o.to);if(t>=0)return t;let r=Do[0];return r&&e<r.from?0:Do.length-1},$q=({id:e,label:t,value:r,invalid:o,describedBy:s,onChange:c})=>{let u=Number(jo(r)),f=Iq(u),h=b.useMemo(()=>Do.map((C,A)=>({value:String(A),label:C.label})),[]),g=C=>{let A=Do[C];A&&!(u>=A.from&&u<=A.to)&&c(A.to)},{tabStop:y,onKeyDown:v,register:S}=Cc(h,f>=0?String(f):"",C=>g(Number(C))),x=f>=0?Do[f]:void 0;return d.jsxs("div",{children:[d.jsx("div",{role:"radiogroup","aria-label":`${t} — period`,"aria-invalid":o||void 0,"aria-describedby":s,className:"cds-grid cds-grid-cols-2 cds-gap-2 sm:cds-grid-cols-3",onKeyDown:v,children:Do.map((C,A)=>{let w=A===f;return d.jsxs("button",{ref:S(A),type:"button",role:"radio","aria-checked":w,tabIndex:A===y?0:-1,onClick:()=>g(A),className:`${Ns} cds-px-2 cds-py-2.5 cds-text-center cds-text-xs cds-font-semibold ${Fe} ${w?Rs:`${Os} ${o?Sc:""}`}`,children:[w?d.jsx(xc,{}):null,d.jsx("span",{children:C.label})]},C.label)})}),x?d.jsx("div",{className:"cds-mt-3",children:d.jsx(tT,{id:e,label:t,value:r,config:{min:x.from,max:x.to,step:1,currency:!1,grouped:!1,hardMax:!0},invalid:o,describedBy:s,onChange:c})}):null]})},Lq=12,zq=new Date().getFullYear(),Hq=new Set(["personal_liability","dwelling_medical_payments","windstorm_deductible","all_perils_deductible","auto_prior_liability_limit","policy_bi","policy_um","policy_pd","policy_mp","policy_umpd","policy_pip","policy_auto_death_indemnity","policy_pip_deductible","extended_medical","vehicle_comp_deductible","vehicle_coll_deductible","vehicle_towing_and_labor","vehicle_transportation_expense"]),Uq=new Set(["tort_threshold","pip_coverage_type"]),ld={min:1900,max:zq,step:1,currency:!1,grouped:!1,hardMax:!0,minFromKey:"year_built",openBlank:!0},Bq={dwelling_replacement_cost:{min:1e5,max:2e6,step:5e3,currency:!0,lead:!0,openBlank:!0},total_area_sq_ft:{min:500,max:6e3,step:50,currency:!1,unit:"sq ft"},annual_mileage:{min:1e3,max:5e4,step:500,currency:!1,unit:"mi/yr"},miles_to_work:{min:1,max:100,step:1,currency:!1,unit:"mi"},year_roof_updated:ld,heating_update_year:ld,plumbing_update_year:ld,electrical_update_year:ld},Fq={household_size:{min:1,max:8},number_of_dogs:{min:0,max:99},number_of_units:{min:1,max:99},number_of_families:{min:1,max:5},number_of_units_in_firewall:{min:0,max:99},number_of_mortgagees:{min:0,max:3},number_of_parking_spaces:{min:1,max:3},years_at_address:{min:0,max:100},months_at_address:{min:0,max:11},years_at_prior_address:{min:0,max:100},auto_prior_years:{min:0,max:99},auto_prior_months:{min:0,max:11},auto_continuous_coverage_years:{min:0,max:99},home_prior_years:{min:0,max:99},home_continuous_coverage_years:{min:0,max:99}},qq=new Set(["social_security_number","vin","date_of_birth","co_applicant_date_of_birth","additional_pip"]),Gq=e=>e.length===2&&e.every(t=>t.value==="Yes"||t.value==="No"),Vq=(e,t,r=!1)=>{let o=e.key;if(!qq.has(o)){if(e.inputType==="number"){let s=Bq[o];if(s)return{kind:"slider",config:s};let c=Fq[o];return c?{kind:"stepper",config:c}:o==="year_built"?{kind:"eraYear"}:void 0}if((e.inputType==="select"||e.inputType==="radio")&&!(r||t.length===0)){if(Hq.has(o))return{kind:"amountCards"};if(Uq.has(o))return{kind:"choiceCards"};if(Gq(t))return{kind:"yesNo"};if(QM(o))return t.length>Lq?{kind:"illustrated"}:{kind:"iconCards"}}}},F2=e=>{let t=String(e??"").replace(/\D/g,"");if(!t)return;let r=Number(t);return Number.isFinite(r)?r:void 0},Zq=(e,t)=>{let r=e.minFromKey?F2(t[e.minFromKey]):void 0,o=e.maxFromKey?F2(t[e.maxFromKey]):void 0,s=r!==void 0&&r>=1800?r:e.min,c=o!==void 0&&o>0?o:e.max;return c-s<e.step?e:{...e,min:s,max:c}},Yq=({spec:e,id:t,question:r,options:o,value:s,values:c,invalid:u,describedBy:f,onChange:h,label:g})=>{let y=g??r.question,v=s==null?"":String(s),S={fieldKey:r.key,label:y,options:o,value:v,invalid:u,describedBy:f,onChange:h};switch(e.kind){case"iconCards":return d.jsx(xq,{...S});case"yesNo":return d.jsx(Cq,{...S});case"illustrated":return d.jsx(Aq,{id:t,...S});case"amountCards":return d.jsx(Mb,{...S});case"choiceCards":return d.jsx(Eq,{...S});case"stepper":return d.jsx(jq,{id:t,label:y,value:s,config:e.config,invalid:u,describedBy:f,onChange:h});case"slider":return d.jsx(tT,{id:t,label:y,value:s,config:Zq(e.config,c),invalid:u,describedBy:f,onChange:h});case"eraYear":return d.jsx($q,{id:t,label:y,value:s,invalid:u,describedBy:f,onChange:h});default:return null}},Wq=25,nT="cds-mt-1 cds-text-xs cds-font-medium cds-text-destructive",Hd=({id:e,message:t})=>t?d.jsx("p",{id:e,className:nT,role:"alert",children:t}):null,Kq=({id:e,label:t,value:r,options:o,invalid:s,describedBy:c,onChange:u,onOpen:f})=>{let[h,g]=b.useState(!1),[y,v]=b.useState(""),S=b.useMemo(()=>{let C=y.trim().toLowerCase();return C?o.filter(A=>A.label.toLowerCase().includes(C)).slice(0,200):o.slice(0,200)},[o,y]),x=o.find(C=>C.value===r);return d.jsxs(Ab,{open:h,onOpenChange:C=>{g(C),C?f?.():v("")},children:[d.jsx(kb,{asChild:!0,children:d.jsxs("button",{type:"button",id:e,"aria-label":t,"aria-invalid":s||void 0,"aria-describedby":c,className:`${_t} cds-flex cds-items-center cds-justify-between cds-text-left ${s?"cds-border-destructive":""} ${Fe}`,children:[d.jsx("span",{className:x?"cds-text-fg":"cds-text-fg-muted",children:x?x.label:"Select…"}),d.jsx(hc,{"aria-hidden":"true",className:"cds-h-4 cds-w-4 cds-shrink-0 cds-text-fg-muted"})]})}),d.jsxs(Bf,{className:"cds-w-[min(28rem,calc(100vw-2rem))] cds-p-0",align:"start",children:[d.jsx("div",{className:"cds-border-b cds-border-border cds-p-2",children:d.jsx("input",{autoFocus:!0,type:"text",value:y,onChange:C=>v(C.target.value),placeholder:"Type to search…","aria-label":`Search ${t}`,className:_t})}),d.jsx("ul",{className:"cds-max-h-64 cds-overflow-y-auto cds-py-1",role:"listbox","aria-label":t,children:S.length===0?d.jsx("li",{className:"cds-px-3 cds-py-2 cds-text-sm cds-text-fg-muted",children:"No matches"}):S.map(C=>d.jsx("li",{children:d.jsx("button",{type:"button",role:"option","aria-selected":C.value===r,onClick:()=>{u(C.value),g(!1),v("")},className:`cds-block cds-w-full cds-px-3 cds-py-2 cds-text-left cds-text-sm hover:cds-bg-highlight ${C.value===r?"cds-bg-highlight cds-font-semibold cds-text-fg":"cds-text-fg"}`,children:C.label})},C.value))})]})]})},Xq=({id:e,label:t,value:r,options:o,invalid:s,describedBy:c,onChange:u,onOpen:f})=>d.jsxs("select",{id:e,value:r,"aria-label":t,"aria-invalid":s||void 0,"aria-describedby":c,onFocus:f,onChange:h=>u(h.target.value),className:`${_t} ${s?"cds-border-destructive":""}`,children:[d.jsx("option",{value:"",children:"Select…"}),o.map(h=>d.jsx("option",{value:h.value,children:h.label},h.value))]}),Qq=({label:e,value:t,options:r,invalid:o,describedBy:s,onChange:c})=>d.jsx("div",{role:"radiogroup","aria-label":e,"aria-invalid":o||void 0,"aria-describedby":s,className:"cds-flex cds-flex-wrap cds-gap-2",children:r.map(u=>{let f=u.value===t;return d.jsx("button",{type:"button",role:"radio","aria-checked":f,onClick:()=>c(u.value),className:`cds-min-w-[5.5rem] cds-flex-1 cds-rounded-lg cds-border cds-px-4 cds-py-2.5 cds-text-sm cds-font-semibold cds-transition-colors ${Fe} ${f?"cds-border-accent cds-bg-highlight cds-text-fg":`border-gray-400 bg-white text-gray-700 hover:border-brand-accent/60 ${o?"cds-border-destructive":""}`}`,children:u.label},u.value)})}),Jq=(e,t)=>{if(e.key==="occupation"||e.key==="co_applicant_occupation"){let r=e.key==="occupation"?t.industry??t.employment_industry:t.co_applicant_employment_industry,o=Uy(r);return o?o.map(s=>({value:s,label:RE(s)})):[]}return NE(e.key,e.options)},q2={dwelling_replacement_cost:"Cost to rebuild your home",all_perils_deductible:"Deductible"},Qm={dwelling_replacement_cost:"We start you off at your purchase price. Adjust it to what rebuilding would cost today — not the market value, and not necessarily what you paid. Higher-value home? Type the amount directly.",all_perils_deductible:"What you pay out of pocket on a claim before insurance kicks in.",additional_pip:"Extra cover for lost income and essential services after an injury. Pick the weekly benefit, and whether what it pays in total is capped."},eG=e=>`$${e.toLocaleString("en-US")}`,tG=e=>String(e??"").replace(/\D/g,""),G2=e=>e.endsWith("Percent"),nG={OnePercent:1,TwoPercent:2,ThreePercent:3,FourPercent:4,FivePercent:5},rG="OneThousand",aG="OnePercent",oG=({label:e,value:t,options:r,dwelling:o,hint:s,error:c,onChange:u})=>{let f=`deductible-${b.useId()}`,h=s?`${f}-hint`:void 0,g=c?`${f}-error`:void 0,y=G2(t),v=Number(tG(o)),S=r.filter(A=>G2(A.value)===y),x=A=>{let w=nG[A.value];return!y||!w||!v?void 0:`of coverage (about ${eG(Math.round(v*w/100/500)*500)})`},C=A=>`px-3 py-1.5 transition-colors ${A?"cds-bg-primary cds-text-primary-foreground":"cds-bg-surface-elevated cds-text-fg-muted hover:cds-bg-surface-muted"} ${Fe}`;return d.jsxs("div",{className:"cds-mb-4",children:[d.jsxs("div",{className:"cds-mb-1 cds-flex cds-items-center cds-justify-between",children:[d.jsx("span",{className:"cds-text-sm cds-font-semibold cds-text-fg",children:e}),d.jsxs("div",{role:"group","aria-label":"Deductible type",className:"cds-flex cds-overflow-hidden cds-rounded-lg cds-border cds-border-input cds-text-xs cds-font-semibold",children:[d.jsx("button",{type:"button","aria-pressed":!y,onClick:()=>y&&u(rG),className:C(!y),children:"Dollar amount"}),d.jsx("button",{type:"button","aria-pressed":y,onClick:()=>!y&&u(aG),className:C(y),children:"% of coverage"})]})]}),d.jsx(Mb,{fieldKey:"all_perils_deductible",label:typeof e=="string"?e:"Deductible",value:t,options:S,invalid:!!c,describedBy:[h,g].filter(Boolean).join(" ")||void 0,detailFor:x,onChange:u}),s?d.jsx("p",{id:h,className:"cds-mt-1.5 cds-text-xs cds-text-fg-muted",children:s}):null,d.jsx(Hd,{id:g??"",message:c})]})},iG=/^cov(\d+)(?:_(\d+))?_(LIMITED|UNLIMITED)$/,jl=e=>{let t=iG.exec(e);if(t)return{weekly:t[1]??"",aggregate:t[2],capped:t[3]==="LIMITED"}},sG=({label:e,name:t,value:r,options:o,hint:s,error:c,onChange:u})=>{let f=`additional-pip-${b.useId()}`,h=s?`${f}-hint`:void 0,g=c?`${f}-error`:void 0,y=jl(r),v=!y||y.capped,S=o.flatMap(w=>{let k=jl(w.value);return!k||k.capped!==v?[]:[{value:w.value,label:`$${k.weekly}/wk`}]}),x=w=>{let k=jl(w.value);if(k)return k.aggregate?`up to $${Number(k.aggregate).toLocaleString("en-US")} in total`:"no cap on the total"},C=w=>{if(w===v)return;let k=o.find(N=>{let O=jl(N.value);return O?.capped===w&&O.weekly===y?.weekly}),M=o.find(N=>jl(N.value)?.capped===w),T=k??M;T&&u(T.value)},A=w=>`px-3 py-1.5 transition-colors ${w?"cds-bg-primary cds-text-primary-foreground":"cds-bg-surface-elevated cds-text-fg-muted hover:cds-bg-surface-muted"} ${Fe}`;return d.jsxs("div",{className:"cds-mb-4",children:[d.jsxs("div",{className:"cds-mb-1 cds-flex cds-items-center cds-justify-between cds-gap-2",children:[d.jsx("span",{className:"cds-text-sm cds-font-semibold cds-text-fg",children:e}),d.jsxs("div",{role:"group","aria-label":"Total benefit",className:"cds-flex cds-shrink-0 cds-overflow-hidden cds-rounded-lg cds-border cds-border-input cds-text-xs cds-font-semibold",children:[d.jsx("button",{type:"button","aria-pressed":v,onClick:()=>C(!0),className:A(v),children:"Capped total"}),d.jsx("button",{type:"button","aria-pressed":!v,onClick:()=>C(!1),className:A(!v),children:"Unlimited total"})]})]}),d.jsx(Mb,{fieldKey:"additional_pip",label:t,value:r,options:S,invalid:!!c,describedBy:[h,g].filter(Boolean).join(" ")||void 0,detailFor:x,onChange:u}),s?d.jsx("p",{id:h,className:"cds-mt-1.5 cds-text-xs cds-text-fg-muted",children:s}):null,d.jsx(Hd,{id:g??"",message:c})]})},rT=({question:e,value:t,error:r,values:o,onChange:s,asyncSelect:c,vinDecode:u,required:f})=>{let h=b.useId(),g=`q-${e.key}-${h}`,y=r?`${g}-error`:void 0,v=e.hint?`${g}-hint`:void 0,S=u?.error?`${g}-vin-error`:void 0,x=[v,y,S].filter(Boolean).join(" ")||void 0,C=q2[e.key]??e.question,A=d.jsxs(d.Fragment,{children:[C,f?null:d.jsx("span",{className:"cds-ml-1 cds-font-normal cds-text-fg-muted",children:"(optional)"})]}),w=t==null?"":String(t),k=b.useMemo(()=>{let P=c?.options??Jq(e,o);return!c||!w||P.some(I=>I.value===w)?P:[{value:w,label:w},...P]},[c,e,o,w]);if(e.inputType==="checkbox")return d.jsxs("div",{className:"cds-mb-2",children:[d.jsx(m7,{label:e.question,checked:t===!0,onChange:P=>s(P)}),d.jsx(Hd,{id:y??"",message:r})]});if(e.key==="all_perils_deductible")return d.jsx(oG,{label:q2.all_perils_deductible,value:w,options:k,dwelling:o.dwelling_replacement_cost,hint:Qm.all_perils_deductible,error:r,onChange:s});if(e.key==="additional_pip")return d.jsx(sG,{label:A,name:C,value:w,options:k,hint:Qm.additional_pip,error:r,onChange:s});let M=P=>{if(e.key==="social_security_number")return d.jsx("input",{id:P,type:"text",inputMode:"numeric",autoComplete:"off",maxLength:11,value:QE(w),"aria-invalid":!!r||void 0,"aria-describedby":x,onChange:z=>s(XE(JE(w,z.target.value))),placeholder:"XXX-XX-XXXX",className:`${_t} ${r?"cds-border-destructive":""}`});if(e.key==="vin"&&u){let z=Vy(w);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"cds-flex cds-items-start cds-gap-2",children:[d.jsx("input",{id:P,type:"text",value:w,maxLength:17,autoComplete:"off","aria-invalid":!!r||void 0,"aria-describedby":x,onChange:Z=>s(Z.target.value),className:`${_t} ${r?"cds-border-destructive":""}`}),d.jsx("button",{type:"button",disabled:!z||u.loading,onClick:()=>u.run(w),className:`cds-shrink-0 cds-whitespace-nowrap cds-rounded-lg cds-border cds-border-accent cds-bg-surface-elevated cds-px-4 cds-py-2.5 cds-text-sm cds-font-bold cds-text-fg hover:cds-bg-highlight disabled:cds-cursor-not-allowed disabled:cds-opacity-50 disabled:hover:cds-bg-surface-elevated ${Fe}`,children:u.loading?"Looking up…":"Verify VIN"})]}),u.error?d.jsx("p",{id:S,className:nT,role:"alert",children:u.error}):null]})}let I=Vq(e,k,!!c);if(I)return Yq({spec:I,id:P,question:e,options:k,value:t,values:o,invalid:!!r,describedBy:x,onChange:s,label:C});switch(e.inputType){case"radio":return d.jsx(Qq,{label:e.question,value:w,options:k,invalid:!!r,describedBy:x,onChange:s});case"select":return c?.loading&&!k.length?d.jsx("div",{className:`${_t} cds-text-fg-muted`,"aria-live":"polite",children:"Loading options…"}):k.length?k.length>Wq?d.jsx(Kq,{id:P,label:e.question,value:w,options:k,invalid:!!r,describedBy:x,onChange:s,onOpen:c?.activate}):d.jsx(Xq,{id:P,label:e.question,value:w,options:k,invalid:!!r,describedBy:x,onChange:s,onOpen:c?.activate}):d.jsx("input",{id:P,type:"text",value:w,"aria-label":e.question,"aria-describedby":x,onFocus:c?.activate,onChange:z=>s(z.target.value),placeholder:"Type your answer",className:_t});case"date":return e.key==="date_of_birth"||e.key==="co_applicant_date_of_birth"?d.jsx(i7,{id:P,hintId:x,value:w,onChange:z=>s(z)}):d.jsx("input",{id:P,type:"date",value:w,"aria-invalid":!!r||void 0,"aria-describedby":x,onChange:z=>s(z.target.value),className:`${_t} ${r?"cds-border-destructive":""}`});case"number":{let z=cv(e.key);return d.jsx("input",{id:P,type:"text",inputMode:"numeric",value:z?uv(t,lv(e.key)):w,"aria-invalid":!!r||void 0,"aria-describedby":x,onChange:Z=>{let re=Z.target.value.replace(/[^\d]/g,"");s(re===""?"":Number(re))},className:`${_t} ${r?"cds-border-destructive":""}`})}case"tel":return d.jsx("input",{id:P,type:"tel",inputMode:"tel",autoComplete:"tel",value:Pg(w),"aria-invalid":!!r||void 0,"aria-describedby":x,onChange:z=>s(Pg(z.target.value)),placeholder:"(512) 555-0134",className:`${_t} ${r?"cds-border-destructive":""}`});case"email":return d.jsx("input",{id:P,type:"email",inputMode:"email",autoComplete:"email",value:w,"aria-invalid":!!r||void 0,"aria-describedby":x,onChange:z=>s(z.target.value),placeholder:"you@example.com",className:`${_t} ${r?"cds-border-destructive":""}`});case"password":return d.jsx("input",{id:P,type:"password",autoComplete:"off",value:w,"aria-invalid":!!r||void 0,"aria-describedby":x,onChange:z=>s(z.target.value),className:`${_t} ${r?"cds-border-destructive":""}`});case"textarea":return d.jsx("textarea",{id:P,rows:3,value:w,"aria-invalid":!!r||void 0,"aria-describedby":x,onChange:z=>s(z.target.value),className:`${_t} ${r?"cds-border-destructive":""}`});default:return d.jsx("input",{id:P,type:"text",value:w,"aria-invalid":!!r||void 0,"aria-describedby":x,onChange:z=>s(z.target.value),className:`${_t} ${r?"cds-border-destructive":""}`})}},T=bv(e.key),N=Qm[e.key]??e.hint,O=e.key==="social_security_number"&&Zy(o)?[`${String(o.ssn_display).trim()}. Re-enter to update.`,N].filter(Boolean).join(" "):T===null?N:[N,`Typically ${T}% of your rebuild cost. Change it if needed.`].filter(Boolean).join(" ");return d.jsx(vc,{label:A,hint:O,children:({id:P})=>d.jsxs(d.Fragment,{children:[M(P),d.jsx(Hd,{id:y??"",message:r})]})})},aT=({heading:e,body:t,candidates:r,applyLabel:o="Use these details",onApply:s})=>{let[c,u]=b.useState(r[0]?.index??0),[f,h]=b.useState(null);if(!r.length)return null;if(f)return d.jsxs("p",{className:"cds-mb-4 cds-flex cds-items-center cds-gap-2 cds-text-sm cds-text-fg-muted","aria-live":"polite",children:[d.jsx(pc,{"aria-hidden":"true",className:"cds-h-4 cds-w-4 cds-shrink-0 cds-text-accent"}),"Filled ",f.count," ",f.count===1?"answer":"answers"," from ",d.jsx("span",{"data-credify-redact":!0,children:f.name}),". Change anything below that is not right."]});let g=()=>{let v=r.find(x=>x.index===c)??r[0];if(!v)return;let S=s(v.index);S>0&&h({name:v.name,count:S})},y=r.length===1?r[0]:void 0;return d.jsx("div",{className:"cds-mb-5 cds-rounded-xl cds-border cds-border-accent/40 cds-bg-highlight cds-p-4",children:d.jsxs("div",{className:"cds-flex cds-items-start cds-gap-3",children:[d.jsx(dk,{"aria-hidden":"true",className:"cds-mt-0.5 cds-h-5 cds-w-5 cds-shrink-0 cds-text-accent"}),d.jsxs("div",{className:"cds-min-w-0 cds-flex-1",children:[d.jsx("h3",{className:"cds-text-sm cds-font-bold cds-text-fg",children:e}),d.jsx("p",{className:"cds-mt-0.5 cds-text-sm cds-text-fg-muted",children:t}),y?null:d.jsxs("fieldset",{className:"cds-mt-3",children:[d.jsx("legend",{className:"sr-only",children:e}),d.jsx("div",{className:"cds-space-y-1.5",children:r.map(v=>d.jsxs("label",{className:"cds-flex cds-cursor-pointer cds-items-center cds-gap-2 cds-text-sm cds-text-fg",children:[d.jsx("input",{type:"radio",name:`copy-source-${e.replace(/\W+/g,"-")}`,checked:c===v.index,onChange:()=>u(v.index)}),d.jsx("span",{"data-credify-redact":!0,className:"cds-font-semibold",children:v.name})]},v.index))})]}),d.jsx("button",{type:"button",onClick:g,className:`cds-mt-4 cds-rounded-lg cds-bg-accent cds-px-4 cds-py-2 cds-text-sm cds-font-bold cds-text-primary-foreground hover:cds-bg-accent ${Fe}`,children:y?d.jsxs(d.Fragment,{children:[o," from ",d.jsx("span",{"data-credify-redact":!0,children:y.name})]}):o})]})]})})},lG={vehicles:{singular:"vehicle",plural:"Vehicles"},drivers:{singular:"driver",plural:"Drivers"},driver_accidents:{singular:"accident",plural:"Accidents"},driver_violations:{singular:"violation",plural:"Violations"},losses:{singular:"loss",plural:"Losses"},home_losses:{singular:"loss",plural:"Losses"}},cG=e=>lG[e]??{singular:"entry",plural:"Entries"},uG=[{heading:"Your current coverage",caption:"What you have today. Carriers rate on this history.",keys:new Set(["auto_prior_carrier_name","auto_prior_years","auto_prior_months","auto_continuous_coverage_years","auto_prior_expiration_date","auto_reason_for_no_insurance","auto_prior_liability_limit","auto_cancelled_declined_refused_to_renew"])},{heading:"Select your coverages",caption:"The limits on the policy you are quoting now.",keys:new Set(["policy_bi","policy_um","policy_pd","policy_mp","policy_umpd","policy_pip","policy_auto_death_indemnity","policy_pip_deductible","additional_pip","tort_threshold","pip_coverage_type","extended_medical"])},{heading:"Select your coverages for each vehicle",caption:"Deductibles and extras, per vehicle.",keys:new Set([ps])}],dG=({heading:e,caption:t})=>d.jsxs("div",{className:"cds-mb-3 cds-mt-6 cds-border-t cds-border-border cds-pt-4 first:cds-mt-0 first:cds-border-t-0 first:cds-pt-0",children:[d.jsx("h3",{className:"cds-text-base cds-font-bold cds-text-fg",children:e}),d.jsx("p",{className:"cds-mt-0.5 cds-text-sm cds-text-fg-muted",children:t})]}),fG=e=>(e??[]).map(t=>({value:t,label:t})),pG=(e,t)=>{let[r,o]=b.useState({}),[s,c]=b.useState({}),u=b.useRef(new Set),f=b.useRef(Promise.resolve()),h=e.year?String(e.year):"",g=e.make?String(e.make):"",y=e.model?String(e.model):"",v=e.body_style?String(e.body_style):"",S=h?`make:${h}`:"",x=h&&g?`model:${h}|${g}`:"",C=h&&g&&y?`body:${h}|${g}|${y}`:"",A=b.useCallback((k,M,T)=>{!k||!t||u.current.has(k)||(u.current.add(k),c(N=>({...N,[k]:!0})),f.current=f.current.then(()=>_f(M,t)).then(N=>{o(O=>({...O,[k]:fG(T(N))}))}).catch(()=>{o(N=>({...N,[k]:[]}))}).finally(()=>{c(N=>{let O={...N};return delete O[k],O})}))},[t]),w=b.useCallback(k=>{k==="make"?A(S,{year:h},M=>M.makes):k==="model"?A(x,{year:h,make:g},M=>M.models):A(C,{year:h,make:g,model:y},M=>M.bodyStyles)},[A,S,x,C,h,g,y]);return b.useEffect(()=>{h&&(g?y?v||w("body_style"):w("model"):w("make"))},[h,g,y,v,w]),{options:{make:r[S],model:r[x],body_style:r[C]},loading:{make:!!s[S],model:!!s[x],body_style:!!s[C]},ensure:w}},hG=(e,t)=>{let[r,o]=b.useState(!1),[s,c]=b.useState(void 0);return{run:b.useCallback(u=>{!e||r||!Vy(u)||(o(!0),c(void 0),Ov(u.trim().toUpperCase(),e).then(f=>{if(f.error){c(f.error);return}let h={};if(f.year&&(h.year=String(f.year)),f.make&&(h.make=f.make),f.model&&(h.model=f.model),f.bodyStyle&&(h.body_style=f.bodyStyle),!Object.keys(h).length){c("We couldn't read that VIN — please pick the vehicle details below.");return}t(h)}).catch(()=>c("VIN lookup failed — please pick the vehicle details below.")).finally(()=>o(!1)))},[e,r,t]),loading:r,error:s}},mG=(e,t,r,o)=>{let s=Kn(t,"drivers"),c=b.useCallback(u=>cf({kind:e,source:s[u]??{},targetQuestions:r}),[e,s,r]);return{candidates:b.useMemo(()=>yv(t,{exclude:o}).filter(u=>Object.keys(c(u.index)).length>0),[t,c,o]),patchFor:c}},gG=({values:e,targetQuestions:t,onPatch:r})=>{let o=sA(e),{candidates:s,patchFor:c}=mG("coApplicant",e,t,b.useCallback((u,f)=>f===o,[o]));return s.length?d.jsx(aT,{heading:"Is the co-applicant one of your drivers?",body:"We'll reuse their name, date of birth and details from the driver you entered.",applyLabel:"Use these details",candidates:s,onApply:u=>{let f=c(u);return r(f),Object.keys(f).length}}):null},yG=({entry:e,rootValues:t,targetQuestions:r,onPatch:o})=>{let s=b.useMemo(()=>cf({kind:"driverFromApplicant",source:t,targetQuestions:r}),[t,r]),c=fA(t);return iA(t)||!lf(e)||!Object.keys(s).length?null:d.jsxs("button",{type:"button",onClick:()=>o(s),className:`cds-inline-flex cds-items-center cds-gap-1 cds-rounded cds-px-2 cds-py-1 cds-text-xs cds-font-semibold cds-text-fg hover:cds-bg-highlight ${Fe}`,children:[d.jsx(dk,{"aria-hidden":"true",className:"cds-h-3.5 cds-w-3.5"}),c?`This is me (${c})`:"This is me"]})},vG=({groupKey:e,itemQuestions:t,items:r,rootValues:o,stageKey:s,quoteId:c,itemErrors:u,onChange:f})=>{let{singular:h,plural:g}=cG(e),y=(S,x)=>{f(r.map((C,A)=>A===S?{...C,...x}:C))},v=S=>{f(r.filter((x,C)=>C!==S))};return d.jsxs("section",{className:"cds-mb-6 cds-rounded-xl cds-border cds-border-border cds-bg-surface-muted/60 cds-p-4",children:[d.jsx("h3",{className:"cds-mb-3 cds-text-sm cds-font-bold cds-uppercase cds-tracking-wide cds-text-fg",children:g}),r.map((S,x)=>d.jsx(bG,{index:x,singular:h,groupKey:e,item:S,itemQuestions:t,rootValues:o,stageKey:s,quoteId:c,errors:u.find(C=>C.index===x)?.errorsByKey??{},canRemove:r.length>1||e!=="drivers",onPatch:C=>y(x,C),onRemove:()=>v(x)},x)),d.jsxs("button",{type:"button",onClick:()=>f([...r,{}]),className:`cds-inline-flex cds-items-center cds-gap-1.5 cds-rounded-lg cds-border cds-border-accent cds-bg-surface-elevated cds-px-4 cds-py-2 cds-text-sm cds-font-bold cds-text-fg hover:cds-bg-highlight ${Fe}`,children:[d.jsx(ck,{"aria-hidden":"true",className:"cds-h-4 cds-w-4"}),"Add ",r.length?`another ${h}`:h]})]})},bG=({index:e,singular:t,groupKey:r,item:o,itemQuestions:s,rootValues:c,stageKey:u,quoteId:f,errors:h,canRemove:g,onPatch:y,onRemove:v})=>{let S=r==="vehicles",x=pG(S?o:{},f),C=hG(f,y),A=b.useMemo(()=>af(s,o,c,u,e),[s,o,c,u,e]),w=b.useMemo(()=>new Set(A.map(k=>k.key)),[A]);return d.jsxs("div",{className:"cds-mb-4 cds-rounded-lg cds-border cds-border-border cds-bg-surface-elevated cds-p-4",children:[d.jsxs("div",{className:"cds-mb-3 cds-flex cds-items-center cds-justify-between",children:[d.jsxs("h4",{className:"cds-text-sm cds-font-bold cds-text-fg",children:[t.charAt(0).toUpperCase()+t.slice(1)," ",e+1]}),r==="drivers"&&e===0?d.jsx(yG,{entry:o,rootValues:c,targetQuestions:A,onPatch:y}):null,g?d.jsxs("button",{type:"button",onClick:v,className:`cds-inline-flex cds-items-center cds-gap-1 cds-rounded cds-px-2 cds-py-1 cds-text-xs cds-font-semibold cds-text-destructive hover:cds-bg-destructive/10 ${Fe}`,children:[d.jsx(W9,{"aria-hidden":"true",className:"cds-h-3.5 cds-w-3.5"}),"Remove"]}):null]}),d.jsx(oT,{questions:s,values:o,rootValues:c,visibleKeys:w,errors:h,itemErrors:[],stageKey:u,quoteId:f,cascade:S?x:void 0,vinDecode:S&&f?C:void 0,onPatch:y})]})},_G=({vehicles:e,drivers:t,assignments:r,state:o,itemErrors:s,onChange:c,onAssign:u})=>{let f=b.useMemo(()=>Yy(o),[o]),h=t.length>1;if(!e.length)return d.jsx("p",{className:"cds-mb-4 cds-text-sm cds-text-fg-muted",children:"Add a vehicle first to choose its coverage."});let g=(y,v,S)=>{c(e.map((x,C)=>C===y?{...x,[v]:S}:x))};return d.jsx("div",{className:"cds-mb-4",children:e.map((y,v)=>{let S=ic(y,v),x=s.find(A=>A.index===v)?.errorsByKey??{},C=x[Xa];return d.jsxs("fieldset",{className:`cds-mb-4 cds-rounded-lg cds-border cds-bg-surface-elevated cds-p-4 last:cds-mb-0 ${C?"cds-border-destructive":"cds-border-border"}`,children:[d.jsx("legend",{className:"cds-px-1 cds-text-sm cds-font-bold cds-text-fg",children:S}),oc.map(A=>d.jsx(rT,{question:{question:sc[A],key:A,required:!0,inputType:"select",options:f[A]},required:!0,value:y[A],error:x[A],values:y,onChange:w=>g(v,A,w)},A)),h?d.jsxs("div",{className:"cds-mt-2 cds-border-t cds-border-border cds-pt-3",children:[d.jsxs("p",{className:"cds-mb-2 cds-text-sm cds-font-semibold cds-text-fg",children:["Who drives this one? ",d.jsx("span",{className:"cds-font-normal cds-text-fg-muted",children:"(share of use, totalling 100%)"})]}),d.jsx("div",{className:"cds-flex cds-flex-wrap cds-gap-3",children:t.map((A,w)=>{let k=[A.first_name,A.last_name].filter(Boolean).join(" ")||`Driver ${w+1}`,M=`usage-v${v}-d${w}`,T=Wy(r,v,w);return d.jsxs("div",{className:"cds-w-32",children:[d.jsx("label",{htmlFor:M,className:"cds-mb-1 cds-block cds-text-xs cds-font-semibold cds-text-fg-muted",children:k}),d.jsxs("div",{className:"cds-flex cds-items-center cds-gap-1",children:[d.jsx("input",{id:M,type:"text",inputMode:"numeric",value:T??"","aria-invalid":!!C||void 0,onChange:N=>{let O=N.target.value.replace(/\D/g,"");u(Ky(r,v,w,O===""?0:Math.min(100,Number(O))))},className:`${_t} ${C?"cds-border-destructive":""}`}),d.jsx("span",{"aria-hidden":"true",className:"cds-text-sm cds-text-fg-muted",children:"%"})]})]},M)})}),C?d.jsx("p",{className:"cds-mt-2 cds-text-sm cds-text-destructive",role:"alert",children:C}):null]}):null]},v)})})},oT=({questions:e,values:t,rootValues:r,visibleKeys:o,rootVisible:s=[],errors:c,itemErrors:u,stageKey:f,quoteId:h,cascade:g,vinDecode:y,onPatch:v})=>{let S=b.useMemo(()=>rc(e),[e]),x=t===r,C=b.useMemo(()=>{if(!x)return new Map;let w=new Map;for(let k of uG){let M=S.find(T=>k.keys.has(T.key)&&o.has(T.key));M&&w.set(M.key,k)}return w},[S,o,x]),A=w=>w.flatMap(k=>{let M=k.key,T=qy(k),N=xs(k);if(!N&&!o.has(M))return[];let O=[];M==="co_applicant_first_name"&&x&&O.push(d.jsx(gG,{values:r,targetQuestions:s,onPatch:v},`${M}-copy`));let P=C.get(M);if(P&&O.push(d.jsx(dG,{heading:P.heading,caption:P.caption},`${M}-section`)),M==="vehicle_policy_selections"){let I=z=>Array.isArray(z)?z:[];return O.push(d.jsx(_G,{vehicles:I(r[Nn("vehicles")]),drivers:I(r[Nn("drivers")]),assignments:of(r),state:r.state,itemErrors:u.filter(z=>z.groupKey==="vehicles"),onChange:z=>v({[Nn("vehicles")]:z}),onAssign:z=>v({[Xa]:z})},M)),O}if(!N){let I=M==="make"||M==="model"||M==="body_style"?M:void 0;O.push(k.inputType==="address"?d.jsx(h7,{question:k,values:t,error:c[M],onPatch:v},M):d.jsx(rT,{question:k,value:t[M],error:c[M],values:t,required:HE(k,t===r?t:lc(r,t)),asyncSelect:I&&g?{options:g.options[I],loading:g.loading[I],activate:()=>g.ensure(I)}:void 0,vinDecode:M==="vin"?y:void 0,onChange:z=>{let Z={[M]:z};M==="year"&&Object.assign(Z,{make:"",model:"",body_style:""}),M==="make"&&Object.assign(Z,{model:"",body_style:""}),M==="model"&&Object.assign(Z,{body_style:""}),(M==="industry"||M==="employment_industry")&&(Z.occupation=""),M==="dwelling_replacement_cost"&&Object.assign(Z,xv(t,z)),Object.assign(Z,Sv(t,M,z)),v(Z)}},M))}if(T&&(N||t[M]===T.conditionalValue)){let I=t[Nn(M)],z=Array.isArray(I)?I:[];O.push(d.jsx(vG,{groupKey:M,itemQuestions:T.conditionalQuestions??[],items:z.length?z:[{}],rootValues:r,stageKey:f,quoteId:h,itemErrors:u.filter(Z=>Z.groupKey===M),onChange:Z=>v({[Nn(M)]:Z})},`${M}-group`))}return ac(k,t).forEach(I=>{if(I.conditionalQuestionsAllowMultiple)return;let z=I.conditionalQuestions??[];z.length&&O.push(d.jsx("div",{className:"cds-mb-2 cds-border-l-2 cds-border-accent/40 cds-pl-4",children:A(z)},`${M}-branch`))}),O});return d.jsx(d.Fragment,{children:A(S)})},SG=({questions:e,values:t,errors:r,itemErrors:o,stageKey:s,quoteId:c,suppressedKeys:u,onPatch:f})=>{let h=b.useMemo(()=>Uo(e,t,s),[e,t,s]),g=b.useMemo(()=>new Set(h.map(v=>v.key).filter(v=>!u?.has(v))),[h,u]),y=b.useCallback(v=>f(v),[f]);return d.jsx(oT,{questions:e,values:t,rootValues:t,visibleKeys:g,rootVisible:h,errors:r,itemErrors:o,stageKey:s,quoteId:c,onPatch:y})},xG={Demographics:{kind:"applicant",heading:"Are you one of the drivers?",body:"We'll reuse the details you already gave for them, so you don't type them twice.",applyLabel:"Use these details"},Ssn:{kind:"applicantSsn",heading:"Are you one of the drivers?",body:"We can reuse the Social Security number you already entered for them.",applyLabel:"Use the SSN"}},CG=({stage:e,questions:t,values:r,onPatch:o})=>{let s=xG[e],c=b.useMemo(()=>s?Uo(t,r,e):[],[s,t,r,e]),u=b.useCallback(h=>s?cf({kind:s.kind,source:Kn(r,"drivers")[h]??{},targetQuestions:c}):{},[s,r,c]),f=b.useMemo(()=>s?yv(r).filter(h=>Object.keys(u(h.index)).length>0):[],[s,r,u]);return!s||!f.length?null:d.jsx(aT,{heading:s.heading,body:s.body,applyLabel:s.applyLabel,candidates:f,onApply:h=>{let g=u(h);return o(g),Object.keys(g).length}})},wG=({disabled:e=!1,busy:t=!1,onChoose:r})=>{let[o,s]=b.useState(!1);return d.jsxs("section",{className:"cds-mb-4 cds-rounded-xl cds-border cds-border-border cds-bg-surface-elevated cds-p-4",children:[d.jsx("h3",{className:"cds-mb-3 cds-text-sm cds-font-bold cds-uppercase cds-tracking-wide cds-text-fg",children:"Communications consent"}),d.jsxs("label",{className:"cds-flex cds-cursor-pointer cds-items-start cds-gap-2 cds-text-sm cds-text-fg-muted",children:[d.jsx("input",{type:"checkbox",checked:o,disabled:e||t,onChange:c=>s(c.target.checked),className:"cds-mt-1 cds-h-4 cds-w-4 cds-shrink-0 cds-accent-brand-accent"}),d.jsx("span",{children:"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)."})]}),d.jsxs("div",{className:"cds-mt-3 cds-space-y-2 cds-text-xs cds-leading-relaxed cds-text-fg-muted",children:[d.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."}),d.jsx("p",{children:"Consent is not required to receive quotes or purchase insurance."}),d.jsxs("p",{children:["Credify Corporation – Texas #3309669."," ",d.jsx("a",{href:"/privacy-policy",target:"_blank",rel:"noreferrer",className:"cds-font-semibold cds-text-fg cds-underline",children:"Privacy Policy"})," ","|"," ",d.jsx("a",{href:"/terms-of-service",target:"_blank",rel:"noreferrer",className:"cds-font-semibold cds-text-fg cds-underline",children:"Terms of Service"})]})]}),d.jsxs("div",{className:"cds-mt-5 cds-grid cds-grid-cols-1 cds-gap-3 sm:cds-grid-cols-2",children:[d.jsx("button",{type:"button",disabled:!o||e||t,onClick:()=>r(!0),className:`cds-w-full cds-rounded-xl cds-bg-accent cds-px-6 cds-py-3.5 cds-text-base cds-font-bold cds-text-primary-foreground cds-transition hover:cds-bg-accent disabled:cds-cursor-not-allowed disabled:cds-bg-border disabled:hover:cds-bg-border ${Fe}`,children:t?"Submitting…":"I Consent"}),d.jsx("button",{type:"button",disabled:e||t,onClick:()=>r(!1),className:`cds-w-full cds-rounded-xl cds-border cds-border-input cds-bg-surface-elevated cds-px-6 cds-py-3.5 cds-text-base cds-font-bold cds-text-fg cds-transition hover:cds-bg-surface-muted disabled:cds-cursor-not-allowed disabled:cds-opacity-50 disabled:hover:cds-bg-surface-elevated ${Fe}`,children:"I Do Not Consent"})]})]})},EG="cds-mb-4 cds-rounded-xl cds-border cds-border-border cds-bg-surface-elevated cds-p-4",AG="cds-text-sm cds-font-bold cds-uppercase cds-tracking-wide cds-text-fg",kG=e=>{let t=e.label.replace(/s$/i,"").toLowerCase();return`${e.entries.length} ${e.entries.length===1?t:`${t}s`}`},iT=({rows:e})=>d.jsx("dl",{className:"cds-space-y-1 cds-text-sm",children:e.map(t=>d.jsxs("div",{className:"cds-flex cds-justify-between cds-gap-4",children:[d.jsx("dt",{className:"cds-min-w-0 cds-flex-1 cds-text-fg-muted",children:t.label}),d.jsx("dd",{"data-credify-redact":!0,className:"cds-max-w-[55%] cds-text-right cds-font-semibold cds-text-fg",children:t.value})]},t.key))}),MG=({label:e,onClick:t})=>d.jsxs("button",{type:"button",onClick:t,"aria-label":`Edit ${e}`,className:`cds-inline-flex cds-items-center cds-gap-1 cds-rounded cds-px-2 cds-py-1 cds-text-xs cds-font-semibold cds-text-fg hover:cds-bg-highlight ${Fe}`,children:[d.jsx(A9,{"aria-hidden":"true",className:"cds-h-3.5 cds-w-3.5"}),"Edit"]}),TG=({stages:e,questionsByStage:t,values:r,busy:o,error:s,suppressedKeys:c,onEditStage:u,onConfirm:f})=>{let h=e.map(y=>{let v=t[y]??[];return{stage:y,rows:hv({questions:v,values:r,stageKey:y,suppressedKeys:c}),groups:pv({questions:v,values:r,stageKey:y,suppressedKeys:c}),validation:fv({questions:v,values:r,stageKey:y})}}),g=h.filter(y=>!y.validation.isValid);return d.jsxs("div",{className:"cds-py-2",children:[d.jsx("h2",{className:"cds-mb-1 cds-text-2xl cds-font-bold cds-text-fg",children:"Review your answers"}),d.jsx("p",{className:"cds-mb-5 cds-text-sm cds-text-fg-muted",children:"Carriers price from exactly this — a quick check now avoids surprises later."}),g.length?d.jsxs("div",{className:"cds-mb-5 cds-rounded-xl cds-border cds-border-warning cds-bg-warning-surface cds-p-4",children:[d.jsxs("h3",{className:"cds-mb-2 cds-text-sm cds-font-bold cds-text-fg",children:[g.length===1?"One section needs":`${g.length} sections need`," attention"]}),d.jsx("ul",{className:"cds-space-y-1 cds-text-sm cds-text-fg-muted",children:g.map(y=>d.jsxs("li",{children:[d.jsx("button",{type:"button",onClick:()=>u(y.stage),className:`cds-font-semibold cds-text-fg cds-underline ${Fe}`,children:Ag(y.stage).short}),": ",y.validation.issues[0],y.validation.issues.length>1?` (+${y.validation.issues.length-1} more)`:""]},y.stage))})]}):null,h.filter(y=>y.rows.length>0||y.groups.length>0).map(y=>{let v=Ag(y.stage).short;return d.jsxs("section",{className:EG,children:[d.jsxs("div",{className:"cds-mb-2 cds-flex cds-items-center cds-justify-between",children:[d.jsx("h3",{className:AG,children:v}),d.jsx(MG,{label:v,onClick:()=>u(y.stage)})]}),y.rows.length?d.jsx(iT,{rows:y.rows}):null,y.groups.map(S=>d.jsx(NG,{group:S},S.groupKey))]},y.stage)}),d.jsx(Ql,{message:s}),d.jsx(wG,{disabled:g.length>0,busy:o,onChoose:f}),d.jsx("p",{className:"cds-mt-3 cds-text-xs cds-text-fg-muted",children:"Either choice takes you to your quotes. Submitting runs a soft credit inquiry with the carriers you authorized. It does not affect your credit score."})]})},NG=({group:e})=>e.entries.length?d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"cds-mb-1 cds-text-sm cds-text-fg-muted",children:kG(e)}),d.jsx(t7,{type:"multiple",children:e.entries.map((t,r)=>d.jsxs(WM,{value:`${e.groupKey}-${r}`,className:"cds-border-border last:cds-border-b-0",children:[d.jsx(KM,{className:"cds-py-2 cds-text-sm cds-font-semibold cds-text-fg hover:cds-no-underline",children:t.name}),d.jsx(XM,{className:"cds-pb-3 cds-pt-0",children:d.jsx(iT,{rows:t.rows})})]},`${e.groupKey}-${r}`))})]}):d.jsxs("p",{className:"cds-text-sm cds-text-fg-muted",children:["No ",e.label.toLowerCase()," added yet."]}),RG={vehicle:{fetch:Oo.vehicle.fetch,peek:Oo.vehicle.peek,apply:Dv,dismiss:Pv,mergeInto:aA,skip:()=>!1,alreadyPresent:()=>!1,icon:jd,heading:e=>e===1?"We found a vehicle at your address":`We found ${e} vehicles at your address`,body:"Pick the ones you want covered and we'll fill in the details.",decline:"I'll add them myself",searching:"Looking for vehicles registered at your address…"},driver:{fetch:Oo.driver.fetch,peek:Oo.driver.peek,apply:$v,dismiss:Lv,mergeInto:oA,skip:cA,alreadyPresent:(e,t)=>Kn(e,"drivers").some(r=>cc(aa(r),nA(t.label))),icon:fk,heading:e=>e===1?"We found another driver in your household":`We found ${e} drivers in your household`,body:"Add anyone who drives these vehicles. We already have you.",decline:"I'll add them myself",searching:"Looking for other drivers in your household…"}},OG=({kind:e,quoteId:t,values:r,onApply:o})=>{let s=RG[e],[c]=b.useState(()=>s.skip(r)),u=!!t&&!c,f=u&&t?s.peek(t):void 0,[h,g]=b.useState(f?f.length?"offering":"done":"idle"),[y,v]=b.useState(f??[]),[S,x]=b.useState(()=>new Set((f??[]).filter(I=>I.alreadyOnApplication).map(I=>I.id))),C=b.useRef(!1),A=b.useRef(r);b.useEffect(()=>{A.current=r}),b.useEffect(()=>{!t||C.current||c||(C.current=!0,s.fetch(t).then(I=>{v(I),x(new Set(I.filter(z=>z.alreadyOnApplication).map(z=>z.id))),g(I.length?"offering":"done")}).catch(()=>{g("done")}))},[t,s,c]);let w=s.icon,k=h==="idle"&&u?"searching":h;if(k==="searching")return d.jsx("div",{className:"cds-mb-5 cds-rounded-xl cds-border cds-border-accent/40 cds-bg-highlight cds-p-4","aria-live":"polite",children:d.jsxs("div",{className:"cds-flex cds-items-center cds-gap-3",children:[d.jsx("div",{className:"cds-h-5 cds-w-5 cds-shrink-0 cds-animate-spin cds-rounded-full cds-border-2 cds-border-accent cds-border-t-transparent","aria-hidden":"true"}),d.jsxs("div",{className:"cds-min-w-0 cds-flex-1",children:[d.jsx("p",{className:"cds-text-sm cds-font-bold cds-text-fg",children:s.searching}),d.jsx("p",{className:"cds-mt-0.5 cds-text-sm cds-text-fg-muted",children:"No need to wait — you can fill this in yourself below."})]})]})});if(k!=="offering"&&k!=="applying")return null;let M=y.filter(I=>!s.alreadyPresent(r,I));if(!M.length)return null;let T=I=>{x(z=>{let Z=new Set(z);return Z.has(I)?Z.delete(I):Z.add(I),Z})},N=async()=>{if(!t||!S.size)return;g("applying");let I=await s.apply([...S],t);I.length&&o(s.mergeInto(A.current,I)),g("done")},O=()=>{g("done"),t&&s.dismiss(t)},P=k==="applying";return d.jsx("div",{className:"cds-mb-5 cds-rounded-xl cds-border cds-border-accent/40 cds-bg-highlight cds-p-4",children:d.jsxs("div",{className:"cds-flex cds-items-start cds-gap-3",children:[d.jsx(w,{"aria-hidden":"true",className:"cds-mt-0.5 cds-h-5 cds-w-5 cds-shrink-0 cds-text-accent"}),d.jsxs("div",{className:"cds-min-w-0 cds-flex-1",children:[d.jsx("h3",{className:"cds-text-sm cds-font-bold cds-text-fg",children:s.heading(M.length)}),d.jsx("p",{className:"cds-mt-0.5 cds-text-sm cds-text-fg-muted",children:s.body}),d.jsx("ul",{className:"cds-mt-3 cds-space-y-2",children:M.map(I=>d.jsx("li",{children:d.jsxs("label",{className:"cds-flex cds-cursor-pointer cds-items-start cds-gap-2 cds-text-sm cds-text-fg",children:[d.jsx("input",{type:"checkbox",className:"cds-mt-0.5",checked:S.has(I.id),disabled:P,onChange:()=>T(I.id)}),d.jsx("span",{"data-credify-redact":!0,className:"cds-font-semibold",children:I.label})]})},I.id))}),d.jsxs("div",{className:"cds-mt-4 cds-flex cds-flex-wrap cds-items-center cds-gap-3",children:[d.jsx("button",{type:"button",disabled:P||!S.size,onClick:()=>void N(),className:`cds-rounded-lg cds-bg-accent cds-px-4 cds-py-2 cds-text-sm cds-font-bold cds-text-primary-foreground hover:cds-bg-accent disabled:cds-cursor-not-allowed disabled:cds-opacity-50 ${Fe}`,children:P?"Adding…":"Use these"}),d.jsx("button",{type:"button",disabled:P,onClick:O,className:`cds-text-sm cds-font-semibold cds-text-fg cds-underline disabled:cds-opacity-50 ${Fe}`,children:s.decline})]})]})]})})},jG=2500,DG=e=>{if(!e)return null;let t=Math.round((Date.parse(e)-Date.now())/864e5);return!Number.isFinite(t)||t<1?null:t===1?"It works for 1 more day.":`It works for the next ${t} days.`},PG=({quoteId:e})=>{let[t,r]=b.useState({kind:"pending"}),[o,s]=b.useState(!1),c=b.useRef(null),u=b.useRef(!1);b.useEffect(()=>{u.current||(u.current=!0,(async()=>{try{let[{issueResumeLink:g},{buildResumeUrl:y}]=await Promise.all([Be(()=>Promise.resolve().then(()=>gn),void 0),Be(()=>Promise.resolve().then(()=>Bg),void 0).then(x=>x.s)]),{resumeToken:v,expiresAt:S}=await g(e??void 0);r({kind:"ready",url:y(v),expiresAt:S})}catch{r({kind:"unavailable"})}})())},[e]),b.useEffect(()=>{if(!o)return;let g=setTimeout(()=>s(!1),jG);return()=>clearTimeout(g)},[o]);let f=b.useCallback(async g=>{c.current?.select();try{await navigator.clipboard.writeText(g),s(!0)}catch{s(!1)}},[]);if(t.kind!=="ready")return null;let h=DG(t.expiresAt);return d.jsx("div",{"data-credify-resume-link":!0,className:"cds-mt-6 cds-rounded-xl cds-border cds-border-border cds-bg-surface-muted cds-p-4",children:d.jsxs("div",{className:"cds-flex cds-items-start cds-gap-3",children:[d.jsx(b9,{"aria-hidden":"true",className:"cds-mt-0.5 cds-h-5 cds-w-5 cds-shrink-0 cds-text-fg"}),d.jsxs("div",{className:"cds-min-w-0 cds-flex-1",children:[d.jsx("h3",{className:"cds-text-sm cds-font-bold cds-text-fg",children:"Want to think it over?"}),d.jsxs("p",{className:"cds-mt-1 cds-text-sm cds-text-fg-muted",children:["Save this link and open it on any device to come back to these quotes.",h?` ${h}`:""]}),d.jsxs("div",{className:"cds-mt-3 cds-flex cds-flex-col cds-gap-2 sm:cds-flex-row",children:[d.jsx("input",{ref:c,type:"text",readOnly:!0,value:t.url,"aria-label":"Link back to your quotes",onFocus:g=>g.currentTarget.select(),className:`cds-min-w-0 cds-flex-1 cds-rounded-lg cds-border cds-border-input cds-bg-surface-elevated cds-px-3 cds-py-2 cds-text-xs cds-text-fg-muted ${Fe}`}),d.jsxs("button",{type:"button",onClick:()=>void f(t.url),className:`cds-inline-flex cds-shrink-0 cds-items-center cds-justify-center cds-gap-1.5 cds-rounded-lg cds-border cds-border-primary cds-px-4 cds-py-2 cds-text-sm cds-font-semibold cds-text-fg cds-transition-colors hover:cds-bg-primary hover:cds-text-primary-foreground ${Fe}`,children:[d.jsx(o?pc:Kz,{"aria-hidden":"true",className:"cds-h-4 cds-w-4"}),o?"Copied":"Copy link"]})]}),d.jsx("p",{"aria-live":"polite",className:"sr-only",children:o?"Link copied to clipboard":""}),d.jsx("p",{className:"cds-mt-2 cds-text-xs cds-text-fg-muted",children:"Anyone with this link can see your quote, so keep it to yourself. You'll still confirm by text message before anything is submitted to a carrier."})]})]})})},IG=3e3,$G=33e4,uy=e=>`$${(e/100).toLocaleString("en-US",{maximumFractionDigits:0})}`,LG=e=>e.split(/\s+/).filter(Boolean).slice(0,2).map(t=>t[0]?.toUpperCase()??"").join(""),zG=[{market:"admitted",label:"Admitted"},{market:"non_admitted",label:"Non-admitted"},{market:"not_quoted",label:"Not quoted"}],cd=e=>({tab:`rates-tab-${e}`,panel:`rates-panel-${e}`}),sT=({rate:e,size:t})=>{let r=yn(e.carrier_name),o=t==="sm"?"cds-h-9 cds-w-9":"cds-h-10 cds-w-10";return e.carrier_logo_base64?d.jsx("img",{src:`data:image/png;base64,${e.carrier_logo_base64}`,alt:r,className:`${o} cds-rounded cds-object-contain`}):d.jsx("span",{"aria-hidden":"true",className:`cds-flex ${o} cds-shrink-0 cds-items-center cds-justify-center cds-rounded cds-bg-primary/10 cds-text-sm cds-font-bold cds-text-fg`,children:LG(r)})},V2={PersonalAuto:"Personal Auto",PersonalHome:"Homeowners"},HG={PersonalHome:gd,PersonalAuto:jd,Flood:Pd,ExcessFlood:Pd},xd=({lob:e,size:t="md"})=>{let r=e&&HG[e]||Dd,o=t==="sm"?"cds-h-5 cds-w-5":"cds-h-7 cds-w-7",s=t==="sm"?"cds-h-3 cds-w-3":"cds-h-4 cds-w-4";return d.jsx("span",{"aria-hidden":"true",className:`cds-inline-flex ${o} cds-shrink-0 cds-items-center cds-justify-center cds-rounded-full cds-bg-accent/15 cds-ring-1 cds-ring-inset cds-ring-ring/25`,children:d.jsx(r,{className:`${s} cds-text-accent`,strokeWidth:2.5})})},UG=({rate:e,showLob:t,isSelected:r,isRequested:o,lobLocked:s,onSelect:c})=>{let u=yn(e.carrier_name),f=yA(e),h=t?Wr(e.lob):null,g=e.effective_date&&e.policy_end_date?`${e.effective_date} – ${e.policy_end_date}`:e.effective_date;return d.jsxs("div",{className:`cds-rounded-xl cds-border cds-bg-surface-elevated cds-p-4 ${o?"cds-border-accent cds-ring-2 ring-emerald-500/30":r?"cds-border-accent cds-ring-2 cds-ring-ring/30":"cds-border-border"} ${s?"cds-opacity-60":""}`,children:[h?d.jsxs("p",{className:"cds-mb-2 cds-flex cds-items-center cds-gap-1.5 cds-text-xs cds-font-semibold cds-uppercase cds-tracking-wide cds-text-fg",children:[d.jsx(xd,{lob:e.lob,size:"sm"}),h]}):null,d.jsxs("div",{className:"cds-flex cds-items-center cds-gap-3",children:[d.jsx(sT,{rate:e,size:"md"}),d.jsxs("div",{className:"cds-min-w-0 cds-flex-1",children:[d.jsx("p",{className:"cds-truncate cds-font-bold cds-text-fg",children:u}),d.jsxs("p",{className:"cds-text-xs cds-text-fg-muted",children:[uy(e.premium_cents)," for ",e.term_months," months"]}),e.admitted_status==="non_admitted"?d.jsx("p",{className:"cds-mt-1 cds-inline-block cds-rounded cds-bg-warning-surface cds-px-1.5 cds-py-0.5 cds-text-[11px] cds-font-semibold cds-text-warning-foreground",children:"Surplus lines"}):null]}),d.jsxs("div",{className:"cds-text-right",children:[d.jsx("p",{className:"cds-text-xl cds-font-extrabold cds-text-fg",children:uy(Zl(e))}),d.jsx("p",{className:"cds-text-xs cds-text-fg-muted",children:"/mo"})]})]}),g?d.jsxs("p",{className:"cds-mt-2 cds-text-xs cds-text-fg-muted",children:["Effective ",g]}):null,f.length?d.jsx("dl",{className:"cds-mt-3 cds-space-y-1 cds-border-t cds-border-border cds-pt-3 cds-text-xs",children:f.map((y,v)=>d.jsxs("div",{className:"cds-flex cds-justify-between cds-gap-2",children:[d.jsx("dt",{className:"cds-text-fg-muted",children:y.label}),d.jsx("dd",{className:"cds-text-right cds-font-semibold cds-text-fg",children:y.value})]},`${y.label}-${v}`))}):null,e.carrier_quote_id?d.jsxs("p",{className:"cds-mt-2 cds-text-xs cds-text-fg-muted",children:["Carrier quote ID: ",e.carrier_quote_id]}):null,o?d.jsx("p",{className:"cds-mt-3 cds-rounded-lg cds-bg-highlight cds-px-4 cds-py-2 cds-text-center cds-text-sm cds-font-bold cds-text-accent",children:"Request sent"}):s?d.jsxs("p",{className:"cds-mt-3 cds-text-center cds-text-xs cds-text-fg-muted",children:["You already have a request in for ",Wr(e.lob)??"this line","."]}):d.jsx("button",{type:"button",onClick:c,className:`cds-mt-3 cds-w-full cds-rounded-lg cds-border cds-border-accent cds-px-4 cds-py-2 cds-text-sm cds-font-bold cds-text-fg hover:cds-bg-highlight ${Fe}`,children:r?"Selected":"Continue with this quote"})]})},BG=({rate:e})=>{let t=(e.decline_reasons??[]).filter(Boolean),r=e.decline_category?.trim();return d.jsxs("div",{className:"cds-flex cds-gap-3 cds-rounded-xl cds-border cds-border-border cds-bg-surface-elevated cds-p-4",children:[d.jsx(sT,{rate:e,size:"sm"}),d.jsxs("div",{className:"cds-min-w-0 cds-flex-1",children:[d.jsx("p",{className:"cds-font-bold cds-text-fg",children:yn(e.carrier_name)}),r?d.jsx("p",{className:"cds-mt-0.5 cds-text-xs cds-font-semibold cds-uppercase cds-tracking-wide cds-text-fg-muted",children:r}):null,t.length?d.jsx("ul",{className:"cds-mt-2 cds-list-outside cds-list-disc cds-space-y-1 cds-pl-5 cds-text-sm cds-text-fg-muted",children:t.map((o,s)=>d.jsx("li",{children:o},`${o}-${s}`))}):d.jsx("p",{className:"cds-mt-2 cds-text-sm cds-text-fg-muted",children:"This carrier did not return a quote."})]})]})},Ll=({quoteId:e})=>e?d.jsxs("div",{className:"cds-mt-6 cds-inline-block cds-rounded-lg cds-border cds-border-border cds-bg-surface-muted cds-px-4 cds-py-2.5 cds-text-center",children:[d.jsx("p",{className:"cds-text-xs cds-text-fg-muted",children:"Reference ID"}),d.jsx("p",{className:"cds-mt-0.5 cds-select-all cds-font-mono cds-text-sm cds-font-semibold cds-text-fg",children:e})]}):null,Jm=({heading:e,body:t,quoteId:r})=>d.jsxs("div",{className:"cds-py-6 cds-text-center",children:[d.jsx("h2",{className:"cds-mb-2 cds-text-2xl cds-font-bold cds-text-fg",children:e}),d.jsx("p",{className:"cds-mb-6 cds-text-fg-muted",children:t}),d.jsxs("a",{href:is,onClick:()=>ms("phone_call_click",{placement:"quote_rates_fallback",phone:Xr}),className:`cds-inline-flex cds-items-center cds-gap-2 cds-rounded-xl cds-bg-accent cds-px-8 cds-py-3.5 cds-text-base cds-font-bold cds-text-primary-foreground hover:cds-bg-accent ${Fe}`,children:[d.jsx(lk,{"aria-hidden":"true",className:"cds-h-4 cds-w-4"}),"Call ",Xr]}),d.jsx("div",{children:d.jsx(Ll,{quoteId:r})})]}),FG={Auto:["PersonalAuto"],Home:["PersonalHome"],Bundle:["PersonalAuto","PersonalHome"]},Ki=e=>e.length<=1?e[0]??"":`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`,eg=e=>e.lob??"_other",tg=(e,t)=>{let r=new Set(t.map(o=>o.lob));return[...new Set(e.filter(o=>Ev(o)!=="not_quoted").map(o=>o.lob).filter(o=>!!o))].filter(o=>!r.has(o))},qG=({appetites:e,product:t})=>{let r=FG[t]??Object.keys(e??{}),o=[...new Set(r.flatMap(s=>e?.[s]??[]).map(yn))].slice(0,8);return o.length?d.jsxs("p",{className:"cds-mt-4 cds-text-sm cds-text-fg-muted",children:["Checking ",o.join(", "),o.length>=8?" and more":"","…"]}):null},GG=({product:e,quoteId:t,describeField:r,onFixAnswers:o,onRetry:s,onBound:c})=>{let[u,f]=b.useState({kind:"polling"}),[h,g]=b.useState(null),[y,v]=b.useState(),[S,x]=b.useState({}),[C,A]=b.useState([]),[w,k]=b.useState(!1),[M,T]=b.useState(""),[N,O]=b.useState(),[P,I]=b.useState(!1),[z,Z]=b.useState(0),[re,ne]=b.useState(!1),[Y,le]=b.useState(!1),[ue,be]=b.useState(),L=b.useRef(0),V=b.useCallback(()=>{L.current+=1;let J=L.current,xe=Date.now(),Te=async()=>{if(J===L.current){try{let{quote:Ye}=await bf(t??void 0);if(J!==L.current)return;v(Ye);let oo=Ye?.rates_status;if(oo==="completed"){let{rates:Tt}=await Tv(t??void 0);if(J!==L.current)return;let fa=Tt??[];f(fa.length?{kind:"ready",rates:fa}:{kind:"no_rates"});return}if(oo==="no_rates"){f({kind:"no_rates"});return}if(oo==="failed"){let Tt=Ye?.last_validation_errors??[];if(Ye?.last_failure_code==="BOLT_VALIDATION"&&Tt.length){f({kind:"validation_failed",errors:Tt,message:Ye?.rates_failure_message??void 0});return}let fa=Ye?.last_failure_code==="UNHANDLED"||Ye?.last_failure_code==="DISPATCH"||Ye?.last_failure_code==="BOLT_RATES";f({kind:"failed",retryable:fa,message:Ye?.rates_failure_message??void 0}),Kr(Error(Ye?.rates_failure_message||`Rating failed: ${Ye?.last_failure_code??"unknown"}`),{phase:"rates_failed",product:e,quoteId:t,failureCode:Ye?.last_failure_code});return}}catch(Ye){Av("rates poll failed",{status:Ro(Ye)})}if(Date.now()-xe>=$G){f({kind:"failed",retryable:!0}),Kr(Error("Rating timed out before returning a result"),{phase:"rates_timeout",product:e,quoteId:t});return}setTimeout(()=>void Te(),IG)}};Te()},[t,e]);b.useEffect(()=>(V(),()=>{L.current+=1}),[V]),b.useEffect(()=>{if(z<=0)return;let J=setTimeout(()=>Z(xe=>xe-1),1e3);return()=>clearTimeout(J)},[z]);let B=b.useMemo(()=>mA(u.kind==="ready"?u.rates:[]),[u]),te=J=>Array.isArray(J)?J.filter(xe=>xe&&typeof xe=="object"):[],ce=b.useMemo(()=>u.kind==="validation_failed"?bA(u.errors,{describeField:r,vehicles:te(y?.vehicles),drivers:te(y?.drivers)}):void 0,[u,r,y]),R=h??(B.admitted.length?"admitted":B.non_admitted.length?"non_admitted":B.not_quoted.length?"not_quoted":"admitted"),q=async(J,xe)=>{if(!t)return;f({kind:"verify",rate:J,rates:xe}),O(void 0),T("");let Te=String(y?.phone??"");try{await kv(t,Te),Z(60)}catch(Ye){Ye instanceof Bo&&Ye.statusCode===429?Z(Ye.retryAfterSeconds??60):O("We could not text your code. Try again in a moment.")}},ee=async(J,xe)=>{if(!(!t||P)){I(!0),O(void 0);try{let{isVerified:Te}=await Mv(t,M);if(!Te){O("That code did not match. Check it and try again.");return}f({kind:"ready",rates:xe.length?xe:[J]}),k(!0),x(Ye=>({...Ye,[eg(J)]:J.quote_rate_id}))}catch(Te){O(Te instanceof Bo&&Te.statusCode===429?"Too many attempts. Request a new code.":"We could not verify that code. Please try again.")}finally{I(!1)}}},oe=J=>{Fo(),f({kind:"bound",rates:J}),c?.(J)},ge=async J=>{if(Y||!J.length)return;le(!0),be(void 0);try{await Rv(J.map(Te=>Te.quote_rate_id),!0)}catch{be(J.length>1?"We could not submit those requests. Please call us and we will finish them for you.":"We could not submit that request. Please call us and we will finish it for you.");return}finally{le(!1)}let xe=[...C,...J];if(A(xe),x({}),tg(u.kind==="ready"?u.rates:[],xe).length){ne(!1);return}oe(xe)};if(u.kind==="polling")return d.jsxs("div",{className:"cds-py-10 cds-text-center","aria-live":"polite",children:[d.jsx("div",{className:"cds-mx-auto cds-mb-6 cds-h-10 cds-w-10 cds-animate-spin cds-rounded-full cds-border-4 cds-border-accent cds-border-t-transparent","aria-hidden":"true"}),d.jsx("h2",{className:"cds-mb-2 cds-text-2xl cds-font-bold cds-text-fg",children:"Getting your quotes…"}),d.jsx("p",{className:"cds-text-fg-muted",children:"Please keep this window open while we run your details through our carriers. This usually takes a minute or two."}),d.jsx("p",{className:"cds-mt-2 cds-text-fg-muted",children:"If you get disconnected, your progress is saved in this browser — reopen this page and you'll pick up where you left off. Thanks for your patience."}),d.jsx(qG,{appetites:y?.appetites,product:e})]});if(u.kind==="validation_failed"){let J=ce;return!J||J.isOpaque?d.jsx(Jm,{heading:"Let's finish this one together",body:"The carrier needs a couple of details we can't collect online. An agent can sort it out with you in a few minutes.",quoteId:t}):d.jsxs("div",{className:"cds-py-6",children:[d.jsxs("div",{className:"cds-mb-5 cds-rounded-xl cds-border cds-border-warning cds-bg-warning-surface cds-p-4",children:[d.jsxs("div",{className:"cds-flex cds-items-start cds-gap-3",children:[d.jsx(uk,{"aria-hidden":"true",className:"cds-mt-0.5 cds-h-5 cds-w-5 cds-shrink-0 cds-text-warning"}),d.jsxs("div",{children:[d.jsx("h2",{className:"cds-text-lg cds-font-bold cds-text-fg",children:"A few answers need another look"}),d.jsx("p",{className:"cds-mt-1 cds-text-sm cds-text-fg-muted",children:"The carrier couldn't price your quote until these are sorted. It only takes a minute."})]})]}),d.jsx("div",{className:"cds-mt-4 cds-space-y-4",children:J.groups.map(xe=>d.jsxs("div",{children:[d.jsx("p",{className:"cds-text-sm cds-font-bold cds-text-fg",children:xe.heading}),xe.sharedMessage?d.jsxs("p",{className:"cds-mt-1 cds-text-sm cds-text-fg-muted",children:[xe.sharedMessage," ",d.jsx("span",{className:"cds-font-semibold",children:vA(xe.labels)}),"."]}):d.jsx("ul",{className:"cds-mt-1 cds-list-outside cds-list-disc cds-space-y-1 cds-pl-5 cds-text-sm cds-text-fg-muted",children:xe.issues.map(Te=>d.jsx("li",{children:_A(Te)},`${Te.label??""}-${Te.message}`))})]},xe.id))}),J.otherCount?d.jsxs("p",{className:"cds-mt-4 cds-text-xs cds-text-fg-muted",children:["The carrier flagged ",J.otherCount," other ",J.otherCount===1?"detail":"details"," we'll check with you if it still won't price."]}):null]}),d.jsx($l,{onClick:()=>o(u.errors),children:"Fix my answers"}),d.jsxs("p",{className:"cds-mt-4 cds-text-center cds-text-sm cds-text-fg-muted",children:["Or call"," ",d.jsx("a",{href:is,onClick:()=>ms("phone_call_click",{placement:"quote_rates_validation",phone:Xr}),className:"cds-font-semibold cds-text-fg cds-underline",children:Xr})," ","and an agent will finish it with you."]}),d.jsx("div",{className:"cds-text-center",children:d.jsx(Ll,{quoteId:t})})]})}if(u.kind==="failed")return d.jsx("div",{className:"cds-py-6",children:u.retryable?d.jsxs("div",{className:"cds-text-center",children:[d.jsx("h2",{className:"cds-mb-2 cds-text-2xl cds-font-bold cds-text-fg",children:"That took longer than expected"}),d.jsx("p",{className:"cds-mb-6 cds-text-fg-muted",children:u.message??"Our carrier connection hiccuped. One more try usually does it."}),d.jsx($l,{onClick:()=>{f({kind:"polling"}),s().then(J=>{J&&V()})},children:"Try again"}),d.jsxs("p",{className:"cds-mt-4 cds-text-sm cds-text-fg-muted",children:["Or call"," ",d.jsx("a",{href:is,className:"cds-font-semibold cds-text-fg cds-underline",children:Xr})," ","and an agent will pull them for you."]}),d.jsx(Ll,{quoteId:t})]}):d.jsx(Jm,{heading:"Let's get your quotes another way",body:"A licensed agent can pull your quotes over the phone in a few minutes — no waiting.",quoteId:t})});if(u.kind==="no_rates")return d.jsx(Jm,{heading:"No online offers for this one",body:"That happens with some homes and vehicles. An agent has access to carriers that don't quote online.",quoteId:t});if(u.kind==="verify"){let{rate:J,rates:xe}=u;return d.jsxs("div",{className:"cds-py-6",children:[d.jsx("h2",{className:"cds-mb-2 cds-text-2xl cds-font-bold cds-text-fg",children:"Verify your number"}),d.jsxs("p",{className:"cds-mb-6 cds-text-fg-muted",children:["We texted a 6-digit code to confirm it's you before we send your ",J.carrier_name," request."]}),d.jsx("label",{htmlFor:"sms-code",className:"cds-mb-1 cds-block cds-text-sm cds-font-semibold cds-text-fg",children:"Verification code"}),d.jsx("input",{id:"sms-code",type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:M,onChange:Te=>T(Te.target.value.replace(/\D/g,"").slice(0,6)),className:`${_t} cds-tracking-[0.4em]`}),d.jsx(Ql,{message:N}),d.jsx($l,{disabled:M.length!==6||P,onClick:()=>void ee(J,xe),children:P?"Verifying…":"Verify and continue"}),d.jsx("button",{type:"button",disabled:z>0,onClick:()=>void q(J,xe),className:`cds-mt-3 cds-w-full cds-rounded-lg cds-px-4 cds-py-2 cds-text-sm cds-font-semibold cds-text-fg cds-underline disabled:cds-no-underline disabled:cds-opacity-60 ${Fe}`,children:z>0?`Resend code in ${z}s`:"Resend code"})]})}if(u.kind==="bound"){let J=u.rates.length===1?u.rates[0]:void 0;return d.jsxs("div",{className:"cds-py-10 cds-text-center",children:[d.jsx(Dd,{"aria-hidden":"true",className:"cds-mx-auto cds-mb-4 cds-h-12 cds-w-12 cds-text-accent"}),d.jsx("h2",{className:"cds-mb-2 cds-text-2xl cds-font-bold cds-text-fg",children:"You're all set"}),J?d.jsxs("p",{className:"cds-text-fg-muted",children:["A licensed agent is finalizing your ",yn(J.carrier_name)," policy and will call you shortly to confirm the details."]}):d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"cds-mb-4 cds-text-fg-muted",children:"A licensed agent is finalizing these policies and will call you shortly to confirm the details."}),d.jsx("ul",{className:"cds-mx-auto cds-max-w-sm cds-space-y-2 cds-text-left",children:u.rates.map(xe=>d.jsxs("li",{className:"cds-flex cds-items-center cds-gap-2 cds-rounded-lg cds-border cds-border-border cds-bg-surface-elevated cds-p-3 cds-text-sm",children:[d.jsx(xd,{lob:xe.lob}),d.jsxs("span",{children:[d.jsx("span",{className:"cds-font-bold cds-text-fg",children:yn(xe.carrier_name)}),Wr(xe.lob)?d.jsxs("span",{className:"cds-text-fg-muted",children:[" — ",Wr(xe.lob)]}):null]})]},xe.quote_rate_id))})]}),d.jsx(Ll,{quoteId:t}),d.jsxs("p",{className:"cds-mt-2 cds-text-xs cds-text-fg-muted",children:["Quote this if you call us about ",u.rates.length>1?"these requests":"this request","."]})]})}let Ee=new Set(C.map(J=>J.quote_rate_id)),Se=new Set(C.map(J=>J.lob)),de=J=>S[eg(J)]===J.quote_rate_id,he=u.rates.filter(J=>de(J)&&!Ee.has(J.quote_rate_id)),$e=w,De=tg(u.rates,C),ze=tg(u.rates,[]).length>1,at=De.filter(J=>!he.some(xe=>xe.lob===J)),ot=zG.filter(J=>J.market!=="not_quoted"||B.not_quoted.length>0),At=B.admitted.length+B.non_admitted.length,Dn=gA(R==="not_quoted"?B.not_quoted:B[R],{sortBy:R==="not_quoted"?"carrier":"premium"}),Qn=e==="Bundle"?[{lob:"PersonalAuto",label:V2.PersonalAuto},{lob:"PersonalHome",label:V2.PersonalHome}].filter(({lob:J})=>!u.rates.some(xe=>xe.lob===J)):[],Pn=J=>{let xe=J.key==="ArrowRight"?1:J.key==="ArrowLeft"?-1:0,Te=J.key==="Home"?ot[0]:J.key==="End"?ot[ot.length-1]:xe?ot[(ot.findIndex(Ye=>Ye.market===R)+xe+ot.length)%ot.length]:void 0;Te&&(J.preventDefault(),g(Te.market),setTimeout(()=>document.getElementById(cd(Te.market).tab)?.focus(),0))};return d.jsxs("div",{className:"cds-py-2",children:[d.jsx("h2",{className:"cds-mb-1 cds-text-2xl cds-font-bold cds-text-fg",children:"Your quotes"}),d.jsx("p",{className:"cds-mb-4 cds-text-sm cds-text-fg-muted",children:"Real prices from our carriers, based on the answers you gave."}),Qn.length?d.jsx("div",{className:"cds-mb-4 cds-space-y-1",children:Qn.map(({lob:J,label:xe})=>d.jsxs("p",{className:"cds-text-sm cds-text-fg-muted",children:["Sorry, no rates found for ",xe,"."]},J))}):null,C.length>0&&De.length>0?d.jsxs("div",{className:"cds-mb-5 cds-rounded-xl cds-border cds-border-accent cds-bg-highlight cds-p-4",role:"status","aria-live":"polite",children:[d.jsxs("div",{className:"cds-flex cds-items-start cds-gap-3",children:[d.jsx(Dd,{"aria-hidden":"true",className:"cds-mt-0.5 cds-h-5 cds-w-5 cds-shrink-0 cds-text-accent"}),d.jsxs("div",{children:[d.jsxs("h3",{className:"cds-text-sm cds-font-bold cds-text-fg",children:["We've sent your ",Ki(C.map(J=>Wr(J.lob)??yn(J.carrier_name)))," request to"," ",Ki(C.map(J=>yn(J.carrier_name)))]}),d.jsxs("p",{className:"cds-mt-1 cds-text-sm cds-text-fg-muted",children:["You can still add ",Ki(De.map(J=>Wr(J)??J))," — pick a quote above and we'll send that one too. You won't need another verification code."]})]})]}),d.jsx("button",{type:"button",onClick:()=>oe(C),className:`cds-mt-3 cds-text-sm cds-font-semibold cds-text-fg cds-underline ${Fe}`,children:"No thanks, I'm done"})]}):null,d.jsx("div",{className:"cds-mb-4 -cds-mx-1 cds-overflow-x-auto cds-border-b cds-border-border cds-px-1",children:d.jsx("div",{className:"cds-flex cds-items-center cds-gap-4 sm:cds-gap-6",role:"tablist","aria-label":"Rate market type",children:ot.map(J=>{let xe=J.market===R,Te=cd(J.market);return d.jsxs("button",{id:Te.tab,type:"button",role:"tab","aria-selected":xe,"aria-controls":Te.panel,tabIndex:xe?0:-1,onClick:()=>g(J.market),onKeyDown:Pn,className:`cds-whitespace-nowrap cds-border-b-2 cds-px-1 cds-py-2 cds-text-xs cds-font-semibold cds-transition-colors sm:cds-text-sm ${Fe} ${xe?"cds-border-accent cds-text-fg":"cds-border-transparent cds-text-fg-muted hover:cds-text-fg"}`,children:[J.label," (",B[J.market].length,")"]},J.market)})})}),d.jsxs("div",{id:cd(R).panel,role:"tabpanel","aria-labelledby":cd(R).tab,tabIndex:0,className:`cds-mb-6 cds-outline-none ${Fe}`,children:[R==="admitted"&&!B.admitted.length?d.jsx("p",{className:"cds-text-sm cds-text-fg-muted",children:"No admitted-market carriers priced this quote."}):null,R==="non_admitted"&&!B.non_admitted.length?d.jsx("p",{className:"cds-text-sm cds-text-fg-muted",children:"No surplus-lines carriers priced this quote."}):null,R==="not_quoted"?d.jsx("p",{className:"cds-mb-3 cds-text-sm cds-text-fg-muted",children:"These carriers looked at your details and passed. Their reasons are below."}):null,Dn.map((J,xe)=>d.jsxs("div",{className:"cds-mb-5 last:cds-mb-0",children:[xe?d.jsx("div",{"aria-hidden":"true",className:"cds-mb-5 cds-h-px cds-bg-gradient-to-r cds-from-transparent cds-via-brand-accent/40 cds-to-transparent"}):null,J.lob?d.jsxs("h3",{className:"cds-mb-2 cds-flex cds-items-center cds-gap-2 cds-text-sm cds-font-bold cds-uppercase cds-tracking-wide cds-text-fg",children:[d.jsx(xd,{lob:J.lob}),J.title]}):null,d.jsx("ul",{className:"cds-space-y-3",children:J.rates.map(Te=>R==="not_quoted"?d.jsx("li",{children:d.jsx(BG,{rate:Te})},Te.quote_rate_id):d.jsx("li",{children:d.jsx(UG,{rate:Te,showLob:!J.lob,isSelected:de(Te),isRequested:Ee.has(Te.quote_rate_id),lobLocked:!Ee.has(Te.quote_rate_id)&&Se.has(Te.lob),onSelect:()=>$e?x(Ye=>({...Ye,[eg(Te)]:Te.quote_rate_id})):void q(Te,u.rates)})},Te.quote_rate_id))})]},J.lob??"all"))]}),At?null:d.jsxs("div",{className:"cds-mb-6 cds-rounded-xl cds-border cds-border-border cds-bg-surface-muted cds-p-4 cds-text-center",children:[d.jsx("p",{className:"cds-mb-3 cds-text-sm cds-text-fg-muted",children:"No carrier priced this one online. An agent has access to carriers that don't quote on the web."}),d.jsxs("a",{href:is,onClick:()=>ms("phone_call_click",{placement:"quote_rates_all_declined",phone:Xr}),className:`cds-inline-flex cds-items-center cds-gap-2 cds-rounded-xl cds-bg-accent cds-px-6 cds-py-3 cds-text-sm cds-font-bold cds-text-primary-foreground hover:cds-bg-accent ${Fe}`,children:[d.jsx(lk,{"aria-hidden":"true",className:"cds-h-4 cds-w-4"}),"Call ",Xr]}),d.jsx("div",{children:d.jsx(Ll,{quoteId:t})})]}),he.length?d.jsxs("div",{className:"cds-rounded-xl cds-border cds-border-border cds-bg-surface-muted cds-p-4",children:[d.jsxs("h3",{className:"cds-mb-2 cds-text-sm cds-font-bold cds-text-fg",children:["Finish with ",Ki(he.map(J=>yn(J.carrier_name)))]}),ze?d.jsx("ul",{className:"cds-mb-3 cds-space-y-1",children:he.map(J=>d.jsxs("li",{className:"cds-flex cds-justify-between cds-gap-2 cds-text-xs",children:[d.jsxs("span",{className:"cds-flex cds-items-center cds-gap-1.5 cds-text-fg-muted",children:[d.jsx(xd,{lob:J.lob,size:"sm"}),Wr(J.lob)??"Policy"]}),d.jsxs("span",{className:"cds-text-right cds-font-semibold cds-text-fg",children:[yn(J.carrier_name)," · ",uy(Zl(J)),"/mo"]})]},J.quote_rate_id))}):null,d.jsxs("label",{className:"cds-mb-3 cds-flex cds-cursor-pointer cds-items-start cds-gap-2 cds-text-xs cds-text-fg-muted",children:[d.jsx("input",{type:"checkbox",checked:re,onChange:J=>ne(J.target.checked),className:"cds-mt-0.5"}),d.jsxs("span",{children:["I acknowledge the"," ",d.jsx("a",{href:"/privacy-policy",className:"cds-font-semibold cds-text-fg cds-underline",children:"Privacy Notice"})," ","and authorize Credify to share my information with"," ",d.jsx("span",{className:"cds-font-semibold",children:Ki(he.map(J=>yn(J.carrier_name)))})," to complete my"," ",he.length>1?"applications":"application","."]})]}),at.length?d.jsxs("p",{className:"cds-mb-3 cds-text-xs cds-text-fg-muted",children:["You haven't picked a ",Ki(at.map(J=>Wr(J)??J))," quote yet — choose one above to request both together, or go ahead and we'll ask about it after."]}):null,d.jsx(Ql,{message:ue}),d.jsx($l,{disabled:!re||Y,onClick:()=>void ge(he),children:Y?"Submitting…":he.length>1?"Request these policies":"Request this policy"})]}):null,d.jsx(PG,{quoteId:t}),d.jsx("p",{className:"cds-mt-6 cds-text-xs cds-leading-relaxed cds-text-fg-muted",children:"Quotes are estimates based on the information provided and are subject to carrier underwriting. Final premiums may differ."})]})},VG=[[500,599,"NY"],[1e3,2799,"MA"],[2800,2999,"RI"],[3e3,3899,"NH"],[3900,4999,"ME"],[5e3,5999,"VT"],[6e3,6999,"CT"],[7e3,8999,"NJ"],[1e4,14999,"NY"],[15e3,19699,"PA"],[19700,19999,"DE"],[2e4,20599,"DC"],[20600,21999,"MD"],[22e3,24699,"VA"],[24700,26899,"WV"],[27e3,28999,"NC"],[29e3,29999,"SC"],[3e4,31999,"GA"],[32e3,34999,"FL"],[35e3,36999,"AL"],[37e3,38599,"TN"],[38600,39799,"MS"],[39800,39999,"GA"],[4e4,42799,"KY"],[43e3,45999,"OH"],[46e3,47999,"IN"],[48e3,49799,"MI"],[5e4,52899,"IA"],[53e3,54999,"WI"],[55e3,56799,"MN"],[57e3,57799,"SD"],[58e3,58899,"ND"],[59e3,59999,"MT"],[6e4,62999,"IL"],[63e3,65899,"MO"],[66e3,67999,"KS"],[68e3,69399,"NE"],[7e4,71499,"LA"],[71600,72999,"AR"],[73e3,73300,"OK"],[73301,73301,"TX"],[73302,74999,"OK"],[75e3,79999,"TX"],[8e4,81699,"CO"],[82e3,83199,"WY"],[83200,83899,"ID"],[84e3,84799,"UT"],[85e3,86599,"AZ"],[87e3,88499,"NM"],[88500,88599,"TX"],[88900,89899,"NV"],[9e4,96199,"CA"],[96700,96899,"HI"],[97e3,97999,"OR"],[98e3,99499,"WA"],[99500,99999,"AK"]],ud=e=>{if(!/^\d{5}$/.test(e))return;let t=Number(e);return VG.find(([r,o])=>t>=r&&t<=o)?.[2]},ZG=()=>{typeof document<"u"&&delete document.documentElement.dataset.credifyResuming},Z2=()=>({[iv]:sf,[ZE]:VE}),ng=e=>[...Gl[e]],YG=6,WG=new Set(["HomePolicy","BundlePolicy"]),KG=new Set(["processing","completed","no_rates","failed"]),Y2=(e,t)=>{if(!t)return 0;if(KG.has(String(t.rates_status??"")))return e.length+1;let r=e.indexOf(t.current_stage);return r>0?r:0},XG=()=>{let e=new URLSearchParams(window.location.search).get("credify_test");return e!==null&&(e===""||/^(1|true|yes)$/i.test(e.trim()))},lT=()=>AA()||XG(),QG=()=>lT(),rg="78701",JG=()=>{let e=0;return t=>{t>YG||t<=e||(e=t,ms("quote_step_completed",{stepIndex:t}))}},eV=e=>{let[t,r]=b.useState(null),[o,s]=b.useState({product:e}),[c,u]=b.useState(()=>ng(e)),[f,h]=b.useState(Z2),[g,y]=b.useState(0),[v,S]=b.useState(!1),[x,C]=b.useState(!1),[A,w]=b.useState(!1),[k,M]=b.useState(!1),[T,N]=b.useState(),[O,P]=b.useState(!1),[I,z]=b.useState(!1),[Z,re]=b.useState(!1),ne=b.useRef(t),Y=b.useRef(o);b.useEffect(()=>{ne.current=t,Y.current=o});let le=b.useRef(JG()),ue=b.useRef(null),be=b.useMemo(()=>[...c.map(ie=>({kind:"stage",stage:ie})),{kind:"terminal",screen:"review"},{kind:"terminal",screen:"rates"}],[c]),L=b.useMemo(()=>Math.max(c.length,Gl[e]?.length??0)+1,[c.length,e]),V=be[g],B=V?.kind==="stage"?V.stage:void 0,te=String(o.state??"");b.useEffect(()=>{xA(e)},[e]),b.useEffect(()=>{wA(B),B&&Av(`stage: ${B}`,{screenIndex:g})},[B,g]),b.useEffect(()=>{CA(t)},[t]);let ce=b.useMemo(()=>{let ie={};for(let ae of c){let ye=f[`${ae}|${te}`];ye&&(ie[ae]=ye)}return ie},[c,f,te]),R=b.useMemo(()=>B?f[`${B}|${te}`]??f[`${B}|`]??[]:[],[B,f,te]),q=!!(B&&(`${B}|${te}`in f||(B==="Zip"||B==="Email")&&`${B}|`in f)),ee=b.useMemo(()=>({errorsByKey:{},itemErrors:[],issues:[],isValid:!0}),[]),[oe,ge]=b.useState(ee),Ee=b.useMemo(()=>B==="Zip"?id(o.postal_code)?ee:{errorsByKey:{postal_code:"Enter a 5-digit ZIP code."},itemErrors:[],issues:["Enter a 5-digit ZIP code."],isValid:!1}:B==="Email"?w2(o.email)?ee:{errorsByKey:{email:"Enter a valid email address."},itemErrors:[],issues:["Enter a valid email address."],isValid:!1}:B?oe:ee,[B,o.postal_code,o.email,oe,ee]);b.useEffect(()=>{if(!B||B==="Zip"||B==="Email")return;let ie=!1;return Be(()=>Promise.resolve().then(()=>nr),void 0).then(ae=>ae.a).then(({validateStage:ae})=>{ie||ge(ae({questions:R,values:o,stageKey:B}))}),()=>{ie=!0}},[B,R,o]);let Se=b.useCallback(ie=>{s(ae=>{let ye={...ae,...ie};return Y.current=ye,ye})},[]),de=b.useCallback(async ie=>{let{getStagesForQuote:ae}=await Be(async()=>{const{getStagesForQuote:Me}=await Promise.resolve().then(()=>gn);return{getStagesForQuote:Me}},void 0),{stages:ye}=await ae(ie??void 0),me=ye.filter(Me=>Me!=="CanopyConnect");return u(me),me},[]),he=b.useCallback(async(ie,ae,ye)=>{w(!0);try{let{getQuestionsByStage:me}=await Be(async()=>{const{getQuestionsByStage:Oe}=await Promise.resolve().then(()=>gn);return{getQuestionsByStage:Oe}},void 0),{questions:Me}=await me(ie,ae??void 0),{ensureAutoCoverageSelections:Ae}=await Be(()=>Promise.resolve().then(()=>nr),void 0).then(Oe=>Oe.F),qe=Ae(ie,Me);return h(Oe=>({...Oe,[`${ie}|${ye}`]:qe})),qe}catch(me){return N("We could not load this step. Please try again."),Kr(me,{phase:"stage_load",product:e,stage:ie,quoteId:ae,endpoint:"/get-questions-by-stage",statusCode:Ro(me)}),[]}finally{w(!1)}},[e]);b.useEffect(()=>{Sf(),ms("quote_flow_start");let ie=!1;return(async()=>{try{let ae=uc();if(ae){C(!0);try{let{redeemResumeToken:Oe}=await Be(async()=>{const{redeemResumeToken:We}=await Promise.resolve().then(()=>gn);return{redeemResumeToken:We}},void 0);await Oe(ae)}catch{ie||N("That link has expired. Enter your ZIP code to pick up where you left off.")}}let ye=Qa();ye&&(ne.current=ye,r(ye),C(!0));let me=ne.current,Me,Ae=ng(e);if(me)try{let{getQuote:Oe}=await Be(async()=>{const{getQuote:It}=await Promise.resolve().then(()=>gn);return{getQuote:It}},void 0),{quote:We}=await Oe(me);if(!ie&&We){Me=We;let[{fromQuoteRecord:It},{seedHomeCoverages:_n}]=await Promise.all([Be(()=>Promise.resolve().then(()=>nr),void 0).then(Qt=>Qt.C),Be(()=>Promise.resolve().then(()=>_m),void 0).then(Qt=>Qt.D)]),vt=It(We);s({...vt,..._n(vt),product:e})}}catch(Oe){Fo(),ie||r(null),ne.current=null,Kr(Oe,{phase:"quote_resume",product:e,quoteId:me,endpoint:"/get-quote",statusCode:Ro(Oe)})}if(ne.current&&(Ae=await de(ne.current),!ie&&Ae.length)){let Oe=Y2(Ae,Me);Oe>0&&y(Oe);let We=Ae[Oe]??Ae[0];We&&We!=="Zip"&&We!=="Email"&&await he(We,ne.current,String(Y.current.state??""))}let qe=ie?null:(await Be(async()=>{const{mockStepFromUrl:Oe}=await import("./mockJump-CL8w249w-D4zKPVys.js");return{mockStepFromUrl:Oe}},[])).mockStepFromUrl();qe!=null&&qe!==Y2(Ae,Me)&&(ue.current||await Promise.resolve(),await ue.current?.(qe))}catch(ae){ie||N("We could not start your quote. Please refresh and try again."),Kr(ae,{phase:"quote_start",product:e,quoteId:ne.current,statusCode:Ro(ae)})}finally{ie||(C(!1),ZG())}})(),()=>{ie=!0}},[]),b.useEffect(()=>{!B||f[`${B}|${te}`]||(B==="Zip"||B==="Email")&&f[`${B}|`]||he(B,ne.current,te)},[B,f,te,he]);let $e=b.useCallback(ie=>{y(ie),S(!1),N(void 0),Ji()&&Be(async()=>{const{writeMockStepHash:ae}=await import("./mockJump-CL8w249w-D4zKPVys.js");return{writeMockStepHash:ae}},[]).then(({writeMockStepHash:ae})=>{ae(ie)}),window.scrollTo(0,0)},[]),De=b.useRef(null),ze=b.useCallback(async ie=>{let ae=ne.current;if(ae)return ae;let ye=(ie??String(Y.current.postal_code??"")).trim(),{createQuote:me}=await Be(async()=>{const{createQuote:Ae}=await Promise.resolve().then(()=>gn);return{createQuote:Ae}},void 0),Me=await me(ye,QG());return ne.current=Me.quoteId,r(Me.quoteId),Me.quoteId},[]),at=b.useCallback(async ie=>{let ae=String(Y.current.postal_code??"").trim();Bv(ae).then(Ae=>{if(!Ae)return;let qe=Y.current;Se({city:Ae,...qe.__address_city?{}:{__address_city:Ae}})});let ye=ud(ae);if(!ye)return!0;Se({state:ye,__address_state:Y.current.__address_state??ye});let{isSupportedState:me}=await Be(async()=>{const{isSupportedState:Ae}=await Promise.resolve().then(()=>gn);return{isSupportedState:Ae}},void 0),{isSupported:Me}=await me(ye,ie);return Me?!0:(P(!0),!1)},[Se]),ot=b.useCallback(()=>(De.current||=(async()=>{let ie=await ze();if(!await at(ie))return ie;let[{stageSlice:ae},{toQuotePayload:ye},{updateQuote:me}]=await Promise.all([Be(()=>Promise.resolve().then(()=>nr),void 0).then(Me=>Me.a),Be(()=>Promise.resolve().then(()=>nr),void 0).then(Me=>Me.C),Be(()=>Promise.resolve().then(()=>gn),void 0)]);return await me({...ye(ae(f["Zip|"]??sf,Y.current,"Zip")),current_stage:"Email"},!1,ie),ie})().catch(ie=>{throw De.current=null,ie}),De.current),[ze,at,f]),At=b.useCallback(async ie=>{let ae=Y.current,[{parseAddress:ye,normalizeStateCode:me},{isSupportedState:Me}]=await Promise.all([Be(()=>Promise.resolve().then(()=>nr),void 0).then(We=>We.ct),Be(()=>Promise.resolve().then(()=>gn),void 0)]),Ae=ye(String(ae.address??"")),qe=me(String(ae.__address_state??Ae.state??ae.state??""));if(!qe)return!0;Se({state:qe});let{isSupported:Oe}=await Me(qe,ie);return Oe?!0:(P(!0),!1)},[Se]),Dn=b.useCallback(async ie=>{if(e==="Auto"||I)return;let ae=Y.current,[{parseAddress:ye},{prefillProperty:me},{seedHomeCoverages:Me}]=await Promise.all([Be(()=>Promise.resolve().then(()=>nr),void 0).then(We=>We.ct),Be(()=>Promise.resolve().then(()=>gn),void 0),Be(()=>Promise.resolve().then(()=>_m),void 0).then(We=>We.D)]),Ae=ye(String(ae.address??"")),qe={address_line_1:String(ae.__address_line_1??Ae.line_1).trim(),city:String(ae.__address_city??Ae.city??ae.city??"").trim(),state:String(ae.__address_state??Ae.state??ae.state??"").trim(),postal_code:String(ae.__address_postal_code??Ae.postal_code??ae.postal_code??"").trim()};if(!qe.address_line_1||!qe.city||!qe.state||!qe.postal_code)return;let Oe=await me(ie,qe);!Oe.found||!Oe.property||(s(We=>{let It={...We};for(let[_n,vt]of Object.entries(Oe.property??{})){if(vt==null)continue;let Qt=It[_n];(Qt===void 0||Qt===""||Qt===null)&&(It[_n]=vt)}return{...It,...Me(It)}}),z(!0))},[e,I]),Qn=b.useCallback(ie=>{let ae=c.indexOf(ie);if(ae>=0&&ae+1<c.length)return c[ae+1];let ye=Gl[e]??[],me=ye.indexOf(ie);return me>=0&&me+1<ye.length?ye[me+1]:void 0},[c,e]),Pn=b.useCallback(async()=>{if(k||!B||!q)return;if(B==="Zip"){if(!id(Y.current.postal_code)){S(!0);return}let me=ud(String(Y.current.postal_code??"").trim());if(me&&(Se({state:me,__address_state:Y.current.__address_state??me}),!YE.has(me))){P(!0);return}le.current(g+1),$e(g+1),ot();return}let{stageSlice:ie,validateStage:ae}=await Be(()=>Promise.resolve().then(()=>nr),void 0).then(me=>me.a),ye=B==="Email"?w2(Y.current.email)?{isValid:!0}:{isValid:!1}:ae({questions:R,values:Y.current,stageKey:B});if(!ye.isValid){B!=="Email"&&"errorsByKey"in ye&&ge(ye),S(!0);return}M(!0),N(void 0);try{let me=De.current?await De.current:await ze();if(B==="Product"&&!await At(me))return;let[{toQuotePayload:Me},{updateQuote:Ae},{prefillSuggestions:qe},{seedHomeCoverages:Oe}]=await Promise.all([Be(()=>Promise.resolve().then(()=>nr),void 0).then(vt=>vt.C),Be(()=>Promise.resolve().then(()=>gn),void 0),Be(()=>Promise.resolve().then(()=>Bg),void 0).then(vt=>vt.l),Be(()=>Promise.resolve().then(()=>_m),void 0).then(vt=>vt.D)]),We=ie(R,Y.current,B);B==="Product"&&(We.product=e),B==="Phone"&&(We.suppress_verification_sms=!0);let It=Qn(B),_n={...Me(We),...It?{current_stage:It}:{}};if(Object.keys(_n).length&&await Ae(_n,!1,me),le.current(g+1),B==="Name"&&e!=="Home"&&qe.vehicle.prefetch(me),B==="Vehicle"&&qe.driver.prefetch(me),It&&WG.has(It)){let vt=Oe(Y.current);Object.keys(vt).length&&Se(vt)}if(B==="Product"){let vt=await de(me);await Dn(me);let Qt=Math.min(g+1,vt.length);$e(Qt);return}$e(g+1)}catch(me){let{CredifyApiError:Me}=await Be(async()=>{const{CredifyApiError:qe}=await Promise.resolve().then(()=>gn);return{CredifyApiError:qe}},void 0),Ae=me instanceof Me&&me.statusCode===404?"Your quote session expired. Please start again.":"Something went wrong saving your answers. Please try again.";N(Ae),Kr(me,{phase:"answer_save",product:e,stage:B,quoteId:ne.current,endpoint:"/update-quote",statusCode:Ro(me)})}finally{M(!1)}},[k,B,q,ot,ze,At,R,e,g,de,Qn,Dn,$e,Se]),J=b.useCallback(()=>{g>0&&$e(g-1)},[g,$e]),xe=b.useCallback(ie=>{let ae=be.findIndex(ye=>ye.kind==="stage"&&ye.stage===ie);ae>=0&&$e(ae)},[be,$e]),Te=b.useRef(!1),Ye=b.useCallback(async ie=>{if(!(!Ji()||Te.current)){Te.current=!0,re(!0),N(void 0);try{let ae={...Y.current,product:e},ye=String(ae.postal_code??"").trim(),me=/^\d{5}$/.test(ye)?ye:rg,Me=await ze(me),[{isSupportedState:Ae,updateQuote:qe},{toQuotePayload:Oe}]=await Promise.all([Be(()=>Promise.resolve().then(()=>gn),void 0),Be(()=>Promise.resolve().then(()=>nr),void 0).then(Sn=>Sn.C)]),We=ud(me)??"";We&&(await Ae(We,Me)).isSupported?ae.postal_code=me:(ae.postal_code=rg,We=ud(rg)??"TX",await Ae(We,Me)),ae.state=We,P(!1),await qe({product:e,postal_code:ae.postal_code},!1,Me);let It=await de(Me),_n=Math.max(0,Math.min(ie,It.length+1)),vt=nE()?.autofillStage;if(!vt)return;let{stageSlice:Qt}=await Be(()=>Promise.resolve().then(()=>nr),void 0).then(Sn=>Sn.a);for(let Sn of It.slice(0,_n)){let ur=f[`${Sn}|${We}`]??await he(Sn,Me,We);ae=vt(ur,ae,Sn);let io=Oe(Qt(ur,ae,Sn));Object.keys(io).length&&await qe(io,!1,Me)}s(ae),Y.current=ae,_n===It.length+1&&await qe({},!0,Me),$e(_n)}catch{N("The mock jump could not seed this step. Reload and try again.")}finally{Te.current=!1,re(!1)}}},[e,ze,de,he,f,$e]),oo=b.useCallback(async()=>{Ji()},[B,R]);b.useEffect(()=>{ue.current=Ye},[Ye]),b.useEffect(()=>{if(!Ji())return;let ie=()=>{Be(async()=>{const{mockStepFromUrl:ae}=await import("./mockJump-CL8w249w-D4zKPVys.js");return{mockStepFromUrl:ae}},[]).then(({mockStepFromUrl:ae})=>{let ye=ae();ye!=null&&ye!==g&&Ye(ye)})};return window.addEventListener("hashchange",ie),()=>window.removeEventListener("hashchange",ie)},[g,Ye]);let Tt=b.useCallback(async ie=>{if(k)return!1;let ae=ne.current;if(!ae)return N("Your quote session expired. Please start again."),!1;M(!0),N(void 0);try{let ye=typeof ie=="boolean"?{communications_consent:ie}:{},{updateQuote:me}=await Be(async()=>{const{updateQuote:Ae}=await Promise.resolve().then(()=>gn);return{updateQuote:Ae}},void 0),Me=await me(ye,!0,ae);return Me.status==="submission_failed"?(N(Me.message||"We could not submit your quote for rating."),Kr(Error(Me.message||"Rating submission refused"),{phase:"rating_submit",product:e,quoteId:ae,endpoint:"/update-quote"}),!1):($e(be.length-1),!0)}catch(ye){return N("We could not submit your quote for rating. Please try again."),Kr(ye,{phase:"rating_submit",product:e,quoteId:ae,endpoint:"/update-quote",statusCode:Ro(ye)}),!1}finally{M(!1)}},[k,be.length,$e,e]),fa=b.useCallback(()=>{Fo(),Be(()=>Promise.resolve().then(()=>Bg),void 0).then(ie=>ie.l).then(({resetPrefillSuggestions:ie})=>{ie()}),De.current=null,r(null),ne.current=null,s({product:e}),u(ng(e)),h(Z2()),P(!1),z(!1),$e(0)},[e,$e]),ai=b.useCallback(ie=>{let ae=ye=>{for(let me of ye){if(me.key===ie)return me;for(let Me of me.conditionals??[]){let Ae=ae(Me.conditionalQuestions??[]);if(Ae)return Ae}}};for(let ye of c){let me=ae(ce[ye]??[]);if(me)return{question:me,stage:ye}}},[c,ce]),wc=b.useCallback(ie=>ai(ie)?.stage,[ai]),cr=b.useRef({seeded:!1,advanced:!1});return b.useEffect(()=>{if(cr.current.seeded||x||V?.kind!=="stage"||V.stage!=="Zip"||Y.current.postal_code||Qa())return;let ie=new URLSearchParams(window.location.search).get("zip");!ie||!id(ie)||(cr.current.seeded=!0,Se({postal_code:ie.replace(/\D/g,"").slice(0,5)}))},[x,V,Se]),b.useEffect(()=>{!cr.current.seeded||cr.current.advanced||V?.kind==="stage"&&V.stage==="Zip"&&(!q||k||id(o.postal_code)&&(cr.current.advanced=!0,Pn()))},[V,q,k,o.postal_code,Pn]),{product:e,quoteId:t,values:o,stages:c,questionsByStage:ce,stageForField:wc,questionForField:ai,screens:be,screenIndex:g,stepTotal:L,current:V,questions:R,validation:Ee,showErrors:v,booting:x,loadingQuestions:A,questionsReady:q,busy:k,error:T,unsupportedState:O,prefillApplied:I,patch:Se,continueFromStage:Pn,back:J,goToStage:xe,submitForRates:Tt,resetSession:fa,mockJumping:Z,mockJumpTo:Ye,mockAutofillStage:oo}},tV=new Set(["Demographics","Ssn"]),nV=({label:e})=>d.jsxs("div",{className:"cds-py-10 cds-text-center","aria-live":"polite",children:[d.jsx("div",{className:"cds-mx-auto cds-mb-3 cds-h-7 cds-w-7 cds-animate-spin cds-rounded-full cds-border-4 cds-border-accent cds-border-t-transparent","aria-hidden":"true"}),d.jsx("p",{className:"cds-text-sm cds-text-fg-muted",children:e})]}),rV=({current:e,total:t,label:r})=>{let o=Math.round((e+1)/t*100);return d.jsxs("div",{className:"cds-mb-6",children:[d.jsxs("div",{className:"cds-mb-1.5 cds-flex cds-items-center cds-justify-between cds-text-xs cds-font-semibold cds-text-fg-muted",children:[d.jsx("span",{children:r}),d.jsxs("span",{children:["Step ",e+1," of ",t]})]}),d.jsx("div",{className:"cds-h-1.5 cds-w-full cds-overflow-hidden cds-rounded-full cds-bg-border",role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Quote progress",children:d.jsx("div",{className:"cds-h-full cds-rounded-full cds-bg-accent cds-transition-all",style:{width:`${o}%`}})})]})},aV=()=>d.jsxs("div",{role:"note",className:"cds-mx-auto cds-mb-3 cds-flex cds-w-full cds-max-w-xl cds-items-center cds-gap-2 cds-rounded-lg cds-border cds-border-warning cds-bg-warning-surface cds-px-3 cds-py-2 cds-text-xs cds-text-warning-foreground",children:[d.jsx(uk,{"aria-hidden":"true",className:"cds-h-4 cds-w-4 cds-shrink-0 cds-text-warning"}),d.jsxs("span",{children:[d.jsx("span",{className:"cds-font-bold",children:"Test mode"})," — quotes started in this session are marked as tests and left out of reporting."]})]}),oV=({onRestart:e})=>d.jsxs("div",{className:"cds-py-8 cds-text-center",children:[d.jsx("h2",{className:"cds-mb-2 cds-text-2xl cds-font-bold cds-text-fg",children:"We're not in your state yet"}),d.jsx("p",{className:"cds-mb-6 cds-text-fg-muted",children:"We currently write policies in Texas and New Jersey. Give us a call and we'll point you to a licensed agent who can help."}),d.jsxs("a",{href:is,className:ft("cds-inline-block cds-rounded-xl cds-bg-accent cds-px-8 cds-py-3.5 cds-text-base cds-font-bold cds-text-accent-foreground hover:cds-bg-accent/90",Fe),children:["Call ",Xr]}),d.jsx("button",{type:"button",onClick:e,className:ft("cds-mt-4 cds-block cds-w-full cds-text-sm cds-font-semibold cds-text-fg cds-underline",Fe),children:"Try a different ZIP code"})]}),iV=new Set(["product"]),sV=({product:e,suppressedKeys:t=iV,chrome:r=c=>d.jsx(d.Fragment,{children:c}),onScreenChange:o,onComplete:s})=>{let c=eV(e),{booting:u,busy:f,current:h,error:g,mockJumping:y,questionsReady:v,patch:S,questions:x,questionsByStage:C,quoteId:A,screenIndex:w,showErrors:k,stepTotal:M,questionForField:T,stages:N,unsupportedState:O,validation:P,values:I}=c,z=n5[e],Z=b.useCallback(te=>{let ce=T(te);return ce?{label:ce.question.question,stage:ce.stage}:void 0},[T]),re=b.useCallback(te=>{let ce=new Set;for(let R of te){let{key:q}=gv(R.field),ee=q?T(q)?.stage:void 0;ee&&ce.add(ee)}return N.find(R=>ce.has(R))},[T,N]),ne=b.useMemo(()=>h?h.kind==="terminal"?h.screen==="review"?e5:t5:Ag(h.stage,e):z?{title:z.heading,short:z.label}:void 0,[h,z,e]),Y=b.useRef(null),le=b.useRef(!1);b.useEffect(()=>{!ne||!h||(o?.(h,{title:ne.title,index:w,total:M}),le.current&&Y.current?.focus({preventScroll:!0}),le.current=!0)},[ne,h,w,M]);let ue=nE()?.DevPanel,be=Ji()&&ue?d.jsx(ue,{product:e,stages:N,screenIndex:w,currentStage:h?.kind==="stage"?h.stage:void 0,busy:y,onJump:te=>void c.mockJumpTo(te),onAutofill:()=>void c.mockAutofillStage()}):null,[L]=b.useState(lT),V=te=>r(d.jsxs(d.Fragment,{children:[L?d.jsx(aV,{}):null,d.jsx("div",{ref:Y,tabIndex:-1,"data-credify-step-body":!0,className:"cds-rounded-2xl cds-bg-surface-elevated cds-p-5 cds-shadow-sm cds-outline-none sm:cds-p-7",children:te}),be]}));if(u||y)return V(d.jsxs("div",{className:"cds-py-12 cds-text-center","aria-live":"polite",children:[d.jsx("div",{className:"cds-mx-auto cds-mb-4 cds-h-8 cds-w-8 cds-animate-spin cds-rounded-full cds-border-4 cds-border-accent cds-border-t-transparent","aria-hidden":"true"}),d.jsx("p",{className:"cds-text-fg-muted",children:y?"Seeding mock answers…":"Loading your quote…"})]}));if(O)return V(d.jsx(oV,{onRestart:c.resetSession}));if(!h||!ne)return V(d.jsxs("div",{className:"cds-py-8 cds-text-center",children:[d.jsx("h2",{className:"cds-mb-2 cds-text-xl cds-font-bold cds-text-fg",children:"We couldn't start your quote"}),d.jsx("p",{className:"cds-mb-6 cds-text-fg-muted",children:"Please refresh the page, or give us a call."}),d.jsx("a",{href:is,className:"cds-font-semibold cds-text-fg cds-underline",children:Xr})]}));let B=h.kind==="terminal"&&h.screen==="rates";return V(d.jsxs(d.Fragment,{children:[B?null:d.jsx(rV,{current:w,total:M,label:z.label}),w>0&&!B?d.jsxs("button",{type:"button",onClick:c.back,className:ft("cds-mb-3 cds-inline-flex cds-items-center cds-gap-1 cds-text-sm cds-font-semibold cds-text-fg hover:cds-underline",Fe),children:[d.jsxs("svg",{"aria-hidden":"true",className:"cds-h-4 cds-w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[d.jsx("path",{d:"m12 19-7-7 7-7"}),d.jsx("path",{d:"M19 12H5"})]}),"Back"]}):null,h.kind==="stage"?d.jsxs(d.Fragment,{children:[d.jsx("h1",{className:"cds-mb-1 cds-text-2xl cds-font-bold cds-text-fg",children:ne.title}),ne.subtitle?d.jsx("p",{className:"cds-mb-5 cds-text-sm cds-text-fg-muted",children:ne.subtitle}):null,v?d.jsxs(d.Fragment,{children:[h.stage==="Vehicle"||h.stage==="Driver"?d.jsx(OG,{kind:h.stage==="Vehicle"?"vehicle":"driver",quoteId:A,values:I,onApply:S},h.stage):null,tV.has(h.stage)?d.jsx(CG,{stage:h.stage,questions:x,values:I,onPatch:S},`copy-${h.stage}`):null,h.stage==="Zip"?d.jsx(XF,{label:x[0]?.question??"What's your ZIP code?",value:String(I.postal_code??""),error:k?P.errorsByKey.postal_code:void 0,onChange:te=>S({postal_code:te})}):h.stage==="Email"?d.jsx(QF,{label:x[0]?.question??"What is your email address?",value:String(I.email??""),error:k?P.errorsByKey.email:void 0,onChange:te=>S({email:te})}):d.jsx(SG,{questions:x,values:I,errors:k?P.errorsByKey:{},itemErrors:k?P.itemErrors:[],stageKey:h.stage,quoteId:A,suppressedKeys:t,onPatch:S}),k&&!P.isValid?d.jsx(Ql,{message:"Please complete the highlighted questions."}):null,d.jsx(Ql,{message:g}),d.jsx($l,{disabled:f,onClick:()=>void c.continueFromStage(),children:f?"Saving…":"Continue"})]}):d.jsx(nV,{label:"Loading this step…"})]}):h.screen==="review"?d.jsx(TG,{stages:N,questionsByStage:C,values:I,busy:f,error:g,suppressedKeys:t,onEditStage:c.goToStage,onConfirm:te=>void c.submitForRates(te)}):d.jsx(GG,{product:e,quoteId:A,describeField:Z,onFixAnswers:te=>{let ce=re(te);c.goToStage(ce??N[0])},onRetry:c.submitForRates,onBound:()=>s?.()})]}))};const gn=Object.freeze(Object.defineProperty({__proto__:null,AUTH_TOKEN_STORAGE_KEY:MA,CredifyApiError:Bo,QUOTE_ID_STORAGE_KEY:kA,applyDriverPrefill:$v,applyVehiclePrefill:Dv,bodyWithQuoteId:Xt,buildResumeUrl:Hv,captureResumeTokenFromUrl:Sf,cityFromZip:Bv,clearQuoteSession:Fo,configureApi:EA,configureZipCityLookup:Uv,consumeResumeToken:uc,createQuote:RA,decodeVin:Ov,dismissDriverPrefill:Lv,dismissVehiclePrefill:Pv,fetchDriverPrefillSuggestions:Iv,fetchVehiclePrefillSuggestions:jv,getApiConfig:Er,getQuestionsByStage:$A,getQuote:bf,getRates:Tv,getStagesForQuote:IA,getVehicleOptions:_f,hasResumeToken:xf,isMockEnabled:Ji,isSupportedState:jA,isTestModeEnabled:AA,issueResumeLink:DA,loadAuthToken:yf,loadQuoteId:Qa,post:Et,prefillProperty:PA,prefillSuggestions:Oo,redeemResumeToken:Nv,requestBind:Rv,resetApiConfig:$L,resetPrefillSuggestions:zv,saveAuthToken:vf,saveQuoteId:gf,sendSmsCode:kv,updateQuote:OA,verifySmsCode:Mv},Symbol.toStringTag,{value:"Module"}));var ag={};const lV="https://api.getcredify.com",cV=()=>{try{if(typeof ag<"u"&&ag?.baseUrl)return ag.baseUrl}catch{}return lV},Cd=cV();var W2={key:""};const uV="mock";function dV(){try{typeof W2<"u"&&W2?.key;return}catch{return}}function dy(){const e=dV();if(!e||typeof window>"u"||!window.location)return!1;try{return new URLSearchParams(window.location.search).get(uV)===e}catch{return!1}}const fV=()=>{const t=globalThis.process?.env?.NODE_ENV;return typeof t=="string"?t!=="production":!1};function pV(e,t){try{fV()&&console.error(`[credify-widget] ${e}:`,t),Xo(t instanceof Error?t:new Error(String(t)),{tags:{source:e,failure_type:"side_effect"},level:"warning"})}catch{}}let hV=!1;function mV(){return hV}const gV="credify-insurance-widget",yV="1.0",cT=25,uT=64*1024,vV=`
494
+ …[truncated]`;let K2=!1,X2=null,Q2="",dT=cT,fy=uT,Ul=[];function bV(e){return typeof e=="string"?e:e instanceof URL?e.href:e.url}function _V(e,t){return t?.method?t.method.toUpperCase():typeof e!="string"&&!(e instanceof URL)&&e.method?e.method.toUpperCase():"GET"}function J2(e){if(!e)return[];const t=[];if(Array.isArray(e))for(const[r,o]of e)t.push({name:r,value:String(o)});else if(typeof e.forEach=="function")e.forEach((r,o)=>t.push({name:o,value:r}));else for(const[r,o]of Object.entries(e))t.push({name:r,value:String(o)});return t}function SV(e){try{const t=[];return new URL(e).searchParams.forEach((r,o)=>t.push({name:o,value:r})),t}catch{return[]}}function xV(e,t){const r=t?.body;return typeof r!="string"||r.length===0?void 0:{mimeType:e.find(s=>s.name.toLowerCase()==="content-type")?.value??"application/json",text:r}}function CV(e){const t=e.length;return t<=fy?{text:e,size:t}:{text:e.slice(0,fy)+vV,size:t}}function wV(e){Ul.push(e),Ul.length>dT&&Ul.shift()}function EV(e){if(K2)return!0;if(typeof window>"u"||typeof window.fetch!="function")return!1;Q2=e.baseUrl,dT=e.maxEntries??cT,fy=e.maxBodyBytes??uT,X2=window.fetch.bind(window);const t=X2;return window.fetch=async(r,o)=>{let s;try{s=bV(r)}catch{return t(r,o)}if(!s.startsWith(Q2))return t(r,o);const c=J2(o?.headers??(typeof r!="string"&&!(r instanceof URL)?r.headers:void 0)),u={startedDateTime:new Date().toISOString(),time:-1,request:{method:_V(r,o),url:s,httpVersion:"HTTP/1.1",headers:c,queryString:SV(s),cookies:[],headersSize:-1,bodySize:typeof o?.body=="string"?o.body.length:-1,postData:xV(c,o)},response:AV(),cache:{},timings:{send:0,wait:-1,receive:0}};wV(u);const f=typeof performance<"u"?performance.now():0;let h;try{h=await t(r,o)}catch(y){const v=(typeof performance<"u"?performance.now():0)-f;throw u.time=Math.round(v),u.timings.wait=Math.round(v),u.response._error=y instanceof Error?y.message:String(y),y}const g=(typeof performance<"u"?performance.now():0)-f;u.time=Math.round(g),u.timings.wait=Math.round(g),u.response.status=h.status,u.response.statusText=h.statusText,u.response.headers=J2(h.headers),u.response.content.mimeType=typeof h.headers?.get=="function"&&h.headers.get("content-type")||"";try{h.clone().text().then(v=>{const{text:S,size:x}=CV(v);u.response.content.text=S,u.response.content.size=x,u.response.bodySize=x}).catch(()=>{})}catch{}return h},K2=!0,!0}function AV(){return{status:0,statusText:"",httpVersion:"HTTP/1.1",headers:[],cookies:[],content:{size:0,mimeType:""},redirectURL:"",headersSize:-1,bodySize:-1}}function kV(){return{log:{version:"1.2",creator:{name:gV,version:yV},entries:Ul.map(e=>({...e}))}}}function MV(){return Ul.length}const TV=[/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],NV=[/\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],Va="[REDACTED]",RV=8;function Ff(e){for(const t of TV)if(t.test(e))return!0;return!1}function Za(e){let t=e;for(const r of NV)t=t.replace(r,Va);return t}function Ba(e,t=0,r=new WeakSet){if(t>RV)return Va;if(e==null)return e;if(typeof e=="string")return Za(e);if(typeof e!="object")return e;if(r.has(e))return Va;if(r.add(e),Array.isArray(e))return e.map(c=>Ba(c,t+1,r));const o=Object.getPrototypeOf(e);if(o!==null&&o!==Object.prototype)return e;const s={};for(const[c,u]of Object.entries(e)){if(Ff(c)){s[c]=Va;continue}s[c]=Ba(u,t+1,r)}return s}function ew(e){if(e.request&&(e.request.data!==void 0&&(e.request.data=Ba(e.request.data)),e.request.cookies!==void 0&&(e.request.cookies=Va),e.request.headers)){const t=e.request.headers;for(const r of Object.keys(t))Ff(r)&&(t[r]=Va)}if(e.extra&&(e.extra=Ba(e.extra)),e.contexts&&(e.contexts=Ba(e.contexts)),e.tags&&(e.tags=Ba(e.tags)),e.user){const{id:t,email:r,username:o}=e.user;e.user={...typeof t=="string"?{id:t}:{},...typeof r=="string"?{email:r}:{},...typeof o=="string"?{username:o}:{}}}if(Array.isArray(e.breadcrumbs))for(const t of e.breadcrumbs)t.data!==void 0&&(t.data=Ba(t.data)),typeof t.message=="string"&&(t.message=Za(t.message));return typeof e.message=="string"&&(e.message=Za(e.message)),e}function tw(e){for(const t of e)t.value=Ff(t.name)?Va:Za(t.value)}function nw(e){try{return JSON.stringify(Ba(JSON.parse(e)))}catch{return Za(e)}}function OV(e){const t=JSON.parse(JSON.stringify(e));for(const r of t.log.entries){tw(r.request.headers),tw(r.response.headers);for(const o of r.request.queryString)o.value=Ff(o.name)?Va:Za(o.value);r.request.postData?.text&&(r.request.postData.text=nw(r.request.postData.text)),r.response.content.text&&(r.response.content.text=nw(r.response.content.text)),r.request.url=Za(r.request.url),r.response._error&&(r.response._error=Za(r.response._error))}return t}function jV(e,t={}){try{wy(r=>{r.setTag("failure_type","quote"),t.product&&r.setTag("product",t.product),t.stage&&r.setTag("stage",t.stage),t.quoteId&&r.setTag("quote_id",t.quoteId),t.phase&&r.setTag("phase",t.phase),t.endpoint&&r.setTag("endpoint",t.endpoint),typeof t.statusCode=="number"&&r.setTag("status_code",String(t.statusCode)),t.failureCode&&r.setTag("failure_code",t.failureCode);try{MV()>0&&r.addAttachment({filename:"quote-failure.har",data:JSON.stringify(OV(kV())),contentType:"application/json"})}catch{}const o=e instanceof Error?e:new Error(t.message??"Quote failed");Xo(o)})}catch{}}const DV=(e,t)=>{try{return e()}catch{return t}};function Tb(){return DV(()=>Qa(),null)}const PV=["widgetOpened","widgetClosed","stageViewed","stageCompleted","flowCompleted","ratesViewed","ratesBack","submissionFailed","telemetry"],Ud={};function IV(e){let t=Ud[e];return t||(t=new Set,Ud[e]=t),t}function fT(e,t){IV(e).add(t)}function pT(e,t){Ud[e]?.delete(t)}function js(e,...t){const r=Ud[e];if(!r||r.size===0)return;const o=t[0],s={quoteId:Tb(),timestamp:Date.now()};for(const c of[...r])try{c(o,s)}catch(u){Xo(u,{tags:{source:"widget-event-listener",event:e}})}}function $V(){js("widgetOpened")}function rw(){js("widgetClosed")}function LV(e){js("stageViewed",e)}function zV(e){js("stageCompleted",e)}function HV(e){js("ratesViewed",e)}function UV(e,t){js("telemetry",{event:e,properties:t})}var aw={apiKey:""};const BV=()=>{try{return typeof aw<"u"?aw?.apiKey:void 0}catch{return}};let ow=!1;const FV=async(e,t)=>null,hT=()=>{ow||(ow=!0,EA({baseUrl:Cd,storagePrefix:"credify_",source:"widget",isMockActive:dy,isTestActive:mV,mockTransport:(e,t)=>dy()?FV():null}),SA({onQuoteFailure:(e,t)=>jV(e,{...t,quoteId:t.quoteId??void 0}),onBreadcrumb:(e,t)=>{try{Ka({category:"quote",message:e,data:t,level:"info"})}catch{}},onTrack:(e,t)=>UV(e,t),onContext:e=>{try{e.product&&fm("product",e.product),e.stage&&fm("stage",e.stage),"quoteId"in e&&fm("quote_id",e.quoteId??void 0)}catch{}}}),s7({apiKey:BV()}),Uv(void 0))},iw="credify-widget-font",qV="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";function GV(){if(typeof document>"u"||document.getElementById(iw))return;const e=document.createElement("link");e.id=iw,e.rel="stylesheet",e.href=qV,document.head.appendChild(e)}const Nb=e=>d.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e}),VV=Nb(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M3 10.5 12 3l9 7.5"}),d.jsx("path",{d:"M5 9.5V21h14V9.5"})]})),ZV=Nb(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M4 16.5V13l1.8-4.5A2 2 0 0 1 7.7 7h8.6a2 2 0 0 1 1.9 1.5L20 13v3.5"}),d.jsx("path",{d:"M4 16.5h16M7 20v-3.5M17 20v-3.5"})]})),YV=Nb(d.jsxs(d.Fragment,{children:[d.jsx("path",{d:"M3 8.5 9 4l6 4.5"}),d.jsx("path",{d:"M4.5 7.8V19h9V7.8"}),d.jsx("path",{d:"M14 19v-6h6.5v6z"})]})),WV=[{product:"Home",label:"Home",detail:"Cover the place you live",glyph:VV},{product:"Auto",label:"Auto",detail:"Cover your vehicles",glyph:ZV},{product:"Bundle",label:"Home + Auto",detail:"Quote both home and auto coverage",glyph:YV}],KV=({onChoose:e})=>d.jsxs("div",{className:"credify-widget-chooser",children:[d.jsx("h1",{children:"What would you like to insure?"}),d.jsx("p",{children:"We'll ask a few questions and show you real prices from our carriers."}),d.jsx("div",{role:"group","aria-label":"What would you like to insure?",className:"credify-widget-chooser-options",children:WV.map(({product:t,label:r,detail:o,glyph:s})=>d.jsxs("button",{type:"button",onClick:()=>e(t),className:"credify-widget-chooser-option",children:[s,d.jsx("span",{className:"credify-widget-chooser-label",children:r}),d.jsx("span",{className:"credify-widget-chooser-detail",children:o})]},t))})]}),XV=e=>!e&&(xf()||!!Qa());var og={blandWidgetId:"",cobrowseLicense:""};function QV(){try{return typeof og<"u"&&og?og:{}}catch{return{}}}function JV(e){const t=QV(),r=t.blandWidgetId,o=t.cobrowseLicense;return{enabled:!!(r||o),blandWidgetId:r||void 0,cobrowseLicense:o||void 0,proactiveOnError:!0}}const ig=new Map;function mT(e){if(typeof document>"u")return Promise.reject(new Error("loadScript called without a document"));const t=ig.get(e);if(t)return t;if(document.querySelector(`script[src="${e}"]`))return Promise.resolve();const r=new Promise((o,s)=>{const c=document.createElement("script");c.src=e,c.async=!0,c.onload=()=>o(),c.onerror=()=>{ig.delete(e),s(new Error(`Failed to load script: ${e}`))},document.head.appendChild(c)});return ig.set(e,r),r}const gT="https://widget.bland.ai/loader.js",Rb="bland-widget-host",eZ="#bland-widget-root > button",tZ=20,nZ=100;let Jl=!1;function rZ(){return typeof document>"u"?!1:!!window.blandSettings||!!document.querySelector(`script[src="${gT}"]`)||!!document.getElementById(Rb)}function aZ(){return document.getElementById(Rb)?.shadowRoot?.querySelector(eZ)??null}function oZ(e,t){if(typeof window>"u"||rZ())return;const r=Tb();window.blandSettings={widget_id:e,request_data:{source:"credify-insurance-widget",entry_path:window.location.pathname,...r?{quote_id:r}:{},...t}},Jl=!0,mT(gT).catch(o=>{Jl=!1,Xo(o,{tags:{source:"widget-bland-loader"}})})}async function yT(e,t){if(typeof window>"u")return!1;oZ(e,t);for(let r=0;r<tZ;r+=1){const o=aZ();if(o){for(const s of["mousedown","mouseup","click"])o.dispatchEvent(new MouseEvent(s,{bubbles:!0,composed:!0}));return!0}await new Promise(s=>window.setTimeout(s,nZ))}return Xo(new Error("Bland launcher did not mount"),{tags:{source:"widget-bland-open",owned:String(Jl)}}),!1}function iZ(){typeof document>"u"||(Jl&&(document.getElementById(Rb)?.remove(),delete window.blandSettings),Jl=!1)}const sZ="https://js.cobrowse.io/CobrowseIO.js";let py=!1;async function lZ(e){await mT(sZ);const t=window.CobrowseIO;if(!t)return null;if(!py){t.license=e,t.redactedViews=["input","select","textarea","[data-credify-redact]"],t.customData={quote_id:Tb()??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?.(),py=!0}return t}async function cZ(e){if(typeof window>"u")return null;try{const t=await lZ(e);return t?.createSessionCode?await t.createSessionCode():null}catch{return null}}function uZ(){try{window.CobrowseIO?.stop?.()}catch{}py=!1}let br=null,wd=null,hy=!1;function dZ(e){mZ();const t=JV();if(br=t,!!t.enabled&&t.proactiveOnError&&t.blandWidgetId){const r=o=>{hy||(hy=!0,yT(t.blandWidgetId,{last_quote_error:o?.reason??"unknown"}))};fT("submissionFailed",r),wd=r}}function fZ(){return!br?.enabled||!br.blandWidgetId?Promise.resolve(!1):yT(br.blandWidgetId)}function pZ(){return!br?.enabled||!br.cobrowseLicense?Promise.resolve(null):cZ(br.cobrowseLicense)}function hZ(){return!!(br?.enabled&&br.cobrowseLicense)}function mZ(){wd&&(pT("submissionFailed",wd),wd=null),iZ(),uZ(),hy=!1,br=null}const gZ=({label:e="Share my screen"})=>{const[t,r]=b.useState(null),[o,s]=b.useState(!1),[c,u]=b.useState(!1),f=b.useCallback(async()=>{s(!0),u(!1);try{const h=await pZ();h?r(h):u(!0)}catch{u(!0)}finally{s(!1)}},[]);return hZ()?d.jsxs("span",{className:"credify-widget-share",children:[d.jsx("button",{type:"button",onClick:f,disabled:o||!!t,"aria-label":"Share your screen with an agent",className:"credify-widget-share-button",children:o?"Starting…":e}),t&&d.jsxs("span",{className:"credify-widget-share-code",children:["Read this code to your agent: ",d.jsx("strong",{children:t})]}),c&&d.jsx("span",{role:"alert",className:"credify-widget-share-error",children:"Couldn't start screen sharing. Please call us instead."})]}):null},yZ=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),vZ=new Set(["product"]),bZ=e=>e==="Home"||e==="Auto"||e==="Bundle";function _Z({isOpen:e,onClose:t,product:r}){hT(),GV();const o=b.useRef(null),[s,c]=b.useState(null),[u,f]=b.useState(),[h,g]=b.useState(()=>XV(r)),y=b.useRef(null),v=r??u,S=b.useRef(null),x=b.useRef(null),[C,A]=b.useState(!1),[w,k]=b.useState(!1),M=b.useRef(null),T=b.useCallback((z,Z)=>{const re=M.current,ne=z.kind==="stage"?z.stage:void 0;re&&re.stage&&Z.index>re.index&&zV({stageKey:re.stage,stageTitle:re.stage,stepIndex:re.index,totalSteps:Z.total}),ne&&LV({stageKey:ne,stageTitle:Z.title,stepIndex:Z.index,totalSteps:Z.total}),z.kind==="terminal"&&z.screen==="rates"&&HV({rateCount:0}),M.current={stage:ne,index:Z.index}},[]);b.useEffect(()=>{e&&$V()},[e]),b.useEffect(()=>{if(!e||r||u)return;if(!y.current){const Z=uc();Z&&(y.current=Nv(Z))}if(!y.current&&!Qa())return;let z=!1;return g(!0),(async()=>{try{await y.current;const{quote:Z}=await bf(Qa()??void 0),re=Z.product;!z&&bZ(re)&&f(re)}catch{}finally{z||g(!1)}})(),()=>{z=!0}},[e,r,u]);const N=b.useCallback(()=>{if(w){rw(),t();return}A(!0)},[w,t]),O=b.useCallback(()=>A(!1),[]),P=b.useCallback(()=>{A(!1),rw(),t()},[t]),I=b.useCallback(z=>{if(z.key==="Escape"){z.preventDefault(),C?O():N();return}if(z.key!=="Tab")return;const Z=C?S.current:o.current;if(!Z)return;const re=Array.from(Z.querySelectorAll(yZ)).filter(ue=>ue.offsetParent!==null||ue===document.activeElement);if(re.length===0)return;const ne=re[0],Y=re[re.length-1],le=document.activeElement;z.shiftKey&&le===ne?(z.preventDefault(),Y.focus()):!z.shiftKey&&le===Y&&(z.preventDefault(),ne.focus())},[C,O,N]);return b.useEffect(()=>{if(e)return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[e,I]),b.useEffect(()=>{if(!C)return;const z=window.setTimeout(()=>x.current?.focus(),0);return()=>window.clearTimeout(z)},[C]),b.useEffect(()=>{e||(A(!1),k(!1),f(void 0))},[e]),e?d.jsxs("div",{ref:o,className:"credify-widget-overlay",role:"dialog","aria-modal":"true","aria-labelledby":"insurance-modal-title",tabIndex:-1,children:[d.jsx("div",{className:"credify-widget-backdrop","aria-hidden":"true"}),d.jsxs("div",{ref:c,className:"credify-widget-panel",role:"document",children:[d.jsx("h2",{id:"insurance-modal-title",className:"credify-widget-sr-only",children:"Credify insurance quote"}),d.jsx("button",{onClick:N,className:"credify-widget-close","aria-label":"Close quote form",type:"button",children:d.jsx("span",{"aria-hidden":"true",children:"×"})}),d.jsx(e7,{theme:{mode:"light"},className:"credify-widget-scope",portalContainer:s,children:h?d.jsx("div",{className:"credify-widget-body",children:d.jsx("div",{className:"credify-widget-frame credify-widget-chooser","aria-live":"polite",children:d.jsx("p",{children:"Loading your quote…"})})}):v?d.jsx(sV,{product:v,suppressedKeys:vZ,onScreenChange:T,onComplete:()=>k(!0),chrome:z=>d.jsx("div",{className:"credify-widget-body",children:d.jsx("div",{className:"credify-widget-frame",children:z})})}):d.jsx("div",{className:"credify-widget-body",children:d.jsx("div",{className:"credify-widget-frame",children:d.jsx(KV,{onChoose:f})})})}),d.jsxs("div",{className:"credify-widget-footer",children:[d.jsx(gZ,{label:"Need help? Share my screen"}),d.jsx("p",{children:"Insurance products offered through Credify Corporation, a licensed insurance agency."})]}),C&&d.jsx("div",{className:"credify-widget-confirm-backdrop",role:"presentation",children:d.jsxs("div",{ref:S,className:"credify-widget-confirm",role:"alertdialog","aria-modal":"true","aria-labelledby":"close-confirm-title","aria-describedby":"close-confirm-description",tabIndex:-1,children:[d.jsx("h3",{id:"close-confirm-title",children:"Close this window?"}),d.jsx("p",{id:"close-confirm-description",children:"You can reopen it from this page whenever you're ready."}),d.jsxs("div",{className:"credify-widget-confirm-actions",children:[d.jsx("button",{ref:x,type:"button",className:"credify-widget-confirm-cancel",onClick:O,children:"Keep editing"}),d.jsx("button",{type:"button",className:"credify-widget-confirm-danger",onClick:P,children:"Close window"})]})]})})]})]}):null}function SZ({onClose:e}){return d.jsxs("div",{className:"credify-widget-overlay",role:"dialog","aria-modal":"true",children:[d.jsx("div",{className:"credify-widget-backdrop","aria-hidden":"true"}),d.jsx("div",{className:"credify-widget-panel",role:"document",style:{height:"auto",maxHeight:"none"},children:d.jsxs("div",{className:"credify-widget-body",style:{textAlign:"center"},children:[d.jsx("h2",{style:{margin:"0 0 0.5rem",fontSize:"1.25rem",fontWeight:700,color:"#10233f"},children:"Something went wrong"}),d.jsx("p",{style:{margin:"0 0 1.25rem",fontSize:"0.9375rem",color:"#42566e"},children:"We could not load your quote. Please close this and try again, or call us on (512) 640-2609."}),d.jsx("button",{type:"button",onClick:e,className:"credify-widget-confirm-cancel",style:{padding:"0.625rem 1.5rem",borderRadius:"0.5rem",fontWeight:700,cursor:"pointer"},children:"Close"})]})})]})}var sg={dsn:"",environment:"production",release:"cc24dabb9d23e7abb21a285825154eb4dc56d990"};function xZ(){try{return typeof sg<"u"&&sg?sg:{}}catch{return{}}}let sw=!1;function CZ(e,t){if(!e)return t;const r=Number(e);return Number.isFinite(r)&&r>=0&&r<=1?r:t}function wZ(e={}){if(sw)return!0;if(typeof window>"u")return!1;const t=xZ(),r=e.dsn??t.dsn;return!r||e.enabled===!1?!1:(EV({baseUrl:Cd}),s3({dsn:r,environment:e.environment??t.environment??"production",release:e.release??t.release,sendDefaultPii:!1,maxBreadcrumbs:50,tracesSampleRate:e.tracesSampleRate??CZ(t.tracesSampleRate,.1),tracePropagationTargets:[Cd],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,integrations:o=>[...o.filter(s=>s.name!=="BrowserApiErrors"),Zw({eventTarget:!1})],ignoreErrors:[/Java object is gone/,/Error invoking postMessage/],denyUrls:[/navigation_performance_logger/,/^iabjs:/],beforeSend:o=>ew(o),beforeBreadcrumb:o=>o&&(ew({breadcrumbs:[o]}),o)}),sw=!0,o3("replayIntegration").then(o=>{try{zj(o({maskAllText:!0,maskAllInputs:!0,blockAllMedia:!0,networkDetailAllowUrls:[Cd],networkCaptureBodies:!1}))}catch{}}).catch(()=>{}),!0)}const lw="credify_product",cw="credify_product",EZ={home:"Home","home-insurance":"Home",homeowners:"Home",auto:"Auto","auto-insurance":"Auto",car:"Auto",vehicle:"Auto",bundle:"Bundle","bundle-insurance":"Bundle"};function uw(e){if(e)return EZ[e.trim().toLowerCase()]}let my,dw=!1;function AZ(){try{if(typeof window>"u")return;my=uw(window.sessionStorage?.getItem(cw)),dw=!1;const e=new URL(window.location.href),t=e.searchParams.get(lw);if(t===null)return;const r=uw(t);if(r){my=r,dw=!0;try{window.sessionStorage?.setItem(cw,r)}catch{}}e.searchParams.delete(lw),window.history.replaceState(window.history.state,"",e.toString())}catch(e){pV("widget-product-param",e)}}function fw(){return my}function kZ(){const[e,t]=b.useState(!1),[r,o]=b.useState(()=>(AZ(),fw()));b.useEffect(()=>{hT(),wZ(),dZ()},[]);const s=b.useCallback(u=>{window.parent&&window.parent!==window&&window.parent.postMessage({type:u,source:"credify-insurance-widget"},"*")},[]);b.useEffect(()=>{const u=(h,g,y)=>{window.parent&&window.parent!==window&&window.parent.postMessage({type:"event",source:"credify-insurance-widget",event:h,data:g,meta:y},"*")},f=PV.map(h=>{const g=(y,v)=>u(h,y,v);return fT(h,g),[h,g]});return()=>{for(const[h,g]of f)pT(h,g)}},[]),b.useEffect(()=>{const u=f=>{if(f.data?.source==="credify-insurance-widget")switch(f.data.type){case"open":t(!0),s("opened");break;case"close":t(!1),s("closed");break;case"init":f.data.product&&!fw()&&o(f.data.product),s("ready");break;case"support-open":fZ();break}};return window.addEventListener("message",u),s("ready"),()=>{window.removeEventListener("message",u)}},[s]);const c=b.useCallback(()=>{t(!1),s("closed")},[s]);return d.jsx(Ny,{fallback:d.jsx(SZ,{onClose:c}),children:d.jsx(_Z,{isOpen:e,onClose:c,product:r})})}var MZ=new Set(["/create-quote","/update-quote","/get-quote","/get-stages-for-quote","/get-questions-by-stage","/get-vehicle-options","/is-supported-state","/verify-quote","/get-rates","/request-bind","/prefill-property"]);let pw=!1;function TZ(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 NZ(e,t){try{if(t?.body&&typeof t.body=="string")return JSON.parse(t.body);if(e instanceof Request){const r=await e.clone().text();return r?JSON.parse(r):{}}}catch{return{}}return{}}function RZ(){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 OZ(){if(pw||typeof window>"u"||typeof window.fetch!="function"||!dy())return;pw=!0;const e=window.fetch.bind(window);window.fetch=async(t,r)=>{const o=TZ(t);return!o||!MZ.has(o)||await NZ(t,r),e(t,r)},RZ(),typeof console<"u"&&console.info("[Credify] Mock mode active — all API calls are served from in-memory fixtures.")}OZ();BR.createRoot(document.getElementById("root")).render(d.jsx(b.StrictMode,{children:d.jsx(kZ,{})}));export{IR as R,Ji as i,d as j,b as r,Qo as t};