forge-openclaw-plugin 0.2.23 → 0.2.25

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 (84) hide show
  1. package/README.md +13 -0
  2. package/dist/assets/{board-_C6oMy5w.js → board-VmF4FAfr.js} +3 -3
  3. package/dist/assets/{board-_C6oMy5w.js.map → board-VmF4FAfr.js.map} +1 -1
  4. package/dist/assets/index-CFCKDIMH.js +67 -0
  5. package/dist/assets/index-CFCKDIMH.js.map +1 -0
  6. package/dist/assets/index-ZPY6U1TU.css +1 -0
  7. package/dist/assets/{motion-D4sZgCHd.js → motion-DvkU14p-.js} +3 -3
  8. package/dist/assets/motion-DvkU14p-.js.map +1 -0
  9. package/dist/assets/{table-BWzTaky1.js → table-DgiPof9E.js} +2 -2
  10. package/dist/assets/{table-BWzTaky1.js.map → table-DgiPof9E.js.map} +1 -1
  11. package/dist/assets/{ui-BzK4azQb.js → ui-nYfoC0Gq.js} +2 -2
  12. package/dist/assets/{ui-BzK4azQb.js.map → ui-nYfoC0Gq.js.map} +1 -1
  13. package/dist/assets/vendor-D9PTEPSB.js +824 -0
  14. package/dist/assets/vendor-D9PTEPSB.js.map +1 -0
  15. package/dist/assets/viz-Cqb6s--o.js +34 -0
  16. package/dist/assets/viz-Cqb6s--o.js.map +1 -0
  17. package/dist/index.html +8 -8
  18. package/dist/openclaw/parity.d.ts +1 -1
  19. package/dist/openclaw/parity.js +29 -0
  20. package/dist/openclaw/plugin-entry-shared.d.ts +1 -0
  21. package/dist/openclaw/plugin-entry-shared.js +7 -4
  22. package/dist/openclaw/plugin-sdk-types.d.ts +12 -0
  23. package/dist/openclaw/routes.js +236 -0
  24. package/dist/openclaw/session-bootstrap.d.ts +78 -0
  25. package/dist/openclaw/session-bootstrap.js +240 -0
  26. package/dist/openclaw/tools.js +279 -3
  27. package/dist/server/app.js +855 -19
  28. package/dist/server/connectors/box-registry.js +257 -0
  29. package/dist/server/db.js +2 -0
  30. package/dist/server/discovery-advertiser.js +114 -0
  31. package/dist/server/health.js +39 -11
  32. package/dist/server/index.js +4 -0
  33. package/dist/server/managers/platform/llm-manager.js +40 -4
  34. package/dist/server/managers/platform/openai-responses-provider.js +129 -19
  35. package/dist/server/movement.js +2935 -0
  36. package/dist/server/openapi.js +628 -5
  37. package/dist/server/psyche-types.js +15 -1
  38. package/dist/server/questionnaire-flow.js +552 -0
  39. package/dist/server/questionnaire-seeds.js +853 -0
  40. package/dist/server/questionnaire-types.js +340 -0
  41. package/dist/server/repositories/ai-connectors.js +944 -0
  42. package/dist/server/repositories/ai-processors.js +547 -0
  43. package/dist/server/repositories/diagnostic-logs.js +57 -4
  44. package/dist/server/repositories/entity-ownership.js +9 -1
  45. package/dist/server/repositories/habits.js +77 -9
  46. package/dist/server/repositories/model-settings.js +216 -0
  47. package/dist/server/repositories/notes.js +57 -15
  48. package/dist/server/repositories/preferences.js +124 -0
  49. package/dist/server/repositories/questionnaires.js +1338 -0
  50. package/dist/server/repositories/rewards.js +2 -2
  51. package/dist/server/repositories/settings.js +108 -12
  52. package/dist/server/repositories/surface-layouts.js +76 -0
  53. package/dist/server/repositories/wiki-memory.js +5 -1
  54. package/dist/server/services/entity-crud.js +81 -2
  55. package/dist/server/services/openai-codex-oauth.js +153 -0
  56. package/dist/server/services/psyche-observation-calendar.js +46 -0
  57. package/dist/server/types.js +492 -3
  58. package/dist/server/watch-mobile.js +562 -0
  59. package/dist/server/web.js +9 -2
  60. package/openclaw.plugin.json +1 -1
  61. package/package.json +6 -1
  62. package/server/migrations/024_questionnaires.sql +96 -0
  63. package/server/migrations/025_ai_model_connections.sql +26 -0
  64. package/server/migrations/026_custom_theme_settings.sql +2 -0
  65. package/server/migrations/027_ai_processors.sql +31 -0
  66. package/server/migrations/028_movement_domain.sql +136 -0
  67. package/server/migrations/029_watch_micro_capture.sql +23 -0
  68. package/server/migrations/030_surface_layouts.sql +5 -0
  69. package/server/migrations/031_ai_processor_runtime_upgrades.sql +10 -0
  70. package/server/migrations/032_ai_connectors.sql +44 -0
  71. package/server/migrations/033_movement_trip_point_sync.sql +36 -0
  72. package/server/migrations/034_movement_segment_sync.sql +49 -0
  73. package/skills/forge-openclaw/SKILL.md +12 -1
  74. package/skills/forge-openclaw/entity_conversation_playbooks.md +331 -84
  75. package/skills/forge-openclaw/psyche_entity_playbooks.md +252 -221
  76. package/dist/assets/index-Ch_xeZ2u.js +0 -63
  77. package/dist/assets/index-Ch_xeZ2u.js.map +0 -1
  78. package/dist/assets/index-DvVM7K6j.css +0 -1
  79. package/dist/assets/motion-D4sZgCHd.js.map +0 -1
  80. package/dist/assets/vendor-De38P6YR.js +0 -729
  81. package/dist/assets/vendor-De38P6YR.js.map +0 -1
  82. package/dist/assets/viz-C6hfyqzu.js +0 -34
  83. package/dist/assets/viz-C6hfyqzu.js.map +0 -1
  84. package/skills/forge-openclaw/cron_jobs.md +0 -395
@@ -1,729 +0,0 @@
1
- var dk=Object.defineProperty;var Yb=e=>{throw TypeError(e)};var hk=(e,t,r)=>t in e?dk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var qy=(e,t,r)=>hk(e,typeof t!="symbol"?t+"":t,r),Vy=(e,t,r)=>t.has(e)||Yb("Cannot "+r);var V=(e,t,r)=>(Vy(e,t,"read from private field"),r?r.call(e):t.get(e)),Le=(e,t,r)=>t.has(e)?Yb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Se=(e,t,r,a)=>(Vy(e,t,"write to private field"),a?a.call(e,r):t.set(e,r),r),Ze=(e,t,r)=>(Vy(e,t,"access private method"),r);var af=(e,t,r,a)=>({set _(s){Se(e,t,s,r)},get _(){return V(e,t,a)}});import{s as ad,p as Yx,z as Zx,d as Gx,i as yk,a as Iy,b as Py,t as mk}from"./viz-C6hfyqzu.js";function gk(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(a,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $y={exports:{}},Yo={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Zb;function pk(){if(Zb)return Yo;Zb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(a,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var f in s)f!=="key"&&(o[f]=s[f])}else o=s;return s=o.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:o}}return Yo.Fragment=t,Yo.jsx=r,Yo.jsxs=r,Yo}var Gb;function vk(){return Gb||(Gb=1,$y.exports=pk()),$y.exports}var se=vk(),Fy={exports:{}},Ie={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Qb;function bk(){if(Qb)return Ie;Qb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function b(O){return O===null||typeof O!="object"?null:(O=v&&O[v]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function M(O,I,ae){this.props=O,this.context=I,this.refs=w,this.updater=ae||S}M.prototype.isReactComponent={},M.prototype.setState=function(O,I){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,I,"setState")},M.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function C(){}C.prototype=M.prototype;function E(O,I,ae){this.props=O,this.context=I,this.refs=w,this.updater=ae||S}var k=E.prototype=new C;k.constructor=E,_(k,M.prototype),k.isPureReactComponent=!0;var z=Array.isArray;function N(){}var D={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function L(O,I,ae){var ce=ae.ref;return{$$typeof:e,type:O,key:I,ref:ce!==void 0?ce:null,props:ae}}function Q(O,I){return L(O.type,I,O.props)}function j(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function B(O){var I={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(ae){return I[ae]})}var $=/\/+/g;function G(O,I){return typeof O=="object"&&O!==null&&O.key!=null?B(""+O.key):I.toString(36)}function re(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(N,N):(O.status="pending",O.then(function(I){O.status==="pending"&&(O.status="fulfilled",O.value=I)},function(I){O.status==="pending"&&(O.status="rejected",O.reason=I)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function U(O,I,ae,ce,de){var me=typeof O;(me==="undefined"||me==="boolean")&&(O=null);var be=!1;if(O===null)be=!0;else switch(me){case"bigint":case"string":case"number":be=!0;break;case"object":switch(O.$$typeof){case e:case t:be=!0;break;case p:return be=O._init,U(be(O._payload),I,ae,ce,de)}}if(be)return de=de(O),be=ce===""?"."+G(O,0):ce,z(de)?(ae="",be!=null&&(ae=be.replace($,"$&/")+"/"),U(de,I,ae,"",function(Ue){return Ue})):de!=null&&(j(de)&&(de=Q(de,ae+(de.key==null||O&&O.key===de.key?"":(""+de.key).replace($,"$&/")+"/")+be)),I.push(de)),1;be=0;var ye=ce===""?".":ce+":";if(z(O))for(var he=0;he<O.length;he++)ce=O[he],me=ye+G(ce,he),be+=U(ce,I,ae,me,de);else if(he=b(O),typeof he=="function")for(O=he.call(O),he=0;!(ce=O.next()).done;)ce=ce.value,me=ye+G(ce,he++),be+=U(ce,I,ae,me,de);else if(me==="object"){if(typeof O.then=="function")return U(re(O),I,ae,ce,de);throw I=String(O),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.")}return be}function F(O,I,ae){if(O==null)return O;var ce=[],de=0;return U(O,ce,"","",function(me){return I.call(ae,me,de++)}),ce}function Z(O){if(O._status===-1){var I=O._result;I=I(),I.then(function(ae){(O._status===0||O._status===-1)&&(O._status=1,O._result=ae)},function(ae){(O._status===0||O._status===-1)&&(O._status=2,O._result=ae)}),O._status===-1&&(O._status=0,O._result=I)}if(O._status===1)return O._result.default;throw O._result}var K=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(I))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},J={map:F,forEach:function(O,I,ae){F(O,function(){I.apply(this,arguments)},ae)},count:function(O){var I=0;return F(O,function(){I++}),I},toArray:function(O){return F(O,function(I){return I})||[]},only:function(O){if(!j(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return Ie.Activity=g,Ie.Children=J,Ie.Component=M,Ie.Fragment=r,Ie.Profiler=s,Ie.PureComponent=E,Ie.StrictMode=a,Ie.Suspense=d,Ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Ie.__COMPILER_RUNTIME={__proto__:null,c:function(O){return D.H.useMemoCache(O)}},Ie.cache=function(O){return function(){return O.apply(null,arguments)}},Ie.cacheSignal=function(){return null},Ie.cloneElement=function(O,I,ae){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var ce=_({},O.props),de=O.key;if(I!=null)for(me in I.key!==void 0&&(de=""+I.key),I)!T.call(I,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&I.ref===void 0||(ce[me]=I[me]);var me=arguments.length-2;if(me===1)ce.children=ae;else if(1<me){for(var be=Array(me),ye=0;ye<me;ye++)be[ye]=arguments[ye+2];ce.children=be}return L(O.type,de,ce)},Ie.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:o,_context:O},O},Ie.createElement=function(O,I,ae){var ce,de={},me=null;if(I!=null)for(ce in I.key!==void 0&&(me=""+I.key),I)T.call(I,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(de[ce]=I[ce]);var be=arguments.length-2;if(be===1)de.children=ae;else if(1<be){for(var ye=Array(be),he=0;he<be;he++)ye[he]=arguments[he+2];de.children=ye}if(O&&O.defaultProps)for(ce in be=O.defaultProps,be)de[ce]===void 0&&(de[ce]=be[ce]);return L(O,me,de)},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function(O){return{$$typeof:f,render:O}},Ie.isValidElement=j,Ie.lazy=function(O){return{$$typeof:p,_payload:{_status:-1,_result:O},_init:Z}},Ie.memo=function(O,I){return{$$typeof:y,type:O,compare:I===void 0?null:I}},Ie.startTransition=function(O){var I=D.T,ae={};D.T=ae;try{var ce=O(),de=D.S;de!==null&&de(ae,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(N,K)}catch(me){K(me)}finally{I!==null&&ae.types!==null&&(I.types=ae.types),D.T=I}},Ie.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Ie.use=function(O){return D.H.use(O)},Ie.useActionState=function(O,I,ae){return D.H.useActionState(O,I,ae)},Ie.useCallback=function(O,I){return D.H.useCallback(O,I)},Ie.useContext=function(O){return D.H.useContext(O)},Ie.useDebugValue=function(){},Ie.useDeferredValue=function(O,I){return D.H.useDeferredValue(O,I)},Ie.useEffect=function(O,I){return D.H.useEffect(O,I)},Ie.useEffectEvent=function(O){return D.H.useEffectEvent(O)},Ie.useId=function(){return D.H.useId()},Ie.useImperativeHandle=function(O,I,ae){return D.H.useImperativeHandle(O,I,ae)},Ie.useInsertionEffect=function(O,I){return D.H.useInsertionEffect(O,I)},Ie.useLayoutEffect=function(O,I){return D.H.useLayoutEffect(O,I)},Ie.useMemo=function(O,I){return D.H.useMemo(O,I)},Ie.useOptimistic=function(O,I){return D.H.useOptimistic(O,I)},Ie.useReducer=function(O,I,ae){return D.H.useReducer(O,I,ae)},Ie.useRef=function(O){return D.H.useRef(O)},Ie.useState=function(O){return D.H.useState(O)},Ie.useSyncExternalStore=function(O,I,ae){return D.H.useSyncExternalStore(O,I,ae)},Ie.useTransition=function(){return D.H.useTransition()},Ie.version="19.2.4",Ie}var Xb;function Pl(){return Xb||(Xb=1,Fy.exports=bk()),Fy.exports}var R=Pl();const jt=Er(R),k7=gk({__proto__:null,default:jt},[R]);var Yy={exports:{}},Zo={},Zy={exports:{}},Gy={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Kb;function _k(){return Kb||(Kb=1,(function(e){function t(U,F){var Z=U.length;U.push(F);e:for(;0<Z;){var K=Z-1>>>1,J=U[K];if(0<s(J,F))U[K]=F,U[Z]=J,Z=K;else break e}}function r(U){return U.length===0?null:U[0]}function a(U){if(U.length===0)return null;var F=U[0],Z=U.pop();if(Z!==F){U[0]=Z;e:for(var K=0,J=U.length,O=J>>>1;K<O;){var I=2*(K+1)-1,ae=U[I],ce=I+1,de=U[ce];if(0>s(ae,Z))ce<J&&0>s(de,ae)?(U[K]=de,U[ce]=Z,K=ce):(U[K]=ae,U[I]=Z,K=I);else if(ce<J&&0>s(de,Z))U[K]=de,U[ce]=Z,K=ce;else break e}}return F}function s(U,F){var Z=U.sortIndex-F.sortIndex;return Z!==0?Z:U.id-F.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],y=[],p=1,g=null,v=3,b=!1,S=!1,_=!1,w=!1,M=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function k(U){for(var F=r(y);F!==null;){if(F.callback===null)a(y);else if(F.startTime<=U)a(y),F.sortIndex=F.expirationTime,t(d,F);else break;F=r(y)}}function z(U){if(_=!1,k(U),!S)if(r(d)!==null)S=!0,N||(N=!0,B());else{var F=r(y);F!==null&&re(z,F.startTime-U)}}var N=!1,D=-1,T=5,L=-1;function Q(){return w?!0:!(e.unstable_now()-L<T)}function j(){if(w=!1,N){var U=e.unstable_now();L=U;var F=!0;try{e:{S=!1,_&&(_=!1,C(D),D=-1),b=!0;var Z=v;try{t:{for(k(U),g=r(d);g!==null&&!(g.expirationTime>U&&Q());){var K=g.callback;if(typeof K=="function"){g.callback=null,v=g.priorityLevel;var J=K(g.expirationTime<=U);if(U=e.unstable_now(),typeof J=="function"){g.callback=J,k(U),F=!0;break t}g===r(d)&&a(d),k(U)}else a(d);g=r(d)}if(g!==null)F=!0;else{var O=r(y);O!==null&&re(z,O.startTime-U),F=!1}}break e}finally{g=null,v=Z,b=!1}F=void 0}}finally{F?B():N=!1}}}var B;if(typeof E=="function")B=function(){E(j)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,G=$.port2;$.port1.onmessage=j,B=function(){G.postMessage(null)}}else B=function(){M(j,0)};function re(U,F){D=M(function(){U(e.unstable_now())},F)}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(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(U){switch(v){case 1:case 2:case 3:var F=3;break;default:F=v}var Z=v;v=F;try{return U()}finally{v=Z}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(U,F){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Z=v;v=U;try{return F()}finally{v=Z}},e.unstable_scheduleCallback=function(U,F,Z){var K=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?K+Z:K):Z=K,U){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=Z+J,U={id:p++,callback:F,priorityLevel:U,startTime:Z,expirationTime:J,sortIndex:-1},Z>K?(U.sortIndex=Z,t(y,U),r(d)===null&&U===r(y)&&(_?(C(D),D=-1):_=!0,re(z,Z-K))):(U.sortIndex=J,t(d,U),S||b||(S=!0,N||(N=!0,B()))),U},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(U){var F=v;return function(){var Z=v;v=F;try{return U.apply(this,arguments)}finally{v=Z}}}})(Gy)),Gy}var Jb;function Sk(){return Jb||(Jb=1,Zy.exports=_k()),Zy.exports}var Qy={exports:{}},dn={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Wb;function xk(){if(Wb)return dn;Wb=1;var e=Pl();function t(d){var y="https://react.dev/errors/"+d;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)y+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={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 o(d,y,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:d,containerInfo:y,implementation:p}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,y){if(d==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return dn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,dn.createPortal=function(d,y){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(t(299));return o(d,y,null,p)},dn.flushSync=function(d){var y=c.T,p=a.p;try{if(c.T=null,a.p=2,d)return d()}finally{c.T=y,a.p=p,a.d.f()}},dn.preconnect=function(d,y){typeof d=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,a.d.C(d,y))},dn.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},dn.preinit=function(d,y){if(typeof d=="string"&&y&&typeof y.as=="string"){var p=y.as,g=f(p,y.crossOrigin),v=typeof y.integrity=="string"?y.integrity:void 0,b=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;p==="style"?a.d.S(d,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:b}):p==="script"&&a.d.X(d,{crossOrigin:g,integrity:v,fetchPriority:b,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},dn.preinitModule=function(d,y){if(typeof d=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var p=f(y.as,y.crossOrigin);a.d.M(d,{crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&a.d.M(d)},dn.preload=function(d,y){if(typeof d=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var p=y.as,g=f(p,y.crossOrigin);a.d.L(d,p,{crossOrigin:g,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},dn.preloadModule=function(d,y){if(typeof d=="string")if(y){var p=f(y.as,y.crossOrigin);a.d.m(d,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else a.d.m(d)},dn.requestFormReset=function(d){a.d.r(d)},dn.unstable_batchedUpdates=function(d,y){return d(y)},dn.useFormState=function(d,y,p){return c.H.useFormState(d,y,p)},dn.useFormStatus=function(){return c.H.useHostTransitionStatus()},dn.version="19.2.4",dn}var e2;function Qx(){if(e2)return Qy.exports;e2=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(),Qy.exports=xk(),Qy.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var t2;function wk(){if(t2)return Zo;t2=1;var e=Sk(),t=Pl(),r=Qx();function a(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+i+" 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 o(n){var i=n,l=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(l=i.return),n=i.return;while(n)}return i.tag===3?l:null}function c(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(n.tag===31){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function d(n){if(o(n)!==n)throw Error(a(188))}function y(n){var i=n.alternate;if(!i){if(i=o(n),i===null)throw Error(a(188));return i!==n?null:n}for(var l=n,u=i;;){var h=l.return;if(h===null)break;var m=h.alternate;if(m===null){if(u=h.return,u!==null){l=u;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===l)return d(h),n;if(m===u)return d(h),i;m=m.sibling}throw Error(a(188))}if(l.return!==u.return)l=h,u=m;else{for(var x=!1,A=h.child;A;){if(A===l){x=!0,l=h,u=m;break}if(A===u){x=!0,u=h,l=m;break}A=A.sibling}if(!x){for(A=m.child;A;){if(A===l){x=!0,l=m,u=h;break}if(A===u){x=!0,u=m,l=h;break}A=A.sibling}if(!x)throw Error(a(189))}}if(l.alternate!==u)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?n:i}function p(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=p(n),i!==null)return i;n=n.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function B(n){return n===null||typeof n!="object"?null:(n=j&&n[j]||n["@@iterator"],typeof n=="function"?n:null)}var $=Symbol.for("react.client.reference");function G(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===$?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case _:return"Fragment";case M:return"Profiler";case w:return"StrictMode";case z:return"Suspense";case N:return"SuspenseList";case L:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case E:return n.displayName||"Context";case C:return(n._context.displayName||"Context")+".Consumer";case k:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case D:return i=n.displayName||null,i!==null?i:G(n.type)||"Memo";case T:i=n._payload,n=n._init;try{return G(n(i))}catch{}}return null}var re=Array.isArray,U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},K=[],J=-1;function O(n){return{current:n}}function I(n){0>J||(n.current=K[J],K[J]=null,J--)}function ae(n,i){J++,K[J]=n.current,n.current=i}var ce=O(null),de=O(null),me=O(null),be=O(null);function ye(n,i){switch(ae(me,i),ae(de,n),ae(ce,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?mb(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=mb(i),n=gb(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}I(ce),ae(ce,n)}function he(){I(ce),I(de),I(me)}function Ue(n){n.memoizedState!==null&&ae(be,n);var i=ce.current,l=gb(i,n.type);i!==l&&(ae(de,n),ae(ce,l))}function De(n){de.current===n&&(I(ce),I(de)),be.current===n&&(I(be),Io._currentValue=Z)}var Re,ze;function qe(n){if(Re===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);Re=i&&i[1]||"",ze=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Re+n+ze}var ut=!1;function Ge(n,i){if(!n||ut)return"";ut=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(ie){var ne=ie}Reflect.construct(n,[],fe)}else{try{fe.call()}catch(ie){ne=ie}n.call(fe.prototype)}}else{try{throw Error()}catch(ie){ne=ie}(fe=n())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(ie){if(ie&&ne&&typeof ie.stack=="string")return[ie.stack,ne.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),x=m[0],A=m[1];if(x&&A){var H=x.split(`
44
- `),ee=A.split(`
45
- `);for(h=u=0;u<H.length&&!H[u].includes("DetermineComponentFrameRoot");)u++;for(;h<ee.length&&!ee[h].includes("DetermineComponentFrameRoot");)h++;if(u===H.length||h===ee.length)for(u=H.length-1,h=ee.length-1;1<=u&&0<=h&&H[u]!==ee[h];)h--;for(;1<=u&&0<=h;u--,h--)if(H[u]!==ee[h]){if(u!==1||h!==1)do if(u--,h--,0>h||H[u]!==ee[h]){var le=`
46
- `+H[u].replace(" at new "," at ");return n.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",n.displayName)),le}while(1<=u&&0<=h);break}}}finally{ut=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?qe(l):""}function Dt(n,i){switch(n.tag){case 26:case 27:case 5:return qe(n.type);case 16:return qe("Lazy");case 13:return n.child!==i&&i!==null?qe("Suspense Fallback"):qe("Suspense");case 19:return qe("SuspenseList");case 0:case 15:return Ge(n.type,!1);case 11:return Ge(n.type.render,!1);case 1:return Ge(n.type,!0);case 31:return qe("Activity");default:return""}}function Dn(n){try{var i="",l=null;do i+=Dt(n,l),l=n,n=n.return;while(n);return i}catch(u){return`
47
- Error generating stack: `+u.message+`
48
- `+u.stack}}var yn=Object.prototype.hasOwnProperty,Qn=e.unstable_scheduleCallback,Xn=e.unstable_cancelCallback,q=e.unstable_shouldYield,X=e.unstable_requestPaint,te=e.unstable_now,_e=e.unstable_getCurrentPriorityLevel,ge=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,we=e.unstable_NormalPriority,Ve=e.unstable_LowPriority,We=e.unstable_IdlePriority,rn=e.log,Sn=e.unstable_setDisableYieldValue,Rt=null,an=null;function xn(n){if(typeof rn=="function"&&Sn(n),an&&typeof an.setStrictMode=="function")try{an.setStrictMode(Rt,n)}catch{}}var Qt=Math.clz32?Math.clz32:Kl,Xl=Math.log,Ss=Math.LN2;function Kl(n){return n>>>=0,n===0?32:31-(Xl(n)/Ss|0)|0}var Vr=256,xs=262144,ws=4194304;function Ir(n){var i=n&42;if(i!==0)return i;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 Es(n,i,l){var u=n.pendingLanes;if(u===0)return 0;var h=0,m=n.suspendedLanes,x=n.pingedLanes;n=n.warmLanes;var A=u&134217727;return A!==0?(u=A&~m,u!==0?h=Ir(u):(x&=A,x!==0?h=Ir(x):l||(l=A&~n,l!==0&&(h=Ir(l))))):(A=u&~m,A!==0?h=Ir(A):x!==0?h=Ir(x):l||(l=u&~n,l!==0&&(h=Ir(l)))),h===0?0:i!==0&&i!==h&&(i&m)===0&&(m=h&-h,l=i&-i,m>=l||m===32&&(l&4194048)!==0)?i:h}function wa(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function Td(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Lu(){var n=ws;return ws<<=1,(ws&62914560)===0&&(ws=4194304),n}function Jl(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function Ea(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Rd(n,i,l,u,h,m){var x=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var A=n.entanglements,H=n.expirationTimes,ee=n.hiddenUpdates;for(l=x&~l;0<l;){var le=31-Qt(l),fe=1<<le;A[le]=0,H[le]=-1;var ne=ee[le];if(ne!==null)for(ee[le]=null,le=0;le<ne.length;le++){var ie=ne[le];ie!==null&&(ie.lane&=-536870913)}l&=~fe}u!==0&&Bu(n,u,0),m!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=m&~(x&~i))}function Bu(n,i,l){n.pendingLanes|=i,n.suspendedLanes&=~i;var u=31-Qt(i);n.entangledLanes|=i,n.entanglements[u]=n.entanglements[u]|1073741824|l&261930}function ju(n,i){var l=n.entangledLanes|=i;for(n=n.entanglements;l;){var u=31-Qt(l),h=1<<u;h&i|n[u]&i&&(n[u]|=i),l&=~h}}function Uu(n,i){var l=i&-i;return l=(l&42)!==0?1:Wl(l),(l&(n.suspendedLanes|i))!==0?0:l}function Wl(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 eo(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Hu(){var n=F.p;return n!==0?n:(n=window.event,n===void 0?32:Hb(n.type))}function qu(n,i){var l=F.p;try{return F.p=n,i()}finally{F.p=l}}var Mr=Math.random().toString(36).slice(2),Xt="__reactFiber$"+Mr,fn="__reactProps$"+Mr,Pr="__reactContainer$"+Mr,Ms="__reactEvents$"+Mr,Vu="__reactListeners$"+Mr,Nd="__reactHandles$"+Mr,Iu="__reactResources$"+Mr,Ma="__reactMarker$"+Mr;function to(n){delete n[Xt],delete n[fn],delete n[Ms],delete n[Vu],delete n[Nd]}function wi(n){var i=n[Xt];if(i)return i;for(var l=n.parentNode;l;){if(i=l[Pr]||l[Xt]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=wb(n);n!==null;){if(l=n[Xt])return l;n=wb(n)}return i}n=l,l=n.parentNode}return null}function Ei(n){if(n=n[Xt]||n[Pr]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function Mi(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(a(33))}function Ci(n){var i=n[Iu];return i||(i=n[Iu]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function qt(n){n[Ma]=!0}var Pu=new Set,$u={};function $r(n,i){ki(n,i),ki(n+"Capture",i)}function ki(n,i){for($u[n]=i,n=0;n<i.length;n++)Pu.add(i[n])}var Od=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]*$"),no={},Fu={};function zd(n){return yn.call(Fu,n)?!0:yn.call(no,n)?!1:Od.test(n)?Fu[n]=!0:(no[n]=!0,!1)}function Cs(n,i,l){if(zd(i))if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+l)}}function ks(n,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.setAttribute(i,""+l)}}function fr(n,i,l,u){if(u===null)n.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(i,l,""+u)}}function wn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Yu(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Dd(n,i,l){var u=Object.getOwnPropertyDescriptor(n.constructor.prototype,i);if(!n.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var h=u.get,m=u.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return h.call(this)},set:function(x){l=""+x,m.call(this,x)}}),Object.defineProperty(n,i,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Ai(n){if(!n._valueTracker){var i=Yu(n)?"checked":"value";n._valueTracker=Dd(n,i,""+n[i])}}function Zu(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),u="";return n&&(u=Yu(n)?n.checked?"true":"false":n.value),n=u,n!==l?(i.setValue(n),!0):!1}function Ca(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 Ld=/[\n"\\]/g;function En(n){return n.replace(Ld,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function ka(n,i,l,u,h,m,x,A){n.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?n.type=x:n.removeAttribute("type"),i!=null?x==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+wn(i)):n.value!==""+wn(i)&&(n.value=""+wn(i)):x!=="submit"&&x!=="reset"||n.removeAttribute("value"),i!=null?ro(n,x,wn(i)):l!=null?ro(n,x,wn(l)):u!=null&&n.removeAttribute("value"),h==null&&m!=null&&(n.defaultChecked=!!m),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?n.name=""+wn(A):n.removeAttribute("name")}function Gu(n,i,l,u,h,m,x,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(n.type=m),i!=null||l!=null){if(!(m!=="submit"&&m!=="reset"||i!=null)){Ai(n);return}l=l!=null?""+wn(l):"",i=i!=null?""+wn(i):l,A||i===n.value||(n.value=i),n.defaultValue=i}u=u??h,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=A?n.checked:!!u,n.defaultChecked=!!u,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(n.name=x),Ai(n)}function ro(n,i,l){i==="number"&&Ca(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function Fr(n,i,l,u){if(n=n.options,i){i={};for(var h=0;h<l.length;h++)i["$"+l[h]]=!0;for(l=0;l<n.length;l++)h=i.hasOwnProperty("$"+n[l].value),n[l].selected!==h&&(n[l].selected=h),h&&u&&(n[l].defaultSelected=!0)}else{for(l=""+wn(l),i=null,h=0;h<n.length;h++){if(n[h].value===l){n[h].selected=!0,u&&(n[h].defaultSelected=!0);return}i!==null||n[h].disabled||(i=n[h])}i!==null&&(i.selected=!0)}}function c0(n,i,l){if(i!=null&&(i=""+wn(i),i!==n.value&&(n.value=i),l==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=l!=null?""+wn(l):""}function f0(n,i,l,u){if(i==null){if(u!=null){if(l!=null)throw Error(a(92));if(re(u)){if(1<u.length)throw Error(a(93));u=u[0]}l=u}l==null&&(l=""),i=l}l=wn(i),n.defaultValue=l,u=n.textContent,u===l&&u!==""&&u!==null&&(n.value=u),Ai(n)}function As(n,i){if(i){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=i;return}}n.textContent=i}var lC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function d0(n,i,l){var u=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":u?n.setProperty(i,l):typeof l!="number"||l===0||lC.has(i)?i==="float"?n.cssFloat=l:n[i]=(""+l).trim():n[i]=l+"px"}function h0(n,i,l){if(i!=null&&typeof i!="object")throw Error(a(62));if(n=n.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var h in i)u=i[h],i.hasOwnProperty(h)&&l[h]!==u&&d0(n,h,u)}else for(var m in i)i.hasOwnProperty(m)&&d0(n,m,i[m])}function Bd(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 oC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),uC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Qu(n){return uC.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Yr(){}var jd=null;function Ud(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ts=null,Rs=null;function y0(n){var i=Ei(n);if(i&&(n=i.stateNode)){var l=n[fn]||null;e:switch(n=i.stateNode,i.type){case"input":if(ka(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+En(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var u=l[i];if(u!==n&&u.form===n.form){var h=u[fn]||null;if(!h)throw Error(a(90));ka(u,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(i=0;i<l.length;i++)u=l[i],u.form===n.form&&Zu(u)}break e;case"textarea":c0(n,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&Fr(n,!!l.multiple,i,!1)}}}var Hd=!1;function m0(n,i,l){if(Hd)return n(i,l);Hd=!0;try{var u=n(i);return u}finally{if(Hd=!1,(Ts!==null||Rs!==null)&&(Bc(),Ts&&(i=Ts,n=Rs,Rs=Ts=null,y0(i),n)))for(i=0;i<n.length;i++)y0(n[i])}}function io(n,i){var l=n.stateNode;if(l===null)return null;var u=l[fn]||null;if(u===null)return null;l=u[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(a(231,i,typeof l));return l}var Zr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qd=!1;if(Zr)try{var ao={};Object.defineProperty(ao,"passive",{get:function(){qd=!0}}),window.addEventListener("test",ao,ao),window.removeEventListener("test",ao,ao)}catch{qd=!1}var Ti=null,Vd=null,Xu=null;function g0(){if(Xu)return Xu;var n,i=Vd,l=i.length,u,h="value"in Ti?Ti.value:Ti.textContent,m=h.length;for(n=0;n<l&&i[n]===h[n];n++);var x=l-n;for(u=1;u<=x&&i[l-u]===h[m-u];u++);return Xu=h.slice(n,1<u?1-u:void 0)}function Ku(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Ju(){return!0}function p0(){return!1}function Mn(n){function i(l,u,h,m,x){this._reactName=l,this._targetInst=h,this.type=u,this.nativeEvent=m,this.target=x,this.currentTarget=null;for(var A in n)n.hasOwnProperty(A)&&(l=n[A],this[A]=l?l(m):m[A]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Ju:p0,this.isPropagationStopped=p0,this}return g(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ju)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ju)},persist:function(){},isPersistent:Ju}),i}var Aa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wu=Mn(Aa),so=g({},Aa,{view:0,detail:0}),cC=Mn(so),Id,Pd,lo,ec=g({},so,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fd,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!==lo&&(lo&&n.type==="mousemove"?(Id=n.screenX-lo.screenX,Pd=n.screenY-lo.screenY):Pd=Id=0,lo=n),Id)},movementY:function(n){return"movementY"in n?n.movementY:Pd}}),v0=Mn(ec),fC=g({},ec,{dataTransfer:0}),dC=Mn(fC),hC=g({},so,{relatedTarget:0}),$d=Mn(hC),yC=g({},Aa,{animationName:0,elapsedTime:0,pseudoElement:0}),mC=Mn(yC),gC=g({},Aa,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),pC=Mn(gC),vC=g({},Aa,{data:0}),b0=Mn(vC),bC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_C={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},SC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xC(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=SC[n])?!!i[n]:!1}function Fd(){return xC}var wC=g({},so,{key:function(n){if(n.key){var i=bC[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Ku(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?_C[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fd,charCode:function(n){return n.type==="keypress"?Ku(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ku(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),EC=Mn(wC),MC=g({},ec,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_0=Mn(MC),CC=g({},so,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fd}),kC=Mn(CC),AC=g({},Aa,{propertyName:0,elapsedTime:0,pseudoElement:0}),TC=Mn(AC),RC=g({},ec,{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}),NC=Mn(RC),OC=g({},Aa,{newState:0,oldState:0}),zC=Mn(OC),DC=[9,13,27,32],Yd=Zr&&"CompositionEvent"in window,oo=null;Zr&&"documentMode"in document&&(oo=document.documentMode);var LC=Zr&&"TextEvent"in window&&!oo,S0=Zr&&(!Yd||oo&&8<oo&&11>=oo),x0=" ",w0=!1;function E0(n,i){switch(n){case"keyup":return DC.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function M0(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ns=!1;function BC(n,i){switch(n){case"compositionend":return M0(i);case"keypress":return i.which!==32?null:(w0=!0,x0);case"textInput":return n=i.data,n===x0&&w0?null:n;default:return null}}function jC(n,i){if(Ns)return n==="compositionend"||!Yd&&E0(n,i)?(n=g0(),Xu=Vd=Ti=null,Ns=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return S0&&i.locale!=="ko"?null:i.data;default:return null}}var UC={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 C0(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!UC[n.type]:i==="textarea"}function k0(n,i,l,u){Ts?Rs?Rs.push(u):Rs=[u]:Ts=u,i=Pc(i,"onChange"),0<i.length&&(l=new Wu("onChange","change",null,l,u),n.push({event:l,listeners:i}))}var uo=null,co=null;function HC(n){ub(n,0)}function tc(n){var i=Mi(n);if(Zu(i))return n}function A0(n,i){if(n==="change")return i}var T0=!1;if(Zr){var Zd;if(Zr){var Gd="oninput"in document;if(!Gd){var R0=document.createElement("div");R0.setAttribute("oninput","return;"),Gd=typeof R0.oninput=="function"}Zd=Gd}else Zd=!1;T0=Zd&&(!document.documentMode||9<document.documentMode)}function N0(){uo&&(uo.detachEvent("onpropertychange",O0),co=uo=null)}function O0(n){if(n.propertyName==="value"&&tc(co)){var i=[];k0(i,co,n,Ud(n)),m0(HC,i)}}function qC(n,i,l){n==="focusin"?(N0(),uo=i,co=l,uo.attachEvent("onpropertychange",O0)):n==="focusout"&&N0()}function VC(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return tc(co)}function IC(n,i){if(n==="click")return tc(i)}function PC(n,i){if(n==="input"||n==="change")return tc(i)}function $C(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Ln=typeof Object.is=="function"?Object.is:$C;function fo(n,i){if(Ln(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var l=Object.keys(n),u=Object.keys(i);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var h=l[u];if(!yn.call(i,h)||!Ln(n[h],i[h]))return!1}return!0}function z0(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function D0(n,i){var l=z0(n);n=0;for(var u;l;){if(l.nodeType===3){if(u=n+l.textContent.length,n<=i&&u>=i)return{node:l,offset:i-n};n=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=z0(l)}}function L0(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?L0(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function B0(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=Ca(n.document);i instanceof n.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)n=i.contentWindow;else break;i=Ca(n.document)}return i}function Qd(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var FC=Zr&&"documentMode"in document&&11>=document.documentMode,Os=null,Xd=null,ho=null,Kd=!1;function j0(n,i,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Kd||Os==null||Os!==Ca(u)||(u=Os,"selectionStart"in u&&Qd(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),ho&&fo(ho,u)||(ho=u,u=Pc(Xd,"onSelect"),0<u.length&&(i=new Wu("onSelect","select",null,i,l),n.push({event:i,listeners:u}),i.target=Os)))}function Ta(n,i){var l={};return l[n.toLowerCase()]=i.toLowerCase(),l["Webkit"+n]="webkit"+i,l["Moz"+n]="moz"+i,l}var zs={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},Jd={},U0={};Zr&&(U0=document.createElement("div").style,"AnimationEvent"in window||(delete zs.animationend.animation,delete zs.animationiteration.animation,delete zs.animationstart.animation),"TransitionEvent"in window||delete zs.transitionend.transition);function Ra(n){if(Jd[n])return Jd[n];if(!zs[n])return n;var i=zs[n],l;for(l in i)if(i.hasOwnProperty(l)&&l in U0)return Jd[n]=i[l];return n}var H0=Ra("animationend"),q0=Ra("animationiteration"),V0=Ra("animationstart"),YC=Ra("transitionrun"),ZC=Ra("transitionstart"),GC=Ra("transitioncancel"),I0=Ra("transitionend"),P0=new Map,Wd="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(" ");Wd.push("scrollEnd");function dr(n,i){P0.set(n,i),$r(i,[n])}var nc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=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(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Kn=[],Ds=0,eh=0;function rc(){for(var n=Ds,i=eh=Ds=0;i<n;){var l=Kn[i];Kn[i++]=null;var u=Kn[i];Kn[i++]=null;var h=Kn[i];Kn[i++]=null;var m=Kn[i];if(Kn[i++]=null,u!==null&&h!==null){var x=u.pending;x===null?h.next=h:(h.next=x.next,x.next=h),u.pending=h}m!==0&&$0(l,h,m)}}function ic(n,i,l,u){Kn[Ds++]=n,Kn[Ds++]=i,Kn[Ds++]=l,Kn[Ds++]=u,eh|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function th(n,i,l,u){return ic(n,i,l,u),ac(n)}function Na(n,i){return ic(n,null,null,i),ac(n)}function $0(n,i,l){n.lanes|=l;var u=n.alternate;u!==null&&(u.lanes|=l);for(var h=!1,m=n.return;m!==null;)m.childLanes|=l,u=m.alternate,u!==null&&(u.childLanes|=l),m.tag===22&&(n=m.stateNode,n===null||n._visibility&1||(h=!0)),n=m,m=m.return;return n.tag===3?(m=n.stateNode,h&&i!==null&&(h=31-Qt(l),n=m.hiddenUpdates,u=n[h],u===null?n[h]=[i]:u.push(i),i.lane=l|536870912),m):null}function ac(n){if(50<Lo)throw Lo=0,cy=null,Error(a(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var Ls={};function QC(n,i,l,u){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bn(n,i,l,u){return new QC(n,i,l,u)}function nh(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Gr(n,i){var l=n.alternate;return l===null?(l=Bn(n.tag,i,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=i,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&65011712,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,i=n.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function F0(n,i){n.flags&=65011714;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,i=l.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function sc(n,i,l,u,h,m){var x=0;if(u=n,typeof n=="function")nh(n)&&(x=1);else if(typeof n=="string")x=ek(n,l,ce.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case L:return n=Bn(31,l,i,h),n.elementType=L,n.lanes=m,n;case _:return Oa(l.children,h,m,i);case w:x=8,h|=24;break;case M:return n=Bn(12,l,i,h|2),n.elementType=M,n.lanes=m,n;case z:return n=Bn(13,l,i,h),n.elementType=z,n.lanes=m,n;case N:return n=Bn(19,l,i,h),n.elementType=N,n.lanes=m,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:x=10;break e;case C:x=9;break e;case k:x=11;break e;case D:x=14;break e;case T:x=16,u=null;break e}x=29,l=Error(a(130,n===null?"null":typeof n,"")),u=null}return i=Bn(x,l,i,h),i.elementType=n,i.type=u,i.lanes=m,i}function Oa(n,i,l,u){return n=Bn(7,n,u,i),n.lanes=l,n}function rh(n,i,l){return n=Bn(6,n,null,i),n.lanes=l,n}function Y0(n){var i=Bn(18,null,null,0);return i.stateNode=n,i}function ih(n,i,l){return i=Bn(4,n.children!==null?n.children:[],n.key,i),i.lanes=l,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var Z0=new WeakMap;function Jn(n,i){if(typeof n=="object"&&n!==null){var l=Z0.get(n);return l!==void 0?l:(i={value:n,source:i,stack:Dn(i)},Z0.set(n,i),i)}return{value:n,source:i,stack:Dn(i)}}var Bs=[],js=0,lc=null,yo=0,Wn=[],er=0,Ri=null,Cr=1,kr="";function Qr(n,i){Bs[js++]=yo,Bs[js++]=lc,lc=n,yo=i}function G0(n,i,l){Wn[er++]=Cr,Wn[er++]=kr,Wn[er++]=Ri,Ri=n;var u=Cr;n=kr;var h=32-Qt(u)-1;u&=~(1<<h),l+=1;var m=32-Qt(i)+h;if(30<m){var x=h-h%5;m=(u&(1<<x)-1).toString(32),u>>=x,h-=x,Cr=1<<32-Qt(i)+h|l<<h|u,kr=m+n}else Cr=1<<m|l<<h|u,kr=n}function ah(n){n.return!==null&&(Qr(n,1),G0(n,1,0))}function sh(n){for(;n===lc;)lc=Bs[--js],Bs[js]=null,yo=Bs[--js],Bs[js]=null;for(;n===Ri;)Ri=Wn[--er],Wn[er]=null,kr=Wn[--er],Wn[er]=null,Cr=Wn[--er],Wn[er]=null}function Q0(n,i){Wn[er++]=Cr,Wn[er++]=kr,Wn[er++]=Ri,Cr=i.id,kr=i.overflow,Ri=n}var sn=null,_t=null,nt=!1,Ni=null,tr=!1,lh=Error(a(519));function Oi(n){var i=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw mo(Jn(i,n)),lh}function X0(n){var i=n.stateNode,l=n.type,u=n.memoizedProps;switch(i[Xt]=n,i[fn]=u,l){case"dialog":Je("cancel",i),Je("close",i);break;case"iframe":case"object":case"embed":Je("load",i);break;case"video":case"audio":for(l=0;l<jo.length;l++)Je(jo[l],i);break;case"source":Je("error",i);break;case"img":case"image":case"link":Je("error",i),Je("load",i);break;case"details":Je("toggle",i);break;case"input":Je("invalid",i),Gu(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Je("invalid",i);break;case"textarea":Je("invalid",i),f0(i,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||u.suppressHydrationWarning===!0||hb(i.textContent,l)?(u.popover!=null&&(Je("beforetoggle",i),Je("toggle",i)),u.onScroll!=null&&Je("scroll",i),u.onScrollEnd!=null&&Je("scrollend",i),u.onClick!=null&&(i.onclick=Yr),i=!0):i=!1,i||Oi(n,!0)}function K0(n){for(sn=n.return;sn;)switch(sn.tag){case 5:case 31:case 13:tr=!1;return;case 27:case 3:tr=!0;return;default:sn=sn.return}}function Us(n){if(n!==sn)return!1;if(!nt)return K0(n),nt=!0,!1;var i=n.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||My(n.type,n.memoizedProps)),l=!l),l&&_t&&Oi(n),K0(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));_t=xb(n)}else if(i===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));_t=xb(n)}else i===27?(i=_t,Yi(n.type)?(n=Ry,Ry=null,_t=n):_t=i):_t=sn?rr(n.stateNode.nextSibling):null;return!0}function za(){_t=sn=null,nt=!1}function oh(){var n=Ni;return n!==null&&(Tn===null?Tn=n:Tn.push.apply(Tn,n),Ni=null),n}function mo(n){Ni===null?Ni=[n]:Ni.push(n)}var uh=O(null),Da=null,Xr=null;function zi(n,i,l){ae(uh,i._currentValue),i._currentValue=l}function Kr(n){n._currentValue=uh.current,I(uh)}function ch(n,i,l){for(;n!==null;){var u=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),n===l)break;n=n.return}}function fh(n,i,l,u){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var m=h.dependencies;if(m!==null){var x=h.child;m=m.firstContext;e:for(;m!==null;){var A=m;m=h;for(var H=0;H<i.length;H++)if(A.context===i[H]){m.lanes|=l,A=m.alternate,A!==null&&(A.lanes|=l),ch(m.return,l,n),u||(x=null);break e}m=A.next}}else if(h.tag===18){if(x=h.return,x===null)throw Error(a(341));x.lanes|=l,m=x.alternate,m!==null&&(m.lanes|=l),ch(x,l,n),x=null}else x=h.child;if(x!==null)x.return=h;else for(x=h;x!==null;){if(x===n){x=null;break}if(h=x.sibling,h!==null){h.return=x.return,x=h;break}x=x.return}h=x}}function Hs(n,i,l,u){n=null;for(var h=i,m=!1;h!==null;){if(!m){if((h.flags&524288)!==0)m=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var x=h.alternate;if(x===null)throw Error(a(387));if(x=x.memoizedProps,x!==null){var A=h.type;Ln(h.pendingProps.value,x.value)||(n!==null?n.push(A):n=[A])}}else if(h===be.current){if(x=h.alternate,x===null)throw Error(a(387));x.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(Io):n=[Io])}h=h.return}n!==null&&fh(i,n,l,u),i.flags|=262144}function oc(n){for(n=n.firstContext;n!==null;){if(!Ln(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function La(n){Da=n,Xr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function ln(n){return J0(Da,n)}function uc(n,i){return Da===null&&La(n),J0(n,i)}function J0(n,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},Xr===null){if(n===null)throw Error(a(308));Xr=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else Xr=Xr.next=i;return l}var XC=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(l,u){n.push(u)}};this.abort=function(){i.aborted=!0,n.forEach(function(l){return l()})}},KC=e.unstable_scheduleCallback,JC=e.unstable_NormalPriority,Vt={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dh(){return{controller:new XC,data:new Map,refCount:0}}function go(n){n.refCount--,n.refCount===0&&KC(JC,function(){n.controller.abort()})}var po=null,hh=0,qs=0,Vs=null;function WC(n,i){if(po===null){var l=po=[];hh=0,qs=gy(),Vs={status:"pending",value:void 0,then:function(u){l.push(u)}}}return hh++,i.then(W0,W0),i}function W0(){if(--hh===0&&po!==null){Vs!==null&&(Vs.status="fulfilled");var n=po;po=null,qs=0,Vs=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function e3(n,i){var l=[],u={status:"pending",value:null,reason:null,then:function(h){l.push(h)}};return n.then(function(){u.status="fulfilled",u.value=i;for(var h=0;h<l.length;h++)(0,l[h])(i)},function(h){for(u.status="rejected",u.reason=h,h=0;h<l.length;h++)(0,l[h])(void 0)}),u}var e1=U.S;U.S=function(n,i){jv=te(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&WC(n,i),e1!==null&&e1(n,i)};var Ba=O(null);function yh(){var n=Ba.current;return n!==null?n:vt.pooledCache}function cc(n,i){i===null?ae(Ba,Ba.current):ae(Ba,i.pool)}function t1(){var n=yh();return n===null?null:{parent:Vt._currentValue,pool:n}}var Is=Error(a(460)),mh=Error(a(474)),fc=Error(a(542)),dc={then:function(){}};function n1(n){return n=n.status,n==="fulfilled"||n==="rejected"}function r1(n,i,l){switch(l=n[l],l===void 0?n.push(i):l!==i&&(i.then(Yr,Yr),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,a1(n),n;default:if(typeof i.status=="string")i.then(Yr,Yr);else{if(n=vt,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=i,n.status="pending",n.then(function(u){if(i.status==="pending"){var h=i;h.status="fulfilled",h.value=u}},function(u){if(i.status==="pending"){var h=i;h.status="rejected",h.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,a1(n),n}throw Ua=i,Is}}function ja(n){try{var i=n._init;return i(n._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ua=l,Is):l}}var Ua=null;function i1(){if(Ua===null)throw Error(a(459));var n=Ua;return Ua=null,n}function a1(n){if(n===Is||n===fc)throw Error(a(483))}var Ps=null,vo=0;function hc(n){var i=vo;return vo+=1,Ps===null&&(Ps=[]),r1(Ps,n,i)}function bo(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function yc(n,i){throw i.$$typeof===v?Error(a(525)):(n=Object.prototype.toString.call(i),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function s1(n){function i(Y,P){if(n){var W=Y.deletions;W===null?(Y.deletions=[P],Y.flags|=16):W.push(P)}}function l(Y,P){if(!n)return null;for(;P!==null;)i(Y,P),P=P.sibling;return null}function u(Y){for(var P=new Map;Y!==null;)Y.key!==null?P.set(Y.key,Y):P.set(Y.index,Y),Y=Y.sibling;return P}function h(Y,P){return Y=Gr(Y,P),Y.index=0,Y.sibling=null,Y}function m(Y,P,W){return Y.index=W,n?(W=Y.alternate,W!==null?(W=W.index,W<P?(Y.flags|=67108866,P):W):(Y.flags|=67108866,P)):(Y.flags|=1048576,P)}function x(Y){return n&&Y.alternate===null&&(Y.flags|=67108866),Y}function A(Y,P,W,ue){return P===null||P.tag!==6?(P=rh(W,Y.mode,ue),P.return=Y,P):(P=h(P,W),P.return=Y,P)}function H(Y,P,W,ue){var Be=W.type;return Be===_?le(Y,P,W.props.children,ue,W.key):P!==null&&(P.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===T&&ja(Be)===P.type)?(P=h(P,W.props),bo(P,W),P.return=Y,P):(P=sc(W.type,W.key,W.props,null,Y.mode,ue),bo(P,W),P.return=Y,P)}function ee(Y,P,W,ue){return P===null||P.tag!==4||P.stateNode.containerInfo!==W.containerInfo||P.stateNode.implementation!==W.implementation?(P=ih(W,Y.mode,ue),P.return=Y,P):(P=h(P,W.children||[]),P.return=Y,P)}function le(Y,P,W,ue,Be){return P===null||P.tag!==7?(P=Oa(W,Y.mode,ue,Be),P.return=Y,P):(P=h(P,W),P.return=Y,P)}function fe(Y,P,W){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=rh(""+P,Y.mode,W),P.return=Y,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case b:return W=sc(P.type,P.key,P.props,null,Y.mode,W),bo(W,P),W.return=Y,W;case S:return P=ih(P,Y.mode,W),P.return=Y,P;case T:return P=ja(P),fe(Y,P,W)}if(re(P)||B(P))return P=Oa(P,Y.mode,W,null),P.return=Y,P;if(typeof P.then=="function")return fe(Y,hc(P),W);if(P.$$typeof===E)return fe(Y,uc(Y,P),W);yc(Y,P)}return null}function ne(Y,P,W,ue){var Be=P!==null?P.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return Be!==null?null:A(Y,P,""+W,ue);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case b:return W.key===Be?H(Y,P,W,ue):null;case S:return W.key===Be?ee(Y,P,W,ue):null;case T:return W=ja(W),ne(Y,P,W,ue)}if(re(W)||B(W))return Be!==null?null:le(Y,P,W,ue,null);if(typeof W.then=="function")return ne(Y,P,hc(W),ue);if(W.$$typeof===E)return ne(Y,P,uc(Y,W),ue);yc(Y,W)}return null}function ie(Y,P,W,ue,Be){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Y=Y.get(W)||null,A(P,Y,""+ue,Be);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case b:return Y=Y.get(ue.key===null?W:ue.key)||null,H(P,Y,ue,Be);case S:return Y=Y.get(ue.key===null?W:ue.key)||null,ee(P,Y,ue,Be);case T:return ue=ja(ue),ie(Y,P,W,ue,Be)}if(re(ue)||B(ue))return Y=Y.get(W)||null,le(P,Y,ue,Be,null);if(typeof ue.then=="function")return ie(Y,P,W,hc(ue),Be);if(ue.$$typeof===E)return ie(Y,P,W,uc(P,ue),Be);yc(P,ue)}return null}function Me(Y,P,W,ue){for(var Be=null,st=null,Ne=P,Ye=P=0,tt=null;Ne!==null&&Ye<W.length;Ye++){Ne.index>Ye?(tt=Ne,Ne=null):tt=Ne.sibling;var lt=ne(Y,Ne,W[Ye],ue);if(lt===null){Ne===null&&(Ne=tt);break}n&&Ne&&lt.alternate===null&&i(Y,Ne),P=m(lt,P,Ye),st===null?Be=lt:st.sibling=lt,st=lt,Ne=tt}if(Ye===W.length)return l(Y,Ne),nt&&Qr(Y,Ye),Be;if(Ne===null){for(;Ye<W.length;Ye++)Ne=fe(Y,W[Ye],ue),Ne!==null&&(P=m(Ne,P,Ye),st===null?Be=Ne:st.sibling=Ne,st=Ne);return nt&&Qr(Y,Ye),Be}for(Ne=u(Ne);Ye<W.length;Ye++)tt=ie(Ne,Y,Ye,W[Ye],ue),tt!==null&&(n&&tt.alternate!==null&&Ne.delete(tt.key===null?Ye:tt.key),P=m(tt,P,Ye),st===null?Be=tt:st.sibling=tt,st=tt);return n&&Ne.forEach(function(Ki){return i(Y,Ki)}),nt&&Qr(Y,Ye),Be}function He(Y,P,W,ue){if(W==null)throw Error(a(151));for(var Be=null,st=null,Ne=P,Ye=P=0,tt=null,lt=W.next();Ne!==null&&!lt.done;Ye++,lt=W.next()){Ne.index>Ye?(tt=Ne,Ne=null):tt=Ne.sibling;var Ki=ne(Y,Ne,lt.value,ue);if(Ki===null){Ne===null&&(Ne=tt);break}n&&Ne&&Ki.alternate===null&&i(Y,Ne),P=m(Ki,P,Ye),st===null?Be=Ki:st.sibling=Ki,st=Ki,Ne=tt}if(lt.done)return l(Y,Ne),nt&&Qr(Y,Ye),Be;if(Ne===null){for(;!lt.done;Ye++,lt=W.next())lt=fe(Y,lt.value,ue),lt!==null&&(P=m(lt,P,Ye),st===null?Be=lt:st.sibling=lt,st=lt);return nt&&Qr(Y,Ye),Be}for(Ne=u(Ne);!lt.done;Ye++,lt=W.next())lt=ie(Ne,Y,Ye,lt.value,ue),lt!==null&&(n&&lt.alternate!==null&&Ne.delete(lt.key===null?Ye:lt.key),P=m(lt,P,Ye),st===null?Be=lt:st.sibling=lt,st=lt);return n&&Ne.forEach(function(fk){return i(Y,fk)}),nt&&Qr(Y,Ye),Be}function gt(Y,P,W,ue){if(typeof W=="object"&&W!==null&&W.type===_&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case b:e:{for(var Be=W.key;P!==null;){if(P.key===Be){if(Be=W.type,Be===_){if(P.tag===7){l(Y,P.sibling),ue=h(P,W.props.children),ue.return=Y,Y=ue;break e}}else if(P.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===T&&ja(Be)===P.type){l(Y,P.sibling),ue=h(P,W.props),bo(ue,W),ue.return=Y,Y=ue;break e}l(Y,P);break}else i(Y,P);P=P.sibling}W.type===_?(ue=Oa(W.props.children,Y.mode,ue,W.key),ue.return=Y,Y=ue):(ue=sc(W.type,W.key,W.props,null,Y.mode,ue),bo(ue,W),ue.return=Y,Y=ue)}return x(Y);case S:e:{for(Be=W.key;P!==null;){if(P.key===Be)if(P.tag===4&&P.stateNode.containerInfo===W.containerInfo&&P.stateNode.implementation===W.implementation){l(Y,P.sibling),ue=h(P,W.children||[]),ue.return=Y,Y=ue;break e}else{l(Y,P);break}else i(Y,P);P=P.sibling}ue=ih(W,Y.mode,ue),ue.return=Y,Y=ue}return x(Y);case T:return W=ja(W),gt(Y,P,W,ue)}if(re(W))return Me(Y,P,W,ue);if(B(W)){if(Be=B(W),typeof Be!="function")throw Error(a(150));return W=Be.call(W),He(Y,P,W,ue)}if(typeof W.then=="function")return gt(Y,P,hc(W),ue);if(W.$$typeof===E)return gt(Y,P,uc(Y,W),ue);yc(Y,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,P!==null&&P.tag===6?(l(Y,P.sibling),ue=h(P,W),ue.return=Y,Y=ue):(l(Y,P),ue=rh(W,Y.mode,ue),ue.return=Y,Y=ue),x(Y)):l(Y,P)}return function(Y,P,W,ue){try{vo=0;var Be=gt(Y,P,W,ue);return Ps=null,Be}catch(Ne){if(Ne===Is||Ne===fc)throw Ne;var st=Bn(29,Ne,null,Y.mode);return st.lanes=ue,st.return=Y,st}finally{}}}var Ha=s1(!0),l1=s1(!1),Di=!1;function gh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ph(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Li(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Bi(n,i,l){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(ct&2)!==0){var h=u.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),u.pending=i,i=ac(n),$0(n,null,l),i}return ic(n,u,i,l),ac(n)}function _o(n,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var u=i.lanes;u&=n.pendingLanes,l|=u,i.lanes=l,ju(n,l)}}function vh(n,i){var l=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var h=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var x={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};m===null?h=m=x:m=m.next=x,l=l.next}while(l!==null);m===null?h=m=i:m=m.next=i}else h=m=i;l={baseState:u.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=i:n.next=i,l.lastBaseUpdate=i}var bh=!1;function So(){if(bh){var n=Vs;if(n!==null)throw n}}function xo(n,i,l,u){bh=!1;var h=n.updateQueue;Di=!1;var m=h.firstBaseUpdate,x=h.lastBaseUpdate,A=h.shared.pending;if(A!==null){h.shared.pending=null;var H=A,ee=H.next;H.next=null,x===null?m=ee:x.next=ee,x=H;var le=n.alternate;le!==null&&(le=le.updateQueue,A=le.lastBaseUpdate,A!==x&&(A===null?le.firstBaseUpdate=ee:A.next=ee,le.lastBaseUpdate=H))}if(m!==null){var fe=h.baseState;x=0,le=ee=H=null,A=m;do{var ne=A.lane&-536870913,ie=ne!==A.lane;if(ie?(et&ne)===ne:(u&ne)===ne){ne!==0&&ne===qs&&(bh=!0),le!==null&&(le=le.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Me=n,He=A;ne=i;var gt=l;switch(He.tag){case 1:if(Me=He.payload,typeof Me=="function"){fe=Me.call(gt,fe,ne);break e}fe=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=He.payload,ne=typeof Me=="function"?Me.call(gt,fe,ne):Me,ne==null)break e;fe=g({},fe,ne);break e;case 2:Di=!0}}ne=A.callback,ne!==null&&(n.flags|=64,ie&&(n.flags|=8192),ie=h.callbacks,ie===null?h.callbacks=[ne]:ie.push(ne))}else ie={lane:ne,tag:A.tag,payload:A.payload,callback:A.callback,next:null},le===null?(ee=le=ie,H=fe):le=le.next=ie,x|=ne;if(A=A.next,A===null){if(A=h.shared.pending,A===null)break;ie=A,A=ie.next,ie.next=null,h.lastBaseUpdate=ie,h.shared.pending=null}}while(!0);le===null&&(H=fe),h.baseState=H,h.firstBaseUpdate=ee,h.lastBaseUpdate=le,m===null&&(h.shared.lanes=0),Vi|=x,n.lanes=x,n.memoizedState=fe}}function o1(n,i){if(typeof n!="function")throw Error(a(191,n));n.call(i)}function u1(n,i){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)o1(l[n],i)}var $s=O(null),mc=O(0);function c1(n,i){n=si,ae(mc,n),ae($s,i),si=n|i.baseLanes}function _h(){ae(mc,si),ae($s,$s.current)}function Sh(){si=mc.current,I($s),I(mc)}var jn=O(null),nr=null;function ji(n){var i=n.alternate;ae(Lt,Lt.current&1),ae(jn,n),nr===null&&(i===null||$s.current!==null||i.memoizedState!==null)&&(nr=n)}function xh(n){ae(Lt,Lt.current),ae(jn,n),nr===null&&(nr=n)}function f1(n){n.tag===22?(ae(Lt,Lt.current),ae(jn,n),nr===null&&(nr=n)):Ui()}function Ui(){ae(Lt,Lt.current),ae(jn,jn.current)}function Un(n){I(jn),nr===n&&(nr=null),I(Lt)}var Lt=O(0);function gc(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ay(l)||Ty(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Jr=0,Fe=null,yt=null,It=null,pc=!1,Fs=!1,qa=!1,vc=0,wo=0,Ys=null,t3=0;function Nt(){throw Error(a(321))}function wh(n,i){if(i===null)return!1;for(var l=0;l<i.length&&l<n.length;l++)if(!Ln(n[l],i[l]))return!1;return!0}function Eh(n,i,l,u,h,m){return Jr=m,Fe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,U.H=n===null||n.memoizedState===null?G1:Hh,qa=!1,m=l(u,h),qa=!1,Fs&&(m=h1(i,l,u,h)),d1(n),m}function d1(n){U.H=Co;var i=yt!==null&&yt.next!==null;if(Jr=0,It=yt=Fe=null,pc=!1,wo=0,Ys=null,i)throw Error(a(300));n===null||Pt||(n=n.dependencies,n!==null&&oc(n)&&(Pt=!0))}function h1(n,i,l,u){Fe=n;var h=0;do{if(Fs&&(Ys=null),wo=0,Fs=!1,25<=h)throw Error(a(301));if(h+=1,It=yt=null,n.updateQueue!=null){var m=n.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}U.H=Q1,m=i(l,u)}while(Fs);return m}function n3(){var n=U.H,i=n.useState()[0];return i=typeof i.then=="function"?Eo(i):i,n=n.useState()[0],(yt!==null?yt.memoizedState:null)!==n&&(Fe.flags|=1024),i}function Mh(){var n=vc!==0;return vc=0,n}function Ch(n,i,l){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~l}function kh(n){if(pc){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}pc=!1}Jr=0,It=yt=Fe=null,Fs=!1,wo=vc=0,Ys=null}function mn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?Fe.memoizedState=It=n:It=It.next=n,It}function Bt(){if(yt===null){var n=Fe.alternate;n=n!==null?n.memoizedState:null}else n=yt.next;var i=It===null?Fe.memoizedState:It.next;if(i!==null)It=i,yt=n;else{if(n===null)throw Fe.alternate===null?Error(a(467)):Error(a(310));yt=n,n={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},It===null?Fe.memoizedState=It=n:It=It.next=n}return It}function bc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(n){var i=wo;return wo+=1,Ys===null&&(Ys=[]),n=r1(Ys,n,i),i=Fe,(It===null?i.memoizedState:It.next)===null&&(i=i.alternate,U.H=i===null||i.memoizedState===null?G1:Hh),n}function _c(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Eo(n);if(n.$$typeof===E)return ln(n)}throw Error(a(438,String(n)))}function Ah(n){var i=null,l=Fe.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var u=Fe.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(h){return h.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=bc(),Fe.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(n),u=0;u<n;u++)l[u]=Q;return i.index++,l}function Wr(n,i){return typeof i=="function"?i(n):i}function Sc(n){var i=Bt();return Th(i,yt,n)}function Th(n,i,l){var u=n.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=l;var h=n.baseQueue,m=u.pending;if(m!==null){if(h!==null){var x=h.next;h.next=m.next,m.next=x}i.baseQueue=h=m,u.pending=null}if(m=n.baseState,h===null)n.memoizedState=m;else{i=h.next;var A=x=null,H=null,ee=i,le=!1;do{var fe=ee.lane&-536870913;if(fe!==ee.lane?(et&fe)===fe:(Jr&fe)===fe){var ne=ee.revertLane;if(ne===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),fe===qs&&(le=!0);else if((Jr&ne)===ne){ee=ee.next,ne===qs&&(le=!0);continue}else fe={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},H===null?(A=H=fe,x=m):H=H.next=fe,Fe.lanes|=ne,Vi|=ne;fe=ee.action,qa&&l(m,fe),m=ee.hasEagerState?ee.eagerState:l(m,fe)}else ne={lane:fe,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},H===null?(A=H=ne,x=m):H=H.next=ne,Fe.lanes|=fe,Vi|=fe;ee=ee.next}while(ee!==null&&ee!==i);if(H===null?x=m:H.next=A,!Ln(m,n.memoizedState)&&(Pt=!0,le&&(l=Vs,l!==null)))throw l;n.memoizedState=m,n.baseState=x,n.baseQueue=H,u.lastRenderedState=m}return h===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function Rh(n){var i=Bt(),l=i.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=n;var u=l.dispatch,h=l.pending,m=i.memoizedState;if(h!==null){l.pending=null;var x=h=h.next;do m=n(m,x.action),x=x.next;while(x!==h);Ln(m,i.memoizedState)||(Pt=!0),i.memoizedState=m,i.baseQueue===null&&(i.baseState=m),l.lastRenderedState=m}return[m,u]}function y1(n,i,l){var u=Fe,h=Bt(),m=nt;if(m){if(l===void 0)throw Error(a(407));l=l()}else l=i();var x=!Ln((yt||h).memoizedState,l);if(x&&(h.memoizedState=l,Pt=!0),h=h.queue,zh(p1.bind(null,u,h,n),[n]),h.getSnapshot!==i||x||It!==null&&It.memoizedState.tag&1){if(u.flags|=2048,Zs(9,{destroy:void 0},g1.bind(null,u,h,l,i),null),vt===null)throw Error(a(349));m||(Jr&127)!==0||m1(u,i,l)}return l}function m1(n,i,l){n.flags|=16384,n={getSnapshot:i,value:l},i=Fe.updateQueue,i===null?(i=bc(),Fe.updateQueue=i,i.stores=[n]):(l=i.stores,l===null?i.stores=[n]:l.push(n))}function g1(n,i,l,u){i.value=l,i.getSnapshot=u,v1(i)&&b1(n)}function p1(n,i,l){return l(function(){v1(i)&&b1(n)})}function v1(n){var i=n.getSnapshot;n=n.value;try{var l=i();return!Ln(n,l)}catch{return!0}}function b1(n){var i=Na(n,2);i!==null&&Rn(i,n,2)}function Nh(n){var i=mn();if(typeof n=="function"){var l=n;if(n=l(),qa){xn(!0);try{l()}finally{xn(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wr,lastRenderedState:n},i}function _1(n,i,l,u){return n.baseState=l,Th(n,yt,typeof u=="function"?u:Wr)}function r3(n,i,l,u,h){if(Ec(n))throw Error(a(485));if(n=i.action,n!==null){var m={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){m.listeners.push(x)}};U.T!==null?l(!0):m.isTransition=!1,u(m),l=i.pending,l===null?(m.next=i.pending=m,S1(i,m)):(m.next=l.next,i.pending=l.next=m)}}function S1(n,i){var l=i.action,u=i.payload,h=n.state;if(i.isTransition){var m=U.T,x={};U.T=x;try{var A=l(h,u),H=U.S;H!==null&&H(x,A),x1(n,i,A)}catch(ee){Oh(n,i,ee)}finally{m!==null&&x.types!==null&&(m.types=x.types),U.T=m}}else try{m=l(h,u),x1(n,i,m)}catch(ee){Oh(n,i,ee)}}function x1(n,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){w1(n,i,u)},function(u){return Oh(n,i,u)}):w1(n,i,l)}function w1(n,i,l){i.status="fulfilled",i.value=l,E1(i),n.state=l,i=n.pending,i!==null&&(l=i.next,l===i?n.pending=null:(l=l.next,i.next=l,S1(n,l)))}function Oh(n,i,l){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=l,E1(i),i=i.next;while(i!==u)}n.action=null}function E1(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function M1(n,i){return i}function C1(n,i){if(nt){var l=vt.formState;if(l!==null){e:{var u=Fe;if(nt){if(_t){t:{for(var h=_t,m=tr;h.nodeType!==8;){if(!m){h=null;break t}if(h=rr(h.nextSibling),h===null){h=null;break t}}m=h.data,h=m==="F!"||m==="F"?h:null}if(h){_t=rr(h.nextSibling),u=h.data==="F!";break e}}Oi(u)}u=!1}u&&(i=l[0])}}return l=mn(),l.memoizedState=l.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:M1,lastRenderedState:i},l.queue=u,l=F1.bind(null,Fe,u),u.dispatch=l,u=Nh(!1),m=Uh.bind(null,Fe,!1,u.queue),u=mn(),h={state:i,dispatch:null,action:n,pending:null},u.queue=h,l=r3.bind(null,Fe,h,m,l),h.dispatch=l,u.memoizedState=n,[i,l,!1]}function k1(n){var i=Bt();return A1(i,yt,n)}function A1(n,i,l){if(i=Th(n,i,M1)[0],n=Sc(Wr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=Eo(i)}catch(x){throw x===Is?fc:x}else u=i;i=Bt();var h=i.queue,m=h.dispatch;return l!==i.memoizedState&&(Fe.flags|=2048,Zs(9,{destroy:void 0},i3.bind(null,h,l),null)),[u,m,n]}function i3(n,i){n.action=i}function T1(n){var i=Bt(),l=yt;if(l!==null)return A1(i,l,n);Bt(),i=i.memoizedState,l=Bt();var u=l.queue.dispatch;return l.memoizedState=n,[i,u,!1]}function Zs(n,i,l,u){return n={tag:n,create:l,deps:u,inst:i,next:null},i=Fe.updateQueue,i===null&&(i=bc(),Fe.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=n.next=n:(u=l.next,l.next=n,n.next=u,i.lastEffect=n),n}function R1(){return Bt().memoizedState}function xc(n,i,l,u){var h=mn();Fe.flags|=n,h.memoizedState=Zs(1|i,{destroy:void 0},l,u===void 0?null:u)}function wc(n,i,l,u){var h=Bt();u=u===void 0?null:u;var m=h.memoizedState.inst;yt!==null&&u!==null&&wh(u,yt.memoizedState.deps)?h.memoizedState=Zs(i,m,l,u):(Fe.flags|=n,h.memoizedState=Zs(1|i,m,l,u))}function N1(n,i){xc(8390656,8,n,i)}function zh(n,i){wc(2048,8,n,i)}function a3(n){Fe.flags|=4;var i=Fe.updateQueue;if(i===null)i=bc(),Fe.updateQueue=i,i.events=[n];else{var l=i.events;l===null?i.events=[n]:l.push(n)}}function O1(n){var i=Bt().memoizedState;return a3({ref:i,nextImpl:n}),function(){if((ct&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}function z1(n,i){return wc(4,2,n,i)}function D1(n,i){return wc(4,4,n,i)}function L1(n,i){if(typeof i=="function"){n=n();var l=i(n);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function B1(n,i,l){l=l!=null?l.concat([n]):null,wc(4,4,L1.bind(null,i,n),l)}function Dh(){}function j1(n,i){var l=Bt();i=i===void 0?null:i;var u=l.memoizedState;return i!==null&&wh(i,u[1])?u[0]:(l.memoizedState=[n,i],n)}function U1(n,i){var l=Bt();i=i===void 0?null:i;var u=l.memoizedState;if(i!==null&&wh(i,u[1]))return u[0];if(u=n(),qa){xn(!0);try{n()}finally{xn(!1)}}return l.memoizedState=[u,i],u}function Lh(n,i,l){return l===void 0||(Jr&1073741824)!==0&&(et&261930)===0?n.memoizedState=i:(n.memoizedState=l,n=Hv(),Fe.lanes|=n,Vi|=n,l)}function H1(n,i,l,u){return Ln(l,i)?l:$s.current!==null?(n=Lh(n,l,u),Ln(n,i)||(Pt=!0),n):(Jr&42)===0||(Jr&1073741824)!==0&&(et&261930)===0?(Pt=!0,n.memoizedState=l):(n=Hv(),Fe.lanes|=n,Vi|=n,i)}function q1(n,i,l,u,h){var m=F.p;F.p=m!==0&&8>m?m:8;var x=U.T,A={};U.T=A,Uh(n,!1,i,l);try{var H=h(),ee=U.S;if(ee!==null&&ee(A,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var le=e3(H,u);Mo(n,i,le,Vn(n))}else Mo(n,i,u,Vn(n))}catch(fe){Mo(n,i,{then:function(){},status:"rejected",reason:fe},Vn())}finally{F.p=m,x!==null&&A.types!==null&&(x.types=A.types),U.T=x}}function s3(){}function Bh(n,i,l,u){if(n.tag!==5)throw Error(a(476));var h=V1(n).queue;q1(n,h,i,Z,l===null?s3:function(){return I1(n),l(u)})}function V1(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wr,lastRenderedState:Z},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wr,lastRenderedState:l},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function I1(n){var i=V1(n);i.next===null&&(i=n.alternate.memoizedState),Mo(n,i.next.queue,{},Vn())}function jh(){return ln(Io)}function P1(){return Bt().memoizedState}function $1(){return Bt().memoizedState}function l3(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var l=Vn();n=Li(l);var u=Bi(i,n,l);u!==null&&(Rn(u,i,l),_o(u,i,l)),i={cache:dh()},n.payload=i;return}i=i.return}}function o3(n,i,l){var u=Vn();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ec(n)?Y1(i,l):(l=th(n,i,l,u),l!==null&&(Rn(l,n,u),Z1(l,i,u)))}function F1(n,i,l){var u=Vn();Mo(n,i,l,u)}function Mo(n,i,l,u){var h={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ec(n))Y1(i,h);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=i.lastRenderedReducer,m!==null))try{var x=i.lastRenderedState,A=m(x,l);if(h.hasEagerState=!0,h.eagerState=A,Ln(A,x))return ic(n,i,h,0),vt===null&&rc(),!1}catch{}finally{}if(l=th(n,i,h,u),l!==null)return Rn(l,n,u),Z1(l,i,u),!0}return!1}function Uh(n,i,l,u){if(u={lane:2,revertLane:gy(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Ec(n)){if(i)throw Error(a(479))}else i=th(n,l,u,2),i!==null&&Rn(i,n,2)}function Ec(n){var i=n.alternate;return n===Fe||i!==null&&i===Fe}function Y1(n,i){Fs=pc=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function Z1(n,i,l){if((l&4194048)!==0){var u=i.lanes;u&=n.pendingLanes,l|=u,i.lanes=l,ju(n,l)}}var Co={readContext:ln,use:_c,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};Co.useEffectEvent=Nt;var G1={readContext:ln,use:_c,useCallback:function(n,i){return mn().memoizedState=[n,i===void 0?null:i],n},useContext:ln,useEffect:N1,useImperativeHandle:function(n,i,l){l=l!=null?l.concat([n]):null,xc(4194308,4,L1.bind(null,i,n),l)},useLayoutEffect:function(n,i){return xc(4194308,4,n,i)},useInsertionEffect:function(n,i){xc(4,2,n,i)},useMemo:function(n,i){var l=mn();i=i===void 0?null:i;var u=n();if(qa){xn(!0);try{n()}finally{xn(!1)}}return l.memoizedState=[u,i],u},useReducer:function(n,i,l){var u=mn();if(l!==void 0){var h=l(i);if(qa){xn(!0);try{l(i)}finally{xn(!1)}}}else h=i;return u.memoizedState=u.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},u.queue=n,n=n.dispatch=o3.bind(null,Fe,n),[u.memoizedState,n]},useRef:function(n){var i=mn();return n={current:n},i.memoizedState=n},useState:function(n){n=Nh(n);var i=n.queue,l=F1.bind(null,Fe,i);return i.dispatch=l,[n.memoizedState,l]},useDebugValue:Dh,useDeferredValue:function(n,i){var l=mn();return Lh(l,n,i)},useTransition:function(){var n=Nh(!1);return n=q1.bind(null,Fe,n.queue,!0,!1),mn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,l){var u=Fe,h=mn();if(nt){if(l===void 0)throw Error(a(407));l=l()}else{if(l=i(),vt===null)throw Error(a(349));(et&127)!==0||m1(u,i,l)}h.memoizedState=l;var m={value:l,getSnapshot:i};return h.queue=m,N1(p1.bind(null,u,m,n),[n]),u.flags|=2048,Zs(9,{destroy:void 0},g1.bind(null,u,m,l,i),null),l},useId:function(){var n=mn(),i=vt.identifierPrefix;if(nt){var l=kr,u=Cr;l=(u&~(1<<32-Qt(u)-1)).toString(32)+l,i="_"+i+"R_"+l,l=vc++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=t3++,i="_"+i+"r_"+l.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:jh,useFormState:C1,useActionState:C1,useOptimistic:function(n){var i=mn();i.memoizedState=i.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=Uh.bind(null,Fe,!0,l),l.dispatch=i,[n,i]},useMemoCache:Ah,useCacheRefresh:function(){return mn().memoizedState=l3.bind(null,Fe)},useEffectEvent:function(n){var i=mn(),l={impl:n};return i.memoizedState=l,function(){if((ct&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},Hh={readContext:ln,use:_c,useCallback:j1,useContext:ln,useEffect:zh,useImperativeHandle:B1,useInsertionEffect:z1,useLayoutEffect:D1,useMemo:U1,useReducer:Sc,useRef:R1,useState:function(){return Sc(Wr)},useDebugValue:Dh,useDeferredValue:function(n,i){var l=Bt();return H1(l,yt.memoizedState,n,i)},useTransition:function(){var n=Sc(Wr)[0],i=Bt().memoizedState;return[typeof n=="boolean"?n:Eo(n),i]},useSyncExternalStore:y1,useId:P1,useHostTransitionStatus:jh,useFormState:k1,useActionState:k1,useOptimistic:function(n,i){var l=Bt();return _1(l,yt,n,i)},useMemoCache:Ah,useCacheRefresh:$1};Hh.useEffectEvent=O1;var Q1={readContext:ln,use:_c,useCallback:j1,useContext:ln,useEffect:zh,useImperativeHandle:B1,useInsertionEffect:z1,useLayoutEffect:D1,useMemo:U1,useReducer:Rh,useRef:R1,useState:function(){return Rh(Wr)},useDebugValue:Dh,useDeferredValue:function(n,i){var l=Bt();return yt===null?Lh(l,n,i):H1(l,yt.memoizedState,n,i)},useTransition:function(){var n=Rh(Wr)[0],i=Bt().memoizedState;return[typeof n=="boolean"?n:Eo(n),i]},useSyncExternalStore:y1,useId:P1,useHostTransitionStatus:jh,useFormState:T1,useActionState:T1,useOptimistic:function(n,i){var l=Bt();return yt!==null?_1(l,yt,n,i):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:Ah,useCacheRefresh:$1};Q1.useEffectEvent=O1;function qh(n,i,l,u){i=n.memoizedState,l=l(u,i),l=l==null?i:g({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var Vh={enqueueSetState:function(n,i,l){n=n._reactInternals;var u=Vn(),h=Li(u);h.payload=i,l!=null&&(h.callback=l),i=Bi(n,h,u),i!==null&&(Rn(i,n,u),_o(i,n,u))},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var u=Vn(),h=Li(u);h.tag=1,h.payload=i,l!=null&&(h.callback=l),i=Bi(n,h,u),i!==null&&(Rn(i,n,u),_o(i,n,u))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=Vn(),u=Li(l);u.tag=2,i!=null&&(u.callback=i),i=Bi(n,u,l),i!==null&&(Rn(i,n,l),_o(i,n,l))}};function X1(n,i,l,u,h,m,x){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,m,x):i.prototype&&i.prototype.isPureReactComponent?!fo(l,u)||!fo(h,m):!0}function K1(n,i,l,u){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,u),i.state!==n&&Vh.enqueueReplaceState(i,i.state,null)}function Va(n,i){var l=i;if("ref"in i){l={};for(var u in i)u!=="ref"&&(l[u]=i[u])}if(n=n.defaultProps){l===i&&(l=g({},l));for(var h in n)l[h]===void 0&&(l[h]=n[h])}return l}function J1(n){nc(n)}function W1(n){console.error(n)}function ev(n){nc(n)}function Mc(n,i){try{var l=n.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function tv(n,i,l){try{var u=n.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Ih(n,i,l){return l=Li(l),l.tag=3,l.payload={element:null},l.callback=function(){Mc(n,i)},l}function nv(n){return n=Li(n),n.tag=3,n}function rv(n,i,l,u){var h=l.type.getDerivedStateFromError;if(typeof h=="function"){var m=u.value;n.payload=function(){return h(m)},n.callback=function(){tv(i,l,u)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(n.callback=function(){tv(i,l,u),typeof h!="function"&&(Ii===null?Ii=new Set([this]):Ii.add(this));var A=u.stack;this.componentDidCatch(u.value,{componentStack:A!==null?A:""})})}function u3(n,i,l,u,h){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=l.alternate,i!==null&&Hs(i,l,h,!0),l=jn.current,l!==null){switch(l.tag){case 31:case 13:return nr===null?jc():l.alternate===null&&Ot===0&&(Ot=3),l.flags&=-257,l.flags|=65536,l.lanes=h,u===dc?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([u]):i.add(u),hy(n,u,h)),!1;case 22:return l.flags|=65536,u===dc?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([u]):l.add(u)),hy(n,u,h)),!1}throw Error(a(435,l.tag))}return hy(n,u,h),jc(),!1}if(nt)return i=jn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=h,u!==lh&&(n=Error(a(422),{cause:u}),mo(Jn(n,l)))):(u!==lh&&(i=Error(a(423),{cause:u}),mo(Jn(i,l))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,u=Jn(u,l),h=Ih(n.stateNode,u,h),vh(n,h),Ot!==4&&(Ot=2)),!1;var m=Error(a(520),{cause:u});if(m=Jn(m,l),Do===null?Do=[m]:Do.push(m),Ot!==4&&(Ot=2),i===null)return!0;u=Jn(u,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,n=h&-h,l.lanes|=n,n=Ih(l.stateNode,u,n),vh(l,n),!1;case 1:if(i=l.type,m=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Ii===null||!Ii.has(m))))return l.flags|=65536,h&=-h,l.lanes|=h,h=nv(h),rv(h,n,l,u),vh(l,h),!1}l=l.return}while(l!==null);return!1}var Ph=Error(a(461)),Pt=!1;function on(n,i,l,u){i.child=n===null?l1(i,null,l,u):Ha(i,n.child,l,u)}function iv(n,i,l,u,h){l=l.render;var m=i.ref;if("ref"in u){var x={};for(var A in u)A!=="ref"&&(x[A]=u[A])}else x=u;return La(i),u=Eh(n,i,l,x,m,h),A=Mh(),n!==null&&!Pt?(Ch(n,i,h),ei(n,i,h)):(nt&&A&&ah(i),i.flags|=1,on(n,i,u,h),i.child)}function av(n,i,l,u,h){if(n===null){var m=l.type;return typeof m=="function"&&!nh(m)&&m.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=m,sv(n,i,m,u,h)):(n=sc(l.type,null,u,i,i.mode,h),n.ref=i.ref,n.return=i,i.child=n)}if(m=n.child,!Kh(n,h)){var x=m.memoizedProps;if(l=l.compare,l=l!==null?l:fo,l(x,u)&&n.ref===i.ref)return ei(n,i,h)}return i.flags|=1,n=Gr(m,u),n.ref=i.ref,n.return=i,i.child=n}function sv(n,i,l,u,h){if(n!==null){var m=n.memoizedProps;if(fo(m,u)&&n.ref===i.ref)if(Pt=!1,i.pendingProps=u=m,Kh(n,h))(n.flags&131072)!==0&&(Pt=!0);else return i.lanes=n.lanes,ei(n,i,h)}return $h(n,i,l,u,h)}function lv(n,i,l,u){var h=u.children,m=n!==null?n.memoizedState:null;if(n===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((i.flags&128)!==0){if(m=m!==null?m.baseLanes|l:l,n!==null){for(u=i.child=n.child,h=0;u!==null;)h=h|u.lanes|u.childLanes,u=u.sibling;u=h&~m}else u=0,i.child=null;return ov(n,i,m,l,u)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&cc(i,m!==null?m.cachePool:null),m!==null?c1(i,m):_h(),f1(i);else return u=i.lanes=536870912,ov(n,i,m!==null?m.baseLanes|l:l,l,u)}else m!==null?(cc(i,m.cachePool),c1(i,m),Ui(),i.memoizedState=null):(n!==null&&cc(i,null),_h(),Ui());return on(n,i,h,l),i.child}function ko(n,i){return n!==null&&n.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function ov(n,i,l,u,h){var m=yh();return m=m===null?null:{parent:Vt._currentValue,pool:m},i.memoizedState={baseLanes:l,cachePool:m},n!==null&&cc(i,null),_h(),f1(i),n!==null&&Hs(n,i,u,!0),i.childLanes=h,null}function Cc(n,i){return i=Ac({mode:i.mode,children:i.children},n.mode),i.ref=n.ref,n.child=i,i.return=n,i}function uv(n,i,l){return Ha(i,n.child,null,l),n=Cc(i,i.pendingProps),n.flags|=2,Un(i),i.memoizedState=null,n}function c3(n,i,l){var u=i.pendingProps,h=(i.flags&128)!==0;if(i.flags&=-129,n===null){if(nt){if(u.mode==="hidden")return n=Cc(i,u),i.lanes=536870912,ko(null,n);if(xh(i),(n=_t)?(n=Sb(n,tr),n=n!==null&&n.data==="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Ri!==null?{id:Cr,overflow:kr}:null,retryLane:536870912,hydrationErrors:null},l=Y0(n),l.return=i,i.child=l,sn=i,_t=null)):n=null,n===null)throw Oi(i);return i.lanes=536870912,null}return Cc(i,u)}var m=n.memoizedState;if(m!==null){var x=m.dehydrated;if(xh(i),h)if(i.flags&256)i.flags&=-257,i=uv(n,i,l);else if(i.memoizedState!==null)i.child=n.child,i.flags|=128,i=null;else throw Error(a(558));else if(Pt||Hs(n,i,l,!1),h=(l&n.childLanes)!==0,Pt||h){if(u=vt,u!==null&&(x=Uu(u,l),x!==0&&x!==m.retryLane))throw m.retryLane=x,Na(n,x),Rn(u,n,x),Ph;jc(),i=uv(n,i,l)}else n=m.treeContext,_t=rr(x.nextSibling),sn=i,nt=!0,Ni=null,tr=!1,n!==null&&Q0(i,n),i=Cc(i,u),i.flags|=4096;return i}return n=Gr(n.child,{mode:u.mode,children:u.children}),n.ref=i.ref,i.child=n,n.return=i,n}function kc(n,i){var l=i.ref;if(l===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(n===null||n.ref!==l)&&(i.flags|=4194816)}}function $h(n,i,l,u,h){return La(i),l=Eh(n,i,l,u,void 0,h),u=Mh(),n!==null&&!Pt?(Ch(n,i,h),ei(n,i,h)):(nt&&u&&ah(i),i.flags|=1,on(n,i,l,h),i.child)}function cv(n,i,l,u,h,m){return La(i),i.updateQueue=null,l=h1(i,u,l,h),d1(n),u=Mh(),n!==null&&!Pt?(Ch(n,i,m),ei(n,i,m)):(nt&&u&&ah(i),i.flags|=1,on(n,i,l,m),i.child)}function fv(n,i,l,u,h){if(La(i),i.stateNode===null){var m=Ls,x=l.contextType;typeof x=="object"&&x!==null&&(m=ln(x)),m=new l(u,m),i.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Vh,i.stateNode=m,m._reactInternals=i,m=i.stateNode,m.props=u,m.state=i.memoizedState,m.refs={},gh(i),x=l.contextType,m.context=typeof x=="object"&&x!==null?ln(x):Ls,m.state=i.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(qh(i,l,x,u),m.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(x=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),x!==m.state&&Vh.enqueueReplaceState(m,m.state,null),xo(i,u,m,h),So(),m.state=i.memoizedState),typeof m.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(n===null){m=i.stateNode;var A=i.memoizedProps,H=Va(l,A);m.props=H;var ee=m.context,le=l.contextType;x=Ls,typeof le=="object"&&le!==null&&(x=ln(le));var fe=l.getDerivedStateFromProps;le=typeof fe=="function"||typeof m.getSnapshotBeforeUpdate=="function",A=i.pendingProps!==A,le||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(A||ee!==x)&&K1(i,m,u,x),Di=!1;var ne=i.memoizedState;m.state=ne,xo(i,u,m,h),So(),ee=i.memoizedState,A||ne!==ee||Di?(typeof fe=="function"&&(qh(i,l,fe,u),ee=i.memoizedState),(H=Di||X1(i,l,H,u,ne,ee,x))?(le||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"&&(i.flags|=4194308)):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=ee),m.props=u,m.state=ee,m.context=x,u=H):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{m=i.stateNode,ph(n,i),x=i.memoizedProps,le=Va(l,x),m.props=le,fe=i.pendingProps,ne=m.context,ee=l.contextType,H=Ls,typeof ee=="object"&&ee!==null&&(H=ln(ee)),A=l.getDerivedStateFromProps,(ee=typeof A=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(x!==fe||ne!==H)&&K1(i,m,u,H),Di=!1,ne=i.memoizedState,m.state=ne,xo(i,u,m,h),So();var ie=i.memoizedState;x!==fe||ne!==ie||Di||n!==null&&n.dependencies!==null&&oc(n.dependencies)?(typeof A=="function"&&(qh(i,l,A,u),ie=i.memoizedState),(le=Di||X1(i,l,le,u,ne,ie,H)||n!==null&&n.dependencies!==null&&oc(n.dependencies))?(ee||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,ie,H),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,ie,H)),typeof m.componentDidUpdate=="function"&&(i.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof m.componentDidUpdate!="function"||x===n.memoizedProps&&ne===n.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&ne===n.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=ie),m.props=u,m.state=ie,m.context=H,u=le):(typeof m.componentDidUpdate!="function"||x===n.memoizedProps&&ne===n.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&ne===n.memoizedState||(i.flags|=1024),u=!1)}return m=u,kc(n,i),u=(i.flags&128)!==0,m||u?(m=i.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:m.render(),i.flags|=1,n!==null&&u?(i.child=Ha(i,n.child,null,h),i.child=Ha(i,null,l,h)):on(n,i,l,h),i.memoizedState=m.state,n=i.child):n=ei(n,i,h),n}function dv(n,i,l,u){return za(),i.flags|=256,on(n,i,l,u),i.child}var Fh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yh(n){return{baseLanes:n,cachePool:t1()}}function Zh(n,i,l){return n=n!==null?n.childLanes&~l:0,i&&(n|=qn),n}function hv(n,i,l){var u=i.pendingProps,h=!1,m=(i.flags&128)!==0,x;if((x=m)||(x=n!==null&&n.memoizedState===null?!1:(Lt.current&2)!==0),x&&(h=!0,i.flags&=-129),x=(i.flags&32)!==0,i.flags&=-33,n===null){if(nt){if(h?ji(i):Ui(),(n=_t)?(n=Sb(n,tr),n=n!==null&&n.data!=="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Ri!==null?{id:Cr,overflow:kr}:null,retryLane:536870912,hydrationErrors:null},l=Y0(n),l.return=i,i.child=l,sn=i,_t=null)):n=null,n===null)throw Oi(i);return Ty(n)?i.lanes=32:i.lanes=536870912,null}var A=u.children;return u=u.fallback,h?(Ui(),h=i.mode,A=Ac({mode:"hidden",children:A},h),u=Oa(u,h,l,null),A.return=i,u.return=i,A.sibling=u,i.child=A,u=i.child,u.memoizedState=Yh(l),u.childLanes=Zh(n,x,l),i.memoizedState=Fh,ko(null,u)):(ji(i),Gh(i,A))}var H=n.memoizedState;if(H!==null&&(A=H.dehydrated,A!==null)){if(m)i.flags&256?(ji(i),i.flags&=-257,i=Qh(n,i,l)):i.memoizedState!==null?(Ui(),i.child=n.child,i.flags|=128,i=null):(Ui(),A=u.fallback,h=i.mode,u=Ac({mode:"visible",children:u.children},h),A=Oa(A,h,l,null),A.flags|=2,u.return=i,A.return=i,u.sibling=A,i.child=u,Ha(i,n.child,null,l),u=i.child,u.memoizedState=Yh(l),u.childLanes=Zh(n,x,l),i.memoizedState=Fh,i=ko(null,u));else if(ji(i),Ty(A)){if(x=A.nextSibling&&A.nextSibling.dataset,x)var ee=x.dgst;x=ee,u=Error(a(419)),u.stack="",u.digest=x,mo({value:u,source:null,stack:null}),i=Qh(n,i,l)}else if(Pt||Hs(n,i,l,!1),x=(l&n.childLanes)!==0,Pt||x){if(x=vt,x!==null&&(u=Uu(x,l),u!==0&&u!==H.retryLane))throw H.retryLane=u,Na(n,u),Rn(x,n,u),Ph;Ay(A)||jc(),i=Qh(n,i,l)}else Ay(A)?(i.flags|=192,i.child=n.child,i=null):(n=H.treeContext,_t=rr(A.nextSibling),sn=i,nt=!0,Ni=null,tr=!1,n!==null&&Q0(i,n),i=Gh(i,u.children),i.flags|=4096);return i}return h?(Ui(),A=u.fallback,h=i.mode,H=n.child,ee=H.sibling,u=Gr(H,{mode:"hidden",children:u.children}),u.subtreeFlags=H.subtreeFlags&65011712,ee!==null?A=Gr(ee,A):(A=Oa(A,h,l,null),A.flags|=2),A.return=i,u.return=i,u.sibling=A,i.child=u,ko(null,u),u=i.child,A=n.child.memoizedState,A===null?A=Yh(l):(h=A.cachePool,h!==null?(H=Vt._currentValue,h=h.parent!==H?{parent:H,pool:H}:h):h=t1(),A={baseLanes:A.baseLanes|l,cachePool:h}),u.memoizedState=A,u.childLanes=Zh(n,x,l),i.memoizedState=Fh,ko(n.child,u)):(ji(i),l=n.child,n=l.sibling,l=Gr(l,{mode:"visible",children:u.children}),l.return=i,l.sibling=null,n!==null&&(x=i.deletions,x===null?(i.deletions=[n],i.flags|=16):x.push(n)),i.child=l,i.memoizedState=null,l)}function Gh(n,i){return i=Ac({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function Ac(n,i){return n=Bn(22,n,null,i),n.lanes=0,n}function Qh(n,i,l){return Ha(i,n.child,null,l),n=Gh(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function yv(n,i,l){n.lanes|=i;var u=n.alternate;u!==null&&(u.lanes|=i),ch(n.return,i,l)}function Xh(n,i,l,u,h,m){var x=n.memoizedState;x===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:h,treeForkCount:m}:(x.isBackwards=i,x.rendering=null,x.renderingStartTime=0,x.last=u,x.tail=l,x.tailMode=h,x.treeForkCount=m)}function mv(n,i,l){var u=i.pendingProps,h=u.revealOrder,m=u.tail;u=u.children;var x=Lt.current,A=(x&2)!==0;if(A?(x=x&1|2,i.flags|=128):x&=1,ae(Lt,x),on(n,i,u,l),u=nt?yo:0,!A&&n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&yv(n,l,i);else if(n.tag===19)yv(n,l,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(h){case"forwards":for(l=i.child,h=null;l!==null;)n=l.alternate,n!==null&&gc(n)===null&&(h=l),l=l.sibling;l=h,l===null?(h=i.child,i.child=null):(h=l.sibling,l.sibling=null),Xh(i,!1,h,l,m,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,h=i.child,i.child=null;h!==null;){if(n=h.alternate,n!==null&&gc(n)===null){i.child=h;break}n=h.sibling,h.sibling=l,l=h,h=n}Xh(i,!0,l,null,m,u);break;case"together":Xh(i,!1,null,null,void 0,u);break;default:i.memoizedState=null}return i.child}function ei(n,i,l){if(n!==null&&(i.dependencies=n.dependencies),Vi|=i.lanes,(l&i.childLanes)===0)if(n!==null){if(Hs(n,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(a(153));if(i.child!==null){for(n=i.child,l=Gr(n,n.pendingProps),i.child=l,l.return=i;n.sibling!==null;)n=n.sibling,l=l.sibling=Gr(n,n.pendingProps),l.return=i;l.sibling=null}return i.child}function Kh(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&oc(n)))}function f3(n,i,l){switch(i.tag){case 3:ye(i,i.stateNode.containerInfo),zi(i,Vt,n.memoizedState.cache),za();break;case 27:case 5:Ue(i);break;case 4:ye(i,i.stateNode.containerInfo);break;case 10:zi(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,xh(i),null;break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(ji(i),i.flags|=128,null):(l&i.child.childLanes)!==0?hv(n,i,l):(ji(i),n=ei(n,i,l),n!==null?n.sibling:null);ji(i);break;case 19:var h=(n.flags&128)!==0;if(u=(l&i.childLanes)!==0,u||(Hs(n,i,l,!1),u=(l&i.childLanes)!==0),h){if(u)return mv(n,i,l);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),ae(Lt,Lt.current),u)break;return null;case 22:return i.lanes=0,lv(n,i,l,i.pendingProps);case 24:zi(i,Vt,n.memoizedState.cache)}return ei(n,i,l)}function gv(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps)Pt=!0;else{if(!Kh(n,l)&&(i.flags&128)===0)return Pt=!1,f3(n,i,l);Pt=(n.flags&131072)!==0}else Pt=!1,nt&&(i.flags&1048576)!==0&&G0(i,yo,i.index);switch(i.lanes=0,i.tag){case 16:e:{var u=i.pendingProps;if(n=ja(i.elementType),i.type=n,typeof n=="function")nh(n)?(u=Va(n,u),i.tag=1,i=fv(null,i,n,u,l)):(i.tag=0,i=$h(null,i,n,u,l));else{if(n!=null){var h=n.$$typeof;if(h===k){i.tag=11,i=iv(null,i,n,u,l);break e}else if(h===D){i.tag=14,i=av(null,i,n,u,l);break e}}throw i=G(n)||n,Error(a(306,i,""))}}return i;case 0:return $h(n,i,i.type,i.pendingProps,l);case 1:return u=i.type,h=Va(u,i.pendingProps),fv(n,i,u,h,l);case 3:e:{if(ye(i,i.stateNode.containerInfo),n===null)throw Error(a(387));u=i.pendingProps;var m=i.memoizedState;h=m.element,ph(n,i),xo(i,u,null,l);var x=i.memoizedState;if(u=x.cache,zi(i,Vt,u),u!==m.cache&&fh(i,[Vt],l,!0),So(),u=x.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:x.cache},i.updateQueue.baseState=m,i.memoizedState=m,i.flags&256){i=dv(n,i,u,l);break e}else if(u!==h){h=Jn(Error(a(424)),i),mo(h),i=dv(n,i,u,l);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(_t=rr(n.firstChild),sn=i,nt=!0,Ni=null,tr=!0,l=l1(i,null,u,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(za(),u===h){i=ei(n,i,l);break e}on(n,i,u,l)}i=i.child}return i;case 26:return kc(n,i),n===null?(l=kb(i.type,null,i.pendingProps,null))?i.memoizedState=l:nt||(l=i.type,n=i.pendingProps,u=$c(me.current).createElement(l),u[Xt]=i,u[fn]=n,un(u,l,n),qt(u),i.stateNode=u):i.memoizedState=kb(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return Ue(i),n===null&&nt&&(u=i.stateNode=Eb(i.type,i.pendingProps,me.current),sn=i,tr=!0,h=_t,Yi(i.type)?(Ry=h,_t=rr(u.firstChild)):_t=h),on(n,i,i.pendingProps.children,l),kc(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&nt&&((h=u=_t)&&(u=V3(u,i.type,i.pendingProps,tr),u!==null?(i.stateNode=u,sn=i,_t=rr(u.firstChild),tr=!1,h=!0):h=!1),h||Oi(i)),Ue(i),h=i.type,m=i.pendingProps,x=n!==null?n.memoizedProps:null,u=m.children,My(h,m)?u=null:x!==null&&My(h,x)&&(i.flags|=32),i.memoizedState!==null&&(h=Eh(n,i,n3,null,null,l),Io._currentValue=h),kc(n,i),on(n,i,u,l),i.child;case 6:return n===null&&nt&&((n=l=_t)&&(l=I3(l,i.pendingProps,tr),l!==null?(i.stateNode=l,sn=i,_t=null,n=!0):n=!1),n||Oi(i)),null;case 13:return hv(n,i,l);case 4:return ye(i,i.stateNode.containerInfo),u=i.pendingProps,n===null?i.child=Ha(i,null,u,l):on(n,i,u,l),i.child;case 11:return iv(n,i,i.type,i.pendingProps,l);case 7:return on(n,i,i.pendingProps,l),i.child;case 8:return on(n,i,i.pendingProps.children,l),i.child;case 12:return on(n,i,i.pendingProps.children,l),i.child;case 10:return u=i.pendingProps,zi(i,i.type,u.value),on(n,i,u.children,l),i.child;case 9:return h=i.type._context,u=i.pendingProps.children,La(i),h=ln(h),u=u(h),i.flags|=1,on(n,i,u,l),i.child;case 14:return av(n,i,i.type,i.pendingProps,l);case 15:return sv(n,i,i.type,i.pendingProps,l);case 19:return mv(n,i,l);case 31:return c3(n,i,l);case 22:return lv(n,i,l,i.pendingProps);case 24:return La(i),u=ln(Vt),n===null?(h=yh(),h===null&&(h=vt,m=dh(),h.pooledCache=m,m.refCount++,m!==null&&(h.pooledCacheLanes|=l),h=m),i.memoizedState={parent:u,cache:h},gh(i),zi(i,Vt,h)):((n.lanes&l)!==0&&(ph(n,i),xo(i,null,null,l),So()),h=n.memoizedState,m=i.memoizedState,h.parent!==u?(h={parent:u,cache:u},i.memoizedState=h,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=h),zi(i,Vt,u)):(u=m.cache,zi(i,Vt,u),u!==h.cache&&fh(i,[Vt],l,!0))),on(n,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function ti(n){n.flags|=4}function Jh(n,i,l,u,h){if((i=(n.mode&32)!==0)&&(i=!1),i){if(n.flags|=16777216,(h&335544128)===h)if(n.stateNode.complete)n.flags|=8192;else if(Pv())n.flags|=8192;else throw Ua=dc,mh}else n.flags&=-16777217}function pv(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Ob(i))if(Pv())n.flags|=8192;else throw Ua=dc,mh}function Tc(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Lu():536870912,n.lanes|=i,Ks|=i)}function Ao(n,i){if(!nt)switch(n.tailMode){case"hidden":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function St(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,u=0;if(i)for(var h=n.child;h!==null;)l|=h.lanes|h.childLanes,u|=h.subtreeFlags&65011712,u|=h.flags&65011712,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)l|=h.lanes|h.childLanes,u|=h.subtreeFlags,u|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=u,n.childLanes=l,i}function d3(n,i,l){var u=i.pendingProps;switch(sh(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(i),null;case 1:return St(i),null;case 3:return l=i.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),Kr(Vt),he(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(Us(i)?ti(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,oh())),St(i),null;case 26:var h=i.type,m=i.memoizedState;return n===null?(ti(i),m!==null?(St(i),pv(i,m)):(St(i),Jh(i,h,null,u,l))):m?m!==n.memoizedState?(ti(i),St(i),pv(i,m)):(St(i),i.flags&=-16777217):(n=n.memoizedProps,n!==u&&ti(i),St(i),Jh(i,h,n,u,l)),null;case 27:if(De(i),l=me.current,h=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==u&&ti(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return St(i),null}n=ce.current,Us(i)?X0(i):(n=Eb(h,u,l),i.stateNode=n,ti(i))}return St(i),null;case 5:if(De(i),h=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==u&&ti(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return St(i),null}if(m=ce.current,Us(i))X0(i);else{var x=$c(me.current);switch(m){case 1:m=x.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:m=x.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":m=x.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":m=x.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":m=x.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?x.createElement("select",{is:u.is}):x.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?x.createElement(h,{is:u.is}):x.createElement(h)}}m[Xt]=i,m[fn]=u;e:for(x=i.child;x!==null;){if(x.tag===5||x.tag===6)m.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===i)break e;for(;x.sibling===null;){if(x.return===null||x.return===i)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}i.stateNode=m;e:switch(un(m,h,u),h){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&ti(i)}}return St(i),Jh(i,i.type,n===null?null:n.memoizedProps,i.pendingProps,l),null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==u&&ti(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(a(166));if(n=me.current,Us(i)){if(n=i.stateNode,l=i.memoizedProps,u=null,h=sn,h!==null)switch(h.tag){case 27:case 5:u=h.memoizedProps}n[Xt]=i,n=!!(n.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||hb(n.nodeValue,l)),n||Oi(i,!0)}else n=$c(n).createTextNode(u),n[Xt]=i,i.stateNode=n}return St(i),null;case 31:if(l=i.memoizedState,n===null||n.memoizedState!==null){if(u=Us(i),l!==null){if(n===null){if(!u)throw Error(a(318));if(n=i.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(557));n[Xt]=i}else za(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;St(i),n=!1}else l=oh(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),n=!0;if(!n)return i.flags&256?(Un(i),i):(Un(i),null);if((i.flags&128)!==0)throw Error(a(558))}return St(i),null;case 13:if(u=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=Us(i),u!==null&&u.dehydrated!==null){if(n===null){if(!h)throw Error(a(318));if(h=i.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(a(317));h[Xt]=i}else za(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;St(i),h=!1}else h=oh(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return i.flags&256?(Un(i),i):(Un(i),null)}return Un(i),(i.flags&128)!==0?(i.lanes=l,i):(l=u!==null,n=n!==null&&n.memoizedState!==null,l&&(u=i.child,h=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(h=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==h&&(u.flags|=2048)),l!==n&&l&&(i.child.flags|=8192),Tc(i,i.updateQueue),St(i),null);case 4:return he(),n===null&&_y(i.stateNode.containerInfo),St(i),null;case 10:return Kr(i.type),St(i),null;case 19:if(I(Lt),u=i.memoizedState,u===null)return St(i),null;if(h=(i.flags&128)!==0,m=u.rendering,m===null)if(h)Ao(u,!1);else{if(Ot!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(m=gc(n),m!==null){for(i.flags|=128,Ao(u,!1),n=m.updateQueue,i.updateQueue=n,Tc(i,n),i.subtreeFlags=0,n=l,l=i.child;l!==null;)F0(l,n),l=l.sibling;return ae(Lt,Lt.current&1|2),nt&&Qr(i,u.treeForkCount),i.child}n=n.sibling}u.tail!==null&&te()>Dc&&(i.flags|=128,h=!0,Ao(u,!1),i.lanes=4194304)}else{if(!h)if(n=gc(m),n!==null){if(i.flags|=128,h=!0,n=n.updateQueue,i.updateQueue=n,Tc(i,n),Ao(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!nt)return St(i),null}else 2*te()-u.renderingStartTime>Dc&&l!==536870912&&(i.flags|=128,h=!0,Ao(u,!1),i.lanes=4194304);u.isBackwards?(m.sibling=i.child,i.child=m):(n=u.last,n!==null?n.sibling=m:i.child=m,u.last=m)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=te(),n.sibling=null,l=Lt.current,ae(Lt,h?l&1|2:l&1),nt&&Qr(i,u.treeForkCount),n):(St(i),null);case 22:case 23:return Un(i),Sh(),u=i.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(l&536870912)!==0&&(i.flags&128)===0&&(St(i),i.subtreeFlags&6&&(i.flags|=8192)):St(i),l=i.updateQueue,l!==null&&Tc(i,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==l&&(i.flags|=2048),n!==null&&I(Ba),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),Kr(Vt),St(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function h3(n,i){switch(sh(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Kr(Vt),he(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return De(i),null;case 31:if(i.memoizedState!==null){if(Un(i),i.alternate===null)throw Error(a(340));za()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 13:if(Un(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(a(340));za()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return I(Lt),null;case 4:return he(),null;case 10:return Kr(i.type),null;case 22:case 23:return Un(i),Sh(),n!==null&&I(Ba),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return Kr(Vt),null;case 25:return null;default:return null}}function vv(n,i){switch(sh(i),i.tag){case 3:Kr(Vt),he();break;case 26:case 27:case 5:De(i);break;case 4:he();break;case 31:i.memoizedState!==null&&Un(i);break;case 13:Un(i);break;case 19:I(Lt);break;case 10:Kr(i.type);break;case 22:case 23:Un(i),Sh(),n!==null&&I(Ba);break;case 24:Kr(Vt)}}function To(n,i){try{var l=i.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var h=u.next;l=h;do{if((l.tag&n)===n){u=void 0;var m=l.create,x=l.inst;u=m(),x.destroy=u}l=l.next}while(l!==h)}}catch(A){ht(i,i.return,A)}}function Hi(n,i,l){try{var u=i.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var m=h.next;u=m;do{if((u.tag&n)===n){var x=u.inst,A=x.destroy;if(A!==void 0){x.destroy=void 0,h=i;var H=l,ee=A;try{ee()}catch(le){ht(h,H,le)}}}u=u.next}while(u!==m)}}catch(le){ht(i,i.return,le)}}function bv(n){var i=n.updateQueue;if(i!==null){var l=n.stateNode;try{u1(i,l)}catch(u){ht(n,n.return,u)}}}function _v(n,i,l){l.props=Va(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(u){ht(n,i,u)}}function Ro(n,i){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof l=="function"?n.refCleanup=l(u):l.current=u}}catch(h){ht(n,i,h)}}function Ar(n,i){var l=n.ref,u=n.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(h){ht(n,i,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(h){ht(n,i,h)}else l.current=null}function Sv(n){var i=n.type,l=n.memoizedProps,u=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(h){ht(n,n.return,h)}}function Wh(n,i,l){try{var u=n.stateNode;L3(u,n.type,l,i),u[fn]=i}catch(h){ht(n,n.return,h)}}function xv(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Yi(n.type)||n.tag===4}function ey(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||xv(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&&Yi(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 ty(n,i,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(n),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Yr));else if(u!==4&&(u===27&&Yi(n.type)&&(l=n.stateNode,i=null),n=n.child,n!==null))for(ty(n,i,l),n=n.sibling;n!==null;)ty(n,i,l),n=n.sibling}function Rc(n,i,l){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?l.insertBefore(n,i):l.appendChild(n);else if(u!==4&&(u===27&&Yi(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(Rc(n,i,l),n=n.sibling;n!==null;)Rc(n,i,l),n=n.sibling}function wv(n){var i=n.stateNode,l=n.memoizedProps;try{for(var u=n.type,h=i.attributes;h.length;)i.removeAttributeNode(h[0]);un(i,u,l),i[Xt]=n,i[fn]=l}catch(m){ht(n,n.return,m)}}var ni=!1,$t=!1,ny=!1,Ev=typeof WeakSet=="function"?WeakSet:Set,en=null;function y3(n,i){if(n=n.containerInfo,wy=Kc,n=B0(n),Qd(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var h=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var x=0,A=-1,H=-1,ee=0,le=0,fe=n,ne=null;t:for(;;){for(var ie;fe!==l||h!==0&&fe.nodeType!==3||(A=x+h),fe!==m||u!==0&&fe.nodeType!==3||(H=x+u),fe.nodeType===3&&(x+=fe.nodeValue.length),(ie=fe.firstChild)!==null;)ne=fe,fe=ie;for(;;){if(fe===n)break t;if(ne===l&&++ee===h&&(A=x),ne===m&&++le===u&&(H=x),(ie=fe.nextSibling)!==null)break;fe=ne,ne=fe.parentNode}fe=ie}l=A===-1||H===-1?null:{start:A,end:H}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ey={focusedElem:n,selectionRange:l},Kc=!1,en=i;en!==null;)if(i=en,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,en=n;else for(;en!==null;){switch(i=en,m=i.alternate,n=i.flags,i.tag){case 0:if((n&4)!==0&&(n=i.updateQueue,n=n!==null?n.events:null,n!==null))for(l=0;l<n.length;l++)h=n[l],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&m!==null){n=void 0,l=i,h=m.memoizedProps,m=m.memoizedState,u=l.stateNode;try{var Me=Va(l.type,h);n=u.getSnapshotBeforeUpdate(Me,m),u.__reactInternalSnapshotBeforeUpdate=n}catch(He){ht(l,l.return,He)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,l=n.nodeType,l===9)ky(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":ky(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(a(163))}if(n=i.sibling,n!==null){n.return=i.return,en=n;break}en=i.return}}function Mv(n,i,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:ii(n,l),u&4&&To(5,l);break;case 1:if(ii(n,l),u&4)if(n=l.stateNode,i===null)try{n.componentDidMount()}catch(x){ht(l,l.return,x)}else{var h=Va(l.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(h,i,n.__reactInternalSnapshotBeforeUpdate)}catch(x){ht(l,l.return,x)}}u&64&&bv(l),u&512&&Ro(l,l.return);break;case 3:if(ii(n,l),u&64&&(n=l.updateQueue,n!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{u1(n,i)}catch(x){ht(l,l.return,x)}}break;case 27:i===null&&u&4&&wv(l);case 26:case 5:ii(n,l),i===null&&u&4&&Sv(l),u&512&&Ro(l,l.return);break;case 12:ii(n,l);break;case 31:ii(n,l),u&4&&Av(n,l);break;case 13:ii(n,l),u&4&&Tv(n,l),u&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=w3.bind(null,l),P3(n,l))));break;case 22:if(u=l.memoizedState!==null||ni,!u){i=i!==null&&i.memoizedState!==null||$t,h=ni;var m=$t;ni=u,($t=i)&&!m?ai(n,l,(l.subtreeFlags&8772)!==0):ii(n,l),ni=h,$t=m}break;case 30:break;default:ii(n,l)}}function Cv(n){var i=n.alternate;i!==null&&(n.alternate=null,Cv(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&to(i)),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 Et=null,Cn=!1;function ri(n,i,l){for(l=l.child;l!==null;)kv(n,i,l),l=l.sibling}function kv(n,i,l){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Rt,l)}catch{}switch(l.tag){case 26:$t||Ar(l,i),ri(n,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:$t||Ar(l,i);var u=Et,h=Cn;Yi(l.type)&&(Et=l.stateNode,Cn=!1),ri(n,i,l),Ho(l.stateNode),Et=u,Cn=h;break;case 5:$t||Ar(l,i);case 6:if(u=Et,h=Cn,Et=null,ri(n,i,l),Et=u,Cn=h,Et!==null)if(Cn)try{(Et.nodeType===9?Et.body:Et.nodeName==="HTML"?Et.ownerDocument.body:Et).removeChild(l.stateNode)}catch(m){ht(l,i,m)}else try{Et.removeChild(l.stateNode)}catch(m){ht(l,i,m)}break;case 18:Et!==null&&(Cn?(n=Et,bb(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),al(n)):bb(Et,l.stateNode));break;case 4:u=Et,h=Cn,Et=l.stateNode.containerInfo,Cn=!0,ri(n,i,l),Et=u,Cn=h;break;case 0:case 11:case 14:case 15:Hi(2,l,i),$t||Hi(4,l,i),ri(n,i,l);break;case 1:$t||(Ar(l,i),u=l.stateNode,typeof u.componentWillUnmount=="function"&&_v(l,i,u)),ri(n,i,l);break;case 21:ri(n,i,l);break;case 22:$t=(u=$t)||l.memoizedState!==null,ri(n,i,l),$t=u;break;default:ri(n,i,l)}}function Av(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{al(n)}catch(l){ht(i,i.return,l)}}}function Tv(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{al(n)}catch(l){ht(i,i.return,l)}}function m3(n){switch(n.tag){case 31:case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new Ev),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new Ev),i;default:throw Error(a(435,n.tag))}}function Nc(n,i){var l=m3(n);i.forEach(function(u){if(!l.has(u)){l.add(u);var h=E3.bind(null,n,u);u.then(h,h)}})}function kn(n,i){var l=i.deletions;if(l!==null)for(var u=0;u<l.length;u++){var h=l[u],m=n,x=i,A=x;e:for(;A!==null;){switch(A.tag){case 27:if(Yi(A.type)){Et=A.stateNode,Cn=!1;break e}break;case 5:Et=A.stateNode,Cn=!1;break e;case 3:case 4:Et=A.stateNode.containerInfo,Cn=!0;break e}A=A.return}if(Et===null)throw Error(a(160));kv(m,x,h),Et=null,Cn=!1,m=h.alternate,m!==null&&(m.return=null),h.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Rv(i,n),i=i.sibling}var hr=null;function Rv(n,i){var l=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:kn(i,n),An(n),u&4&&(Hi(3,n,n.return),To(3,n),Hi(5,n,n.return));break;case 1:kn(i,n),An(n),u&512&&($t||l===null||Ar(l,l.return)),u&64&&ni&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var h=hr;if(kn(i,n),An(n),u&512&&($t||l===null||Ar(l,l.return)),u&4){var m=l!==null?l.memoizedState:null;if(u=n.memoizedState,l===null)if(u===null)if(n.stateNode===null){e:{u=n.type,l=n.memoizedProps,h=h.ownerDocument||h;t:switch(u){case"title":m=h.getElementsByTagName("title")[0],(!m||m[Ma]||m[Xt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=h.createElement(u),h.head.insertBefore(m,h.querySelector("head > title"))),un(m,u,l),m[Xt]=n,qt(m),u=m;break e;case"link":var x=Rb("link","href",h).get(u+(l.href||""));if(x){for(var A=0;A<x.length;A++)if(m=x[A],m.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&m.getAttribute("rel")===(l.rel==null?null:l.rel)&&m.getAttribute("title")===(l.title==null?null:l.title)&&m.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){x.splice(A,1);break t}}m=h.createElement(u),un(m,u,l),h.head.appendChild(m);break;case"meta":if(x=Rb("meta","content",h).get(u+(l.content||""))){for(A=0;A<x.length;A++)if(m=x[A],m.getAttribute("content")===(l.content==null?null:""+l.content)&&m.getAttribute("name")===(l.name==null?null:l.name)&&m.getAttribute("property")===(l.property==null?null:l.property)&&m.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&m.getAttribute("charset")===(l.charSet==null?null:l.charSet)){x.splice(A,1);break t}}m=h.createElement(u),un(m,u,l),h.head.appendChild(m);break;default:throw Error(a(468,u))}m[Xt]=n,qt(m),u=m}n.stateNode=u}else Nb(h,n.type,n.stateNode);else n.stateNode=Tb(h,u,n.memoizedProps);else m!==u?(m===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):m.count--,u===null?Nb(h,n.type,n.stateNode):Tb(h,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Wh(n,n.memoizedProps,l.memoizedProps)}break;case 27:kn(i,n),An(n),u&512&&($t||l===null||Ar(l,l.return)),l!==null&&u&4&&Wh(n,n.memoizedProps,l.memoizedProps);break;case 5:if(kn(i,n),An(n),u&512&&($t||l===null||Ar(l,l.return)),n.flags&32){h=n.stateNode;try{As(h,"")}catch(Me){ht(n,n.return,Me)}}u&4&&n.stateNode!=null&&(h=n.memoizedProps,Wh(n,h,l!==null?l.memoizedProps:h)),u&1024&&(ny=!0);break;case 6:if(kn(i,n),An(n),u&4){if(n.stateNode===null)throw Error(a(162));u=n.memoizedProps,l=n.stateNode;try{l.nodeValue=u}catch(Me){ht(n,n.return,Me)}}break;case 3:if(Zc=null,h=hr,hr=Fc(i.containerInfo),kn(i,n),hr=h,An(n),u&4&&l!==null&&l.memoizedState.isDehydrated)try{al(i.containerInfo)}catch(Me){ht(n,n.return,Me)}ny&&(ny=!1,Nv(n));break;case 4:u=hr,hr=Fc(n.stateNode.containerInfo),kn(i,n),An(n),hr=u;break;case 12:kn(i,n),An(n);break;case 31:kn(i,n),An(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Nc(n,u)));break;case 13:kn(i,n),An(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(zc=te()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Nc(n,u)));break;case 22:h=n.memoizedState!==null;var H=l!==null&&l.memoizedState!==null,ee=ni,le=$t;if(ni=ee||h,$t=le||H,kn(i,n),$t=le,ni=ee,An(n),u&8192)e:for(i=n.stateNode,i._visibility=h?i._visibility&-2:i._visibility|1,h&&(l===null||H||ni||$t||Ia(n)),l=null,i=n;;){if(i.tag===5||i.tag===26){if(l===null){H=l=i;try{if(m=H.stateNode,h)x=m.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{A=H.stateNode;var fe=H.memoizedProps.style,ne=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;A.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(Me){ht(H,H.return,Me)}}}else if(i.tag===6){if(l===null){H=i;try{H.stateNode.nodeValue=h?"":H.memoizedProps}catch(Me){ht(H,H.return,Me)}}}else if(i.tag===18){if(l===null){H=i;try{var ie=H.stateNode;h?_b(ie,!0):_b(H.stateNode,!1)}catch(Me){ht(H,H.return,Me)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=n.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,Nc(n,l))));break;case 19:kn(i,n),An(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Nc(n,u)));break;case 30:break;case 21:break;default:kn(i,n),An(n)}}function An(n){var i=n.flags;if(i&2){try{for(var l,u=n.return;u!==null;){if(xv(u)){l=u;break}u=u.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var h=l.stateNode,m=ey(n);Rc(n,m,h);break;case 5:var x=l.stateNode;l.flags&32&&(As(x,""),l.flags&=-33);var A=ey(n);Rc(n,A,x);break;case 3:case 4:var H=l.stateNode.containerInfo,ee=ey(n);ty(n,ee,H);break;default:throw Error(a(161))}}catch(le){ht(n,n.return,le)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function Nv(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;Nv(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function ii(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Mv(n,i.alternate,i),i=i.sibling}function Ia(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Hi(4,i,i.return),Ia(i);break;case 1:Ar(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&_v(i,i.return,l),Ia(i);break;case 27:Ho(i.stateNode);case 26:case 5:Ar(i,i.return),Ia(i);break;case 22:i.memoizedState===null&&Ia(i);break;case 30:Ia(i);break;default:Ia(i)}n=n.sibling}}function ai(n,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,h=n,m=i,x=m.flags;switch(m.tag){case 0:case 11:case 15:ai(h,m,l),To(4,m);break;case 1:if(ai(h,m,l),u=m,h=u.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(ee){ht(u,u.return,ee)}if(u=m,h=u.updateQueue,h!==null){var A=u.stateNode;try{var H=h.shared.hiddenCallbacks;if(H!==null)for(h.shared.hiddenCallbacks=null,h=0;h<H.length;h++)o1(H[h],A)}catch(ee){ht(u,u.return,ee)}}l&&x&64&&bv(m),Ro(m,m.return);break;case 27:wv(m);case 26:case 5:ai(h,m,l),l&&u===null&&x&4&&Sv(m),Ro(m,m.return);break;case 12:ai(h,m,l);break;case 31:ai(h,m,l),l&&x&4&&Av(h,m);break;case 13:ai(h,m,l),l&&x&4&&Tv(h,m);break;case 22:m.memoizedState===null&&ai(h,m,l),Ro(m,m.return);break;case 30:break;default:ai(h,m,l)}i=i.sibling}}function ry(n,i){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&go(l))}function iy(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&go(n))}function yr(n,i,l,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Ov(n,i,l,u),i=i.sibling}function Ov(n,i,l,u){var h=i.flags;switch(i.tag){case 0:case 11:case 15:yr(n,i,l,u),h&2048&&To(9,i);break;case 1:yr(n,i,l,u);break;case 3:yr(n,i,l,u),h&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&go(n)));break;case 12:if(h&2048){yr(n,i,l,u),n=i.stateNode;try{var m=i.memoizedProps,x=m.id,A=m.onPostCommit;typeof A=="function"&&A(x,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(H){ht(i,i.return,H)}}else yr(n,i,l,u);break;case 31:yr(n,i,l,u);break;case 13:yr(n,i,l,u);break;case 23:break;case 22:m=i.stateNode,x=i.alternate,i.memoizedState!==null?m._visibility&2?yr(n,i,l,u):No(n,i):m._visibility&2?yr(n,i,l,u):(m._visibility|=2,Gs(n,i,l,u,(i.subtreeFlags&10256)!==0||!1)),h&2048&&ry(x,i);break;case 24:yr(n,i,l,u),h&2048&&iy(i.alternate,i);break;default:yr(n,i,l,u)}}function Gs(n,i,l,u,h){for(h=h&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var m=n,x=i,A=l,H=u,ee=x.flags;switch(x.tag){case 0:case 11:case 15:Gs(m,x,A,H,h),To(8,x);break;case 23:break;case 22:var le=x.stateNode;x.memoizedState!==null?le._visibility&2?Gs(m,x,A,H,h):No(m,x):(le._visibility|=2,Gs(m,x,A,H,h)),h&&ee&2048&&ry(x.alternate,x);break;case 24:Gs(m,x,A,H,h),h&&ee&2048&&iy(x.alternate,x);break;default:Gs(m,x,A,H,h)}i=i.sibling}}function No(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=n,u=i,h=u.flags;switch(u.tag){case 22:No(l,u),h&2048&&ry(u.alternate,u);break;case 24:No(l,u),h&2048&&iy(u.alternate,u);break;default:No(l,u)}i=i.sibling}}var Oo=8192;function Qs(n,i,l){if(n.subtreeFlags&Oo)for(n=n.child;n!==null;)zv(n,i,l),n=n.sibling}function zv(n,i,l){switch(n.tag){case 26:Qs(n,i,l),n.flags&Oo&&n.memoizedState!==null&&tk(l,hr,n.memoizedState,n.memoizedProps);break;case 5:Qs(n,i,l);break;case 3:case 4:var u=hr;hr=Fc(n.stateNode.containerInfo),Qs(n,i,l),hr=u;break;case 22:n.memoizedState===null&&(u=n.alternate,u!==null&&u.memoizedState!==null?(u=Oo,Oo=16777216,Qs(n,i,l),Oo=u):Qs(n,i,l));break;default:Qs(n,i,l)}}function Dv(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function zo(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];en=u,Bv(u,n)}Dv(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Lv(n),n=n.sibling}function Lv(n){switch(n.tag){case 0:case 11:case 15:zo(n),n.flags&2048&&Hi(9,n,n.return);break;case 3:zo(n);break;case 12:zo(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,Oc(n)):zo(n);break;default:zo(n)}}function Oc(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];en=u,Bv(u,n)}Dv(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Hi(8,i,i.return),Oc(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,Oc(i));break;default:Oc(i)}n=n.sibling}}function Bv(n,i){for(;en!==null;){var l=en;switch(l.tag){case 0:case 11:case 15:Hi(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:go(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,en=u;else e:for(l=n;en!==null;){u=en;var h=u.sibling,m=u.return;if(Cv(u),u===l){en=null;break e}if(h!==null){h.return=m,en=h;break e}en=m}}}var g3={getCacheForType:function(n){var i=ln(Vt),l=i.data.get(n);return l===void 0&&(l=n(),i.data.set(n,l)),l},cacheSignal:function(){return ln(Vt).controller.signal}},p3=typeof WeakMap=="function"?WeakMap:Map,ct=0,vt=null,Ke=null,et=0,dt=0,Hn=null,qi=!1,Xs=!1,ay=!1,si=0,Ot=0,Vi=0,Pa=0,sy=0,qn=0,Ks=0,Do=null,Tn=null,ly=!1,zc=0,jv=0,Dc=1/0,Lc=null,Ii=null,Kt=0,Pi=null,Js=null,li=0,oy=0,uy=null,Uv=null,Lo=0,cy=null;function Vn(){return(ct&2)!==0&&et!==0?et&-et:U.T!==null?gy():Hu()}function Hv(){if(qn===0)if((et&536870912)===0||nt){var n=xs;xs<<=1,(xs&3932160)===0&&(xs=262144),qn=n}else qn=536870912;return n=jn.current,n!==null&&(n.flags|=32),qn}function Rn(n,i,l){(n===vt&&(dt===2||dt===9)||n.cancelPendingCommit!==null)&&(Ws(n,0),$i(n,et,qn,!1)),Ea(n,l),((ct&2)===0||n!==vt)&&(n===vt&&((ct&2)===0&&(Pa|=l),Ot===4&&$i(n,et,qn,!1)),Tr(n))}function qv(n,i,l){if((ct&6)!==0)throw Error(a(327));var u=!l&&(i&127)===0&&(i&n.expiredLanes)===0||wa(n,i),h=u?_3(n,i):dy(n,i,!0),m=u;do{if(h===0){Xs&&!u&&$i(n,i,0,!1);break}else{if(l=n.current.alternate,m&&!v3(l)){h=dy(n,i,!1),m=!1;continue}if(h===2){if(m=i,n.errorRecoveryDisabledLanes&m)var x=0;else x=n.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){i=x;e:{var A=n;h=Do;var H=A.current.memoizedState.isDehydrated;if(H&&(Ws(A,x).flags|=256),x=dy(A,x,!1),x!==2){if(ay&&!H){A.errorRecoveryDisabledLanes|=m,Pa|=m,h=4;break e}m=Tn,Tn=h,m!==null&&(Tn===null?Tn=m:Tn.push.apply(Tn,m))}h=x}if(m=!1,h!==2)continue}}if(h===1){Ws(n,0),$i(n,i,0,!0);break}e:{switch(u=n,m=h,m){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:$i(u,i,qn,!qi);break e;case 2:Tn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(h=zc+300-te(),10<h)){if($i(u,i,qn,!qi),Es(u,0,!0)!==0)break e;li=i,u.timeoutHandle=pb(Vv.bind(null,u,l,Tn,Lc,ly,i,qn,Pa,Ks,qi,m,"Throttled",-0,0),h);break e}Vv(u,l,Tn,Lc,ly,i,qn,Pa,Ks,qi,m,null,-0,0)}}break}while(!0);Tr(n)}function Vv(n,i,l,u,h,m,x,A,H,ee,le,fe,ne,ie){if(n.timeoutHandle=-1,fe=i.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yr},zv(i,m,fe);var Me=(m&62914560)===m?zc-te():(m&4194048)===m?jv-te():0;if(Me=nk(fe,Me),Me!==null){li=m,n.cancelPendingCommit=Me(Qv.bind(null,n,i,m,l,u,h,x,A,H,le,fe,null,ne,ie)),$i(n,m,x,!ee);return}}Qv(n,i,m,l,u,h,x,A,H)}function v3(n){for(var i=n;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var h=l[u],m=h.getSnapshot;h=h.value;try{if(!Ln(m(),h))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function $i(n,i,l,u){i&=~sy,i&=~Pa,n.suspendedLanes|=i,n.pingedLanes&=~i,u&&(n.warmLanes|=i),u=n.expirationTimes;for(var h=i;0<h;){var m=31-Qt(h),x=1<<m;u[m]=-1,h&=~x}l!==0&&Bu(n,l,i)}function Bc(){return(ct&6)===0?(Bo(0),!1):!0}function fy(){if(Ke!==null){if(dt===0)var n=Ke.return;else n=Ke,Xr=Da=null,kh(n),Ps=null,vo=0,n=Ke;for(;n!==null;)vv(n.alternate,n),n=n.return;Ke=null}}function Ws(n,i){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,U3(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),li=0,fy(),vt=n,Ke=l=Gr(n.current,null),et=i,dt=0,Hn=null,qi=!1,Xs=wa(n,i),ay=!1,Ks=qn=sy=Pa=Vi=Ot=0,Tn=Do=null,ly=!1,(i&8)!==0&&(i|=i&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=i;0<u;){var h=31-Qt(u),m=1<<h;i|=n[h],u&=~m}return si=i,rc(),l}function Iv(n,i){Fe=null,U.H=Co,i===Is||i===fc?(i=i1(),dt=3):i===mh?(i=i1(),dt=4):dt=i===Ph?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Hn=i,Ke===null&&(Ot=1,Mc(n,Jn(i,n.current)))}function Pv(){var n=jn.current;return n===null?!0:(et&4194048)===et?nr===null:(et&62914560)===et||(et&536870912)!==0?n===nr:!1}function $v(){var n=U.H;return U.H=Co,n===null?Co:n}function Fv(){var n=U.A;return U.A=g3,n}function jc(){Ot=4,qi||(et&4194048)!==et&&jn.current!==null||(Xs=!0),(Vi&134217727)===0&&(Pa&134217727)===0||vt===null||$i(vt,et,qn,!1)}function dy(n,i,l){var u=ct;ct|=2;var h=$v(),m=Fv();(vt!==n||et!==i)&&(Lc=null,Ws(n,i)),i=!1;var x=Ot;e:do try{if(dt!==0&&Ke!==null){var A=Ke,H=Hn;switch(dt){case 8:fy(),x=6;break e;case 3:case 2:case 9:case 6:jn.current===null&&(i=!0);var ee=dt;if(dt=0,Hn=null,el(n,A,H,ee),l&&Xs){x=0;break e}break;default:ee=dt,dt=0,Hn=null,el(n,A,H,ee)}}b3(),x=Ot;break}catch(le){Iv(n,le)}while(!0);return i&&n.shellSuspendCounter++,Xr=Da=null,ct=u,U.H=h,U.A=m,Ke===null&&(vt=null,et=0,rc()),x}function b3(){for(;Ke!==null;)Yv(Ke)}function _3(n,i){var l=ct;ct|=2;var u=$v(),h=Fv();vt!==n||et!==i?(Lc=null,Dc=te()+500,Ws(n,i)):Xs=wa(n,i);e:do try{if(dt!==0&&Ke!==null){i=Ke;var m=Hn;t:switch(dt){case 1:dt=0,Hn=null,el(n,i,m,1);break;case 2:case 9:if(n1(m)){dt=0,Hn=null,Zv(i);break}i=function(){dt!==2&&dt!==9||vt!==n||(dt=7),Tr(n)},m.then(i,i);break e;case 3:dt=7;break e;case 4:dt=5;break e;case 7:n1(m)?(dt=0,Hn=null,Zv(i)):(dt=0,Hn=null,el(n,i,m,7));break;case 5:var x=null;switch(Ke.tag){case 26:x=Ke.memoizedState;case 5:case 27:var A=Ke;if(x?Ob(x):A.stateNode.complete){dt=0,Hn=null;var H=A.sibling;if(H!==null)Ke=H;else{var ee=A.return;ee!==null?(Ke=ee,Uc(ee)):Ke=null}break t}}dt=0,Hn=null,el(n,i,m,5);break;case 6:dt=0,Hn=null,el(n,i,m,6);break;case 8:fy(),Ot=6;break e;default:throw Error(a(462))}}S3();break}catch(le){Iv(n,le)}while(!0);return Xr=Da=null,U.H=u,U.A=h,ct=l,Ke!==null?0:(vt=null,et=0,rc(),Ot)}function S3(){for(;Ke!==null&&!q();)Yv(Ke)}function Yv(n){var i=gv(n.alternate,n,si);n.memoizedProps=n.pendingProps,i===null?Uc(n):Ke=i}function Zv(n){var i=n,l=i.alternate;switch(i.tag){case 15:case 0:i=cv(l,i,i.pendingProps,i.type,void 0,et);break;case 11:i=cv(l,i,i.pendingProps,i.type.render,i.ref,et);break;case 5:kh(i);default:vv(l,i),i=Ke=F0(i,si),i=gv(l,i,si)}n.memoizedProps=n.pendingProps,i===null?Uc(n):Ke=i}function el(n,i,l,u){Xr=Da=null,kh(i),Ps=null,vo=0;var h=i.return;try{if(u3(n,h,i,l,et)){Ot=1,Mc(n,Jn(l,n.current)),Ke=null;return}}catch(m){if(h!==null)throw Ke=h,m;Ot=1,Mc(n,Jn(l,n.current)),Ke=null;return}i.flags&32768?(nt||u===1?n=!0:Xs||(et&536870912)!==0?n=!1:(qi=n=!0,(u===2||u===9||u===3||u===6)&&(u=jn.current,u!==null&&u.tag===13&&(u.flags|=16384))),Gv(i,n)):Uc(i)}function Uc(n){var i=n;do{if((i.flags&32768)!==0){Gv(i,qi);return}n=i.return;var l=d3(i.alternate,i,si);if(l!==null){Ke=l;return}if(i=i.sibling,i!==null){Ke=i;return}Ke=i=n}while(i!==null);Ot===0&&(Ot=5)}function Gv(n,i){do{var l=h3(n.alternate,n);if(l!==null){l.flags&=32767,Ke=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(n=n.sibling,n!==null)){Ke=n;return}Ke=n=l}while(n!==null);Ot=6,Ke=null}function Qv(n,i,l,u,h,m,x,A,H){n.cancelPendingCommit=null;do Hc();while(Kt!==0);if((ct&6)!==0)throw Error(a(327));if(i!==null){if(i===n.current)throw Error(a(177));if(m=i.lanes|i.childLanes,m|=eh,Rd(n,l,m,x,A,H),n===vt&&(Ke=vt=null,et=0),Js=i,Pi=n,li=l,oy=m,uy=h,Uv=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,M3(we,function(){return eb(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=U.T,U.T=null,h=F.p,F.p=2,x=ct,ct|=4;try{y3(n,i,l)}finally{ct=x,F.p=h,U.T=u}}Kt=1,Xv(),Kv(),Jv()}}function Xv(){if(Kt===1){Kt=0;var n=Pi,i=Js,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var u=F.p;F.p=2;var h=ct;ct|=4;try{Rv(i,n);var m=Ey,x=B0(n.containerInfo),A=m.focusedElem,H=m.selectionRange;if(x!==A&&A&&A.ownerDocument&&L0(A.ownerDocument.documentElement,A)){if(H!==null&&Qd(A)){var ee=H.start,le=H.end;if(le===void 0&&(le=ee),"selectionStart"in A)A.selectionStart=ee,A.selectionEnd=Math.min(le,A.value.length);else{var fe=A.ownerDocument||document,ne=fe&&fe.defaultView||window;if(ne.getSelection){var ie=ne.getSelection(),Me=A.textContent.length,He=Math.min(H.start,Me),gt=H.end===void 0?He:Math.min(H.end,Me);!ie.extend&&He>gt&&(x=gt,gt=He,He=x);var Y=D0(A,He),P=D0(A,gt);if(Y&&P&&(ie.rangeCount!==1||ie.anchorNode!==Y.node||ie.anchorOffset!==Y.offset||ie.focusNode!==P.node||ie.focusOffset!==P.offset)){var W=fe.createRange();W.setStart(Y.node,Y.offset),ie.removeAllRanges(),He>gt?(ie.addRange(W),ie.extend(P.node,P.offset)):(W.setEnd(P.node,P.offset),ie.addRange(W))}}}}for(fe=[],ie=A;ie=ie.parentNode;)ie.nodeType===1&&fe.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<fe.length;A++){var ue=fe[A];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}Kc=!!wy,Ey=wy=null}finally{ct=h,F.p=u,U.T=l}}n.current=i,Kt=2}}function Kv(){if(Kt===2){Kt=0;var n=Pi,i=Js,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var u=F.p;F.p=2;var h=ct;ct|=4;try{Mv(n,i.alternate,i)}finally{ct=h,F.p=u,U.T=l}}Kt=3}}function Jv(){if(Kt===4||Kt===3){Kt=0,X();var n=Pi,i=Js,l=li,u=Uv;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Kt=5:(Kt=0,Js=Pi=null,Wv(n,n.pendingLanes));var h=n.pendingLanes;if(h===0&&(Ii=null),eo(l),i=i.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(Rt,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=U.T,h=F.p,F.p=2,U.T=null;try{for(var m=n.onRecoverableError,x=0;x<u.length;x++){var A=u[x];m(A.value,{componentStack:A.stack})}}finally{U.T=i,F.p=h}}(li&3)!==0&&Hc(),Tr(n),h=n.pendingLanes,(l&261930)!==0&&(h&42)!==0?n===cy?Lo++:(Lo=0,cy=n):Lo=0,Bo(0)}}function Wv(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,go(i)))}function Hc(){return Xv(),Kv(),Jv(),eb()}function eb(){if(Kt!==5)return!1;var n=Pi,i=oy;oy=0;var l=eo(li),u=U.T,h=F.p;try{F.p=32>l?32:l,U.T=null,l=uy,uy=null;var m=Pi,x=li;if(Kt=0,Js=Pi=null,li=0,(ct&6)!==0)throw Error(a(331));var A=ct;if(ct|=4,Lv(m.current),Ov(m,m.current,x,l),ct=A,Bo(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(Rt,m)}catch{}return!0}finally{F.p=h,U.T=u,Wv(n,i)}}function tb(n,i,l){i=Jn(l,i),i=Ih(n.stateNode,i,2),n=Bi(n,i,2),n!==null&&(Ea(n,2),Tr(n))}function ht(n,i,l){if(n.tag===3)tb(n,n,l);else for(;i!==null;){if(i.tag===3){tb(i,n,l);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Ii===null||!Ii.has(u))){n=Jn(l,n),l=nv(2),u=Bi(i,l,2),u!==null&&(rv(l,u,i,n),Ea(u,2),Tr(u));break}}i=i.return}}function hy(n,i,l){var u=n.pingCache;if(u===null){u=n.pingCache=new p3;var h=new Set;u.set(i,h)}else h=u.get(i),h===void 0&&(h=new Set,u.set(i,h));h.has(l)||(ay=!0,h.add(l),n=x3.bind(null,n,i,l),i.then(n,n))}function x3(n,i,l){var u=n.pingCache;u!==null&&u.delete(i),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,vt===n&&(et&l)===l&&(Ot===4||Ot===3&&(et&62914560)===et&&300>te()-zc?(ct&2)===0&&Ws(n,0):sy|=l,Ks===et&&(Ks=0)),Tr(n)}function nb(n,i){i===0&&(i=Lu()),n=Na(n,i),n!==null&&(Ea(n,i),Tr(n))}function w3(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),nb(n,l)}function E3(n,i){var l=0;switch(n.tag){case 31:case 13:var u=n.stateNode,h=n.memoizedState;h!==null&&(l=h.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(i),nb(n,l)}function M3(n,i){return Qn(n,i)}var qc=null,tl=null,yy=!1,Vc=!1,my=!1,Fi=0;function Tr(n){n!==tl&&n.next===null&&(tl===null?qc=tl=n:tl=tl.next=n),Vc=!0,yy||(yy=!0,k3())}function Bo(n,i){if(!my&&Vc){my=!0;do for(var l=!1,u=qc;u!==null;){if(n!==0){var h=u.pendingLanes;if(h===0)var m=0;else{var x=u.suspendedLanes,A=u.pingedLanes;m=(1<<31-Qt(42|n)+1)-1,m&=h&~(x&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(l=!0,sb(u,m))}else m=et,m=Es(u,u===vt?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||wa(u,m)||(l=!0,sb(u,m));u=u.next}while(l);my=!1}}function C3(){rb()}function rb(){Vc=yy=!1;var n=0;Fi!==0&&j3()&&(n=Fi);for(var i=te(),l=null,u=qc;u!==null;){var h=u.next,m=ib(u,i);m===0?(u.next=null,l===null?qc=h:l.next=h,h===null&&(tl=l)):(l=u,(n!==0||(m&3)!==0)&&(Vc=!0)),u=h}Kt!==0&&Kt!==5||Bo(n),Fi!==0&&(Fi=0)}function ib(n,i){for(var l=n.suspendedLanes,u=n.pingedLanes,h=n.expirationTimes,m=n.pendingLanes&-62914561;0<m;){var x=31-Qt(m),A=1<<x,H=h[x];H===-1?((A&l)===0||(A&u)!==0)&&(h[x]=Td(A,i)):H<=i&&(n.expiredLanes|=A),m&=~A}if(i=vt,l=et,l=Es(n,n===i?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,l===0||n===i&&(dt===2||dt===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&Xn(u),n.callbackNode=null,n.callbackPriority=0;if((l&3)===0||wa(n,l)){if(i=l&-l,i===n.callbackPriority)return i;switch(u!==null&&Xn(u),eo(l)){case 2:case 8:l=pe;break;case 32:l=we;break;case 268435456:l=We;break;default:l=we}return u=ab.bind(null,n),l=Qn(l,u),n.callbackPriority=i,n.callbackNode=l,i}return u!==null&&u!==null&&Xn(u),n.callbackPriority=2,n.callbackNode=null,2}function ab(n,i){if(Kt!==0&&Kt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(Hc()&&n.callbackNode!==l)return null;var u=et;return u=Es(n,n===vt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(qv(n,u,i),ib(n,te()),n.callbackNode!=null&&n.callbackNode===l?ab.bind(null,n):null)}function sb(n,i){if(Hc())return null;qv(n,i,!0)}function k3(){H3(function(){(ct&6)!==0?Qn(ge,C3):rb()})}function gy(){if(Fi===0){var n=qs;n===0&&(n=Vr,Vr<<=1,(Vr&261888)===0&&(Vr=256)),Fi=n}return Fi}function lb(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Qu(""+n)}function ob(n,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,n.id&&l.setAttribute("form",n.id),i.parentNode.insertBefore(l,i),n=new FormData(n),l.parentNode.removeChild(l),n}function A3(n,i,l,u,h){if(i==="submit"&&l&&l.stateNode===h){var m=lb((h[fn]||null).action),x=u.submitter;x&&(i=(i=x[fn]||null)?lb(i.formAction):x.getAttribute("formAction"),i!==null&&(m=i,x=null));var A=new Wu("action","action",null,u,h);n.push({event:A,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Fi!==0){var H=x?ob(h,x):new FormData(h);Bh(l,{pending:!0,data:H,method:h.method,action:m},null,H)}}else typeof m=="function"&&(A.preventDefault(),H=x?ob(h,x):new FormData(h),Bh(l,{pending:!0,data:H,method:h.method,action:m},m,H))},currentTarget:h}]})}}for(var py=0;py<Wd.length;py++){var vy=Wd[py],T3=vy.toLowerCase(),R3=vy[0].toUpperCase()+vy.slice(1);dr(T3,"on"+R3)}dr(H0,"onAnimationEnd"),dr(q0,"onAnimationIteration"),dr(V0,"onAnimationStart"),dr("dblclick","onDoubleClick"),dr("focusin","onFocus"),dr("focusout","onBlur"),dr(YC,"onTransitionRun"),dr(ZC,"onTransitionStart"),dr(GC,"onTransitionCancel"),dr(I0,"onTransitionEnd"),ki("onMouseEnter",["mouseout","mouseover"]),ki("onMouseLeave",["mouseout","mouseover"]),ki("onPointerEnter",["pointerout","pointerover"]),ki("onPointerLeave",["pointerout","pointerover"]),$r("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$r("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$r("onBeforeInput",["compositionend","keypress","textInput","paste"]),$r("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$r("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$r("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jo="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(" "),N3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jo));function ub(n,i){i=(i&4)!==0;for(var l=0;l<n.length;l++){var u=n[l],h=u.event;u=u.listeners;e:{var m=void 0;if(i)for(var x=u.length-1;0<=x;x--){var A=u[x],H=A.instance,ee=A.currentTarget;if(A=A.listener,H!==m&&h.isPropagationStopped())break e;m=A,h.currentTarget=ee;try{m(h)}catch(le){nc(le)}h.currentTarget=null,m=H}else for(x=0;x<u.length;x++){if(A=u[x],H=A.instance,ee=A.currentTarget,A=A.listener,H!==m&&h.isPropagationStopped())break e;m=A,h.currentTarget=ee;try{m(h)}catch(le){nc(le)}h.currentTarget=null,m=H}}}}function Je(n,i){var l=i[Ms];l===void 0&&(l=i[Ms]=new Set);var u=n+"__bubble";l.has(u)||(cb(i,n,2,!1),l.add(u))}function by(n,i,l){var u=0;i&&(u|=4),cb(l,n,u,i)}var Ic="_reactListening"+Math.random().toString(36).slice(2);function _y(n){if(!n[Ic]){n[Ic]=!0,Pu.forEach(function(l){l!=="selectionchange"&&(N3.has(l)||by(l,!1,n),by(l,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Ic]||(i[Ic]=!0,by("selectionchange",!1,i))}}function cb(n,i,l,u){switch(Hb(i)){case 2:var h=ak;break;case 8:h=sk;break;default:h=Ly}l=h.bind(null,i,l,n),h=void 0,!qd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),u?h!==void 0?n.addEventListener(i,l,{capture:!0,passive:h}):n.addEventListener(i,l,!0):h!==void 0?n.addEventListener(i,l,{passive:h}):n.addEventListener(i,l,!1)}function Sy(n,i,l,u,h){var m=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var x=u.tag;if(x===3||x===4){var A=u.stateNode.containerInfo;if(A===h)break;if(x===4)for(x=u.return;x!==null;){var H=x.tag;if((H===3||H===4)&&x.stateNode.containerInfo===h)return;x=x.return}for(;A!==null;){if(x=wi(A),x===null)return;if(H=x.tag,H===5||H===6||H===26||H===27){u=m=x;continue e}A=A.parentNode}}u=u.return}m0(function(){var ee=m,le=Ud(l),fe=[];e:{var ne=P0.get(n);if(ne!==void 0){var ie=Wu,Me=n;switch(n){case"keypress":if(Ku(l)===0)break e;case"keydown":case"keyup":ie=EC;break;case"focusin":Me="focus",ie=$d;break;case"focusout":Me="blur",ie=$d;break;case"beforeblur":case"afterblur":ie=$d;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=v0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=dC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=kC;break;case H0:case q0:case V0:ie=mC;break;case I0:ie=TC;break;case"scroll":case"scrollend":ie=cC;break;case"wheel":ie=NC;break;case"copy":case"cut":case"paste":ie=pC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=_0;break;case"toggle":case"beforetoggle":ie=zC}var He=(i&4)!==0,gt=!He&&(n==="scroll"||n==="scrollend"),Y=He?ne!==null?ne+"Capture":null:ne;He=[];for(var P=ee,W;P!==null;){var ue=P;if(W=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||W===null||Y===null||(ue=io(P,Y),ue!=null&&He.push(Uo(P,ue,W))),gt)break;P=P.return}0<He.length&&(ne=new ie(ne,Me,null,l,le),fe.push({event:ne,listeners:He}))}}if((i&7)===0){e:{if(ne=n==="mouseover"||n==="pointerover",ie=n==="mouseout"||n==="pointerout",ne&&l!==jd&&(Me=l.relatedTarget||l.fromElement)&&(wi(Me)||Me[Pr]))break e;if((ie||ne)&&(ne=le.window===le?le:(ne=le.ownerDocument)?ne.defaultView||ne.parentWindow:window,ie?(Me=l.relatedTarget||l.toElement,ie=ee,Me=Me?wi(Me):null,Me!==null&&(gt=o(Me),He=Me.tag,Me!==gt||He!==5&&He!==27&&He!==6)&&(Me=null)):(ie=null,Me=ee),ie!==Me)){if(He=v0,ue="onMouseLeave",Y="onMouseEnter",P="mouse",(n==="pointerout"||n==="pointerover")&&(He=_0,ue="onPointerLeave",Y="onPointerEnter",P="pointer"),gt=ie==null?ne:Mi(ie),W=Me==null?ne:Mi(Me),ne=new He(ue,P+"leave",ie,l,le),ne.target=gt,ne.relatedTarget=W,ue=null,wi(le)===ee&&(He=new He(Y,P+"enter",Me,l,le),He.target=W,He.relatedTarget=gt,ue=He),gt=ue,ie&&Me)t:{for(He=O3,Y=ie,P=Me,W=0,ue=Y;ue;ue=He(ue))W++;ue=0;for(var Be=P;Be;Be=He(Be))ue++;for(;0<W-ue;)Y=He(Y),W--;for(;0<ue-W;)P=He(P),ue--;for(;W--;){if(Y===P||P!==null&&Y===P.alternate){He=Y;break t}Y=He(Y),P=He(P)}He=null}else He=null;ie!==null&&fb(fe,ne,ie,He,!1),Me!==null&&gt!==null&&fb(fe,gt,Me,He,!0)}}e:{if(ne=ee?Mi(ee):window,ie=ne.nodeName&&ne.nodeName.toLowerCase(),ie==="select"||ie==="input"&&ne.type==="file")var st=A0;else if(C0(ne))if(T0)st=PC;else{st=VC;var Ne=qC}else ie=ne.nodeName,!ie||ie.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?ee&&Bd(ee.elementType)&&(st=A0):st=IC;if(st&&(st=st(n,ee))){k0(fe,st,l,le);break e}Ne&&Ne(n,ne,ee),n==="focusout"&&ee&&ne.type==="number"&&ee.memoizedProps.value!=null&&ro(ne,"number",ne.value)}switch(Ne=ee?Mi(ee):window,n){case"focusin":(C0(Ne)||Ne.contentEditable==="true")&&(Os=Ne,Xd=ee,ho=null);break;case"focusout":ho=Xd=Os=null;break;case"mousedown":Kd=!0;break;case"contextmenu":case"mouseup":case"dragend":Kd=!1,j0(fe,l,le);break;case"selectionchange":if(FC)break;case"keydown":case"keyup":j0(fe,l,le)}var Ye;if(Yd)e:{switch(n){case"compositionstart":var tt="onCompositionStart";break e;case"compositionend":tt="onCompositionEnd";break e;case"compositionupdate":tt="onCompositionUpdate";break e}tt=void 0}else Ns?E0(n,l)&&(tt="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(tt="onCompositionStart");tt&&(S0&&l.locale!=="ko"&&(Ns||tt!=="onCompositionStart"?tt==="onCompositionEnd"&&Ns&&(Ye=g0()):(Ti=le,Vd="value"in Ti?Ti.value:Ti.textContent,Ns=!0)),Ne=Pc(ee,tt),0<Ne.length&&(tt=new b0(tt,n,null,l,le),fe.push({event:tt,listeners:Ne}),Ye?tt.data=Ye:(Ye=M0(l),Ye!==null&&(tt.data=Ye)))),(Ye=LC?BC(n,l):jC(n,l))&&(tt=Pc(ee,"onBeforeInput"),0<tt.length&&(Ne=new b0("onBeforeInput","beforeinput",null,l,le),fe.push({event:Ne,listeners:tt}),Ne.data=Ye)),A3(fe,n,ee,l,le)}ub(fe,i)})}function Uo(n,i,l){return{instance:n,listener:i,currentTarget:l}}function Pc(n,i){for(var l=i+"Capture",u=[];n!==null;){var h=n,m=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||m===null||(h=io(n,l),h!=null&&u.unshift(Uo(n,h,m)),h=io(n,i),h!=null&&u.push(Uo(n,h,m))),n.tag===3)return u;n=n.return}return[]}function O3(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function fb(n,i,l,u,h){for(var m=i._reactName,x=[];l!==null&&l!==u;){var A=l,H=A.alternate,ee=A.stateNode;if(A=A.tag,H!==null&&H===u)break;A!==5&&A!==26&&A!==27||ee===null||(H=ee,h?(ee=io(l,m),ee!=null&&x.unshift(Uo(l,ee,H))):h||(ee=io(l,m),ee!=null&&x.push(Uo(l,ee,H)))),l=l.return}x.length!==0&&n.push({event:i,listeners:x})}var z3=/\r\n?/g,D3=/\u0000|\uFFFD/g;function db(n){return(typeof n=="string"?n:""+n).replace(z3,`
49
- `).replace(D3,"")}function hb(n,i){return i=db(i),db(n)===i}function mt(n,i,l,u,h,m){switch(l){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||As(n,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&As(n,""+u);break;case"className":ks(n,"class",u);break;case"tabIndex":ks(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ks(n,l,u);break;case"style":h0(n,u,m);break;case"data":if(i!=="object"){ks(n,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||l!=="href")){n.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(l);break}u=Qu(""+u),n.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(l==="formAction"?(i!=="input"&&mt(n,i,"name",h.name,h,null),mt(n,i,"formEncType",h.formEncType,h,null),mt(n,i,"formMethod",h.formMethod,h,null),mt(n,i,"formTarget",h.formTarget,h,null)):(mt(n,i,"encType",h.encType,h,null),mt(n,i,"method",h.method,h,null),mt(n,i,"target",h.target,h,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(l);break}u=Qu(""+u),n.setAttribute(l,u);break;case"onClick":u!=null&&(n.onclick=Yr);break;case"onScroll":u!=null&&Je("scroll",n);break;case"onScrollEnd":u!=null&&Je("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}l=Qu(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(l,""+u):n.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":u===!0?n.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(l,u):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(l,u):n.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(l):n.setAttribute(l,u);break;case"popover":Je("beforetoggle",n),Je("toggle",n),Cs(n,"popover",u);break;case"xlinkActuate":fr(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":fr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":fr(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":fr(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":fr(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":fr(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":fr(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":fr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":fr(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Cs(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=oC.get(l)||l,Cs(n,l,u))}}function xy(n,i,l,u,h,m){switch(l){case"style":h0(n,u,m);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"children":typeof u=="string"?As(n,u):(typeof u=="number"||typeof u=="bigint")&&As(n,""+u);break;case"onScroll":u!=null&&Je("scroll",n);break;case"onScrollEnd":u!=null&&Je("scrollend",n);break;case"onClick":u!=null&&(n.onclick=Yr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$u.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(h=l.endsWith("Capture"),i=l.slice(2,h?l.length-7:void 0),m=n[fn]||null,m=m!=null?m[l]:null,typeof m=="function"&&n.removeEventListener(i,m,h),typeof u=="function")){typeof m!="function"&&m!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(i,u,h);break e}l in n?n[l]=u:u===!0?n.setAttribute(l,""):Cs(n,l,u)}}}function un(n,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Je("error",n),Je("load",n);var u=!1,h=!1,m;for(m in l)if(l.hasOwnProperty(m)){var x=l[m];if(x!=null)switch(m){case"src":u=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:mt(n,i,m,x,l,null)}}h&&mt(n,i,"srcSet",l.srcSet,l,null),u&&mt(n,i,"src",l.src,l,null);return;case"input":Je("invalid",n);var A=m=x=h=null,H=null,ee=null;for(u in l)if(l.hasOwnProperty(u)){var le=l[u];if(le!=null)switch(u){case"name":h=le;break;case"type":x=le;break;case"checked":H=le;break;case"defaultChecked":ee=le;break;case"value":m=le;break;case"defaultValue":A=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(a(137,i));break;default:mt(n,i,u,le,l,null)}}Gu(n,m,A,H,ee,x,h,!1);return;case"select":Je("invalid",n),u=x=m=null;for(h in l)if(l.hasOwnProperty(h)&&(A=l[h],A!=null))switch(h){case"value":m=A;break;case"defaultValue":x=A;break;case"multiple":u=A;default:mt(n,i,h,A,l,null)}i=m,l=x,n.multiple=!!u,i!=null?Fr(n,!!u,i,!1):l!=null&&Fr(n,!!u,l,!0);return;case"textarea":Je("invalid",n),m=h=u=null;for(x in l)if(l.hasOwnProperty(x)&&(A=l[x],A!=null))switch(x){case"value":u=A;break;case"defaultValue":h=A;break;case"children":m=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(a(91));break;default:mt(n,i,x,A,l,null)}f0(n,u,h,m);return;case"option":for(H in l)if(l.hasOwnProperty(H)&&(u=l[H],u!=null))switch(H){case"selected":n.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:mt(n,i,H,u,l,null)}return;case"dialog":Je("beforetoggle",n),Je("toggle",n),Je("cancel",n),Je("close",n);break;case"iframe":case"object":Je("load",n);break;case"video":case"audio":for(u=0;u<jo.length;u++)Je(jo[u],n);break;case"image":Je("error",n),Je("load",n);break;case"details":Je("toggle",n);break;case"embed":case"source":case"link":Je("error",n),Je("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(ee in l)if(l.hasOwnProperty(ee)&&(u=l[ee],u!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:mt(n,i,ee,u,l,null)}return;default:if(Bd(i)){for(le in l)l.hasOwnProperty(le)&&(u=l[le],u!==void 0&&xy(n,i,le,u,l,void 0));return}}for(A in l)l.hasOwnProperty(A)&&(u=l[A],u!=null&&mt(n,i,A,u,l,null))}function L3(n,i,l,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,m=null,x=null,A=null,H=null,ee=null,le=null;for(ie in l){var fe=l[ie];if(l.hasOwnProperty(ie)&&fe!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":H=fe;default:u.hasOwnProperty(ie)||mt(n,i,ie,null,u,fe)}}for(var ne in u){var ie=u[ne];if(fe=l[ne],u.hasOwnProperty(ne)&&(ie!=null||fe!=null))switch(ne){case"type":m=ie;break;case"name":h=ie;break;case"checked":ee=ie;break;case"defaultChecked":le=ie;break;case"value":x=ie;break;case"defaultValue":A=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(a(137,i));break;default:ie!==fe&&mt(n,i,ne,ie,u,fe)}}ka(n,x,A,H,ee,le,m,h);return;case"select":ie=x=A=ne=null;for(m in l)if(H=l[m],l.hasOwnProperty(m)&&H!=null)switch(m){case"value":break;case"multiple":ie=H;default:u.hasOwnProperty(m)||mt(n,i,m,null,u,H)}for(h in u)if(m=u[h],H=l[h],u.hasOwnProperty(h)&&(m!=null||H!=null))switch(h){case"value":ne=m;break;case"defaultValue":A=m;break;case"multiple":x=m;default:m!==H&&mt(n,i,h,m,u,H)}i=A,l=x,u=ie,ne!=null?Fr(n,!!l,ne,!1):!!u!=!!l&&(i!=null?Fr(n,!!l,i,!0):Fr(n,!!l,l?[]:"",!1));return;case"textarea":ie=ne=null;for(A in l)if(h=l[A],l.hasOwnProperty(A)&&h!=null&&!u.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:mt(n,i,A,null,u,h)}for(x in u)if(h=u[x],m=l[x],u.hasOwnProperty(x)&&(h!=null||m!=null))switch(x){case"value":ne=h;break;case"defaultValue":ie=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(a(91));break;default:h!==m&&mt(n,i,x,h,u,m)}c0(n,ne,ie);return;case"option":for(var Me in l)if(ne=l[Me],l.hasOwnProperty(Me)&&ne!=null&&!u.hasOwnProperty(Me))switch(Me){case"selected":n.selected=!1;break;default:mt(n,i,Me,null,u,ne)}for(H in u)if(ne=u[H],ie=l[H],u.hasOwnProperty(H)&&ne!==ie&&(ne!=null||ie!=null))switch(H){case"selected":n.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:mt(n,i,H,ne,u,ie)}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 He in l)ne=l[He],l.hasOwnProperty(He)&&ne!=null&&!u.hasOwnProperty(He)&&mt(n,i,He,null,u,ne);for(ee in u)if(ne=u[ee],ie=l[ee],u.hasOwnProperty(ee)&&ne!==ie&&(ne!=null||ie!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(a(137,i));break;default:mt(n,i,ee,ne,u,ie)}return;default:if(Bd(i)){for(var gt in l)ne=l[gt],l.hasOwnProperty(gt)&&ne!==void 0&&!u.hasOwnProperty(gt)&&xy(n,i,gt,void 0,u,ne);for(le in u)ne=u[le],ie=l[le],!u.hasOwnProperty(le)||ne===ie||ne===void 0&&ie===void 0||xy(n,i,le,ne,u,ie);return}}for(var Y in l)ne=l[Y],l.hasOwnProperty(Y)&&ne!=null&&!u.hasOwnProperty(Y)&&mt(n,i,Y,null,u,ne);for(fe in u)ne=u[fe],ie=l[fe],!u.hasOwnProperty(fe)||ne===ie||ne==null&&ie==null||mt(n,i,fe,ne,u,ie)}function yb(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function B3(){if(typeof performance.getEntriesByType=="function"){for(var n=0,i=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var h=l[u],m=h.transferSize,x=h.initiatorType,A=h.duration;if(m&&A&&yb(x)){for(x=0,A=h.responseEnd,u+=1;u<l.length;u++){var H=l[u],ee=H.startTime;if(ee>A)break;var le=H.transferSize,fe=H.initiatorType;le&&yb(fe)&&(H=H.responseEnd,x+=le*(H<A?1:(A-ee)/(H-ee)))}if(--u,i+=8*(m+x)/(h.duration/1e3),n++,10<n)break}}if(0<n)return i/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var wy=null,Ey=null;function $c(n){return n.nodeType===9?n:n.ownerDocument}function mb(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 gb(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function My(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Cy=null;function j3(){var n=window.event;return n&&n.type==="popstate"?n===Cy?!1:(Cy=n,!0):(Cy=null,!1)}var pb=typeof setTimeout=="function"?setTimeout:void 0,U3=typeof clearTimeout=="function"?clearTimeout:void 0,vb=typeof Promise=="function"?Promise:void 0,H3=typeof queueMicrotask=="function"?queueMicrotask:typeof vb<"u"?function(n){return vb.resolve(null).then(n).catch(q3)}:pb;function q3(n){setTimeout(function(){throw n})}function Yi(n){return n==="head"}function bb(n,i){var l=i,u=0;do{var h=l.nextSibling;if(n.removeChild(l),h&&h.nodeType===8)if(l=h.data,l==="/$"||l==="/&"){if(u===0){n.removeChild(h),al(i);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")Ho(n.ownerDocument.documentElement);else if(l==="head"){l=n.ownerDocument.head,Ho(l);for(var m=l.firstChild;m;){var x=m.nextSibling,A=m.nodeName;m[Ma]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&m.rel.toLowerCase()==="stylesheet"||l.removeChild(m),m=x}}else l==="body"&&Ho(n.ownerDocument.body);l=h}while(l);al(i)}function _b(n,i){var l=n;n=0;do{var u=l.nextSibling;if(l.nodeType===1?i?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(i?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(n===0)break;n--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||n++;l=u}while(l)}function ky(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ky(l),to(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function V3(n,i,l,u){for(;n.nodeType===1;){var h=l;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[Ma])switch(i){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!==h.rel||n.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||n.getAttribute("title")!==(h.title==null?null:h.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(m=n.getAttribute("src"),(m!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&m&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var m=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===m)return n}else return n;if(n=rr(n.nextSibling),n===null)break}return null}function I3(n,i,l){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=rr(n.nextSibling),n===null))return null;return n}function Sb(n,i){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=rr(n.nextSibling),n===null))return null;return n}function Ay(n){return n.data==="$?"||n.data==="$~"}function Ty(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function P3(n,i){var l=n.ownerDocument;if(n.data==="$~")n._reactRetry=i;else if(n.data!=="$?"||l.readyState!=="loading")i();else{var u=function(){i(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function rr(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return n}var Ry=null;function xb(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"||l==="/&"){if(i===0)return rr(n.nextSibling);i--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||i++}n=n.nextSibling}return null}function wb(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(i===0)return n;i--}else l!=="/$"&&l!=="/&"||i++}n=n.previousSibling}return null}function Eb(n,i,l){switch(i=$c(l),n){case"html":if(n=i.documentElement,!n)throw Error(a(452));return n;case"head":if(n=i.head,!n)throw Error(a(453));return n;case"body":if(n=i.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function Ho(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);to(n)}var ir=new Map,Mb=new Set;function Fc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var oi=F.d;F.d={f:$3,r:F3,D:Y3,C:Z3,L:G3,m:Q3,X:K3,S:X3,M:J3};function $3(){var n=oi.f(),i=Bc();return n||i}function F3(n){var i=Ei(n);i!==null&&i.tag===5&&i.type==="form"?I1(i):oi.r(n)}var nl=typeof document>"u"?null:document;function Cb(n,i,l){var u=nl;if(u&&typeof i=="string"&&i){var h=En(i);h='link[rel="'+n+'"][href="'+h+'"]',typeof l=="string"&&(h+='[crossorigin="'+l+'"]'),Mb.has(h)||(Mb.add(h),n={rel:n,crossOrigin:l,href:i},u.querySelector(h)===null&&(i=u.createElement("link"),un(i,"link",n),qt(i),u.head.appendChild(i)))}}function Y3(n){oi.D(n),Cb("dns-prefetch",n,null)}function Z3(n,i){oi.C(n,i),Cb("preconnect",n,i)}function G3(n,i,l){oi.L(n,i,l);var u=nl;if(u&&n&&i){var h='link[rel="preload"][as="'+En(i)+'"]';i==="image"&&l&&l.imageSrcSet?(h+='[imagesrcset="'+En(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(h+='[imagesizes="'+En(l.imageSizes)+'"]')):h+='[href="'+En(n)+'"]';var m=h;switch(i){case"style":m=rl(n);break;case"script":m=il(n)}ir.has(m)||(n=g({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:n,as:i},l),ir.set(m,n),u.querySelector(h)!==null||i==="style"&&u.querySelector(qo(m))||i==="script"&&u.querySelector(Vo(m))||(i=u.createElement("link"),un(i,"link",n),qt(i),u.head.appendChild(i)))}}function Q3(n,i){oi.m(n,i);var l=nl;if(l&&n){var u=i&&typeof i.as=="string"?i.as:"script",h='link[rel="modulepreload"][as="'+En(u)+'"][href="'+En(n)+'"]',m=h;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=il(n)}if(!ir.has(m)&&(n=g({rel:"modulepreload",href:n},i),ir.set(m,n),l.querySelector(h)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Vo(m)))return}u=l.createElement("link"),un(u,"link",n),qt(u),l.head.appendChild(u)}}}function X3(n,i,l){oi.S(n,i,l);var u=nl;if(u&&n){var h=Ci(u).hoistableStyles,m=rl(n);i=i||"default";var x=h.get(m);if(!x){var A={loading:0,preload:null};if(x=u.querySelector(qo(m)))A.loading=5;else{n=g({rel:"stylesheet",href:n,"data-precedence":i},l),(l=ir.get(m))&&Ny(n,l);var H=x=u.createElement("link");qt(H),un(H,"link",n),H._p=new Promise(function(ee,le){H.onload=ee,H.onerror=le}),H.addEventListener("load",function(){A.loading|=1}),H.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Yc(x,i,u)}x={type:"stylesheet",instance:x,count:1,state:A},h.set(m,x)}}}function K3(n,i){oi.X(n,i);var l=nl;if(l&&n){var u=Ci(l).hoistableScripts,h=il(n),m=u.get(h);m||(m=l.querySelector(Vo(h)),m||(n=g({src:n,async:!0},i),(i=ir.get(h))&&Oy(n,i),m=l.createElement("script"),qt(m),un(m,"link",n),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(h,m))}}function J3(n,i){oi.M(n,i);var l=nl;if(l&&n){var u=Ci(l).hoistableScripts,h=il(n),m=u.get(h);m||(m=l.querySelector(Vo(h)),m||(n=g({src:n,async:!0,type:"module"},i),(i=ir.get(h))&&Oy(n,i),m=l.createElement("script"),qt(m),un(m,"link",n),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(h,m))}}function kb(n,i,l,u){var h=(h=me.current)?Fc(h):null;if(!h)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=rl(l.href),l=Ci(h).hoistableStyles,u=l.get(i),u||(u={type:"style",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=rl(l.href);var m=Ci(h).hoistableStyles,x=m.get(n);if(x||(h=h.ownerDocument||h,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(n,x),(m=h.querySelector(qo(n)))&&!m._p&&(x.instance=m,x.state.loading=5),ir.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ir.set(n,l),m||W3(h,n,l,x.state))),i&&u===null)throw Error(a(528,""));return x}if(i&&u!==null)throw Error(a(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=il(l),l=Ci(h).hoistableScripts,u=l.get(i),u||(u={type:"script",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function rl(n){return'href="'+En(n)+'"'}function qo(n){return'link[rel="stylesheet"]['+n+"]"}function Ab(n){return g({},n,{"data-precedence":n.precedence,precedence:null})}function W3(n,i,l,u){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=n.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),un(i,"link",l),qt(i),n.head.appendChild(i))}function il(n){return'[src="'+En(n)+'"]'}function Vo(n){return"script[async]"+n}function Tb(n,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var u=n.querySelector('style[data-href~="'+En(l.href)+'"]');if(u)return i.instance=u,qt(u),u;var h=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),qt(u),un(u,"style",h),Yc(u,l.precedence,n),i.instance=u;case"stylesheet":h=rl(l.href);var m=n.querySelector(qo(h));if(m)return i.state.loading|=4,i.instance=m,qt(m),m;u=Ab(l),(h=ir.get(h))&&Ny(u,h),m=(n.ownerDocument||n).createElement("link"),qt(m);var x=m;return x._p=new Promise(function(A,H){x.onload=A,x.onerror=H}),un(m,"link",u),i.state.loading|=4,Yc(m,l.precedence,n),i.instance=m;case"script":return m=il(l.src),(h=n.querySelector(Vo(m)))?(i.instance=h,qt(h),h):(u=l,(h=ir.get(m))&&(u=g({},l),Oy(u,h)),n=n.ownerDocument||n,h=n.createElement("script"),qt(h),un(h,"link",u),n.head.appendChild(h),i.instance=h);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,Yc(u,l.precedence,n));return i.instance}function Yc(n,i,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=u.length?u[u.length-1]:null,m=h,x=0;x<u.length;x++){var A=u[x];if(A.dataset.precedence===i)m=A;else if(m!==h)break}m?m.parentNode.insertBefore(n,m.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(n,i.firstChild))}function Ny(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function Oy(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var Zc=null;function Rb(n,i,l){if(Zc===null){var u=new Map,h=Zc=new Map;h.set(l,u)}else h=Zc,u=h.get(l),u||(u=new Map,h.set(l,u));if(u.has(n))return u;for(u.set(n,null),l=l.getElementsByTagName(n),h=0;h<l.length;h++){var m=l[h];if(!(m[Ma]||m[Xt]||n==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var x=m.getAttribute(i)||"";x=n+x;var A=u.get(x);A?A.push(m):u.set(x,[m])}}return u}function Nb(n,i,l){n=n.ownerDocument||n,n.head.insertBefore(l,i==="title"?n.querySelector("head > title"):null)}function ek(n,i,l){if(l===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function Ob(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function tk(n,i,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var h=rl(u.href),m=i.querySelector(qo(h));if(m){i=m._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n.count++,n=Gc.bind(n),i.then(n,n)),l.state.loading|=4,l.instance=m,qt(m);return}m=i.ownerDocument||i,u=Ab(u),(h=ir.get(h))&&Ny(u,h),m=m.createElement("link"),qt(m);var x=m;x._p=new Promise(function(A,H){x.onload=A,x.onerror=H}),un(m,"link",u),l.instance=m}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(n.count++,l=Gc.bind(n),i.addEventListener("load",l),i.addEventListener("error",l))}}var zy=0;function nk(n,i){return n.stylesheets&&n.count===0&&Xc(n,n.stylesheets),0<n.count||0<n.imgCount?function(l){var u=setTimeout(function(){if(n.stylesheets&&Xc(n,n.stylesheets),n.unsuspend){var m=n.unsuspend;n.unsuspend=null,m()}},6e4+i);0<n.imgBytes&&zy===0&&(zy=62500*B3());var h=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Xc(n,n.stylesheets),n.unsuspend)){var m=n.unsuspend;n.unsuspend=null,m()}},(n.imgBytes>zy?50:800)+i);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(h)}}:null}function Gc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Qc=null;function Xc(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Qc=new Map,i.forEach(rk,n),Qc=null,Gc.call(n))}function rk(n,i){if(!(i.state.loading&4)){var l=Qc.get(n);if(l)var u=l.get(null);else{l=new Map,Qc.set(n,l);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<h.length;m++){var x=h[m];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(l.set(x.dataset.precedence,x),u=x)}u&&l.set(null,u)}h=i.instance,x=h.getAttribute("data-precedence"),m=l.get(x)||u,m===u&&l.set(null,h),l.set(x,h),this.count++,u=Gc.bind(this),h.addEventListener("load",u),h.addEventListener("error",u),m?m.parentNode.insertBefore(h,m.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),i.state.loading|=4}}var Io={$$typeof:E,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function ik(n,i,l,u,h,m,x,A,H){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=Jl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jl(0),this.hiddenUpdates=Jl(null),this.identifierPrefix=u,this.onUncaughtError=h,this.onCaughtError=m,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function zb(n,i,l,u,h,m,x,A,H,ee,le,fe){return n=new ik(n,i,l,x,H,ee,le,fe,A),i=1,m===!0&&(i|=24),m=Bn(3,null,null,i),n.current=m,m.stateNode=n,i=dh(),i.refCount++,n.pooledCache=i,i.refCount++,m.memoizedState={element:u,isDehydrated:l,cache:i},gh(m),n}function Db(n){return n?(n=Ls,n):Ls}function Lb(n,i,l,u,h,m){h=Db(h),u.context===null?u.context=h:u.pendingContext=h,u=Li(i),u.payload={element:l},m=m===void 0?null:m,m!==null&&(u.callback=m),l=Bi(n,u,i),l!==null&&(Rn(l,n,i),_o(l,n,i))}function Bb(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function Dy(n,i){Bb(n,i),(n=n.alternate)&&Bb(n,i)}function jb(n){if(n.tag===13||n.tag===31){var i=Na(n,67108864);i!==null&&Rn(i,n,67108864),Dy(n,67108864)}}function Ub(n){if(n.tag===13||n.tag===31){var i=Vn();i=Wl(i);var l=Na(n,i);l!==null&&Rn(l,n,i),Dy(n,i)}}var Kc=!0;function ak(n,i,l,u){var h=U.T;U.T=null;var m=F.p;try{F.p=2,Ly(n,i,l,u)}finally{F.p=m,U.T=h}}function sk(n,i,l,u){var h=U.T;U.T=null;var m=F.p;try{F.p=8,Ly(n,i,l,u)}finally{F.p=m,U.T=h}}function Ly(n,i,l,u){if(Kc){var h=By(u);if(h===null)Sy(n,i,u,Jc,l),qb(n,u);else if(ok(h,n,i,l,u))u.stopPropagation();else if(qb(n,u),i&4&&-1<lk.indexOf(n)){for(;h!==null;){var m=Ei(h);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var x=Ir(m.pendingLanes);if(x!==0){var A=m;for(A.pendingLanes|=2,A.entangledLanes|=2;x;){var H=1<<31-Qt(x);A.entanglements[1]|=H,x&=~H}Tr(m),(ct&6)===0&&(Dc=te()+500,Bo(0))}}break;case 31:case 13:A=Na(m,2),A!==null&&Rn(A,m,2),Bc(),Dy(m,2)}if(m=By(u),m===null&&Sy(n,i,u,Jc,l),m===h)break;h=m}h!==null&&u.stopPropagation()}else Sy(n,i,u,null,l)}}function By(n){return n=Ud(n),jy(n)}var Jc=null;function jy(n){if(Jc=null,n=wi(n),n!==null){var i=o(n);if(i===null)n=null;else{var l=i.tag;if(l===13){if(n=c(i),n!==null)return n;n=null}else if(l===31){if(n=f(i),n!==null)return n;n=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return Jc=n,null}function Hb(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(_e()){case ge:return 2;case pe:return 8;case we:case Ve:return 32;case We:return 268435456;default:return 32}default:return 32}}var Uy=!1,Zi=null,Gi=null,Qi=null,Po=new Map,$o=new Map,Xi=[],lk="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 qb(n,i){switch(n){case"focusin":case"focusout":Zi=null;break;case"dragenter":case"dragleave":Gi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":Po.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":$o.delete(i.pointerId)}}function Fo(n,i,l,u,h,m){return n===null||n.nativeEvent!==m?(n={blockedOn:i,domEventName:l,eventSystemFlags:u,nativeEvent:m,targetContainers:[h]},i!==null&&(i=Ei(i),i!==null&&jb(i)),n):(n.eventSystemFlags|=u,i=n.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),n)}function ok(n,i,l,u,h){switch(i){case"focusin":return Zi=Fo(Zi,n,i,l,u,h),!0;case"dragenter":return Gi=Fo(Gi,n,i,l,u,h),!0;case"mouseover":return Qi=Fo(Qi,n,i,l,u,h),!0;case"pointerover":var m=h.pointerId;return Po.set(m,Fo(Po.get(m)||null,n,i,l,u,h)),!0;case"gotpointercapture":return m=h.pointerId,$o.set(m,Fo($o.get(m)||null,n,i,l,u,h)),!0}return!1}function Vb(n){var i=wi(n.target);if(i!==null){var l=o(i);if(l!==null){if(i=l.tag,i===13){if(i=c(l),i!==null){n.blockedOn=i,qu(n.priority,function(){Ub(l)});return}}else if(i===31){if(i=f(l),i!==null){n.blockedOn=i,qu(n.priority,function(){Ub(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Wc(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var l=By(n.nativeEvent);if(l===null){l=n.nativeEvent;var u=new l.constructor(l.type,l);jd=u,l.target.dispatchEvent(u),jd=null}else return i=Ei(l),i!==null&&jb(i),n.blockedOn=l,!1;i.shift()}return!0}function Ib(n,i,l){Wc(n)&&l.delete(i)}function uk(){Uy=!1,Zi!==null&&Wc(Zi)&&(Zi=null),Gi!==null&&Wc(Gi)&&(Gi=null),Qi!==null&&Wc(Qi)&&(Qi=null),Po.forEach(Ib),$o.forEach(Ib)}function ef(n,i){n.blockedOn===i&&(n.blockedOn=null,Uy||(Uy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,uk)))}var tf=null;function Pb(n){tf!==n&&(tf=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){tf===n&&(tf=null);for(var i=0;i<n.length;i+=3){var l=n[i],u=n[i+1],h=n[i+2];if(typeof u!="function"){if(jy(u||l)===null)continue;break}var m=Ei(l);m!==null&&(n.splice(i,3),i-=3,Bh(m,{pending:!0,data:h,method:l.method,action:u},u,h))}}))}function al(n){function i(H){return ef(H,n)}Zi!==null&&ef(Zi,n),Gi!==null&&ef(Gi,n),Qi!==null&&ef(Qi,n),Po.forEach(i),$o.forEach(i);for(var l=0;l<Xi.length;l++){var u=Xi[l];u.blockedOn===n&&(u.blockedOn=null)}for(;0<Xi.length&&(l=Xi[0],l.blockedOn===null);)Vb(l),l.blockedOn===null&&Xi.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var h=l[u],m=l[u+1],x=h[fn]||null;if(typeof m=="function")x||Pb(l);else if(x){var A=null;if(m&&m.hasAttribute("formAction")){if(h=m,x=m[fn]||null)A=x.formAction;else if(jy(h)!==null)continue}else A=x.action;typeof A=="function"?l[u+1]=A:(l.splice(u,3),u-=3),Pb(l)}}}function $b(){function n(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(x){return h=x})},focusReset:"manual",scroll:"manual"})}function i(){h!==null&&(h(),h=null),u||setTimeout(l,20)}function l(){if(!u&&!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 u=!1,h=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),h!==null&&(h(),h=null)}}}function Hy(n){this._internalRoot=n}nf.prototype.render=Hy.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(a(409));var l=i.current,u=Vn();Lb(l,u,n,i,null,null)},nf.prototype.unmount=Hy.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Lb(n.current,2,null,n,null,null),Bc(),i[Pr]=null}};function nf(n){this._internalRoot=n}nf.prototype.unstable_scheduleHydration=function(n){if(n){var i=Hu();n={blockedOn:null,target:n,priority:i};for(var l=0;l<Xi.length&&i!==0&&i<Xi[l].priority;l++);Xi.splice(l,0,n),l===0&&Vb(n)}};var Fb=t.version;if(Fb!=="19.2.4")throw Error(a(527,Fb,"19.2.4"));F.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=y(i),n=n!==null?p(n):null,n=n===null?null:n.stateNode,n};var ck={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rf.isDisabled&&rf.supportsFiber)try{Rt=rf.inject(ck),an=rf}catch{}}return Zo.createRoot=function(n,i){if(!s(n))throw Error(a(299));var l=!1,u="",h=J1,m=W1,x=ev;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(m=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError)),i=zb(n,1,!1,null,null,l,u,null,h,m,x,$b),n[Pr]=i.current,_y(n),new Hy(i)},Zo.hydrateRoot=function(n,i,l){if(!s(n))throw Error(a(299));var u=!1,h="",m=J1,x=W1,A=ev,H=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onUncaughtError!==void 0&&(m=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(A=l.onRecoverableError),l.formState!==void 0&&(H=l.formState)),i=zb(n,1,!0,i,l??null,u,h,H,m,x,A,$b),i.context=Db(null),l=i.current,u=Vn(),u=Wl(u),h=Li(u),h.callback=null,Bi(l,h,u),l=u,i.current.lanes=l,Ea(i,l),Tr(i),n[Pr]=i.current,_y(n),new nf(i)},Zo.version="19.2.4",Zo}var n2;function Ek(){if(n2)return Yy.exports;n2=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(),Yy.exports=wk(),Yy.exports}var Mk=Ek();const A7=Er(Mk);var $l=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xa,oa,vl,Lx,Ck=(Lx=class extends $l{constructor(){super();Le(this,Xa);Le(this,oa);Le(this,vl);Se(this,vl,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){V(this,oa)||this.setEventListener(V(this,vl))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,oa))==null||t.call(this),Se(this,oa,void 0))}setEventListener(t){var r;Se(this,vl,t),(r=V(this,oa))==null||r.call(this),Se(this,oa,t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(t){V(this,Xa)!==t&&(Se(this,Xa,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof V(this,Xa)=="boolean"?V(this,Xa):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Xa=new WeakMap,oa=new WeakMap,vl=new WeakMap,Lx),Sp=new Ck,kk={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ua,_p,Bx,Ak=(Bx=class{constructor(){Le(this,ua,kk);Le(this,_p,!1)}setTimeoutProvider(e){Se(this,ua,e)}setTimeout(e,t){return V(this,ua).setTimeout(e,t)}clearTimeout(e){V(this,ua).clearTimeout(e)}setInterval(e,t){return V(this,ua).setInterval(e,t)}clearInterval(e){V(this,ua).clearInterval(e)}},ua=new WeakMap,_p=new WeakMap,Bx),Ga=new Ak;function Tk(e){setTimeout(e,0)}var Rk=typeof window>"u"||"Deno"in globalThis;function vn(){}function Nk(e,t){return typeof e=="function"?e(t):e}function Mg(e){return typeof e=="number"&&e>=0&&e!==1/0}function Xx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pa(e,t){return typeof e=="function"?e(t):e}function sr(e,t){return typeof e=="function"?e(t):e}function r2(e,t){const{type:r="all",exact:a,fetchStatus:s,predicate:o,queryKey:c,stale:f}=e;if(c){if(a){if(t.queryHash!==xp(c,t.options))return!1}else if(!iu(t.queryKey,c))return!1}if(r!=="all"){const d=t.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||s&&s!==t.state.fetchStatus||o&&!o(t))}function i2(e,t){const{exact:r,status:a,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(os(t.options.mutationKey)!==os(o))return!1}else if(!iu(t.options.mutationKey,o))return!1}return!(a&&t.state.status!==a||s&&!s(t))}function xp(e,t){return((t==null?void 0:t.queryKeyHashFn)||os)(e)}function os(e){return JSON.stringify(e,(t,r)=>Cg(r)?Object.keys(r).sort().reduce((a,s)=>(a[s]=r[s],a),{}):r)}function iu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>iu(e[r],t[r])):!1}var Ok=Object.prototype.hasOwnProperty;function wp(e,t,r=0){if(e===t)return e;if(r>500)return t;const a=a2(e)&&a2(t);if(!a&&!(Cg(e)&&Cg(t)))return t;const o=(a?e:Object.keys(e)).length,c=a?t:Object.keys(t),f=c.length,d=a?new Array(f):{};let y=0;for(let p=0;p<f;p++){const g=a?p:c[p],v=e[g],b=t[g];if(v===b){d[g]=v,(a?p<o:Ok.call(e,g))&&y++;continue}if(v===null||b===null||typeof v!="object"||typeof b!="object"){d[g]=b;continue}const S=wp(v,b,r+1);d[g]=S,S===v&&y++}return o===f&&y===o?e:d}function kf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function a2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Cg(e){if(!s2(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!s2(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function s2(e){return Object.prototype.toString.call(e)==="[object Object]"}function zk(e){return new Promise(t=>{Ga.setTimeout(t,e)})}function kg(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?wp(e,t):t}function Dk(e,t,r=0){const a=[...e,t];return r&&a.length>r?a.slice(1):a}function Lk(e,t,r=0){const a=[t,...e];return r&&a.length>r?a.slice(0,-1):a}var Ep=Symbol();function Kx(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ep?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Mp(e,t){return typeof e=="function"?e(...t):!!e}function Bk(e,t,r){let a=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),a||(a=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e}var au=(()=>{let e=()=>Rk;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ag(){let e,t;const r=new Promise((s,o)=>{e=s,t=o});r.status="pending",r.catch(()=>{});function a(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{a({status:"fulfilled",value:s}),e(s)},r.reject=s=>{a({status:"rejected",reason:s}),t(s)},r}var jk=Tk;function Uk(){let e=[],t=0,r=f=>{f()},a=f=>{f()},s=jk;const o=f=>{t?e.push(f):s(()=>{r(f)})},c=()=>{const f=e;e=[],f.length&&s(()=>{a(()=>{f.forEach(d=>{r(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||c()}return d},batchCalls:f=>(...d)=>{o(()=>{f(...d)})},schedule:o,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{a=f},setScheduler:f=>{s=f}}}var Ut=Uk(),bl,ca,_l,jx,Hk=(jx=class extends $l{constructor(){super();Le(this,bl,!0);Le(this,ca);Le(this,_l);Se(this,_l,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t(!0),a=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",a)}}})}onSubscribe(){V(this,ca)||this.setEventListener(V(this,_l))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,ca))==null||t.call(this),Se(this,ca,void 0))}setEventListener(t){var r;Se(this,_l,t),(r=V(this,ca))==null||r.call(this),Se(this,ca,t(this.setOnline.bind(this)))}setOnline(t){V(this,bl)!==t&&(Se(this,bl,t),this.listeners.forEach(a=>{a(t)}))}isOnline(){return V(this,bl)}},bl=new WeakMap,ca=new WeakMap,_l=new WeakMap,jx),Af=new Hk;function qk(e){return Math.min(1e3*2**e,3e4)}function Jx(e){return(e??"online")==="online"?Af.isOnline():!0}var Tg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Wx(e){let t=!1,r=0,a;const s=Ag(),o=()=>s.status!=="pending",c=_=>{var w;if(!o()){const M=new Tg(_);v(M),(w=e.onCancel)==null||w.call(e,M)}},f=()=>{t=!0},d=()=>{t=!1},y=()=>Sp.isFocused()&&(e.networkMode==="always"||Af.isOnline())&&e.canRun(),p=()=>Jx(e.networkMode)&&e.canRun(),g=_=>{o()||(a==null||a(),s.resolve(_))},v=_=>{o()||(a==null||a(),s.reject(_))},b=()=>new Promise(_=>{var w;a=M=>{(o()||y())&&_(M)},(w=e.onPause)==null||w.call(e)}).then(()=>{var _;a=void 0,o()||(_=e.onContinue)==null||_.call(e)}),S=()=>{if(o())return;let _;const w=r===0?e.initialPromise:void 0;try{_=w??e.fn()}catch(M){_=Promise.reject(M)}Promise.resolve(_).then(g).catch(M=>{var N;if(o())return;const C=e.retry??(au.isServer()?0:3),E=e.retryDelay??qk,k=typeof E=="function"?E(r,M):E,z=C===!0||typeof C=="number"&&r<C||typeof C=="function"&&C(r,M);if(t||!z){v(M);return}r++,(N=e.onFail)==null||N.call(e,r,M),zk(k).then(()=>y()?void 0:b()).then(()=>{t?v(M):S()})})};return{promise:s,status:()=>s.status,cancel:c,continue:()=>(a==null||a(),s),cancelRetry:f,continueRetry:d,canStart:p,start:()=>(p()?S():b().then(S),s)}}var Ka,Ux,ew=(Ux=class{constructor(){Le(this,Ka)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mg(this.gcTime)&&Se(this,Ka,Ga.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(au.isServer()?1/0:300*1e3))}clearGcTimeout(){V(this,Ka)&&(Ga.clearTimeout(V(this,Ka)),Se(this,Ka,void 0))}},Ka=new WeakMap,Ux),Ja,Sl,ar,Wa,tn,_u,es,In,tw,ci,Hx,Vk=(Hx=class extends ew{constructor(t){super();Le(this,In);Le(this,Ja);Le(this,Sl);Le(this,ar);Le(this,Wa);Le(this,tn);Le(this,_u);Le(this,es);Se(this,es,!1),Se(this,_u,t.defaultOptions),this.setOptions(t.options),this.observers=[],Se(this,Wa,t.client),Se(this,ar,V(this,Wa).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Se(this,Ja,o2(this.options)),this.state=t.state??V(this,Ja),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=V(this,tn))==null?void 0:t.promise}setOptions(t){if(this.options={...V(this,_u),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=o2(this.options);r.data!==void 0&&(this.setState(l2(r.data,r.dataUpdatedAt)),Se(this,Ja,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&V(this,ar).remove(this)}setData(t,r){const a=kg(this.state.data,t,this.options);return Ze(this,In,ci).call(this,{data:a,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),a}setState(t,r){Ze(this,In,ci).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var a,s;const r=(a=V(this,tn))==null?void 0:a.promise;return(s=V(this,tn))==null||s.cancel(t),r?r.then(vn).catch(vn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return V(this,Ja)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>sr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ep||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>pa(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Xx(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(a=>a.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=V(this,tn))==null||r.continue()}onOnline(){var r;const t=this.observers.find(a=>a.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=V(this,tn))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),V(this,ar).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(V(this,tn)&&(V(this,es)||Ze(this,In,tw).call(this)?V(this,tn).cancel({revert:!0}):V(this,tn).cancelRetry()),this.scheduleGc()),V(this,ar).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ze(this,In,ci).call(this,{type:"invalidate"})}async fetch(t,r){var d,y,p,g,v,b,S,_,w,M,C,E;if(this.state.fetchStatus!=="idle"&&((d=V(this,tn))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(V(this,tn))return V(this,tn).continueRetry(),V(this,tn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const k=this.observers.find(z=>z.options.queryFn);k&&this.setOptions(k.options)}const a=new AbortController,s=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(Se(this,es,!0),a.signal)})},o=()=>{const k=Kx(this.options,r),N=(()=>{const D={client:V(this,Wa),queryKey:this.queryKey,meta:this.meta};return s(D),D})();return Se(this,es,!1),this.options.persister?this.options.persister(k,N,this):k(N)},f=(()=>{const k={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:V(this,Wa),state:this.state,fetchFn:o};return s(k),k})();(y=this.options.behavior)==null||y.onFetch(f,this),Se(this,Sl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=f.fetchOptions)==null?void 0:p.meta))&&Ze(this,In,ci).call(this,{type:"fetch",meta:(g=f.fetchOptions)==null?void 0:g.meta}),Se(this,tn,Wx({initialPromise:r==null?void 0:r.initialPromise,fn:f.fetchFn,onCancel:k=>{k instanceof Tg&&k.revert&&this.setState({...V(this,Sl),fetchStatus:"idle"}),a.abort()},onFail:(k,z)=>{Ze(this,In,ci).call(this,{type:"failed",failureCount:k,error:z})},onPause:()=>{Ze(this,In,ci).call(this,{type:"pause"})},onContinue:()=>{Ze(this,In,ci).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const k=await V(this,tn).start();if(k===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(k),(b=(v=V(this,ar).config).onSuccess)==null||b.call(v,k,this),(_=(S=V(this,ar).config).onSettled)==null||_.call(S,k,this.state.error,this),k}catch(k){if(k instanceof Tg){if(k.silent)return V(this,tn).promise;if(k.revert){if(this.state.data===void 0)throw k;return this.state.data}}throw Ze(this,In,ci).call(this,{type:"error",error:k}),(M=(w=V(this,ar).config).onError)==null||M.call(w,k,this),(E=(C=V(this,ar).config).onSettled)==null||E.call(C,this.state.data,k,this),k}finally{this.scheduleGc()}}},Ja=new WeakMap,Sl=new WeakMap,ar=new WeakMap,Wa=new WeakMap,tn=new WeakMap,_u=new WeakMap,es=new WeakMap,In=new WeakSet,tw=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ci=function(t){const r=a=>{switch(t.type){case"failed":return{...a,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...nw(a.data,this.options),fetchMeta:t.meta??null};case"success":const s={...a,...l2(t.data,t.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Se(this,Sl,t.manual?s:void 0),s;case"error":const o=t.error;return{...a,error:o,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...t.state}}};this.state=r(this.state),Ut.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),V(this,ar).notify({query:this,type:"updated",action:t})})},Hx);function nw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Jx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function l2(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function o2(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,a=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Nn,rt,Su,gn,ts,xl,di,fa,xu,wl,El,ns,rs,da,Ml,ft,Jo,Rg,Ng,Og,zg,Dg,Lg,Bg,iw,qx,rw=(qx=class extends $l{constructor(t,r){super();Le(this,ft);Le(this,Nn);Le(this,rt);Le(this,Su);Le(this,gn);Le(this,ts);Le(this,xl);Le(this,di);Le(this,fa);Le(this,xu);Le(this,wl);Le(this,El);Le(this,ns);Le(this,rs);Le(this,da);Le(this,Ml,new Set);this.options=r,Se(this,Nn,t),Se(this,fa,null),Se(this,di,Ag()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(V(this,rt).addObserver(this),u2(V(this,rt),this.options)?Ze(this,ft,Jo).call(this):this.updateResult(),Ze(this,ft,zg).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return jg(V(this,rt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return jg(V(this,rt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ze(this,ft,Dg).call(this),Ze(this,ft,Lg).call(this),V(this,rt).removeObserver(this)}setOptions(t){const r=this.options,a=V(this,rt);if(this.options=V(this,Nn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sr(this.options.enabled,V(this,rt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ze(this,ft,Bg).call(this),V(this,rt).setOptions(this.options),r._defaulted&&!kf(this.options,r)&&V(this,Nn).getQueryCache().notify({type:"observerOptionsUpdated",query:V(this,rt),observer:this});const s=this.hasListeners();s&&c2(V(this,rt),a,this.options,r)&&Ze(this,ft,Jo).call(this),this.updateResult(),s&&(V(this,rt)!==a||sr(this.options.enabled,V(this,rt))!==sr(r.enabled,V(this,rt))||pa(this.options.staleTime,V(this,rt))!==pa(r.staleTime,V(this,rt)))&&Ze(this,ft,Rg).call(this);const o=Ze(this,ft,Ng).call(this);s&&(V(this,rt)!==a||sr(this.options.enabled,V(this,rt))!==sr(r.enabled,V(this,rt))||o!==V(this,da))&&Ze(this,ft,Og).call(this,o)}getOptimisticResult(t){const r=V(this,Nn).getQueryCache().build(V(this,Nn),t),a=this.createResult(r,t);return Pk(this,a)&&(Se(this,gn,a),Se(this,xl,this.options),Se(this,ts,V(this,rt).state)),a}getCurrentResult(){return V(this,gn)}trackResult(t,r){return new Proxy(t,{get:(a,s)=>(this.trackProp(s),r==null||r(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&V(this,di).status==="pending"&&V(this,di).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,s))})}trackProp(t){V(this,Ml).add(t)}getCurrentQuery(){return V(this,rt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=V(this,Nn).defaultQueryOptions(t),a=V(this,Nn).getQueryCache().build(V(this,Nn),r);return a.fetch().then(()=>this.createResult(a,r))}fetch(t){return Ze(this,ft,Jo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),V(this,gn)))}createResult(t,r){var L;const a=V(this,rt),s=this.options,o=V(this,gn),c=V(this,ts),f=V(this,xl),y=t!==a?t.state:V(this,Su),{state:p}=t;let g={...p},v=!1,b;if(r._optimisticResults){const Q=this.hasListeners(),j=!Q&&u2(t,r),B=Q&&c2(t,a,r,s);(j||B)&&(g={...g,...nw(p.data,t.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:S,errorUpdatedAt:_,status:w}=g;b=g.data;let M=!1;if(r.placeholderData!==void 0&&b===void 0&&w==="pending"){let Q;o!=null&&o.isPlaceholderData&&r.placeholderData===(f==null?void 0:f.placeholderData)?(Q=o.data,M=!0):Q=typeof r.placeholderData=="function"?r.placeholderData((L=V(this,El))==null?void 0:L.state.data,V(this,El)):r.placeholderData,Q!==void 0&&(w="success",b=kg(o==null?void 0:o.data,Q,r),v=!0)}if(r.select&&b!==void 0&&!M)if(o&&b===(c==null?void 0:c.data)&&r.select===V(this,xu))b=V(this,wl);else try{Se(this,xu,r.select),b=r.select(b),b=kg(o==null?void 0:o.data,b,r),Se(this,wl,b),Se(this,fa,null)}catch(Q){Se(this,fa,Q)}V(this,fa)&&(S=V(this,fa),b=V(this,wl),_=Date.now(),w="error");const C=g.fetchStatus==="fetching",E=w==="pending",k=w==="error",z=E&&C,N=b!==void 0,T={status:w,fetchStatus:g.fetchStatus,isPending:E,isSuccess:w==="success",isError:k,isInitialLoading:z,isLoading:z,data:b,dataUpdatedAt:g.dataUpdatedAt,error:S,errorUpdatedAt:_,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:g.dataUpdateCount>y.dataUpdateCount||g.errorUpdateCount>y.errorUpdateCount,isFetching:C,isRefetching:C&&!E,isLoadingError:k&&!N,isPaused:g.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:k&&N,isStale:Cp(t,r),refetch:this.refetch,promise:V(this,di),isEnabled:sr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const Q=T.data!==void 0,j=T.status==="error"&&!Q,B=re=>{j?re.reject(T.error):Q&&re.resolve(T.data)},$=()=>{const re=Se(this,di,T.promise=Ag());B(re)},G=V(this,di);switch(G.status){case"pending":t.queryHash===a.queryHash&&B(G);break;case"fulfilled":(j||T.data!==G.value)&&$();break;case"rejected":(!j||T.error!==G.reason)&&$();break}}return T}updateResult(){const t=V(this,gn),r=this.createResult(V(this,rt),this.options);if(Se(this,ts,V(this,rt).state),Se(this,xl,this.options),V(this,ts).data!==void 0&&Se(this,El,V(this,rt)),kf(r,t))return;Se(this,gn,r);const a=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!V(this,Ml).size)return!0;const c=new Set(o??V(this,Ml));return this.options.throwOnError&&c.add("error"),Object.keys(V(this,gn)).some(f=>{const d=f;return V(this,gn)[d]!==t[d]&&c.has(d)})};Ze(this,ft,iw).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ze(this,ft,zg).call(this)}},Nn=new WeakMap,rt=new WeakMap,Su=new WeakMap,gn=new WeakMap,ts=new WeakMap,xl=new WeakMap,di=new WeakMap,fa=new WeakMap,xu=new WeakMap,wl=new WeakMap,El=new WeakMap,ns=new WeakMap,rs=new WeakMap,da=new WeakMap,Ml=new WeakMap,ft=new WeakSet,Jo=function(t){Ze(this,ft,Bg).call(this);let r=V(this,rt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(vn)),r},Rg=function(){Ze(this,ft,Dg).call(this);const t=pa(this.options.staleTime,V(this,rt));if(au.isServer()||V(this,gn).isStale||!Mg(t))return;const a=Xx(V(this,gn).dataUpdatedAt,t)+1;Se(this,ns,Ga.setTimeout(()=>{V(this,gn).isStale||this.updateResult()},a))},Ng=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(V(this,rt)):this.options.refetchInterval)??!1},Og=function(t){Ze(this,ft,Lg).call(this),Se(this,da,t),!(au.isServer()||sr(this.options.enabled,V(this,rt))===!1||!Mg(V(this,da))||V(this,da)===0)&&Se(this,rs,Ga.setInterval(()=>{(this.options.refetchIntervalInBackground||Sp.isFocused())&&Ze(this,ft,Jo).call(this)},V(this,da)))},zg=function(){Ze(this,ft,Rg).call(this),Ze(this,ft,Og).call(this,Ze(this,ft,Ng).call(this))},Dg=function(){V(this,ns)&&(Ga.clearTimeout(V(this,ns)),Se(this,ns,void 0))},Lg=function(){V(this,rs)&&(Ga.clearInterval(V(this,rs)),Se(this,rs,void 0))},Bg=function(){const t=V(this,Nn).getQueryCache().build(V(this,Nn),this.options);if(t===V(this,rt))return;const r=V(this,rt);Se(this,rt,t),Se(this,Su,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},iw=function(t){Ut.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(V(this,gn))}),V(this,Nn).getQueryCache().notify({query:V(this,rt),type:"observerResultsUpdated"})})},qx);function Ik(e,t){return sr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function u2(e,t){return Ik(e,t)||e.state.data!==void 0&&jg(e,t,t.refetchOnMount)}function jg(e,t,r){if(sr(t.enabled,e)!==!1&&pa(t.staleTime,e)!=="static"){const a=typeof r=="function"?r(e):r;return a==="always"||a!==!1&&Cp(e,t)}return!1}function c2(e,t,r,a){return(e!==t||sr(a.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Cp(e,r)}function Cp(e,t){return sr(t.enabled,e)!==!1&&e.isStaleByTime(pa(t.staleTime,e))}function Pk(e,t){return!kf(e.getCurrentResult(),t)}function Tf(e){return{onFetch:(t,r)=>{var p,g,v,b,S;const a=t.options,s=(v=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:v.direction,o=((b=t.state.data)==null?void 0:b.pages)||[],c=((S=t.state.data)==null?void 0:S.pageParams)||[];let f={pages:[],pageParams:[]},d=0;const y=async()=>{let _=!1;const w=E=>{Bk(E,()=>t.signal,()=>_=!0)},M=Kx(t.options,t.fetchOptions),C=async(E,k,z)=>{if(_)return Promise.reject();if(k==null&&E.pages.length)return Promise.resolve(E);const D=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:k,direction:z?"backward":"forward",meta:t.options.meta};return w(j),j})(),T=await M(D),{maxPages:L}=t.options,Q=z?Lk:Dk;return{pages:Q(E.pages,T,L),pageParams:Q(E.pageParams,k,L)}};if(s&&o.length){const E=s==="backward",k=E?aw:Ug,z={pages:o,pageParams:c},N=k(a,z);f=await C(z,N,E)}else{const E=e??o.length;do{const k=d===0?c[0]??a.initialPageParam:Ug(a,f);if(d>0&&k==null)break;f=await C(f,k),d++}while(d<E)}return f};t.options.persister?t.fetchFn=()=>{var _,w;return(w=(_=t.options).persister)==null?void 0:w.call(_,y,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=y}}}function Ug(e,{pages:t,pageParams:r}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,r[a],r):void 0}function aw(e,{pages:t,pageParams:r}){var a;return t.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,t[0],t,r[0],r):void 0}function $k(e,t){return t?Ug(e,t)!=null:!1}function Fk(e,t){return!t||!e.getPreviousPageParam?!1:aw(e,t)!=null}var Yk=class extends rw{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Tf()})}getOptimisticResult(e){return e.behavior=Tf(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var S,_;const{state:r}=e,a=super.createResult(e,t),{isFetching:s,isRefetching:o,isError:c,isRefetchError:f}=a,d=(_=(S=r.fetchMeta)==null?void 0:S.fetchMore)==null?void 0:_.direction,y=c&&d==="forward",p=s&&d==="forward",g=c&&d==="backward",v=s&&d==="backward";return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:$k(t,r.data),hasPreviousPage:Fk(t,r.data),isFetchNextPageError:y,isFetchingNextPage:p,isFetchPreviousPageError:g,isFetchingPreviousPage:v,isRefetchError:f&&!y&&!g,isRefetching:o&&!p&&!v}}},wu,Or,hn,is,zr,ra,Vx,Zk=(Vx=class extends ew{constructor(t){super();Le(this,zr);Le(this,wu);Le(this,Or);Le(this,hn);Le(this,is);Se(this,wu,t.client),this.mutationId=t.mutationId,Se(this,hn,t.mutationCache),Se(this,Or,[]),this.state=t.state||sw(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){V(this,Or).includes(t)||(V(this,Or).push(t),this.clearGcTimeout(),V(this,hn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Se(this,Or,V(this,Or).filter(r=>r!==t)),this.scheduleGc(),V(this,hn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){V(this,Or).length||(this.state.status==="pending"?this.scheduleGc():V(this,hn).remove(this))}continue(){var t;return((t=V(this,is))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var c,f,d,y,p,g,v,b,S,_,w,M,C,E,k,z,N,D;const r=()=>{Ze(this,zr,ra).call(this,{type:"continue"})},a={client:V(this,wu),meta:this.options.meta,mutationKey:this.options.mutationKey};Se(this,is,Wx({fn:()=>this.options.mutationFn?this.options.mutationFn(t,a):Promise.reject(new Error("No mutationFn found")),onFail:(T,L)=>{Ze(this,zr,ra).call(this,{type:"failed",failureCount:T,error:L})},onPause:()=>{Ze(this,zr,ra).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,hn).canRun(this)}));const s=this.state.status==="pending",o=!V(this,is).canStart();try{if(s)r();else{Ze(this,zr,ra).call(this,{type:"pending",variables:t,isPaused:o}),V(this,hn).config.onMutate&&await V(this,hn).config.onMutate(t,this,a);const L=await((f=(c=this.options).onMutate)==null?void 0:f.call(c,t,a));L!==this.state.context&&Ze(this,zr,ra).call(this,{type:"pending",context:L,variables:t,isPaused:o})}const T=await V(this,is).start();return await((y=(d=V(this,hn).config).onSuccess)==null?void 0:y.call(d,T,t,this.state.context,this,a)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,T,t,this.state.context,a)),await((b=(v=V(this,hn).config).onSettled)==null?void 0:b.call(v,T,null,this.state.variables,this.state.context,this,a)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,T,null,t,this.state.context,a)),Ze(this,zr,ra).call(this,{type:"success",data:T}),T}catch(T){try{await((M=(w=V(this,hn).config).onError)==null?void 0:M.call(w,T,t,this.state.context,this,a))}catch(L){Promise.reject(L)}try{await((E=(C=this.options).onError)==null?void 0:E.call(C,T,t,this.state.context,a))}catch(L){Promise.reject(L)}try{await((z=(k=V(this,hn).config).onSettled)==null?void 0:z.call(k,void 0,T,this.state.variables,this.state.context,this,a))}catch(L){Promise.reject(L)}try{await((D=(N=this.options).onSettled)==null?void 0:D.call(N,void 0,T,t,this.state.context,a))}catch(L){Promise.reject(L)}throw Ze(this,zr,ra).call(this,{type:"error",error:T}),T}finally{V(this,hn).runNext(this)}}},wu=new WeakMap,Or=new WeakMap,hn=new WeakMap,is=new WeakMap,zr=new WeakSet,ra=function(t){const r=a=>{switch(t.type){case"failed":return{...a,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...a,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:t.error,failureCount:a.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ut.batch(()=>{V(this,Or).forEach(a=>{a.onMutationUpdate(t)}),V(this,hn).notify({mutation:this,type:"updated",action:t})})},Vx);function sw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hi,gr,Eu,Ix,Gk=(Ix=class extends $l{constructor(t={}){super();Le(this,hi);Le(this,gr);Le(this,Eu);this.config=t,Se(this,hi,new Set),Se(this,gr,new Map),Se(this,Eu,0)}build(t,r,a){const s=new Zk({client:t,mutationCache:this,mutationId:++af(this,Eu)._,options:t.defaultMutationOptions(r),state:a});return this.add(s),s}add(t){V(this,hi).add(t);const r=sf(t);if(typeof r=="string"){const a=V(this,gr).get(r);a?a.push(t):V(this,gr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(V(this,hi).delete(t)){const r=sf(t);if(typeof r=="string"){const a=V(this,gr).get(r);if(a)if(a.length>1){const s=a.indexOf(t);s!==-1&&a.splice(s,1)}else a[0]===t&&V(this,gr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=sf(t);if(typeof r=="string"){const a=V(this,gr).get(r),s=a==null?void 0:a.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var a;const r=sf(t);if(typeof r=="string"){const s=(a=V(this,gr).get(r))==null?void 0:a.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ut.batch(()=>{V(this,hi).forEach(t=>{this.notify({type:"removed",mutation:t})}),V(this,hi).clear(),V(this,gr).clear()})}getAll(){return Array.from(V(this,hi))}find(t){const r={exact:!0,...t};return this.getAll().find(a=>i2(r,a))}findAll(t={}){return this.getAll().filter(r=>i2(t,r))}notify(t){Ut.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Ut.batch(()=>Promise.all(t.map(r=>r.continue().catch(vn))))}},hi=new WeakMap,gr=new WeakMap,Eu=new WeakMap,Ix);function sf(e){var t;return(t=e.options.scope)==null?void 0:t.id}var yi,ha,On,mi,vi,xf,Hg,Px,Qk=(Px=class extends $l{constructor(r,a){super();Le(this,vi);Le(this,yi);Le(this,ha);Le(this,On);Le(this,mi);Se(this,yi,r),this.setOptions(a),this.bindMethods(),Ze(this,vi,xf).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const a=this.options;this.options=V(this,yi).defaultMutationOptions(r),kf(this.options,a)||V(this,yi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:V(this,On),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&os(a.mutationKey)!==os(this.options.mutationKey)?this.reset():((s=V(this,On))==null?void 0:s.state.status)==="pending"&&V(this,On).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=V(this,On))==null||r.removeObserver(this)}onMutationUpdate(r){Ze(this,vi,xf).call(this),Ze(this,vi,Hg).call(this,r)}getCurrentResult(){return V(this,ha)}reset(){var r;(r=V(this,On))==null||r.removeObserver(this),Se(this,On,void 0),Ze(this,vi,xf).call(this),Ze(this,vi,Hg).call(this)}mutate(r,a){var s;return Se(this,mi,a),(s=V(this,On))==null||s.removeObserver(this),Se(this,On,V(this,yi).getMutationCache().build(V(this,yi),this.options)),V(this,On).addObserver(this),V(this,On).execute(r)}},yi=new WeakMap,ha=new WeakMap,On=new WeakMap,mi=new WeakMap,vi=new WeakSet,xf=function(){var a;const r=((a=V(this,On))==null?void 0:a.state)??sw();Se(this,ha,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Hg=function(r){Ut.batch(()=>{var a,s,o,c,f,d,y,p;if(V(this,mi)&&this.hasListeners()){const g=V(this,ha).variables,v=V(this,ha).context,b={client:V(this,yi),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(s=(a=V(this,mi)).onSuccess)==null||s.call(a,r.data,g,v,b)}catch(S){Promise.reject(S)}try{(c=(o=V(this,mi)).onSettled)==null||c.call(o,r.data,null,g,v,b)}catch(S){Promise.reject(S)}}else if((r==null?void 0:r.type)==="error"){try{(d=(f=V(this,mi)).onError)==null||d.call(f,r.error,g,v,b)}catch(S){Promise.reject(S)}try{(p=(y=V(this,mi)).onSettled)==null||p.call(y,void 0,r.error,g,v,b)}catch(S){Promise.reject(S)}}}this.listeners.forEach(g=>{g(V(this,ha))})})},Px),Dr,$x,Xk=($x=class extends $l{constructor(t={}){super();Le(this,Dr);this.config=t,Se(this,Dr,new Map)}build(t,r,a){const s=r.queryKey,o=r.queryHash??xp(s,r);let c=this.get(o);return c||(c=new Vk({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(r),state:a,defaultOptions:t.getQueryDefaults(s)}),this.add(c)),c}add(t){V(this,Dr).has(t.queryHash)||(V(this,Dr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=V(this,Dr).get(t.queryHash);r&&(t.destroy(),r===t&&V(this,Dr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ut.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return V(this,Dr).get(t)}getAll(){return[...V(this,Dr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(a=>r2(r,a))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(a=>r2(t,a)):r}notify(t){Ut.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ut.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ut.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dr=new WeakMap,$x),zt,ya,ma,Cl,kl,ga,Al,Tl,Fx,R7=(Fx=class{constructor(e={}){Le(this,zt);Le(this,ya);Le(this,ma);Le(this,Cl);Le(this,kl);Le(this,ga);Le(this,Al);Le(this,Tl);Se(this,zt,e.queryCache||new Xk),Se(this,ya,e.mutationCache||new Gk),Se(this,ma,e.defaultOptions||{}),Se(this,Cl,new Map),Se(this,kl,new Map),Se(this,ga,0)}mount(){af(this,ga)._++,V(this,ga)===1&&(Se(this,Al,Sp.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,zt).onFocus())})),Se(this,Tl,Af.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,zt).onOnline())})))}unmount(){var e,t;af(this,ga)._--,V(this,ga)===0&&((e=V(this,Al))==null||e.call(this),Se(this,Al,void 0),(t=V(this,Tl))==null||t.call(this),Se(this,Tl,void 0))}isFetching(e){return V(this,zt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,ya).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=V(this,zt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=V(this,zt).build(this,t),a=r.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(pa(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return V(this,zt).findAll(e).map(({queryKey:t,state:r})=>{const a=r.data;return[t,a]})}setQueryData(e,t,r){const a=this.defaultQueryOptions({queryKey:e}),s=V(this,zt).get(a.queryHash),o=s==null?void 0:s.state.data,c=Nk(t,o);if(c!==void 0)return V(this,zt).build(this,a).setData(c,{...r,manual:!0})}setQueriesData(e,t,r){return Ut.batch(()=>V(this,zt).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=V(this,zt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=V(this,zt);Ut.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=V(this,zt);return Ut.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},a=Ut.batch(()=>V(this,zt).findAll(e).map(s=>s.cancel(r)));return Promise.all(a).then(vn).catch(vn)}invalidateQueries(e,t={}){return Ut.batch(()=>(V(this,zt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},a=Ut.batch(()=>V(this,zt).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,r);return r.throwOnError||(o=o.catch(vn)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(a).then(vn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=V(this,zt).build(this,t);return r.isStaleByTime(pa(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(vn).catch(vn)}fetchInfiniteQuery(e){return e.behavior=Tf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(vn).catch(vn)}ensureInfiniteQueryData(e){return e.behavior=Tf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Af.isOnline()?V(this,ya).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,zt)}getMutationCache(){return V(this,ya)}getDefaultOptions(){return V(this,ma)}setDefaultOptions(e){Se(this,ma,e)}setQueryDefaults(e,t){V(this,Cl).set(os(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,Cl).values()],r={};return t.forEach(a=>{iu(e,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(e,t){V(this,kl).set(os(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,kl).values()],r={};return t.forEach(a=>{iu(e,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,ma).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=xp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ep&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...V(this,ma).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,zt).clear(),V(this,ya).clear()}},zt=new WeakMap,ya=new WeakMap,ma=new WeakMap,Cl=new WeakMap,kl=new WeakMap,ga=new WeakMap,Al=new WeakMap,Tl=new WeakMap,Fx),lw=R.createContext(void 0),Mu=e=>{const t=R.useContext(lw);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},N7=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),se.jsx(lw.Provider,{value:e,children:t})),ow=R.createContext(!1),Kk=()=>R.useContext(ow);ow.Provider;function Jk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Wk=R.createContext(Jk()),e4=()=>R.useContext(Wk),t4=(e,t,r)=>{const a=r!=null&&r.state.error&&typeof e.throwOnError=="function"?Mp(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||a)&&(t.isReset()||(e.retryOnMount=!1))},n4=e=>{R.useEffect(()=>{e.clearReset()},[e])},r4=({result:e,errorResetBoundary:t,throwOnError:r,query:a,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(s&&e.data===void 0||Mp(r,[e.error,a])),i4=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...s)=>r(a(...s)):r(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},a4=(e,t)=>e.isLoading&&e.isFetching&&!t,s4=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,f2=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function uw(e,t,r){var v,b,S,_;const a=Kk(),s=e4(),o=Mu(r),c=o.defaultQueryOptions(e);(b=(v=o.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||b.call(v,c);const f=o.getQueryCache().get(c.queryHash);c._optimisticResults=a?"isRestoring":"optimistic",i4(c),t4(c,s,f),n4(s);const d=!o.getQueryCache().get(c.queryHash),[y]=R.useState(()=>new t(o,c)),p=y.getOptimisticResult(c),g=!a&&e.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(w=>{const M=g?y.subscribe(Ut.batchCalls(w)):vn;return y.updateResult(),M},[y,g]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),R.useEffect(()=>{y.setOptions(c)},[c,y]),s4(c,p))throw f2(c,y,s);if(r4({result:p,errorResetBoundary:s,throwOnError:c.throwOnError,query:f,suspense:c.suspense}))throw p.error;if((_=(S=o.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||_.call(S,c,p),c.experimental_prefetchInRender&&!au.isServer()&&a4(p,a)){const w=d?f2(c,y,s):f==null?void 0:f.promise;w==null||w.catch(vn).finally(()=>{y.updateResult()})}return c.notifyOnChangeProps?p:y.trackResult(p)}function O7(e,t){return uw(e,rw,t)}function z7(e,t){const r=Mu(t),a=r.getQueryCache();return R.useSyncExternalStore(R.useCallback(s=>a.subscribe(Ut.batchCalls(s)),[a]),()=>r.isFetching(e),()=>r.isFetching(e))}function D7(e,t){const r=Mu(t);return l4({filters:{...e,status:"pending"}},r).length}function d2(e,t){return e.findAll(t.filters).map(r=>t.select?t.select(r):r.state)}function l4(e={},t){const r=Mu(t).getMutationCache(),a=R.useRef(e),s=R.useRef(null);return s.current===null&&(s.current=d2(r,e)),R.useEffect(()=>{a.current=e}),R.useSyncExternalStore(R.useCallback(o=>r.subscribe(()=>{const c=wp(s.current,d2(r,a.current));s.current!==c&&(s.current=c,Ut.schedule(o))}),[r]),()=>s.current,()=>s.current)}function L7(e,t){const r=Mu(t),[a]=R.useState(()=>new Qk(r,e));R.useEffect(()=>{a.setOptions(e)},[a,e]);const s=R.useSyncExternalStore(R.useCallback(c=>a.subscribe(Ut.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),o=R.useCallback((c,f)=>{a.mutate(c,f).catch(vn)},[a]);if(s.error&&Mp(a.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}function B7(e,t){return uw(e,Yk,t)}/**
50
- * react-router v7.13.1
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var h2="popstate";function y2(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function o4(e={}){function t(a,s){var y;let o=(y=s.state)==null?void 0:y.masked,{pathname:c,search:f,hash:d}=o||a.location;return qg("",{pathname:c,search:f,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default",o?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function r(a,s){return typeof s=="string"?s:su(s)}return c4(t,r,null,e)}function Ct(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function lr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function u4(){return Math.random().toString(36).substring(2,10)}function m2(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function qg(e,t,r=null,a,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Fl(t):t,state:r,key:t&&t.key||a||u4(),unstable_mask:s}}function su({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Fl(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function c4(e,t,r,a={}){let{window:s=document.defaultView,v5Compat:o=!1}=a,c=s.history,f="POP",d=null,y=p();y==null&&(y=0,c.replaceState({...c.state,idx:y},""));function p(){return(c.state||{idx:null}).idx}function g(){f="POP";let w=p(),M=w==null?null:w-y;y=w,d&&d({action:f,location:_.location,delta:M})}function v(w,M){f="PUSH";let C=y2(w)?w:qg(_.location,w,M);y=p()+1;let E=m2(C,y),k=_.createHref(C.unstable_mask||C);try{c.pushState(E,"",k)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;s.location.assign(k)}o&&d&&d({action:f,location:_.location,delta:1})}function b(w,M){f="REPLACE";let C=y2(w)?w:qg(_.location,w,M);y=p();let E=m2(C,y),k=_.createHref(C.unstable_mask||C);c.replaceState(E,"",k),o&&d&&d({action:f,location:_.location,delta:0})}function S(w){return f4(w)}let _={get action(){return f},get location(){return e(s,c)},listen(w){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(h2,g),d=w,()=>{s.removeEventListener(h2,g),d=null}},createHref(w){return t(s,w)},createURL:S,encodeLocation(w){let M=S(w);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:v,replace:b,go(w){return c.go(w)}};return _}function f4(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ct(r,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:su(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function cw(e,t,r="/"){return d4(e,t,r,!1)}function d4(e,t,r,a){let s=typeof t=="string"?Fl(t):t,o=bi(s.pathname||"/",r);if(o==null)return null;let c=fw(e);h4(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let y=E4(o);f=x4(c[d],y,a)}return f}function fw(e,t=[],r=[],a="",s=!1){let o=(c,f,d=s,y)=>{let p={relativePath:y===void 0?c.path||"":y,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(a)&&d)return;Ct(p.relativePath.startsWith(a),`Absolute route path "${p.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(a.length)}let g=Br([a,p.relativePath]),v=r.concat(p);c.children&&c.children.length>0&&(Ct(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),fw(c.children,t,v,g,d)),!(c.path==null&&!c.index)&&t.push({path:g,score:_4(g,c.index),routesMeta:v})};return e.forEach((c,f)=>{var d;if(c.path===""||!((d=c.path)!=null&&d.includes("?")))o(c,f);else for(let y of dw(c.path))o(c,f,!0,y)}),t}function dw(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,s=r.endsWith("?"),o=r.replace(/\?$/,"");if(a.length===0)return s?[o,""]:[o];let c=dw(a.join("/")),f=[];return f.push(...c.map(d=>d===""?o:[o,d].join("/"))),s&&f.push(...c),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function h4(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:S4(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var y4=/^:[\w-]+$/,m4=3,g4=2,p4=1,v4=10,b4=-2,g2=e=>e==="*";function _4(e,t){let r=e.split("/"),a=r.length;return r.some(g2)&&(a+=b4),t&&(a+=g4),r.filter(s=>!g2(s)).reduce((s,o)=>s+(y4.test(o)?m4:o===""?p4:v4),a)}function S4(e,t){return e.length===t.length&&e.slice(0,-1).every((a,s)=>a===t[s])?e[e.length-1]-t[t.length-1]:0}function x4(e,t,r=!1){let{routesMeta:a}=e,s={},o="/",c=[];for(let f=0;f<a.length;++f){let d=a[f],y=f===a.length-1,p=o==="/"?t:t.slice(o.length)||"/",g=Rf({path:d.relativePath,caseSensitive:d.caseSensitive,end:y},p),v=d.route;if(!g&&y&&r&&!a[a.length-1].route.index&&(g=Rf({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},p)),!g)return null;Object.assign(s,g.params),c.push({params:s,pathname:Br([o,g.pathname]),pathnameBase:A4(Br([o,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(o=Br([o,g.pathnameBase]))}return c}function Rf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=w4(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let o=s[0],c=o.replace(/(.)\/+$/,"$1"),f=s.slice(1);return{params:a.reduce((y,{paramName:p,isOptional:g},v)=>{if(p==="*"){let S=f[v]||"";c=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const b=f[v];return g&&!b?y[p]=void 0:y[p]=(b||"").replace(/%2F/g,"/"),y},{}),pathname:o,pathnameBase:c,pattern:e}}function w4(e,t=!1,r=!0){lr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,d,y,p)=>{if(a.push({paramName:f,isOptional:d!=null}),d){let g=p.charAt(y+c.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),a]}function E4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return lr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function bi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}var M4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function C4(e,t="/"){let{pathname:r,search:a="",hash:s=""}=typeof e=="string"?Fl(e):e,o;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?o=p2(r.substring(1),"/"):o=p2(r,t)):o=t,{pathname:o,search:T4(a),hash:R4(s)}}function p2(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Xy(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function k4(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function kp(e){let t=k4(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function sd(e,t,r,a=!1){let s;typeof e=="string"?s=Fl(e):(s={...e},Ct(!s.pathname||!s.pathname.includes("?"),Xy("?","pathname","search",s)),Ct(!s.pathname||!s.pathname.includes("#"),Xy("#","pathname","hash",s)),Ct(!s.search||!s.search.includes("#"),Xy("#","search","hash",s)));let o=e===""||s.pathname==="",c=o?"/":s.pathname,f;if(c==null)f=r;else{let g=t.length-1;if(!a&&c.startsWith("..")){let v=c.split("/");for(;v[0]==="..";)v.shift(),g-=1;s.pathname=v.join("/")}f=g>=0?t[g]:"/"}let d=C4(s,f),y=c&&c!=="/"&&c.endsWith("/"),p=(o||c===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(y||p)&&(d.pathname+="/"),d}var Br=e=>e.join("/").replace(/\/\/+/g,"/"),A4=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),T4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,R4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,N4=class{constructor(e,t,r,a=!1){this.status=e,this.statusText=t||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function O4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function z4(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var hw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yw(e,t){let r=e;if(typeof r!="string"||!M4.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,s=!1;if(hw)try{let o=new URL(window.location.href),c=r.startsWith("//")?new URL(o.protocol+r):new URL(r),f=bi(c.pathname,t);c.origin===o.origin&&f!=null?r=f+c.search+c.hash:s=!0}catch{lr(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:s,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var mw=["POST","PUT","PATCH","DELETE"];new Set(mw);var D4=["GET",...mw];new Set(D4);var Yl=R.createContext(null);Yl.displayName="DataRouter";var ld=R.createContext(null);ld.displayName="DataRouterState";var L4=R.createContext(!1),gw=R.createContext({isTransitioning:!1});gw.displayName="ViewTransition";var B4=R.createContext(new Map);B4.displayName="Fetchers";var j4=R.createContext(null);j4.displayName="Await";var Gn=R.createContext(null);Gn.displayName="Navigation";var Cu=R.createContext(null);Cu.displayName="Location";var ur=R.createContext({outlet:null,matches:[],isDataRoute:!1});ur.displayName="Route";var Ap=R.createContext(null);Ap.displayName="RouteError";var pw="REACT_ROUTER_ERROR",U4="REDIRECT",H4="ROUTE_ERROR_RESPONSE";function q4(e){if(e.startsWith(`${pw}:${U4}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function V4(e){if(e.startsWith(`${pw}:${H4}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new N4(t.status,t.statusText,t.data)}catch{}}function I4(e,{relative:t}={}){Ct(Zl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=R.useContext(Gn),{hash:s,pathname:o,search:c}=ku(e,{relative:t}),f=o;return r!=="/"&&(f=o==="/"?r:Br([r,o])),a.createHref({pathname:f,search:c,hash:s})}function Zl(){return R.useContext(Cu)!=null}function qr(){return Ct(Zl(),"useLocation() may be used only in the context of a <Router> component."),R.useContext(Cu).location}var vw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bw(e){R.useContext(Gn).static||R.useLayoutEffect(e)}function Tp(){let{isDataRoute:e}=R.useContext(ur);return e?nA():P4()}function P4(){Ct(Zl(),"useNavigate() may be used only in the context of a <Router> component.");let e=R.useContext(Yl),{basename:t,navigator:r}=R.useContext(Gn),{matches:a}=R.useContext(ur),{pathname:s}=qr(),o=JSON.stringify(kp(a)),c=R.useRef(!1);return bw(()=>{c.current=!0}),R.useCallback((d,y={})=>{if(lr(c.current,vw),!c.current)return;if(typeof d=="number"){r.go(d);return}let p=sd(d,JSON.parse(o),s,y.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Br([t,p.pathname])),(y.replace?r.replace:r.push)(p,y.state,y)},[t,r,o,s,e])}var _w=R.createContext(null);function j7(){return R.useContext(_w)}function $4(e){let t=R.useContext(ur).outlet;return R.useMemo(()=>t&&R.createElement(_w.Provider,{value:e},t),[t,e])}function U7(){let{matches:e}=R.useContext(ur),t=e[e.length-1];return t?t.params:{}}function ku(e,{relative:t}={}){let{matches:r}=R.useContext(ur),{pathname:a}=qr(),s=JSON.stringify(kp(r));return R.useMemo(()=>sd(e,JSON.parse(s),a,t==="path"),[e,s,a,t])}function F4(e,t){return Sw(e,t)}function Sw(e,t,r){var w;Ct(Zl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=R.useContext(Gn),{matches:s}=R.useContext(ur),o=s[s.length-1],c=o?o.params:{},f=o?o.pathname:"/",d=o?o.pathnameBase:"/",y=o&&o.route;{let M=y&&y.path||"";ww(f,!y||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${M}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let p=qr(),g;if(t){let M=typeof t=="string"?Fl(t):t;Ct(d==="/"||((w=M.pathname)==null?void 0:w.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${M.pathname}" was given in the \`location\` prop.`),g=M}else g=p;let v=g.pathname||"/",b=v;if(d!=="/"){let M=d.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(M.length).join("/")}let S=cw(e,{pathname:b});lr(y||S!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),lr(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let _=X4(S&&S.map(M=>Object.assign({},M,{params:Object.assign({},c,M.params),pathname:Br([d,a.encodeLocation?a.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?d:Br([d,a.encodeLocation?a.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),s,r);return t&&_?R.createElement(Cu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},_):_}function Y4(){let e=tA(),t=O4(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=R.createElement(R.Fragment,null,R.createElement("p",null,"💿 Hey developer 👋"),R.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",R.createElement("code",{style:o},"ErrorBoundary")," or"," ",R.createElement("code",{style:o},"errorElement")," prop on your route.")),R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),r?R.createElement("pre",{style:s},r):null,c)}var Z4=R.createElement(Y4,null),xw=class extends R.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=V4(e.digest);r&&(e=r)}let t=e!==void 0?R.createElement(ur.Provider,{value:this.props.routeContext},R.createElement(Ap.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?R.createElement(G4,{error:e},t):t}};xw.contextType=L4;var Ky=new WeakMap;function G4({children:e,error:t}){let{basename:r}=R.useContext(Gn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=q4(t.digest);if(a){let s=Ky.get(t);if(s)throw s;let o=yw(a.location,r);if(hw&&!Ky.get(t))if(o.isExternal||a.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:a.replace}));throw Ky.set(t,c),c}return R.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Q4({routeContext:e,match:t,children:r}){let a=R.useContext(Yl);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),R.createElement(ur.Provider,{value:e},r)}function X4(e,t=[],r){let a=r==null?void 0:r.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let s=e,o=a==null?void 0:a.errors;if(o!=null){let p=s.findIndex(g=>g.route.id&&(o==null?void 0:o[g.route.id])!==void 0);Ct(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let c=!1,f=-1;if(r&&a){c=a.renderFallback;for(let p=0;p<s.length;p++){let g=s[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=p),g.route.id){let{loaderData:v,errors:b}=a,S=g.route.loader&&!v.hasOwnProperty(g.route.id)&&(!b||b[g.route.id]===void 0);if(g.route.lazy||S){r.isStatic&&(c=!0),f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}}let d=r==null?void 0:r.onError,y=a&&d?(p,g)=>{var v,b;d(p,{location:a.location,params:((b=(v=a.matches)==null?void 0:v[0])==null?void 0:b.params)??{},unstable_pattern:z4(a.matches),errorInfo:g})}:void 0;return s.reduceRight((p,g,v)=>{let b,S=!1,_=null,w=null;a&&(b=o&&g.route.id?o[g.route.id]:void 0,_=g.route.errorElement||Z4,c&&(f<0&&v===0?(ww("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,w=null):f===v&&(S=!0,w=g.route.hydrateFallbackElement||null)));let M=t.concat(s.slice(0,v+1)),C=()=>{let E;return b?E=_:S?E=w:g.route.Component?E=R.createElement(g.route.Component,null):g.route.element?E=g.route.element:E=p,R.createElement(Q4,{match:g,routeContext:{outlet:p,matches:M,isDataRoute:a!=null},children:E})};return a&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?R.createElement(xw,{location:a.location,revalidation:a.revalidation,component:_,error:b,children:C(),routeContext:{outlet:null,matches:M,isDataRoute:!0},onError:y}):C()},null)}function Rp(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function K4(e){let t=R.useContext(Yl);return Ct(t,Rp(e)),t}function J4(e){let t=R.useContext(ld);return Ct(t,Rp(e)),t}function W4(e){let t=R.useContext(ur);return Ct(t,Rp(e)),t}function Np(e){let t=W4(e),r=t.matches[t.matches.length-1];return Ct(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function eA(){return Np("useRouteId")}function tA(){var a;let e=R.useContext(Ap),t=J4("useRouteError"),r=Np("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[r]}function nA(){let{router:e}=K4("useNavigate"),t=Np("useNavigate"),r=R.useRef(!1);return bw(()=>{r.current=!0}),R.useCallback(async(s,o={})=>{lr(r.current,vw),r.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:t,...o}))},[e,t])}var v2={};function ww(e,t,r){!t&&!v2[e]&&(v2[e]=!0,lr(!1,r))}R.memo(rA);function rA({routes:e,future:t,state:r,isStatic:a,onError:s}){return Sw(e,void 0,{state:r,isStatic:a,onError:s})}function H7({to:e,replace:t,state:r,relative:a}){Ct(Zl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=R.useContext(Gn);lr(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=R.useContext(ur),{pathname:c}=qr(),f=Tp(),d=sd(e,kp(o),c,a==="path"),y=JSON.stringify(d);return R.useEffect(()=>{f(JSON.parse(y),{replace:t,state:r,relative:a})},[f,y,a,t,r]),null}function q7(e){return $4(e.context)}function iA(e){Ct(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function aA({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:s,static:o=!1,unstable_useTransitions:c}){Ct(!Zl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),d=R.useMemo(()=>({basename:f,navigator:s,static:o,unstable_useTransitions:c,future:{}}),[f,s,o,c]);typeof r=="string"&&(r=Fl(r));let{pathname:y="/",search:p="",hash:g="",state:v=null,key:b="default",unstable_mask:S}=r,_=R.useMemo(()=>{let w=bi(y,f);return w==null?null:{location:{pathname:w,search:p,hash:g,state:v,key:b,unstable_mask:S},navigationType:a}},[f,y,p,g,v,b,a,S]);return lr(_!=null,`<Router basename="${f}"> is not able to match the URL "${y}${p}${g}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:R.createElement(Gn.Provider,{value:d},R.createElement(Cu.Provider,{children:t,value:_}))}function V7({children:e,location:t}){return F4(Vg(e),t)}function Vg(e,t=[]){let r=[];return R.Children.forEach(e,(a,s)=>{if(!R.isValidElement(a))return;let o=[...t,s];if(a.type===R.Fragment){r.push.apply(r,Vg(a.props.children,o));return}Ct(a.type===iA,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ct(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||o.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=Vg(a.props.children,o)),r.push(c)}),r}var wf="get",Ef="application/x-www-form-urlencoded";function od(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function sA(e){return od(e)&&e.tagName.toLowerCase()==="button"}function lA(e){return od(e)&&e.tagName.toLowerCase()==="form"}function oA(e){return od(e)&&e.tagName.toLowerCase()==="input"}function uA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cA(e,t){return e.button===0&&(!t||t==="_self")&&!uA(e)}function Ig(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let a=e[r];return t.concat(Array.isArray(a)?a.map(s=>[r,s]):[[r,a]])},[]))}function fA(e,t){let r=Ig(e);return t&&t.forEach((a,s)=>{r.has(s)||t.getAll(s).forEach(o=>{r.append(s,o)})}),r}var lf=null;function dA(){if(lf===null)try{new FormData(document.createElement("form"),0),lf=!1}catch{lf=!0}return lf}var hA=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Jy(e){return e!=null&&!hA.has(e)?(lr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ef}"`),null):e}function yA(e,t){let r,a,s,o,c;if(lA(e)){let f=e.getAttribute("action");a=f?bi(f,t):null,r=e.getAttribute("method")||wf,s=Jy(e.getAttribute("enctype"))||Ef,o=new FormData(e)}else if(sA(e)||oA(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(a=d?bi(d,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||wf,s=Jy(e.getAttribute("formenctype"))||Jy(f.getAttribute("enctype"))||Ef,o=new FormData(f,e),!dA()){let{name:y,type:p,value:g}=e;if(p==="image"){let v=y?`${y}.`:"";o.append(`${v}x`,"0"),o.append(`${v}y`,"0")}else y&&o.append(y,g)}}else{if(od(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=wf,a=null,s=Ef,c=e}return o&&s==="text/plain"&&(c=o,o=void 0),{action:a,method:r.toLowerCase(),encType:s,formData:o,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Op(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function mA(e,t,r,a){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${a}`:s.pathname=`${s.pathname}.${a}`:s.pathname==="/"?s.pathname=`_root.${a}`:t&&bi(s.pathname,t)==="/"?s.pathname=`${t.replace(/\/$/,"")}/_root.${a}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${a}`,s}async function gA(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function pA(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function vA(e,t,r){let a=await Promise.all(e.map(async s=>{let o=t.routes[s.route.id];if(o){let c=await gA(o,r);return c.links?c.links():[]}return[]}));return xA(a.flat(1).filter(pA).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function b2(e,t,r,a,s,o){let c=(d,y)=>r[y]?d.route.id!==r[y].route.id:!0,f=(d,y)=>{var p;return r[y].pathname!==d.pathname||((p=r[y].route.path)==null?void 0:p.endsWith("*"))&&r[y].params["*"]!==d.params["*"]};return o==="assets"?t.filter((d,y)=>c(d,y)||f(d,y)):o==="data"?t.filter((d,y)=>{var g;let p=a.routes[d.route.id];if(!p||!p.hasLoader)return!1;if(c(d,y)||f(d,y))return!0;if(d.route.shouldRevalidate){let v=d.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((g=r[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function bA(e,t,{includeHydrateFallback:r}={}){return _A(e.map(a=>{let s=t.routes[a.route.id];if(!s)return[];let o=[s.module];return s.clientActionModule&&(o=o.concat(s.clientActionModule)),s.clientLoaderModule&&(o=o.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(o=o.concat(s.hydrateFallbackModule)),s.imports&&(o=o.concat(s.imports)),o}).flat(1))}function _A(e){return[...new Set(e)]}function SA(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function xA(e,t){let r=new Set;return new Set(t),e.reduce((a,s)=>{let o=JSON.stringify(SA(s));return r.has(o)||(r.add(o),a.push({key:o,link:s})),a},[])}function Ew(){let e=R.useContext(Yl);return Op(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function wA(){let e=R.useContext(ld);return Op(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var zp=R.createContext(void 0);zp.displayName="FrameworkContext";function Mw(){let e=R.useContext(zp);return Op(e,"You must render this element inside a <HydratedRouter> element"),e}function EA(e,t){let r=R.useContext(zp),[a,s]=R.useState(!1),[o,c]=R.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:y,onMouseLeave:p,onTouchStart:g}=t,v=R.useRef(null);R.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let _=M=>{M.forEach(C=>{c(C.isIntersecting)})},w=new IntersectionObserver(_,{threshold:.5});return v.current&&w.observe(v.current),()=>{w.disconnect()}}},[e]),R.useEffect(()=>{if(a){let _=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(_)}}},[a]);let b=()=>{s(!0)},S=()=>{s(!1),c(!1)};return r?e!=="intent"?[o,v,{}]:[o,v,{onFocus:Go(f,b),onBlur:Go(d,S),onMouseEnter:Go(y,b),onMouseLeave:Go(p,S),onTouchStart:Go(g,b)}]:[!1,v,{}]}function Go(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function MA({page:e,...t}){let{router:r}=Ew(),a=R.useMemo(()=>cw(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?R.createElement(kA,{page:e,matches:a,...t}):null}function CA(e){let{manifest:t,routeModules:r}=Mw(),[a,s]=R.useState([]);return R.useEffect(()=>{let o=!1;return vA(e,t,r).then(c=>{o||s(c)}),()=>{o=!0}},[e,t,r]),a}function kA({page:e,matches:t,...r}){let a=qr(),{future:s,manifest:o,routeModules:c}=Mw(),{basename:f}=Ew(),{loaderData:d,matches:y}=wA(),p=R.useMemo(()=>b2(e,t,y,o,a,"data"),[e,t,y,o,a]),g=R.useMemo(()=>b2(e,t,y,o,a,"assets"),[e,t,y,o,a]),v=R.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let _=new Set,w=!1;if(t.forEach(C=>{var k;let E=o.routes[C.route.id];!E||!E.hasLoader||(!p.some(z=>z.route.id===C.route.id)&&C.route.id in d&&((k=c[C.route.id])!=null&&k.shouldRevalidate)||E.hasClientLoader?w=!0:_.add(C.route.id))}),_.size===0)return[];let M=mA(e,f,s.unstable_trailingSlashAwareDataRequests,"data");return w&&_.size>0&&M.searchParams.set("_routes",t.filter(C=>_.has(C.route.id)).map(C=>C.route.id).join(",")),[M.pathname+M.search]},[f,s.unstable_trailingSlashAwareDataRequests,d,a,o,p,t,e,c]),b=R.useMemo(()=>bA(g,o),[g,o]),S=CA(g);return R.createElement(R.Fragment,null,v.map(_=>R.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...r})),b.map(_=>R.createElement("link",{key:_,rel:"modulepreload",href:_,...r})),S.map(({key:_,link:w})=>R.createElement("link",{key:_,nonce:r.nonce,...w,crossOrigin:w.crossOrigin??r.crossOrigin})))}function AA(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var TA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{TA&&(window.__reactRouterVersion="7.13.1")}catch{}function I7({basename:e,children:t,unstable_useTransitions:r,window:a}){let s=R.useRef();s.current==null&&(s.current=o4({window:a,v5Compat:!0}));let o=s.current,[c,f]=R.useState({action:o.action,location:o.location}),d=R.useCallback(y=>{r===!1?f(y):R.startTransition(()=>f(y))},[r]);return R.useLayoutEffect(()=>o.listen(d),[o,d]),R.createElement(aA,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:o,unstable_useTransitions:r})}var Cw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kw=R.forwardRef(function({onClick:t,discover:r="render",prefetch:a="none",relative:s,reloadDocument:o,replace:c,unstable_mask:f,state:d,target:y,to:p,preventScrollReset:g,viewTransition:v,unstable_defaultShouldRevalidate:b,...S},_){let{basename:w,navigator:M,unstable_useTransitions:C}=R.useContext(Gn),E=typeof p=="string"&&Cw.test(p),k=yw(p,w);p=k.to;let z=I4(p,{relative:s}),N=qr(),D=null;if(f){let re=sd(f,[],N.unstable_mask?N.unstable_mask.pathname:"/",!0);w!=="/"&&(re.pathname=re.pathname==="/"?w:Br([w,re.pathname])),D=M.createHref(re)}let[T,L,Q]=EA(a,S),j=zA(p,{replace:c,unstable_mask:f,state:d,target:y,preventScrollReset:g,relative:s,viewTransition:v,unstable_defaultShouldRevalidate:b,unstable_useTransitions:C});function B(re){t&&t(re),re.defaultPrevented||j(re)}let $=!(k.isExternal||o),G=R.createElement("a",{...S,...Q,href:($?D:void 0)||k.absoluteURL||z,onClick:$?B:t,ref:AA(_,L),target:y,"data-discover":!E&&r==="render"?"true":void 0});return T&&!E?R.createElement(R.Fragment,null,G,R.createElement(MA,{page:z})):G});kw.displayName="Link";var RA=R.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:a="",end:s=!1,style:o,to:c,viewTransition:f,children:d,...y},p){let g=ku(c,{relative:y.relative}),v=qr(),b=R.useContext(ld),{navigator:S,basename:_}=R.useContext(Gn),w=b!=null&&UA(g)&&f===!0,M=S.encodeLocation?S.encodeLocation(g).pathname:g.pathname,C=v.pathname,E=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;r||(C=C.toLowerCase(),E=E?E.toLowerCase():null,M=M.toLowerCase()),E&&_&&(E=bi(E,_)||E);const k=M!=="/"&&M.endsWith("/")?M.length-1:M.length;let z=C===M||!s&&C.startsWith(M)&&C.charAt(k)==="/",N=E!=null&&(E===M||!s&&E.startsWith(M)&&E.charAt(M.length)==="/"),D={isActive:z,isPending:N,isTransitioning:w},T=z?t:void 0,L;typeof a=="function"?L=a(D):L=[a,z?"active":null,N?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let Q=typeof o=="function"?o(D):o;return R.createElement(kw,{...y,"aria-current":T,className:L,ref:p,style:Q,to:c,viewTransition:f},typeof d=="function"?d(D):d)});RA.displayName="NavLink";var NA=R.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:s,state:o,method:c=wf,action:f,onSubmit:d,relative:y,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:v,...b},S)=>{let{unstable_useTransitions:_}=R.useContext(Gn),w=BA(),M=jA(f,{relative:y}),C=c.toLowerCase()==="get"?"get":"post",E=typeof f=="string"&&Cw.test(f),k=z=>{if(d&&d(z),z.defaultPrevented)return;z.preventDefault();let N=z.nativeEvent.submitter,D=(N==null?void 0:N.getAttribute("formmethod"))||c,T=()=>w(N||z.currentTarget,{fetcherKey:t,method:D,navigate:r,replace:s,state:o,relative:y,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:v});_&&r!==!1?R.startTransition(()=>T()):T()};return R.createElement("form",{ref:S,method:C,action:M,onSubmit:a?d:k,...b,"data-discover":!E&&e==="render"?"true":void 0})});NA.displayName="Form";function OA(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Aw(e){let t=R.useContext(Yl);return Ct(t,OA(e)),t}function zA(e,{target:t,replace:r,unstable_mask:a,state:s,preventScrollReset:o,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:d,unstable_useTransitions:y}={}){let p=Tp(),g=qr(),v=ku(e,{relative:c});return R.useCallback(b=>{if(cA(b,t)){b.preventDefault();let S=r!==void 0?r:su(g)===su(v),_=()=>p(e,{replace:S,unstable_mask:a,state:s,preventScrollReset:o,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:d});y?R.startTransition(()=>_()):_()}},[g,p,v,r,a,s,t,e,o,c,f,d,y])}function P7(e){lr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=R.useRef(Ig(e)),r=R.useRef(!1),a=qr(),s=R.useMemo(()=>fA(a.search,r.current?null:t.current),[a.search]),o=Tp(),c=R.useCallback((f,d)=>{const y=Ig(typeof f=="function"?f(new URLSearchParams(s)):f);r.current=!0,o("?"+y,d)},[o,s]);return[s,c]}var DA=0,LA=()=>`__${String(++DA)}__`;function BA(){let{router:e}=Aw("useSubmit"),{basename:t}=R.useContext(Gn),r=eA(),a=e.fetch,s=e.navigate;return R.useCallback(async(o,c={})=>{let{action:f,method:d,encType:y,formData:p,body:g}=yA(o,t);if(c.navigate===!1){let v=c.fetcherKey||LA();await a(v,r,c.action||f,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:p,body:g,formMethod:c.method||d,formEncType:c.encType||y,flushSync:c.flushSync})}else await s(c.action||f,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:p,body:g,formMethod:c.method||d,formEncType:c.encType||y,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[a,s,t,r])}function jA(e,{relative:t}={}){let{basename:r}=R.useContext(Gn),a=R.useContext(ur);Ct(a,"useFormAction must be used inside a RouteContext");let[s]=a.matches.slice(-1),o={...ku(e||".",{relative:t})},c=qr();if(e==null){o.search=c.search;let f=new URLSearchParams(o.search),d=f.getAll("index");if(d.some(p=>p==="")){f.delete("index"),d.filter(g=>g).forEach(g=>f.append("index",g));let p=f.toString();o.search=p?`?${p}`:""}}return(!e||e===".")&&s.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Br([r,o.pathname])),su(o)}function UA(e,{relative:t}={}){let r=R.useContext(gw);Ct(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Aw("useViewTransitionState"),s=ku(e,{relative:t});if(!r.isTransitioning)return!1;let o=bi(r.currentLocation.pathname,a)||r.currentLocation.pathname,c=bi(r.nextLocation.pathname,a)||r.nextLocation.pathname;return Rf(s.pathname,c)!=null||Rf(s.pathname,o)!=null}var Tw=Qx();const $7=Er(Tw);var Nf=function(){return Nf=Object.assign||function(t){for(var r,a=1,s=arguments.length;a<s;a++){r=arguments[a];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Nf.apply(this,arguments)};function HA(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(r[a[s]]=e[a[s]]);return r}function F7(e,t,r){if(r||arguments.length===2)for(var a=0,s=t.length,o;a<s;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}function Wy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qA(e,t){var r=R.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(a){var s=r.value;s!==a&&(r.value=a,r.callback(a,s))}}}})[0];return r.callback=t,r.facade}var VA=typeof window<"u"?R.useLayoutEffect:R.useEffect,_2=new WeakMap;function Y7(e,t){var r=qA(null,function(a){return e.forEach(function(s){return Wy(s,a)})});return VA(function(){var a=_2.get(r);if(a){var s=new Set(a),o=new Set(e),c=r.current;s.forEach(function(f){o.has(f)||Wy(f,null)}),o.forEach(function(f){s.has(f)||Wy(f,c)})}_2.set(r,e)},[e]),r}function IA(e){return e}function PA(e,t){t===void 0&&(t=IA);var r=[],a=!1,s={read:function(){if(a)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(o){var c=t(o,a);return r.push(c),function(){r=r.filter(function(f){return f!==c})}},assignSyncMedium:function(o){for(a=!0;r.length;){var c=r;r=[],c.forEach(o)}r={push:function(f){return o(f)},filter:function(){return r}}},assignMedium:function(o){a=!0;var c=[];if(r.length){var f=r;r=[],f.forEach(o),c=r}var d=function(){var p=c;c=[],p.forEach(o)},y=function(){return Promise.resolve().then(d)};y(),r={push:function(p){c.push(p),y()},filter:function(p){return c=c.filter(p),r}}}};return s}function Z7(e){e===void 0&&(e={});var t=PA(null);return t.options=Nf({async:!0,ssr:!1},e),t}var Rw=function(e){var t=e.sideCar,r=HA(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return R.createElement(a,Nf({},r))};Rw.isSideCarExport=!0;function G7(e,t){return e.useMedium(t),Rw}var $A=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function FA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$A();return t&&e.setAttribute("nonce",t),e}function YA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ZA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var GA=function(){var e=0,t=null;return{add:function(r){e==0&&(t=FA())&&(YA(t,r),ZA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},QA=function(){var e=GA();return function(t,r){R.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Q7=function(){var e=QA(),t=function(r){var a=r.styles,s=r.dynamic;return e(a,s),null};return t},XA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},sl=new WeakMap,of=new WeakMap,uf={},em=0,Nw=function(e){return e&&(e.host||Nw(e.parentNode))},KA=function(e,t){return t.map(function(r){if(e.contains(r))return r;var a=Nw(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},JA=function(e,t,r,a){var s=KA(t,Array.isArray(e)?e:[e]);uf[r]||(uf[r]=new WeakMap);var o=uf[r],c=[],f=new Set,d=new Set(s),y=function(g){!g||f.has(g)||(f.add(g),y(g.parentNode))};s.forEach(y);var p=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(v){if(f.has(v))p(v);else try{var b=v.getAttribute(a),S=b!==null&&b!=="false",_=(sl.get(v)||0)+1,w=(o.get(v)||0)+1;sl.set(v,_),o.set(v,w),c.push(v),_===1&&S&&of.set(v,!0),w===1&&v.setAttribute(r,"true"),S||v.setAttribute(a,"true")}catch(M){console.error("aria-hidden: cannot operate on ",v,M)}})};return p(t),f.clear(),em++,function(){c.forEach(function(g){var v=sl.get(g)-1,b=o.get(g)-1;sl.set(g,v),o.set(g,b),v||(of.has(g)||g.removeAttribute(a),of.delete(g)),b||g.removeAttribute(r)}),em--,em||(sl=new WeakMap,sl=new WeakMap,of=new WeakMap,uf={})}},X7=function(e,t,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=XA(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),JA(a,s,r,"aria-hidden")):function(){return null}};/**
61
- * @license lucide-react v0.525.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const WA=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),e5=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,a)=>a?a.toUpperCase():r.toLowerCase()),S2=e=>{const t=e5(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ow=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim(),t5=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
66
- * @license lucide-react v0.525.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */var n5={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"};/**
71
- * @license lucide-react v0.525.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const r5=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:c,...f},d)=>R.createElement("svg",{ref:d,...n5,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:Ow("lucide",s),...!o&&!t5(f)&&{"aria-hidden":"true"},...f},[...c.map(([y,p])=>R.createElement(y,p)),...Array.isArray(o)?o:[o]]));/**
76
- * @license lucide-react v0.525.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const oe=(e,t)=>{const r=R.forwardRef(({className:a,...s},o)=>R.createElement(r5,{ref:o,iconNode:t,className:Ow(`lucide-${WA(S2(e))}`,`lucide-${e}`,a),...s}));return r.displayName=S2(e),r};/**
81
- * @license lucide-react v0.525.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const i5=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],K7=oe("activity",i5);/**
86
- * @license lucide-react v0.525.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const a5=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],J7=oe("archive-restore",a5);/**
91
- * @license lucide-react v0.525.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const s5=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],W7=oe("arrow-left",s5);/**
96
- * @license lucide-react v0.525.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const l5=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],eL=oe("arrow-right",l5);/**
101
- * @license lucide-react v0.525.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const o5=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],tL=oe("arrow-up-right",o5);/**
106
- * @license lucide-react v0.525.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const u5=[["path",{d:"M2 16V4a2 2 0 0 1 2-2h11",key:"spzkk5"}],["path",{d:"M22 18H11a2 2 0 1 0 0 4h10.5a.5.5 0 0 0 .5-.5v-15a.5.5 0 0 0-.5-.5H11a2 2 0 0 0-2 2v12",key:"1wz07i"}],["path",{d:"M5 14H4a2 2 0 1 0 0 4h1",key:"16gqf9"}]],nL=oe("book-copy",u5);/**
111
- * @license lucide-react v0.525.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const c5=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],rL=oe("bot",c5);/**
116
- * @license lucide-react v0.525.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const f5=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],iL=oe("brain-circuit",f5);/**
121
- * @license lucide-react v0.525.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const d5=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],aL=oe("briefcase-business",d5);/**
126
- * @license lucide-react v0.525.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const h5=[["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"}]],sL=oe("calendar-days",h5);/**
131
- * @license lucide-react v0.525.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const y5=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],lL=oe("chart-column",y5);/**
136
- * @license lucide-react v0.525.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const m5=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],oL=oe("check-check",m5);/**
141
- * @license lucide-react v0.525.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */const g5=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],uL=oe("check",g5);/**
146
- * @license lucide-react v0.525.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const p5=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],cL=oe("chevron-down",p5);/**
151
- * @license lucide-react v0.525.0 - ISC
152
- *
153
- * This source code is licensed under the ISC license.
154
- * See the LICENSE file in the root directory of this source tree.
155
- */const v5=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],fL=oe("chevron-right",v5);/**
156
- * @license lucide-react v0.525.0 - ISC
157
- *
158
- * This source code is licensed under the ISC license.
159
- * See the LICENSE file in the root directory of this source tree.
160
- */const b5=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],dL=oe("chevron-up",b5);/**
161
- * @license lucide-react v0.525.0 - ISC
162
- *
163
- * This source code is licensed under the ISC license.
164
- * See the LICENSE file in the root directory of this source tree.
165
- */const _5=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],hL=oe("chevrons-left",_5);/**
166
- * @license lucide-react v0.525.0 - ISC
167
- *
168
- * This source code is licensed under the ISC license.
169
- * See the LICENSE file in the root directory of this source tree.
170
- */const S5=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],yL=oe("chevrons-right",S5);/**
171
- * @license lucide-react v0.525.0 - ISC
172
- *
173
- * This source code is licensed under the ISC license.
174
- * See the LICENSE file in the root directory of this source tree.
175
- */const x5=[["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"}]],mL=oe("circle-alert",x5);/**
176
- * @license lucide-react v0.525.0 - ISC
177
- *
178
- * This source code is licensed under the ISC license.
179
- * See the LICENSE file in the root directory of this source tree.
180
- */const w5=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],gL=oe("circle-check-big",w5);/**
181
- * @license lucide-react v0.525.0 - ISC
182
- *
183
- * This source code is licensed under the ISC license.
184
- * See the LICENSE file in the root directory of this source tree.
185
- */const E5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],pL=oe("circle-check",E5);/**
186
- * @license lucide-react v0.525.0 - ISC
187
- *
188
- * This source code is licensed under the ISC license.
189
- * See the LICENSE file in the root directory of this source tree.
190
- */const M5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],vL=oe("circle-pause",M5);/**
191
- * @license lucide-react v0.525.0 - ISC
192
- *
193
- * This source code is licensed under the ISC license.
194
- * See the LICENSE file in the root directory of this source tree.
195
- */const C5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],bL=oe("circle-question-mark",C5);/**
196
- * @license lucide-react v0.525.0 - ISC
197
- *
198
- * This source code is licensed under the ISC license.
199
- * See the LICENSE file in the root directory of this source tree.
200
- */const k5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],_L=oe("circle-x",k5);/**
201
- * @license lucide-react v0.525.0 - ISC
202
- *
203
- * This source code is licensed under the ISC license.
204
- * See the LICENSE file in the root directory of this source tree.
205
- */const A5=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],SL=oe("clipboard-list",A5);/**
206
- * @license lucide-react v0.525.0 - ISC
207
- *
208
- * This source code is licensed under the ISC license.
209
- * See the LICENSE file in the root directory of this source tree.
210
- */const T5=[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],xL=oe("clipboard-paste",T5);/**
211
- * @license lucide-react v0.525.0 - ISC
212
- *
213
- * This source code is licensed under the ISC license.
214
- * See the LICENSE file in the root directory of this source tree.
215
- */const R5=[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],wL=oe("clock-3",R5);/**
216
- * @license lucide-react v0.525.0 - ISC
217
- *
218
- * This source code is licensed under the ISC license.
219
- * See the LICENSE file in the root directory of this source tree.
220
- */const N5=[["path",{d:"M12 13v8",key:"1l5pq0"}],["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:"m8 17 4-4 4 4",key:"1quai1"}]],EL=oe("cloud-upload",N5);/**
221
- * @license lucide-react v0.525.0 - ISC
222
- *
223
- * This source code is licensed under the ISC license.
224
- * See the LICENSE file in the root directory of this source tree.
225
- */const O5=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],ML=oe("cloud",O5);/**
226
- * @license lucide-react v0.525.0 - ISC
227
- *
228
- * This source code is licensed under the ISC license.
229
- * See the LICENSE file in the root directory of this source tree.
230
- */const z5=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],CL=oe("compass",z5);/**
231
- * @license lucide-react v0.525.0 - ISC
232
- *
233
- * This source code is licensed under the ISC license.
234
- * See the LICENSE file in the root directory of this source tree.
235
- */const D5=[["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"}]],kL=oe("copy",D5);/**
236
- * @license lucide-react v0.525.0 - ISC
237
- *
238
- * This source code is licensed under the ISC license.
239
- * See the LICENSE file in the root directory of this source tree.
240
- */const L5=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],AL=oe("cpu",L5);/**
241
- * @license lucide-react v0.525.0 - ISC
242
- *
243
- * This source code is licensed under the ISC license.
244
- * See the LICENSE file in the root directory of this source tree.
245
- */const B5=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],TL=oe("database-zap",B5);/**
246
- * @license lucide-react v0.525.0 - ISC
247
- *
248
- * This source code is licensed under the ISC license.
249
- * See the LICENSE file in the root directory of this source tree.
250
- */const j5=[["path",{d:"M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z",key:"9m4mmf"}],["path",{d:"m2.5 21.5 1.4-1.4",key:"17g3f0"}],["path",{d:"m20.1 3.9 1.4-1.4",key:"1qn309"}],["path",{d:"M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z",key:"1t2c92"}],["path",{d:"m9.6 14.4 4.8-4.8",key:"6umqxw"}]],RL=oe("dumbbell",j5);/**
251
- * @license lucide-react v0.525.0 - ISC
252
- *
253
- * This source code is licensed under the ISC license.
254
- * See the LICENSE file in the root directory of this source tree.
255
- */const U5=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],NL=oe("ellipsis",U5);/**
256
- * @license lucide-react v0.525.0 - ISC
257
- *
258
- * This source code is licensed under the ISC license.
259
- * See the LICENSE file in the root directory of this source tree.
260
- */const H5=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],OL=oe("external-link",H5);/**
261
- * @license lucide-react v0.525.0 - ISC
262
- *
263
- * This source code is licensed under the ISC license.
264
- * See the LICENSE file in the root directory of this source tree.
265
- */const q5=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],zL=oe("eye-off",q5);/**
266
- * @license lucide-react v0.525.0 - ISC
267
- *
268
- * This source code is licensed under the ISC license.
269
- * See the LICENSE file in the root directory of this source tree.
270
- */const V5=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],DL=oe("eye",V5);/**
271
- * @license lucide-react v0.525.0 - ISC
272
- *
273
- * This source code is licensed under the ISC license.
274
- * See the LICENSE file in the root directory of this source tree.
275
- */const I5=[["path",{d:"M10 12v-1",key:"v7bkov"}],["path",{d:"M10 18v-2",key:"1cjy8d"}],["path",{d:"M10 7V6",key:"dljcrl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01",key:"gkbcor"}],["circle",{cx:"10",cy:"20",r:"2",key:"1xzdoj"}]],LL=oe("file-archive",I5);/**
276
- * @license lucide-react v0.525.0 - ISC
277
- *
278
- * This source code is licensed under the ISC license.
279
- * See the LICENSE file in the root directory of this source tree.
280
- */const P5=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],BL=oe("file-text",P5);/**
281
- * @license lucide-react v0.525.0 - ISC
282
- *
283
- * This source code is licensed under the ISC license.
284
- * See the LICENSE file in the root directory of this source tree.
285
- */const $5=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],jL=oe("flame",$5);/**
286
- * @license lucide-react v0.525.0 - ISC
287
- *
288
- * This source code is licensed under the ISC license.
289
- * See the LICENSE file in the root directory of this source tree.
290
- */const F5=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],UL=oe("folder-open",F5);/**
291
- * @license lucide-react v0.525.0 - ISC
292
- *
293
- * This source code is licensed under the ISC license.
294
- * See the LICENSE file in the root directory of this source tree.
295
- */const Y5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],HL=oe("frown",Y5);/**
296
- * @license lucide-react v0.525.0 - ISC
297
- *
298
- * This source code is licensed under the ISC license.
299
- * See the LICENSE file in the root directory of this source tree.
300
- */const Z5=[["path",{d:"M6 3v12",key:"qpgusn"}],["path",{d:"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"1d02ji"}],["path",{d:"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"chk6ph"}],["path",{d:"M15 6a9 9 0 0 0-9 9",key:"or332x"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],qL=oe("git-branch-plus",Z5);/**
301
- * @license lucide-react v0.525.0 - ISC
302
- *
303
- * This source code is licensed under the ISC license.
304
- * See the LICENSE file in the root directory of this source tree.
305
- */const G5=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],VL=oe("git-branch",G5);/**
306
- * @license lucide-react v0.525.0 - ISC
307
- *
308
- * This source code is licensed under the ISC license.
309
- * See the LICENSE file in the root directory of this source tree.
310
- */const Q5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],IL=oe("globe",Q5);/**
311
- * @license lucide-react v0.525.0 - ISC
312
- *
313
- * This source code is licensed under the ISC license.
314
- * See the LICENSE file in the root directory of this source tree.
315
- */const X5=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],PL=oe("grip-vertical",X5);/**
316
- * @license lucide-react v0.525.0 - ISC
317
- *
318
- * This source code is licensed under the ISC license.
319
- * See the LICENSE file in the root directory of this source tree.
320
- */const K5=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]],$L=oe("heart-handshake",K5);/**
321
- * @license lucide-react v0.525.0 - ISC
322
- *
323
- * This source code is licensed under the ISC license.
324
- * See the LICENSE file in the root directory of this source tree.
325
- */const J5=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],FL=oe("heart",J5);/**
326
- * @license lucide-react v0.525.0 - ISC
327
- *
328
- * This source code is licensed under the ISC license.
329
- * See the LICENSE file in the root directory of this source tree.
330
- */const W5=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],YL=oe("history",W5);/**
331
- * @license lucide-react v0.525.0 - ISC
332
- *
333
- * This source code is licensed under the ISC license.
334
- * See the LICENSE file in the root directory of this source tree.
335
- */const eT=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],ZL=oe("image-plus",eT);/**
336
- * @license lucide-react v0.525.0 - ISC
337
- *
338
- * This source code is licensed under the ISC license.
339
- * See the LICENSE file in the root directory of this source tree.
340
- */const tT=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],GL=oe("key-round",tT);/**
341
- * @license lucide-react v0.525.0 - ISC
342
- *
343
- * This source code is licensed under the ISC license.
344
- * See the LICENSE file in the root directory of this source tree.
345
- */const nT=[["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"}]],QL=oe("layers",nT);/**
346
- * @license lucide-react v0.525.0 - ISC
347
- *
348
- * This source code is licensed under the ISC license.
349
- * See the LICENSE file in the root directory of this source tree.
350
- */const rT=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],XL=oe("layout-dashboard",rT);/**
351
- * @license lucide-react v0.525.0 - ISC
352
- *
353
- * This source code is licensed under the ISC license.
354
- * See the LICENSE file in the root directory of this source tree.
355
- */const iT=[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]],KL=oe("library-big",iT);/**
356
- * @license lucide-react v0.525.0 - ISC
357
- *
358
- * This source code is licensed under the ISC license.
359
- * See the LICENSE file in the root directory of this source tree.
360
- */const aT=[["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"}]],JL=oe("link-2",aT);/**
361
- * @license lucide-react v0.525.0 - ISC
362
- *
363
- * This source code is licensed under the ISC license.
364
- * See the LICENSE file in the root directory of this source tree.
365
- */const sT=[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],WL=oe("list-plus",sT);/**
366
- * @license lucide-react v0.525.0 - ISC
367
- *
368
- * This source code is licensed under the ISC license.
369
- * See the LICENSE file in the root directory of this source tree.
370
- */const lT=[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],eB=oe("list-todo",lT);/**
371
- * @license lucide-react v0.525.0 - ISC
372
- *
373
- * This source code is licensed under the ISC license.
374
- * See the LICENSE file in the root directory of this source tree.
375
- */const oT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],tB=oe("loader-circle",oT);/**
376
- * @license lucide-react v0.525.0 - ISC
377
- *
378
- * This source code is licensed under the ISC license.
379
- * See the LICENSE file in the root directory of this source tree.
380
- */const uT=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],nB=oe("map-pin",uT);/**
381
- * @license lucide-react v0.525.0 - ISC
382
- *
383
- * This source code is licensed under the ISC license.
384
- * See the LICENSE file in the root directory of this source tree.
385
- */const cT=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],rB=oe("map",cT);/**
386
- * @license lucide-react v0.525.0 - ISC
387
- *
388
- * This source code is licensed under the ISC license.
389
- * See the LICENSE file in the root directory of this source tree.
390
- */const fT=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],iB=oe("maximize",fT);/**
391
- * @license lucide-react v0.525.0 - ISC
392
- *
393
- * This source code is licensed under the ISC license.
394
- * See the LICENSE file in the root directory of this source tree.
395
- */const dT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],aB=oe("meh",dT);/**
396
- * @license lucide-react v0.525.0 - ISC
397
- *
398
- * This source code is licensed under the ISC license.
399
- * See the LICENSE file in the root directory of this source tree.
400
- */const hT=[["path",{d:"M5 12h14",key:"1ays0h"}]],sB=oe("minus",hT);/**
401
- * @license lucide-react v0.525.0 - ISC
402
- *
403
- * This source code is licensed under the ISC license.
404
- * See the LICENSE file in the root directory of this source tree.
405
- */const yT=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9",key:"4ay0iu"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}]],lB=oe("moon-star",yT);/**
406
- * @license lucide-react v0.525.0 - ISC
407
- *
408
- * This source code is licensed under the ISC license.
409
- * See the LICENSE file in the root directory of this source tree.
410
- */const mT=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],oB=oe("moon",mT);/**
411
- * @license lucide-react v0.525.0 - ISC
412
- *
413
- * This source code is licensed under the ISC license.
414
- * See the LICENSE file in the root directory of this source tree.
415
- */const gT=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],uB=oe("move",gT);/**
416
- * @license lucide-react v0.525.0 - ISC
417
- *
418
- * This source code is licensed under the ISC license.
419
- * See the LICENSE file in the root directory of this source tree.
420
- */const pT=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],cB=oe("network",pT);/**
421
- * @license lucide-react v0.525.0 - ISC
422
- *
423
- * This source code is licensed under the ISC license.
424
- * See the LICENSE file in the root directory of this source tree.
425
- */const vT=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],fB=oe("notebook-pen",vT);/**
426
- * @license lucide-react v0.525.0 - ISC
427
- *
428
- * This source code is licensed under the ISC license.
429
- * See the LICENSE file in the root directory of this source tree.
430
- */const bT=[["path",{d:"M20.341 6.484A10 10 0 0 1 10.266 21.85",key:"1enhxb"}],["path",{d:"M3.659 17.516A10 10 0 0 1 13.74 2.152",key:"1crzgf"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}]],dB=oe("orbit",bT);/**
431
- * @license lucide-react v0.525.0 - ISC
432
- *
433
- * This source code is licensed under the ISC license.
434
- * See the LICENSE file in the root directory of this source tree.
435
- */const _T=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],hB=oe("panel-right-close",_T);/**
436
- * @license lucide-react v0.525.0 - ISC
437
- *
438
- * This source code is licensed under the ISC license.
439
- * See the LICENSE file in the root directory of this source tree.
440
- */const ST=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],yB=oe("panel-right-open",ST);/**
441
- * @license lucide-react v0.525.0 - ISC
442
- *
443
- * This source code is licensed under the ISC license.
444
- * See the LICENSE file in the root directory of this source tree.
445
- */const xT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]],mB=oe("panel-top",xT);/**
446
- * @license lucide-react v0.525.0 - ISC
447
- *
448
- * This source code is licensed under the ISC license.
449
- * See the LICENSE file in the root directory of this source tree.
450
- */const wT=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],gB=oe("party-popper",wT);/**
451
- * @license lucide-react v0.525.0 - ISC
452
- *
453
- * This source code is licensed under the ISC license.
454
- * See the LICENSE file in the root directory of this source tree.
455
- */const ET=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]],pB=oe("pencil-line",ET);/**
456
- * @license lucide-react v0.525.0 - ISC
457
- *
458
- * This source code is licensed under the ISC license.
459
- * See the LICENSE file in the root directory of this source tree.
460
- */const MT=[["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"}]],vB=oe("pencil",MT);/**
461
- * @license lucide-react v0.525.0 - ISC
462
- *
463
- * This source code is licensed under the ISC license.
464
- * See the LICENSE file in the root directory of this source tree.
465
- */const CT=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],bB=oe("play",CT);/**
466
- * @license lucide-react v0.525.0 - ISC
467
- *
468
- * This source code is licensed under the ISC license.
469
- * See the LICENSE file in the root directory of this source tree.
470
- */const kT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],_B=oe("plus",kT);/**
471
- * @license lucide-react v0.525.0 - ISC
472
- *
473
- * This source code is licensed under the ISC license.
474
- * See the LICENSE file in the root directory of this source tree.
475
- */const AT=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],SB=oe("qr-code",AT);/**
476
- * @license lucide-react v0.525.0 - ISC
477
- *
478
- * This source code is licensed under the ISC license.
479
- * See the LICENSE file in the root directory of this source tree.
480
- */const TT=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],xB=oe("quote",TT);/**
481
- * @license lucide-react v0.525.0 - ISC
482
- *
483
- * This source code is licensed under the ISC license.
484
- * See the LICENSE file in the root directory of this source tree.
485
- */const RT=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],wB=oe("radar",RT);/**
486
- * @license lucide-react v0.525.0 - ISC
487
- *
488
- * This source code is licensed under the ISC license.
489
- * See the LICENSE file in the root directory of this source tree.
490
- */const NT=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],EB=oe("refresh-ccw",NT);/**
491
- * @license lucide-react v0.525.0 - ISC
492
- *
493
- * This source code is licensed under the ISC license.
494
- * See the LICENSE file in the root directory of this source tree.
495
- */const OT=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],MB=oe("refresh-cw",OT);/**
496
- * @license lucide-react v0.525.0 - ISC
497
- *
498
- * This source code is licensed under the ISC license.
499
- * See the LICENSE file in the root directory of this source tree.
500
- */const zT=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],CB=oe("repeat",zT);/**
501
- * @license lucide-react v0.525.0 - ISC
502
- *
503
- * This source code is licensed under the ISC license.
504
- * See the LICENSE file in the root directory of this source tree.
505
- */const DT=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],kB=oe("rotate-ccw",DT);/**
506
- * @license lucide-react v0.525.0 - ISC
507
- *
508
- * This source code is licensed under the ISC license.
509
- * See the LICENSE file in the root directory of this source tree.
510
- */const LT=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],AB=oe("route",LT);/**
511
- * @license lucide-react v0.525.0 - ISC
512
- *
513
- * This source code is licensed under the ISC license.
514
- * See the LICENSE file in the root directory of this source tree.
515
- */const BT=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],TB=oe("save",BT);/**
516
- * @license lucide-react v0.525.0 - ISC
517
- *
518
- * This source code is licensed under the ISC license.
519
- * See the LICENSE file in the root directory of this source tree.
520
- */const jT=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],RB=oe("scissors",jT);/**
521
- * @license lucide-react v0.525.0 - ISC
522
- *
523
- * This source code is licensed under the ISC license.
524
- * See the LICENSE file in the root directory of this source tree.
525
- */const UT=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],NB=oe("scroll-text",UT);/**
526
- * @license lucide-react v0.525.0 - ISC
527
- *
528
- * This source code is licensed under the ISC license.
529
- * See the LICENSE file in the root directory of this source tree.
530
- */const HT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],OB=oe("search",HT);/**
531
- * @license lucide-react v0.525.0 - ISC
532
- *
533
- * This source code is licensed under the ISC license.
534
- * See the LICENSE file in the root directory of this source tree.
535
- */const qT=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],zB=oe("settings-2",qT);/**
536
- * @license lucide-react v0.525.0 - ISC
537
- *
538
- * This source code is licensed under the ISC license.
539
- * See the LICENSE file in the root directory of this source tree.
540
- */const VT=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],DB=oe("settings",VT);/**
541
- * @license lucide-react v0.525.0 - ISC
542
- *
543
- * This source code is licensed under the ISC license.
544
- * See the LICENSE file in the root directory of this source tree.
545
- */const IT=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],LB=oe("shapes",IT);/**
546
- * @license lucide-react v0.525.0 - ISC
547
- *
548
- * This source code is licensed under the ISC license.
549
- * See the LICENSE file in the root directory of this source tree.
550
- */const PT=[["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:"m4.243 5.21 14.39 12.472",key:"1c9a7c"}]],BB=oe("shield-ban",PT);/**
551
- * @license lucide-react v0.525.0 - ISC
552
- *
553
- * This source code is licensed under the ISC license.
554
- * See the LICENSE file in the root directory of this source tree.
555
- */const $T=[["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"}]],jB=oe("shield-check",$T);/**
556
- * @license lucide-react v0.525.0 - ISC
557
- *
558
- * This source code is licensed under the ISC license.
559
- * See the LICENSE file in the root directory of this source tree.
560
- */const FT=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]],UB=oe("shield-off",FT);/**
561
- * @license lucide-react v0.525.0 - ISC
562
- *
563
- * This source code is licensed under the ISC license.
564
- * See the LICENSE file in the root directory of this source tree.
565
- */const YT=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],HB=oe("sliders-horizontal",YT);/**
566
- * @license lucide-react v0.525.0 - ISC
567
- *
568
- * This source code is licensed under the ISC license.
569
- * See the LICENSE file in the root directory of this source tree.
570
- */const ZT=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],qB=oe("smartphone",ZT);/**
571
- * @license lucide-react v0.525.0 - ISC
572
- *
573
- * This source code is licensed under the ISC license.
574
- * See the LICENSE file in the root directory of this source tree.
575
- */const GT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],VB=oe("smile",GT);/**
576
- * @license lucide-react v0.525.0 - ISC
577
- *
578
- * This source code is licensed under the ISC license.
579
- * See the LICENSE file in the root directory of this source tree.
580
- */const QT=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],IB=oe("sparkles",QT);/**
581
- * @license lucide-react v0.525.0 - ISC
582
- *
583
- * This source code is licensed under the ISC license.
584
- * See the LICENSE file in the root directory of this source tree.
585
- */const XT=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],PB=oe("split",XT);/**
586
- * @license lucide-react v0.525.0 - ISC
587
- *
588
- * This source code is licensed under the ISC license.
589
- * See the LICENSE file in the root directory of this source tree.
590
- */const KT=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],$B=oe("square-pen",KT);/**
591
- * @license lucide-react v0.525.0 - ISC
592
- *
593
- * This source code is licensed under the ISC license.
594
- * See the LICENSE file in the root directory of this source tree.
595
- */const JT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],FB=oe("square",JT);/**
596
- * @license lucide-react v0.525.0 - ISC
597
- *
598
- * This source code is licensed under the ISC license.
599
- * See the LICENSE file in the root directory of this source tree.
600
- */const WT=[["path",{d:"M15 3v18",key:"14nvp0"}],["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"}]],YB=oe("table-properties",WT);/**
601
- * @license lucide-react v0.525.0 - ISC
602
- *
603
- * This source code is licensed under the ISC license.
604
- * See the LICENSE file in the root directory of this source tree.
605
- */const eR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],ZB=oe("target",eR);/**
606
- * @license lucide-react v0.525.0 - ISC
607
- *
608
- * This source code is licensed under the ISC license.
609
- * See the LICENSE file in the root directory of this source tree.
610
- */const tR=[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]],GB=oe("timer-reset",tR);/**
611
- * @license lucide-react v0.525.0 - ISC
612
- *
613
- * This source code is licensed under the ISC license.
614
- * See the LICENSE file in the root directory of this source tree.
615
- */const nR=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],QB=oe("timer",nR);/**
616
- * @license lucide-react v0.525.0 - ISC
617
- *
618
- * This source code is licensed under the ISC license.
619
- * See the LICENSE file in the root directory of this source tree.
620
- */const rR=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],XB=oe("trash-2",rR);/**
621
- * @license lucide-react v0.525.0 - ISC
622
- *
623
- * This source code is licensed under the ISC license.
624
- * See the LICENSE file in the root directory of this source tree.
625
- */const iR=[["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"}]],KB=oe("triangle-alert",iR);/**
626
- * @license lucide-react v0.525.0 - ISC
627
- *
628
- * This source code is licensed under the ISC license.
629
- * See the LICENSE file in the root directory of this source tree.
630
- */const aR=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],JB=oe("trophy",aR);/**
631
- * @license lucide-react v0.525.0 - ISC
632
- *
633
- * This source code is licensed under the ISC license.
634
- * See the LICENSE file in the root directory of this source tree.
635
- */const sR=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],WB=oe("type",sR);/**
636
- * @license lucide-react v0.525.0 - ISC
637
- *
638
- * This source code is licensed under the ISC license.
639
- * See the LICENSE file in the root directory of this source tree.
640
- */const lR=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]],ej=oe("unfold-vertical",lR);/**
641
- * @license lucide-react v0.525.0 - ISC
642
- *
643
- * This source code is licensed under the ISC license.
644
- * See the LICENSE file in the root directory of this source tree.
645
- */const oR=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],tj=oe("upload",oR);/**
646
- * @license lucide-react v0.525.0 - ISC
647
- *
648
- * This source code is licensed under the ISC license.
649
- * See the LICENSE file in the root directory of this source tree.
650
- */const uR=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],nj=oe("user-round",uR);/**
651
- * @license lucide-react v0.525.0 - ISC
652
- *
653
- * This source code is licensed under the ISC license.
654
- * See the LICENSE file in the root directory of this source tree.
655
- */const cR=[["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"}]],rj=oe("users",cR);/**
656
- * @license lucide-react v0.525.0 - ISC
657
- *
658
- * This source code is licensed under the ISC license.
659
- * See the LICENSE file in the root directory of this source tree.
660
- */const fR=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],ij=oe("wand-sparkles",fR);/**
661
- * @license lucide-react v0.525.0 - ISC
662
- *
663
- * This source code is licensed under the ISC license.
664
- * See the LICENSE file in the root directory of this source tree.
665
- */const dR=[["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"}]],aj=oe("waves",dR);/**
666
- * @license lucide-react v0.525.0 - ISC
667
- *
668
- * This source code is licensed under the ISC license.
669
- * See the LICENSE file in the root directory of this source tree.
670
- */const hR=[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]],sj=oe("waypoints",hR);/**
671
- * @license lucide-react v0.525.0 - ISC
672
- *
673
- * This source code is licensed under the ISC license.
674
- * See the LICENSE file in the root directory of this source tree.
675
- */const yR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],lj=oe("x",yR);/**
676
- * @license lucide-react v0.525.0 - ISC
677
- *
678
- * This source code is licensed under the ISC license.
679
- * See the LICENSE file in the root directory of this source tree.
680
- */const mR=[["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"}]],oj=oe("zap",mR);function zw(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=zw(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function gR(){for(var e,t,r=0,a="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=zw(e))&&(a&&(a+=" "),a+=t);return a}const pR=(e,t)=>{const r=new Array(e.length+t.length);for(let a=0;a<e.length;a++)r[a]=e[a];for(let a=0;a<t.length;a++)r[e.length+a]=t[a];return r},vR=(e,t)=>({classGroupId:e,validator:t}),Dw=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Of="-",x2=[],bR="arbitrary..",_R=e=>{const t=xR(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return SR(c);const f=c.split(Of),d=f[0]===""&&f.length>1?1:0;return Lw(f,d,t)},getConflictingClassGroupIds:(c,f)=>{if(f){const d=a[c],y=r[c];return d?y?pR(y,d):d:y||x2}return r[c]||x2}}},Lw=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const s=e[t],o=r.nextPart.get(s);if(o){const y=Lw(e,t+1,o);if(y)return y}const c=r.validators;if(c===null)return;const f=t===0?e.join(Of):e.slice(t).join(Of),d=c.length;for(let y=0;y<d;y++){const p=c[y];if(p.validator(f))return p.classGroupId}},SR=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),a=t.slice(0,r);return a?bR+a:void 0})(),xR=e=>{const{theme:t,classGroups:r}=e;return wR(r,t)},wR=(e,t)=>{const r=Dw();for(const a in e){const s=e[a];Dp(s,r,a,t)}return r},Dp=(e,t,r,a)=>{const s=e.length;for(let o=0;o<s;o++){const c=e[o];ER(c,t,r,a)}},ER=(e,t,r,a)=>{if(typeof e=="string"){MR(e,t,r);return}if(typeof e=="function"){CR(e,t,r,a);return}kR(e,t,r,a)},MR=(e,t,r)=>{const a=e===""?t:Bw(t,e);a.classGroupId=r},CR=(e,t,r,a)=>{if(AR(e)){Dp(e(a),t,r,a);return}t.validators===null&&(t.validators=[]),t.validators.push(vR(r,e))},kR=(e,t,r,a)=>{const s=Object.entries(e),o=s.length;for(let c=0;c<o;c++){const[f,d]=s[c];Dp(d,Bw(t,f),r,a)}},Bw=(e,t)=>{let r=e;const a=t.split(Of),s=a.length;for(let o=0;o<s;o++){const c=a[o];let f=r.nextPart.get(c);f||(f=Dw(),r.nextPart.set(c,f)),r=f}return r},AR=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,TR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),a=Object.create(null);const s=(o,c)=>{r[o]=c,t++,t>e&&(t=0,a=r,r=Object.create(null))};return{get(o){let c=r[o];if(c!==void 0)return c;if((c=a[o])!==void 0)return s(o,c),c},set(o,c){o in r?r[o]=c:s(o,c)}}},Pg="!",w2=":",RR=[],E2=(e,t,r,a,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:a,isExternal:s}),NR=e=>{const{prefix:t,experimentalParseClassName:r}=e;let a=s=>{const o=[];let c=0,f=0,d=0,y;const p=s.length;for(let _=0;_<p;_++){const w=s[_];if(c===0&&f===0){if(w===w2){o.push(s.slice(d,_)),d=_+1;continue}if(w==="/"){y=_;continue}}w==="["?c++:w==="]"?c--:w==="("?f++:w===")"&&f--}const g=o.length===0?s:s.slice(d);let v=g,b=!1;g.endsWith(Pg)?(v=g.slice(0,-1),b=!0):g.startsWith(Pg)&&(v=g.slice(1),b=!0);const S=y&&y>d?y-d:void 0;return E2(o,b,v,S)};if(t){const s=t+w2,o=a;a=c=>c.startsWith(s)?o(c.slice(s.length)):E2(RR,!1,c,void 0,!0)}if(r){const s=a;a=o=>r({className:o,parseClassName:s})}return a},OR=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{t.set(r,1e6+a)}),r=>{const a=[];let s=[];for(let o=0;o<r.length;o++){const c=r[o],f=c[0]==="[",d=t.has(c);f||d?(s.length>0&&(s.sort(),a.push(...s),s=[]),a.push(c)):s.push(c)}return s.length>0&&(s.sort(),a.push(...s)),a}},zR=e=>({cache:TR(e.cacheSize),parseClassName:NR(e),sortModifiers:OR(e),..._R(e)}),DR=/\s+/,LR=(e,t)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:o}=t,c=[],f=e.trim().split(DR);let d="";for(let y=f.length-1;y>=0;y-=1){const p=f[y],{isExternal:g,modifiers:v,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:_}=r(p);if(g){d=p+(d.length>0?" "+d:d);continue}let w=!!_,M=a(w?S.substring(0,_):S);if(!M){if(!w){d=p+(d.length>0?" "+d:d);continue}if(M=a(S),!M){d=p+(d.length>0?" "+d:d);continue}w=!1}const C=v.length===0?"":v.length===1?v[0]:o(v).join(":"),E=b?C+Pg:C,k=E+M;if(c.indexOf(k)>-1)continue;c.push(k);const z=s(M,w);for(let N=0;N<z.length;++N){const D=z[N];c.push(E+D)}d=p+(d.length>0?" "+d:d)}return d},BR=(...e)=>{let t=0,r,a,s="";for(;t<e.length;)(r=e[t++])&&(a=jw(r))&&(s&&(s+=" "),s+=a);return s},jw=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=jw(e[a]))&&(r&&(r+=" "),r+=t);return r},jR=(e,...t)=>{let r,a,s,o;const c=d=>{const y=t.reduce((p,g)=>g(p),e());return r=zR(y),a=r.cache.get,s=r.cache.set,o=f,f(d)},f=d=>{const y=a(d);if(y)return y;const p=LR(d,r);return s(d,p),p};return o=c,(...d)=>o(BR(...d))},UR=[],Jt=e=>{const t=r=>r[e]||UR;return t.isThemeGetter=!0,t},Uw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,HR=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,qR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,VR=/\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$/,IR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,PR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$R=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ji=e=>HR.test(e),Qe=e=>!!e&&!Number.isNaN(Number(e)),Wi=e=>!!e&&Number.isInteger(Number(e)),tm=e=>e.endsWith("%")&&Qe(e.slice(0,-1)),ui=e=>qR.test(e),qw=()=>!0,FR=e=>VR.test(e)&&!IR.test(e),Lp=()=>!1,YR=e=>PR.test(e),ZR=e=>$R.test(e),GR=e=>!Ce(e)&&!ke(e),QR=e=>xa(e,Pw,Lp),Ce=e=>Uw.test(e),$a=e=>xa(e,$w,FR),M2=e=>xa(e,rN,Qe),XR=e=>xa(e,Yw,qw),KR=e=>xa(e,Fw,Lp),C2=e=>xa(e,Vw,Lp),JR=e=>xa(e,Iw,ZR),cf=e=>xa(e,Zw,YR),ke=e=>Hw.test(e),Qo=e=>vs(e,$w),WR=e=>vs(e,Fw),k2=e=>vs(e,Vw),eN=e=>vs(e,Pw),tN=e=>vs(e,Iw),ff=e=>vs(e,Zw,!0),nN=e=>vs(e,Yw,!0),xa=(e,t,r)=>{const a=Uw.exec(e);return a?a[1]?t(a[1]):r(a[2]):!1},vs=(e,t,r=!1)=>{const a=Hw.exec(e);return a?a[1]?t(a[1]):r:!1},Vw=e=>e==="position"||e==="percentage",Iw=e=>e==="image"||e==="url",Pw=e=>e==="length"||e==="size"||e==="bg-size",$w=e=>e==="length",rN=e=>e==="number",Fw=e=>e==="family-name",Yw=e=>e==="number"||e==="weight",Zw=e=>e==="shadow",iN=()=>{const e=Jt("color"),t=Jt("font"),r=Jt("text"),a=Jt("font-weight"),s=Jt("tracking"),o=Jt("leading"),c=Jt("breakpoint"),f=Jt("container"),d=Jt("spacing"),y=Jt("radius"),p=Jt("shadow"),g=Jt("inset-shadow"),v=Jt("text-shadow"),b=Jt("drop-shadow"),S=Jt("blur"),_=Jt("perspective"),w=Jt("aspect"),M=Jt("ease"),C=Jt("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...k(),ke,Ce],N=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],T=()=>[ke,Ce,d],L=()=>[Ji,"full","auto",...T()],Q=()=>[Wi,"none","subgrid",ke,Ce],j=()=>["auto",{span:["full",Wi,ke,Ce]},Wi,ke,Ce],B=()=>[Wi,"auto",ke,Ce],$=()=>["auto","min","max","fr",ke,Ce],G=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...T()],F=()=>[Ji,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],Z=()=>[Ji,"screen","full","dvw","lvw","svw","min","max","fit",...T()],K=()=>[Ji,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],J=()=>[e,ke,Ce],O=()=>[...k(),k2,C2,{position:[ke,Ce]}],I=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ae=()=>["auto","cover","contain",eN,QR,{size:[ke,Ce]}],ce=()=>[tm,Qo,$a],de=()=>["","none","full",y,ke,Ce],me=()=>["",Qe,Qo,$a],be=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[Qe,tm,k2,C2],Ue=()=>["","none",S,ke,Ce],De=()=>["none",Qe,ke,Ce],Re=()=>["none",Qe,ke,Ce],ze=()=>[Qe,ke,Ce],qe=()=>[Ji,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ui],breakpoint:[ui],color:[qw],container:[ui],"drop-shadow":[ui],ease:["in","out","in-out"],font:[GR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ui],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ui],shadow:[ui],spacing:["px",Qe],text:[ui],"text-shadow":[ui],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ji,Ce,ke,w]}],container:["container"],columns:[{columns:[Qe,Ce,ke,f]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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"],sr:["sr-only","not-sr-only"],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:z()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Wi,"auto",ke,Ce]}],basis:[{basis:[Ji,"full","auto",f,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,Ji,"auto","initial","none",Ce]}],grow:[{grow:["",Qe,ke,Ce]}],shrink:[{shrink:["",Qe,ke,Ce]}],order:[{order:[Wi,"first","last","none",ke,Ce]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mbs:[{mbs:U()}],mbe:[{mbe:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...K()]}],"min-block-size":[{"min-block":["auto",...K()]}],"max-block-size":[{"max-block":["none",...K()]}],w:[{w:[f,"screen",...F()]}],"min-w":[{"min-w":[f,"screen","none",...F()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",r,Qo,$a]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,nN,XR]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",tm,Ce]}],"font-family":[{font:[WR,KR,t]}],"font-features":[{"font-features":[Ce]}],"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:[s,ke,Ce]}],"line-clamp":[{"line-clamp":[Qe,"none",ke,M2]}],leading:[{leading:[o,...T()]}],"list-image":[{"list-image":["none",ke,Ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ke,Ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",ke,$a]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[Qe,"auto",ke,Ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke,Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ke,Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Wi,ke,Ce],radial:["",ke,Ce],conic:[Wi,ke,Ce]},tN,JR]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-bs":[{"border-bs":J()}],"border-color-be":[{"border-be":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,ke,Ce]}],"outline-w":[{outline:["",Qe,Qo,$a]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","none",p,ff,cf]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",g,ff,cf]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[Qe,$a]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",v,ff,cf]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[Qe,ke,Ce]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[ke,Ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ke,Ce]}],filter:[{filter:["","none",ke,Ce]}],blur:[{blur:Ue()}],brightness:[{brightness:[Qe,ke,Ce]}],contrast:[{contrast:[Qe,ke,Ce]}],"drop-shadow":[{"drop-shadow":["","none",b,ff,cf]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",Qe,ke,Ce]}],"hue-rotate":[{"hue-rotate":[Qe,ke,Ce]}],invert:[{invert:["",Qe,ke,Ce]}],saturate:[{saturate:[Qe,ke,Ce]}],sepia:[{sepia:["",Qe,ke,Ce]}],"backdrop-filter":[{"backdrop-filter":["","none",ke,Ce]}],"backdrop-blur":[{"backdrop-blur":Ue()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,ke,Ce]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,ke,Ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,ke,Ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,ke,Ce]}],"backdrop-invert":[{"backdrop-invert":["",Qe,ke,Ce]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,ke,Ce]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,ke,Ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,ke,Ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ke,Ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",ke,Ce]}],ease:[{ease:["linear","initial",M,ke,Ce]}],delay:[{delay:[Qe,ke,Ce]}],animate:[{animate:["none",C,ke,Ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ke,Ce]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:De()}],"rotate-x":[{"rotate-x":De()}],"rotate-y":[{"rotate-y":De()}],"rotate-z":[{"rotate-z":De()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[ke,Ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qe()}],"translate-x":[{"translate-x":qe()}],"translate-y":[{"translate-y":qe()}],"translate-z":[{"translate-z":qe()}],"translate-none":["translate-none"],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",ke,Ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",ke,Ce]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[Qe,Qo,$a,M2]}],stroke:[{stroke:["none",...J()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},uj=jR(iN),A2=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,T2=gR,cj=(e,t)=>r=>{var a;if((t==null?void 0:t.variants)==null)return T2(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:o}=t,c=Object.keys(s).map(y=>{const p=r==null?void 0:r[y],g=o==null?void 0:o[y];if(p===null)return null;const v=A2(p)||A2(g);return s[y][v]}),f=r&&Object.entries(r).reduce((y,p)=>{let[g,v]=p;return v===void 0||(y[g]=v),y},{}),d=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((y,p)=>{let{class:g,className:v,...b}=p;return Object.entries(b).every(S=>{let[_,w]=S;return Array.isArray(w)?w.includes({...o,...f}[_]):{...o,...f}[_]===w})?[...y,g,v]:y},[]);return T2(e,c,d,r==null?void 0:r.class,r==null?void 0:r.className)};var ot;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{const o={};for(const c of s)o[c]=c;return o},e.getValidEnumValues=s=>{const o=e.objectKeys(s).filter(f=>typeof s[s[f]]!="number"),c={};for(const f of o)c[f]=s[f];return e.objectValues(c)},e.objectValues=s=>e.objectKeys(s).map(function(o){return s[o]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const c in s)Object.prototype.hasOwnProperty.call(s,c)&&o.push(c);return o},e.find=(s,o)=>{for(const c of s)if(o(c))return c},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function a(s,o=" | "){return s.map(c=>typeof c=="string"?`'${c}'`:c).join(o)}e.joinValues=a,e.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(ot||(ot={}));var R2;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(R2||(R2={}));const Te=ot.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ia=e=>{switch(typeof e){case"undefined":return Te.undefined;case"string":return Te.string;case"number":return Number.isNaN(e)?Te.nan:Te.number;case"boolean":return Te.boolean;case"function":return Te.function;case"bigint":return Te.bigint;case"symbol":return Te.symbol;case"object":return Array.isArray(e)?Te.array:e===null?Te.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Te.promise:typeof Map<"u"&&e instanceof Map?Te.map:typeof Set<"u"&&e instanceof Set?Te.set:typeof Date<"u"&&e instanceof Date?Te.date:Te.object;default:return Te.unknown}},ve=ot.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class _i extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(o){return o.message},a={_errors:[]},s=o=>{for(const c of o.issues)if(c.code==="invalid_union")c.unionErrors.map(s);else if(c.code==="invalid_return_type")s(c.returnTypeError);else if(c.code==="invalid_arguments")s(c.argumentsError);else if(c.path.length===0)a._errors.push(r(c));else{let f=a,d=0;for(;d<c.path.length;){const y=c.path[d];d===c.path.length-1?(f[y]=f[y]||{_errors:[]},f[y]._errors.push(r(c))):f[y]=f[y]||{_errors:[]},f=f[y],d++}}};return s(this),a}static assert(t){if(!(t instanceof _i))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ot.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},a=[];for(const s of this.issues)if(s.path.length>0){const o=s.path[0];r[o]=r[o]||[],r[o].push(t(s))}else a.push(t(s));return{formErrors:a,fieldErrors:r}}get formErrors(){return this.flatten()}}_i.create=e=>new _i(e);const $g=(e,t)=>{let r;switch(e.code){case ve.invalid_type:e.received===Te.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case ve.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ot.jsonStringifyReplacer)}`;break;case ve.unrecognized_keys:r=`Unrecognized key(s) in object: ${ot.joinValues(e.keys,", ")}`;break;case ve.invalid_union:r="Invalid input";break;case ve.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ot.joinValues(e.options)}`;break;case ve.invalid_enum_value:r=`Invalid enum value. Expected ${ot.joinValues(e.options)}, received '${e.received}'`;break;case ve.invalid_arguments:r="Invalid function arguments";break;case ve.invalid_return_type:r="Invalid function return type";break;case ve.invalid_date:r="Invalid date";break;case ve.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ot.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case ve.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case ve.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case ve.custom:r="Invalid input";break;case ve.invalid_intersection_types:r="Intersection results could not be merged";break;case ve.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case ve.not_finite:r="Number must be finite";break;default:r=t.defaultError,ot.assertNever(e)}return{message:r}};let aN=$g;function sN(){return aN}const lN=e=>{const{data:t,path:r,errorMaps:a,issueData:s}=e,o=[...r,...s.path||[]],c={...s,path:o};if(s.message!==void 0)return{...s,path:o,message:s.message};let f="";const d=a.filter(y=>!!y).slice().reverse();for(const y of d)f=y(c,{data:t,defaultError:f}).message;return{...s,path:o,message:f}};function xe(e,t){const r=sN(),a=lN({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===$g?void 0:$g].filter(s=>!!s)});e.common.issues.push(a)}class Yn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const a=[];for(const s of r){if(s.status==="aborted")return Pe;s.status==="dirty"&&t.dirty(),a.push(s.value)}return{status:t.value,value:a}}static async mergeObjectAsync(t,r){const a=[];for(const s of r){const o=await s.key,c=await s.value;a.push({key:o,value:c})}return Yn.mergeObjectSync(t,a)}static mergeObjectSync(t,r){const a={};for(const s of r){const{key:o,value:c}=s;if(o.status==="aborted"||c.status==="aborted")return Pe;o.status==="dirty"&&t.dirty(),c.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof c.value<"u"||s.alwaysSet)&&(a[o.value]=c.value)}return{status:t.value,value:a}}}const Pe=Object.freeze({status:"aborted"}),Wo=e=>({status:"dirty",value:e}),cr=e=>({status:"valid",value:e}),N2=e=>e.status==="aborted",O2=e=>e.status==="dirty",Rl=e=>e.status==="valid",zf=e=>typeof Promise<"u"&&e instanceof Promise;var Oe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Oe||(Oe={}));class _a{constructor(t,r,a,s){this._cachedPath=[],this.parent=t,this.data=r,this._path=a,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const z2=(e,t)=>{if(Rl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new _i(e.common.issues);return this._error=r,this._error}}};function Xe(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:a,description:s}=e;if(t&&(r||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(c,f)=>{const{message:d}=e;return c.code==="invalid_enum_value"?{message:d??f.defaultError}:typeof f.data>"u"?{message:d??a??f.defaultError}:c.code!=="invalid_type"?{message:f.defaultError}:{message:d??r??f.defaultError}},description:s}}class at{get description(){return this._def.description}_getType(t){return ia(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:ia(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Yn,ctx:{common:t.parent.common,data:t.data,parsedType:ia(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(zf(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const a=this.safeParse(t,r);if(a.success)return a.data;throw a.error}safeParse(t,r){const a={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ia(t)},s=this._parseSync({data:t,path:a.path,parent:a});return z2(a,s)}"~validate"(t){var a,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ia(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:r});return Rl(o)?{value:o.value}:{issues:r.common.issues}}catch(o){(s=(a=o==null?void 0:o.message)==null?void 0:a.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(o=>Rl(o)?{value:o.value}:{issues:r.common.issues})}async parseAsync(t,r){const a=await this.safeParseAsync(t,r);if(a.success)return a.data;throw a.error}async safeParseAsync(t,r){const a={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ia(t)},s=this._parse({data:t,path:a.path,parent:a}),o=await(zf(s)?s:Promise.resolve(s));return z2(a,o)}refine(t,r){const a=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,o)=>{const c=t(s),f=()=>o.addIssue({code:ve.custom,...a(s)});return typeof Promise<"u"&&c instanceof Promise?c.then(d=>d?!0:(f(),!1)):c?!0:(f(),!1)})}refinement(t,r){return this._refinement((a,s)=>t(a)?!0:(s.addIssue(typeof r=="function"?r(a,s):r),!1))}_refinement(t){return new zl({schema:this,typeName:$e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return va.create(this,this._def)}nullable(){return Dl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jr.create(this)}promise(){return jf.create(this,this._def)}or(t){return Lf.create([this,t],this._def)}and(t){return Bf.create(this,t,this._def)}transform(t){return new zl({...Xe(this._def),schema:this,typeName:$e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Yg({...Xe(this._def),innerType:this,defaultValue:r,typeName:$e.ZodDefault})}brand(){return new RN({typeName:$e.ZodBranded,type:this,...Xe(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new Zg({...Xe(this._def),innerType:this,catchValue:r,typeName:$e.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Bp.create(this,t)}readonly(){return Gg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const oN=/^c[^\s-]{8,}$/i,uN=/^[0-9a-z]+$/,cN=/^[0-9A-HJKMNP-TV-Z]{26}$/i,fN=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,dN=/^[a-z0-9_-]{21}$/i,hN=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,yN=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,mN=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,gN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let nm;const pN=/^(?:(?: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])$/,vN=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,bN=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,_N=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,SN=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,xN=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Gw="((\\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])))",wN=new RegExp(`^${Gw}$`);function Qw(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function EN(e){return new RegExp(`^${Qw(e)}$`)}function MN(e){let t=`${Gw}T${Qw(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function CN(e,t){return!!((t==="v4"||!t)&&pN.test(e)||(t==="v6"||!t)&&bN.test(e))}function kN(e,t){if(!hN.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const a=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(a));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function AN(e,t){return!!((t==="v4"||!t)&&vN.test(e)||(t==="v6"||!t)&&_N.test(e))}class gi extends at{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Te.string){const o=this._getOrReturnCtx(t);return xe(o,{code:ve.invalid_type,expected:Te.string,received:o.parsedType}),Pe}const a=new Yn;let s;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),a.dirty());else if(o.kind==="max")t.data.length>o.value&&(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),a.dirty());else if(o.kind==="length"){const c=t.data.length>o.value,f=t.data.length<o.value;(c||f)&&(s=this._getOrReturnCtx(t,s),c?xe(s,{code:ve.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):f&&xe(s,{code:ve.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),a.dirty())}else if(o.kind==="email")mN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"email",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="emoji")nm||(nm=new RegExp(gN,"u")),nm.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"emoji",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="uuid")fN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"uuid",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="nanoid")dN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"nanoid",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="cuid")oN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"cuid",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="cuid2")uN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"cuid2",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="ulid")cN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"ulid",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),xe(s,{validation:"url",code:ve.invalid_string,message:o.message}),a.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"regex",code:ve.invalid_string,message:o.message}),a.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),a.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.invalid_string,validation:{startsWith:o.value},message:o.message}),a.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.invalid_string,validation:{endsWith:o.value},message:o.message}),a.dirty()):o.kind==="datetime"?MN(o).test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.invalid_string,validation:"datetime",message:o.message}),a.dirty()):o.kind==="date"?wN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.invalid_string,validation:"date",message:o.message}),a.dirty()):o.kind==="time"?EN(o).test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.invalid_string,validation:"time",message:o.message}),a.dirty()):o.kind==="duration"?yN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"duration",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="ip"?CN(t.data,o.version)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"ip",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="jwt"?kN(t.data,o.alg)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"jwt",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="cidr"?AN(t.data,o.version)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"cidr",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="base64"?SN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"base64",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="base64url"?xN.test(t.data)||(s=this._getOrReturnCtx(t,s),xe(s,{validation:"base64url",code:ve.invalid_string,message:o.message}),a.dirty()):ot.assertNever(o);return{status:a.value,value:t.data}}_regex(t,r,a){return this.refinement(s=>t.test(s),{validation:r,code:ve.invalid_string,...Oe.errToObj(a)})}_addCheck(t){return new gi({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Oe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Oe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Oe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Oe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Oe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Oe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Oe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Oe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Oe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Oe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Oe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Oe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Oe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Oe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Oe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Oe.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Oe.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...Oe.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Oe.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Oe.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Oe.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Oe.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Oe.errToObj(r)})}nonempty(t){return this.min(1,Oe.errToObj(t))}trim(){return new gi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new gi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new gi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}gi.create=e=>new gi({checks:[],typeName:$e.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Xe(e)});function TN(e,t){const r=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,s=r>a?r:a,o=Number.parseInt(e.toFixed(s).replace(".","")),c=Number.parseInt(t.toFixed(s).replace(".",""));return o%c/10**s}class us extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Te.number){const o=this._getOrReturnCtx(t);return xe(o,{code:ve.invalid_type,expected:Te.number,received:o.parsedType}),Pe}let a;const s=new Yn;for(const o of this._def.checks)o.kind==="int"?ot.isInteger(t.data)||(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?TN(t.data,o.value)!==0&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.not_finite,message:o.message}),s.dirty()):ot.assertNever(o);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Oe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Oe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Oe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Oe.toString(r))}setLimit(t,r,a,s){return new us({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:a,message:Oe.toString(s)}]})}_addCheck(t){return new us({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Oe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Oe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Oe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Oe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Oe.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ot.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(r===null||a.value>r)&&(r=a.value):a.kind==="max"&&(t===null||a.value<t)&&(t=a.value)}return Number.isFinite(r)&&Number.isFinite(t)}}us.create=e=>new us({checks:[],typeName:$e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Xe(e)});class cs extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Te.bigint)return this._getInvalidInput(t);let a;const s=new Yn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):ot.assertNever(o);return{status:s.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return xe(r,{code:ve.invalid_type,expected:Te.bigint,received:r.parsedType}),Pe}gte(t,r){return this.setLimit("min",t,!0,Oe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Oe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Oe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Oe.toString(r))}setLimit(t,r,a,s){return new cs({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:a,message:Oe.toString(s)}]})}_addCheck(t){return new cs({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}cs.create=e=>new cs({checks:[],typeName:$e.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Xe(e)});class Df extends at{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Te.boolean){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.boolean,received:a.parsedType}),Pe}return cr(t.data)}}Df.create=e=>new Df({typeName:$e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Xe(e)});class Nl extends at{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Te.date){const o=this._getOrReturnCtx(t);return xe(o,{code:ve.invalid_type,expected:Te.date,received:o.parsedType}),Pe}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return xe(o,{code:ve.invalid_date}),Pe}const a=new Yn;let s;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),a.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(s=this._getOrReturnCtx(t,s),xe(s,{code:ve.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),a.dirty()):ot.assertNever(o);return{status:a.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Nl({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Oe.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Oe.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Nl.create=e=>new Nl({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:$e.ZodDate,...Xe(e)});class D2 extends at{_parse(t){if(this._getType(t)!==Te.symbol){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.symbol,received:a.parsedType}),Pe}return cr(t.data)}}D2.create=e=>new D2({typeName:$e.ZodSymbol,...Xe(e)});class L2 extends at{_parse(t){if(this._getType(t)!==Te.undefined){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.undefined,received:a.parsedType}),Pe}return cr(t.data)}}L2.create=e=>new L2({typeName:$e.ZodUndefined,...Xe(e)});class B2 extends at{_parse(t){if(this._getType(t)!==Te.null){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.null,received:a.parsedType}),Pe}return cr(t.data)}}B2.create=e=>new B2({typeName:$e.ZodNull,...Xe(e)});class j2 extends at{constructor(){super(...arguments),this._any=!0}_parse(t){return cr(t.data)}}j2.create=e=>new j2({typeName:$e.ZodAny,...Xe(e)});class U2 extends at{constructor(){super(...arguments),this._unknown=!0}_parse(t){return cr(t.data)}}U2.create=e=>new U2({typeName:$e.ZodUnknown,...Xe(e)});class Sa extends at{_parse(t){const r=this._getOrReturnCtx(t);return xe(r,{code:ve.invalid_type,expected:Te.never,received:r.parsedType}),Pe}}Sa.create=e=>new Sa({typeName:$e.ZodNever,...Xe(e)});class H2 extends at{_parse(t){if(this._getType(t)!==Te.undefined){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.void,received:a.parsedType}),Pe}return cr(t.data)}}H2.create=e=>new H2({typeName:$e.ZodVoid,...Xe(e)});class jr extends at{_parse(t){const{ctx:r,status:a}=this._processInputParams(t),s=this._def;if(r.parsedType!==Te.array)return xe(r,{code:ve.invalid_type,expected:Te.array,received:r.parsedType}),Pe;if(s.exactLength!==null){const c=r.data.length>s.exactLength.value,f=r.data.length<s.exactLength.value;(c||f)&&(xe(r,{code:c?ve.too_big:ve.too_small,minimum:f?s.exactLength.value:void 0,maximum:c?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),a.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(xe(r,{code:ve.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),a.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(xe(r,{code:ve.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),a.dirty()),r.common.async)return Promise.all([...r.data].map((c,f)=>s.type._parseAsync(new _a(r,c,r.path,f)))).then(c=>Yn.mergeArray(a,c));const o=[...r.data].map((c,f)=>s.type._parseSync(new _a(r,c,r.path,f)));return Yn.mergeArray(a,o)}get element(){return this._def.type}min(t,r){return new jr({...this._def,minLength:{value:t,message:Oe.toString(r)}})}max(t,r){return new jr({...this._def,maxLength:{value:t,message:Oe.toString(r)}})}length(t,r){return new jr({...this._def,exactLength:{value:t,message:Oe.toString(r)}})}nonempty(t){return this.min(1,t)}}jr.create=(e,t)=>new jr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:$e.ZodArray,...Xe(t)});function dl(e){if(e instanceof Yt){const t={};for(const r in e.shape){const a=e.shape[r];t[r]=va.create(dl(a))}return new Yt({...e._def,shape:()=>t})}else return e instanceof jr?new jr({...e._def,type:dl(e.element)}):e instanceof va?va.create(dl(e.unwrap())):e instanceof Dl?Dl.create(dl(e.unwrap())):e instanceof fs?fs.create(e.items.map(t=>dl(t))):e}class Yt extends at{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=ot.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==Te.object){const y=this._getOrReturnCtx(t);return xe(y,{code:ve.invalid_type,expected:Te.object,received:y.parsedType}),Pe}const{status:a,ctx:s}=this._processInputParams(t),{shape:o,keys:c}=this._getCached(),f=[];if(!(this._def.catchall instanceof Sa&&this._def.unknownKeys==="strip"))for(const y in s.data)c.includes(y)||f.push(y);const d=[];for(const y of c){const p=o[y],g=s.data[y];d.push({key:{status:"valid",value:y},value:p._parse(new _a(s,g,s.path,y)),alwaysSet:y in s.data})}if(this._def.catchall instanceof Sa){const y=this._def.unknownKeys;if(y==="passthrough")for(const p of f)d.push({key:{status:"valid",value:p},value:{status:"valid",value:s.data[p]}});else if(y==="strict")f.length>0&&(xe(s,{code:ve.unrecognized_keys,keys:f}),a.dirty());else if(y!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const y=this._def.catchall;for(const p of f){const g=s.data[p];d.push({key:{status:"valid",value:p},value:y._parse(new _a(s,g,s.path,p)),alwaysSet:p in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const y=[];for(const p of d){const g=await p.key,v=await p.value;y.push({key:g,value:v,alwaysSet:p.alwaysSet})}return y}).then(y=>Yn.mergeObjectSync(a,y)):Yn.mergeObjectSync(a,d)}get shape(){return this._def.shape()}strict(t){return Oe.errToObj,new Yt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,a)=>{var o,c;const s=((c=(o=this._def).errorMap)==null?void 0:c.call(o,r,a).message)??a.defaultError;return r.code==="unrecognized_keys"?{message:Oe.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new Yt({...this._def,unknownKeys:"strip"})}passthrough(){return new Yt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Yt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Yt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:$e.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Yt({...this._def,catchall:t})}pick(t){const r={};for(const a of ot.objectKeys(t))t[a]&&this.shape[a]&&(r[a]=this.shape[a]);return new Yt({...this._def,shape:()=>r})}omit(t){const r={};for(const a of ot.objectKeys(this.shape))t[a]||(r[a]=this.shape[a]);return new Yt({...this._def,shape:()=>r})}deepPartial(){return dl(this)}partial(t){const r={};for(const a of ot.objectKeys(this.shape)){const s=this.shape[a];t&&!t[a]?r[a]=s:r[a]=s.optional()}return new Yt({...this._def,shape:()=>r})}required(t){const r={};for(const a of ot.objectKeys(this.shape))if(t&&!t[a])r[a]=this.shape[a];else{let o=this.shape[a];for(;o instanceof va;)o=o._def.innerType;r[a]=o}return new Yt({...this._def,shape:()=>r})}keyof(){return Xw(ot.objectKeys(this.shape))}}Yt.create=(e,t)=>new Yt({shape:()=>e,unknownKeys:"strip",catchall:Sa.create(),typeName:$e.ZodObject,...Xe(t)});Yt.strictCreate=(e,t)=>new Yt({shape:()=>e,unknownKeys:"strict",catchall:Sa.create(),typeName:$e.ZodObject,...Xe(t)});Yt.lazycreate=(e,t)=>new Yt({shape:e,unknownKeys:"strip",catchall:Sa.create(),typeName:$e.ZodObject,...Xe(t)});class Lf extends at{_parse(t){const{ctx:r}=this._processInputParams(t),a=this._def.options;function s(o){for(const f of o)if(f.result.status==="valid")return f.result;for(const f of o)if(f.result.status==="dirty")return r.common.issues.push(...f.ctx.common.issues),f.result;const c=o.map(f=>new _i(f.ctx.common.issues));return xe(r,{code:ve.invalid_union,unionErrors:c}),Pe}if(r.common.async)return Promise.all(a.map(async o=>{const c={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:c}),ctx:c}})).then(s);{let o;const c=[];for(const d of a){const y={...r,common:{...r.common,issues:[]},parent:null},p=d._parseSync({data:r.data,path:r.path,parent:y});if(p.status==="valid")return p;p.status==="dirty"&&!o&&(o={result:p,ctx:y}),y.common.issues.length&&c.push(y.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const f=c.map(d=>new _i(d));return xe(r,{code:ve.invalid_union,unionErrors:f}),Pe}}get options(){return this._def.options}}Lf.create=(e,t)=>new Lf({options:e,typeName:$e.ZodUnion,...Xe(t)});function Fg(e,t){const r=ia(e),a=ia(t);if(e===t)return{valid:!0,data:e};if(r===Te.object&&a===Te.object){const s=ot.objectKeys(t),o=ot.objectKeys(e).filter(f=>s.indexOf(f)!==-1),c={...e,...t};for(const f of o){const d=Fg(e[f],t[f]);if(!d.valid)return{valid:!1};c[f]=d.data}return{valid:!0,data:c}}else if(r===Te.array&&a===Te.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let o=0;o<e.length;o++){const c=e[o],f=t[o],d=Fg(c,f);if(!d.valid)return{valid:!1};s.push(d.data)}return{valid:!0,data:s}}else return r===Te.date&&a===Te.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Bf extends at{_parse(t){const{status:r,ctx:a}=this._processInputParams(t),s=(o,c)=>{if(N2(o)||N2(c))return Pe;const f=Fg(o.value,c.value);return f.valid?((O2(o)||O2(c))&&r.dirty(),{status:r.value,value:f.data}):(xe(a,{code:ve.invalid_intersection_types}),Pe)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([o,c])=>s(o,c)):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}Bf.create=(e,t,r)=>new Bf({left:e,right:t,typeName:$e.ZodIntersection,...Xe(r)});class fs extends at{_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==Te.array)return xe(a,{code:ve.invalid_type,expected:Te.array,received:a.parsedType}),Pe;if(a.data.length<this._def.items.length)return xe(a,{code:ve.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Pe;!this._def.rest&&a.data.length>this._def.items.length&&(xe(a,{code:ve.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...a.data].map((c,f)=>{const d=this._def.items[f]||this._def.rest;return d?d._parse(new _a(a,c,a.path,f)):null}).filter(c=>!!c);return a.common.async?Promise.all(o).then(c=>Yn.mergeArray(r,c)):Yn.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new fs({...this._def,rest:t})}}fs.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new fs({items:e,typeName:$e.ZodTuple,rest:null,...Xe(t)})};class q2 extends at{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==Te.map)return xe(a,{code:ve.invalid_type,expected:Te.map,received:a.parsedType}),Pe;const s=this._def.keyType,o=this._def.valueType,c=[...a.data.entries()].map(([f,d],y)=>({key:s._parse(new _a(a,f,a.path,[y,"key"])),value:o._parse(new _a(a,d,a.path,[y,"value"]))}));if(a.common.async){const f=new Map;return Promise.resolve().then(async()=>{for(const d of c){const y=await d.key,p=await d.value;if(y.status==="aborted"||p.status==="aborted")return Pe;(y.status==="dirty"||p.status==="dirty")&&r.dirty(),f.set(y.value,p.value)}return{status:r.value,value:f}})}else{const f=new Map;for(const d of c){const y=d.key,p=d.value;if(y.status==="aborted"||p.status==="aborted")return Pe;(y.status==="dirty"||p.status==="dirty")&&r.dirty(),f.set(y.value,p.value)}return{status:r.value,value:f}}}}q2.create=(e,t,r)=>new q2({valueType:t,keyType:e,typeName:$e.ZodMap,...Xe(r)});class lu extends at{_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==Te.set)return xe(a,{code:ve.invalid_type,expected:Te.set,received:a.parsedType}),Pe;const s=this._def;s.minSize!==null&&a.data.size<s.minSize.value&&(xe(a,{code:ve.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&a.data.size>s.maxSize.value&&(xe(a,{code:ve.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const o=this._def.valueType;function c(d){const y=new Set;for(const p of d){if(p.status==="aborted")return Pe;p.status==="dirty"&&r.dirty(),y.add(p.value)}return{status:r.value,value:y}}const f=[...a.data.values()].map((d,y)=>o._parse(new _a(a,d,a.path,y)));return a.common.async?Promise.all(f).then(d=>c(d)):c(f)}min(t,r){return new lu({...this._def,minSize:{value:t,message:Oe.toString(r)}})}max(t,r){return new lu({...this._def,maxSize:{value:t,message:Oe.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}lu.create=(e,t)=>new lu({valueType:e,minSize:null,maxSize:null,typeName:$e.ZodSet,...Xe(t)});class V2 extends at{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}V2.create=(e,t)=>new V2({getter:e,typeName:$e.ZodLazy,...Xe(t)});class I2 extends at{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return xe(r,{received:r.data,code:ve.invalid_literal,expected:this._def.value}),Pe}return{status:"valid",value:t.data}}get value(){return this._def.value}}I2.create=(e,t)=>new I2({value:e,typeName:$e.ZodLiteral,...Xe(t)});function Xw(e,t){return new Ol({values:e,typeName:$e.ZodEnum,...Xe(t)})}class Ol extends at{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),a=this._def.values;return xe(r,{expected:ot.joinValues(a),received:r.parsedType,code:ve.invalid_type}),Pe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),a=this._def.values;return xe(r,{received:r.data,code:ve.invalid_enum_value,options:a}),Pe}return cr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return Ol.create(t,{...this._def,...r})}exclude(t,r=this._def){return Ol.create(this.options.filter(a=>!t.includes(a)),{...this._def,...r})}}Ol.create=Xw;class P2 extends at{_parse(t){const r=ot.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(t);if(a.parsedType!==Te.string&&a.parsedType!==Te.number){const s=ot.objectValues(r);return xe(a,{expected:ot.joinValues(s),received:a.parsedType,code:ve.invalid_type}),Pe}if(this._cache||(this._cache=new Set(ot.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=ot.objectValues(r);return xe(a,{received:a.data,code:ve.invalid_enum_value,options:s}),Pe}return cr(t.data)}get enum(){return this._def.values}}P2.create=(e,t)=>new P2({values:e,typeName:$e.ZodNativeEnum,...Xe(t)});class jf extends at{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.promise&&r.common.async===!1)return xe(r,{code:ve.invalid_type,expected:Te.promise,received:r.parsedType}),Pe;const a=r.parsedType===Te.promise?r.data:Promise.resolve(r.data);return cr(a.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}jf.create=(e,t)=>new jf({type:e,typeName:$e.ZodPromise,...Xe(t)});class zl extends at{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:a}=this._processInputParams(t),s=this._def.effect||null,o={addIssue:c=>{xe(a,c),c.fatal?r.abort():r.dirty()},get path(){return a.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const c=s.transform(a.data,o);if(a.common.async)return Promise.resolve(c).then(async f=>{if(r.value==="aborted")return Pe;const d=await this._def.schema._parseAsync({data:f,path:a.path,parent:a});return d.status==="aborted"?Pe:d.status==="dirty"||r.value==="dirty"?Wo(d.value):d});{if(r.value==="aborted")return Pe;const f=this._def.schema._parseSync({data:c,path:a.path,parent:a});return f.status==="aborted"?Pe:f.status==="dirty"||r.value==="dirty"?Wo(f.value):f}}if(s.type==="refinement"){const c=f=>{const d=s.refinement(f,o);if(a.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return f};if(a.common.async===!1){const f=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return f.status==="aborted"?Pe:(f.status==="dirty"&&r.dirty(),c(f.value),{status:r.value,value:f.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(f=>f.status==="aborted"?Pe:(f.status==="dirty"&&r.dirty(),c(f.value).then(()=>({status:r.value,value:f.value}))))}if(s.type==="transform")if(a.common.async===!1){const c=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Rl(c))return Pe;const f=s.transform(c.value,o);if(f instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:f}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(c=>Rl(c)?Promise.resolve(s.transform(c.value,o)).then(f=>({status:r.value,value:f})):Pe);ot.assertNever(s)}}zl.create=(e,t,r)=>new zl({schema:e,typeName:$e.ZodEffects,effect:t,...Xe(r)});zl.createWithPreprocess=(e,t,r)=>new zl({schema:t,effect:{type:"preprocess",transform:e},typeName:$e.ZodEffects,...Xe(r)});class va extends at{_parse(t){return this._getType(t)===Te.undefined?cr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}va.create=(e,t)=>new va({innerType:e,typeName:$e.ZodOptional,...Xe(t)});class Dl extends at{_parse(t){return this._getType(t)===Te.null?cr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Dl.create=(e,t)=>new Dl({innerType:e,typeName:$e.ZodNullable,...Xe(t)});class Yg extends at{_parse(t){const{ctx:r}=this._processInputParams(t);let a=r.data;return r.parsedType===Te.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Yg.create=(e,t)=>new Yg({innerType:e,typeName:$e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Xe(t)});class Zg extends at{_parse(t){const{ctx:r}=this._processInputParams(t),a={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return zf(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new _i(a.common.issues)},input:a.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new _i(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}Zg.create=(e,t)=>new Zg({innerType:e,typeName:$e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Xe(t)});class $2 extends at{_parse(t){if(this._getType(t)!==Te.nan){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.nan,received:a.parsedType}),Pe}return{status:"valid",value:t.data}}}$2.create=e=>new $2({typeName:$e.ZodNaN,...Xe(e)});class RN extends at{_parse(t){const{ctx:r}=this._processInputParams(t),a=r.data;return this._def.type._parse({data:a,path:r.path,parent:r})}unwrap(){return this._def.type}}class Bp extends at{_parse(t){const{status:r,ctx:a}=this._processInputParams(t);if(a.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?Pe:o.status==="dirty"?(r.dirty(),Wo(o.value)):this._def.out._parseAsync({data:o.value,path:a.path,parent:a})})();{const s=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?Pe:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:a.path,parent:a})}}static create(t,r){return new Bp({in:t,out:r,typeName:$e.ZodPipeline})}}class Gg extends at{_parse(t){const r=this._def.innerType._parse(t),a=s=>(Rl(s)&&(s.value=Object.freeze(s.value)),s);return zf(r)?r.then(s=>a(s)):a(r)}unwrap(){return this._def.innerType}}Gg.create=(e,t)=>new Gg({innerType:e,typeName:$e.ZodReadonly,...Xe(t)});var $e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})($e||($e={}));const fj=gi.create,dj=us.create;cs.create;const hj=Df.create;Nl.create;Sa.create;const yj=jr.create,mj=Yt.create;Lf.create;Bf.create;fs.create;const gj=Ol.create;jf.create;va.create;Dl.create;const pj={string:(e=>gi.create({...e,coerce:!0})),number:(e=>us.create({...e,coerce:!0})),boolean:(e=>Df.create({...e,coerce:!0})),bigint:(e=>cs.create({...e,coerce:!0})),date:(e=>Nl.create({...e,coerce:!0}))},F2=e=>{let t;const r=new Set,a=(y,p)=>{const g=typeof y=="function"?y(t):y;if(!Object.is(g,t)){const v=t;t=p??(typeof g!="object"||g===null)?g:Object.assign({},t,g),r.forEach(b=>b(t,v))}},s=()=>t,f={setState:a,getState:s,getInitialState:()=>d,subscribe:y=>(r.add(y),()=>r.delete(y))},d=t=e(a,s,f);return f},NN=(e=>e?F2(e):F2),ON=e=>e;function zN(e,t=ON){const r=jt.useSyncExternalStore(e.subscribe,jt.useCallback(()=>t(e.getState()),[e,t]),jt.useCallback(()=>t(e.getInitialState()),[e,t]));return jt.useDebugValue(r),r}const Y2=e=>{const t=NN(e),r=a=>zN(t,a);return Object.assign(r,t),r},vj=(e=>e?Y2(e):Y2);var rm={},im={},Z2;function DN(){return Z2||(Z2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(im)),im}var am={},G2;function LN(){return G2||(G2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(am)),am}var sm={},Q2;function Kw(){return Q2||(Q2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){var a;return typeof r=="string"||typeof r=="symbol"?r:Object.is((a=r==null?void 0:r.valueOf)==null?void 0:a.call(r),-0)?"-0":String(r)}e.toKey=t})(sm)),sm}var lm={},om={},X2;function BN(){return X2||(X2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const a=String(r);return a==="0"&&Object.is(Number(r),-0)?"-0":a}e.toString=t})(om)),om}var K2;function Jw(){return K2||(K2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=BN(),r=Kw();function a(s){if(Array.isArray(s))return s.map(r.toKey);if(typeof s=="symbol")return[s];s=t.toString(s);const o=[],c=s.length;if(c===0)return o;let f=0,d="",y="",p=!1;for(s.charCodeAt(0)===46&&(o.push(""),f++);f<c;){const g=s[f];y?g==="\\"&&f+1<c?(f++,d+=s[f]):g===y?y="":d+=g:p?g==='"'||g==="'"?y=g:g==="]"?(p=!1,o.push(d),d=""):d+=g:g==="["?(p=!0,d&&(o.push(d),d="")):g==="."?d&&(o.push(d),d=""):d+=g,f++}return d&&o.push(d),o}e.toPath=a})(lm)),lm}var J2;function jN(){return J2||(J2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=DN(),r=LN(),a=Kw(),s=Jw();function o(f,d,y){if(f==null)return y;switch(typeof d){case"string":{if(t.isUnsafeProperty(d))return y;const p=f[d];return p===void 0?r.isDeepKey(d)?o(f,s.toPath(d),y):y:p}case"number":case"symbol":{typeof d=="number"&&(d=a.toKey(d));const p=f[d];return p===void 0?y:p}default:{if(Array.isArray(d))return c(f,d,y);if(Object.is(d==null?void 0:d.valueOf(),-0)?d="-0":d=String(d),t.isUnsafeProperty(d))return y;const p=f[d];return p===void 0?y:p}}}function c(f,d,y){if(d.length===0)return y;let p=f;for(let g=0;g<d.length;g++){if(p==null||t.isUnsafeProperty(d[g]))return y;p=p[d[g]]}return p===void 0?y:p}e.get=o})(rm)),rm}var um,W2;function UN(){return W2||(W2=1,um=jN().get),um}var HN=UN();const bj=Er(HN);var cm={},fm={},e_;function qN(){return e_||(e_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(fm)),fm}var t_;function VN(){return t_||(t_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qN();function r(a){return a!=null&&typeof a!="function"&&t.isLength(a.length)}e.isArrayLike=r})(cm)),cm}var dm={},n_;function IN(){return n_||(n_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(dm)),dm}var hm={},r_;function PN(){return r_||(r_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,a){return r===a||Number.isNaN(r)&&Number.isNaN(a)}e.isEqualsSameValueZero=t})(hm)),hm}var ym={},i_;function $N(){return i_||(i_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(a,s=Number.MAX_SAFE_INTEGER){switch(typeof a){case"number":return Number.isInteger(a)&&a>=0&&a<s;case"symbol":return!1;case"string":return t.test(a)}}e.isIndex=r})(ym)),ym}var mm={exports:{}},gm={},pm={exports:{}},vm={};/**
681
- * @license React
682
- * use-sync-external-store-shim.production.js
683
- *
684
- * Copyright (c) Meta Platforms, Inc. and affiliates.
685
- *
686
- * This source code is licensed under the MIT license found in the
687
- * LICENSE file in the root directory of this source tree.
688
- */var a_;function FN(){if(a_)return vm;a_=1;var e=Pl();function t(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var r=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,o=e.useLayoutEffect,c=e.useDebugValue;function f(g,v){var b=v(),S=a({inst:{value:b,getSnapshot:v}}),_=S[0].inst,w=S[1];return o(function(){_.value=b,_.getSnapshot=v,d(_)&&w({inst:_})},[g,b,v]),s(function(){return d(_)&&w({inst:_}),g(function(){d(_)&&w({inst:_})})},[g]),c(b),b}function d(g){var v=g.getSnapshot;g=g.value;try{var b=v();return!r(g,b)}catch{return!0}}function y(g,v){return v()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:f;return vm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,vm}var s_;function YN(){return s_||(s_=1,pm.exports=FN()),pm.exports}/**
689
- * @license React
690
- * use-sync-external-store-shim/with-selector.production.js
691
- *
692
- * Copyright (c) Meta Platforms, Inc. and affiliates.
693
- *
694
- * This source code is licensed under the MIT license found in the
695
- * LICENSE file in the root directory of this source tree.
696
- */var l_;function ZN(){if(l_)return gm;l_=1;var e=Pl(),t=YN();function r(y,p){return y===p&&(y!==0||1/y===1/p)||y!==y&&p!==p}var a=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,o=e.useRef,c=e.useEffect,f=e.useMemo,d=e.useDebugValue;return gm.useSyncExternalStoreWithSelector=function(y,p,g,v,b){var S=o(null);if(S.current===null){var _={hasValue:!1,value:null};S.current=_}else _=S.current;S=f(function(){function M(N){if(!C){if(C=!0,E=N,N=v(N),b!==void 0&&_.hasValue){var D=_.value;if(b(D,N))return k=D}return k=N}if(D=k,a(E,N))return D;var T=v(N);return b!==void 0&&b(D,T)?(E=N,D):(E=N,k=T)}var C=!1,E,k,z=g===void 0?null:g;return[function(){return M(p())},z===null?void 0:function(){return M(z())}]},[p,g,v,b]);var w=s(y,S[0],S[1]);return c(function(){_.hasValue=!0,_.value=w},[w]),d(w),w},gm}var o_;function GN(){return o_||(o_=1,mm.exports=ZN()),mm.exports}var QN=GN();const XN=Er(QN);function KN(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function JN(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function WN(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${t}[${r}]`)}}var u_=e=>Array.isArray(e)?e:[e];function e6(e){const t=Array.isArray(e[0])?e[0]:e;return WN(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function t6(e,t){const r=[],{length:a}=e;for(let s=0;s<a;s++)r.push(e[s].apply(null,t));return r}var n6=class{constructor(e){this.value=e}deref(){return this.value}},r6=typeof WeakRef<"u"?WeakRef:n6,i6=0,c_=1;function df(){return{s:i6,v:void 0,o:null,p:null}}function Ww(e,t={}){let r=df();const{resultEqualityCheck:a}=t;let s,o=0;function c(){var g;let f=r;const{length:d}=arguments;for(let v=0,b=d;v<b;v++){const S=arguments[v];if(typeof S=="function"||typeof S=="object"&&S!==null){let _=f.o;_===null&&(f.o=_=new WeakMap);const w=_.get(S);w===void 0?(f=df(),_.set(S,f)):f=w}else{let _=f.p;_===null&&(f.p=_=new Map);const w=_.get(S);w===void 0?(f=df(),_.set(S,f)):f=w}}const y=f;let p;if(f.s===c_)p=f.v;else if(p=e.apply(null,arguments),o++,a){const v=((g=s==null?void 0:s.deref)==null?void 0:g.call(s))??s;v!=null&&a(v,p)&&(p=v,o!==0&&o--),s=typeof p=="object"&&p!==null||typeof p=="function"?new r6(p):p}return y.s=c_,y.v=p,p}return c.clearCache=()=>{r=df(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}function a6(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,a=(...s)=>{let o=0,c=0,f,d={},y=s.pop();typeof y=="object"&&(d=y,y=s.pop()),KN(y,`createSelector expects an output function after the inputs, but received: [${typeof y}]`);const p={...r,...d},{memoize:g,memoizeOptions:v=[],argsMemoize:b=Ww,argsMemoizeOptions:S=[]}=p,_=u_(v),w=u_(S),M=e6(s),C=g(function(){return o++,y.apply(null,arguments)},..._),E=b(function(){c++;const z=t6(M,arguments);return f=C.apply(null,z),f},...w);return Object.assign(E,{resultFunc:y,memoizedResultFunc:C,dependencies:M,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>f,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:g,argsMemoize:b})};return Object.assign(a,{withTypes:()=>a}),a}var s6=a6(Ww),l6=Object.assign((e,t=s6)=>{JN(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),a=r.map(o=>e[o]);return t(a,(...o)=>o.reduce((c,f,d)=>(c[r[d]]=f,c),{}))},{withTypes:()=>l6}),bm={},_m={},Sm={},f_;function o6(){return f_||(f_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(a){return typeof a=="symbol"?1:a===null?2:a===void 0?3:a!==a?4:0}const r=(a,s,o)=>{if(a!==s){const c=t(a),f=t(s);if(c===f&&c===0){if(a<s)return o==="desc"?1:-1;if(a>s)return o==="desc"?-1:1}return o==="desc"?f-c:c-f}return 0};e.compareValues=r})(Sm)),Sm}var xm={},wm={},d_;function eE(){return d_||(d_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(wm)),wm}var h_;function u6(){return h_||(h_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eE(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(o,c){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(a.test(o)||!r.test(o))||c!=null&&Object.hasOwn(c,o)}e.isKey=s})(xm)),xm}var y_;function c6(){return y_||(y_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=o6(),r=u6(),a=Jw();function s(o,c,f,d){if(o==null)return[];f=d?void 0:f,Array.isArray(o)||(o=Object.values(o)),Array.isArray(c)||(c=c==null?[null]:[c]),c.length===0&&(c=[null]),Array.isArray(f)||(f=f==null?[]:[f]),f=f.map(b=>String(b));const y=(b,S)=>{let _=b;for(let w=0;w<S.length&&_!=null;++w)_=_[S[w]];return _},p=(b,S)=>S==null||b==null?S:typeof b=="object"&&"key"in b?Object.hasOwn(S,b.key)?S[b.key]:y(S,b.path):typeof b=="function"?b(S):Array.isArray(b)?y(S,b):typeof S=="object"?S[b]:S,g=c.map(b=>(Array.isArray(b)&&b.length===1&&(b=b[0]),b==null||typeof b=="function"||Array.isArray(b)||r.isKey(b)?b:{key:b,path:a.toPath(b)}));return o.map(b=>({original:b,criteria:g.map(S=>p(S,b))})).slice().sort((b,S)=>{for(let _=0;_<g.length;_++){const w=t.compareValues(b.criteria[_],S.criteria[_],f[_]);if(w!==0)return w}return 0}).map(b=>b.original)}e.orderBy=s})(_m)),_m}var Em={},m_;function f6(){return m_||(m_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,a=1){const s=[],o=Math.floor(a),c=(f,d)=>{for(let y=0;y<f.length;y++){const p=f[y];Array.isArray(p)&&d<o?c(p,d+1):s.push(p)}};return c(r,0),s}e.flatten=t})(Em)),Em}var Mm={},g_;function tE(){return g_||(g_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$N(),r=VN(),a=IN(),s=PN();function o(c,f,d){return a.isObject(d)&&(typeof f=="number"&&r.isArrayLike(d)&&t.isIndex(f)&&f<d.length||typeof f=="string"&&f in d)?s.isEqualsSameValueZero(d[f],c):!1}e.isIterateeCall=o})(Mm)),Mm}var p_;function d6(){return p_||(p_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=c6(),r=f6(),a=tE();function s(o,...c){const f=c.length;return f>1&&a.isIterateeCall(o,c[0],c[1])?c=[]:f>2&&a.isIterateeCall(c[0],c[1],c[2])&&(c=[c[0]]),t.orderBy(o,r.flatten(c),["asc"])}e.sortBy=s})(bm)),bm}var Cm,v_;function h6(){return v_||(v_=1,Cm=d6().sortBy),Cm}var y6=h6();const _j=Er(y6);function cn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var m6=typeof Symbol=="function"&&Symbol.observable||"@@observable",b_=m6,km=()=>Math.random().toString(36).substring(7).split("").join("."),g6={INIT:`@@redux/INIT${km()}`,REPLACE:`@@redux/REPLACE${km()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${km()}`},Uf=g6;function jp(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function nE(e,t,r){if(typeof e!="function")throw new Error(cn(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(cn(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(cn(1));return r(nE)(e,t)}let a=e,s=t,o=new Map,c=o,f=0,d=!1;function y(){c===o&&(c=new Map,o.forEach((w,M)=>{c.set(M,w)}))}function p(){if(d)throw new Error(cn(3));return s}function g(w){if(typeof w!="function")throw new Error(cn(4));if(d)throw new Error(cn(5));let M=!0;y();const C=f++;return c.set(C,w),function(){if(M){if(d)throw new Error(cn(6));M=!1,y(),c.delete(C),o=null}}}function v(w){if(!jp(w))throw new Error(cn(7));if(typeof w.type>"u")throw new Error(cn(8));if(typeof w.type!="string")throw new Error(cn(17));if(d)throw new Error(cn(9));try{d=!0,s=a(s,w)}finally{d=!1}return(o=c).forEach(C=>{C()}),w}function b(w){if(typeof w!="function")throw new Error(cn(10));a=w,v({type:Uf.REPLACE})}function S(){const w=g;return{subscribe(M){if(typeof M!="object"||M===null)throw new Error(cn(11));function C(){const k=M;k.next&&k.next(p())}return C(),{unsubscribe:w(C)}},[b_](){return this}}}return v({type:Uf.INIT}),{dispatch:v,subscribe:g,getState:p,replaceReducer:b,[b_]:S}}function p6(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Uf.INIT})>"u")throw new Error(cn(12));if(typeof r(void 0,{type:Uf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(cn(13))})}function v6(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const c=t[o];typeof e[c]=="function"&&(r[c]=e[c])}const a=Object.keys(r);let s;try{p6(r)}catch(o){s=o}return function(c={},f){if(s)throw s;let d=!1;const y={};for(let p=0;p<a.length;p++){const g=a[p],v=r[g],b=c[g],S=v(b,f);if(typeof S>"u")throw f&&f.type,new Error(cn(14));y[g]=S,d=d||S!==b}return d=d||a.length!==Object.keys(c).length,d?y:c}}function Hf(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...a)=>t(r(...a)))}function b6(...e){return t=>(r,a)=>{const s=t(r,a);let o=()=>{throw new Error(cn(15))};const c={getState:s.getState,dispatch:(d,...y)=>o(d,...y)},f=e.map(d=>d(c));return o=Hf(...f)(s.dispatch),{...s,dispatch:o}}}function rE(e){return jp(e)&&"type"in e&&typeof e.type=="string"}var iE=Symbol.for("immer-nothing"),__=Symbol.for("immer-draftable"),_n=Symbol.for("immer-state");function pr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var $n=Object,Ll=$n.getPrototypeOf,qf="constructor",ud="prototype",Qg="configurable",Vf="enumerable",Mf="writable",ou="value",Si=e=>!!e&&!!e[_n];function wr(e){var t;return e?aE(e)||fd(e)||!!e[__]||!!((t=e[qf])!=null&&t[__])||dd(e)||hd(e):!1}var _6=$n[ud][qf].toString(),S_=new WeakMap;function aE(e){if(!e||!Up(e))return!1;const t=Ll(e);if(t===null||t===$n[ud])return!0;const r=$n.hasOwnProperty.call(t,qf)&&t[qf];if(r===Object)return!0;if(!hl(r))return!1;let a=S_.get(r);return a===void 0&&(a=Function.toString.call(r),S_.set(r,a)),a===_6}function cd(e,t,r=!0){Au(e)===0?(r?Reflect.ownKeys(e):$n.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((a,s)=>t(s,a,e))}function Au(e){const t=e[_n];return t?t.type_:fd(e)?1:dd(e)?2:hd(e)?3:0}var x_=(e,t,r=Au(e))=>r===2?e.has(t):$n[ud].hasOwnProperty.call(e,t),Xg=(e,t,r=Au(e))=>r===2?e.get(t):e[t],If=(e,t,r,a=Au(e))=>{a===2?e.set(t,r):a===3?e.add(r):e[t]=r};function S6(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var fd=Array.isArray,dd=e=>e instanceof Map,hd=e=>e instanceof Set,Up=e=>typeof e=="object",hl=e=>typeof e=="function",Am=e=>typeof e=="boolean";function x6(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var fi=e=>e.copy_||e.base_,Hp=e=>e.modified_?e.copy_:e.base_;function Kg(e,t){if(dd(e))return new Map(e);if(hd(e))return new Set(e);if(fd(e))return Array[ud].slice.call(e);const r=aE(e);if(t===!0||t==="class_only"&&!r){const a=$n.getOwnPropertyDescriptors(e);delete a[_n];let s=Reflect.ownKeys(a);for(let o=0;o<s.length;o++){const c=s[o],f=a[c];f[Mf]===!1&&(f[Mf]=!0,f[Qg]=!0),(f.get||f.set)&&(a[c]={[Qg]:!0,[Mf]:!0,[Vf]:f[Vf],[ou]:e[c]})}return $n.create(Ll(e),a)}else{const a=Ll(e);if(a!==null&&r)return{...e};const s=$n.create(a);return $n.assign(s,e)}}function qp(e,t=!1){return yd(e)||Si(e)||!wr(e)||(Au(e)>1&&$n.defineProperties(e,{set:hf,add:hf,clear:hf,delete:hf}),$n.freeze(e),t&&cd(e,(r,a)=>{qp(a,!0)},!1)),e}function w6(){pr(2)}var hf={[ou]:w6};function yd(e){return e===null||!Up(e)?!0:$n.isFrozen(e)}var Pf="MapSet",Jg="Patches",w_="ArrayMethods",sE={};function ds(e){const t=sE[e];return t||pr(0,e),t}var E_=e=>!!sE[e],uu,lE=()=>uu,E6=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:E_(Pf)?ds(Pf):void 0,arrayMethodsPlugin_:E_(w_)?ds(w_):void 0});function M_(e,t){t&&(e.patchPlugin_=ds(Jg),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Wg(e){ep(e),e.drafts_.forEach(M6),e.drafts_=null}function ep(e){e===uu&&(uu=e.parent_)}var C_=e=>uu=E6(uu,e);function M6(e){const t=e[_n];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function k_(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[_n].modified_&&(Wg(t),pr(4)),wr(e)&&(e=A_(t,e));const{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[_n].base_,e,t)}else e=A_(t,r);return C6(t,e,!0),Wg(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==iE?e:void 0}function A_(e,t){if(yd(t))return t;const r=t[_n];if(!r)return $f(t,e.handledSet_,e);if(!md(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:a}=r;if(a)for(;a.length>0;)a.pop()(e);cE(r,e)}return r.copy_}function C6(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&qp(t,r)}function oE(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var md=(e,t)=>e.scope_===t,k6=[];function uE(e,t,r,a){const s=fi(e),o=e.type_;if(a!==void 0&&Xg(s,a,o)===t){If(s,a,r,o);return}if(!e.draftLocations_){const f=e.draftLocations_=new Map;cd(s,(d,y)=>{if(Si(y)){const p=f.get(y)||[];p.push(d),f.set(y,p)}})}const c=e.draftLocations_.get(t)??k6;for(const f of c)If(s,f,r,o)}function A6(e,t,r){e.callbacks_.push(function(s){var f;const o=t;if(!o||!md(o,s))return;(f=s.mapSetPlugin_)==null||f.fixSetContents(o);const c=Hp(o);uE(e,o.draft_??o,c,r),cE(o,s)})}function cE(e,t){var a;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((a=e.assigned_)==null?void 0:a.size)??0)>0)){const{patchPlugin_:s}=t;if(s){const o=s.getPath(e);o&&s.generatePatches_(e,o,t)}oE(e)}}function T6(e,t,r){const{scope_:a}=e;if(Si(r)){const s=r[_n];md(s,a)&&s.callbacks_.push(function(){Cf(e);const c=Hp(s);uE(e,r,c,t)})}else wr(r)&&e.callbacks_.push(function(){const o=fi(e);e.type_===3?o.has(r)&&$f(r,a.handledSet_,a):Xg(o,t,e.type_)===r&&a.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&$f(Xg(e.copy_,t,e.type_),a.handledSet_,a)})}function $f(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Si(e)||t.has(e)||!wr(e)||yd(e)||(t.add(e),cd(e,(a,s)=>{if(Si(s)){const o=s[_n];if(md(o,r)){const c=Hp(o);If(e,a,c,e.type_),oE(o)}}else wr(s)&&$f(s,t,r)})),e}function R6(e,t){const r=fd(e),a={type_:r?1:0,scope_:t?t.scope_:lE(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let s=a,o=Ff;r&&(s=[a],o=cu);const{revoke:c,proxy:f}=Proxy.revocable(s,o);return a.draft_=f,a.revoke_=c,[f,a]}var Ff={get(e,t){if(t===_n)return e;let r=e.scope_.arrayMethodsPlugin_;const a=e.type_===1&&typeof t=="string";if(a&&r!=null&&r.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const s=fi(e);if(!x_(s,t,e.type_))return N6(e,s,t);const o=s[t];if(e.finalized_||!wr(o)||a&&e.operationMethod&&(r!=null&&r.isMutatingArrayMethod(e.operationMethod))&&x6(t))return o;if(o===Tm(e.base_,t)){Cf(e);const c=e.type_===1?+t:t,f=np(e.scope_,o,e,c);return e.copy_[c]=f}return o},has(e,t){return t in fi(e)},ownKeys(e){return Reflect.ownKeys(fi(e))},set(e,t,r){const a=fE(fi(e),t);if(a!=null&&a.set)return a.set.call(e.draft_,r),!0;if(!e.modified_){const s=Tm(fi(e),t),o=s==null?void 0:s[_n];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(S6(r,s)&&(r!==void 0||x_(e.base_,t,e.type_)))return!0;Cf(e),tp(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),T6(e,t,r)),!0},deleteProperty(e,t){return Cf(e),Tm(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),tp(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=fi(e),a=Reflect.getOwnPropertyDescriptor(r,t);return a&&{[Mf]:!0,[Qg]:e.type_!==1||t!=="length",[Vf]:a[Vf],[ou]:r[t]}},defineProperty(){pr(11)},getPrototypeOf(e){return Ll(e.base_)},setPrototypeOf(){pr(12)}},cu={};for(let e in Ff){let t=Ff[e];cu[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}cu.deleteProperty=function(e,t){return cu.set.call(this,e,t,void 0)};cu.set=function(e,t,r){return Ff.set.call(this,e[0],t,r,e[0])};function Tm(e,t){const r=e[_n];return(r?fi(r):e)[t]}function N6(e,t,r){var s;const a=fE(t,r);return a?ou in a?a[ou]:(s=a.get)==null?void 0:s.call(e.draft_):void 0}function fE(e,t){if(!(t in e))return;let r=Ll(e);for(;r;){const a=Object.getOwnPropertyDescriptor(r,t);if(a)return a;r=Ll(r)}}function tp(e){e.modified_||(e.modified_=!0,e.parent_&&tp(e.parent_))}function Cf(e){e.copy_||(e.assigned_=new Map,e.copy_=Kg(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var O6=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,a,s)=>{if(hl(r)&&!hl(a)){const c=a;a=r;const f=this;return function(y=c,...p){return f.produce(y,g=>a.call(this,g,...p))}}hl(a)||pr(6),s!==void 0&&!hl(s)&&pr(7);let o;if(wr(r)){const c=C_(this),f=np(c,r,void 0);let d=!0;try{o=a(f),d=!1}finally{d?Wg(c):ep(c)}return M_(c,s),k_(o,c)}else if(!r||!Up(r)){if(o=a(r),o===void 0&&(o=r),o===iE&&(o=void 0),this.autoFreeze_&&qp(o,!0),s){const c=[],f=[];ds(Jg).generateReplacementPatches_(r,o,{patches_:c,inversePatches_:f}),s(c,f)}return o}else pr(1,r)},this.produceWithPatches=(r,a)=>{if(hl(r))return(f,...d)=>this.produceWithPatches(f,y=>r(y,...d));let s,o;return[this.produce(r,a,(f,d)=>{s=f,o=d}),s,o]},Am(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Am(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Am(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){wr(t)||pr(8),Si(t)&&(t=z6(t));const r=C_(this),a=np(r,t,void 0);return a[_n].isManual_=!0,ep(r),a}finishDraft(t,r){const a=t&&t[_n];(!a||!a.isManual_)&&pr(9);const{scope_:s}=a;return M_(s,r),k_(void 0,s)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let a;for(a=r.length-1;a>=0;a--){const o=r[a];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}a>-1&&(r=r.slice(a+1));const s=ds(Jg).applyPatches_;return Si(t)?s(t,r):this.produce(t,o=>s(o,r))}};function np(e,t,r,a){const[s,o]=dd(t)?ds(Pf).proxyMap_(t,r):hd(t)?ds(Pf).proxySet_(t,r):R6(t,r);return((r==null?void 0:r.scope_)??lE()).drafts_.push(s),o.callbacks_=(r==null?void 0:r.callbacks_)??[],o.key_=a,r&&a!==void 0?A6(r,o,a):o.callbacks_.push(function(d){var p;(p=d.mapSetPlugin_)==null||p.fixSetContents(o);const{patchPlugin_:y}=d;o.modified_&&y&&y.generatePatches_(o,[],d)}),s}function z6(e){return Si(e)||pr(10,e),dE(e)}function dE(e){if(!wr(e)||yd(e))return e;const t=e[_n];let r,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Kg(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else r=Kg(e,!0);return cd(r,(s,o)=>{If(r,s,dE(o))},a),t&&(t.finalized_=!1),r}var D6=new O6,hE=D6.produce;function yE(e){return({dispatch:r,getState:a})=>s=>o=>typeof o=="function"?o(r,a,e):s(o)}var L6=yE(),B6=yE,j6=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Hf:Hf.apply(null,arguments)};function Bl(e,t){function r(...a){if(t){let s=t(...a);if(!s)throw new Error(Fn(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:a[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=a=>rE(a)&&a.type===e,r}var mE=class eu extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,eu.prototype)}static get[Symbol.species](){return eu}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new eu(...t[0].concat(this)):new eu(...t.concat(this))}};function T_(e){return wr(e)?hE(e,()=>{}):e}function yf(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function U6(e){return typeof e=="boolean"}var H6=()=>function(t){const{thunk:r=!0,immutableCheck:a=!0,serializableCheck:s=!0,actionCreatorCheck:o=!0}=t??{};let c=new mE;return r&&(U6(r)?c.push(L6):c.push(B6(r.extraArgument))),c},gE="RTK_autoBatch",xj=()=>e=>({payload:e,meta:{[gE]:!0}}),R_=e=>t=>{setTimeout(t,e)},q6=(e={type:"raf"})=>t=>(...r)=>{const a=t(...r);let s=!0,o=!1,c=!1;const f=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:R_(10):e.type==="callback"?e.queueNotification:R_(e.timeout),y=()=>{c=!1,o&&(o=!1,f.forEach(p=>p()))};return Object.assign({},a,{subscribe(p){const g=()=>s&&p(),v=a.subscribe(g);return f.add(p),()=>{v(),f.delete(p)}},dispatch(p){var g;try{return s=!((g=p==null?void 0:p.meta)!=null&&g[gE]),o=!s,o&&(c||(c=!0,d(y))),a.dispatch(p)}finally{s=!0}}})},V6=e=>function(r){const{autoBatch:a=!0}=r??{};let s=new mE(e);return a&&s.push(q6(typeof a=="object"?a:void 0)),s};function wj(e){const t=H6(),{reducer:r=void 0,middleware:a,devTools:s=!0,preloadedState:o=void 0,enhancers:c=void 0}=e||{};let f;if(typeof r=="function")f=r;else if(jp(r))f=v6(r);else throw new Error(Fn(1));let d;typeof a=="function"?d=a(t):d=t();let y=Hf;s&&(y=j6({trace:!1,...typeof s=="object"&&s}));const p=b6(...d),g=V6(p);let v=typeof c=="function"?c(g):g();const b=y(...v);return nE(f,o,b)}function pE(e){const t={},r=[];let a;const s={addCase(o,c){const f=typeof o=="string"?o:o.type;if(!f)throw new Error(Fn(28));if(f in t)throw new Error(Fn(29));return t[f]=c,s},addAsyncThunk(o,c){return c.pending&&(t[o.pending.type]=c.pending),c.rejected&&(t[o.rejected.type]=c.rejected),c.fulfilled&&(t[o.fulfilled.type]=c.fulfilled),c.settled&&r.push({matcher:o.settled,reducer:c.settled}),s},addMatcher(o,c){return r.push({matcher:o,reducer:c}),s},addDefaultCase(o){return a=o,s}};return e(s),[t,r,a]}function I6(e){return typeof e=="function"}function P6(e,t){let[r,a,s]=pE(t),o;if(I6(e))o=()=>T_(e());else{const f=T_(e);o=()=>f}function c(f=o(),d){let y=[r[d.type],...a.filter(({matcher:p})=>p(d)).map(({reducer:p})=>p)];return y.filter(p=>!!p).length===0&&(y=[s]),y.reduce((p,g)=>{if(g)if(Si(p)){const b=g(p,d);return b===void 0?p:b}else{if(wr(p))return hE(p,v=>g(v,d));{const v=g(p,d);if(v===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return p},f)}return c.getInitialState=o,c}var $6="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",F6=(e=21)=>{let t="",r=e;for(;r--;)t+=$6[Math.random()*64|0];return t},Y6=Symbol.for("rtk-slice-createasyncthunk");function Z6(e,t){return`${e}/${t}`}function G6({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[Y6];return function(s){const{name:o,reducerPath:c=o}=s;if(!o)throw new Error(Fn(11));const f=(typeof s.reducers=="function"?s.reducers(X6()):s.reducers)||{},d=Object.keys(f),y={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(k,z){const N=typeof k=="string"?k:k.type;if(!N)throw new Error(Fn(12));if(N in y.sliceCaseReducersByType)throw new Error(Fn(13));return y.sliceCaseReducersByType[N]=z,p},addMatcher(k,z){return y.sliceMatchers.push({matcher:k,reducer:z}),p},exposeAction(k,z){return y.actionCreators[k]=z,p},exposeCaseReducer(k,z){return y.sliceCaseReducersByName[k]=z,p}};d.forEach(k=>{const z=f[k],N={reducerName:k,type:Z6(o,k),createNotation:typeof s.reducers=="function"};J6(z)?eO(N,z,p,t):K6(N,z,p)});function g(){const[k={},z=[],N=void 0]=typeof s.extraReducers=="function"?pE(s.extraReducers):[s.extraReducers],D={...k,...y.sliceCaseReducersByType};return P6(s.initialState,T=>{for(let L in D)T.addCase(L,D[L]);for(let L of y.sliceMatchers)T.addMatcher(L.matcher,L.reducer);for(let L of z)T.addMatcher(L.matcher,L.reducer);N&&T.addDefaultCase(N)})}const v=k=>k,b=new Map,S=new WeakMap;let _;function w(k,z){return _||(_=g()),_(k,z)}function M(){return _||(_=g()),_.getInitialState()}function C(k,z=!1){function N(T){let L=T[k];return typeof L>"u"&&z&&(L=yf(S,N,M)),L}function D(T=v){const L=yf(b,z,()=>new WeakMap);return yf(L,T,()=>{const Q={};for(const[j,B]of Object.entries(s.selectors??{}))Q[j]=Q6(B,T,()=>yf(S,T,M),z);return Q})}return{reducerPath:k,getSelectors:D,get selectors(){return D(N)},selectSlice:N}}const E={name:o,reducer:w,actions:y.actionCreators,caseReducers:y.sliceCaseReducersByName,getInitialState:M,...C(c),injectInto(k,{reducerPath:z,...N}={}){const D=z??c;return k.inject({reducerPath:D,reducer:w},N),{...E,...C(D,!0)}}};return E}}function Q6(e,t,r,a){function s(o,...c){let f=t(o);return typeof f>"u"&&a&&(f=r()),e(f,...c)}return s.unwrapped=e,s}var Ej=G6();function X6(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function K6({type:e,reducerName:t,createNotation:r},a,s){let o,c;if("reducer"in a){if(r&&!W6(a))throw new Error(Fn(17));o=a.reducer,c=a.prepare}else o=a;s.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,c?Bl(e,c):Bl(e))}function J6(e){return e._reducerDefinitionType==="asyncThunk"}function W6(e){return e._reducerDefinitionType==="reducerWithPrepare"}function eO({type:e,reducerName:t},r,a,s){if(!s)throw new Error(Fn(18));const{payloadCreator:o,fulfilled:c,pending:f,rejected:d,settled:y,options:p}=r,g=s(e,o,p);a.exposeAction(t,g),c&&a.addCase(g.fulfilled,c),f&&a.addCase(g.pending,f),d&&a.addCase(g.rejected,d),y&&a.addMatcher(g.settled,y),a.exposeCaseReducer(t,{fulfilled:c||mf,pending:f||mf,rejected:d||mf,settled:y||mf})}function mf(){}var tO="task",vE="listener",bE="completed",Vp="cancelled",nO=`task-${Vp}`,rO=`task-${bE}`,rp=`${vE}-${Vp}`,iO=`${vE}-${bE}`,gd=class{constructor(e){qy(this,"name","TaskAbortError");qy(this,"message");this.code=e,this.message=`${tO} ${Vp} (reason: ${e})`}},Ip=(e,t)=>{if(typeof e!="function")throw new TypeError(Fn(32))},Yf=()=>{},_E=(e,t=Yf)=>(e.catch(t),e),SE=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),as=e=>{if(e.aborted)throw new gd(e.reason)};function xE(e,t){let r=Yf;return new Promise((a,s)=>{const o=()=>s(new gd(e.reason));if(e.aborted){o();return}r=SE(e,o),t.finally(()=>r()).then(a,s)}).finally(()=>{r=Yf})}var aO=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof gd?"cancelled":"rejected",error:r}}finally{t==null||t()}},Zf=e=>t=>_E(xE(e,t).then(r=>(as(e),r))),wE=e=>{const t=Zf(e);return r=>t(new Promise(a=>setTimeout(a,r)))},{assign:pl}=Object,N_={},pd="listenerMiddleware",sO=(e,t)=>{const r=a=>SE(e,()=>a.abort(e.reason));return(a,s)=>{Ip(a);const o=new AbortController;r(o);const c=aO(async()=>{as(e),as(o.signal);const f=await a({pause:Zf(o.signal),delay:wE(o.signal),signal:o.signal});return as(o.signal),f},()=>o.abort(rO));return s!=null&&s.autoJoin&&t.push(c.catch(Yf)),{result:Zf(e)(c),cancel(){o.abort(nO)}}}},lO=(e,t)=>{const r=async(a,s)=>{as(t);let o=()=>{};const f=[new Promise((d,y)=>{let p=e({predicate:a,effect:(g,v)=>{v.unsubscribe(),d([g,v.getState(),v.getOriginalState()])}});o=()=>{p(),y()}})];s!=null&&f.push(new Promise(d=>setTimeout(d,s,null)));try{const d=await xE(t,Promise.race(f));return as(t),d}finally{o()}};return(a,s)=>_E(r(a,s))},EE=e=>{let{type:t,actionCreator:r,matcher:a,predicate:s,effect:o}=e;if(t)s=Bl(t).match;else if(r)t=r.type,s=r.match;else if(a)s=a;else if(!s)throw new Error(Fn(21));return Ip(o),{predicate:s,type:t,effect:o}},ME=pl(e=>{const{type:t,predicate:r,effect:a}=EE(e);return{id:F6(),effect:a,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Fn(22))}}},{withTypes:()=>ME}),O_=(e,t)=>{const{type:r,effect:a,predicate:s}=EE(t);return Array.from(e.values()).find(o=>(typeof r=="string"?o.type===r:o.predicate===s)&&o.effect===a)},ip=e=>{e.pending.forEach(t=>{t.abort(rp)})},oO=(e,t)=>()=>{for(const r of t.keys())ip(r);e.clear()},z_=(e,t,r)=>{try{e(t,r)}catch(a){setTimeout(()=>{throw a},0)}},CE=pl(Bl(`${pd}/add`),{withTypes:()=>CE}),uO=Bl(`${pd}/removeAll`),kE=pl(Bl(`${pd}/remove`),{withTypes:()=>kE}),cO=(...e)=>{console.error(`${pd}/error`,...e)},Mj=(e={})=>{const t=new Map,r=new Map,a=b=>{const S=r.get(b)??0;r.set(b,S+1)},s=b=>{const S=r.get(b)??1;S===1?r.delete(b):r.set(b,S-1)},{extra:o,onError:c=cO}=e;Ip(c);const f=b=>(b.unsubscribe=()=>t.delete(b.id),t.set(b.id,b),S=>{b.unsubscribe(),S!=null&&S.cancelActive&&ip(b)}),d=b=>{const S=O_(t,b)??ME(b);return f(S)};pl(d,{withTypes:()=>d});const y=b=>{const S=O_(t,b);return S&&(S.unsubscribe(),b.cancelActive&&ip(S)),!!S};pl(y,{withTypes:()=>y});const p=async(b,S,_,w)=>{const M=new AbortController,C=lO(d,M.signal),E=[];try{b.pending.add(M),a(b),await Promise.resolve(b.effect(S,pl({},_,{getOriginalState:w,condition:(k,z)=>C(k,z).then(Boolean),take:C,delay:wE(M.signal),pause:Zf(M.signal),extra:o,signal:M.signal,fork:sO(M.signal,E),unsubscribe:b.unsubscribe,subscribe:()=>{t.set(b.id,b)},cancelActiveListeners:()=>{b.pending.forEach((k,z,N)=>{k!==M&&(k.abort(rp),N.delete(k))})},cancel:()=>{M.abort(rp),b.pending.delete(M)},throwIfCancelled:()=>{as(M.signal)}})))}catch(k){k instanceof gd||z_(c,k,{raisedBy:"effect"})}finally{await Promise.all(E),M.abort(iO),s(b),b.pending.delete(M)}},g=oO(t,r);return{middleware:b=>S=>_=>{if(!rE(_))return S(_);if(CE.match(_))return d(_.payload);if(uO.match(_)){g();return}if(kE.match(_))return y(_.payload);let w=b.getState();const M=()=>{if(w===N_)throw new Error(Fn(23));return w};let C;try{if(C=S(_),t.size>0){const E=b.getState(),k=Array.from(t.values());for(const z of k){let N=!1;try{N=z.predicate(_,E,w)}catch(D){N=!1,z_(c,D,{raisedBy:"predicate"})}N&&p(z,_,b,M)}}}finally{w=N_}return C},startListening:d,stopListening:y,clearListeners:g}};function Fn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Rm={},Nm={},Om={},D_;function fO(){return D_||(D_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,a,{signal:s,edges:o}={}){let c,f=null;const d=o!=null&&o.includes("leading"),y=o==null||o.includes("trailing"),p=()=>{f!==null&&(r.apply(c,f),c=void 0,f=null)},g=()=>{y&&p(),_()};let v=null;const b=()=>{v!=null&&clearTimeout(v),v=setTimeout(()=>{v=null,g()},a)},S=()=>{v!==null&&(clearTimeout(v),v=null)},_=()=>{S(),c=void 0,f=null},w=()=>{p()},M=function(...C){if(s!=null&&s.aborted)return;c=this,f=C;const E=v==null;b(),d&&E&&p()};return M.schedule=b,M.cancel=_,M.flush=w,s==null||s.addEventListener("abort",_,{once:!0}),M}e.debounce=t})(Om)),Om}var L_;function dO(){return L_||(L_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fO();function r(a,s=0,o={}){typeof o!="object"&&(o={});const{leading:c=!1,trailing:f=!0,maxWait:d}=o,y=Array(2);c&&(y[0]="leading"),f&&(y[1]="trailing");let p,g=null;const v=t.debounce(function(..._){p=a.apply(this,_),g=null},s,{edges:y}),b=function(..._){return d!=null&&(g===null&&(g=Date.now()),Date.now()-g>=d)?(p=a.apply(this,_),g=Date.now(),v.cancel(),v.schedule(),p):(v.apply(this,_),p)},S=()=>(v.flush(),p);return b.cancel=v.cancel,b.flush=S,b}e.debounce=r})(Nm)),Nm}var B_;function hO(){return B_||(B_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dO();function r(a,s=0,o={}){const{leading:c=!0,trailing:f=!0}=o;return t.debounce(a,s,{leading:c,maxWait:s,trailing:f})}e.throttle=r})(Rm)),Rm}var zm,j_;function yO(){return j_||(j_=1,zm=hO().throttle),zm}var mO=yO();const Cj=Er(mO);var AE=Symbol.for("immer-nothing"),U_=Symbol.for("immer-draftable"),Zn=Symbol.for("immer-state");function vr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fu=Object.getPrototypeOf;function jl(e){return!!e&&!!e[Zn]}function hs(e){var t;return e?TE(e)||Array.isArray(e)||!!e[U_]||!!((t=e.constructor)!=null&&t[U_])||Tu(e)||bd(e):!1}var gO=Object.prototype.constructor.toString(),H_=new WeakMap;function TE(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let a=H_.get(r);return a===void 0&&(a=Function.toString.call(r),H_.set(r,a)),a===gO}function Gf(e,t,r=!0){vd(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((a,s)=>t(s,a,e))}function vd(e){const t=e[Zn];return t?t.type_:Array.isArray(e)?1:Tu(e)?2:bd(e)?3:0}function ap(e,t){return vd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function RE(e,t,r){const a=vd(e);a===2?e.set(t,r):a===3?e.add(r):e[t]=r}function pO(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Tu(e){return e instanceof Map}function bd(e){return e instanceof Set}function Fa(e){return e.copy_||e.base_}function sp(e,t){if(Tu(e))return new Map(e);if(bd(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=TE(e);if(t===!0||t==="class_only"&&!r){const a=Object.getOwnPropertyDescriptors(e);delete a[Zn];let s=Reflect.ownKeys(a);for(let o=0;o<s.length;o++){const c=s[o],f=a[c];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(a[c]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[c]})}return Object.create(fu(e),a)}else{const a=fu(e);if(a!==null&&r)return{...e};const s=Object.create(a);return Object.assign(s,e)}}function Pp(e,t=!1){return _d(e)||jl(e)||!hs(e)||(vd(e)>1&&Object.defineProperties(e,{set:gf,add:gf,clear:gf,delete:gf}),Object.freeze(e),t&&Object.values(e).forEach(r=>Pp(r,!0))),e}function vO(){vr(2)}var gf={value:vO};function _d(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var bO={};function ys(e){const t=bO[e];return t||vr(0,e),t}var du;function NE(){return du}function _O(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function q_(e,t){t&&(ys("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function lp(e){op(e),e.drafts_.forEach(SO),e.drafts_=null}function op(e){e===du&&(du=e.parent_)}function V_(e){return du=_O(du,e)}function SO(e){const t=e[Zn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function I_(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Zn].modified_&&(lp(t),vr(4)),hs(e)&&(e=Qf(t,e),t.parent_||Xf(t,e)),t.patches_&&ys("Patches").generateReplacementPatches_(r[Zn].base_,e,t.patches_,t.inversePatches_)):e=Qf(t,r,[]),lp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AE?e:void 0}function Qf(e,t,r){if(_d(t))return t;const a=e.immer_.shouldUseStrictIteration(),s=t[Zn];if(!s)return Gf(t,(o,c)=>P_(e,s,t,o,c,r),a),t;if(s.scope_!==e)return t;if(!s.modified_)return Xf(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const o=s.copy_;let c=o,f=!1;s.type_===3&&(c=new Set(o),o.clear(),f=!0),Gf(c,(d,y)=>P_(e,s,o,d,y,r,f),a),Xf(e,o,!1),r&&e.patches_&&ys("Patches").generatePatches_(s,r,e.patches_,e.inversePatches_)}return s.copy_}function P_(e,t,r,a,s,o,c){if(s==null||typeof s!="object"&&!c)return;const f=_d(s);if(!(f&&!c)){if(jl(s)){const d=o&&t&&t.type_!==3&&!ap(t.assigned_,a)?o.concat(a):void 0,y=Qf(e,s,d);if(RE(r,a,y),jl(y))e.canAutoFreeze_=!1;else return}else c&&r.add(s);if(hs(s)&&!f){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[a]===s&&f)return;Qf(e,s),(!t||!t.scope_.parent_)&&typeof a!="symbol"&&(Tu(r)?r.has(a):Object.prototype.propertyIsEnumerable.call(r,a))&&Xf(e,s)}}}function Xf(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Pp(t,r)}function xO(e,t){const r=Array.isArray(e),a={type_:r?1:0,scope_:t?t.scope_:NE(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=a,o=$p;r&&(s=[a],o=hu);const{revoke:c,proxy:f}=Proxy.revocable(s,o);return a.draft_=f,a.revoke_=c,f}var $p={get(e,t){if(t===Zn)return e;const r=Fa(e);if(!ap(r,t))return wO(e,r,t);const a=r[t];return e.finalized_||!hs(a)?a:a===Dm(e.base_,t)?(Lm(e),e.copy_[t]=cp(a,e)):a},has(e,t){return t in Fa(e)},ownKeys(e){return Reflect.ownKeys(Fa(e))},set(e,t,r){const a=OE(Fa(e),t);if(a!=null&&a.set)return a.set.call(e.draft_,r),!0;if(!e.modified_){const s=Dm(Fa(e),t),o=s==null?void 0:s[Zn];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(pO(r,s)&&(r!==void 0||ap(e.base_,t)))return!0;Lm(e),up(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Dm(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Lm(e),up(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Fa(e),a=Reflect.getOwnPropertyDescriptor(r,t);return a&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:a.enumerable,value:r[t]}},defineProperty(){vr(11)},getPrototypeOf(e){return fu(e.base_)},setPrototypeOf(){vr(12)}},hu={};Gf($p,(e,t)=>{hu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});hu.deleteProperty=function(e,t){return hu.set.call(this,e,t,void 0)};hu.set=function(e,t,r){return $p.set.call(this,e[0],t,r,e[0])};function Dm(e,t){const r=e[Zn];return(r?Fa(r):e)[t]}function wO(e,t,r){var s;const a=OE(t,r);return a?"value"in a?a.value:(s=a.get)==null?void 0:s.call(e.draft_):void 0}function OE(e,t){if(!(t in e))return;let r=fu(e);for(;r;){const a=Object.getOwnPropertyDescriptor(r,t);if(a)return a;r=fu(r)}}function up(e){e.modified_||(e.modified_=!0,e.parent_&&up(e.parent_))}function Lm(e){e.copy_||(e.copy_=sp(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var EO=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,a)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const c=this;return function(d=o,...y){return c.produce(d,p=>r.call(this,p,...y))}}typeof r!="function"&&vr(6),a!==void 0&&typeof a!="function"&&vr(7);let s;if(hs(t)){const o=V_(this),c=cp(t,void 0);let f=!0;try{s=r(c),f=!1}finally{f?lp(o):op(o)}return q_(o,a),I_(s,o)}else if(!t||typeof t!="object"){if(s=r(t),s===void 0&&(s=t),s===AE&&(s=void 0),this.autoFreeze_&&Pp(s,!0),a){const o=[],c=[];ys("Patches").generateReplacementPatches_(t,s,o,c),a(o,c)}return s}else vr(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(c,...f)=>this.produceWithPatches(c,d=>t(d,...f));let a,s;return[this.produce(t,r,(c,f)=>{a=c,s=f}),a,s]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){hs(e)||vr(8),jl(e)&&(e=MO(e));const t=V_(this),r=cp(e,void 0);return r[Zn].isManual_=!0,op(t),r}finishDraft(e,t){const r=e&&e[Zn];(!r||!r.isManual_)&&vr(9);const{scope_:a}=r;return q_(a,t),I_(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));const a=ys("Patches").applyPatches_;return jl(e)?a(e,t):this.produce(e,s=>a(s,t))}};function cp(e,t){const r=Tu(e)?ys("MapSet").proxyMap_(e,t):bd(e)?ys("MapSet").proxySet_(e,t):xO(e,t);return(t?t.scope_:NE()).drafts_.push(r),r}function MO(e){return jl(e)||vr(10,e),zE(e)}function zE(e){if(!hs(e)||_d(e))return e;const t=e[Zn];let r,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=sp(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else r=sp(e,!0);return Gf(r,(s,o)=>{RE(r,s,zE(o))},a),t&&(t.finalized_=!1),r}var CO=new EO;CO.produce;function kj(e){return e}var Bm={exports:{}},jm={};/**
697
- * @license React
698
- * use-sync-external-store-with-selector.production.js
699
- *
700
- * Copyright (c) Meta Platforms, Inc. and affiliates.
701
- *
702
- * This source code is licensed under the MIT license found in the
703
- * LICENSE file in the root directory of this source tree.
704
- */var $_;function kO(){if($_)return jm;$_=1;var e=Pl();function t(d,y){return d===y&&(d!==0||1/d===1/y)||d!==d&&y!==y}var r=typeof Object.is=="function"?Object.is:t,a=e.useSyncExternalStore,s=e.useRef,o=e.useEffect,c=e.useMemo,f=e.useDebugValue;return jm.useSyncExternalStoreWithSelector=function(d,y,p,g,v){var b=s(null);if(b.current===null){var S={hasValue:!1,value:null};b.current=S}else S=b.current;b=c(function(){function w(z){if(!M){if(M=!0,C=z,z=g(z),v!==void 0&&S.hasValue){var N=S.value;if(v(N,z))return E=N}return E=z}if(N=E,r(C,z))return N;var D=g(z);return v!==void 0&&v(N,D)?(C=z,N):(C=z,E=D)}var M=!1,C,E,k=p===void 0?null:p;return[function(){return w(y())},k===null?void 0:function(){return w(k())}]},[y,p,g,v]);var _=a(d,b[0],b[1]);return o(function(){S.hasValue=!0,S.value=_},[_]),f(_),_},jm}var F_;function AO(){return F_||(F_=1,Bm.exports=kO()),Bm.exports}AO();function TO(e){e()}function RO(){let e=null,t=null;return{clear(){e=null,t=null},notify(){TO(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let a=e;for(;a;)r.push(a),a=a.next;return r},subscribe(r){let a=!0;const s=t={callback:r,next:null,prev:t};return s.prev?s.prev.next=s:e=s,function(){!a||e===null||(a=!1,s.next?s.next.prev=s.prev:t=s.prev,s.prev?s.prev.next=s.next:e=s.next)}}}}var Y_={notify(){},get:()=>[]};function NO(e,t){let r,a=Y_,s=0,o=!1;function c(_){p();const w=a.subscribe(_);let M=!1;return()=>{M||(M=!0,w(),g())}}function f(){a.notify()}function d(){S.onStateChange&&S.onStateChange()}function y(){return o}function p(){s++,r||(r=e.subscribe(d),a=RO())}function g(){s--,r&&s===0&&(r(),r=void 0,a.clear(),a=Y_)}function v(){o||(o=!0,p())}function b(){o&&(o=!1,g())}const S={addNestedSub:c,notifyNestedSubs:f,handleChangeWrapper:d,isSubscribed:y,trySubscribe:v,tryUnsubscribe:b,getListeners:()=>a};return S}var OO=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zO=OO(),DO=()=>typeof navigator<"u"&&navigator.product==="ReactNative",LO=DO(),BO=()=>zO||LO?R.useLayoutEffect:R.useEffect,jO=BO();function Z_(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Aj(e,t){if(Z_(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let s=0;s<r.length;s++)if(!Object.prototype.hasOwnProperty.call(t,r[s])||!Z_(e[r[s]],t[r[s]]))return!1;return!0}var Um=Symbol.for("react-redux-context"),Hm=typeof globalThis<"u"?globalThis:{};function UO(){if(!R.createContext)return{};const e=Hm[Um]??(Hm[Um]=new Map);let t=e.get(R.createContext);return t||(t=R.createContext(null),e.set(R.createContext,t)),t}var HO=UO();function qO(e){const{children:t,context:r,serverState:a,store:s}=e,o=R.useMemo(()=>{const d=NO(s);return{store:s,subscription:d,getServerState:a?()=>a:void 0}},[s,a]),c=R.useMemo(()=>s.getState(),[s]);jO(()=>{const{subscription:d}=o;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),c!==s.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[o,c]);const f=r||HO;return R.createElement(f.Provider,{value:o},t)}var Tj=qO,qm={},Vm={},Im={},G_;function VO(){return G_||(G_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eE();function r(a){return t.isSymbol(a)?NaN:Number(a)}e.toNumber=r})(Im)),Im}var Q_;function IO(){return Q_||(Q_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=VO();function r(a){return a?(a=t.toNumber(a),a===1/0||a===-1/0?(a<0?-1:1)*Number.MAX_VALUE:a===a?a:0):a===0?a:0}e.toFinite=r})(Vm)),Vm}var X_;function PO(){return X_||(X_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tE(),r=IO();function a(s,o,c){c&&typeof c!="number"&&t.isIterateeCall(s,o,c)&&(o=c=void 0),s=r.toFinite(s),o===void 0?(o=s,s=0):o=r.toFinite(o),c=c===void 0?s<o?1:-1:r.toFinite(c);const f=Math.max(Math.ceil((o-s)/(c||1)),0),d=new Array(f);for(let y=0;y<f;y++)d[y]=s,s+=c;return d}e.range=a})(qm)),qm}var Pm,K_;function $O(){return K_||(K_=1,Pm=PO().range),Pm}var FO=$O();const Rj=Er(FO);var Gl=1e9,YO={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Yp,Mt=!0,or="[DecimalError] ",ss=or+"Invalid argument: ",Fp=or+"Exponent out of range: ",Ql=Math.floor,Ya=Math.pow,ZO=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Pn,nn=1e7,wt=7,DE=9007199254740991,Kf=Ql(DE/wt),Ee={};Ee.absoluteValue=Ee.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ee.comparedTo=Ee.cmp=function(e){var t,r,a,s,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(a=o.d.length,s=e.d.length,t=0,r=a<s?a:s;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return a===s?0:a>s^o.s<0?1:-1};Ee.decimalPlaces=Ee.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*wt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Ee.dividedBy=Ee.div=function(e){return pi(this,new this.constructor(e))};Ee.dividedToIntegerBy=Ee.idiv=function(e){var t=this,r=t.constructor;return bt(pi(t,new r(e),0,1),r.precision)};Ee.equals=Ee.eq=function(e){return!this.cmp(e)};Ee.exponent=function(){return Zt(this)};Ee.greaterThan=Ee.gt=function(e){return this.cmp(e)>0};Ee.greaterThanOrEqualTo=Ee.gte=function(e){return this.cmp(e)>=0};Ee.isInteger=Ee.isint=function(){return this.e>this.d.length-2};Ee.isNegative=Ee.isneg=function(){return this.s<0};Ee.isPositive=Ee.ispos=function(){return this.s>0};Ee.isZero=function(){return this.s===0};Ee.lessThan=Ee.lt=function(e){return this.cmp(e)<0};Ee.lessThanOrEqualTo=Ee.lte=function(e){return this.cmp(e)<1};Ee.logarithm=Ee.log=function(e){var t,r=this,a=r.constructor,s=a.precision,o=s+5;if(e===void 0)e=new a(10);else if(e=new a(e),e.s<1||e.eq(Pn))throw Error(or+"NaN");if(r.s<1)throw Error(or+(r.s?"NaN":"-Infinity"));return r.eq(Pn)?new a(0):(Mt=!1,t=pi(yu(r,o),yu(e,o),o),Mt=!0,bt(t,s))};Ee.minus=Ee.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?jE(t,e):LE(t,(e.s=-e.s,e))};Ee.modulo=Ee.mod=function(e){var t,r=this,a=r.constructor,s=a.precision;if(e=new a(e),!e.s)throw Error(or+"NaN");return r.s?(Mt=!1,t=pi(r,e,0,1).times(e),Mt=!0,r.minus(t)):bt(new a(r),s)};Ee.naturalExponential=Ee.exp=function(){return BE(this)};Ee.naturalLogarithm=Ee.ln=function(){return yu(this)};Ee.negated=Ee.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ee.plus=Ee.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?LE(t,e):jE(t,(e.s=-e.s,e))};Ee.precision=Ee.sd=function(e){var t,r,a,s=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ss+e);if(t=Zt(s)+1,a=s.d.length-1,r=a*wt+1,a=s.d[a],a){for(;a%10==0;a/=10)r--;for(a=s.d[0];a>=10;a/=10)r++}return e&&t>r?t:r};Ee.squareRoot=Ee.sqrt=function(){var e,t,r,a,s,o,c,f=this,d=f.constructor;if(f.s<1){if(!f.s)return new d(0);throw Error(or+"NaN")}for(e=Zt(f),Mt=!1,s=Math.sqrt(+f),s==0||s==1/0?(t=Lr(f.d),(t.length+e)%2==0&&(t+="0"),s=Math.sqrt(t),e=Ql((e+1)/2)-(e<0||e%2),s==1/0?t="5e"+e:(t=s.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),a=new d(t)):a=new d(s.toString()),r=d.precision,s=c=r+3;;)if(o=a,a=o.plus(pi(f,o,c+2)).times(.5),Lr(o.d).slice(0,c)===(t=Lr(a.d)).slice(0,c)){if(t=t.slice(c-3,c+1),s==c&&t=="4999"){if(bt(o,r+1,0),o.times(o).eq(f)){a=o;break}}else if(t!="9999")break;c+=4}return Mt=!0,bt(a,r)};Ee.times=Ee.mul=function(e){var t,r,a,s,o,c,f,d,y,p=this,g=p.constructor,v=p.d,b=(e=new g(e)).d;if(!p.s||!e.s)return new g(0);for(e.s*=p.s,r=p.e+e.e,d=v.length,y=b.length,d<y&&(o=v,v=b,b=o,c=d,d=y,y=c),o=[],c=d+y,a=c;a--;)o.push(0);for(a=y;--a>=0;){for(t=0,s=d+a;s>a;)f=o[s]+b[a]*v[s-a-1]+t,o[s--]=f%nn|0,t=f/nn|0;o[s]=(o[s]+t)%nn|0}for(;!o[--c];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,Mt?bt(e,g.precision):e};Ee.toDecimalPlaces=Ee.todp=function(e,t){var r=this,a=r.constructor;return r=new a(r),e===void 0?r:(Ur(e,0,Gl),t===void 0?t=a.rounding:Ur(t,0,8),bt(r,e+Zt(r)+1,t))};Ee.toExponential=function(e,t){var r,a=this,s=a.constructor;return e===void 0?r=ms(a,!0):(Ur(e,0,Gl),t===void 0?t=s.rounding:Ur(t,0,8),a=bt(new s(a),e+1,t),r=ms(a,!0,e+1)),r};Ee.toFixed=function(e,t){var r,a,s=this,o=s.constructor;return e===void 0?ms(s):(Ur(e,0,Gl),t===void 0?t=o.rounding:Ur(t,0,8),a=bt(new o(s),e+Zt(s)+1,t),r=ms(a.abs(),!1,e+Zt(a)+1),s.isneg()&&!s.isZero()?"-"+r:r)};Ee.toInteger=Ee.toint=function(){var e=this,t=e.constructor;return bt(new t(e),Zt(e)+1,t.rounding)};Ee.toNumber=function(){return+this};Ee.toPower=Ee.pow=function(e){var t,r,a,s,o,c,f=this,d=f.constructor,y=12,p=+(e=new d(e));if(!e.s)return new d(Pn);if(f=new d(f),!f.s){if(e.s<1)throw Error(or+"Infinity");return f}if(f.eq(Pn))return f;if(a=d.precision,e.eq(Pn))return bt(f,a);if(t=e.e,r=e.d.length-1,c=t>=r,o=f.s,c){if((r=p<0?-p:p)<=DE){for(s=new d(Pn),t=Math.ceil(a/wt+4),Mt=!1;r%2&&(s=s.times(f),W_(s.d,t)),r=Ql(r/2),r!==0;)f=f.times(f),W_(f.d,t);return Mt=!0,e.s<0?new d(Pn).div(s):bt(s,a)}}else if(o<0)throw Error(or+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,f.s=1,Mt=!1,s=e.times(yu(f,a+y)),Mt=!0,s=BE(s),s.s=o,s};Ee.toPrecision=function(e,t){var r,a,s=this,o=s.constructor;return e===void 0?(r=Zt(s),a=ms(s,r<=o.toExpNeg||r>=o.toExpPos)):(Ur(e,1,Gl),t===void 0?t=o.rounding:Ur(t,0,8),s=bt(new o(s),e,t),r=Zt(s),a=ms(s,e<=r||r<=o.toExpNeg,e)),a};Ee.toSignificantDigits=Ee.tosd=function(e,t){var r=this,a=r.constructor;return e===void 0?(e=a.precision,t=a.rounding):(Ur(e,1,Gl),t===void 0?t=a.rounding:Ur(t,0,8)),bt(new a(r),e,t)};Ee.toString=Ee.valueOf=Ee.val=Ee.toJSON=Ee[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Zt(e),r=e.constructor;return ms(e,t<=r.toExpNeg||t>=r.toExpPos)};function LE(e,t){var r,a,s,o,c,f,d,y,p=e.constructor,g=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),Mt?bt(t,g):t;if(d=e.d,y=t.d,c=e.e,s=t.e,d=d.slice(),o=c-s,o){for(o<0?(a=d,o=-o,f=y.length):(a=y,s=c,f=d.length),c=Math.ceil(g/wt),f=c>f?c+1:f+1,o>f&&(o=f,a.length=1),a.reverse();o--;)a.push(0);a.reverse()}for(f=d.length,o=y.length,f-o<0&&(o=f,a=y,y=d,d=a),r=0;o;)r=(d[--o]=d[o]+y[o]+r)/nn|0,d[o]%=nn;for(r&&(d.unshift(r),++s),f=d.length;d[--f]==0;)d.pop();return t.d=d,t.e=s,Mt?bt(t,g):t}function Ur(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ss+e)}function Lr(e){var t,r,a,s=e.length-1,o="",c=e[0];if(s>0){for(o+=c,t=1;t<s;t++)a=e[t]+"",r=wt-a.length,r&&(o+=aa(r)),o+=a;c=e[t],a=c+"",r=wt-a.length,r&&(o+=aa(r))}else if(c===0)return"0";for(;c%10===0;)c/=10;return o+c}var pi=(function(){function e(a,s){var o,c=0,f=a.length;for(a=a.slice();f--;)o=a[f]*s+c,a[f]=o%nn|0,c=o/nn|0;return c&&a.unshift(c),a}function t(a,s,o,c){var f,d;if(o!=c)d=o>c?1:-1;else for(f=d=0;f<o;f++)if(a[f]!=s[f]){d=a[f]>s[f]?1:-1;break}return d}function r(a,s,o){for(var c=0;o--;)a[o]-=c,c=a[o]<s[o]?1:0,a[o]=c*nn+a[o]-s[o];for(;!a[0]&&a.length>1;)a.shift()}return function(a,s,o,c){var f,d,y,p,g,v,b,S,_,w,M,C,E,k,z,N,D,T,L=a.constructor,Q=a.s==s.s?1:-1,j=a.d,B=s.d;if(!a.s)return new L(a);if(!s.s)throw Error(or+"Division by zero");for(d=a.e-s.e,D=B.length,z=j.length,b=new L(Q),S=b.d=[],y=0;B[y]==(j[y]||0);)++y;if(B[y]>(j[y]||0)&&--d,o==null?C=o=L.precision:c?C=o+(Zt(a)-Zt(s))+1:C=o,C<0)return new L(0);if(C=C/wt+2|0,y=0,D==1)for(p=0,B=B[0],C++;(y<z||p)&&C--;y++)E=p*nn+(j[y]||0),S[y]=E/B|0,p=E%B|0;else{for(p=nn/(B[0]+1)|0,p>1&&(B=e(B,p),j=e(j,p),D=B.length,z=j.length),k=D,_=j.slice(0,D),w=_.length;w<D;)_[w++]=0;T=B.slice(),T.unshift(0),N=B[0],B[1]>=nn/2&&++N;do p=0,f=t(B,_,D,w),f<0?(M=_[0],D!=w&&(M=M*nn+(_[1]||0)),p=M/N|0,p>1?(p>=nn&&(p=nn-1),g=e(B,p),v=g.length,w=_.length,f=t(g,_,v,w),f==1&&(p--,r(g,D<v?T:B,v))):(p==0&&(f=p=1),g=B.slice()),v=g.length,v<w&&g.unshift(0),r(_,g,w),f==-1&&(w=_.length,f=t(B,_,D,w),f<1&&(p++,r(_,D<w?T:B,w))),w=_.length):f===0&&(p++,_=[0]),S[y++]=p,f&&_[0]?_[w++]=j[k]||0:(_=[j[k]],w=1);while((k++<z||_[0]!==void 0)&&C--)}return S[0]||S.shift(),b.e=d,bt(b,c?o+Zt(b)+1:o)}})();function BE(e,t){var r,a,s,o,c,f,d=0,y=0,p=e.constructor,g=p.precision;if(Zt(e)>16)throw Error(Fp+Zt(e));if(!e.s)return new p(Pn);for(Mt=!1,f=g,c=new p(.03125);e.abs().gte(.1);)e=e.times(c),y+=5;for(a=Math.log(Ya(2,y))/Math.LN10*2+5|0,f+=a,r=s=o=new p(Pn),p.precision=f;;){if(s=bt(s.times(e),f),r=r.times(++d),c=o.plus(pi(s,r,f)),Lr(c.d).slice(0,f)===Lr(o.d).slice(0,f)){for(;y--;)o=bt(o.times(o),f);return p.precision=g,t==null?(Mt=!0,bt(o,g)):o}o=c}}function Zt(e){for(var t=e.e*wt,r=e.d[0];r>=10;r/=10)t++;return t}function $m(e,t,r){if(t>e.LN10.sd())throw Mt=!0,r&&(e.precision=r),Error(or+"LN10 precision limit exceeded");return bt(new e(e.LN10),t)}function aa(e){for(var t="";e--;)t+="0";return t}function yu(e,t){var r,a,s,o,c,f,d,y,p,g=1,v=10,b=e,S=b.d,_=b.constructor,w=_.precision;if(b.s<1)throw Error(or+(b.s?"NaN":"-Infinity"));if(b.eq(Pn))return new _(0);if(t==null?(Mt=!1,y=w):y=t,b.eq(10))return t==null&&(Mt=!0),$m(_,y);if(y+=v,_.precision=y,r=Lr(S),a=r.charAt(0),o=Zt(b),Math.abs(o)<15e14){for(;a<7&&a!=1||a==1&&r.charAt(1)>3;)b=b.times(e),r=Lr(b.d),a=r.charAt(0),g++;o=Zt(b),a>1?(b=new _("0."+r),o++):b=new _(a+"."+r.slice(1))}else return d=$m(_,y+2,w).times(o+""),b=yu(new _(a+"."+r.slice(1)),y-v).plus(d),_.precision=w,t==null?(Mt=!0,bt(b,w)):b;for(f=c=b=pi(b.minus(Pn),b.plus(Pn),y),p=bt(b.times(b),y),s=3;;){if(c=bt(c.times(p),y),d=f.plus(pi(c,new _(s),y)),Lr(d.d).slice(0,y)===Lr(f.d).slice(0,y))return f=f.times(2),o!==0&&(f=f.plus($m(_,y+2,w).times(o+""))),f=pi(f,new _(g),y),_.precision=w,t==null?(Mt=!0,bt(f,w)):f;f=d,s+=2}}function J_(e,t){var r,a,s;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(a=t.search(/e/i))>0?(r<0&&(r=a),r+=+t.slice(a+1),t=t.substring(0,a)):r<0&&(r=t.length),a=0;t.charCodeAt(a)===48;)++a;for(s=t.length;t.charCodeAt(s-1)===48;)--s;if(t=t.slice(a,s),t){if(s-=a,r=r-a-1,e.e=Ql(r/wt),e.d=[],a=(r+1)%wt,r<0&&(a+=wt),a<s){for(a&&e.d.push(+t.slice(0,a)),s-=wt;a<s;)e.d.push(+t.slice(a,a+=wt));t=t.slice(a),a=wt-t.length}else a-=s;for(;a--;)t+="0";if(e.d.push(+t),Mt&&(e.e>Kf||e.e<-Kf))throw Error(Fp+r)}else e.s=0,e.e=0,e.d=[0];return e}function bt(e,t,r){var a,s,o,c,f,d,y,p,g=e.d;for(c=1,o=g[0];o>=10;o/=10)c++;if(a=t-c,a<0)a+=wt,s=t,y=g[p=0];else{if(p=Math.ceil((a+1)/wt),o=g.length,p>=o)return e;for(y=o=g[p],c=1;o>=10;o/=10)c++;a%=wt,s=a-wt+c}if(r!==void 0&&(o=Ya(10,c-s-1),f=y/o%10|0,d=t<0||g[p+1]!==void 0||y%o,d=r<4?(f||d)&&(r==0||r==(e.s<0?3:2)):f>5||f==5&&(r==4||d||r==6&&(a>0?s>0?y/Ya(10,c-s):0:g[p-1])%10&1||r==(e.s<0?8:7))),t<1||!g[0])return d?(o=Zt(e),g.length=1,t=t-o-1,g[0]=Ya(10,(wt-t%wt)%wt),e.e=Ql(-t/wt)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(a==0?(g.length=p,o=1,p--):(g.length=p+1,o=Ya(10,wt-a),g[p]=s>0?(y/Ya(10,c-s)%Ya(10,s)|0)*o:0),d)for(;;)if(p==0){(g[0]+=o)==nn&&(g[0]=1,++e.e);break}else{if(g[p]+=o,g[p]!=nn)break;g[p--]=0,o=1}for(a=g.length;g[--a]===0;)g.pop();if(Mt&&(e.e>Kf||e.e<-Kf))throw Error(Fp+Zt(e));return e}function jE(e,t){var r,a,s,o,c,f,d,y,p,g,v=e.constructor,b=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),Mt?bt(t,b):t;if(d=e.d,g=t.d,a=t.e,y=e.e,d=d.slice(),c=y-a,c){for(p=c<0,p?(r=d,c=-c,f=g.length):(r=g,a=y,f=d.length),s=Math.max(Math.ceil(b/wt),f)+2,c>s&&(c=s,r.length=1),r.reverse(),s=c;s--;)r.push(0);r.reverse()}else{for(s=d.length,f=g.length,p=s<f,p&&(f=s),s=0;s<f;s++)if(d[s]!=g[s]){p=d[s]<g[s];break}c=0}for(p&&(r=d,d=g,g=r,t.s=-t.s),f=d.length,s=g.length-f;s>0;--s)d[f++]=0;for(s=g.length;s>c;){if(d[--s]<g[s]){for(o=s;o&&d[--o]===0;)d[o]=nn-1;--d[o],d[s]+=nn}d[s]-=g[s]}for(;d[--f]===0;)d.pop();for(;d[0]===0;d.shift())--a;return d[0]?(t.d=d,t.e=a,Mt?bt(t,b):t):new v(0)}function ms(e,t,r){var a,s=Zt(e),o=Lr(e.d),c=o.length;return t?(r&&(a=r-c)>0?o=o.charAt(0)+"."+o.slice(1)+aa(a):c>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(s<0?"e":"e+")+s):s<0?(o="0."+aa(-s-1)+o,r&&(a=r-c)>0&&(o+=aa(a))):s>=c?(o+=aa(s+1-c),r&&(a=r-s-1)>0&&(o=o+"."+aa(a))):((a=s+1)<c&&(o=o.slice(0,a)+"."+o.slice(a)),r&&(a=r-c)>0&&(s+1===c&&(o+="."),o+=aa(a))),e.s<0?"-"+o:o}function W_(e,t){if(e.length>t)return e.length=t,!0}function UE(e){var t,r,a;function s(o){var c=this;if(!(c instanceof s))return new s(o);if(c.constructor=s,o instanceof s){c.s=o.s,c.e=o.e,c.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(ss+o);if(o>0)c.s=1;else if(o<0)o=-o,c.s=-1;else{c.s=0,c.e=0,c.d=[0];return}if(o===~~o&&o<1e7){c.e=0,c.d=[o];return}return J_(c,o.toString())}else if(typeof o!="string")throw Error(ss+o);if(o.charCodeAt(0)===45?(o=o.slice(1),c.s=-1):c.s=1,ZO.test(o))J_(c,o);else throw Error(ss+o)}if(s.prototype=Ee,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.clone=UE,s.config=s.set=GO,e===void 0&&(e={}),e)for(a=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<a.length;)e.hasOwnProperty(r=a[t++])||(e[r]=this[r]);return s.config(e),s}function GO(e){if(!e||typeof e!="object")throw Error(or+"Object expected");var t,r,a,s=["precision",1,Gl,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<s.length;t+=3)if((a=e[r=s[t]])!==void 0)if(Ql(a)===a&&a>=s[t+1]&&a<=s[t+2])this[r]=a;else throw Error(ss+r+": "+a);if((a=e[r="LN10"])!==void 0)if(a==Math.LN10)this[r]=new this(a);else throw Error(ss+r+": "+a);return this}var Yp=UE(YO);Pn=new Yp(1);const Nj=Yp;class Oj extends Map{constructor(t,r=KO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[a,s]of t)this.set(a,s)}get(t){return super.get(eS(this,t))}has(t){return super.has(eS(this,t))}set(t,r){return super.set(QO(this,t),r)}delete(t){return super.delete(XO(this,t))}}function eS({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):r}function QO({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function XO({_intern:e,_key:t},r){const a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function KO(e){return e!==null&&typeof e=="object"?e.valueOf():e}var Fm={exports:{}},tS;function JO(){return tS||(tS=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(r=!1));function s(d,y,p){this.fn=d,this.context=y,this.once=p||!1}function o(d,y,p,g,v){if(typeof p!="function")throw new TypeError("The listener must be a function");var b=new s(p,g||d,v),S=r?r+y:y;return d._events[S]?d._events[S].fn?d._events[S]=[d._events[S],b]:d._events[S].push(b):(d._events[S]=b,d._eventsCount++),d}function c(d,y){--d._eventsCount===0?d._events=new a:delete d._events[y]}function f(){this._events=new a,this._eventsCount=0}f.prototype.eventNames=function(){var y=[],p,g;if(this._eventsCount===0)return y;for(g in p=this._events)t.call(p,g)&&y.push(r?g.slice(1):g);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(p)):y},f.prototype.listeners=function(y){var p=r?r+y:y,g=this._events[p];if(!g)return[];if(g.fn)return[g.fn];for(var v=0,b=g.length,S=new Array(b);v<b;v++)S[v]=g[v].fn;return S},f.prototype.listenerCount=function(y){var p=r?r+y:y,g=this._events[p];return g?g.fn?1:g.length:0},f.prototype.emit=function(y,p,g,v,b,S){var _=r?r+y:y;if(!this._events[_])return!1;var w=this._events[_],M=arguments.length,C,E;if(w.fn){switch(w.once&&this.removeListener(y,w.fn,void 0,!0),M){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,p),!0;case 3:return w.fn.call(w.context,p,g),!0;case 4:return w.fn.call(w.context,p,g,v),!0;case 5:return w.fn.call(w.context,p,g,v,b),!0;case 6:return w.fn.call(w.context,p,g,v,b,S),!0}for(E=1,C=new Array(M-1);E<M;E++)C[E-1]=arguments[E];w.fn.apply(w.context,C)}else{var k=w.length,z;for(E=0;E<k;E++)switch(w[E].once&&this.removeListener(y,w[E].fn,void 0,!0),M){case 1:w[E].fn.call(w[E].context);break;case 2:w[E].fn.call(w[E].context,p);break;case 3:w[E].fn.call(w[E].context,p,g);break;case 4:w[E].fn.call(w[E].context,p,g,v);break;default:if(!C)for(z=1,C=new Array(M-1);z<M;z++)C[z-1]=arguments[z];w[E].fn.apply(w[E].context,C)}}return!0},f.prototype.on=function(y,p,g){return o(this,y,p,g,!1)},f.prototype.once=function(y,p,g){return o(this,y,p,g,!0)},f.prototype.removeListener=function(y,p,g,v){var b=r?r+y:y;if(!this._events[b])return this;if(!p)return c(this,b),this;var S=this._events[b];if(S.fn)S.fn===p&&(!v||S.once)&&(!g||S.context===g)&&c(this,b);else{for(var _=0,w=[],M=S.length;_<M;_++)(S[_].fn!==p||v&&!S[_].once||g&&S[_].context!==g)&&w.push(S[_]);w.length?this._events[b]=w.length===1?w[0]:w:c(this,b)}return this},f.prototype.removeAllListeners=function(y){var p;return y?(p=r?r+y:y,this._events[p]&&c(this,p)):(this._events=new a,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=r,f.EventEmitter=f,e.exports=f})(Fm)),Fm.exports}var WO=JO();const zj=Er(WO);var Ym={exports:{}},pt={};/**
705
- * @license React
706
- * react-is.production.js
707
- *
708
- * Copyright (c) Meta Platforms, Inc. and affiliates.
709
- *
710
- * This source code is licensed under the MIT license found in the
711
- * LICENSE file in the root directory of this source tree.
712
- */var nS;function e8(){if(nS)return pt;nS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function S(_){if(typeof _=="object"&&_!==null){var w=_.$$typeof;switch(w){case e:switch(_=_.type,_){case r:case s:case a:case d:case y:case v:return _;default:switch(_=_&&_.$$typeof,_){case c:case f:case g:case p:return _;case o:return _;default:return w}}case t:return w}}}return pt.ContextConsumer=o,pt.ContextProvider=c,pt.Element=e,pt.ForwardRef=f,pt.Fragment=r,pt.Lazy=g,pt.Memo=p,pt.Portal=t,pt.Profiler=s,pt.StrictMode=a,pt.Suspense=d,pt.SuspenseList=y,pt.isContextConsumer=function(_){return S(_)===o},pt.isContextProvider=function(_){return S(_)===c},pt.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},pt.isForwardRef=function(_){return S(_)===f},pt.isFragment=function(_){return S(_)===r},pt.isLazy=function(_){return S(_)===g},pt.isMemo=function(_){return S(_)===p},pt.isPortal=function(_){return S(_)===t},pt.isProfiler=function(_){return S(_)===s},pt.isStrictMode=function(_){return S(_)===a},pt.isSuspense=function(_){return S(_)===d},pt.isSuspenseList=function(_){return S(_)===y},pt.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===s||_===a||_===d||_===y||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===p||_.$$typeof===c||_.$$typeof===o||_.$$typeof===f||_.$$typeof===b||_.getModuleId!==void 0)},pt.typeOf=S,pt}var rS;function t8(){return rS||(rS=1,Ym.exports=e8()),Ym.exports}var Dj=t8(),Zm={},iS;function n8(){return iS||(iS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){var s;if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const o=r[Symbol.toStringTag];return o==null||!((s=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag))!=null&&s.writable)?!1:r.toString()===`[object ${o}]`}let a=r;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(r)===a}e.isPlainObject=t})(Zm)),Zm}var Gm,aS;function r8(){return aS||(aS=1,Gm=n8().isPlainObject),Gm}var i8=r8();const Lj=Er(i8);var a8="Invariant failed";function Bj(e,t){throw new Error(a8)}function Gt(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let r=0,a;r<e.length;r++)(a=Gt(e[r]))!==""&&(t+=(t&&" ")+a);else for(let r in e)e[r]&&(t+=(t&&" ")+r);return t}const Hr={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:r,targetHandle:a})=>`Couldn't create edge for ${e} handle id: "${e==="source"?r:a}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},mu=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],HE=["Enter"," ","Escape"],qE={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:r})=>`Moved selected node ${e}. New position, x: ${t}, y: ${r}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Ul;(function(e){e.Strict="strict",e.Loose="loose"})(Ul||(Ul={}));var ls;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(ls||(ls={}));var gu;(function(e){e.Partial="partial",e.Full="full"})(gu||(gu={}));const VE={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var sa;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(sa||(sa={}));var Jf;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Jf||(Jf={}));var je;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(je||(je={}));const sS={[je.Left]:je.Right,[je.Right]:je.Left,[je.Top]:je.Bottom,[je.Bottom]:je.Top};function IE(e){return e===null?null:e?"valid":"invalid"}const PE=e=>"id"in e&&"source"in e&&"target"in e,s8=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Zp=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Ru=(e,t=[0,0])=>{const{width:r,height:a}=xi(e),s=e.origin??t,o=r*s[0],c=a*s[1];return{x:e.position.x-o,y:e.position.y-c}},l8=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const r=e.reduce((a,s)=>{const o=typeof s=="string";let c=!t.nodeLookup&&!o?s:void 0;t.nodeLookup&&(c=o?t.nodeLookup.get(s):Zp(s)?s:t.nodeLookup.get(s.id));const f=c?Wf(c,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Sd(a,f)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return xd(r)},Nu=(e,t={})=>{let r={x:1/0,y:1/0,x2:-1/0,y2:-1/0},a=!1;return e.forEach(s=>{(t.filter===void 0||t.filter(s))&&(r=Sd(r,Wf(s)),a=!0)}),a?xd(r):{x:0,y:0,width:0,height:0}},Gp=(e,t,[r,a,s]=[0,0,1],o=!1,c=!1)=>{const f={...zu(t,[r,a,s]),width:t.width/s,height:t.height/s},d=[];for(const y of e.values()){const{measured:p,selectable:g=!0,hidden:v=!1}=y;if(c&&!g||v)continue;const b=p.width??y.width??y.initialWidth??null,S=p.height??y.height??y.initialHeight??null,_=pu(f,ql(y)),w=(b??0)*(S??0),M=o&&_>0;(!y.internals.handleBounds||M||_>=w||y.dragging)&&d.push(y)}return d},o8=(e,t)=>{const r=new Set;return e.forEach(a=>{r.add(a.id)}),t.filter(a=>r.has(a.source)||r.has(a.target))};function u8(e,t){const r=new Map,a=t!=null&&t.nodes?new Set(t.nodes.map(s=>s.id)):null;return e.forEach(s=>{s.measured.width&&s.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!s.hidden)&&(!a||a.has(s.id))&&r.set(s.id,s)}),r}async function c8({nodes:e,width:t,height:r,panZoom:a,minZoom:s,maxZoom:o},c){if(e.size===0)return Promise.resolve(!0);const f=u8(e,c),d=Nu(f),y=Qp(d,t,r,(c==null?void 0:c.minZoom)??s,(c==null?void 0:c.maxZoom)??o,(c==null?void 0:c.padding)??.1);return await a.setViewport(y,{duration:c==null?void 0:c.duration,ease:c==null?void 0:c.ease,interpolate:c==null?void 0:c.interpolate}),Promise.resolve(!0)}function $E({nodeId:e,nextPosition:t,nodeLookup:r,nodeOrigin:a=[0,0],nodeExtent:s,onError:o}){const c=r.get(e),f=c.parentId?r.get(c.parentId):void 0,{x:d,y}=f?f.internals.positionAbsolute:{x:0,y:0},p=c.origin??a;let g=c.extent||s;if(c.extent==="parent"&&!c.expandParent)if(!f)o==null||o("005",Hr.error005());else{const b=f.measured.width,S=f.measured.height;b&&S&&(g=[[d,y],[d+b,y+S]])}else f&&Vl(c.extent)&&(g=[[c.extent[0][0]+d,c.extent[0][1]+y],[c.extent[1][0]+d,c.extent[1][1]+y]]);const v=Vl(g)?gs(t,g,c.measured):t;return(c.measured.width===void 0||c.measured.height===void 0)&&(o==null||o("015",Hr.error015())),{position:{x:v.x-d+(c.measured.width??0)*p[0],y:v.y-y+(c.measured.height??0)*p[1]},positionAbsolute:v}}async function f8({nodesToRemove:e=[],edgesToRemove:t=[],nodes:r,edges:a,onBeforeDelete:s}){const o=new Set(e.map(v=>v.id)),c=[];for(const v of r){if(v.deletable===!1)continue;const b=o.has(v.id),S=!b&&v.parentId&&c.find(_=>_.id===v.parentId);(b||S)&&c.push(v)}const f=new Set(t.map(v=>v.id)),d=a.filter(v=>v.deletable!==!1),p=o8(c,d);for(const v of d)f.has(v.id)&&!p.find(S=>S.id===v.id)&&p.push(v);if(!s)return{edges:p,nodes:c};const g=await s({nodes:c,edges:p});return typeof g=="boolean"?g?{edges:p,nodes:c}:{edges:[],nodes:[]}:g}const Hl=(e,t=0,r=1)=>Math.min(Math.max(e,t),r),gs=(e={x:0,y:0},t,r)=>({x:Hl(e.x,t[0][0],t[1][0]-((r==null?void 0:r.width)??0)),y:Hl(e.y,t[0][1],t[1][1]-((r==null?void 0:r.height)??0))});function FE(e,t,r){const{width:a,height:s}=xi(r),{x:o,y:c}=r.internals.positionAbsolute;return gs(e,[[o,c],[o+a,c+s]],t)}const lS=(e,t,r)=>e<t?Hl(Math.abs(e-t),1,t)/t:e>r?-Hl(Math.abs(e-r),1,t)/t:0,YE=(e,t,r=15,a=40)=>{const s=lS(e.x,a,t.width-a)*r,o=lS(e.y,a,t.height-a)*r;return[s,o]},Sd=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),fp=({x:e,y:t,width:r,height:a})=>({x:e,y:t,x2:e+r,y2:t+a}),xd=({x:e,y:t,x2:r,y2:a})=>({x:e,y:t,width:r-e,height:a-t}),ql=(e,t=[0,0])=>{var s,o;const{x:r,y:a}=Zp(e)?e.internals.positionAbsolute:Ru(e,t);return{x:r,y:a,width:((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0,height:((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0}},Wf=(e,t=[0,0])=>{var s,o;const{x:r,y:a}=Zp(e)?e.internals.positionAbsolute:Ru(e,t);return{x:r,y:a,x2:r+(((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0),y2:a+(((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0)}},ZE=(e,t)=>xd(Sd(fp(e),fp(t))),pu=(e,t)=>{const r=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),a=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(r*a)},oS=e=>Sr(e.width)&&Sr(e.height)&&Sr(e.x)&&Sr(e.y),Sr=e=>!isNaN(e)&&isFinite(e),d8=(e,t)=>{},Ou=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),zu=({x:e,y:t},[r,a,s],o=!1,c=[1,1])=>{const f={x:(e-r)/s,y:(t-a)/s};return o?Ou(f,c):f},ed=({x:e,y:t},[r,a,s])=>({x:e*s+r,y:t*s+a});function ll(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const r=parseFloat(e);if(!Number.isNaN(r))return Math.floor(r)}if(typeof e=="string"&&e.endsWith("%")){const r=parseFloat(e);if(!Number.isNaN(r))return Math.floor(t*r*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function h8(e,t,r){if(typeof e=="string"||typeof e=="number"){const a=ll(e,r),s=ll(e,t);return{top:a,right:s,bottom:a,left:s,x:s*2,y:a*2}}if(typeof e=="object"){const a=ll(e.top??e.y??0,r),s=ll(e.bottom??e.y??0,r),o=ll(e.left??e.x??0,t),c=ll(e.right??e.x??0,t);return{top:a,right:c,bottom:s,left:o,x:o+c,y:a+s}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function y8(e,t,r,a,s,o){const{x:c,y:f}=ed(e,[t,r,a]),{x:d,y}=ed({x:e.x+e.width,y:e.y+e.height},[t,r,a]),p=s-d,g=o-y;return{left:Math.floor(c),top:Math.floor(f),right:Math.floor(p),bottom:Math.floor(g)}}const Qp=(e,t,r,a,s,o)=>{const c=h8(o,t,r),f=(t-c.x)/e.width,d=(r-c.y)/e.height,y=Math.min(f,d),p=Hl(y,a,s),g=e.x+e.width/2,v=e.y+e.height/2,b=t/2-g*p,S=r/2-v*p,_=y8(e,b,S,p,t,r),w={left:Math.min(_.left-c.left,0),top:Math.min(_.top-c.top,0),right:Math.min(_.right-c.right,0),bottom:Math.min(_.bottom-c.bottom,0)};return{x:b-w.left+w.right,y:S-w.top+w.bottom,zoom:p}},vu=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Vl(e){return e!=null&&e!=="parent"}function xi(e){var t,r;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((r=e.measured)==null?void 0:r.height)??e.height??e.initialHeight??0}}function GE(e){var t,r;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((r=e.measured)==null?void 0:r.height)??e.height??e.initialHeight)!==void 0}function QE(e,t={width:0,height:0},r,a,s){const o={...e},c=a.get(r);if(c){const f=c.origin||s;o.x+=c.internals.positionAbsolute.x-(t.width??0)*f[0],o.y+=c.internals.positionAbsolute.y-(t.height??0)*f[1]}return o}function uS(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}function m8(){let e,t;return{promise:new Promise((a,s)=>{e=a,t=s}),resolve:e,reject:t}}function g8(e){return{...qE,...e||{}}}function tu(e,{snapGrid:t=[0,0],snapToGrid:r=!1,transform:a,containerBounds:s}){const{x:o,y:c}=xr(e),f=zu({x:o-((s==null?void 0:s.left)??0),y:c-((s==null?void 0:s.top)??0)},a),{x:d,y}=r?Ou(f,t):f;return{xSnapped:d,ySnapped:y,...f}}const Xp=e=>({width:e.offsetWidth,height:e.offsetHeight}),XE=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},p8=["INPUT","SELECT","TEXTAREA"];function KE(e){var a,s;const t=((s=(a=e.composedPath)==null?void 0:a.call(e))==null?void 0:s[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:p8.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const JE=e=>"clientX"in e,xr=(e,t)=>{var o,c;const r=JE(e),a=r?e.clientX:(o=e.touches)==null?void 0:o[0].clientX,s=r?e.clientY:(c=e.touches)==null?void 0:c[0].clientY;return{x:a-((t==null?void 0:t.left)??0),y:s-((t==null?void 0:t.top)??0)}},cS=(e,t,r,a,s)=>{const o=t.querySelectorAll(`.${e}`);return!o||!o.length?null:Array.from(o).map(c=>{const f=c.getBoundingClientRect();return{id:c.getAttribute("data-handleid"),type:e,nodeId:s,position:c.getAttribute("data-handlepos"),x:(f.left-r.left)/a,y:(f.top-r.top)/a,...Xp(c)}})};function WE({sourceX:e,sourceY:t,targetX:r,targetY:a,sourceControlX:s,sourceControlY:o,targetControlX:c,targetControlY:f}){const d=e*.125+s*.375+c*.375+r*.125,y=t*.125+o*.375+f*.375+a*.125,p=Math.abs(d-e),g=Math.abs(y-t);return[d,y,p,g]}function pf(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function fS({pos:e,x1:t,y1:r,x2:a,y2:s,c:o}){switch(e){case je.Left:return[t-pf(t-a,o),r];case je.Right:return[t+pf(a-t,o),r];case je.Top:return[t,r-pf(r-s,o)];case je.Bottom:return[t,r+pf(s-r,o)]}}function eM({sourceX:e,sourceY:t,sourcePosition:r=je.Bottom,targetX:a,targetY:s,targetPosition:o=je.Top,curvature:c=.25}){const[f,d]=fS({pos:r,x1:e,y1:t,x2:a,y2:s,c}),[y,p]=fS({pos:o,x1:a,y1:s,x2:e,y2:t,c}),[g,v,b,S]=WE({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:f,sourceControlY:d,targetControlX:y,targetControlY:p});return[`M${e},${t} C${f},${d} ${y},${p} ${a},${s}`,g,v,b,S]}function tM({sourceX:e,sourceY:t,targetX:r,targetY:a}){const s=Math.abs(r-e)/2,o=r<e?r+s:r-s,c=Math.abs(a-t)/2,f=a<t?a+c:a-c;return[o,f,s,c]}function v8({sourceNode:e,targetNode:t,selected:r=!1,zIndex:a=0,elevateOnSelect:s=!1,zIndexMode:o="basic"}){if(o==="manual")return a;const c=s&&r?a+1e3:a,f=Math.max(e.parentId||s&&e.selected?e.internals.z:0,t.parentId||s&&t.selected?t.internals.z:0);return c+f}function b8({sourceNode:e,targetNode:t,width:r,height:a,transform:s}){const o=Sd(Wf(e),Wf(t));o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1);const c={x:-s[0]/s[2],y:-s[1]/s[2],width:r/s[2],height:a/s[2]};return pu(c,xd(o))>0}const _8=({source:e,sourceHandle:t,target:r,targetHandle:a})=>`xy-edge__${e}${t||""}-${r}${a||""}`,S8=(e,t)=>t.some(r=>r.source===e.source&&r.target===e.target&&(r.sourceHandle===e.sourceHandle||!r.sourceHandle&&!e.sourceHandle)&&(r.targetHandle===e.targetHandle||!r.targetHandle&&!e.targetHandle)),x8=(e,t,r={})=>{if(!e.source||!e.target)return t;const a=r.getEdgeId||_8;let s;return PE(e)?s={...e}:s={...e,id:a(e)},S8(s,t)?t:(s.sourceHandle===null&&delete s.sourceHandle,s.targetHandle===null&&delete s.targetHandle,t.concat(s))};function nM({sourceX:e,sourceY:t,targetX:r,targetY:a}){const[s,o,c,f]=tM({sourceX:e,sourceY:t,targetX:r,targetY:a});return[`M ${e},${t}L ${r},${a}`,s,o,c,f]}const dS={[je.Left]:{x:-1,y:0},[je.Right]:{x:1,y:0},[je.Top]:{x:0,y:-1},[je.Bottom]:{x:0,y:1}},w8=({source:e,sourcePosition:t=je.Bottom,target:r})=>t===je.Left||t===je.Right?e.x<r.x?{x:1,y:0}:{x:-1,y:0}:e.y<r.y?{x:0,y:1}:{x:0,y:-1},hS=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function E8({source:e,sourcePosition:t=je.Bottom,target:r,targetPosition:a=je.Top,center:s,offset:o,stepPosition:c}){const f=dS[t],d=dS[a],y={x:e.x+f.x*o,y:e.y+f.y*o},p={x:r.x+d.x*o,y:r.y+d.y*o},g=w8({source:y,sourcePosition:t,target:p}),v=g.x!==0?"x":"y",b=g[v];let S=[],_,w;const M={x:0,y:0},C={x:0,y:0},[,,E,k]=tM({sourceX:e.x,sourceY:e.y,targetX:r.x,targetY:r.y});if(f[v]*d[v]===-1){v==="x"?(_=s.x??y.x+(p.x-y.x)*c,w=s.y??(y.y+p.y)/2):(_=s.x??(y.x+p.x)/2,w=s.y??y.y+(p.y-y.y)*c);const T=[{x:_,y:y.y},{x:_,y:p.y}],L=[{x:y.x,y:w},{x:p.x,y:w}];f[v]===b?S=v==="x"?T:L:S=v==="x"?L:T}else{const T=[{x:y.x,y:p.y}],L=[{x:p.x,y:y.y}];if(v==="x"?S=f.x===b?L:T:S=f.y===b?T:L,t===a){const G=Math.abs(e[v]-r[v]);if(G<=o){const re=Math.min(o-1,o-G);f[v]===b?M[v]=(y[v]>e[v]?-1:1)*re:C[v]=(p[v]>r[v]?-1:1)*re}}if(t!==a){const G=v==="x"?"y":"x",re=f[v]===d[G],U=y[G]>p[G],F=y[G]<p[G];(f[v]===1&&(!re&&U||re&&F)||f[v]!==1&&(!re&&F||re&&U))&&(S=v==="x"?T:L)}const Q={x:y.x+M.x,y:y.y+M.y},j={x:p.x+C.x,y:p.y+C.y},B=Math.max(Math.abs(Q.x-S[0].x),Math.abs(j.x-S[0].x)),$=Math.max(Math.abs(Q.y-S[0].y),Math.abs(j.y-S[0].y));B>=$?(_=(Q.x+j.x)/2,w=S[0].y):(_=S[0].x,w=(Q.y+j.y)/2)}const z={x:y.x+M.x,y:y.y+M.y},N={x:p.x+C.x,y:p.y+C.y};return[[e,...z.x!==S[0].x||z.y!==S[0].y?[z]:[],...S,...N.x!==S[S.length-1].x||N.y!==S[S.length-1].y?[N]:[],r],_,w,E,k]}function M8(e,t,r,a){const s=Math.min(hS(e,t)/2,hS(t,r)/2,a),{x:o,y:c}=t;if(e.x===o&&o===r.x||e.y===c&&c===r.y)return`L${o} ${c}`;if(e.y===c){const y=e.x<r.x?-1:1,p=e.y<r.y?1:-1;return`L ${o+s*y},${c}Q ${o},${c} ${o},${c+s*p}`}const f=e.x<r.x?1:-1,d=e.y<r.y?-1:1;return`L ${o},${c+s*d}Q ${o},${c} ${o+s*f},${c}`}function dp({sourceX:e,sourceY:t,sourcePosition:r=je.Bottom,targetX:a,targetY:s,targetPosition:o=je.Top,borderRadius:c=5,centerX:f,centerY:d,offset:y=20,stepPosition:p=.5}){const[g,v,b,S,_]=E8({source:{x:e,y:t},sourcePosition:r,target:{x:a,y:s},targetPosition:o,center:{x:f,y:d},offset:y,stepPosition:p});let w=`M${g[0].x} ${g[0].y}`;for(let M=1;M<g.length-1;M++)w+=M8(g[M-1],g[M],g[M+1],c);return w+=`L${g[g.length-1].x} ${g[g.length-1].y}`,[w,v,b,S,_]}function yS(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function C8(e){var g;const{sourceNode:t,targetNode:r}=e;if(!yS(t)||!yS(r))return null;const a=t.internals.handleBounds||mS(t.handles),s=r.internals.handleBounds||mS(r.handles),o=gS((a==null?void 0:a.source)??[],e.sourceHandle),c=gS(e.connectionMode===Ul.Strict?(s==null?void 0:s.target)??[]:((s==null?void 0:s.target)??[]).concat((s==null?void 0:s.source)??[]),e.targetHandle);if(!o||!c)return(g=e.onError)==null||g.call(e,"008",Hr.error008(o?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const f=(o==null?void 0:o.position)||je.Bottom,d=(c==null?void 0:c.position)||je.Top,y=ps(t,o,f),p=ps(r,c,d);return{sourceX:y.x,sourceY:y.y,targetX:p.x,targetY:p.y,sourcePosition:f,targetPosition:d}}function mS(e){if(!e)return null;const t=[],r=[];for(const a of e)a.width=a.width??1,a.height=a.height??1,a.type==="source"?t.push(a):a.type==="target"&&r.push(a);return{source:t,target:r}}function ps(e,t,r=je.Left,a=!1){const s=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,o=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:c,height:f}=t??xi(e);if(a)return{x:s+c/2,y:o+f/2};switch((t==null?void 0:t.position)??r){case je.Top:return{x:s+c/2,y:o};case je.Right:return{x:s+c,y:o+f/2};case je.Bottom:return{x:s+c/2,y:o+f};case je.Left:return{x:s,y:o+f/2}}}function gS(e,t){return e&&(t?e.find(r=>r.id===t):e[0])||null}function hp(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function k8(e,{id:t,defaultColor:r,defaultMarkerStart:a,defaultMarkerEnd:s}){const o=new Set;return e.reduce((c,f)=>([f.markerStart||a,f.markerEnd||s].forEach(d=>{if(d&&typeof d=="object"){const y=hp(d,t);o.has(y)||(c.push({id:y,color:d.color||r,...d}),o.add(y))}}),c),[]).sort((c,f)=>c.id.localeCompare(f.id))}const rM=1e3,A8=10,Kp={nodeOrigin:[0,0],nodeExtent:mu,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},T8={...Kp,checkEquality:!0};function Jp(e,t){const r={...e};for(const a in t)t[a]!==void 0&&(r[a]=t[a]);return r}function R8(e,t,r){const a=Jp(Kp,r);for(const s of e.values())if(s.parentId)e0(s,e,t,a);else{const o=Ru(s,a.nodeOrigin),c=Vl(s.extent)?s.extent:a.nodeExtent,f=gs(o,c,xi(s));s.internals.positionAbsolute=f}}function N8(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const r=[],a=[];for(const s of e.handles){const o={id:s.id,width:s.width??1,height:s.height??1,nodeId:e.id,x:s.x,y:s.y,position:s.position,type:s.type};s.type==="source"?r.push(o):s.type==="target"&&a.push(o)}return{source:r,target:a}}function Wp(e){return e==="manual"}function yp(e,t,r,a={}){var p,g;const s=Jp(T8,a),o={i:0},c=new Map(t),f=s!=null&&s.elevateNodesOnSelect&&!Wp(s.zIndexMode)?rM:0;let d=e.length>0,y=!1;t.clear(),r.clear();for(const v of e){let b=c.get(v.id);if(s.checkEquality&&v===(b==null?void 0:b.internals.userNode))t.set(v.id,b);else{const S=Ru(v,s.nodeOrigin),_=Vl(v.extent)?v.extent:s.nodeExtent,w=gs(S,_,xi(v));b={...s.defaults,...v,measured:{width:(p=v.measured)==null?void 0:p.width,height:(g=v.measured)==null?void 0:g.height},internals:{positionAbsolute:w,handleBounds:N8(v,b),z:iM(v,f,s.zIndexMode),userNode:v}},t.set(v.id,b)}(b.measured===void 0||b.measured.width===void 0||b.measured.height===void 0)&&!b.hidden&&(d=!1),v.parentId&&e0(b,t,r,a,o),y||(y=v.selected??!1)}return{nodesInitialized:d,hasSelectedNodes:y}}function O8(e,t){if(!e.parentId)return;const r=t.get(e.parentId);r?r.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function e0(e,t,r,a,s){const{elevateNodesOnSelect:o,nodeOrigin:c,nodeExtent:f,zIndexMode:d}=Jp(Kp,a),y=e.parentId,p=t.get(y);if(!p){console.warn(`Parent node ${y} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}O8(e,r),s&&!p.parentId&&p.internals.rootParentIndex===void 0&&d==="auto"&&(p.internals.rootParentIndex=++s.i,p.internals.z=p.internals.z+s.i*A8),s&&p.internals.rootParentIndex!==void 0&&(s.i=p.internals.rootParentIndex);const g=o&&!Wp(d)?rM:0,{x:v,y:b,z:S}=z8(e,p,c,f,g,d),{positionAbsolute:_}=e.internals,w=v!==_.x||b!==_.y;(w||S!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:w?{x:v,y:b}:_,z:S}})}function iM(e,t,r){const a=Sr(e.zIndex)?e.zIndex:0;return Wp(r)?a:a+(e.selected?t:0)}function z8(e,t,r,a,s,o){const{x:c,y:f}=t.internals.positionAbsolute,d=xi(e),y=Ru(e,r),p=Vl(e.extent)?gs(y,e.extent,d):y;let g=gs({x:c+p.x,y:f+p.y},a,d);e.extent==="parent"&&(g=FE(g,d,t));const v=iM(e,s,o),b=t.internals.z??0;return{x:g.x,y:g.y,z:b>=v?b+1:v}}function t0(e,t,r,a=[0,0]){var c;const s=[],o=new Map;for(const f of e){const d=t.get(f.parentId);if(!d)continue;const y=((c=o.get(f.parentId))==null?void 0:c.expandedRect)??ql(d),p=ZE(y,f.rect);o.set(f.parentId,{expandedRect:p,parent:d})}return o.size>0&&o.forEach(({expandedRect:f,parent:d},y)=>{var E;const p=d.internals.positionAbsolute,g=xi(d),v=d.origin??a,b=f.x<p.x?Math.round(Math.abs(p.x-f.x)):0,S=f.y<p.y?Math.round(Math.abs(p.y-f.y)):0,_=Math.max(g.width,Math.round(f.width)),w=Math.max(g.height,Math.round(f.height)),M=(_-g.width)*v[0],C=(w-g.height)*v[1];(b>0||S>0||M||C)&&(s.push({id:y,type:"position",position:{x:d.position.x-b+M,y:d.position.y-S+C}}),(E=r.get(y))==null||E.forEach(k=>{e.some(z=>z.id===k.id)||s.push({id:k.id,type:"position",position:{x:k.position.x+b,y:k.position.y+S}})})),(g.width<f.width||g.height<f.height||b||S)&&s.push({id:y,type:"dimensions",setAttributes:!0,dimensions:{width:_+(b?v[0]*b-M:0),height:w+(S?v[1]*S-C:0)}})}),s}function D8(e,t,r,a,s,o,c){const f=a==null?void 0:a.querySelector(".xyflow__viewport");let d=!1;if(!f)return{changes:[],updatedInternals:d};const y=[],p=window.getComputedStyle(f),{m22:g}=new window.DOMMatrixReadOnly(p.transform),v=[];for(const b of e.values()){const S=t.get(b.id);if(!S)continue;if(S.hidden){t.set(S.id,{...S,internals:{...S.internals,handleBounds:void 0}}),d=!0;continue}const _=Xp(b.nodeElement),w=S.measured.width!==_.width||S.measured.height!==_.height;if(!!(_.width&&_.height&&(w||!S.internals.handleBounds||b.force))){const C=b.nodeElement.getBoundingClientRect(),E=Vl(S.extent)?S.extent:o;let{positionAbsolute:k}=S.internals;S.parentId&&S.extent==="parent"?k=FE(k,_,t.get(S.parentId)):E&&(k=gs(k,E,_));const z={...S,measured:_,internals:{...S.internals,positionAbsolute:k,handleBounds:{source:cS("source",b.nodeElement,C,g,S.id),target:cS("target",b.nodeElement,C,g,S.id)}}};t.set(S.id,z),S.parentId&&e0(z,t,r,{nodeOrigin:s,zIndexMode:c}),d=!0,w&&(y.push({id:S.id,type:"dimensions",dimensions:_}),S.expandParent&&S.parentId&&v.push({id:S.id,parentId:S.parentId,rect:ql(z,s)}))}}if(v.length>0){const b=t0(v,t,r,s);y.push(...b)}return{changes:y,updatedInternals:d}}async function L8({delta:e,panZoom:t,transform:r,translateExtent:a,width:s,height:o}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const c=await t.setViewportConstrained({x:r[0]+e.x,y:r[1]+e.y,zoom:r[2]},[[0,0],[s,o]],a),f=!!c&&(c.x!==r[0]||c.y!==r[1]||c.k!==r[2]);return Promise.resolve(f)}function pS(e,t,r,a,s,o){let c=s;const f=a.get(c)||new Map;a.set(c,f.set(r,t)),c=`${s}-${e}`;const d=a.get(c)||new Map;if(a.set(c,d.set(r,t)),o){c=`${s}-${e}-${o}`;const y=a.get(c)||new Map;a.set(c,y.set(r,t))}}function aM(e,t,r){e.clear(),t.clear();for(const a of r){const{source:s,target:o,sourceHandle:c=null,targetHandle:f=null}=a,d={edgeId:a.id,source:s,target:o,sourceHandle:c,targetHandle:f},y=`${s}-${c}--${o}-${f}`,p=`${o}-${f}--${s}-${c}`;pS("source",d,p,e,s,c),pS("target",d,y,e,o,f),t.set(a.id,a)}}function sM(e,t){if(!e.parentId)return!1;const r=t.get(e.parentId);return r?r.selected?!0:sM(r,t):!1}function vS(e,t,r){var s;let a=e;do{if((s=a==null?void 0:a.matches)!=null&&s.call(a,t))return!0;if(a===r)return!1;a=a==null?void 0:a.parentElement}while(a);return!1}function B8(e,t,r,a){const s=new Map;for(const[o,c]of e)if((c.selected||c.id===a)&&(!c.parentId||!sM(c,e))&&(c.draggable||t&&typeof c.draggable>"u")){const f=e.get(o);f&&s.set(o,{id:o,position:f.position||{x:0,y:0},distance:{x:r.x-f.internals.positionAbsolute.x,y:r.y-f.internals.positionAbsolute.y},extent:f.extent,parentId:f.parentId,origin:f.origin,expandParent:f.expandParent,internals:{positionAbsolute:f.internals.positionAbsolute||{x:0,y:0}},measured:{width:f.measured.width??0,height:f.measured.height??0}})}return s}function Qm({nodeId:e,dragItems:t,nodeLookup:r,dragging:a=!0}){var c,f,d;const s=[];for(const[y,p]of t){const g=(c=r.get(y))==null?void 0:c.internals.userNode;g&&s.push({...g,position:p.position,dragging:a})}if(!e)return[s[0],s];const o=(f=r.get(e))==null?void 0:f.internals.userNode;return[o?{...o,position:((d=t.get(e))==null?void 0:d.position)||o.position,dragging:a}:s[0],s]}function j8({dragItems:e,snapGrid:t,x:r,y:a}){const s=e.values().next().value;if(!s)return null;const o={x:r-s.distance.x,y:a-s.distance.y},c=Ou(o,t);return{x:c.x-o.x,y:c.y-o.y}}function U8({onNodeMouseDown:e,getStoreItems:t,onDragStart:r,onDrag:a,onDragStop:s}){let o={x:null,y:null},c=0,f=new Map,d=!1,y={x:0,y:0},p=null,g=!1,v=null,b=!1,S=!1,_=null;function w({noDragClassName:C,handleSelector:E,domNode:k,isSelectable:z,nodeId:N,nodeClickDistance:D=0}){v=ad(k);function T({x:B,y:$}){const{nodeLookup:G,nodeExtent:re,snapGrid:U,snapToGrid:F,nodeOrigin:Z,onNodeDrag:K,onSelectionDrag:J,onError:O,updateNodePositions:I}=t();o={x:B,y:$};let ae=!1;const ce=f.size>1,de=ce&&re?fp(Nu(f)):null,me=ce&&F?j8({dragItems:f,snapGrid:U,x:B,y:$}):null;for(const[be,ye]of f){if(!G.has(be))continue;let he={x:B-ye.distance.x,y:$-ye.distance.y};F&&(he=me?{x:Math.round(he.x+me.x),y:Math.round(he.y+me.y)}:Ou(he,U));let Ue=null;if(ce&&re&&!ye.extent&&de){const{positionAbsolute:ze}=ye.internals,qe=ze.x-de.x+re[0][0],ut=ze.x+ye.measured.width-de.x2+re[1][0],Ge=ze.y-de.y+re[0][1],Dt=ze.y+ye.measured.height-de.y2+re[1][1];Ue=[[qe,Ge],[ut,Dt]]}const{position:De,positionAbsolute:Re}=$E({nodeId:be,nextPosition:he,nodeLookup:G,nodeExtent:Ue||re,nodeOrigin:Z,onError:O});ae=ae||ye.position.x!==De.x||ye.position.y!==De.y,ye.position=De,ye.internals.positionAbsolute=Re}if(S=S||ae,!!ae&&(I(f,!0),_&&(a||K||!N&&J))){const[be,ye]=Qm({nodeId:N,dragItems:f,nodeLookup:G});a==null||a(_,f,be,ye),K==null||K(_,be,ye),N||J==null||J(_,ye)}}async function L(){if(!p)return;const{transform:B,panBy:$,autoPanSpeed:G,autoPanOnNodeDrag:re}=t();if(!re){d=!1,cancelAnimationFrame(c);return}const[U,F]=YE(y,p,G);(U!==0||F!==0)&&(o.x=(o.x??0)-U/B[2],o.y=(o.y??0)-F/B[2],await $({x:U,y:F})&&T(o)),c=requestAnimationFrame(L)}function Q(B){var ce;const{nodeLookup:$,multiSelectionActive:G,nodesDraggable:re,transform:U,snapGrid:F,snapToGrid:Z,selectNodesOnDrag:K,onNodeDragStart:J,onSelectionDragStart:O,unselectNodesAndEdges:I}=t();g=!0,(!K||!z)&&!G&&N&&((ce=$.get(N))!=null&&ce.selected||I()),z&&K&&N&&(e==null||e(N));const ae=tu(B.sourceEvent,{transform:U,snapGrid:F,snapToGrid:Z,containerBounds:p});if(o=ae,f=B8($,re,ae,N),f.size>0&&(r||J||!N&&O)){const[de,me]=Qm({nodeId:N,dragItems:f,nodeLookup:$});r==null||r(B.sourceEvent,f,de,me),J==null||J(B.sourceEvent,de,me),N||O==null||O(B.sourceEvent,me)}}const j=Gx().clickDistance(D).on("start",B=>{const{domNode:$,nodeDragThreshold:G,transform:re,snapGrid:U,snapToGrid:F}=t();p=($==null?void 0:$.getBoundingClientRect())||null,b=!1,S=!1,_=B.sourceEvent,G===0&&Q(B),o=tu(B.sourceEvent,{transform:re,snapGrid:U,snapToGrid:F,containerBounds:p}),y=xr(B.sourceEvent,p)}).on("drag",B=>{const{autoPanOnNodeDrag:$,transform:G,snapGrid:re,snapToGrid:U,nodeDragThreshold:F,nodeLookup:Z}=t(),K=tu(B.sourceEvent,{transform:G,snapGrid:re,snapToGrid:U,containerBounds:p});if(_=B.sourceEvent,(B.sourceEvent.type==="touchmove"&&B.sourceEvent.touches.length>1||N&&!Z.has(N))&&(b=!0),!b){if(!d&&$&&g&&(d=!0,L()),!g){const J=xr(B.sourceEvent,p),O=J.x-y.x,I=J.y-y.y;Math.sqrt(O*O+I*I)>F&&Q(B)}(o.x!==K.xSnapped||o.y!==K.ySnapped)&&f&&g&&(y=xr(B.sourceEvent,p),T(K))}}).on("end",B=>{if(!(!g||b)&&(d=!1,g=!1,cancelAnimationFrame(c),f.size>0)){const{nodeLookup:$,updateNodePositions:G,onNodeDragStop:re,onSelectionDragStop:U}=t();if(S&&(G(f,!1),S=!1),s||re||!N&&U){const[F,Z]=Qm({nodeId:N,dragItems:f,nodeLookup:$,dragging:!1});s==null||s(B.sourceEvent,f,F,Z),re==null||re(B.sourceEvent,F,Z),N||U==null||U(B.sourceEvent,Z)}}}).filter(B=>{const $=B.target;return!B.button&&(!C||!vS($,`.${C}`,k))&&(!E||vS($,E,k))});v.call(j)}function M(){v==null||v.on(".drag",null)}return{update:w,destroy:M}}function H8(e,t,r){const a=[],s={x:e.x-r,y:e.y-r,width:r*2,height:r*2};for(const o of t.values())pu(s,ql(o))>0&&a.push(o);return a}const q8=250;function V8(e,t,r,a){var f,d;let s=[],o=1/0;const c=H8(e,r,t+q8);for(const y of c){const p=[...((f=y.internals.handleBounds)==null?void 0:f.source)??[],...((d=y.internals.handleBounds)==null?void 0:d.target)??[]];for(const g of p){if(a.nodeId===g.nodeId&&a.type===g.type&&a.id===g.id)continue;const{x:v,y:b}=ps(y,g,g.position,!0),S=Math.sqrt(Math.pow(v-e.x,2)+Math.pow(b-e.y,2));S>t||(S<o?(s=[{...g,x:v,y:b}],o=S):S===o&&s.push({...g,x:v,y:b}))}}if(!s.length)return null;if(s.length>1){const y=a.type==="source"?"target":"source";return s.find(p=>p.type===y)??s[0]}return s[0]}function lM(e,t,r,a,s,o=!1){var y,p,g;const c=a.get(e);if(!c)return null;const f=s==="strict"?(y=c.internals.handleBounds)==null?void 0:y[t]:[...((p=c.internals.handleBounds)==null?void 0:p.source)??[],...((g=c.internals.handleBounds)==null?void 0:g.target)??[]],d=(r?f==null?void 0:f.find(v=>v.id===r):f==null?void 0:f[0])??null;return d&&o?{...d,...ps(c,d,d.position,!0)}:d}function oM(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function I8(e,t){let r=null;return t?r=!0:e&&!t&&(r=!1),r}const uM=()=>!0;function P8(e,{connectionMode:t,connectionRadius:r,handleId:a,nodeId:s,edgeUpdaterType:o,isTarget:c,domNode:f,nodeLookup:d,lib:y,autoPanOnConnect:p,flowId:g,panBy:v,cancelConnection:b,onConnectStart:S,onConnect:_,onConnectEnd:w,isValidConnection:M=uM,onReconnectEnd:C,updateConnection:E,getTransform:k,getFromHandle:z,autoPanSpeed:N,dragThreshold:D=1,handleDomNode:T}){const L=XE(e.target);let Q=0,j;const{x:B,y:$}=xr(e),G=oM(o,T),re=f==null?void 0:f.getBoundingClientRect();let U=!1;if(!re||!G)return;const F=lM(s,G,a,d,t);if(!F)return;let Z=xr(e,re),K=!1,J=null,O=!1,I=null;function ae(){if(!p||!re)return;const[De,Re]=YE(Z,re,N);v({x:De,y:Re}),Q=requestAnimationFrame(ae)}const ce={...F,nodeId:s,type:G,position:F.position},de=d.get(s);let be={inProgress:!0,isValid:null,from:ps(de,ce,je.Left,!0),fromHandle:ce,fromPosition:ce.position,fromNode:de,to:Z,toHandle:null,toPosition:sS[ce.position],toNode:null,pointer:Z};function ye(){U=!0,E(be),S==null||S(e,{nodeId:s,handleId:a,handleType:G})}D===0&&ye();function he(De){if(!U){const{x:Dt,y:Dn}=xr(De),yn=Dt-B,Qn=Dn-$;if(!(yn*yn+Qn*Qn>D*D))return;ye()}if(!z()||!ce){Ue(De);return}const Re=k();Z=xr(De,re),j=V8(zu(Z,Re,!1,[1,1]),r,d,ce),K||(ae(),K=!0);const ze=cM(De,{handle:j,connectionMode:t,fromNodeId:s,fromHandleId:a,fromType:c?"target":"source",isValidConnection:M,doc:L,lib:y,flowId:g,nodeLookup:d});I=ze.handleDomNode,J=ze.connection,O=I8(!!j,ze.isValid);const qe=d.get(s),ut=qe?ps(qe,ce,je.Left,!0):be.from,Ge={...be,from:ut,isValid:O,to:ze.toHandle&&O?ed({x:ze.toHandle.x,y:ze.toHandle.y},Re):Z,toHandle:ze.toHandle,toPosition:O&&ze.toHandle?ze.toHandle.position:sS[ce.position],toNode:ze.toHandle?d.get(ze.toHandle.nodeId):null,pointer:Z};E(Ge),be=Ge}function Ue(De){if(!("touches"in De&&De.touches.length>0)){if(U){(j||I)&&J&&O&&(_==null||_(J));const{inProgress:Re,...ze}=be,qe={...ze,toPosition:be.toHandle?be.toPosition:null};w==null||w(De,qe),o&&(C==null||C(De,qe))}b(),cancelAnimationFrame(Q),K=!1,O=!1,J=null,I=null,L.removeEventListener("mousemove",he),L.removeEventListener("mouseup",Ue),L.removeEventListener("touchmove",he),L.removeEventListener("touchend",Ue)}}L.addEventListener("mousemove",he),L.addEventListener("mouseup",Ue),L.addEventListener("touchmove",he),L.addEventListener("touchend",Ue)}function cM(e,{handle:t,connectionMode:r,fromNodeId:a,fromHandleId:s,fromType:o,doc:c,lib:f,flowId:d,isValidConnection:y=uM,nodeLookup:p}){const g=o==="target",v=t?c.querySelector(`.${f}-flow__handle[data-id="${d}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:b,y:S}=xr(e),_=c.elementFromPoint(b,S),w=_!=null&&_.classList.contains(`${f}-flow__handle`)?_:v,M={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const C=oM(void 0,w),E=w.getAttribute("data-nodeid"),k=w.getAttribute("data-handleid"),z=w.classList.contains("connectable"),N=w.classList.contains("connectableend");if(!E||!C)return M;const D={source:g?E:a,sourceHandle:g?k:s,target:g?a:E,targetHandle:g?s:k};M.connection=D;const L=z&&N&&(r===Ul.Strict?g&&C==="source"||!g&&C==="target":E!==a||k!==s);M.isValid=L&&y(D),M.toHandle=lM(E,C,k,p,r,!0)}return M}const mp={onPointerDown:P8,isValid:cM};function $8({domNode:e,panZoom:t,getTransform:r,getViewScale:a}){const s=ad(e);function o({translateExtent:f,width:d,height:y,zoomStep:p=1,pannable:g=!0,zoomable:v=!0,inversePan:b=!1}){const S=E=>{if(E.sourceEvent.type!=="wheel"||!t)return;const k=r(),z=E.sourceEvent.ctrlKey&&vu()?10:1,N=-E.sourceEvent.deltaY*(E.sourceEvent.deltaMode===1?.05:E.sourceEvent.deltaMode?1:.002)*p,D=k[2]*Math.pow(2,N*z);t.scaleTo(D)};let _=[0,0];const w=E=>{(E.sourceEvent.type==="mousedown"||E.sourceEvent.type==="touchstart")&&(_=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY])},M=E=>{const k=r();if(E.sourceEvent.type!=="mousemove"&&E.sourceEvent.type!=="touchmove"||!t)return;const z=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY],N=[z[0]-_[0],z[1]-_[1]];_=z;const D=a()*Math.max(k[2],Math.log(k[2]))*(b?-1:1),T={x:k[0]-N[0]*D,y:k[1]-N[1]*D},L=[[0,0],[d,y]];t.setViewportConstrained({x:T.x,y:T.y,zoom:k[2]},L,f)},C=Zx().on("start",w).on("zoom",g?M:null).on("zoom.wheel",v?S:null);s.call(C,{})}function c(){s.on("zoom",null)}return{update:o,destroy:c,pointer:Yx}}const wd=e=>({x:e.x,y:e.y,zoom:e.k}),Xm=({x:e,y:t,zoom:r})=>yk.translate(e,t).scale(r),ml=(e,t)=>e.target.closest(`.${t}`),fM=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),F8=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Km=(e,t=0,r=F8,a=()=>{})=>{const s=typeof t=="number"&&t>0;return s||a(),s?e.transition().duration(t).ease(r).on("end",a):e},dM=e=>{const t=e.ctrlKey&&vu()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function Y8({zoomPanValues:e,noWheelClassName:t,d3Selection:r,d3Zoom:a,panOnScrollMode:s,panOnScrollSpeed:o,zoomOnPinch:c,onPanZoomStart:f,onPanZoom:d,onPanZoomEnd:y}){return p=>{if(ml(p,t))return p.ctrlKey&&p.preventDefault(),!1;p.preventDefault(),p.stopImmediatePropagation();const g=r.property("__zoom").k||1;if(p.ctrlKey&&c){const w=Yx(p),M=dM(p),C=g*Math.pow(2,M);a.scaleTo(r,C,w,p);return}const v=p.deltaMode===1?20:1;let b=s===ls.Vertical?0:p.deltaX*v,S=s===ls.Horizontal?0:p.deltaY*v;!vu()&&p.shiftKey&&s!==ls.Vertical&&(b=p.deltaY*v,S=0),a.translateBy(r,-(b/g)*o,-(S/g)*o,{internal:!0});const _=wd(r.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(d==null||d(p,_),e.panScrollTimeout=setTimeout(()=>{y==null||y(p,_),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,f==null||f(p,_))}}function Z8({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:r}){return function(a,s){const o=a.type==="wheel",c=!t&&o&&!a.ctrlKey,f=ml(a,e);if(a.ctrlKey&&o&&f&&a.preventDefault(),c||f)return null;a.preventDefault(),r.call(this,a,s)}}function G8({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:r}){return a=>{var o,c,f;if((o=a.sourceEvent)!=null&&o.internal)return;const s=wd(a.transform);e.mouseButton=((c=a.sourceEvent)==null?void 0:c.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=s,((f=a.sourceEvent)==null?void 0:f.type)==="mousedown"&&t(!0),r&&(r==null||r(a.sourceEvent,s))}}function Q8({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:r,onTransformChange:a,onPanZoom:s}){return o=>{var c,f;e.usedRightMouseButton=!!(r&&fM(t,e.mouseButton??0)),(c=o.sourceEvent)!=null&&c.sync||a([o.transform.x,o.transform.y,o.transform.k]),s&&!((f=o.sourceEvent)!=null&&f.internal)&&(s==null||s(o.sourceEvent,wd(o.transform)))}}function X8({zoomPanValues:e,panOnDrag:t,panOnScroll:r,onDraggingChange:a,onPanZoomEnd:s,onPaneContextMenu:o}){return c=>{var f;if(!((f=c.sourceEvent)!=null&&f.internal)&&(e.isZoomingOrPanning=!1,o&&fM(t,e.mouseButton??0)&&!e.usedRightMouseButton&&c.sourceEvent&&o(c.sourceEvent),e.usedRightMouseButton=!1,a(!1),s)){const d=wd(c.transform);e.prevViewport=d,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{s==null||s(c.sourceEvent,d)},r?150:0)}}}function K8({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:r,panOnDrag:a,panOnScroll:s,zoomOnDoubleClick:o,userSelectionActive:c,noWheelClassName:f,noPanClassName:d,lib:y,connectionInProgress:p}){return g=>{var w;const v=e||t,b=r&&g.ctrlKey,S=g.type==="wheel";if(g.button===1&&g.type==="mousedown"&&(ml(g,`${y}-flow__node`)||ml(g,`${y}-flow__edge`)))return!0;if(!a&&!v&&!s&&!o&&!r||c||p&&!S||ml(g,f)&&S||ml(g,d)&&(!S||s&&S&&!e)||!r&&g.ctrlKey&&S)return!1;if(!r&&g.type==="touchstart"&&((w=g.touches)==null?void 0:w.length)>1)return g.preventDefault(),!1;if(!v&&!s&&!b&&S||!a&&(g.type==="mousedown"||g.type==="touchstart")||Array.isArray(a)&&!a.includes(g.button)&&g.type==="mousedown")return!1;const _=Array.isArray(a)&&a.includes(g.button)||!g.button||g.button<=1;return(!g.ctrlKey||S)&&_}}function J8({domNode:e,minZoom:t,maxZoom:r,translateExtent:a,viewport:s,onPanZoom:o,onPanZoomStart:c,onPanZoomEnd:f,onDraggingChange:d}){const y={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect(),g=Zx().scaleExtent([t,r]).translateExtent(a),v=ad(e).call(g);C({x:s.x,y:s.y,zoom:Hl(s.zoom,t,r)},[[0,0],[p.width,p.height]],a);const b=v.on("wheel.zoom"),S=v.on("dblclick.zoom");g.wheelDelta(dM);function _(j,B){return v?new Promise($=>{g==null||g.interpolate((B==null?void 0:B.interpolate)==="linear"?Py:Iy).transform(Km(v,B==null?void 0:B.duration,B==null?void 0:B.ease,()=>$(!0)),j)}):Promise.resolve(!1)}function w({noWheelClassName:j,noPanClassName:B,onPaneContextMenu:$,userSelectionActive:G,panOnScroll:re,panOnDrag:U,panOnScrollMode:F,panOnScrollSpeed:Z,preventScrolling:K,zoomOnPinch:J,zoomOnScroll:O,zoomOnDoubleClick:I,zoomActivationKeyPressed:ae,lib:ce,onTransformChange:de,connectionInProgress:me,paneClickDistance:be,selectionOnDrag:ye}){G&&!y.isZoomingOrPanning&&M();const he=re&&!ae&&!G;g.clickDistance(ye?1/0:!Sr(be)||be<0?0:be);const Ue=he?Y8({zoomPanValues:y,noWheelClassName:j,d3Selection:v,d3Zoom:g,panOnScrollMode:F,panOnScrollSpeed:Z,zoomOnPinch:J,onPanZoomStart:c,onPanZoom:o,onPanZoomEnd:f}):Z8({noWheelClassName:j,preventScrolling:K,d3ZoomHandler:b});if(v.on("wheel.zoom",Ue,{passive:!1}),!G){const Re=G8({zoomPanValues:y,onDraggingChange:d,onPanZoomStart:c});g.on("start",Re);const ze=Q8({zoomPanValues:y,panOnDrag:U,onPaneContextMenu:!!$,onPanZoom:o,onTransformChange:de});g.on("zoom",ze);const qe=X8({zoomPanValues:y,panOnDrag:U,panOnScroll:re,onPaneContextMenu:$,onPanZoomEnd:f,onDraggingChange:d});g.on("end",qe)}const De=K8({zoomActivationKeyPressed:ae,panOnDrag:U,zoomOnScroll:O,panOnScroll:re,zoomOnDoubleClick:I,zoomOnPinch:J,userSelectionActive:G,noPanClassName:B,noWheelClassName:j,lib:ce,connectionInProgress:me});g.filter(De),I?v.on("dblclick.zoom",S):v.on("dblclick.zoom",null)}function M(){g.on("zoom",null)}async function C(j,B,$){const G=Xm(j),re=g==null?void 0:g.constrain()(G,B,$);return re&&await _(re),new Promise(U=>U(re))}async function E(j,B){const $=Xm(j);return await _($,B),new Promise(G=>G($))}function k(j){if(v){const B=Xm(j),$=v.property("__zoom");($.k!==j.zoom||$.x!==j.x||$.y!==j.y)&&(g==null||g.transform(v,B,null,{sync:!0}))}}function z(){const j=v?mk(v.node()):{x:0,y:0,k:1};return{x:j.x,y:j.y,zoom:j.k}}function N(j,B){return v?new Promise($=>{g==null||g.interpolate((B==null?void 0:B.interpolate)==="linear"?Py:Iy).scaleTo(Km(v,B==null?void 0:B.duration,B==null?void 0:B.ease,()=>$(!0)),j)}):Promise.resolve(!1)}function D(j,B){return v?new Promise($=>{g==null||g.interpolate((B==null?void 0:B.interpolate)==="linear"?Py:Iy).scaleBy(Km(v,B==null?void 0:B.duration,B==null?void 0:B.ease,()=>$(!0)),j)}):Promise.resolve(!1)}function T(j){g==null||g.scaleExtent(j)}function L(j){g==null||g.translateExtent(j)}function Q(j){const B=!Sr(j)||j<0?0:j;g==null||g.clickDistance(B)}return{update:w,destroy:M,setViewport:E,setViewportConstrained:C,getViewport:z,scaleTo:N,scaleBy:D,setScaleExtent:T,setTranslateExtent:L,syncViewport:k,setClickDistance:Q}}var Il;(function(e){e.Line="line",e.Handle="handle"})(Il||(Il={}));function W8({width:e,prevWidth:t,height:r,prevHeight:a,affectsX:s,affectsY:o}){const c=e-t,f=r-a,d=[c>0?1:c<0?-1:0,f>0?1:f<0?-1:0];return c&&s&&(d[0]=d[0]*-1),f&&o&&(d[1]=d[1]*-1),d}function bS(e){const t=e.includes("right")||e.includes("left"),r=e.includes("bottom")||e.includes("top"),a=e.includes("left"),s=e.includes("top");return{isHorizontal:t,isVertical:r,affectsX:a,affectsY:s}}function ea(e,t){return Math.max(0,t-e)}function ta(e,t){return Math.max(0,e-t)}function vf(e,t,r){return Math.max(0,t-e,e-r)}function _S(e,t){return e?!t:t}function ez(e,t,r,a,s,o,c,f){let{affectsX:d,affectsY:y}=t;const{isHorizontal:p,isVertical:g}=t,v=p&&g,{xSnapped:b,ySnapped:S}=r,{minWidth:_,maxWidth:w,minHeight:M,maxHeight:C}=a,{x:E,y:k,width:z,height:N,aspectRatio:D}=e;let T=Math.floor(p?b-e.pointerX:0),L=Math.floor(g?S-e.pointerY:0);const Q=z+(d?-T:T),j=N+(y?-L:L),B=-o[0]*z,$=-o[1]*N;let G=vf(Q,_,w),re=vf(j,M,C);if(c){let Z=0,K=0;d&&T<0?Z=ea(E+T+B,c[0][0]):!d&&T>0&&(Z=ta(E+Q+B,c[1][0])),y&&L<0?K=ea(k+L+$,c[0][1]):!y&&L>0&&(K=ta(k+j+$,c[1][1])),G=Math.max(G,Z),re=Math.max(re,K)}if(f){let Z=0,K=0;d&&T>0?Z=ta(E+T,f[0][0]):!d&&T<0&&(Z=ea(E+Q,f[1][0])),y&&L>0?K=ta(k+L,f[0][1]):!y&&L<0&&(K=ea(k+j,f[1][1])),G=Math.max(G,Z),re=Math.max(re,K)}if(s){if(p){const Z=vf(Q/D,M,C)*D;if(G=Math.max(G,Z),c){let K=0;!d&&!y||d&&!y&&v?K=ta(k+$+Q/D,c[1][1])*D:K=ea(k+$+(d?T:-T)/D,c[0][1])*D,G=Math.max(G,K)}if(f){let K=0;!d&&!y||d&&!y&&v?K=ea(k+Q/D,f[1][1])*D:K=ta(k+(d?T:-T)/D,f[0][1])*D,G=Math.max(G,K)}}if(g){const Z=vf(j*D,_,w)/D;if(re=Math.max(re,Z),c){let K=0;!d&&!y||y&&!d&&v?K=ta(E+j*D+B,c[1][0])/D:K=ea(E+(y?L:-L)*D+B,c[0][0])/D,re=Math.max(re,K)}if(f){let K=0;!d&&!y||y&&!d&&v?K=ea(E+j*D,f[1][0])/D:K=ta(E+(y?L:-L)*D,f[0][0])/D,re=Math.max(re,K)}}}L=L+(L<0?re:-re),T=T+(T<0?G:-G),s&&(v?Q>j*D?L=(_S(d,y)?-T:T)/D:T=(_S(d,y)?-L:L)*D:p?(L=T/D,y=d):(T=L*D,d=y));const U=d?E+T:E,F=y?k+L:k;return{width:z+(d?-T:T),height:N+(y?-L:L),x:o[0]*T*(d?-1:1)+U,y:o[1]*L*(y?-1:1)+F}}const hM={width:0,height:0,x:0,y:0},tz={...hM,pointerX:0,pointerY:0,aspectRatio:1};function nz(e){return[[0,0],[e.measured.width,e.measured.height]]}function rz(e,t,r){const a=t.position.x+e.position.x,s=t.position.y+e.position.y,o=e.measured.width??0,c=e.measured.height??0,f=r[0]*o,d=r[1]*c;return[[a-f,s-d],[a+o-f,s+c-d]]}function iz({domNode:e,nodeId:t,getStoreItems:r,onChange:a,onEnd:s}){const o=ad(e);let c={controlDirection:bS("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function f({controlPosition:y,boundaries:p,keepAspectRatio:g,resizeDirection:v,onResizeStart:b,onResize:S,onResizeEnd:_,shouldResize:w}){let M={...hM},C={...tz};c={boundaries:p,resizeDirection:v,keepAspectRatio:g,controlDirection:bS(y)};let E,k=null,z=[],N,D,T,L=!1;const Q=Gx().on("start",j=>{const{nodeLookup:B,transform:$,snapGrid:G,snapToGrid:re,nodeOrigin:U,paneDomNode:F}=r();if(E=B.get(t),!E)return;k=(F==null?void 0:F.getBoundingClientRect())??null;const{xSnapped:Z,ySnapped:K}=tu(j.sourceEvent,{transform:$,snapGrid:G,snapToGrid:re,containerBounds:k});M={width:E.measured.width??0,height:E.measured.height??0,x:E.position.x??0,y:E.position.y??0},C={...M,pointerX:Z,pointerY:K,aspectRatio:M.width/M.height},N=void 0,E.parentId&&(E.extent==="parent"||E.expandParent)&&(N=B.get(E.parentId),D=N&&E.extent==="parent"?nz(N):void 0),z=[],T=void 0;for(const[J,O]of B)if(O.parentId===t&&(z.push({id:J,position:{...O.position},extent:O.extent}),O.extent==="parent"||O.expandParent)){const I=rz(O,E,O.origin??U);T?T=[[Math.min(I[0][0],T[0][0]),Math.min(I[0][1],T[0][1])],[Math.max(I[1][0],T[1][0]),Math.max(I[1][1],T[1][1])]]:T=I}b==null||b(j,{...M})}).on("drag",j=>{const{transform:B,snapGrid:$,snapToGrid:G,nodeOrigin:re}=r(),U=tu(j.sourceEvent,{transform:B,snapGrid:$,snapToGrid:G,containerBounds:k}),F=[];if(!E)return;const{x:Z,y:K,width:J,height:O}=M,I={},ae=E.origin??re,{width:ce,height:de,x:me,y:be}=ez(C,c.controlDirection,U,c.boundaries,c.keepAspectRatio,ae,D,T),ye=ce!==J,he=de!==O,Ue=me!==Z&&ye,De=be!==K&&he;if(!Ue&&!De&&!ye&&!he)return;if((Ue||De||ae[0]===1||ae[1]===1)&&(I.x=Ue?me:M.x,I.y=De?be:M.y,M.x=I.x,M.y=I.y,z.length>0)){const ut=me-Z,Ge=be-K;for(const Dt of z)Dt.position={x:Dt.position.x-ut+ae[0]*(ce-J),y:Dt.position.y-Ge+ae[1]*(de-O)},F.push(Dt)}if((ye||he)&&(I.width=ye&&(!c.resizeDirection||c.resizeDirection==="horizontal")?ce:M.width,I.height=he&&(!c.resizeDirection||c.resizeDirection==="vertical")?de:M.height,M.width=I.width,M.height=I.height),N&&E.expandParent){const ut=ae[0]*(I.width??0);I.x&&I.x<ut&&(M.x=ut,C.x=C.x-(I.x-ut));const Ge=ae[1]*(I.height??0);I.y&&I.y<Ge&&(M.y=Ge,C.y=C.y-(I.y-Ge))}const Re=W8({width:M.width,prevWidth:J,height:M.height,prevHeight:O,affectsX:c.controlDirection.affectsX,affectsY:c.controlDirection.affectsY}),ze={...M,direction:Re};(w==null?void 0:w(j,ze))!==!1&&(L=!0,S==null||S(j,ze),a(I,F))}).on("end",j=>{L&&(_==null||_(j,{...M}),s==null||s({...M}),L=!1)});o.call(Q)}function d(){o.on(".drag",null)}return{update:f,destroy:d}}const az={},SS=e=>{let t;const r=new Set,a=(p,g)=>{const v=typeof p=="function"?p(t):p;if(!Object.is(v,t)){const b=t;t=g??(typeof v!="object"||v===null)?v:Object.assign({},t,v),r.forEach(S=>S(t,b))}},s=()=>t,d={setState:a,getState:s,getInitialState:()=>y,subscribe:p=>(r.add(p),()=>r.delete(p)),destroy:()=>{(az?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},y=t=e(a,s,d);return d},sz=e=>e?SS(e):SS,{useDebugValue:lz}=jt,{useSyncExternalStoreWithSelector:oz}=XN,uz=e=>e;function yM(e,t=uz,r){const a=oz(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return lz(a),a}const xS=(e,t)=>{const r=sz(e),a=(s,o=t)=>yM(r,s,o);return Object.assign(a,r),a},cz=(e,t)=>e?xS(e,t):xS;function kt(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[a,s]of e)if(!Object.is(s,t.get(a)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const a of e)if(!t.has(a))return!1;return!0}const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(const a of r)if(!Object.prototype.hasOwnProperty.call(t,a)||!Object.is(e[a],t[a]))return!1;return!0}const Ed=R.createContext(null),fz=Ed.Provider,mM=Hr.error001();function it(e,t){const r=R.useContext(Ed);if(r===null)throw new Error(mM);return yM(r,e,t)}function At(){const e=R.useContext(Ed);if(e===null)throw new Error(mM);return R.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const wS={display:"none"},dz={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},gM="react-flow__node-desc",pM="react-flow__edge-desc",hz="react-flow__aria-live",yz=e=>e.ariaLiveMessage,mz=e=>e.ariaLabelConfig;function gz({rfId:e}){const t=it(yz);return se.jsx("div",{id:`${hz}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:dz,children:t})}function pz({rfId:e,disableKeyboardA11y:t}){const r=it(mz);return se.jsxs(se.Fragment,{children:[se.jsx("div",{id:`${gM}-${e}`,style:wS,children:t?r["node.a11yDescription.default"]:r["node.a11yDescription.keyboardDisabled"]}),se.jsx("div",{id:`${pM}-${e}`,style:wS,children:r["edge.a11yDescription.default"]}),!t&&se.jsx(gz,{rfId:e})]})}const Md=R.forwardRef(({position:e="top-left",children:t,className:r,style:a,...s},o)=>{const c=`${e}`.split("-");return se.jsx("div",{className:Gt(["react-flow__panel",r,...c]),style:a,ref:o,...s,children:t})});Md.displayName="Panel";function vz({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:se.jsx(Md,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:se.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const bz=e=>{const t=[],r=[];for(const[,a]of e.nodeLookup)a.selected&&t.push(a.internals.userNode);for(const[,a]of e.edgeLookup)a.selected&&r.push(a);return{selectedNodes:t,selectedEdges:r}},bf=e=>e.id;function _z(e,t){return kt(e.selectedNodes.map(bf),t.selectedNodes.map(bf))&&kt(e.selectedEdges.map(bf),t.selectedEdges.map(bf))}function Sz({onSelectionChange:e}){const t=At(),{selectedNodes:r,selectedEdges:a}=it(bz,_z);return R.useEffect(()=>{const s={nodes:r,edges:a};e==null||e(s),t.getState().onSelectionChangeHandlers.forEach(o=>o(s))},[r,a,e]),null}const xz=e=>!!e.onSelectionChangeHandlers;function wz({onSelectionChange:e}){const t=it(xz);return e||t?se.jsx(Sz,{onSelectionChange:e}):null}const gp=typeof window<"u"?R.useLayoutEffect:R.useEffect,vM=[0,0],Ez={x:0,y:0,zoom:1},Mz=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],ES=[...Mz,"rfId"],Cz=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),MS={translateExtent:mu,nodeOrigin:vM,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function kz(e){const{setNodes:t,setEdges:r,setMinZoom:a,setMaxZoom:s,setTranslateExtent:o,setNodeExtent:c,reset:f,setDefaultNodesAndEdges:d}=it(Cz,kt),y=At();gp(()=>(d(e.defaultNodes,e.defaultEdges),()=>{p.current=MS,f()}),[]);const p=R.useRef(MS);return gp(()=>{for(const g of ES){const v=e[g],b=p.current[g];v!==b&&(typeof e[g]>"u"||(g==="nodes"?t(v):g==="edges"?r(v):g==="minZoom"?a(v):g==="maxZoom"?s(v):g==="translateExtent"?o(v):g==="nodeExtent"?c(v):g==="ariaLabelConfig"?y.setState({ariaLabelConfig:g8(v)}):g==="fitView"?y.setState({fitViewQueued:v}):g==="fitViewOptions"?y.setState({fitViewOptions:v}):y.setState({[g]:v})))}p.current=e},ES.map(g=>e[g])),null}function CS(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function Az(e){var a;const[t,r]=R.useState(e==="system"?null:e);return R.useEffect(()=>{if(e!=="system"){r(e);return}const s=CS(),o=()=>r(s!=null&&s.matches?"dark":"light");return o(),s==null||s.addEventListener("change",o),()=>{s==null||s.removeEventListener("change",o)}},[e]),t!==null?t:(a=CS())!=null&&a.matches?"dark":"light"}const kS=typeof document<"u"?document:null;function bu(e=null,t={target:kS,actInsideInputWithModifier:!0}){const[r,a]=R.useState(!1),s=R.useRef(!1),o=R.useRef(new Set([])),[c,f]=R.useMemo(()=>{if(e!==null){const y=(Array.isArray(e)?e:[e]).filter(g=>typeof g=="string").map(g=>g.replace("+",`
713
- `).replace(`
714
-
715
- `,`
716
- +`).split(`
717
- `)),p=y.reduce((g,v)=>g.concat(...v),[]);return[y,p]}return[[],[]]},[e]);return R.useEffect(()=>{const d=(t==null?void 0:t.target)??kS,y=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const p=b=>{var w,M;if(s.current=b.ctrlKey||b.metaKey||b.shiftKey||b.altKey,(!s.current||s.current&&!y)&&KE(b))return!1;const _=TS(b.code,f);if(o.current.add(b[_]),AS(c,o.current,!1)){const C=((M=(w=b.composedPath)==null?void 0:w.call(b))==null?void 0:M[0])||b.target,E=(C==null?void 0:C.nodeName)==="BUTTON"||(C==null?void 0:C.nodeName)==="A";t.preventDefault!==!1&&(s.current||!E)&&b.preventDefault(),a(!0)}},g=b=>{const S=TS(b.code,f);AS(c,o.current,!0)?(a(!1),o.current.clear()):o.current.delete(b[S]),b.key==="Meta"&&o.current.clear(),s.current=!1},v=()=>{o.current.clear(),a(!1)};return d==null||d.addEventListener("keydown",p),d==null||d.addEventListener("keyup",g),window.addEventListener("blur",v),window.addEventListener("contextmenu",v),()=>{d==null||d.removeEventListener("keydown",p),d==null||d.removeEventListener("keyup",g),window.removeEventListener("blur",v),window.removeEventListener("contextmenu",v)}}},[e,a]),r}function AS(e,t,r){return e.filter(a=>r||a.length===t.size).some(a=>a.every(s=>t.has(s)))}function TS(e,t){return t.includes(e)?"code":"key"}const Tz=()=>{const e=At();return R.useMemo(()=>({zoomIn:t=>{const{panZoom:r}=e.getState();return r?r.scaleBy(1.2,t):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:r}=e.getState();return r?r.scaleBy(1/1.2,t):Promise.resolve(!1)},zoomTo:(t,r)=>{const{panZoom:a}=e.getState();return a?a.scaleTo(t,r):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,r)=>{const{transform:[a,s,o],panZoom:c}=e.getState();return c?(await c.setViewport({x:t.x??a,y:t.y??s,zoom:t.zoom??o},r),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,r,a]=e.getState().transform;return{x:t,y:r,zoom:a}},setCenter:async(t,r,a)=>e.getState().setCenter(t,r,a),fitBounds:async(t,r)=>{const{width:a,height:s,minZoom:o,maxZoom:c,panZoom:f}=e.getState(),d=Qp(t,a,s,o,c,(r==null?void 0:r.padding)??.1);return f?(await f.setViewport(d,{duration:r==null?void 0:r.duration,ease:r==null?void 0:r.ease,interpolate:r==null?void 0:r.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,r={})=>{const{transform:a,snapGrid:s,snapToGrid:o,domNode:c}=e.getState();if(!c)return t;const{x:f,y:d}=c.getBoundingClientRect(),y={x:t.x-f,y:t.y-d},p=r.snapGrid??s,g=r.snapToGrid??o;return zu(y,a,g,p)},flowToScreenPosition:t=>{const{transform:r,domNode:a}=e.getState();if(!a)return t;const{x:s,y:o}=a.getBoundingClientRect(),c=ed(t,r);return{x:c.x+s,y:c.y+o}}}),[])};function bM(e,t){const r=[],a=new Map,s=[];for(const o of e)if(o.type==="add"){s.push(o);continue}else if(o.type==="remove"||o.type==="replace")a.set(o.id,[o]);else{const c=a.get(o.id);c?c.push(o):a.set(o.id,[o])}for(const o of t){const c=a.get(o.id);if(!c){r.push(o);continue}if(c[0].type==="remove")continue;if(c[0].type==="replace"){r.push({...c[0].item});continue}const f={...o};for(const d of c)Rz(d,f);r.push(f)}return s.length&&s.forEach(o=>{o.index!==void 0?r.splice(o.index,0,{...o.item}):r.push({...o.item})}),r}function Rz(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function Nz(e,t){return bM(e,t)}function Oz(e,t){return bM(e,t)}function Za(e,t){return{id:e,type:"select",selected:t}}function gl(e,t=new Set,r=!1){const a=[];for(const[s,o]of e){const c=t.has(s);!(o.selected===void 0&&!c)&&o.selected!==c&&(r&&(o.selected=c),a.push(Za(o.id,c)))}return a}function RS({items:e=[],lookup:t}){var s;const r=[],a=new Map(e.map(o=>[o.id,o]));for(const[o,c]of e.entries()){const f=t.get(c.id),d=((s=f==null?void 0:f.internals)==null?void 0:s.userNode)??f;d!==void 0&&d!==c&&r.push({id:c.id,item:c,type:"replace"}),d===void 0&&r.push({item:c,type:"add",index:o})}for(const[o]of t)a.get(o)===void 0&&r.push({id:o,type:"remove"});return r}function NS(e){return{id:e.id,type:"remove"}}const OS=e=>s8(e),zz=e=>PE(e);function _M(e){return R.forwardRef(e)}function zS(e){const[t,r]=R.useState(BigInt(0)),[a]=R.useState(()=>Dz(()=>r(s=>s+BigInt(1))));return gp(()=>{const s=a.get();s.length&&(e(s),a.reset())},[t]),a}function Dz(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:r=>{t.push(r),e()}}}const SM=R.createContext(null);function Lz({children:e}){const t=At(),r=R.useCallback(f=>{const{nodes:d=[],setNodes:y,hasDefaultNodes:p,onNodesChange:g,nodeLookup:v,fitViewQueued:b,onNodesChangeMiddlewareMap:S}=t.getState();let _=d;for(const M of f)_=typeof M=="function"?M(_):M;let w=RS({items:_,lookup:v});for(const M of S.values())w=M(w);p&&y(_),w.length>0?g==null||g(w):b&&window.requestAnimationFrame(()=>{const{fitViewQueued:M,nodes:C,setNodes:E}=t.getState();M&&E(C)})},[]),a=zS(r),s=R.useCallback(f=>{const{edges:d=[],setEdges:y,hasDefaultEdges:p,onEdgesChange:g,edgeLookup:v}=t.getState();let b=d;for(const S of f)b=typeof S=="function"?S(b):S;p?y(b):g&&g(RS({items:b,lookup:v}))},[]),o=zS(s),c=R.useMemo(()=>({nodeQueue:a,edgeQueue:o}),[]);return se.jsx(SM.Provider,{value:c,children:e})}function Bz(){const e=R.useContext(SM);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const jz=e=>!!e.panZoom;function n0(){const e=Tz(),t=At(),r=Bz(),a=it(jz),s=R.useMemo(()=>{const o=g=>t.getState().nodeLookup.get(g),c=g=>{r.nodeQueue.push(g)},f=g=>{r.edgeQueue.push(g)},d=g=>{var M,C;const{nodeLookup:v,nodeOrigin:b}=t.getState(),S=OS(g)?g:v.get(g.id),_=S.parentId?QE(S.position,S.measured,S.parentId,v,b):S.position,w={...S,position:_,width:((M=S.measured)==null?void 0:M.width)??S.width,height:((C=S.measured)==null?void 0:C.height)??S.height};return ql(w)},y=(g,v,b={replace:!1})=>{c(S=>S.map(_=>{if(_.id===g){const w=typeof v=="function"?v(_):v;return b.replace&&OS(w)?w:{..._,...w}}return _}))},p=(g,v,b={replace:!1})=>{f(S=>S.map(_=>{if(_.id===g){const w=typeof v=="function"?v(_):v;return b.replace&&zz(w)?w:{..._,...w}}return _}))};return{getNodes:()=>t.getState().nodes.map(g=>({...g})),getNode:g=>{var v;return(v=o(g))==null?void 0:v.internals.userNode},getInternalNode:o,getEdges:()=>{const{edges:g=[]}=t.getState();return g.map(v=>({...v}))},getEdge:g=>t.getState().edgeLookup.get(g),setNodes:c,setEdges:f,addNodes:g=>{const v=Array.isArray(g)?g:[g];r.nodeQueue.push(b=>[...b,...v])},addEdges:g=>{const v=Array.isArray(g)?g:[g];r.edgeQueue.push(b=>[...b,...v])},toObject:()=>{const{nodes:g=[],edges:v=[],transform:b}=t.getState(),[S,_,w]=b;return{nodes:g.map(M=>({...M})),edges:v.map(M=>({...M})),viewport:{x:S,y:_,zoom:w}}},deleteElements:async({nodes:g=[],edges:v=[]})=>{const{nodes:b,edges:S,onNodesDelete:_,onEdgesDelete:w,triggerNodeChanges:M,triggerEdgeChanges:C,onDelete:E,onBeforeDelete:k}=t.getState(),{nodes:z,edges:N}=await f8({nodesToRemove:g,edgesToRemove:v,nodes:b,edges:S,onBeforeDelete:k}),D=N.length>0,T=z.length>0;if(D){const L=N.map(NS);w==null||w(N),C(L)}if(T){const L=z.map(NS);_==null||_(z),M(L)}return(T||D)&&(E==null||E({nodes:z,edges:N})),{deletedNodes:z,deletedEdges:N}},getIntersectingNodes:(g,v=!0,b)=>{const S=oS(g),_=S?g:d(g),w=b!==void 0;return _?(b||t.getState().nodes).filter(M=>{const C=t.getState().nodeLookup.get(M.id);if(C&&!S&&(M.id===g.id||!C.internals.positionAbsolute))return!1;const E=ql(w?M:C),k=pu(E,_);return v&&k>0||k>=E.width*E.height||k>=_.width*_.height}):[]},isNodeIntersecting:(g,v,b=!0)=>{const _=oS(g)?g:d(g);if(!_)return!1;const w=pu(_,v);return b&&w>0||w>=v.width*v.height||w>=_.width*_.height},updateNode:y,updateNodeData:(g,v,b={replace:!1})=>{y(g,S=>{const _=typeof v=="function"?v(S):v;return b.replace?{...S,data:_}:{...S,data:{...S.data,..._}}},b)},updateEdge:p,updateEdgeData:(g,v,b={replace:!1})=>{p(g,S=>{const _=typeof v=="function"?v(S):v;return b.replace?{...S,data:_}:{...S,data:{...S.data,..._}}},b)},getNodesBounds:g=>{const{nodeLookup:v,nodeOrigin:b}=t.getState();return l8(g,{nodeLookup:v,nodeOrigin:b})},getHandleConnections:({type:g,id:v,nodeId:b})=>{var S;return Array.from(((S=t.getState().connectionLookup.get(`${b}-${g}${v?`-${v}`:""}`))==null?void 0:S.values())??[])},getNodeConnections:({type:g,handleId:v,nodeId:b})=>{var S;return Array.from(((S=t.getState().connectionLookup.get(`${b}${g?v?`-${g}-${v}`:`-${g}`:""}`))==null?void 0:S.values())??[])},fitView:async g=>{const v=t.getState().fitViewResolver??m8();return t.setState({fitViewQueued:!0,fitViewOptions:g,fitViewResolver:v}),r.nodeQueue.push(b=>[...b]),v.promise}}},[]);return R.useMemo(()=>({...s,...e,viewportInitialized:a}),[a])}const DS=e=>e.selected,Uz=typeof window<"u"?window:void 0;function Hz({deleteKeyCode:e,multiSelectionKeyCode:t}){const r=At(),{deleteElements:a}=n0(),s=bu(e,{actInsideInputWithModifier:!1}),o=bu(t,{target:Uz});R.useEffect(()=>{if(s){const{edges:c,nodes:f}=r.getState();a({nodes:f.filter(DS),edges:c.filter(DS)}),r.setState({nodesSelectionActive:!1})}},[s]),R.useEffect(()=>{r.setState({multiSelectionActive:o})},[o])}function qz(e){const t=At();R.useEffect(()=>{const r=()=>{var s,o,c,f;if(!e.current||!(((o=(s=e.current).checkVisibility)==null?void 0:o.call(s))??!0))return!1;const a=Xp(e.current);(a.height===0||a.width===0)&&((f=(c=t.getState()).onError)==null||f.call(c,"004",Hr.error004())),t.setState({width:a.width||500,height:a.height||500})};if(e.current){r(),window.addEventListener("resize",r);const a=new ResizeObserver(()=>r());return a.observe(e.current),()=>{window.removeEventListener("resize",r),a&&e.current&&a.unobserve(e.current)}}},[])}const Cd={position:"absolute",width:"100%",height:"100%",top:0,left:0},Vz=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function Iz({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:r=!0,panOnScroll:a=!1,panOnScrollSpeed:s=.5,panOnScrollMode:o=ls.Free,zoomOnDoubleClick:c=!0,panOnDrag:f=!0,defaultViewport:d,translateExtent:y,minZoom:p,maxZoom:g,zoomActivationKeyCode:v,preventScrolling:b=!0,children:S,noWheelClassName:_,noPanClassName:w,onViewportChange:M,isControlledViewport:C,paneClickDistance:E,selectionOnDrag:k}){const z=At(),N=R.useRef(null),{userSelectionActive:D,lib:T,connectionInProgress:L}=it(Vz,kt),Q=bu(v),j=R.useRef();qz(N);const B=R.useCallback($=>{M==null||M({x:$[0],y:$[1],zoom:$[2]}),C||z.setState({transform:$})},[M,C]);return R.useEffect(()=>{if(N.current){j.current=J8({domNode:N.current,minZoom:p,maxZoom:g,translateExtent:y,viewport:d,onDraggingChange:U=>z.setState(F=>F.paneDragging===U?F:{paneDragging:U}),onPanZoomStart:(U,F)=>{const{onViewportChangeStart:Z,onMoveStart:K}=z.getState();K==null||K(U,F),Z==null||Z(F)},onPanZoom:(U,F)=>{const{onViewportChange:Z,onMove:K}=z.getState();K==null||K(U,F),Z==null||Z(F)},onPanZoomEnd:(U,F)=>{const{onViewportChangeEnd:Z,onMoveEnd:K}=z.getState();K==null||K(U,F),Z==null||Z(F)}});const{x:$,y:G,zoom:re}=j.current.getViewport();return z.setState({panZoom:j.current,transform:[$,G,re],domNode:N.current.closest(".react-flow")}),()=>{var U;(U=j.current)==null||U.destroy()}}},[]),R.useEffect(()=>{var $;($=j.current)==null||$.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:r,panOnScroll:a,panOnScrollSpeed:s,panOnScrollMode:o,zoomOnDoubleClick:c,panOnDrag:f,zoomActivationKeyPressed:Q,preventScrolling:b,noPanClassName:w,userSelectionActive:D,noWheelClassName:_,lib:T,onTransformChange:B,connectionInProgress:L,selectionOnDrag:k,paneClickDistance:E})},[e,t,r,a,s,o,c,f,Q,b,w,D,_,T,B,L,k,E]),se.jsx("div",{className:"react-flow__renderer",ref:N,style:Cd,children:S})}const Pz=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function $z(){const{userSelectionActive:e,userSelectionRect:t}=it(Pz,kt);return e&&t?se.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const Jm=(e,t)=>r=>{r.target===t.current&&(e==null||e(r))},Fz=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function Yz({isSelecting:e,selectionKeyPressed:t,selectionMode:r=gu.Full,panOnDrag:a,paneClickDistance:s,selectionOnDrag:o,onSelectionStart:c,onSelectionEnd:f,onPaneClick:d,onPaneContextMenu:y,onPaneScroll:p,onPaneMouseEnter:g,onPaneMouseMove:v,onPaneMouseLeave:b,children:S}){const _=At(),{userSelectionActive:w,elementsSelectable:M,dragging:C,connectionInProgress:E}=it(Fz,kt),k=M&&(e||w),z=R.useRef(null),N=R.useRef(),D=R.useRef(new Set),T=R.useRef(new Set),L=R.useRef(!1),Q=Z=>{if(L.current||E){L.current=!1;return}d==null||d(Z),_.getState().resetSelectedElements(),_.setState({nodesSelectionActive:!1})},j=Z=>{if(Array.isArray(a)&&(a!=null&&a.includes(2))){Z.preventDefault();return}y==null||y(Z)},B=p?Z=>p(Z):void 0,$=Z=>{L.current&&(Z.stopPropagation(),L.current=!1)},G=Z=>{var de,me;const{domNode:K}=_.getState();if(N.current=K==null?void 0:K.getBoundingClientRect(),!N.current)return;const J=Z.target===z.current;if(!J&&!!Z.target.closest(".nokey")||!e||!(o&&J||t)||Z.button!==0||!Z.isPrimary)return;(me=(de=Z.target)==null?void 0:de.setPointerCapture)==null||me.call(de,Z.pointerId),L.current=!1;const{x:ae,y:ce}=xr(Z.nativeEvent,N.current);_.setState({userSelectionRect:{width:0,height:0,startX:ae,startY:ce,x:ae,y:ce}}),J||(Z.stopPropagation(),Z.preventDefault())},re=Z=>{const{userSelectionRect:K,transform:J,nodeLookup:O,edgeLookup:I,connectionLookup:ae,triggerNodeChanges:ce,triggerEdgeChanges:de,defaultEdgeOptions:me,resetSelectedElements:be}=_.getState();if(!N.current||!K)return;const{x:ye,y:he}=xr(Z.nativeEvent,N.current),{startX:Ue,startY:De}=K;if(!L.current){const Ge=t?0:s;if(Math.hypot(ye-Ue,he-De)<=Ge)return;be(),c==null||c(Z)}L.current=!0;const Re={startX:Ue,startY:De,x:ye<Ue?ye:Ue,y:he<De?he:De,width:Math.abs(ye-Ue),height:Math.abs(he-De)},ze=D.current,qe=T.current;D.current=new Set(Gp(O,Re,J,r===gu.Partial,!0).map(Ge=>Ge.id)),T.current=new Set;const ut=(me==null?void 0:me.selectable)??!0;for(const Ge of D.current){const Dt=ae.get(Ge);if(Dt)for(const{edgeId:Dn}of Dt.values()){const yn=I.get(Dn);yn&&(yn.selectable??ut)&&T.current.add(Dn)}}if(!uS(ze,D.current)){const Ge=gl(O,D.current,!0);ce(Ge)}if(!uS(qe,T.current)){const Ge=gl(I,T.current);de(Ge)}_.setState({userSelectionRect:Re,userSelectionActive:!0,nodesSelectionActive:!1})},U=Z=>{var K,J;Z.button===0&&((J=(K=Z.target)==null?void 0:K.releasePointerCapture)==null||J.call(K,Z.pointerId),!w&&Z.target===z.current&&_.getState().userSelectionRect&&(Q==null||Q(Z)),_.setState({userSelectionActive:!1,userSelectionRect:null}),L.current&&(f==null||f(Z),_.setState({nodesSelectionActive:D.current.size>0})))},F=a===!0||Array.isArray(a)&&a.includes(0);return se.jsxs("div",{className:Gt(["react-flow__pane",{draggable:F,dragging:C,selection:e}]),onClick:k?void 0:Jm(Q,z),onContextMenu:Jm(j,z),onWheel:Jm(B,z),onPointerEnter:k?void 0:g,onPointerMove:k?re:v,onPointerUp:k?U:void 0,onPointerDownCapture:k?G:void 0,onClickCapture:k?$:void 0,onPointerLeave:b,ref:z,style:Cd,children:[S,se.jsx($z,{})]})}function pp({id:e,store:t,unselect:r=!1,nodeRef:a}){const{addSelectedNodes:s,unselectNodesAndEdges:o,multiSelectionActive:c,nodeLookup:f,onError:d}=t.getState(),y=f.get(e);if(!y){d==null||d("012",Hr.error012(e));return}t.setState({nodesSelectionActive:!1}),y.selected?(r||y.selected&&c)&&(o({nodes:[y],edges:[]}),requestAnimationFrame(()=>{var p;return(p=a==null?void 0:a.current)==null?void 0:p.blur()})):s([e])}function xM({nodeRef:e,disabled:t=!1,noDragClassName:r,handleSelector:a,nodeId:s,isSelectable:o,nodeClickDistance:c}){const f=At(),[d,y]=R.useState(!1),p=R.useRef();return R.useEffect(()=>{p.current=U8({getStoreItems:()=>f.getState(),onNodeMouseDown:g=>{pp({id:g,store:f,nodeRef:e})},onDragStart:()=>{y(!0)},onDragStop:()=>{y(!1)}})},[]),R.useEffect(()=>{if(!(t||!e.current||!p.current))return p.current.update({noDragClassName:r,handleSelector:a,domNode:e.current,isSelectable:o,nodeId:s,nodeClickDistance:c}),()=>{var g;(g=p.current)==null||g.destroy()}},[r,a,t,o,e,s,c]),d}const Zz=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function wM(){const e=At();return R.useCallback(r=>{const{nodeExtent:a,snapToGrid:s,snapGrid:o,nodesDraggable:c,onError:f,updateNodePositions:d,nodeLookup:y,nodeOrigin:p}=e.getState(),g=new Map,v=Zz(c),b=s?o[0]:5,S=s?o[1]:5,_=r.direction.x*b*r.factor,w=r.direction.y*S*r.factor;for(const[,M]of y){if(!v(M))continue;let C={x:M.internals.positionAbsolute.x+_,y:M.internals.positionAbsolute.y+w};s&&(C=Ou(C,o));const{position:E,positionAbsolute:k}=$E({nodeId:M.id,nextPosition:C,nodeLookup:y,nodeExtent:a,nodeOrigin:p,onError:f});M.position=E,M.internals.positionAbsolute=k,g.set(M.id,M)}d(g)},[])}const r0=R.createContext(null),Gz=r0.Provider;r0.Consumer;const EM=()=>R.useContext(r0),Qz=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),Xz=(e,t,r)=>a=>{const{connectionClickStartHandle:s,connectionMode:o,connection:c}=a,{fromHandle:f,toHandle:d,isValid:y}=c,p=(d==null?void 0:d.nodeId)===e&&(d==null?void 0:d.id)===t&&(d==null?void 0:d.type)===r;return{connectingFrom:(f==null?void 0:f.nodeId)===e&&(f==null?void 0:f.id)===t&&(f==null?void 0:f.type)===r,connectingTo:p,clickConnecting:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===r,isPossibleEndHandle:o===Ul.Strict?(f==null?void 0:f.type)!==r:e!==(f==null?void 0:f.nodeId)||t!==(f==null?void 0:f.id),connectionInProcess:!!f,clickConnectionInProcess:!!s,valid:p&&y}};function Kz({type:e="source",position:t=je.Top,isValidConnection:r,isConnectable:a=!0,isConnectableStart:s=!0,isConnectableEnd:o=!0,id:c,onConnect:f,children:d,className:y,onMouseDown:p,onTouchStart:g,...v},b){var re,U;const S=c||null,_=e==="target",w=At(),M=EM(),{connectOnClick:C,noPanClassName:E,rfId:k}=it(Qz,kt),{connectingFrom:z,connectingTo:N,clickConnecting:D,isPossibleEndHandle:T,connectionInProcess:L,clickConnectionInProcess:Q,valid:j}=it(Xz(M,S,e),kt);M||(U=(re=w.getState()).onError)==null||U.call(re,"010",Hr.error010());const B=F=>{const{defaultEdgeOptions:Z,onConnect:K,hasDefaultEdges:J}=w.getState(),O={...Z,...F};if(J){const{edges:I,setEdges:ae}=w.getState();ae(x8(O,I))}K==null||K(O),f==null||f(O)},$=F=>{if(!M)return;const Z=JE(F.nativeEvent);if(s&&(Z&&F.button===0||!Z)){const K=w.getState();mp.onPointerDown(F.nativeEvent,{handleDomNode:F.currentTarget,autoPanOnConnect:K.autoPanOnConnect,connectionMode:K.connectionMode,connectionRadius:K.connectionRadius,domNode:K.domNode,nodeLookup:K.nodeLookup,lib:K.lib,isTarget:_,handleId:S,nodeId:M,flowId:K.rfId,panBy:K.panBy,cancelConnection:K.cancelConnection,onConnectStart:K.onConnectStart,onConnectEnd:(...J)=>{var O,I;return(I=(O=w.getState()).onConnectEnd)==null?void 0:I.call(O,...J)},updateConnection:K.updateConnection,onConnect:B,isValidConnection:r||((...J)=>{var O,I;return((I=(O=w.getState()).isValidConnection)==null?void 0:I.call(O,...J))??!0}),getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:K.autoPanSpeed,dragThreshold:K.connectionDragThreshold})}Z?p==null||p(F):g==null||g(F)},G=F=>{const{onClickConnectStart:Z,onClickConnectEnd:K,connectionClickStartHandle:J,connectionMode:O,isValidConnection:I,lib:ae,rfId:ce,nodeLookup:de,connection:me}=w.getState();if(!M||!J&&!s)return;if(!J){Z==null||Z(F.nativeEvent,{nodeId:M,handleId:S,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:M,type:e,id:S}});return}const be=XE(F.target),ye=r||I,{connection:he,isValid:Ue}=mp.isValid(F.nativeEvent,{handle:{nodeId:M,id:S,type:e},connectionMode:O,fromNodeId:J.nodeId,fromHandleId:J.id||null,fromType:J.type,isValidConnection:ye,flowId:ce,doc:be,lib:ae,nodeLookup:de});Ue&&he&&B(he);const De=structuredClone(me);delete De.inProgress,De.toPosition=De.toHandle?De.toHandle.position:null,K==null||K(F,De),w.setState({connectionClickStartHandle:null})};return se.jsx("div",{"data-handleid":S,"data-nodeid":M,"data-handlepos":t,"data-id":`${k}-${M}-${S}-${e}`,className:Gt(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",E,y,{source:!_,target:_,connectable:a,connectablestart:s,connectableend:o,clickconnecting:D,connectingfrom:z,connectingto:N,valid:j,connectionindicator:a&&(!L||T)&&(L||Q?o:s)}]),onMouseDown:$,onTouchStart:$,onClick:C?G:void 0,ref:b,...v,children:d})}const td=R.memo(_M(Kz));function Jz({data:e,isConnectable:t,sourcePosition:r=je.Bottom}){return se.jsxs(se.Fragment,{children:[e==null?void 0:e.label,se.jsx(td,{type:"source",position:r,isConnectable:t})]})}function Wz({data:e,isConnectable:t,targetPosition:r=je.Top,sourcePosition:a=je.Bottom}){return se.jsxs(se.Fragment,{children:[se.jsx(td,{type:"target",position:r,isConnectable:t}),e==null?void 0:e.label,se.jsx(td,{type:"source",position:a,isConnectable:t})]})}function e9(){return null}function t9({data:e,isConnectable:t,targetPosition:r=je.Top}){return se.jsxs(se.Fragment,{children:[se.jsx(td,{type:"target",position:r,isConnectable:t}),e==null?void 0:e.label]})}const nd={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},LS={input:Jz,default:Wz,output:t9,group:e9};function n9(e){var t,r,a,s;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((r=e.style)==null?void 0:r.height)}:{width:e.width??((a=e.style)==null?void 0:a.width),height:e.height??((s=e.style)==null?void 0:s.height)}}const r9=e=>{const{width:t,height:r,x:a,y:s}=Nu(e.nodeLookup,{filter:o=>!!o.selected});return{width:Sr(t)?t:null,height:Sr(r)?r:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${a}px,${s}px)`}};function i9({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:r}){const a=At(),{width:s,height:o,transformString:c,userSelectionActive:f}=it(r9,kt),d=wM(),y=R.useRef(null);R.useEffect(()=>{var b;r||(b=y.current)==null||b.focus({preventScroll:!0})},[r]);const p=!f&&s!==null&&o!==null;if(xM({nodeRef:y,disabled:!p}),!p)return null;const g=e?b=>{const S=a.getState().nodes.filter(_=>_.selected);e(b,S)}:void 0,v=b=>{Object.prototype.hasOwnProperty.call(nd,b.key)&&(b.preventDefault(),d({direction:nd[b.key],factor:b.shiftKey?4:1}))};return se.jsx("div",{className:Gt(["react-flow__nodesselection","react-flow__container",t]),style:{transform:c},children:se.jsx("div",{ref:y,className:"react-flow__nodesselection-rect",onContextMenu:g,tabIndex:r?void 0:-1,onKeyDown:r?void 0:v,style:{width:s,height:o}})})}const BS=typeof window<"u"?window:void 0,a9=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function MM({children:e,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,paneClickDistance:f,deleteKeyCode:d,selectionKeyCode:y,selectionOnDrag:p,selectionMode:g,onSelectionStart:v,onSelectionEnd:b,multiSelectionKeyCode:S,panActivationKeyCode:_,zoomActivationKeyCode:w,elementsSelectable:M,zoomOnScroll:C,zoomOnPinch:E,panOnScroll:k,panOnScrollSpeed:z,panOnScrollMode:N,zoomOnDoubleClick:D,panOnDrag:T,defaultViewport:L,translateExtent:Q,minZoom:j,maxZoom:B,preventScrolling:$,onSelectionContextMenu:G,noWheelClassName:re,noPanClassName:U,disableKeyboardA11y:F,onViewportChange:Z,isControlledViewport:K}){const{nodesSelectionActive:J,userSelectionActive:O}=it(a9,kt),I=bu(y,{target:BS}),ae=bu(_,{target:BS}),ce=ae||T,de=ae||k,me=p&&ce!==!0,be=I||O||me;return Hz({deleteKeyCode:d,multiSelectionKeyCode:S}),se.jsx(Iz,{onPaneContextMenu:o,elementsSelectable:M,zoomOnScroll:C,zoomOnPinch:E,panOnScroll:de,panOnScrollSpeed:z,panOnScrollMode:N,zoomOnDoubleClick:D,panOnDrag:!I&&ce,defaultViewport:L,translateExtent:Q,minZoom:j,maxZoom:B,zoomActivationKeyCode:w,preventScrolling:$,noWheelClassName:re,noPanClassName:U,onViewportChange:Z,isControlledViewport:K,paneClickDistance:f,selectionOnDrag:me,children:se.jsxs(Yz,{onSelectionStart:v,onSelectionEnd:b,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:a,onPaneMouseLeave:s,onPaneContextMenu:o,onPaneScroll:c,panOnDrag:ce,isSelecting:!!be,selectionMode:g,selectionKeyPressed:I,paneClickDistance:f,selectionOnDrag:me,children:[e,J&&se.jsx(i9,{onSelectionContextMenu:G,noPanClassName:U,disableKeyboardA11y:F})]})})}MM.displayName="FlowRenderer";const s9=R.memo(MM),l9=e=>t=>e?Gp(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(r=>r.id):Array.from(t.nodeLookup.keys());function o9(e){return it(R.useCallback(l9(e),[e]),kt)}const u9=e=>e.updateNodeInternals;function c9(){const e=it(u9),[t]=R.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(r=>{const a=new Map;r.forEach(s=>{const o=s.target.getAttribute("data-id");a.set(o,{id:o,nodeElement:s.target,force:!0})}),e(a)}));return R.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function f9({node:e,nodeType:t,hasDimensions:r,resizeObserver:a}){const s=At(),o=R.useRef(null),c=R.useRef(null),f=R.useRef(e.sourcePosition),d=R.useRef(e.targetPosition),y=R.useRef(t),p=r&&!!e.internals.handleBounds;return R.useEffect(()=>{o.current&&!e.hidden&&(!p||c.current!==o.current)&&(c.current&&(a==null||a.unobserve(c.current)),a==null||a.observe(o.current),c.current=o.current)},[p,e.hidden]),R.useEffect(()=>()=>{c.current&&(a==null||a.unobserve(c.current),c.current=null)},[]),R.useEffect(()=>{if(o.current){const g=y.current!==t,v=f.current!==e.sourcePosition,b=d.current!==e.targetPosition;(g||v||b)&&(y.current=t,f.current=e.sourcePosition,d.current=e.targetPosition,s.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:o.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),o}function d9({id:e,onClick:t,onMouseEnter:r,onMouseMove:a,onMouseLeave:s,onContextMenu:o,onDoubleClick:c,nodesDraggable:f,elementsSelectable:d,nodesConnectable:y,nodesFocusable:p,resizeObserver:g,noDragClassName:v,noPanClassName:b,disableKeyboardA11y:S,rfId:_,nodeTypes:w,nodeClickDistance:M,onError:C}){const{node:E,internals:k,isParent:z}=it(ye=>{const he=ye.nodeLookup.get(e),Ue=ye.parentLookup.has(e);return{node:he,internals:he.internals,isParent:Ue}},kt);let N=E.type||"default",D=(w==null?void 0:w[N])||LS[N];D===void 0&&(C==null||C("003",Hr.error003(N)),N="default",D=(w==null?void 0:w.default)||LS.default);const T=!!(E.draggable||f&&typeof E.draggable>"u"),L=!!(E.selectable||d&&typeof E.selectable>"u"),Q=!!(E.connectable||y&&typeof E.connectable>"u"),j=!!(E.focusable||p&&typeof E.focusable>"u"),B=At(),$=GE(E),G=f9({node:E,nodeType:N,hasDimensions:$,resizeObserver:g}),re=xM({nodeRef:G,disabled:E.hidden||!T,noDragClassName:v,handleSelector:E.dragHandle,nodeId:e,isSelectable:L,nodeClickDistance:M}),U=wM();if(E.hidden)return null;const F=xi(E),Z=n9(E),K=L||T||t||r||a||s,J=r?ye=>r(ye,{...k.userNode}):void 0,O=a?ye=>a(ye,{...k.userNode}):void 0,I=s?ye=>s(ye,{...k.userNode}):void 0,ae=o?ye=>o(ye,{...k.userNode}):void 0,ce=c?ye=>c(ye,{...k.userNode}):void 0,de=ye=>{const{selectNodesOnDrag:he,nodeDragThreshold:Ue}=B.getState();L&&(!he||!T||Ue>0)&&pp({id:e,store:B,nodeRef:G}),t&&t(ye,{...k.userNode})},me=ye=>{if(!(KE(ye.nativeEvent)||S)){if(HE.includes(ye.key)&&L){const he=ye.key==="Escape";pp({id:e,store:B,unselect:he,nodeRef:G})}else if(T&&E.selected&&Object.prototype.hasOwnProperty.call(nd,ye.key)){ye.preventDefault();const{ariaLabelConfig:he}=B.getState();B.setState({ariaLiveMessage:he["node.a11yDescription.ariaLiveMessage"]({direction:ye.key.replace("Arrow","").toLowerCase(),x:~~k.positionAbsolute.x,y:~~k.positionAbsolute.y})}),U({direction:nd[ye.key],factor:ye.shiftKey?4:1})}}},be=()=>{var qe;if(S||!((qe=G.current)!=null&&qe.matches(":focus-visible")))return;const{transform:ye,width:he,height:Ue,autoPanOnNodeFocus:De,setCenter:Re}=B.getState();if(!De)return;Gp(new Map([[e,E]]),{x:0,y:0,width:he,height:Ue},ye,!0).length>0||Re(E.position.x+F.width/2,E.position.y+F.height/2,{zoom:ye[2]})};return se.jsx("div",{className:Gt(["react-flow__node",`react-flow__node-${N}`,{[b]:T},E.className,{selected:E.selected,selectable:L,parent:z,draggable:T,dragging:re}]),ref:G,style:{zIndex:k.z,transform:`translate(${k.positionAbsolute.x}px,${k.positionAbsolute.y}px)`,pointerEvents:K?"all":"none",visibility:$?"visible":"hidden",...E.style,...Z},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:J,onMouseMove:O,onMouseLeave:I,onContextMenu:ae,onClick:de,onDoubleClick:ce,onKeyDown:j?me:void 0,tabIndex:j?0:void 0,onFocus:j?be:void 0,role:E.ariaRole??(j?"group":void 0),"aria-roledescription":"node","aria-describedby":S?void 0:`${gM}-${_}`,"aria-label":E.ariaLabel,...E.domAttributes,children:se.jsx(Gz,{value:e,children:se.jsx(D,{id:e,data:E.data,type:N,positionAbsoluteX:k.positionAbsolute.x,positionAbsoluteY:k.positionAbsolute.y,selected:E.selected??!1,selectable:L,draggable:T,deletable:E.deletable??!0,isConnectable:Q,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:re,dragHandle:E.dragHandle,zIndex:k.z,parentId:E.parentId,...F})})})}var h9=R.memo(d9);const y9=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function CM(e){const{nodesDraggable:t,nodesConnectable:r,nodesFocusable:a,elementsSelectable:s,onError:o}=it(y9,kt),c=o9(e.onlyRenderVisibleElements),f=c9();return se.jsx("div",{className:"react-flow__nodes",style:Cd,children:c.map(d=>se.jsx(h9,{id:d,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:f,nodesDraggable:t,nodesConnectable:r,nodesFocusable:a,elementsSelectable:s,nodeClickDistance:e.nodeClickDistance,onError:o},d))})}CM.displayName="NodeRenderer";const m9=R.memo(CM);function g9(e){return it(R.useCallback(r=>{if(!e)return r.edges.map(s=>s.id);const a=[];if(r.width&&r.height)for(const s of r.edges){const o=r.nodeLookup.get(s.source),c=r.nodeLookup.get(s.target);o&&c&&b8({sourceNode:o,targetNode:c,width:r.width,height:r.height,transform:r.transform})&&a.push(s.id)}return a},[e]),kt)}const p9=({color:e="none",strokeWidth:t=1})=>{const r={strokeWidth:t,...e&&{stroke:e}};return se.jsx("polyline",{className:"arrow",style:r,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},v9=({color:e="none",strokeWidth:t=1})=>{const r={strokeWidth:t,...e&&{stroke:e,fill:e}};return se.jsx("polyline",{className:"arrowclosed",style:r,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},jS={[Jf.Arrow]:p9,[Jf.ArrowClosed]:v9};function b9(e){const t=At();return R.useMemo(()=>{var s,o;return Object.prototype.hasOwnProperty.call(jS,e)?jS[e]:((o=(s=t.getState()).onError)==null||o.call(s,"009",Hr.error009(e)),null)},[e])}const _9=({id:e,type:t,color:r,width:a=12.5,height:s=12.5,markerUnits:o="strokeWidth",strokeWidth:c,orient:f="auto-start-reverse"})=>{const d=b9(t);return d?se.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${a}`,markerHeight:`${s}`,viewBox:"-10 -10 20 20",markerUnits:o,orient:f,refX:"0",refY:"0",children:se.jsx(d,{color:r,strokeWidth:c})}):null},kM=({defaultColor:e,rfId:t})=>{const r=it(o=>o.edges),a=it(o=>o.defaultEdgeOptions),s=R.useMemo(()=>k8(r,{id:t,defaultColor:e,defaultMarkerStart:a==null?void 0:a.markerStart,defaultMarkerEnd:a==null?void 0:a.markerEnd}),[r,a,t,e]);return s.length?se.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:se.jsx("defs",{children:s.map(o=>se.jsx(_9,{id:o.id,type:o.type,color:o.color,width:o.width,height:o.height,markerUnits:o.markerUnits,strokeWidth:o.strokeWidth,orient:o.orient},o.id))})}):null};kM.displayName="MarkerDefinitions";var S9=R.memo(kM);function AM({x:e,y:t,label:r,labelStyle:a,labelShowBg:s=!0,labelBgStyle:o,labelBgPadding:c=[2,4],labelBgBorderRadius:f=2,children:d,className:y,...p}){const[g,v]=R.useState({x:1,y:0,width:0,height:0}),b=Gt(["react-flow__edge-textwrapper",y]),S=R.useRef(null);return R.useEffect(()=>{if(S.current){const _=S.current.getBBox();v({x:_.x,y:_.y,width:_.width,height:_.height})}},[r]),r?se.jsxs("g",{transform:`translate(${e-g.width/2} ${t-g.height/2})`,className:b,visibility:g.width?"visible":"hidden",...p,children:[s&&se.jsx("rect",{width:g.width+2*c[0],x:-c[0],y:-c[1],height:g.height+2*c[1],className:"react-flow__edge-textbg",style:o,rx:f,ry:f}),se.jsx("text",{className:"react-flow__edge-text",y:g.height/2,dy:"0.3em",ref:S,style:a,children:r}),d]}):null}AM.displayName="EdgeText";const x9=R.memo(AM);function kd({path:e,labelX:t,labelY:r,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:d,interactionWidth:y=20,...p}){return se.jsxs(se.Fragment,{children:[se.jsx("path",{...p,d:e,fill:"none",className:Gt(["react-flow__edge-path",p.className])}),y?se.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:y,className:"react-flow__edge-interaction"}):null,a&&Sr(t)&&Sr(r)?se.jsx(x9,{x:t,y:r,label:a,labelStyle:s,labelShowBg:o,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:d}):null]})}function US({pos:e,x1:t,y1:r,x2:a,y2:s}){return e===je.Left||e===je.Right?[.5*(t+a),r]:[t,.5*(r+s)]}function TM({sourceX:e,sourceY:t,sourcePosition:r=je.Bottom,targetX:a,targetY:s,targetPosition:o=je.Top}){const[c,f]=US({pos:r,x1:e,y1:t,x2:a,y2:s}),[d,y]=US({pos:o,x1:a,y1:s,x2:e,y2:t}),[p,g,v,b]=WE({sourceX:e,sourceY:t,targetX:a,targetY:s,sourceControlX:c,sourceControlY:f,targetControlX:d,targetControlY:y});return[`M${e},${t} C${c},${f} ${d},${y} ${a},${s}`,p,g,v,b]}function RM(e){return R.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,sourcePosition:c,targetPosition:f,label:d,labelStyle:y,labelShowBg:p,labelBgStyle:g,labelBgPadding:v,labelBgBorderRadius:b,style:S,markerEnd:_,markerStart:w,interactionWidth:M})=>{const[C,E,k]=TM({sourceX:r,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:f}),z=e.isInternal?void 0:t;return se.jsx(kd,{id:z,path:C,labelX:E,labelY:k,label:d,labelStyle:y,labelShowBg:p,labelBgStyle:g,labelBgPadding:v,labelBgBorderRadius:b,style:S,markerEnd:_,markerStart:w,interactionWidth:M})})}const w9=RM({isInternal:!1}),NM=RM({isInternal:!0});w9.displayName="SimpleBezierEdge";NM.displayName="SimpleBezierEdgeInternal";function OM(e){return R.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:y,labelBgPadding:p,labelBgBorderRadius:g,style:v,sourcePosition:b=je.Bottom,targetPosition:S=je.Top,markerEnd:_,markerStart:w,pathOptions:M,interactionWidth:C})=>{const[E,k,z]=dp({sourceX:r,sourceY:a,sourcePosition:b,targetX:s,targetY:o,targetPosition:S,borderRadius:M==null?void 0:M.borderRadius,offset:M==null?void 0:M.offset,stepPosition:M==null?void 0:M.stepPosition}),N=e.isInternal?void 0:t;return se.jsx(kd,{id:N,path:E,labelX:k,labelY:z,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:y,labelBgPadding:p,labelBgBorderRadius:g,style:v,markerEnd:_,markerStart:w,interactionWidth:C})})}const zM=OM({isInternal:!1}),DM=OM({isInternal:!0});zM.displayName="SmoothStepEdge";DM.displayName="SmoothStepEdgeInternal";function LM(e){return R.memo(({id:t,...r})=>{var s;const a=e.isInternal?void 0:t;return se.jsx(zM,{...r,id:a,pathOptions:R.useMemo(()=>{var o;return{borderRadius:0,offset:(o=r.pathOptions)==null?void 0:o.offset}},[(s=r.pathOptions)==null?void 0:s.offset])})})}const E9=LM({isInternal:!1}),BM=LM({isInternal:!0});E9.displayName="StepEdge";BM.displayName="StepEdgeInternal";function jM(e){return R.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:y,labelBgPadding:p,labelBgBorderRadius:g,style:v,markerEnd:b,markerStart:S,interactionWidth:_})=>{const[w,M,C]=nM({sourceX:r,sourceY:a,targetX:s,targetY:o}),E=e.isInternal?void 0:t;return se.jsx(kd,{id:E,path:w,labelX:M,labelY:C,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:y,labelBgPadding:p,labelBgBorderRadius:g,style:v,markerEnd:b,markerStart:S,interactionWidth:_})})}const M9=jM({isInternal:!1}),UM=jM({isInternal:!0});M9.displayName="StraightEdge";UM.displayName="StraightEdgeInternal";function HM(e){return R.memo(({id:t,sourceX:r,sourceY:a,targetX:s,targetY:o,sourcePosition:c=je.Bottom,targetPosition:f=je.Top,label:d,labelStyle:y,labelShowBg:p,labelBgStyle:g,labelBgPadding:v,labelBgBorderRadius:b,style:S,markerEnd:_,markerStart:w,pathOptions:M,interactionWidth:C})=>{const[E,k,z]=eM({sourceX:r,sourceY:a,sourcePosition:c,targetX:s,targetY:o,targetPosition:f,curvature:M==null?void 0:M.curvature}),N=e.isInternal?void 0:t;return se.jsx(kd,{id:N,path:E,labelX:k,labelY:z,label:d,labelStyle:y,labelShowBg:p,labelBgStyle:g,labelBgPadding:v,labelBgBorderRadius:b,style:S,markerEnd:_,markerStart:w,interactionWidth:C})})}const C9=HM({isInternal:!1}),qM=HM({isInternal:!0});C9.displayName="BezierEdge";qM.displayName="BezierEdgeInternal";const HS={default:qM,straight:UM,step:BM,smoothstep:DM,simplebezier:NM},qS={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},k9=(e,t,r)=>r===je.Left?e-t:r===je.Right?e+t:e,A9=(e,t,r)=>r===je.Top?e-t:r===je.Bottom?e+t:e,VS="react-flow__edgeupdater";function IS({position:e,centerX:t,centerY:r,radius:a=10,onMouseDown:s,onMouseEnter:o,onMouseOut:c,type:f}){return se.jsx("circle",{onMouseDown:s,onMouseEnter:o,onMouseOut:c,className:Gt([VS,`${VS}-${f}`]),cx:k9(t,a,e),cy:A9(r,a,e),r:a,stroke:"transparent",fill:"transparent"})}function T9({isReconnectable:e,reconnectRadius:t,edge:r,sourceX:a,sourceY:s,targetX:o,targetY:c,sourcePosition:f,targetPosition:d,onReconnect:y,onReconnectStart:p,onReconnectEnd:g,setReconnecting:v,setUpdateHover:b}){const S=At(),_=(k,z)=>{if(k.button!==0)return;const{autoPanOnConnect:N,domNode:D,connectionMode:T,connectionRadius:L,lib:Q,onConnectStart:j,cancelConnection:B,nodeLookup:$,rfId:G,panBy:re,updateConnection:U}=S.getState(),F=z.type==="target",Z=(O,I)=>{v(!1),g==null||g(O,r,z.type,I)},K=O=>y==null?void 0:y(r,O),J=(O,I)=>{v(!0),p==null||p(k,r,z.type),j==null||j(O,I)};mp.onPointerDown(k.nativeEvent,{autoPanOnConnect:N,connectionMode:T,connectionRadius:L,domNode:D,handleId:z.id,nodeId:z.nodeId,nodeLookup:$,isTarget:F,edgeUpdaterType:z.type,lib:Q,flowId:G,cancelConnection:B,panBy:re,isValidConnection:(...O)=>{var I,ae;return((ae=(I=S.getState()).isValidConnection)==null?void 0:ae.call(I,...O))??!0},onConnect:K,onConnectStart:J,onConnectEnd:(...O)=>{var I,ae;return(ae=(I=S.getState()).onConnectEnd)==null?void 0:ae.call(I,...O)},onReconnectEnd:Z,updateConnection:U,getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,dragThreshold:S.getState().connectionDragThreshold,handleDomNode:k.currentTarget})},w=k=>_(k,{nodeId:r.target,id:r.targetHandle??null,type:"target"}),M=k=>_(k,{nodeId:r.source,id:r.sourceHandle??null,type:"source"}),C=()=>b(!0),E=()=>b(!1);return se.jsxs(se.Fragment,{children:[(e===!0||e==="source")&&se.jsx(IS,{position:f,centerX:a,centerY:s,radius:t,onMouseDown:w,onMouseEnter:C,onMouseOut:E,type:"source"}),(e===!0||e==="target")&&se.jsx(IS,{position:d,centerX:o,centerY:c,radius:t,onMouseDown:M,onMouseEnter:C,onMouseOut:E,type:"target"})]})}function R9({id:e,edgesFocusable:t,edgesReconnectable:r,elementsSelectable:a,onClick:s,onDoubleClick:o,onContextMenu:c,onMouseEnter:f,onMouseMove:d,onMouseLeave:y,reconnectRadius:p,onReconnect:g,onReconnectStart:v,onReconnectEnd:b,rfId:S,edgeTypes:_,noPanClassName:w,onError:M,disableKeyboardA11y:C}){let E=it(Re=>Re.edgeLookup.get(e));const k=it(Re=>Re.defaultEdgeOptions);E=k?{...k,...E}:E;let z=E.type||"default",N=(_==null?void 0:_[z])||HS[z];N===void 0&&(M==null||M("011",Hr.error011(z)),z="default",N=(_==null?void 0:_.default)||HS.default);const D=!!(E.focusable||t&&typeof E.focusable>"u"),T=typeof g<"u"&&(E.reconnectable||r&&typeof E.reconnectable>"u"),L=!!(E.selectable||a&&typeof E.selectable>"u"),Q=R.useRef(null),[j,B]=R.useState(!1),[$,G]=R.useState(!1),re=At(),{zIndex:U,sourceX:F,sourceY:Z,targetX:K,targetY:J,sourcePosition:O,targetPosition:I}=it(R.useCallback(Re=>{const ze=Re.nodeLookup.get(E.source),qe=Re.nodeLookup.get(E.target);if(!ze||!qe)return{zIndex:E.zIndex,...qS};const ut=C8({id:e,sourceNode:ze,targetNode:qe,sourceHandle:E.sourceHandle||null,targetHandle:E.targetHandle||null,connectionMode:Re.connectionMode,onError:M});return{zIndex:v8({selected:E.selected,zIndex:E.zIndex,sourceNode:ze,targetNode:qe,elevateOnSelect:Re.elevateEdgesOnSelect,zIndexMode:Re.zIndexMode}),...ut||qS}},[E.source,E.target,E.sourceHandle,E.targetHandle,E.selected,E.zIndex]),kt),ae=R.useMemo(()=>E.markerStart?`url('#${hp(E.markerStart,S)}')`:void 0,[E.markerStart,S]),ce=R.useMemo(()=>E.markerEnd?`url('#${hp(E.markerEnd,S)}')`:void 0,[E.markerEnd,S]);if(E.hidden||F===null||Z===null||K===null||J===null)return null;const de=Re=>{var Ge;const{addSelectedEdges:ze,unselectNodesAndEdges:qe,multiSelectionActive:ut}=re.getState();L&&(re.setState({nodesSelectionActive:!1}),E.selected&&ut?(qe({nodes:[],edges:[E]}),(Ge=Q.current)==null||Ge.blur()):ze([e])),s&&s(Re,E)},me=o?Re=>{o(Re,{...E})}:void 0,be=c?Re=>{c(Re,{...E})}:void 0,ye=f?Re=>{f(Re,{...E})}:void 0,he=d?Re=>{d(Re,{...E})}:void 0,Ue=y?Re=>{y(Re,{...E})}:void 0,De=Re=>{var ze;if(!C&&HE.includes(Re.key)&&L){const{unselectNodesAndEdges:qe,addSelectedEdges:ut}=re.getState();Re.key==="Escape"?((ze=Q.current)==null||ze.blur(),qe({edges:[E]})):ut([e])}};return se.jsx("svg",{style:{zIndex:U},children:se.jsxs("g",{className:Gt(["react-flow__edge",`react-flow__edge-${z}`,E.className,w,{selected:E.selected,animated:E.animated,inactive:!L&&!s,updating:j,selectable:L}]),onClick:de,onDoubleClick:me,onContextMenu:be,onMouseEnter:ye,onMouseMove:he,onMouseLeave:Ue,onKeyDown:D?De:void 0,tabIndex:D?0:void 0,role:E.ariaRole??(D?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":E.ariaLabel===null?void 0:E.ariaLabel||`Edge from ${E.source} to ${E.target}`,"aria-describedby":D?`${pM}-${S}`:void 0,ref:Q,...E.domAttributes,children:[!$&&se.jsx(N,{id:e,source:E.source,target:E.target,type:E.type,selected:E.selected,animated:E.animated,selectable:L,deletable:E.deletable??!0,label:E.label,labelStyle:E.labelStyle,labelShowBg:E.labelShowBg,labelBgStyle:E.labelBgStyle,labelBgPadding:E.labelBgPadding,labelBgBorderRadius:E.labelBgBorderRadius,sourceX:F,sourceY:Z,targetX:K,targetY:J,sourcePosition:O,targetPosition:I,data:E.data,style:E.style,sourceHandleId:E.sourceHandle,targetHandleId:E.targetHandle,markerStart:ae,markerEnd:ce,pathOptions:"pathOptions"in E?E.pathOptions:void 0,interactionWidth:E.interactionWidth}),T&&se.jsx(T9,{edge:E,isReconnectable:T,reconnectRadius:p,onReconnect:g,onReconnectStart:v,onReconnectEnd:b,sourceX:F,sourceY:Z,targetX:K,targetY:J,sourcePosition:O,targetPosition:I,setUpdateHover:B,setReconnecting:G})]})})}var N9=R.memo(R9);const O9=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function VM({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:r,edgeTypes:a,noPanClassName:s,onReconnect:o,onEdgeContextMenu:c,onEdgeMouseEnter:f,onEdgeMouseMove:d,onEdgeMouseLeave:y,onEdgeClick:p,reconnectRadius:g,onEdgeDoubleClick:v,onReconnectStart:b,onReconnectEnd:S,disableKeyboardA11y:_}){const{edgesFocusable:w,edgesReconnectable:M,elementsSelectable:C,onError:E}=it(O9,kt),k=g9(t);return se.jsxs("div",{className:"react-flow__edges",children:[se.jsx(S9,{defaultColor:e,rfId:r}),k.map(z=>se.jsx(N9,{id:z,edgesFocusable:w,edgesReconnectable:M,elementsSelectable:C,noPanClassName:s,onReconnect:o,onContextMenu:c,onMouseEnter:f,onMouseMove:d,onMouseLeave:y,onClick:p,reconnectRadius:g,onDoubleClick:v,onReconnectStart:b,onReconnectEnd:S,rfId:r,onError:E,edgeTypes:a,disableKeyboardA11y:_},z))]})}VM.displayName="EdgeRenderer";const z9=R.memo(VM),D9=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function L9({children:e}){const t=it(D9);return se.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function B9(e){const t=n0(),r=R.useRef(!1);R.useEffect(()=>{!r.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),r.current=!0)},[e,t.viewportInitialized])}const j9=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function U9(e){const t=it(j9),r=At();return R.useEffect(()=>{e&&(t==null||t(e),r.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function H9(e){return e.connection.inProgress?{...e.connection,to:zu(e.connection.to,e.transform)}:{...e.connection}}function q9(e){return H9}function V9(e){const t=q9();return it(t,kt)}const I9=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function P9({containerStyle:e,style:t,type:r,component:a}){const{nodesConnectable:s,width:o,height:c,isValid:f,inProgress:d}=it(I9,kt);return!(o&&s&&d)?null:se.jsx("svg",{style:e,width:o,height:c,className:"react-flow__connectionline react-flow__container",children:se.jsx("g",{className:Gt(["react-flow__connection",IE(f)]),children:se.jsx(IM,{style:t,type:r,CustomComponent:a,isValid:f})})})}const IM=({style:e,type:t=sa.Bezier,CustomComponent:r,isValid:a})=>{const{inProgress:s,from:o,fromNode:c,fromHandle:f,fromPosition:d,to:y,toNode:p,toHandle:g,toPosition:v,pointer:b}=V9();if(!s)return;if(r)return se.jsx(r,{connectionLineType:t,connectionLineStyle:e,fromNode:c,fromHandle:f,fromX:o.x,fromY:o.y,toX:y.x,toY:y.y,fromPosition:d,toPosition:v,connectionStatus:IE(a),toNode:p,toHandle:g,pointer:b});let S="";const _={sourceX:o.x,sourceY:o.y,sourcePosition:d,targetX:y.x,targetY:y.y,targetPosition:v};switch(t){case sa.Bezier:[S]=eM(_);break;case sa.SimpleBezier:[S]=TM(_);break;case sa.Step:[S]=dp({..._,borderRadius:0});break;case sa.SmoothStep:[S]=dp(_);break;default:[S]=nM(_)}return se.jsx("path",{d:S,fill:"none",className:"react-flow__connection-path",style:e})};IM.displayName="ConnectionLine";const $9={};function PS(e=$9){R.useRef(e),At(),R.useEffect(()=>{},[e])}function F9(){At(),R.useRef(!1),R.useEffect(()=>{},[])}function PM({nodeTypes:e,edgeTypes:t,onInit:r,onNodeClick:a,onEdgeClick:s,onNodeDoubleClick:o,onEdgeDoubleClick:c,onNodeMouseEnter:f,onNodeMouseMove:d,onNodeMouseLeave:y,onNodeContextMenu:p,onSelectionContextMenu:g,onSelectionStart:v,onSelectionEnd:b,connectionLineType:S,connectionLineStyle:_,connectionLineComponent:w,connectionLineContainerStyle:M,selectionKeyCode:C,selectionOnDrag:E,selectionMode:k,multiSelectionKeyCode:z,panActivationKeyCode:N,zoomActivationKeyCode:D,deleteKeyCode:T,onlyRenderVisibleElements:L,elementsSelectable:Q,defaultViewport:j,translateExtent:B,minZoom:$,maxZoom:G,preventScrolling:re,defaultMarkerColor:U,zoomOnScroll:F,zoomOnPinch:Z,panOnScroll:K,panOnScrollSpeed:J,panOnScrollMode:O,zoomOnDoubleClick:I,panOnDrag:ae,onPaneClick:ce,onPaneMouseEnter:de,onPaneMouseMove:me,onPaneMouseLeave:be,onPaneScroll:ye,onPaneContextMenu:he,paneClickDistance:Ue,nodeClickDistance:De,onEdgeContextMenu:Re,onEdgeMouseEnter:ze,onEdgeMouseMove:qe,onEdgeMouseLeave:ut,reconnectRadius:Ge,onReconnect:Dt,onReconnectStart:Dn,onReconnectEnd:yn,noDragClassName:Qn,noWheelClassName:Xn,noPanClassName:q,disableKeyboardA11y:X,nodeExtent:te,rfId:_e,viewport:ge,onViewportChange:pe}){return PS(e),PS(t),F9(),B9(r),U9(ge),se.jsx(s9,{onPaneClick:ce,onPaneMouseEnter:de,onPaneMouseMove:me,onPaneMouseLeave:be,onPaneContextMenu:he,onPaneScroll:ye,paneClickDistance:Ue,deleteKeyCode:T,selectionKeyCode:C,selectionOnDrag:E,selectionMode:k,onSelectionStart:v,onSelectionEnd:b,multiSelectionKeyCode:z,panActivationKeyCode:N,zoomActivationKeyCode:D,elementsSelectable:Q,zoomOnScroll:F,zoomOnPinch:Z,zoomOnDoubleClick:I,panOnScroll:K,panOnScrollSpeed:J,panOnScrollMode:O,panOnDrag:ae,defaultViewport:j,translateExtent:B,minZoom:$,maxZoom:G,onSelectionContextMenu:g,preventScrolling:re,noDragClassName:Qn,noWheelClassName:Xn,noPanClassName:q,disableKeyboardA11y:X,onViewportChange:pe,isControlledViewport:!!ge,children:se.jsxs(L9,{children:[se.jsx(z9,{edgeTypes:t,onEdgeClick:s,onEdgeDoubleClick:c,onReconnect:Dt,onReconnectStart:Dn,onReconnectEnd:yn,onlyRenderVisibleElements:L,onEdgeContextMenu:Re,onEdgeMouseEnter:ze,onEdgeMouseMove:qe,onEdgeMouseLeave:ut,reconnectRadius:Ge,defaultMarkerColor:U,noPanClassName:q,disableKeyboardA11y:X,rfId:_e}),se.jsx(P9,{style:_,type:S,component:w,containerStyle:M}),se.jsx("div",{className:"react-flow__edgelabel-renderer"}),se.jsx(m9,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:o,onNodeMouseEnter:f,onNodeMouseMove:d,onNodeMouseLeave:y,onNodeContextMenu:p,nodeClickDistance:De,onlyRenderVisibleElements:L,noPanClassName:q,noDragClassName:Qn,disableKeyboardA11y:X,nodeExtent:te,rfId:_e}),se.jsx("div",{className:"react-flow__viewport-portal"})]})})}PM.displayName="GraphView";const Y9=R.memo(PM),$S=({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:f,minZoom:d=.5,maxZoom:y=2,nodeOrigin:p,nodeExtent:g,zIndexMode:v="basic"}={})=>{const b=new Map,S=new Map,_=new Map,w=new Map,M=a??t??[],C=r??e??[],E=p??[0,0],k=g??mu;aM(_,w,M);const{nodesInitialized:z}=yp(C,b,S,{nodeOrigin:E,nodeExtent:k,zIndexMode:v});let N=[0,0,1];if(c&&s&&o){const D=Nu(b,{filter:j=>!!((j.width||j.initialWidth)&&(j.height||j.initialHeight))}),{x:T,y:L,zoom:Q}=Qp(D,s,o,d,y,(f==null?void 0:f.padding)??.1);N=[T,L,Q]}return{rfId:"1",width:s??0,height:o??0,transform:N,nodes:C,nodesInitialized:z,nodeLookup:b,parentLookup:S,edges:M,edgeLookup:w,connectionLookup:_,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:r!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:d,maxZoom:y,translateExtent:mu,nodeExtent:k,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Ul.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:E,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:c??!1,fitViewOptions:f,fitViewResolver:null,connection:{...VE},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:d8,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:qE,zIndexMode:v,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},Z9=({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:c,fitViewOptions:f,minZoom:d,maxZoom:y,nodeOrigin:p,nodeExtent:g,zIndexMode:v})=>cz((b,S)=>{async function _(){const{nodeLookup:w,panZoom:M,fitViewOptions:C,fitViewResolver:E,width:k,height:z,minZoom:N,maxZoom:D}=S();M&&(await c8({nodes:w,width:k,height:z,panZoom:M,minZoom:N,maxZoom:D},C),E==null||E.resolve(!0),b({fitViewResolver:null}))}return{...$S({nodes:e,edges:t,width:s,height:o,fitView:c,fitViewOptions:f,minZoom:d,maxZoom:y,nodeOrigin:p,nodeExtent:g,defaultNodes:r,defaultEdges:a,zIndexMode:v}),setNodes:w=>{const{nodeLookup:M,parentLookup:C,nodeOrigin:E,elevateNodesOnSelect:k,fitViewQueued:z,zIndexMode:N,nodesSelectionActive:D}=S(),{nodesInitialized:T,hasSelectedNodes:L}=yp(w,M,C,{nodeOrigin:E,nodeExtent:g,elevateNodesOnSelect:k,checkEquality:!0,zIndexMode:N}),Q=D&&L;z&&T?(_(),b({nodes:w,nodesInitialized:T,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:Q})):b({nodes:w,nodesInitialized:T,nodesSelectionActive:Q})},setEdges:w=>{const{connectionLookup:M,edgeLookup:C}=S();aM(M,C,w),b({edges:w})},setDefaultNodesAndEdges:(w,M)=>{if(w){const{setNodes:C}=S();C(w),b({hasDefaultNodes:!0})}if(M){const{setEdges:C}=S();C(M),b({hasDefaultEdges:!0})}},updateNodeInternals:w=>{const{triggerNodeChanges:M,nodeLookup:C,parentLookup:E,domNode:k,nodeOrigin:z,nodeExtent:N,debug:D,fitViewQueued:T,zIndexMode:L}=S(),{changes:Q,updatedInternals:j}=D8(w,C,E,k,z,N,L);j&&(R8(C,E,{nodeOrigin:z,nodeExtent:N,zIndexMode:L}),T?(_(),b({fitViewQueued:!1,fitViewOptions:void 0})):b({}),(Q==null?void 0:Q.length)>0&&(D&&console.log("React Flow: trigger node changes",Q),M==null||M(Q)))},updateNodePositions:(w,M=!1)=>{const C=[];let E=[];const{nodeLookup:k,triggerNodeChanges:z,connection:N,updateConnection:D,onNodesChangeMiddlewareMap:T}=S();for(const[L,Q]of w){const j=k.get(L),B=!!(j!=null&&j.expandParent&&(j!=null&&j.parentId)&&(Q!=null&&Q.position)),$={id:L,type:"position",position:B?{x:Math.max(0,Q.position.x),y:Math.max(0,Q.position.y)}:Q.position,dragging:M};if(j&&N.inProgress&&N.fromNode.id===j.id){const G=ps(j,N.fromHandle,je.Left,!0);D({...N,from:G})}B&&j.parentId&&C.push({id:L,parentId:j.parentId,rect:{...Q.internals.positionAbsolute,width:Q.measured.width??0,height:Q.measured.height??0}}),E.push($)}if(C.length>0){const{parentLookup:L,nodeOrigin:Q}=S(),j=t0(C,k,L,Q);E.push(...j)}for(const L of T.values())E=L(E);z(E)},triggerNodeChanges:w=>{const{onNodesChange:M,setNodes:C,nodes:E,hasDefaultNodes:k,debug:z}=S();if(w!=null&&w.length){if(k){const N=Nz(w,E);C(N)}z&&console.log("React Flow: trigger node changes",w),M==null||M(w)}},triggerEdgeChanges:w=>{const{onEdgesChange:M,setEdges:C,edges:E,hasDefaultEdges:k,debug:z}=S();if(w!=null&&w.length){if(k){const N=Oz(w,E);C(N)}z&&console.log("React Flow: trigger edge changes",w),M==null||M(w)}},addSelectedNodes:w=>{const{multiSelectionActive:M,edgeLookup:C,nodeLookup:E,triggerNodeChanges:k,triggerEdgeChanges:z}=S();if(M){const N=w.map(D=>Za(D,!0));k(N);return}k(gl(E,new Set([...w]),!0)),z(gl(C))},addSelectedEdges:w=>{const{multiSelectionActive:M,edgeLookup:C,nodeLookup:E,triggerNodeChanges:k,triggerEdgeChanges:z}=S();if(M){const N=w.map(D=>Za(D,!0));z(N);return}z(gl(C,new Set([...w]))),k(gl(E,new Set,!0))},unselectNodesAndEdges:({nodes:w,edges:M}={})=>{const{edges:C,nodes:E,nodeLookup:k,triggerNodeChanges:z,triggerEdgeChanges:N}=S(),D=w||E,T=M||C,L=[];for(const j of D){if(!j.selected)continue;const B=k.get(j.id);B&&(B.selected=!1),L.push(Za(j.id,!1))}const Q=[];for(const j of T)j.selected&&Q.push(Za(j.id,!1));z(L),N(Q)},setMinZoom:w=>{const{panZoom:M,maxZoom:C}=S();M==null||M.setScaleExtent([w,C]),b({minZoom:w})},setMaxZoom:w=>{const{panZoom:M,minZoom:C}=S();M==null||M.setScaleExtent([C,w]),b({maxZoom:w})},setTranslateExtent:w=>{var M;(M=S().panZoom)==null||M.setTranslateExtent(w),b({translateExtent:w})},resetSelectedElements:()=>{const{edges:w,nodes:M,triggerNodeChanges:C,triggerEdgeChanges:E,elementsSelectable:k}=S();if(!k)return;const z=M.reduce((D,T)=>T.selected?[...D,Za(T.id,!1)]:D,[]),N=w.reduce((D,T)=>T.selected?[...D,Za(T.id,!1)]:D,[]);C(z),E(N)},setNodeExtent:w=>{const{nodes:M,nodeLookup:C,parentLookup:E,nodeOrigin:k,elevateNodesOnSelect:z,nodeExtent:N,zIndexMode:D}=S();w[0][0]===N[0][0]&&w[0][1]===N[0][1]&&w[1][0]===N[1][0]&&w[1][1]===N[1][1]||(yp(M,C,E,{nodeOrigin:k,nodeExtent:w,elevateNodesOnSelect:z,checkEquality:!1,zIndexMode:D}),b({nodeExtent:w}))},panBy:w=>{const{transform:M,width:C,height:E,panZoom:k,translateExtent:z}=S();return L8({delta:w,panZoom:k,transform:M,translateExtent:z,width:C,height:E})},setCenter:async(w,M,C)=>{const{width:E,height:k,maxZoom:z,panZoom:N}=S();if(!N)return Promise.resolve(!1);const D=typeof(C==null?void 0:C.zoom)<"u"?C.zoom:z;return await N.setViewport({x:E/2-w*D,y:k/2-M*D,zoom:D},{duration:C==null?void 0:C.duration,ease:C==null?void 0:C.ease,interpolate:C==null?void 0:C.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{b({connection:{...VE}})},updateConnection:w=>{b({connection:w})},reset:()=>b({...$S()})}},Object.is);function G9({initialNodes:e,initialEdges:t,defaultNodes:r,defaultEdges:a,initialWidth:s,initialHeight:o,initialMinZoom:c,initialMaxZoom:f,initialFitViewOptions:d,fitView:y,nodeOrigin:p,nodeExtent:g,zIndexMode:v,children:b}){const[S]=R.useState(()=>Z9({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,width:s,height:o,fitView:y,minZoom:c,maxZoom:f,fitViewOptions:d,nodeOrigin:p,nodeExtent:g,zIndexMode:v}));return se.jsx(fz,{value:S,children:se.jsx(Lz,{children:b})})}function Q9({children:e,nodes:t,edges:r,defaultNodes:a,defaultEdges:s,width:o,height:c,fitView:f,fitViewOptions:d,minZoom:y,maxZoom:p,nodeOrigin:g,nodeExtent:v,zIndexMode:b}){return R.useContext(Ed)?se.jsx(se.Fragment,{children:e}):se.jsx(G9,{initialNodes:t,initialEdges:r,defaultNodes:a,defaultEdges:s,initialWidth:o,initialHeight:c,fitView:f,initialFitViewOptions:d,initialMinZoom:y,initialMaxZoom:p,nodeOrigin:g,nodeExtent:v,zIndexMode:b,children:e})}const X9={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function K9({nodes:e,edges:t,defaultNodes:r,defaultEdges:a,className:s,nodeTypes:o,edgeTypes:c,onNodeClick:f,onEdgeClick:d,onInit:y,onMove:p,onMoveStart:g,onMoveEnd:v,onConnect:b,onConnectStart:S,onConnectEnd:_,onClickConnectStart:w,onClickConnectEnd:M,onNodeMouseEnter:C,onNodeMouseMove:E,onNodeMouseLeave:k,onNodeContextMenu:z,onNodeDoubleClick:N,onNodeDragStart:D,onNodeDrag:T,onNodeDragStop:L,onNodesDelete:Q,onEdgesDelete:j,onDelete:B,onSelectionChange:$,onSelectionDragStart:G,onSelectionDrag:re,onSelectionDragStop:U,onSelectionContextMenu:F,onSelectionStart:Z,onSelectionEnd:K,onBeforeDelete:J,connectionMode:O,connectionLineType:I=sa.Bezier,connectionLineStyle:ae,connectionLineComponent:ce,connectionLineContainerStyle:de,deleteKeyCode:me="Backspace",selectionKeyCode:be="Shift",selectionOnDrag:ye=!1,selectionMode:he=gu.Full,panActivationKeyCode:Ue="Space",multiSelectionKeyCode:De=vu()?"Meta":"Control",zoomActivationKeyCode:Re=vu()?"Meta":"Control",snapToGrid:ze,snapGrid:qe,onlyRenderVisibleElements:ut=!1,selectNodesOnDrag:Ge,nodesDraggable:Dt,autoPanOnNodeFocus:Dn,nodesConnectable:yn,nodesFocusable:Qn,nodeOrigin:Xn=vM,edgesFocusable:q,edgesReconnectable:X,elementsSelectable:te=!0,defaultViewport:_e=Ez,minZoom:ge=.5,maxZoom:pe=2,translateExtent:we=mu,preventScrolling:Ve=!0,nodeExtent:We,defaultMarkerColor:rn="#b1b1b7",zoomOnScroll:Sn=!0,zoomOnPinch:Rt=!0,panOnScroll:an=!1,panOnScrollSpeed:xn=.5,panOnScrollMode:Qt=ls.Free,zoomOnDoubleClick:Xl=!0,panOnDrag:Ss=!0,onPaneClick:Kl,onPaneMouseEnter:Vr,onPaneMouseMove:xs,onPaneMouseLeave:ws,onPaneScroll:Ir,onPaneContextMenu:Es,paneClickDistance:wa=1,nodeClickDistance:Td=0,children:Lu,onReconnect:Jl,onReconnectStart:Ea,onReconnectEnd:Rd,onEdgeContextMenu:Bu,onEdgeDoubleClick:ju,onEdgeMouseEnter:Uu,onEdgeMouseMove:Wl,onEdgeMouseLeave:eo,reconnectRadius:Hu=10,onNodesChange:qu,onEdgesChange:Mr,noDragClassName:Xt="nodrag",noWheelClassName:fn="nowheel",noPanClassName:Pr="nopan",fitView:Ms,fitViewOptions:Vu,connectOnClick:Nd,attributionPosition:Iu,proOptions:Ma,defaultEdgeOptions:to,elevateNodesOnSelect:wi=!0,elevateEdgesOnSelect:Ei=!1,disableKeyboardA11y:Mi=!1,autoPanOnConnect:Ci,autoPanOnNodeDrag:qt,autoPanSpeed:Pu,connectionRadius:$u,isValidConnection:$r,onError:ki,style:Od,id:no,nodeDragThreshold:Fu,connectionDragThreshold:zd,viewport:Cs,onViewportChange:ks,width:fr,height:wn,colorMode:Yu="light",debug:Dd,onScroll:Ai,ariaLabelConfig:Zu,zIndexMode:Ca="basic",...Ld},En){const ka=no||"1",Gu=Az(Yu),ro=R.useCallback(Fr=>{Fr.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Ai==null||Ai(Fr)},[Ai]);return se.jsx("div",{"data-testid":"rf__wrapper",...Ld,onScroll:ro,style:{...Od,...X9},ref:En,className:Gt(["react-flow",s,Gu]),id:no,role:"application",children:se.jsxs(Q9,{nodes:e,edges:t,width:fr,height:wn,fitView:Ms,fitViewOptions:Vu,minZoom:ge,maxZoom:pe,nodeOrigin:Xn,nodeExtent:We,zIndexMode:Ca,children:[se.jsx(kz,{nodes:e,edges:t,defaultNodes:r,defaultEdges:a,onConnect:b,onConnectStart:S,onConnectEnd:_,onClickConnectStart:w,onClickConnectEnd:M,nodesDraggable:Dt,autoPanOnNodeFocus:Dn,nodesConnectable:yn,nodesFocusable:Qn,edgesFocusable:q,edgesReconnectable:X,elementsSelectable:te,elevateNodesOnSelect:wi,elevateEdgesOnSelect:Ei,minZoom:ge,maxZoom:pe,nodeExtent:We,onNodesChange:qu,onEdgesChange:Mr,snapToGrid:ze,snapGrid:qe,connectionMode:O,translateExtent:we,connectOnClick:Nd,defaultEdgeOptions:to,fitView:Ms,fitViewOptions:Vu,onNodesDelete:Q,onEdgesDelete:j,onDelete:B,onNodeDragStart:D,onNodeDrag:T,onNodeDragStop:L,onSelectionDrag:re,onSelectionDragStart:G,onSelectionDragStop:U,onMove:p,onMoveStart:g,onMoveEnd:v,noPanClassName:Pr,nodeOrigin:Xn,rfId:ka,autoPanOnConnect:Ci,autoPanOnNodeDrag:qt,autoPanSpeed:Pu,onError:ki,connectionRadius:$u,isValidConnection:$r,selectNodesOnDrag:Ge,nodeDragThreshold:Fu,connectionDragThreshold:zd,onBeforeDelete:J,debug:Dd,ariaLabelConfig:Zu,zIndexMode:Ca}),se.jsx(Y9,{onInit:y,onNodeClick:f,onEdgeClick:d,onNodeMouseEnter:C,onNodeMouseMove:E,onNodeMouseLeave:k,onNodeContextMenu:z,onNodeDoubleClick:N,nodeTypes:o,edgeTypes:c,connectionLineType:I,connectionLineStyle:ae,connectionLineComponent:ce,connectionLineContainerStyle:de,selectionKeyCode:be,selectionOnDrag:ye,selectionMode:he,deleteKeyCode:me,multiSelectionKeyCode:De,panActivationKeyCode:Ue,zoomActivationKeyCode:Re,onlyRenderVisibleElements:ut,defaultViewport:_e,translateExtent:we,minZoom:ge,maxZoom:pe,preventScrolling:Ve,zoomOnScroll:Sn,zoomOnPinch:Rt,zoomOnDoubleClick:Xl,panOnScroll:an,panOnScrollSpeed:xn,panOnScrollMode:Qt,panOnDrag:Ss,onPaneClick:Kl,onPaneMouseEnter:Vr,onPaneMouseMove:xs,onPaneMouseLeave:ws,onPaneScroll:Ir,onPaneContextMenu:Es,paneClickDistance:wa,nodeClickDistance:Td,onSelectionContextMenu:F,onSelectionStart:Z,onSelectionEnd:K,onReconnect:Jl,onReconnectStart:Ea,onReconnectEnd:Rd,onEdgeContextMenu:Bu,onEdgeDoubleClick:ju,onEdgeMouseEnter:Uu,onEdgeMouseMove:Wl,onEdgeMouseLeave:eo,reconnectRadius:Hu,defaultMarkerColor:rn,noDragClassName:Xt,noWheelClassName:fn,noPanClassName:Pr,rfId:ka,disableKeyboardA11y:Mi,nodeExtent:We,viewport:Cs,onViewportChange:ks}),se.jsx(wz,{onSelectionChange:$}),Lu,se.jsx(vz,{proOptions:Ma,position:Iu}),se.jsx(pz,{rfId:ka,disableKeyboardA11y:Mi})]})})}var jj=_M(K9);function J9({dimensions:e,lineWidth:t,variant:r,className:a}){return se.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:Gt(["react-flow__background-pattern",r,a])})}function W9({radius:e,className:t}){return se.jsx("circle",{cx:e,cy:e,r:e,className:Gt(["react-flow__background-pattern","dots",t])})}var ba;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ba||(ba={}));const eD={[ba.Dots]:1,[ba.Lines]:1,[ba.Cross]:6},tD=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function $M({id:e,variant:t=ba.Dots,gap:r=20,size:a,lineWidth:s=1,offset:o=0,color:c,bgColor:f,style:d,className:y,patternClassName:p}){const g=R.useRef(null),{transform:v,patternId:b}=it(tD,kt),S=a||eD[t],_=t===ba.Dots,w=t===ba.Cross,M=Array.isArray(r)?r:[r,r],C=[M[0]*v[2]||1,M[1]*v[2]||1],E=S*v[2],k=Array.isArray(o)?o:[o,o],z=w?[E,E]:C,N=[k[0]*v[2]||1+z[0]/2,k[1]*v[2]||1+z[1]/2],D=`${b}${e||""}`;return se.jsxs("svg",{className:Gt(["react-flow__background",y]),style:{...d,...Cd,"--xy-background-color-props":f,"--xy-background-pattern-color-props":c},ref:g,"data-testid":"rf__background",children:[se.jsx("pattern",{id:D,x:v[0]%C[0],y:v[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${N[0]},-${N[1]})`,children:_?se.jsx(W9,{radius:E/2,className:p}):se.jsx(J9,{dimensions:z,lineWidth:s,variant:t,className:p})}),se.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${D})`})]})}$M.displayName="Background";const Uj=R.memo($M);function nD(){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:se.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function rD(){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:se.jsx("path",{d:"M0 0h32v4.2H0z"})})}function iD(){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:se.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function aD(){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:se.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function sD(){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:se.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function _f({children:e,className:t,...r}){return se.jsx("button",{type:"button",className:Gt(["react-flow__controls-button",t]),...r,children:e})}const lD=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function FM({style:e,showZoom:t=!0,showFitView:r=!0,showInteractive:a=!0,fitViewOptions:s,onZoomIn:o,onZoomOut:c,onFitView:f,onInteractiveChange:d,className:y,children:p,position:g="bottom-left",orientation:v="vertical","aria-label":b}){const S=At(),{isInteractive:_,minZoomReached:w,maxZoomReached:M,ariaLabelConfig:C}=it(lD,kt),{zoomIn:E,zoomOut:k,fitView:z}=n0(),N=()=>{E(),o==null||o()},D=()=>{k(),c==null||c()},T=()=>{z(s),f==null||f()},L=()=>{S.setState({nodesDraggable:!_,nodesConnectable:!_,elementsSelectable:!_}),d==null||d(!_)},Q=v==="horizontal"?"horizontal":"vertical";return se.jsxs(Md,{className:Gt(["react-flow__controls",Q,y]),position:g,style:e,"data-testid":"rf__controls","aria-label":b??C["controls.ariaLabel"],children:[t&&se.jsxs(se.Fragment,{children:[se.jsx(_f,{onClick:N,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:M,children:se.jsx(nD,{})}),se.jsx(_f,{onClick:D,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:w,children:se.jsx(rD,{})})]}),r&&se.jsx(_f,{className:"react-flow__controls-fitview",onClick:T,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:se.jsx(iD,{})}),a&&se.jsx(_f,{className:"react-flow__controls-interactive",onClick:L,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:_?se.jsx(sD,{}):se.jsx(aD,{})}),p]})}FM.displayName="Controls";const Hj=R.memo(FM);function oD({id:e,x:t,y:r,width:a,height:s,style:o,color:c,strokeColor:f,strokeWidth:d,className:y,borderRadius:p,shapeRendering:g,selected:v,onClick:b}){const{background:S,backgroundColor:_}=o||{},w=c||S||_;return se.jsx("rect",{className:Gt(["react-flow__minimap-node",{selected:v},y]),x:t,y:r,rx:p,ry:p,width:a,height:s,style:{fill:w,stroke:f,strokeWidth:d},shapeRendering:g,onClick:b?M=>b(M,e):void 0})}const uD=R.memo(oD),cD=e=>e.nodes.map(t=>t.id),Wm=e=>e instanceof Function?e:()=>e;function fD({nodeStrokeColor:e,nodeColor:t,nodeClassName:r="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:o=uD,onClick:c}){const f=it(cD,kt),d=Wm(t),y=Wm(e),p=Wm(r),g=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return se.jsx(se.Fragment,{children:f.map(v=>se.jsx(hD,{id:v,nodeColorFunc:d,nodeStrokeColorFunc:y,nodeClassNameFunc:p,nodeBorderRadius:a,nodeStrokeWidth:s,NodeComponent:o,onClick:c,shapeRendering:g},v))})}function dD({id:e,nodeColorFunc:t,nodeStrokeColorFunc:r,nodeClassNameFunc:a,nodeBorderRadius:s,nodeStrokeWidth:o,shapeRendering:c,NodeComponent:f,onClick:d}){const{node:y,x:p,y:g,width:v,height:b}=it(S=>{const _=S.nodeLookup.get(e);if(!_)return{node:void 0,x:0,y:0,width:0,height:0};const w=_.internals.userNode,{x:M,y:C}=_.internals.positionAbsolute,{width:E,height:k}=xi(w);return{node:w,x:M,y:C,width:E,height:k}},kt);return!y||y.hidden||!GE(y)?null:se.jsx(f,{x:p,y:g,width:v,height:b,style:y.style,selected:!!y.selected,className:a(y),color:t(y),borderRadius:s,strokeColor:r(y),strokeWidth:o,shapeRendering:c,onClick:d,id:y.id})}const hD=R.memo(dD);var yD=R.memo(fD);const mD=200,gD=150,pD=e=>!e.hidden,vD=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?ZE(Nu(e.nodeLookup,{filter:pD}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},bD="react-flow__minimap-desc";function YM({style:e,className:t,nodeStrokeColor:r,nodeColor:a,nodeClassName:s="",nodeBorderRadius:o=5,nodeStrokeWidth:c,nodeComponent:f,bgColor:d,maskColor:y,maskStrokeColor:p,maskStrokeWidth:g,position:v="bottom-right",onClick:b,onNodeClick:S,pannable:_=!1,zoomable:w=!1,ariaLabel:M,inversePan:C,zoomStep:E=1,offsetScale:k=5}){const z=At(),N=R.useRef(null),{boundingRect:D,viewBB:T,rfId:L,panZoom:Q,translateExtent:j,flowWidth:B,flowHeight:$,ariaLabelConfig:G}=it(vD,kt),re=(e==null?void 0:e.width)??mD,U=(e==null?void 0:e.height)??gD,F=D.width/re,Z=D.height/U,K=Math.max(F,Z),J=K*re,O=K*U,I=k*K,ae=D.x-(J-D.width)/2-I,ce=D.y-(O-D.height)/2-I,de=J+I*2,me=O+I*2,be=`${bD}-${L}`,ye=R.useRef(0),he=R.useRef();ye.current=K,R.useEffect(()=>{if(N.current&&Q)return he.current=$8({domNode:N.current,panZoom:Q,getTransform:()=>z.getState().transform,getViewScale:()=>ye.current}),()=>{var ze;(ze=he.current)==null||ze.destroy()}},[Q]),R.useEffect(()=>{var ze;(ze=he.current)==null||ze.update({translateExtent:j,width:B,height:$,inversePan:C,pannable:_,zoomStep:E,zoomable:w})},[_,w,C,E,j,B,$]);const Ue=b?ze=>{var Ge;const[qe,ut]=((Ge=he.current)==null?void 0:Ge.pointer(ze))||[0,0];b(ze,{x:qe,y:ut})}:void 0,De=S?R.useCallback((ze,qe)=>{const ut=z.getState().nodeLookup.get(qe).internals.userNode;S(ze,ut)},[]):void 0,Re=M??G["minimap.ariaLabel"];return se.jsx(Md,{position:v,style:{...e,"--xy-minimap-background-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-background-color-props":typeof y=="string"?y:void 0,"--xy-minimap-mask-stroke-color-props":typeof p=="string"?p:void 0,"--xy-minimap-mask-stroke-width-props":typeof g=="number"?g*K:void 0,"--xy-minimap-node-background-color-props":typeof a=="string"?a:void 0,"--xy-minimap-node-stroke-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-width-props":typeof c=="number"?c:void 0},className:Gt(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:se.jsxs("svg",{width:re,height:U,viewBox:`${ae} ${ce} ${de} ${me}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":be,ref:N,onClick:Ue,children:[Re&&se.jsx("title",{id:be,children:Re}),se.jsx(yD,{onClick:De,nodeColor:a,nodeStrokeColor:r,nodeBorderRadius:o,nodeClassName:s,nodeStrokeWidth:c,nodeComponent:f}),se.jsx("path",{className:"react-flow__minimap-mask",d:`M${ae-I},${ce-I}h${de+I*2}v${me+I*2}h${-de-I*2}z
718
- M${T.x},${T.y}h${T.width}v${T.height}h${-T.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}YM.displayName="MiniMap";R.memo(YM);const _D=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,SD={[Il.Line]:"right",[Il.Handle]:"bottom-right"};function xD({nodeId:e,position:t,variant:r=Il.Handle,className:a,style:s=void 0,children:o,color:c,minWidth:f=10,minHeight:d=10,maxWidth:y=Number.MAX_VALUE,maxHeight:p=Number.MAX_VALUE,keepAspectRatio:g=!1,resizeDirection:v,autoScale:b=!0,shouldResize:S,onResizeStart:_,onResize:w,onResizeEnd:M}){const C=EM(),E=typeof e=="string"?e:C,k=At(),z=R.useRef(null),N=r===Il.Handle,D=it(R.useCallback(_D(N&&b),[N,b]),kt),T=R.useRef(null),L=t??SD[r];R.useEffect(()=>{if(!(!z.current||!E))return T.current||(T.current=iz({domNode:z.current,nodeId:E,getStoreItems:()=>{const{nodeLookup:j,transform:B,snapGrid:$,snapToGrid:G,nodeOrigin:re,domNode:U}=k.getState();return{nodeLookup:j,transform:B,snapGrid:$,snapToGrid:G,nodeOrigin:re,paneDomNode:U}},onChange:(j,B)=>{const{triggerNodeChanges:$,nodeLookup:G,parentLookup:re,nodeOrigin:U}=k.getState(),F=[],Z={x:j.x,y:j.y},K=G.get(E);if(K&&K.expandParent&&K.parentId){const J=K.origin??U,O=j.width??K.measured.width??0,I=j.height??K.measured.height??0,ae={id:K.id,parentId:K.parentId,rect:{width:O,height:I,...QE({x:j.x??K.position.x,y:j.y??K.position.y},{width:O,height:I},K.parentId,G,J)}},ce=t0([ae],G,re,U);F.push(...ce),Z.x=j.x?Math.max(J[0]*O,j.x):void 0,Z.y=j.y?Math.max(J[1]*I,j.y):void 0}if(Z.x!==void 0&&Z.y!==void 0){const J={id:E,type:"position",position:{...Z}};F.push(J)}if(j.width!==void 0&&j.height!==void 0){const O={id:E,type:"dimensions",resizing:!0,setAttributes:v?v==="horizontal"?"width":"height":!0,dimensions:{width:j.width,height:j.height}};F.push(O)}for(const J of B){const O={...J,type:"position"};F.push(O)}$(F)},onEnd:({width:j,height:B})=>{const $={id:E,type:"dimensions",resizing:!1,dimensions:{width:j,height:B}};k.getState().triggerNodeChanges([$])}})),T.current.update({controlPosition:L,boundaries:{minWidth:f,minHeight:d,maxWidth:y,maxHeight:p},keepAspectRatio:g,resizeDirection:v,onResizeStart:_,onResize:w,onResizeEnd:M,shouldResize:S}),()=>{var j;(j=T.current)==null||j.destroy()}},[L,f,d,y,p,g,_,w,M,S]);const Q=L.split("-");return se.jsx("div",{className:Gt(["react-flow__resize-control","nodrag",...Q,r,a]),ref:z,style:{...s,scale:D,...c&&{[N?"backgroundColor":"borderColor"]:c}},children:o})}R.memo(xD);var Du=e=>e.type==="checkbox",Qa=e=>e instanceof Date,zn=e=>e==null;const ZM=e=>typeof e=="object";var Ht=e=>!zn(e)&&!Array.isArray(e)&&ZM(e)&&!Qa(e),wD=e=>Ht(e)&&e.target?Du(e.target)?e.target.checked:e.target.value:e,GM=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ED=(e,t)=>e.has(GM(t)),MD=e=>{const t=e.constructor&&e.constructor.prototype;return Ht(t)&&t.hasOwnProperty("isPrototypeOf")},i0=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Wt(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(i0&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(Ht(e)&&MD(e)))return e;const a=r?[]:Object.create(Object.getPrototypeOf(e));for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=Wt(e[s]));return a}var Ad=e=>/^\w*$/.test(e),Tt=e=>e===void 0,a0=e=>Array.isArray(e)?e.filter(Boolean):[],s0=e=>a0(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ae=(e,t,r)=>{if(!t||!Ht(e))return r;const a=(Ad(t)?[t]:s0(t)).reduce((s,o)=>zn(s)?s:s[o],e);return Tt(a)||a===e?Tt(e[t])?r:e[t]:a},Nr=e=>typeof e=="boolean",br=e=>typeof e=="function",xt=(e,t,r)=>{let a=-1;const s=Ad(t)?[t]:s0(t),o=s.length,c=o-1;for(;++a<o;){const f=s[a];let d=r;if(a!==c){const y=e[f];d=Ht(y)||Array.isArray(y)?y:isNaN(+s[a+1])?{}:[]}if(f==="__proto__"||f==="constructor"||f==="prototype")return;e[f]=d,e=e[f]}};const ol={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},_r={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},mr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},eg="form",QM="root",CD=jt.createContext(null);CD.displayName="HookFormControlContext";var kD=(e,t,r,a=!0)=>{const s={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(s,o,{get:()=>{const c=o;return t._proxyFormState[c]!==_r.all&&(t._proxyFormState[c]=!a||_r.all),e[c]}});return s};const AD=typeof window<"u"?jt.useLayoutEffect:jt.useEffect;var bn=e=>typeof e=="string",TD=(e,t,r,a,s)=>bn(e)?(a&&t.watch.add(e),Ae(r,e,s)):Array.isArray(e)?e.map(o=>(a&&t.watch.add(o),Ae(r,o))):(a&&(t.watchAll=!0),r),vp=e=>zn(e)||!ZM(e);function la(e,t,r=new WeakSet){if(vp(e)||vp(t))return Object.is(e,t);if(Qa(e)&&Qa(t))return Object.is(e.getTime(),t.getTime());const a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const o of a){const c=e[o];if(!s.includes(o))return!1;if(o!=="ref"){const f=t[o];if(Qa(c)&&Qa(f)||Ht(c)&&Ht(f)||Array.isArray(c)&&Array.isArray(f)?!la(c,f,r):!Object.is(c,f))return!1}}return!0}const RD=jt.createContext(null);RD.displayName="HookFormContext";var ND=(e,t,r,a,s)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[a]:s||!0}}:{},nu=e=>Array.isArray(e)?e:[e],FS=()=>{let e=[];return{get observers(){return e},next:s=>{for(const o of e)o.next&&o.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(o=>o!==s)}}),unsubscribe:()=>{e=[]}}};function XM(e,t){const r={};for(const a in e)if(e.hasOwnProperty(a)){const s=e[a],o=t[a];if(s&&Ht(s)&&o){const c=XM(s,o);Ht(c)&&(r[a]=c)}else e[a]&&(r[a]=o)}return r}var pn=e=>Ht(e)&&!Object.keys(e).length,l0=e=>e.type==="file",rd=e=>{if(!i0)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},KM=e=>e.type==="select-multiple",o0=e=>e.type==="radio",OD=e=>o0(e)||Du(e),tg=e=>rd(e)&&e.isConnected;function zD(e,t){const r=t.slice(0,-1).length;let a=0;for(;a<r;)e=Tt(e)?a++:e[t[a++]];return e}function DD(e){for(const t in e)if(e.hasOwnProperty(t)&&!Tt(e[t]))return!1;return!0}function Ft(e,t){const r=Array.isArray(t)?t:Ad(t)?[t]:s0(t),a=r.length===1?e:zD(e,r),s=r.length-1,o=r[s];return a&&delete a[o],s!==0&&(Ht(a)&&pn(a)||Array.isArray(a)&&DD(a))&&Ft(e,r.slice(0,-1)),e}var LD=e=>{for(const t in e)if(br(e[t]))return!0;return!1};function JM(e){return Array.isArray(e)||Ht(e)&&!LD(e)}function bp(e,t={}){for(const r in e){const a=e[r];JM(a)?(t[r]=Array.isArray(a)?[]:{},bp(a,t[r])):Tt(a)||(t[r]=!0)}return t}function yl(e,t,r){r||(r=bp(t));for(const a in e){const s=e[a];if(JM(s))Tt(t)||vp(r[a])?r[a]=bp(s,Array.isArray(s)?[]:{}):yl(s,zn(t)?{}:t[a],r[a]);else{const o=t[a];r[a]=!la(s,o)}}return r}const YS={value:!1,isValid:!1},ZS={value:!0,isValid:!0};var WM=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Tt(e[0].attributes.value)?Tt(e[0].value)||e[0].value===""?ZS:{value:e[0].value,isValid:!0}:ZS:YS}return YS},eC=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:a})=>Tt(e)?e:t?e===""?NaN:e&&+e:r&&bn(e)?new Date(e):a?a(e):e;const GS={isValid:!1,value:null};var tC=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,GS):GS;function QS(e){const t=e.ref;return l0(t)?t.files:o0(t)?tC(e.refs).value:KM(t)?[...t.selectedOptions].map(({value:r})=>r):Du(t)?WM(e.refs).value:eC(Tt(t.value)?e.ref.value:t.value,e)}var BD=(e,t,r,a)=>{const s={};for(const o of e){const c=Ae(t,o);c&&xt(s,o,c._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:a}},id=e=>e instanceof RegExp,Xo=e=>Tt(e)?e:id(e)?e.source:Ht(e)?id(e.value)?e.value.source:e.value:e,XS=e=>({isOnSubmit:!e||e===_r.onSubmit,isOnBlur:e===_r.onBlur,isOnChange:e===_r.onChange,isOnAll:e===_r.all,isOnTouch:e===_r.onTouched});const KS="AsyncFunction";var jD=e=>!!e&&!!e.validate&&!!(br(e.validate)&&e.validate.constructor.name===KS||Ht(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===KS)),UD=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),JS=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(a=>e.startsWith(a)&&/^\.\w+/.test(e.slice(a.length))));const ru=(e,t,r,a)=>{for(const s of r||Object.keys(e)){const o=Ae(e,s);if(o){const{_f:c,...f}=o;if(c){if(c.refs&&c.refs[0]&&t(c.refs[0],s)&&!a)return!0;if(c.ref&&t(c.ref,c.name)&&!a)return!0;if(ru(f,t))break}else if(Ht(f)&&ru(f,t))break}}};function WS(e,t,r){const a=Ae(e,r);if(a||Ad(r))return{error:a,name:r};const s=r.split(".");for(;s.length;){const o=s.join("."),c=Ae(t,o),f=Ae(e,o);if(c&&!Array.isArray(c)&&r!==o)return{name:r};if(f&&f.type)return{name:o,error:f};if(f&&f.root&&f.root.type)return{name:`${o}.root`,error:f.root};s.pop()}return{name:r}}var HD=(e,t,r,a)=>{r(e);const{name:s,...o}=e;return pn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(c=>t[c]===(!a||_r.all))},qD=(e,t,r)=>!e||!t||e===t||nu(e).some(a=>a&&(r?a===t:a.startsWith(t)||t.startsWith(a))),VD=(e,t,r,a,s)=>s.isOnAll?!1:!r&&s.isOnTouch?!(t||e):(r?a.isOnBlur:s.isOnBlur)?!e:(r?a.isOnChange:s.isOnChange)?e:!0,ID=(e,t)=>!a0(Ae(e,t)).length&&Ft(e,t),PD=(e,t,r)=>{const a=nu(Ae(e,r));return xt(a,QM,t[r]),xt(e,r,a),e};function ex(e,t,r="validate"){if(bn(e)||Array.isArray(e)&&e.every(bn)||Nr(e)&&!e)return{type:r,message:bn(e)?e:"",ref:t}}var ul=e=>Ht(e)&&!id(e)?e:{value:e,message:""},tx=async(e,t,r,a,s,o)=>{const{ref:c,refs:f,required:d,maxLength:y,minLength:p,min:g,max:v,pattern:b,validate:S,name:_,valueAsNumber:w,mount:M}=e._f,C=Ae(r,_);if(!M||t.has(_))return{};const E=f?f[0]:c,k=B=>{s&&E.reportValidity&&(E.setCustomValidity(Nr(B)?"":B||""),E.reportValidity())},z={},N=o0(c),D=Du(c),T=N||D,L=(w||l0(c))&&Tt(c.value)&&Tt(C)||rd(c)&&c.value===""||C===""||Array.isArray(C)&&!C.length,Q=ND.bind(null,_,a,z),j=(B,$,G,re=mr.maxLength,U=mr.minLength)=>{const F=B?$:G;z[_]={type:B?re:U,message:F,ref:c,...Q(B?re:U,F)}};if(o?!Array.isArray(C)||!C.length:d&&(!T&&(L||zn(C))||Nr(C)&&!C||D&&!WM(f).isValid||N&&!tC(f).isValid)){const{value:B,message:$}=bn(d)?{value:!!d,message:d}:ul(d);if(B&&(z[_]={type:mr.required,message:$,ref:E,...Q(mr.required,$)},!a))return k($),z}if(!L&&(!zn(g)||!zn(v))){let B,$;const G=ul(v),re=ul(g);if(!zn(C)&&!isNaN(C)){const U=c.valueAsNumber||C&&+C;zn(G.value)||(B=U>G.value),zn(re.value)||($=U<re.value)}else{const U=c.valueAsDate||new Date(C),F=J=>new Date(new Date().toDateString()+" "+J),Z=c.type=="time",K=c.type=="week";bn(G.value)&&C&&(B=Z?F(C)>F(G.value):K?C>G.value:U>new Date(G.value)),bn(re.value)&&C&&($=Z?F(C)<F(re.value):K?C<re.value:U<new Date(re.value))}if((B||$)&&(j(!!B,G.message,re.message,mr.max,mr.min),!a))return k(z[_].message),z}if((y||p)&&!L&&(bn(C)||o&&Array.isArray(C))){const B=ul(y),$=ul(p),G=!zn(B.value)&&C.length>+B.value,re=!zn($.value)&&C.length<+$.value;if((G||re)&&(j(G,B.message,$.message),!a))return k(z[_].message),z}if(b&&!L&&bn(C)){const{value:B,message:$}=ul(b);if(id(B)&&!C.match(B)&&(z[_]={type:mr.pattern,message:$,ref:c,...Q(mr.pattern,$)},!a))return k($),z}if(S){if(br(S)){const B=await S(C,r),$=ex(B,E);if($&&(z[_]={...$,...Q(mr.validate,$.message)},!a))return k($.message),z}else if(Ht(S)){let B={};for(const $ in S){if(!pn(B)&&!a)break;const G=ex(await S[$](C,r),E,$);G&&(B={...G,...Q($,G.message)},k(G.message),a&&(z[_]=B))}if(!pn(B)&&(z[_]={ref:E,...B},!a))return z}}return k(!0),z};const $D={mode:_r.onSubmit,reValidateMode:_r.onChange,shouldFocusError:!0};function FD(e={}){let t={...$D,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:br(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},a={},s=Ht(t.defaultValues)||Ht(t.values)?Wt(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Wt(s),c={action:!1,mount:!1,watch:!1,keepIsValid:!1},f={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,y=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},g={...p};let v={...g};const b={array:FS(),state:FS()},S=t.criteriaMode===_r.all,_=q=>X=>{clearTimeout(y),y=setTimeout(q,X)},w=async q=>{if(!c.keepIsValid&&!t.disabled&&(g.isValid||v.isValid||q)){let X;t.resolver?(X=pn((await T()).errors),M()):X=await j({fields:a,onlyCheckValid:!0,eventType:ol.VALID}),X!==r.isValid&&b.state.next({isValid:X})}},M=(q,X)=>{!t.disabled&&(g.isValidating||g.validatingFields||v.isValidating||v.validatingFields)&&((q||Array.from(f.mount)).forEach(te=>{te&&(X?xt(r.validatingFields,te,X):Ft(r.validatingFields,te))}),b.state.next({validatingFields:r.validatingFields,isValidating:!pn(r.validatingFields)}))},C=(q,X=[],te,_e,ge=!0,pe=!0)=>{if(_e&&te&&!t.disabled){if(c.action=!0,pe&&Array.isArray(Ae(a,q))){const we=te(Ae(a,q),_e.argA,_e.argB);ge&&xt(a,q,we)}if(pe&&Array.isArray(Ae(r.errors,q))){const we=te(Ae(r.errors,q),_e.argA,_e.argB);ge&&xt(r.errors,q,we),ID(r.errors,q)}if((g.touchedFields||v.touchedFields)&&pe&&Array.isArray(Ae(r.touchedFields,q))){const we=te(Ae(r.touchedFields,q),_e.argA,_e.argB);ge&&xt(r.touchedFields,q,we)}if(g.dirtyFields||v.dirtyFields){const we=yl(s,o),Ve=GM(q);xt(r.dirtyFields,Ve,Ae(we,Ve))}b.state.next({name:q,isDirty:$(q,X),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else xt(o,q,X)},E=(q,X)=>{xt(r.errors,q,X),b.state.next({errors:r.errors})},k=q=>{r.errors=q,b.state.next({errors:r.errors,isValid:!1})},z=(q,X,te,_e)=>{const ge=Ae(a,q);if(ge){const pe=Ae(o,q,Tt(te)?Ae(s,q):te);Tt(pe)||_e&&_e.defaultChecked||X?xt(o,q,X?pe:QS(ge._f)):U(q,pe),c.mount&&!c.action&&w()}},N=(q,X,te,_e,ge)=>{let pe=!1,we=!1;const Ve={name:q};if(!t.disabled){if(!te||_e){(g.isDirty||v.isDirty)&&(we=r.isDirty,r.isDirty=Ve.isDirty=$(),pe=we!==Ve.isDirty);const We=la(Ae(s,q),X);we=!!Ae(r.dirtyFields,q),We?Ft(r.dirtyFields,q):xt(r.dirtyFields,q,!0),Ve.dirtyFields=r.dirtyFields,pe=pe||(g.dirtyFields||v.dirtyFields)&&we!==!We}if(te){const We=Ae(r.touchedFields,q);We||(xt(r.touchedFields,q,te),Ve.touchedFields=r.touchedFields,pe=pe||(g.touchedFields||v.touchedFields)&&We!==te)}pe&&ge&&b.state.next(Ve)}return pe?Ve:{}},D=(q,X,te,_e)=>{const ge=Ae(r.errors,q),pe=(g.isValid||v.isValid)&&Nr(X)&&r.isValid!==X;if(t.delayError&&te?(d=_(()=>E(q,te)),d(t.delayError)):(clearTimeout(y),d=null,te?xt(r.errors,q,te):Ft(r.errors,q)),(te?!la(ge,te):ge)||!pn(_e)||pe){const we={..._e,...pe&&Nr(X)?{isValid:X}:{},errors:r.errors,name:q};r={...r,...we},b.state.next(we)}},T=async q=>(M(q,!0),await t.resolver(o,t.context,BD(q||f.mount,a,t.criteriaMode,t.shouldUseNativeValidation))),L=async q=>{const{errors:X}=await T(q);if(M(q),q)for(const te of q){const _e=Ae(X,te);_e?xt(r.errors,te,_e):Ft(r.errors,te)}else r.errors=X;return X},Q=async({name:q,eventType:X})=>{if(e.validate){const te=await e.validate({formValues:o,formState:r,name:q,eventType:X});if(Ht(te))for(const _e in te)te[_e]&&de(`${eg}.${_e}`,{message:bn(te.message)?te.message:"",type:mr.validate});else bn(te)||!te?de(eg,{message:te||"",type:mr.validate}):ce(eg);return te}return!0},j=async({fields:q,onlyCheckValid:X,name:te,eventType:_e,context:ge={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(ge.runRootValidation=!0,!await Q({name:te,eventType:_e})&&(ge.valid=!1,X)))return ge.valid;for(const pe in q){const we=q[pe];if(we){const{_f:Ve,...We}=we;if(Ve){const rn=f.array.has(Ve.name),Sn=we._f&&jD(we._f);Sn&&g.validatingFields&&M([Ve.name],!0);const Rt=await tx(we,f.disabled,o,S,t.shouldUseNativeValidation&&!X,rn);if(Sn&&g.validatingFields&&M([Ve.name]),Rt[Ve.name]&&(ge.valid=!1,X)||(!X&&(Ae(Rt,Ve.name)?rn?PD(r.errors,Rt,Ve.name):xt(r.errors,Ve.name,Rt[Ve.name]):Ft(r.errors,Ve.name)),e.shouldUseNativeValidation&&Rt[Ve.name]))break}!pn(We)&&await j({context:ge,onlyCheckValid:X,fields:We,name:pe,eventType:_e})}}return ge.valid},B=()=>{for(const q of f.unMount){const X=Ae(a,q);X&&(X._f.refs?X._f.refs.every(te=>!tg(te)):!tg(X._f.ref))&&he(q)}f.unMount=new Set},$=(q,X)=>!t.disabled&&(q&&X&&xt(o,q,X),!la(I(),s)),G=(q,X,te)=>TD(q,f,{...c.mount?o:Tt(X)?s:bn(q)?{[q]:X}:X},te,X),re=q=>a0(Ae(c.mount?o:s,q,t.shouldUnregister?Ae(s,q,[]):[])),U=(q,X,te={})=>{const _e=Ae(a,q);let ge=X;if(_e){const pe=_e._f;pe&&(!pe.disabled&&xt(o,q,eC(X,pe)),ge=rd(pe.ref)&&zn(X)?"":X,KM(pe.ref)?[...pe.ref.options].forEach(we=>we.selected=ge.includes(we.value)):pe.refs?Du(pe.ref)?pe.refs.forEach(we=>{(!we.defaultChecked||!we.disabled)&&(Array.isArray(ge)?we.checked=!!ge.find(Ve=>Ve===we.value):we.checked=ge===we.value||!!ge)}):pe.refs.forEach(we=>we.checked=we.value===ge):l0(pe.ref)?pe.ref.value="":(pe.ref.value=ge,pe.ref.type||b.state.next({name:q,values:Wt(o)})))}(te.shouldDirty||te.shouldTouch)&&N(q,ge,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&O(q)},F=(q,X,te)=>{for(const _e in X){if(!X.hasOwnProperty(_e))return;const ge=X[_e],pe=q+"."+_e,we=Ae(a,pe);(f.array.has(q)||Ht(ge)||we&&!we._f)&&!Qa(ge)?F(pe,ge,te):U(pe,ge,te)}},Z=(q,X,te={})=>{const _e=Ae(a,q),ge=f.array.has(q),pe=Wt(X);xt(o,q,pe),ge?(b.array.next({name:q,values:Wt(o)}),(g.isDirty||g.dirtyFields||v.isDirty||v.dirtyFields)&&te.shouldDirty&&b.state.next({name:q,dirtyFields:yl(s,o),isDirty:$(q,pe)})):_e&&!_e._f&&!zn(pe)?F(q,pe,te):U(q,pe,te),JS(q,f)?b.state.next({...r,name:q,values:Wt(o)}):b.state.next({name:c.mount?q:void 0,values:Wt(o)})},K=async q=>{c.mount=!0;const X=q.target;let te=X.name,_e=!0;const ge=Ae(a,te),pe=We=>{_e=Number.isNaN(We)||Qa(We)&&isNaN(We.getTime())||la(We,Ae(o,te,We))},we=XS(t.mode),Ve=XS(t.reValidateMode);if(ge){let We,rn;const Sn=X.type?QS(ge._f):wD(q),Rt=q.type===ol.BLUR||q.type===ol.FOCUS_OUT,an=!UD(ge._f)&&!e.validate&&!t.resolver&&!Ae(r.errors,te)&&!ge._f.deps||VD(Rt,Ae(r.touchedFields,te),r.isSubmitted,Ve,we),xn=JS(te,f,Rt);xt(o,te,Sn),Rt?(!X||!X.readOnly)&&(ge._f.onBlur&&ge._f.onBlur(q),d&&d(0)):ge._f.onChange&&ge._f.onChange(q);const Qt=N(te,Sn,Rt),Xl=!pn(Qt)||xn;if(!Rt&&b.state.next({name:te,type:q.type,values:Wt(o)}),an)return(g.isValid||v.isValid)&&(t.mode==="onBlur"?Rt&&w():Rt||w()),Xl&&b.state.next({name:te,...xn?{}:Qt});if(!t.resolver&&e.validate&&await Q({name:te,eventType:q.type}),!Rt&&xn&&b.state.next({...r}),t.resolver){const{errors:Ss}=await T([te]);if(M([te]),pe(Sn),_e){const Kl=WS(r.errors,a,te),Vr=WS(Ss,a,Kl.name||te);We=Vr.error,te=Vr.name,rn=pn(Ss)}}else M([te],!0),We=(await tx(ge,f.disabled,o,S,t.shouldUseNativeValidation))[te],M([te]),pe(Sn),_e&&(We?rn=!1:(g.isValid||v.isValid)&&(rn=await j({fields:a,onlyCheckValid:!0,name:te,eventType:q.type})));_e&&(ge._f.deps&&(!Array.isArray(ge._f.deps)||ge._f.deps.length>0)&&O(ge._f.deps),D(te,rn,We,Qt))}},J=(q,X)=>{if(Ae(r.errors,X)&&q.focus)return q.focus(),1},O=async(q,X={})=>{let te,_e;const ge=nu(q);if(t.resolver){const pe=await L(Tt(q)?q:ge);te=pn(pe),_e=q?!ge.some(we=>Ae(pe,we)):te}else q?(_e=(await Promise.all(ge.map(async pe=>{const we=Ae(a,pe);return await j({fields:we&&we._f?{[pe]:we}:we,eventType:ol.TRIGGER})}))).every(Boolean),!(!_e&&!r.isValid)&&w()):_e=te=await j({fields:a,name:q,eventType:ol.TRIGGER});return b.state.next({...!bn(q)||(g.isValid||v.isValid)&&te!==r.isValid?{}:{name:q},...t.resolver||!q?{isValid:te}:{},errors:r.errors}),X.shouldFocus&&!_e&&ru(a,J,q?ge:f.mount),_e},I=(q,X)=>{let te={...c.mount?o:s};return X&&(te=XM(X.dirtyFields?r.dirtyFields:r.touchedFields,te)),Tt(q)?te:bn(q)?Ae(te,q):q.map(_e=>Ae(te,_e))},ae=(q,X)=>({invalid:!!Ae((X||r).errors,q),isDirty:!!Ae((X||r).dirtyFields,q),error:Ae((X||r).errors,q),isValidating:!!Ae(r.validatingFields,q),isTouched:!!Ae((X||r).touchedFields,q)}),ce=q=>{const X=q?nu(q):void 0;X==null||X.forEach(te=>Ft(r.errors,te)),X?X.forEach(te=>{b.state.next({name:te,errors:r.errors})}):b.state.next({errors:{}})},de=(q,X,te)=>{const _e=(Ae(a,q,{_f:{}})._f||{}).ref,ge=Ae(r.errors,q)||{},{ref:pe,message:we,type:Ve,...We}=ge;xt(r.errors,q,{...We,...X,ref:_e}),b.state.next({name:q,errors:r.errors,isValid:!1}),te&&te.shouldFocus&&_e&&_e.focus&&_e.focus()},me=(q,X)=>br(q)?b.state.subscribe({next:te=>"values"in te&&q(G(void 0,X),te)}):G(q,X,!0),be=q=>b.state.subscribe({next:X=>{qD(q.name,X.name,q.exact)&&HD(X,q.formState||g,yn,q.reRenderRoot)&&q.callback({values:{...o},...r,...X,defaultValues:s})}}).unsubscribe,ye=q=>(c.mount=!0,v={...v,...q.formState},be({...q,formState:{...p,...q.formState}})),he=(q,X={})=>{for(const te of q?nu(q):f.mount)f.mount.delete(te),f.array.delete(te),X.keepValue||(Ft(a,te),Ft(o,te)),!X.keepError&&Ft(r.errors,te),!X.keepDirty&&Ft(r.dirtyFields,te),!X.keepTouched&&Ft(r.touchedFields,te),!X.keepIsValidating&&Ft(r.validatingFields,te),!t.shouldUnregister&&!X.keepDefaultValue&&Ft(s,te);b.state.next({values:Wt(o)}),b.state.next({...r,...X.keepDirty?{isDirty:$()}:{}}),!X.keepIsValid&&w()},Ue=({disabled:q,name:X})=>{if(Nr(q)&&c.mount||q||f.disabled.has(X)){const ge=f.disabled.has(X)!==!!q;q?f.disabled.add(X):f.disabled.delete(X),ge&&c.mount&&!c.action&&w()}},De=(q,X={})=>{let te=Ae(a,q);const _e=Nr(X.disabled)||Nr(t.disabled);return xt(a,q,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:q}},name:q,mount:!0,...X}}),f.mount.add(q),te?Ue({disabled:Nr(X.disabled)?X.disabled:t.disabled,name:q}):z(q,!0,X.value),{..._e?{disabled:X.disabled||t.disabled}:{},...t.progressive?{required:!!X.required,min:Xo(X.min),max:Xo(X.max),minLength:Xo(X.minLength),maxLength:Xo(X.maxLength),pattern:Xo(X.pattern)}:{},name:q,onChange:K,onBlur:K,ref:ge=>{if(ge){De(q,X),te=Ae(a,q);const pe=Tt(ge.value)&&ge.querySelectorAll&&ge.querySelectorAll("input,select,textarea")[0]||ge,we=OD(pe),Ve=te._f.refs||[];if(we?Ve.find(We=>We===pe):pe===te._f.ref)return;xt(a,q,{_f:{...te._f,...we?{refs:[...Ve.filter(tg),pe,...Array.isArray(Ae(s,q))?[{}]:[]],ref:{type:pe.type,name:q}}:{ref:pe}}}),z(q,!1,void 0,pe)}else te=Ae(a,q,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(ED(f.array,q)&&c.action)&&f.unMount.add(q)}}},Re=()=>t.shouldFocusError&&ru(a,J,f.mount),ze=q=>{Nr(q)&&(b.state.next({disabled:q}),ru(a,(X,te)=>{const _e=Ae(a,te);_e&&(X.disabled=_e._f.disabled||q,Array.isArray(_e._f.refs)&&_e._f.refs.forEach(ge=>{ge.disabled=_e._f.disabled||q}))},0,!1))},qe=(q,X)=>async te=>{let _e;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let ge=Wt(o);if(b.state.next({isSubmitting:!0}),t.resolver){const{errors:pe,values:we}=await T();M(),r.errors=pe,ge=Wt(we)}else await j({fields:a,eventType:ol.SUBMIT});if(f.disabled.size)for(const pe of f.disabled)Ft(ge,pe);if(Ft(r.errors,QM),pn(r.errors)){b.state.next({errors:{}});try{await q(ge,te)}catch(pe){_e=pe}}else X&&await X({...r.errors},te),Re(),setTimeout(Re);if(b.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:pn(r.errors)&&!_e,submitCount:r.submitCount+1,errors:r.errors}),_e)throw _e},ut=(q,X={})=>{Ae(a,q)&&(Tt(X.defaultValue)?Z(q,Wt(Ae(s,q))):(Z(q,X.defaultValue),xt(s,q,Wt(X.defaultValue))),X.keepTouched||Ft(r.touchedFields,q),X.keepDirty||(Ft(r.dirtyFields,q),r.isDirty=X.defaultValue?$(q,Wt(Ae(s,q))):$()),X.keepError||(Ft(r.errors,q),g.isValid&&w()),b.state.next({...r}))},Ge=(q,X={})=>{const te=q?Wt(q):s,_e=Wt(te),ge=pn(q),pe=ge?s:_e;if(X.keepDefaultValues||(s=te),!X.keepValues){if(X.keepDirtyValues){const we=new Set([...f.mount,...Object.keys(yl(s,o))]);for(const Ve of Array.from(we)){const We=Ae(r.dirtyFields,Ve),rn=Ae(o,Ve),Sn=Ae(pe,Ve);We&&!Tt(rn)?xt(pe,Ve,rn):!We&&!Tt(Sn)&&Z(Ve,Sn)}}else{if(i0&&Tt(q))for(const we of f.mount){const Ve=Ae(a,we);if(Ve&&Ve._f){const We=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(rd(We)){const rn=We.closest("form");if(rn){rn.reset();break}}}}if(X.keepFieldsRef)for(const we of f.mount)Z(we,Ae(pe,we));else a={}}o=t.shouldUnregister?X.keepDefaultValues?Wt(s):{}:Wt(pe),b.array.next({values:{...pe}}),b.state.next({values:{...pe}})}f={mount:X.keepDirtyValues?f.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!g.isValid||!!X.keepIsValid||!!X.keepDirtyValues||!t.shouldUnregister&&!pn(pe),c.watch=!!t.shouldUnregister,c.keepIsValid=!!X.keepIsValid,c.action=!1,X.keepErrors||(r.errors={}),b.state.next({submitCount:X.keepSubmitCount?r.submitCount:0,isDirty:ge?!1:X.keepDirty?r.isDirty:!!(X.keepDefaultValues&&!la(q,s)),isSubmitted:X.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ge?{}:X.keepDirtyValues?X.keepDefaultValues&&o?yl(s,o):r.dirtyFields:X.keepDefaultValues&&q?yl(s,q):X.keepDirty?r.dirtyFields:{},touchedFields:X.keepTouched?r.touchedFields:{},errors:X.keepErrors?r.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},Dt=(q,X)=>Ge(br(q)?q(o):q,{...t.resetOptions,...X}),Dn=(q,X={})=>{const te=Ae(a,q),_e=te&&te._f;if(_e){const ge=_e.refs?_e.refs[0]:_e.ref;ge.focus&&setTimeout(()=>{ge.focus(),X.shouldSelect&&br(ge.select)&&ge.select()})}},yn=q=>{r={...r,...q}},Xn={control:{register:De,unregister:he,getFieldState:ae,handleSubmit:qe,setError:de,_subscribe:be,_runSchema:T,_updateIsValidating:M,_focusError:Re,_getWatch:G,_getDirty:$,_setValid:w,_setFieldArray:C,_setDisabledField:Ue,_setErrors:k,_getFieldArray:re,_reset:Ge,_resetDefaultValues:()=>br(t.defaultValues)&&t.defaultValues().then(q=>{Dt(q,t.resetOptions),b.state.next({isLoading:!1})}),_removeUnmounted:B,_disableForm:ze,_subjects:b,_proxyFormState:g,get _fields(){return a},get _formValues(){return o},get _state(){return c},set _state(q){c=q},get _defaultValues(){return s},get _names(){return f},set _names(q){f=q},get _formState(){return r},get _options(){return t},set _options(q){t={...t,...q}}},subscribe:ye,trigger:O,register:De,handleSubmit:qe,watch:me,setValue:Z,getValues:I,reset:Dt,resetField:ut,clearErrors:ce,unregister:he,setError:de,setFocus:Dn,getFieldState:ae};return{...Xn,formControl:Xn}}function qj(e={}){const t=jt.useRef(void 0),r=jt.useRef(void 0),[a,s]=jt.useState({isDirty:!1,isValidating:!1,isLoading:br(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:br(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:a},e.defaultValues&&!br(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:c,...f}=FD(e);t.current={...f,formState:a}}const o=t.current.control;return o._options=e,AD(()=>{const c=o._subscribe({formState:o._proxyFormState,callback:()=>s({...o._formState}),reRenderRoot:!0});return s(f=>({...f,isReady:!0})),o._formState.isReady=!0,c},[o]),jt.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),jt.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),jt.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),jt.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),jt.useEffect(()=>{if(o._proxyFormState.isDirty){const c=o._getDirty();c!==a.isDirty&&o._subjects.state.next({isDirty:c})}},[o,a.isDirty]),jt.useEffect(()=>{var c;e.values&&!la(e.values,r.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),!((c=o._options.resetOptions)===null||c===void 0)&&c.keepIsValid||o._setValid(),r.current=e.values,s(f=>({...f}))):o._resetDefaultValues()},[o,e.values]),jt.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=jt.useMemo(()=>kD(a,o),[o,a]),t.current}var cl={},ng,nx;function YD(){return nx||(nx=1,ng=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),ng}var rg={},na={},rx;function bs(){if(rx)return na;rx=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return na.getSymbolSize=function(a){if(!a)throw new Error('"version" cannot be null or undefined');if(a<1||a>40)throw new Error('"version" should be in range from 1 to 40');return a*4+17},na.getSymbolTotalCodewords=function(a){return t[a]},na.getBCHDigit=function(r){let a=0;for(;r!==0;)a++,r>>>=1;return a},na.setToSJISFunction=function(a){if(typeof a!="function")throw new Error('"toSJISFunc" is not a valid function.');e=a},na.isKanjiModeEnabled=function(){return typeof e<"u"},na.toSJIS=function(a){return e(a)},na}var ig={},ix;function u0(){return ix||(ix=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(a){return a&&typeof a.bit<"u"&&a.bit>=0&&a.bit<4},e.from=function(a,s){if(e.isValid(a))return a;try{return t(a)}catch{return s}}})(ig)),ig}var ag,ax;function ZD(){if(ax)return ag;ax=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const r=Math.floor(t/8);return(this.buffer[r]>>>7-t%8&1)===1},put:function(t,r){for(let a=0;a<r;a++)this.putBit((t>>>r-a-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),t&&(this.buffer[r]|=128>>>this.length%8),this.length++}},ag=e,ag}var sg,sx;function GD(){if(sx)return sg;sx=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,r,a,s){const o=t*this.size+r;this.data[o]=a,s&&(this.reservedBit[o]=!0)},e.prototype.get=function(t,r){return this.data[t*this.size+r]},e.prototype.xor=function(t,r,a){this.data[t*this.size+r]^=a},e.prototype.isReserved=function(t,r){return this.reservedBit[t*this.size+r]},sg=e,sg}var lg={},lx;function QD(){return lx||(lx=1,(function(e){const t=bs().getSymbolSize;e.getRowColCoords=function(a){if(a===1)return[];const s=Math.floor(a/7)+2,o=t(a),c=o===145?26:Math.ceil((o-13)/(2*s-2))*2,f=[o-7];for(let d=1;d<s-1;d++)f[d]=f[d-1]-c;return f.push(6),f.reverse()},e.getPositions=function(a){const s=[],o=e.getRowColCoords(a),c=o.length;for(let f=0;f<c;f++)for(let d=0;d<c;d++)f===0&&d===0||f===0&&d===c-1||f===c-1&&d===0||s.push([o[f],o[d]]);return s}})(lg)),lg}var og={},ox;function XD(){if(ox)return og;ox=1;const e=bs().getSymbolSize,t=7;return og.getPositions=function(a){const s=e(a);return[[0,0],[s-t,0],[0,s-t]]},og}var ug={},ux;function KD(){return ux||(ux=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(s){return s!=null&&s!==""&&!isNaN(s)&&s>=0&&s<=7},e.from=function(s){return e.isValid(s)?parseInt(s,10):void 0},e.getPenaltyN1=function(s){const o=s.size;let c=0,f=0,d=0,y=null,p=null;for(let g=0;g<o;g++){f=d=0,y=p=null;for(let v=0;v<o;v++){let b=s.get(g,v);b===y?f++:(f>=5&&(c+=t.N1+(f-5)),y=b,f=1),b=s.get(v,g),b===p?d++:(d>=5&&(c+=t.N1+(d-5)),p=b,d=1)}f>=5&&(c+=t.N1+(f-5)),d>=5&&(c+=t.N1+(d-5))}return c},e.getPenaltyN2=function(s){const o=s.size;let c=0;for(let f=0;f<o-1;f++)for(let d=0;d<o-1;d++){const y=s.get(f,d)+s.get(f,d+1)+s.get(f+1,d)+s.get(f+1,d+1);(y===4||y===0)&&c++}return c*t.N2},e.getPenaltyN3=function(s){const o=s.size;let c=0,f=0,d=0;for(let y=0;y<o;y++){f=d=0;for(let p=0;p<o;p++)f=f<<1&2047|s.get(y,p),p>=10&&(f===1488||f===93)&&c++,d=d<<1&2047|s.get(p,y),p>=10&&(d===1488||d===93)&&c++}return c*t.N3},e.getPenaltyN4=function(s){let o=0;const c=s.data.length;for(let d=0;d<c;d++)o+=s.data[d];return Math.abs(Math.ceil(o*100/c/5)-10)*t.N4};function r(a,s,o){switch(a){case e.Patterns.PATTERN000:return(s+o)%2===0;case e.Patterns.PATTERN001:return s%2===0;case e.Patterns.PATTERN010:return o%3===0;case e.Patterns.PATTERN011:return(s+o)%3===0;case e.Patterns.PATTERN100:return(Math.floor(s/2)+Math.floor(o/3))%2===0;case e.Patterns.PATTERN101:return s*o%2+s*o%3===0;case e.Patterns.PATTERN110:return(s*o%2+s*o%3)%2===0;case e.Patterns.PATTERN111:return(s*o%3+(s+o)%2)%2===0;default:throw new Error("bad maskPattern:"+a)}}e.applyMask=function(s,o){const c=o.size;for(let f=0;f<c;f++)for(let d=0;d<c;d++)o.isReserved(d,f)||o.xor(d,f,r(s,d,f))},e.getBestMask=function(s,o){const c=Object.keys(e.Patterns).length;let f=0,d=1/0;for(let y=0;y<c;y++){o(y),e.applyMask(y,s);const p=e.getPenaltyN1(s)+e.getPenaltyN2(s)+e.getPenaltyN3(s)+e.getPenaltyN4(s);e.applyMask(y,s),p<d&&(d=p,f=y)}return f}})(ug)),ug}var Sf={},cx;function nC(){if(cx)return Sf;cx=1;const e=u0(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Sf.getBlocksCount=function(s,o){switch(o){case e.L:return t[(s-1)*4+0];case e.M:return t[(s-1)*4+1];case e.Q:return t[(s-1)*4+2];case e.H:return t[(s-1)*4+3];default:return}},Sf.getTotalCodewordsCount=function(s,o){switch(o){case e.L:return r[(s-1)*4+0];case e.M:return r[(s-1)*4+1];case e.Q:return r[(s-1)*4+2];case e.H:return r[(s-1)*4+3];default:return}},Sf}var cg={},Ko={},fx;function JD(){if(fx)return Ko;fx=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let a=1;for(let s=0;s<255;s++)e[s]=a,t[a]=s,a<<=1,a&256&&(a^=285);for(let s=255;s<512;s++)e[s]=e[s-255]})(),Ko.log=function(a){if(a<1)throw new Error("log("+a+")");return t[a]},Ko.exp=function(a){return e[a]},Ko.mul=function(a,s){return a===0||s===0?0:e[t[a]+t[s]]},Ko}var dx;function WD(){return dx||(dx=1,(function(e){const t=JD();e.mul=function(a,s){const o=new Uint8Array(a.length+s.length-1);for(let c=0;c<a.length;c++)for(let f=0;f<s.length;f++)o[c+f]^=t.mul(a[c],s[f]);return o},e.mod=function(a,s){let o=new Uint8Array(a);for(;o.length-s.length>=0;){const c=o[0];for(let d=0;d<s.length;d++)o[d]^=t.mul(s[d],c);let f=0;for(;f<o.length&&o[f]===0;)f++;o=o.slice(f)}return o},e.generateECPolynomial=function(a){let s=new Uint8Array([1]);for(let o=0;o<a;o++)s=e.mul(s,new Uint8Array([1,t.exp(o)]));return s}})(cg)),cg}var fg,hx;function e7(){if(hx)return fg;hx=1;const e=WD();function t(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(a){this.degree=a,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(a){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(a.length+this.degree);s.set(a);const o=e.mod(s,this.genPoly),c=this.degree-o.length;if(c>0){const f=new Uint8Array(this.degree);return f.set(o,c),f}return o},fg=t,fg}var dg={},hg={},yg={},yx;function rC(){return yx||(yx=1,yg.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),yg}var Rr={},mx;function iC(){if(mx)return Rr;mx=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const a="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+`)(?:.|[\r
719
- ]))+`;Rr.KANJI=new RegExp(r,"g"),Rr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Rr.BYTE=new RegExp(a,"g"),Rr.NUMERIC=new RegExp(e,"g"),Rr.ALPHANUMERIC=new RegExp(t,"g");const s=new RegExp("^"+r+"$"),o=new RegExp("^"+e+"$"),c=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Rr.testKanji=function(d){return s.test(d)},Rr.testNumeric=function(d){return o.test(d)},Rr.testAlphanumeric=function(d){return c.test(d)},Rr}var gx;function _s(){return gx||(gx=1,(function(e){const t=rC(),r=iC();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,c){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(c))throw new Error("Invalid version: "+c);return c>=1&&c<10?o.ccBits[0]:c<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return r.testNumeric(o)?e.NUMERIC:r.testAlphanumeric(o)?e.ALPHANUMERIC:r.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function a(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+s)}}e.from=function(o,c){if(e.isValid(o))return o;try{return a(o)}catch{return c}}})(hg)),hg}var px;function t7(){return px||(px=1,(function(e){const t=bs(),r=nC(),a=u0(),s=_s(),o=rC(),c=7973,f=t.getBCHDigit(c);function d(v,b,S){for(let _=1;_<=40;_++)if(b<=e.getCapacity(_,S,v))return _}function y(v,b){return s.getCharCountIndicator(v,b)+4}function p(v,b){let S=0;return v.forEach(function(_){const w=y(_.mode,b);S+=w+_.getBitsLength()}),S}function g(v,b){for(let S=1;S<=40;S++)if(p(v,S)<=e.getCapacity(S,b,s.MIXED))return S}e.from=function(b,S){return o.isValid(b)?parseInt(b,10):S},e.getCapacity=function(b,S,_){if(!o.isValid(b))throw new Error("Invalid QR Code version");typeof _>"u"&&(_=s.BYTE);const w=t.getSymbolTotalCodewords(b),M=r.getTotalCodewordsCount(b,S),C=(w-M)*8;if(_===s.MIXED)return C;const E=C-y(_,b);switch(_){case s.NUMERIC:return Math.floor(E/10*3);case s.ALPHANUMERIC:return Math.floor(E/11*2);case s.KANJI:return Math.floor(E/13);case s.BYTE:default:return Math.floor(E/8)}},e.getBestVersionForData=function(b,S){let _;const w=a.from(S,a.M);if(Array.isArray(b)){if(b.length>1)return g(b,w);if(b.length===0)return 1;_=b[0]}else _=b;return d(_.mode,_.getLength(),w)},e.getEncodedBits=function(b){if(!o.isValid(b)||b<7)throw new Error("Invalid QR Code version");let S=b<<12;for(;t.getBCHDigit(S)-f>=0;)S^=c<<t.getBCHDigit(S)-f;return b<<12|S}})(dg)),dg}var mg={},vx;function n7(){if(vx)return mg;vx=1;const e=bs(),t=1335,r=21522,a=e.getBCHDigit(t);return mg.getEncodedBits=function(o,c){const f=o.bit<<3|c;let d=f<<10;for(;e.getBCHDigit(d)-a>=0;)d^=t<<e.getBCHDigit(d)-a;return(f<<10|d)^r},mg}var gg={},pg,bx;function r7(){if(bx)return pg;bx=1;const e=_s();function t(r){this.mode=e.NUMERIC,this.data=r.toString()}return t.getBitsLength=function(a){return 10*Math.floor(a/3)+(a%3?a%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(a){let s,o,c;for(s=0;s+3<=this.data.length;s+=3)o=this.data.substr(s,3),c=parseInt(o,10),a.put(c,10);const f=this.data.length-s;f>0&&(o=this.data.substr(s),c=parseInt(o,10),a.put(c,f*3+1))},pg=t,pg}var vg,_x;function i7(){if(_x)return vg;_x=1;const e=_s(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function r(a){this.mode=e.ALPHANUMERIC,this.data=a}return r.getBitsLength=function(s){return 11*Math.floor(s/2)+6*(s%2)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(s){let o;for(o=0;o+2<=this.data.length;o+=2){let c=t.indexOf(this.data[o])*45;c+=t.indexOf(this.data[o+1]),s.put(c,11)}this.data.length%2&&s.put(t.indexOf(this.data[o]),6)},vg=r,vg}var bg,Sx;function a7(){if(Sx)return bg;Sx=1;const e=_s();function t(r){this.mode=e.BYTE,typeof r=="string"?this.data=new TextEncoder().encode(r):this.data=new Uint8Array(r)}return t.getBitsLength=function(a){return a*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){for(let a=0,s=this.data.length;a<s;a++)r.put(this.data[a],8)},bg=t,bg}var _g,xx;function s7(){if(xx)return _g;xx=1;const e=_s(),t=bs();function r(a){this.mode=e.KANJI,this.data=a}return r.getBitsLength=function(s){return s*13},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(a){let s;for(s=0;s<this.data.length;s++){let o=t.toSJIS(this.data[s]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[s]+`
720
- Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),a.put(o,13)}},_g=r,_g}var Sg={exports:{}},wx;function l7(){return wx||(wx=1,(function(e){var t={single_source_shortest_paths:function(r,a,s){var o={},c={};c[a]=0;var f=t.PriorityQueue.make();f.push(a,0);for(var d,y,p,g,v,b,S,_,w;!f.empty();){d=f.pop(),y=d.value,g=d.cost,v=r[y]||{};for(p in v)v.hasOwnProperty(p)&&(b=v[p],S=g+b,_=c[p],w=typeof c[p]>"u",(w||_>S)&&(c[p]=S,f.push(p,S),o[p]=y))}if(typeof s<"u"&&typeof c[s]>"u"){var M=["Could not find a path from ",a," to ",s,"."].join("");throw new Error(M)}return o},extract_shortest_path_from_predecessor_list:function(r,a){for(var s=[],o=a;o;)s.push(o),r[o],o=r[o];return s.reverse(),s},find_path:function(r,a,s){var o=t.single_source_shortest_paths(r,a,s);return t.extract_shortest_path_from_predecessor_list(o,s)},PriorityQueue:{make:function(r){var a=t.PriorityQueue,s={},o;r=r||{};for(o in a)a.hasOwnProperty(o)&&(s[o]=a[o]);return s.queue=[],s.sorter=r.sorter||a.default_sorter,s},default_sorter:function(r,a){return r.cost-a.cost},push:function(r,a){var s={value:r,cost:a};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Sg)),Sg.exports}var Ex;function o7(){return Ex||(Ex=1,(function(e){const t=_s(),r=r7(),a=i7(),s=a7(),o=s7(),c=iC(),f=bs(),d=l7();function y(M){return unescape(encodeURIComponent(M)).length}function p(M,C,E){const k=[];let z;for(;(z=M.exec(E))!==null;)k.push({data:z[0],index:z.index,mode:C,length:z[0].length});return k}function g(M){const C=p(c.NUMERIC,t.NUMERIC,M),E=p(c.ALPHANUMERIC,t.ALPHANUMERIC,M);let k,z;return f.isKanjiModeEnabled()?(k=p(c.BYTE,t.BYTE,M),z=p(c.KANJI,t.KANJI,M)):(k=p(c.BYTE_KANJI,t.BYTE,M),z=[]),C.concat(E,k,z).sort(function(D,T){return D.index-T.index}).map(function(D){return{data:D.data,mode:D.mode,length:D.length}})}function v(M,C){switch(C){case t.NUMERIC:return r.getBitsLength(M);case t.ALPHANUMERIC:return a.getBitsLength(M);case t.KANJI:return o.getBitsLength(M);case t.BYTE:return s.getBitsLength(M)}}function b(M){return M.reduce(function(C,E){const k=C.length-1>=0?C[C.length-1]:null;return k&&k.mode===E.mode?(C[C.length-1].data+=E.data,C):(C.push(E),C)},[])}function S(M){const C=[];for(let E=0;E<M.length;E++){const k=M[E];switch(k.mode){case t.NUMERIC:C.push([k,{data:k.data,mode:t.ALPHANUMERIC,length:k.length},{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.ALPHANUMERIC:C.push([k,{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.KANJI:C.push([k,{data:k.data,mode:t.BYTE,length:y(k.data)}]);break;case t.BYTE:C.push([{data:k.data,mode:t.BYTE,length:y(k.data)}])}}return C}function _(M,C){const E={},k={start:{}};let z=["start"];for(let N=0;N<M.length;N++){const D=M[N],T=[];for(let L=0;L<D.length;L++){const Q=D[L],j=""+N+L;T.push(j),E[j]={node:Q,lastCount:0},k[j]={};for(let B=0;B<z.length;B++){const $=z[B];E[$]&&E[$].node.mode===Q.mode?(k[$][j]=v(E[$].lastCount+Q.length,Q.mode)-v(E[$].lastCount,Q.mode),E[$].lastCount+=Q.length):(E[$]&&(E[$].lastCount=Q.length),k[$][j]=v(Q.length,Q.mode)+4+t.getCharCountIndicator(Q.mode,C))}}z=T}for(let N=0;N<z.length;N++)k[z[N]].end=0;return{map:k,table:E}}function w(M,C){let E;const k=t.getBestModeForData(M);if(E=t.from(C,k),E!==t.BYTE&&E.bit<k.bit)throw new Error('"'+M+'" cannot be encoded with mode '+t.toString(E)+`.
721
- Suggested mode is: `+t.toString(k));switch(E===t.KANJI&&!f.isKanjiModeEnabled()&&(E=t.BYTE),E){case t.NUMERIC:return new r(M);case t.ALPHANUMERIC:return new a(M);case t.KANJI:return new o(M);case t.BYTE:return new s(M)}}e.fromArray=function(C){return C.reduce(function(E,k){return typeof k=="string"?E.push(w(k,null)):k.data&&E.push(w(k.data,k.mode)),E},[])},e.fromString=function(C,E){const k=g(C,f.isKanjiModeEnabled()),z=S(k),N=_(z,E),D=d.find_path(N.map,"start","end"),T=[];for(let L=1;L<D.length-1;L++)T.push(N.table[D[L]].node);return e.fromArray(b(T))},e.rawSplit=function(C){return e.fromArray(g(C,f.isKanjiModeEnabled()))}})(gg)),gg}var Mx;function u7(){if(Mx)return rg;Mx=1;const e=bs(),t=u0(),r=ZD(),a=GD(),s=QD(),o=XD(),c=KD(),f=nC(),d=e7(),y=t7(),p=n7(),g=_s(),v=o7();function b(N,D){const T=N.size,L=o.getPositions(D);for(let Q=0;Q<L.length;Q++){const j=L[Q][0],B=L[Q][1];for(let $=-1;$<=7;$++)if(!(j+$<=-1||T<=j+$))for(let G=-1;G<=7;G++)B+G<=-1||T<=B+G||($>=0&&$<=6&&(G===0||G===6)||G>=0&&G<=6&&($===0||$===6)||$>=2&&$<=4&&G>=2&&G<=4?N.set(j+$,B+G,!0,!0):N.set(j+$,B+G,!1,!0))}}function S(N){const D=N.size;for(let T=8;T<D-8;T++){const L=T%2===0;N.set(T,6,L,!0),N.set(6,T,L,!0)}}function _(N,D){const T=s.getPositions(D);for(let L=0;L<T.length;L++){const Q=T[L][0],j=T[L][1];for(let B=-2;B<=2;B++)for(let $=-2;$<=2;$++)B===-2||B===2||$===-2||$===2||B===0&&$===0?N.set(Q+B,j+$,!0,!0):N.set(Q+B,j+$,!1,!0)}}function w(N,D){const T=N.size,L=y.getEncodedBits(D);let Q,j,B;for(let $=0;$<18;$++)Q=Math.floor($/3),j=$%3+T-8-3,B=(L>>$&1)===1,N.set(Q,j,B,!0),N.set(j,Q,B,!0)}function M(N,D,T){const L=N.size,Q=p.getEncodedBits(D,T);let j,B;for(j=0;j<15;j++)B=(Q>>j&1)===1,j<6?N.set(j,8,B,!0):j<8?N.set(j+1,8,B,!0):N.set(L-15+j,8,B,!0),j<8?N.set(8,L-j-1,B,!0):j<9?N.set(8,15-j-1+1,B,!0):N.set(8,15-j-1,B,!0);N.set(L-8,8,1,!0)}function C(N,D){const T=N.size;let L=-1,Q=T-1,j=7,B=0;for(let $=T-1;$>0;$-=2)for($===6&&$--;;){for(let G=0;G<2;G++)if(!N.isReserved(Q,$-G)){let re=!1;B<D.length&&(re=(D[B]>>>j&1)===1),N.set(Q,$-G,re),j--,j===-1&&(B++,j=7)}if(Q+=L,Q<0||T<=Q){Q-=L,L=-L;break}}}function E(N,D,T){const L=new r;T.forEach(function(G){L.put(G.mode.bit,4),L.put(G.getLength(),g.getCharCountIndicator(G.mode,N)),G.write(L)});const Q=e.getSymbolTotalCodewords(N),j=f.getTotalCodewordsCount(N,D),B=(Q-j)*8;for(L.getLengthInBits()+4<=B&&L.put(0,4);L.getLengthInBits()%8!==0;)L.putBit(0);const $=(B-L.getLengthInBits())/8;for(let G=0;G<$;G++)L.put(G%2?17:236,8);return k(L,N,D)}function k(N,D,T){const L=e.getSymbolTotalCodewords(D),Q=f.getTotalCodewordsCount(D,T),j=L-Q,B=f.getBlocksCount(D,T),$=L%B,G=B-$,re=Math.floor(L/B),U=Math.floor(j/B),F=U+1,Z=re-U,K=new d(Z);let J=0;const O=new Array(B),I=new Array(B);let ae=0;const ce=new Uint8Array(N.buffer);for(let he=0;he<B;he++){const Ue=he<G?U:F;O[he]=ce.slice(J,J+Ue),I[he]=K.encode(O[he]),J+=Ue,ae=Math.max(ae,Ue)}const de=new Uint8Array(L);let me=0,be,ye;for(be=0;be<ae;be++)for(ye=0;ye<B;ye++)be<O[ye].length&&(de[me++]=O[ye][be]);for(be=0;be<Z;be++)for(ye=0;ye<B;ye++)de[me++]=I[ye][be];return de}function z(N,D,T,L){let Q;if(Array.isArray(N))Q=v.fromArray(N);else if(typeof N=="string"){let re=D;if(!re){const U=v.rawSplit(N);re=y.getBestVersionForData(U,T)}Q=v.fromString(N,re||40)}else throw new Error("Invalid data");const j=y.getBestVersionForData(Q,T);if(!j)throw new Error("The amount of data is too big to be stored in a QR Code");if(!D)D=j;else if(D<j)throw new Error(`
722
- The chosen QR Code version cannot contain this amount of data.
723
- Minimum version required to store current data is: `+j+`.
724
- `);const B=E(D,T,Q),$=e.getSymbolSize(D),G=new a($);return b(G,D),S(G),_(G,D),M(G,T,0),D>=7&&w(G,D),C(G,B),isNaN(L)&&(L=c.getBestMask(G,M.bind(null,G,T))),c.applyMask(L,G),M(G,T,L),{modules:G,version:D,errorCorrectionLevel:T,maskPattern:L,segments:Q}}return rg.create=function(D,T){if(typeof D>"u"||D==="")throw new Error("No input text");let L=t.M,Q,j;return typeof T<"u"&&(L=t.from(T.errorCorrectionLevel,t.M),Q=y.from(T.version),j=c.from(T.maskPattern),T.toSJISFunc&&e.setToSJISFunction(T.toSJISFunc)),z(D,Q,L,j)},rg}var xg={},wg={},Cx;function aC(){return Cx||(Cx=1,(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let a=r.slice().replace("#","").split("");if(a.length<3||a.length===5||a.length>8)throw new Error("Invalid hex color: "+r);(a.length===3||a.length===4)&&(a=Array.prototype.concat.apply([],a.map(function(o){return[o,o]}))),a.length===6&&a.push("F","F");const s=parseInt(a.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+a.slice(0,6).join("")}}e.getOptions=function(a){a||(a={}),a.color||(a.color={});const s=typeof a.margin>"u"||a.margin===null||a.margin<0?4:a.margin,o=a.width&&a.width>=21?a.width:void 0,c=a.scale||4;return{width:o,scale:o?4:c,margin:s,color:{dark:t(a.color.dark||"#000000ff"),light:t(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},e.getScale=function(a,s){return s.width&&s.width>=a+s.margin*2?s.width/(a+s.margin*2):s.scale},e.getImageWidth=function(a,s){const o=e.getScale(a,s);return Math.floor((a+s.margin*2)*o)},e.qrToImageData=function(a,s,o){const c=s.modules.size,f=s.modules.data,d=e.getScale(c,o),y=Math.floor((c+o.margin*2)*d),p=o.margin*d,g=[o.color.light,o.color.dark];for(let v=0;v<y;v++)for(let b=0;b<y;b++){let S=(v*y+b)*4,_=o.color.light;if(v>=p&&b>=p&&v<y-p&&b<y-p){const w=Math.floor((v-p)/d),M=Math.floor((b-p)/d);_=g[f[w*c+M]?1:0]}a[S++]=_.r,a[S++]=_.g,a[S++]=_.b,a[S]=_.a}}})(wg)),wg}var kx;function c7(){return kx||(kx=1,(function(e){const t=aC();function r(s,o,c){s.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=c,o.width=c,o.style.height=c+"px",o.style.width=c+"px"}function a(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(o,c,f){let d=f,y=c;typeof d>"u"&&(!c||!c.getContext)&&(d=c,c=void 0),c||(y=a()),d=t.getOptions(d);const p=t.getImageWidth(o.modules.size,d),g=y.getContext("2d"),v=g.createImageData(p,p);return t.qrToImageData(v.data,o,d),r(g,y,p),g.putImageData(v,0,0),y},e.renderToDataURL=function(o,c,f){let d=f;typeof d>"u"&&(!c||!c.getContext)&&(d=c,c=void 0),d||(d={});const y=e.render(o,c,d),p=d.type||"image/png",g=d.rendererOpts||{};return y.toDataURL(p,g.quality)}})(xg)),xg}var Eg={},Ax;function f7(){if(Ax)return Eg;Ax=1;const e=aC();function t(s,o){const c=s.a/255,f=o+'="'+s.hex+'"';return c<1?f+" "+o+'-opacity="'+c.toFixed(2).slice(1)+'"':f}function r(s,o,c){let f=s+o;return typeof c<"u"&&(f+=" "+c),f}function a(s,o,c){let f="",d=0,y=!1,p=0;for(let g=0;g<s.length;g++){const v=Math.floor(g%o),b=Math.floor(g/o);!v&&!y&&(y=!0),s[g]?(p++,g>0&&v>0&&s[g-1]||(f+=y?r("M",v+c,.5+b+c):r("m",d,0),d=0,y=!1),v+1<o&&s[g+1]||(f+=r("h",p),p=0)):d++}return f}return Eg.render=function(o,c,f){const d=e.getOptions(c),y=o.modules.size,p=o.modules.data,g=y+d.margin*2,v=d.color.light.a?"<path "+t(d.color.light,"fill")+' d="M0 0h'+g+"v"+g+'H0z"/>':"",b="<path "+t(d.color.dark,"stroke")+' d="'+a(p,y,d.margin)+'"/>',S='viewBox="0 0 '+g+" "+g+'"',w='<svg xmlns="http://www.w3.org/2000/svg" '+(d.width?'width="'+d.width+'" height="'+d.width+'" ':"")+S+' shape-rendering="crispEdges">'+v+b+`</svg>
725
- `;return typeof f=="function"&&f(null,w),w},Eg}var Tx;function d7(){if(Tx)return cl;Tx=1;const e=YD(),t=u7(),r=c7(),a=f7();function s(o,c,f,d,y){const p=[].slice.call(arguments,1),g=p.length,v=typeof p[g-1]=="function";if(!v&&!e())throw new Error("Callback required as last argument");if(v){if(g<2)throw new Error("Too few arguments provided");g===2?(y=f,f=c,c=d=void 0):g===3&&(c.getContext&&typeof y>"u"?(y=d,d=void 0):(y=d,d=f,f=c,c=void 0))}else{if(g<1)throw new Error("Too few arguments provided");return g===1?(f=c,c=d=void 0):g===2&&!c.getContext&&(d=f,f=c,c=void 0),new Promise(function(b,S){try{const _=t.create(f,d);b(o(_,c,d))}catch(_){S(_)}})}try{const b=t.create(f,d);y(null,o(b,c,d))}catch(b){y(b)}}return cl.create=t.create,cl.toCanvas=s.bind(null,r.render),cl.toDataURL=s.bind(null,r.renderToDataURL),cl.toString=s.bind(null,function(o,c,f){return a.render(o,f)}),cl}var h7=d7();const Vj=Er(h7);function fl(e,t,r){let a=r.initialDeps??[],s,o=!0;function c(){var f,d,y;let p;r.key&&((f=r.debug)!=null&&f.call(r))&&(p=Date.now());const g=e();if(!(g.length!==a.length||g.some((S,_)=>a[_]!==S)))return s;a=g;let b;if(r.key&&((d=r.debug)!=null&&d.call(r))&&(b=Date.now()),s=t(...g),r.key&&((y=r.debug)!=null&&y.call(r))){const S=Math.round((Date.now()-p)*100)/100,_=Math.round((Date.now()-b)*100)/100,w=_/16,M=(C,E)=>{for(C=String(C);C.length<E;)C=" "+C;return C};console.info(`%c⏱ ${M(_,5)} /${M(S,5)} ms`,`
726
- font-size: .6rem;
727
- font-weight: bold;
728
- color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,r==null?void 0:r.key)}return r!=null&&r.onChange&&!(o&&r.skipInitialOnChange)&&r.onChange(s),o=!1,s}return c.updateDeps=f=>{a=f},c}function Rx(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const y7=(e,t)=>Math.abs(e-t)<1.01,m7=(e,t,r)=>{let a;return function(...s){e.clearTimeout(a),a=e.setTimeout(()=>t.apply(this,s),r)}},Nx=e=>{const{offsetWidth:t,offsetHeight:r}=e;return{width:t,height:r}},g7=e=>e,p7=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let s=t;s<=r;s++)a.push(s);return a},v7=(e,t)=>{const r=e.scrollElement;if(!r)return;const a=e.targetWindow;if(!a)return;const s=c=>{const{width:f,height:d}=c;t({width:Math.round(f),height:Math.round(d)})};if(s(Nx(r)),!a.ResizeObserver)return()=>{};const o=new a.ResizeObserver(c=>{const f=()=>{const d=c[0];if(d!=null&&d.borderBoxSize){const y=d.borderBoxSize[0];if(y){s({width:y.inlineSize,height:y.blockSize});return}}s(Nx(r))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return o.observe(r,{box:"border-box"}),()=>{o.unobserve(r)}},Ox={passive:!0},zx=typeof window>"u"?!0:"onscrollend"in window,b7=(e,t)=>{const r=e.scrollElement;if(!r)return;const a=e.targetWindow;if(!a)return;let s=0;const o=e.options.useScrollendEvent&&zx?()=>{}:m7(a,()=>{t(s,!1)},e.options.isScrollingResetDelay),c=p=>()=>{const{horizontal:g,isRtl:v}=e.options;s=g?r.scrollLeft*(v&&-1||1):r.scrollTop,o(),t(s,p)},f=c(!0),d=c(!1);r.addEventListener("scroll",f,Ox);const y=e.options.useScrollendEvent&&zx;return y&&r.addEventListener("scrollend",d,Ox),()=>{r.removeEventListener("scroll",f),y&&r.removeEventListener("scrollend",d)}},_7=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const a=t.borderBoxSize[0];if(a)return Math.round(a[r.options.horizontal?"inlineSize":"blockSize"])}return e[r.options.horizontal?"offsetWidth":"offsetHeight"]},S7=(e,{adjustments:t=0,behavior:r},a)=>{var s,o;const c=e+t;(o=(s=a.scrollElement)==null?void 0:s.scrollTo)==null||o.call(s,{[a.options.horizontal?"left":"top"]:c,behavior:r})};class x7{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var r,a,s;return((s=(a=(r=this.targetWindow)==null?void 0:r.performance)==null?void 0:a.now)==null?void 0:s.call(a))??Date.now()},this.observer=(()=>{let r=null;const a=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(s=>{s.forEach(o=>{const c=()=>{const f=o.target,d=this.indexFromElement(f);if(!f.isConnected){this.observer.unobserve(f);return}this.shouldMeasureDuringScroll(d)&&this.resizeItem(d,this.options.measureElement(f,o,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var s;(s=a())==null||s.disconnect(),r=null},observe:s=>{var o;return(o=a())==null?void 0:o.observe(s,{box:"border-box"})},unobserve:s=>{var o;return(o=a())==null?void 0:o.unobserve(s)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([a,s])=>{typeof s>"u"&&delete r[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:g7,rangeExtractor:p7,onChange:()=>{},measureElement:_7,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...r}},this.notify=r=>{var a,s;(s=(a=this.options).onChange)==null||s.call(a,this,r)},this.maybeNotify=fl(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const a=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==a){if(this.cleanup(),!a){this.maybeNotify();return}this.scrollElement=a,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=o,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,a)=>{const s=new Map,o=new Map;for(let c=a-1;c>=0;c--){const f=r[c];if(s.has(f.lane))continue;const d=o.get(f.lane);if(d==null||f.end>d.end?o.set(f.lane,f):f.end<d.end&&s.set(f.lane,!0),s.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=fl(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(r,a,s,o,c,f)=>(this.prevLanes!==void 0&&this.prevLanes!==f&&(this.lanesChangedFlag=!0),this.prevLanes=f,this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:a,scrollMargin:s,getItemKey:o,enabled:c,lanes:f}),{key:!1}),this.getMeasurements=fl(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:a,scrollMargin:s,getItemKey:o,enabled:c,lanes:f},d)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>r)for(const v of this.laneAssignments.keys())v>=r&&this.laneAssignments.delete(v);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(v=>{this.itemSizeCache.set(v.key,v.size)}));const y=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===r&&(this.lanesSettling=!1);const p=this.measurementsCache.slice(0,y),g=new Array(f).fill(void 0);for(let v=0;v<y;v++){const b=p[v];b&&(g[b.lane]=v)}for(let v=y;v<r;v++){const b=o(v),S=this.laneAssignments.get(v);let _,w;if(S!==void 0&&this.options.lanes>1){_=S;const k=g[_],z=k!==void 0?p[k]:void 0;w=z?z.end+this.options.gap:a+s}else{const k=this.options.lanes===1?p[v-1]:this.getFurthestMeasurement(p,v);w=k?k.end+this.options.gap:a+s,_=k?k.lane:v%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(v,_)}const M=d.get(b),C=typeof M=="number"?M:this.options.estimateSize(v),E=w+C;p[v]={index:v,start:w,size:C,end:E,key:b,lane:_},g[_]=v}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=fl(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(r,a,s,o)=>this.range=r.length>0&&a>0?w7({measurements:r,outerSize:a,scrollOffset:s,lanes:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=fl(()=>{let r=null,a=null;const s=this.calculateRange();return s&&(r=s.startIndex,a=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,r,a]),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,a]},(r,a,s,o,c)=>o===null||c===null?[]:r({startIndex:o,endIndex:c,overscan:a,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=r=>{const a=this.options.indexAttribute,s=r.getAttribute(a);return s?parseInt(s,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=r=>{var a;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const s=this.scrollState.index??((a=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:a.index);if(s!==void 0&&this.range){const o=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),c=Math.max(0,s-o),f=Math.min(this.options.count-1,s+o);return r>=c&&r<=f}return!0},this.measureElement=r=>{if(!r){this.elementsCache.forEach((c,f)=>{c.isConnected||(this.observer.unobserve(c),this.elementsCache.delete(f))});return}const a=this.indexFromElement(r),s=this.options.getItemKey(a),o=this.elementsCache.get(s);o!==r&&(o&&this.observer.unobserve(o),this.observer.observe(r),this.elementsCache.set(s,r)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(a)&&this.resizeItem(a,this.options.measureElement(r,void 0,this))},this.resizeItem=(r,a)=>{var s;const o=this.measurementsCache[r];if(!o)return;const c=this.itemSizeCache.get(o.key)??o.size,f=a-c;f!==0&&(((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,f,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=f,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,a)),this.notify(!1))},this.getVirtualItems=fl(()=>[this.getVirtualIndexes(),this.getMeasurements()],(r,a)=>{const s=[];for(let o=0,c=r.length;o<c;o++){const f=r[o],d=a[f];s.push(d)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const a=this.getMeasurements();if(a.length!==0)return Rx(a[sC(0,a.length-1,s=>Rx(a[s]).start,r)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const r=this.scrollElement.document.documentElement;return this.options.horizontal?r.scrollWidth-this.scrollElement.innerWidth:r.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(r,a,s=0)=>{if(!this.scrollElement)return 0;const o=this.getSize(),c=this.getScrollOffset();a==="auto"&&(a=r>=c+o?"end":"start"),a==="center"?r+=(s-o)/2:a==="end"&&(r-=o);const f=this.getMaxScrollOffset();return Math.max(Math.min(f,r),0)},this.getOffsetForIndex=(r,a="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const s=this.getSize(),o=this.getScrollOffset(),c=this.measurementsCache[r];if(!c)return;if(a==="auto")if(c.end>=o+s-this.options.scrollPaddingEnd)a="end";else if(c.start<=o+this.options.scrollPaddingStart)a="start";else return[o,a];if(a==="end"&&r===this.options.count-1)return[this.getMaxScrollOffset(),a];const f=a==="end"?c.end+this.options.scrollPaddingEnd:c.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,a,c.size),a]},this.scrollToOffset=(r,{align:a="start",behavior:s="auto"}={})=>{const o=this.getOffsetForAlignment(r,a),c=this.now();this.scrollState={index:null,align:a,behavior:s,startedAt:c,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToIndex=(r,{align:a="auto",behavior:s="auto"}={})=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.getOffsetForIndex(r,a);if(!o)return;const[c,f]=o,d=this.now();this.scrollState={index:r,align:f,behavior:s,startedAt:d,lastTargetOffset:c,stableFrames:0},this._scrollToOffset(c,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(r,{behavior:a="auto"}={})=>{const s=this.getScrollOffset()+r,o=this.now();this.scrollState={index:null,align:"start",behavior:a,startedAt:o,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var r;const a=this.getMeasurements();let s;if(a.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((r=a[a.length-1])==null?void 0:r.end)??0;else{const o=Array(this.options.lanes).fill(null);let c=a.length-1;for(;c>=0&&o.some(f=>f===null);){const f=a[c];o[f.lane]===null&&(o[f.lane]=f.end),c--}s=Math.max(...o.filter(f=>f!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:a,behavior:s})=>{this.options.scrollToFn(r,{behavior:s,adjustments:a},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const a=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,s=a?a[0]:this.scrollState.lastTargetOffset,o=1,c=s!==this.scrollState.lastTargetOffset;if(!c&&y7(s,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=o){this.scrollState=null;return}}else this.scrollState.stableFrames=0,c&&(this.scrollState.lastTargetOffset=s,this.scrollState.behavior="auto",this._scrollToOffset(s,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const sC=(e,t,r,a)=>{for(;e<=t;){const s=(e+t)/2|0,o=r(s);if(o<a)e=s+1;else if(o>a)t=s-1;else return s}return e>0?e-1:0};function w7({measurements:e,outerSize:t,scrollOffset:r,lanes:a}){const s=e.length-1,o=d=>e[d].start;if(e.length<=a)return{startIndex:0,endIndex:s};let c=sC(0,s,o,r),f=c;if(a===1)for(;f<s&&e[f].end<r+t;)f++;else if(a>1){const d=Array(a).fill(0);for(;f<s&&d.some(p=>p<r+t);){const p=e[f];d[p.lane]=p.end,f++}const y=Array(a).fill(r+t);for(;c>=0&&y.some(p=>p>=r);){const p=e[c];y[p.lane]=p.start,c--}c=Math.max(0,c-c%a),f=Math.min(s,f+(a-1-f%a))}return{startIndex:c,endIndex:f}}const Dx=typeof document<"u"?R.useLayoutEffect:R.useEffect;function E7({useFlushSync:e=!0,...t}){const r=R.useReducer(()=>({}),{})[1],a={...t,onChange:(o,c)=>{var f;e&&c?Tw.flushSync(r):r(),(f=t.onChange)==null||f.call(t,o,c)}},[s]=R.useState(()=>new x7(a));return s.setOptions(a),Dx(()=>s._didMount(),[]),Dx(()=>s._willUpdate()),s}function Ij(e){return E7({observeElementRect:v7,observeElementOffset:b7,scrollToFn:S7,...e})}export{wL as $,Bl as A,Mj as B,wj as C,Nj as D,zj as E,v6 as F,q6 as G,jt as H,Oj as I,uj as J,BL as K,AB as L,CB as M,FL as N,MB as O,Tj as P,xB as Q,k7 as R,LB as S,VL as T,eB as U,UL as V,ZB as W,Tp as X,OB as Y,XL as Z,HA as _,Tw as a,JL as a$,oj as a0,fB as a1,nL as a2,iL as a3,aL as a4,HB as a5,sL as a6,DB as a7,eL as a8,cj as a9,wB as aA,lL as aB,O7 as aC,L7 as aD,q7 as aE,j7 as aF,qr as aG,z7 as aH,D7 as aI,jL as aJ,K7 as aK,kw as aL,yL as aM,hL as aN,RA as aO,rj as aP,P7 as aQ,_B as aR,nB as aS,vj as aT,pB as aU,BB as aV,xL as aW,XB as aX,kL as aY,RB as aZ,NL as a_,bL as aa,lj as ab,W7 as ac,uL as ad,gj as ae,mj as af,fj as ag,yj as ah,pj as ai,hj as aj,dj as ak,ve as al,rL as am,nj as an,IB as ao,QB as ap,GB as aq,bB as ar,FB as as,vL as at,oL as au,EB as av,Mu as aw,oB as ax,RL as ay,tL as az,$7 as b,IL as b$,DL as b0,vB as b1,CL as b2,U7 as b3,mL as b4,_L as b5,KB as b6,gB as b7,VB as b8,aB as b9,sj as bA,ej as bB,$L as bC,rB as bD,YB as bE,YL as bF,uB as bG,sB as bH,iB as bI,kB as bJ,qj as bK,hB as bL,yB as bM,SL as bN,OL as bO,ML as bP,pL as bQ,zL as bR,Vj as bS,SB as bT,UB as bU,EL as bV,B7 as bW,Ij as bX,lB as bY,TB as bZ,tj as b_,HL as ba,dL as bb,cL as bc,WB as bd,AL as be,GL as bf,gL as bg,zB as bh,qB as bi,NB as bj,JB as bk,J7 as bl,jB as bm,KL as bn,TL as bo,PL as bp,jj as bq,Hj as br,Uj as bs,Jf as bt,fL as bu,PB as bv,QL as bw,dB as bx,aj as by,qL as bz,Z7 as c,LL as c0,ij as c1,tB as c2,$B as c3,cB as c4,mB as c5,WL as c6,ZL as c7,V7 as c8,iA as c9,H7 as ca,R7 as cb,A7 as cc,N7 as cd,I7 as ce,Nf as d,F7 as e,G7 as f,gR as g,X7 as h,bj as i,se as j,s6 as k,_j as l,Ej as m,z6 as n,kj as o,xj as p,Aj as q,R as r,Q7 as s,Cj as t,Y7 as u,Rj as v,QN as w,Dj as x,Lj as y,Bj as z};
729
- //# sourceMappingURL=vendor-De38P6YR.js.map