@atproto/oauth-provider-ui 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/account-page-fVhIFEih.js +20 -0
  2. package/dist/account-page-fVhIFEih.js.map +1 -0
  3. package/dist/{admonition-yRjCycmU.js → admonition-CXJ8Sc1w.js} +10 -10
  4. package/dist/{admonition-yRjCycmU.js.map → admonition-CXJ8Sc1w.js.map} +1 -1
  5. package/dist/admonition-DVqjHOuj.css +1 -0
  6. package/dist/authorization-page-CvIE9dK4.js +6 -0
  7. package/dist/authorization-page-CvIE9dK4.js.map +1 -0
  8. package/dist/bundle-manifest.json +209 -209
  9. package/dist/{cookie-error-page-Bkn1GFNn.js → cookie-error-page-CyBt7krF.js} +2 -2
  10. package/dist/{cookie-error-page-Bkn1GFNn.js.map → cookie-error-page-CyBt7krF.js.map} +1 -1
  11. package/dist/did-document-DsLzb3Ek.js +60 -0
  12. package/dist/did-document-DsLzb3Ek.js.map +1 -0
  13. package/dist/{error-page-BNXmA0-7.js → error-page-DF0CHJlA.js} +2 -2
  14. package/dist/{error-page-BNXmA0-7.js.map → error-page-DF0CHJlA.js.map} +1 -1
  15. package/dist/error-view-CVf24qTW.js +2 -0
  16. package/dist/error-view-CVf24qTW.js.map +1 -0
  17. package/dist/{form-card-CGJ-DqBg.js → form-card-D8HY_Q27.js} +2 -2
  18. package/dist/{form-card-CGJ-DqBg.js.map → form-card-D8HY_Q27.js.map} +1 -1
  19. package/dist/messages-5uNgWF4s.js +2 -0
  20. package/dist/messages-5uNgWF4s.js.map +1 -0
  21. package/dist/messages-B7mQtRBJ.js +2 -0
  22. package/dist/messages-B7mQtRBJ.js.map +1 -0
  23. package/dist/messages-B8MWcr21.js +2 -0
  24. package/dist/messages-B8MWcr21.js.map +1 -0
  25. package/dist/messages-B9JN3961.js +2 -0
  26. package/dist/messages-B9JN3961.js.map +1 -0
  27. package/dist/messages-BCQ2T7NA.js +2 -0
  28. package/dist/messages-BCQ2T7NA.js.map +1 -0
  29. package/dist/messages-BCdpdeC-.js +2 -0
  30. package/dist/messages-BCdpdeC-.js.map +1 -0
  31. package/dist/messages-BZLoddIZ.js +2 -0
  32. package/dist/messages-BZLoddIZ.js.map +1 -0
  33. package/dist/messages-BZYoSNbm.js +2 -0
  34. package/dist/messages-BZYoSNbm.js.map +1 -0
  35. package/dist/messages-Bh717jLi.js +2 -0
  36. package/dist/messages-Bh717jLi.js.map +1 -0
  37. package/dist/messages-BjG33ebS.js +2 -0
  38. package/dist/messages-BjG33ebS.js.map +1 -0
  39. package/dist/messages-Bw-YxWKB.js +2 -0
  40. package/dist/messages-Bw-YxWKB.js.map +1 -0
  41. package/dist/messages-BwbrOwr8.js +2 -0
  42. package/dist/messages-BwbrOwr8.js.map +1 -0
  43. package/dist/messages-C9mdoRX3.js +2 -0
  44. package/dist/messages-C9mdoRX3.js.map +1 -0
  45. package/dist/messages-CCIA1RjZ.js +2 -0
  46. package/dist/messages-CCIA1RjZ.js.map +1 -0
  47. package/dist/messages-CY9oixjx.js +2 -0
  48. package/dist/messages-CY9oixjx.js.map +1 -0
  49. package/dist/messages-CYwJd9QA.js +2 -0
  50. package/dist/messages-CYwJd9QA.js.map +1 -0
  51. package/dist/messages-CjwltEWC.js +2 -0
  52. package/dist/messages-CjwltEWC.js.map +1 -0
  53. package/dist/messages-CkoTm5oM.js +2 -0
  54. package/dist/messages-CkoTm5oM.js.map +1 -0
  55. package/dist/messages-CqJT7nIu.js +2 -0
  56. package/dist/messages-CqJT7nIu.js.map +1 -0
  57. package/dist/messages-CqenJyok.js +2 -0
  58. package/dist/messages-CqenJyok.js.map +1 -0
  59. package/dist/messages-Ct8q9YL2.js +2 -0
  60. package/dist/messages-Ct8q9YL2.js.map +1 -0
  61. package/dist/messages-D7H6tJoh.js +2 -0
  62. package/dist/messages-D7H6tJoh.js.map +1 -0
  63. package/dist/messages-DHS4QO3e.js +2 -0
  64. package/dist/messages-DHS4QO3e.js.map +1 -0
  65. package/dist/messages-DIGrbyyF.js +2 -0
  66. package/dist/messages-DIGrbyyF.js.map +1 -0
  67. package/dist/messages-DKINoIXI.js +2 -0
  68. package/dist/messages-DKINoIXI.js.map +1 -0
  69. package/dist/messages-DSKtrhnV.js +2 -0
  70. package/dist/messages-DSKtrhnV.js.map +1 -0
  71. package/dist/messages-Dib-ZiYl.js +2 -0
  72. package/dist/messages-Dib-ZiYl.js.map +1 -0
  73. package/dist/messages-DogbCQFZ.js +2 -0
  74. package/dist/messages-DogbCQFZ.js.map +1 -0
  75. package/dist/messages-GftZzRyR.js +2 -0
  76. package/dist/messages-GftZzRyR.js.map +1 -0
  77. package/dist/messages-QfxG5UCZ.js +2 -0
  78. package/dist/messages-QfxG5UCZ.js.map +1 -0
  79. package/dist/messages-Ujrt_KOB.js +2 -0
  80. package/dist/messages-Ujrt_KOB.js.map +1 -0
  81. package/dist/messages-qh1Id7WE.js +2 -0
  82. package/dist/messages-qh1Id7WE.js.map +1 -0
  83. package/dist/messages-sZeR24xr.js +2 -0
  84. package/dist/messages-sZeR24xr.js.map +1 -0
  85. package/dist/messages-vN-GwpS2.js +2 -0
  86. package/dist/messages-vN-GwpS2.js.map +1 -0
  87. package/dist/messages-zJqiwr6j.js +2 -0
  88. package/dist/messages-zJqiwr6j.js.map +1 -0
  89. package/package.json +2 -2
  90. package/dist/account-page-BWF2SB1c.js +0 -20
  91. package/dist/account-page-BWF2SB1c.js.map +0 -1
  92. package/dist/admonition-Bcg8G9qE.css +0 -1
  93. package/dist/authorization-page-CVdjW3kW.js +0 -6
  94. package/dist/authorization-page-CVdjW3kW.js.map +0 -1
  95. package/dist/did-document-YkmTdTdF.js +0 -60
  96. package/dist/did-document-YkmTdTdF.js.map +0 -1
  97. package/dist/error-view-C10M9k8v.js +0 -2
  98. package/dist/error-view-C10M9k8v.js.map +0 -1
  99. package/dist/messages-4A2zNaJA.js +0 -2
  100. package/dist/messages-4A2zNaJA.js.map +0 -1
  101. package/dist/messages-7R3dsZws.js +0 -2
  102. package/dist/messages-7R3dsZws.js.map +0 -1
  103. package/dist/messages-B6nvld7p.js +0 -2
  104. package/dist/messages-B6nvld7p.js.map +0 -1
  105. package/dist/messages-BAdEsMXp.js +0 -2
  106. package/dist/messages-BAdEsMXp.js.map +0 -1
  107. package/dist/messages-BMxtZJ1I.js +0 -2
  108. package/dist/messages-BMxtZJ1I.js.map +0 -1
  109. package/dist/messages-BWd-s4G-.js +0 -2
  110. package/dist/messages-BWd-s4G-.js.map +0 -1
  111. package/dist/messages-BYwBRDz6.js +0 -2
  112. package/dist/messages-BYwBRDz6.js.map +0 -1
  113. package/dist/messages-Bbt7j4Nr.js +0 -2
  114. package/dist/messages-Bbt7j4Nr.js.map +0 -1
  115. package/dist/messages-CIviIojG.js +0 -2
  116. package/dist/messages-CIviIojG.js.map +0 -1
  117. package/dist/messages-CP4Dh-Zn.js +0 -2
  118. package/dist/messages-CP4Dh-Zn.js.map +0 -1
  119. package/dist/messages-CZWPPCcA.js +0 -2
  120. package/dist/messages-CZWPPCcA.js.map +0 -1
  121. package/dist/messages-CaYb4lH9.js +0 -2
  122. package/dist/messages-CaYb4lH9.js.map +0 -1
  123. package/dist/messages-Cnbm9eAj.js +0 -2
  124. package/dist/messages-Cnbm9eAj.js.map +0 -1
  125. package/dist/messages-CqtpqGwZ.js +0 -2
  126. package/dist/messages-CqtpqGwZ.js.map +0 -1
  127. package/dist/messages-D3vsovyz.js +0 -2
  128. package/dist/messages-D3vsovyz.js.map +0 -1
  129. package/dist/messages-D9f1Rhet.js +0 -2
  130. package/dist/messages-D9f1Rhet.js.map +0 -1
  131. package/dist/messages-DEbsg0ze.js +0 -2
  132. package/dist/messages-DEbsg0ze.js.map +0 -1
  133. package/dist/messages-DTNcNES3.js +0 -2
  134. package/dist/messages-DTNcNES3.js.map +0 -1
  135. package/dist/messages-DVdgHJEN.js +0 -2
  136. package/dist/messages-DVdgHJEN.js.map +0 -1
  137. package/dist/messages-D_YiRQ4N.js +0 -2
  138. package/dist/messages-D_YiRQ4N.js.map +0 -1
  139. package/dist/messages-Df1xyGfN.js +0 -2
  140. package/dist/messages-Df1xyGfN.js.map +0 -1
  141. package/dist/messages-DfHcfOyd.js +0 -2
  142. package/dist/messages-DfHcfOyd.js.map +0 -1
  143. package/dist/messages-DgtU9CmE.js +0 -2
  144. package/dist/messages-DgtU9CmE.js.map +0 -1
  145. package/dist/messages-DqWt8vPh.js +0 -2
  146. package/dist/messages-DqWt8vPh.js.map +0 -1
  147. package/dist/messages-DqgIT_3V.js +0 -2
  148. package/dist/messages-DqgIT_3V.js.map +0 -1
  149. package/dist/messages-DvBrqGjB.js +0 -2
  150. package/dist/messages-DvBrqGjB.js.map +0 -1
  151. package/dist/messages-Ebt0rRed.js +0 -2
  152. package/dist/messages-Ebt0rRed.js.map +0 -1
  153. package/dist/messages-Iqi6xcDH.js +0 -2
  154. package/dist/messages-Iqi6xcDH.js.map +0 -1
  155. package/dist/messages-Ys6eB5E6.js +0 -2
  156. package/dist/messages-Ys6eB5E6.js.map +0 -1
  157. package/dist/messages-hHsjnLrT.js +0 -2
  158. package/dist/messages-hHsjnLrT.js.map +0 -1
  159. package/dist/messages-i5QrLuH6.js +0 -2
  160. package/dist/messages-i5QrLuH6.js.map +0 -1
  161. package/dist/messages-ik9YWgEX.js +0 -2
  162. package/dist/messages-ik9YWgEX.js.map +0 -1
  163. package/dist/messages-q4uQwDHc.js +0 -2
  164. package/dist/messages-q4uQwDHc.js.map +0 -1
  165. package/dist/messages-tcRNX3H1.js +0 -2
  166. package/dist/messages-tcRNX3H1.js.map +0 -1
  167. package/dist/messages-ynvDvSx5.js +0 -2
  168. package/dist/messages-ynvDvSx5.js.map +0 -1
@@ -1,20 +0,0 @@
1
- var xl=Object.defineProperty;var uo=e=>{throw TypeError(e)};var _l=(e,t,s)=>t in e?xl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var xe=(e,t,s)=>_l(e,typeof t!="symbol"?t+"":t,s),Rr=(e,t,s)=>t.has(e)||uo("Cannot "+s);var v=(e,t,s)=>(Rr(e,t,"read from private field"),s?s.call(e):t.get(e)),B=(e,t,s)=>t.has(e)?uo("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),H=(e,t,s,n)=>(Rr(e,t,"write to private field"),n?n.call(e,s):t.set(e,s),s),K=(e,t,s)=>(Rr(e,t,"access private method"),s);var An=(e,t,s,n)=>({set _(r){H(e,t,r,s)},get _(){return v(e,t,n)}});import{r as p,j as f,a as wa,p as Bs,c as un,u as nt,B as fs,T as X,L as Sl,b as Rl,d as En,A as Ei,e as ba,f as Pl,g as Cl,C as Al,h as El}from"./admonition-yRjCycmU.js";import{r as xa,P as xn,u as ei,c as _a,a as or,b as kl,d as jl,e as Ol,f as an,g as Sa,h as Ml,i as Ll,R as Il,j as Nl,k as Tl,F as Fl,D as Dl,A as Ra,l as Hl,m as Pa,n as Ul,o as ki,p as Bl,q as _n,s as $s,z as h,Z as ge,t as $l,v as ar,w as Vl,x as ql,y as Zl,B as zl,C as Kl,N as Wl,E as Ql,S as Jl,I as Gl}from"./did-document-YkmTdTdF.js";import{E as Ca,e as Yl}from"./error-view-C10M9k8v.js";import"./form-card-CGJ-DqBg.js";var Vs=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(){}},is=typeof window>"u"||"Deno"in globalThis;function Te(){}function Xl(e,t){return typeof e=="function"?e(t):e}function ti(e){return typeof e=="number"&&e>=0&&e!==1/0}function Aa(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ps(e,t){return typeof e=="function"?e(t):e}function Ve(e,t){return typeof e=="function"?e(t):e}function ho(e,t){const{type:s="all",exact:n,fetchStatus:r,predicate:o,queryKey:i,stale:a}=e;if(i){if(n){if(t.queryHash!==ji(i,t.options))return!1}else if(!dn(t.queryKey,i))return!1}if(s!=="all"){const c=t.isActive();if(s==="active"&&!c||s==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||r&&r!==t.state.fetchStatus||o&&!o(t))}function fo(e,t){const{exact:s,status:n,predicate:r,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(s){if(os(t.options.mutationKey)!==os(o))return!1}else if(!dn(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||r&&!r(t))}function ji(e,t){return((t==null?void 0:t.queryKeyHashFn)||os)(e)}function os(e){return JSON.stringify(e,(t,s)=>si(s)?Object.keys(s).sort().reduce((n,r)=>(n[r]=s[r],n),{}):s)}function dn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(s=>dn(e[s],t[s])):!1}function Ea(e,t){if(e===t)return e;const s=po(e)&&po(t);if(s||si(e)&&si(t)){const n=s?e:Object.keys(e),r=n.length,o=s?t:Object.keys(t),i=o.length,a=s?[]:{};let c=0;for(let l=0;l<i;l++){const d=s?l:o[l];(!s&&n.includes(d)||s)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=Ea(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return r===i&&c===r?e:a}return t}function Vn(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function po(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function si(e){if(!mo(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!mo(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function mo(e){return Object.prototype.toString.call(e)==="[object Object]"}function eu(e){return new Promise(t=>{setTimeout(t,e)})}function ni(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?Ea(e,t):t}function tu(e,t,s=0){const n=[...e,t];return s&&n.length>s?n.slice(1):n}function su(e,t,s=0){const n=[t,...e];return s&&n.length>s?n.slice(0,-1):n}var Oi=Symbol();function ka(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Oi?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Gt,Pt,_s,aa,nu=(aa=class extends Vs{constructor(){super();B(this,Gt);B(this,Pt);B(this,_s);H(this,_s,t=>{if(!is&&window.addEventListener){const s=()=>t();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){v(this,Pt)||this.setEventListener(v(this,_s))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,Pt))==null||t.call(this),H(this,Pt,void 0))}setEventListener(t){var s;H(this,_s,t),(s=v(this,Pt))==null||s.call(this),H(this,Pt,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){v(this,Gt)!==t&&(H(this,Gt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(s=>{s(t)})}isFocused(){var t;return typeof v(this,Gt)=="boolean"?v(this,Gt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Gt=new WeakMap,Pt=new WeakMap,_s=new WeakMap,aa),Mi=new nu,Ss,Ct,Rs,ca,ru=(ca=class extends Vs{constructor(){super();B(this,Ss,!0);B(this,Ct);B(this,Rs);H(this,Rs,t=>{if(!is&&window.addEventListener){const s=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",n)}}})}onSubscribe(){v(this,Ct)||this.setEventListener(v(this,Rs))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,Ct))==null||t.call(this),H(this,Ct,void 0))}setEventListener(t){var s;H(this,Rs,t),(s=v(this,Ct))==null||s.call(this),H(this,Ct,t(this.setOnline.bind(this)))}setOnline(t){v(this,Ss)!==t&&(H(this,Ss,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return v(this,Ss)}},Ss=new WeakMap,Ct=new WeakMap,Rs=new WeakMap,ca),qn=new ru;function ri(){let e,t;const s=new Promise((r,o)=>{e=r,t=o});s.status="pending",s.catch(()=>{});function n(r){Object.assign(s,r),delete s.resolve,delete s.reject}return s.resolve=r=>{n({status:"fulfilled",value:r}),e(r)},s.reject=r=>{n({status:"rejected",reason:r}),t(r)},s}function iu(e){return Math.min(1e3*2**e,3e4)}function ja(e){return(e??"online")==="online"?qn.isOnline():!0}var Oa=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Pr(e){return e instanceof Oa}function Ma(e){let t=!1,s=0,n=!1,r;const o=ri(),i=w=>{var b;n||(m(new Oa(w)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>Mi.isFocused()&&(e.networkMode==="always"||qn.isOnline())&&e.canRun(),d=()=>ja(e.networkMode)&&e.canRun(),u=w=>{var b;n||(n=!0,(b=e.onSuccess)==null||b.call(e,w),r==null||r(),o.resolve(w))},m=w=>{var b;n||(n=!0,(b=e.onError)==null||b.call(e,w),r==null||r(),o.reject(w))},g=()=>new Promise(w=>{var b;r=_=>{(n||l())&&w(_)},(b=e.onPause)==null||b.call(e)}).then(()=>{var w;r=void 0,n||(w=e.onContinue)==null||w.call(e)}),y=()=>{if(n)return;let w;const b=s===0?e.initialPromise:void 0;try{w=b??e.fn()}catch(_){w=Promise.reject(_)}Promise.resolve(w).then(u).catch(_=>{var A;if(n)return;const E=e.retry??(is?0:3),P=e.retryDelay??iu,L=typeof P=="function"?P(s,_):P,I=E===!0||typeof E=="number"&&s<E||typeof E=="function"&&E(s,_);if(t||!I){m(_);return}s++,(A=e.onFail)==null||A.call(e,s,_),eu(L).then(()=>l()?void 0:g()).then(()=>{t?m(_):y()})})};return{promise:o,cancel:i,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?y():g().then(y),o)}}var ou=e=>setTimeout(e,0);function au(){let e=[],t=0,s=a=>{a()},n=a=>{a()},r=ou;const o=a=>{t?e.push(a):r(()=>{s(a)})},i=()=>{const a=e;e=[],a.length&&r(()=>{n(()=>{a.forEach(c=>{s(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||i()}return c},batchCalls:a=>(...c)=>{o(()=>{a(...c)})},schedule:o,setNotifyFunction:a=>{s=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{r=a}}}var me=au(),Yt,la,La=(la=class{constructor(){B(this,Yt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ti(this.gcTime)&&H(this,Yt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(is?1/0:5*60*1e3))}clearGcTimeout(){v(this,Yt)&&(clearTimeout(v(this,Yt)),H(this,Yt,void 0))}},Yt=new WeakMap,la),Ps,Cs,Ne,Xt,be,vn,es,Ue,ot,ua,cu=(ua=class extends La{constructor(t){super();B(this,Ue);B(this,Ps);B(this,Cs);B(this,Ne);B(this,Xt);B(this,be);B(this,vn);B(this,es);H(this,es,!1),H(this,vn,t.defaultOptions),this.setOptions(t.options),this.observers=[],H(this,Xt,t.client),H(this,Ne,v(this,Xt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,H(this,Ps,lu(this.options)),this.state=t.state??v(this,Ps),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=v(this,be))==null?void 0:t.promise}setOptions(t){this.options={...v(this,vn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&v(this,Ne).remove(this)}setData(t,s){const n=ni(this.state.data,t,this.options);return K(this,Ue,ot).call(this,{data:n,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),n}setState(t,s){K(this,Ue,ot).call(this,{type:"setState",state:t,setStateOptions:s})}cancel(t){var n,r;const s=(n=v(this,be))==null?void 0:n.promise;return(r=v(this,be))==null||r.cancel(t),s?s.then(Te).catch(Te):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(v(this,Ps))}isActive(){return this.observers.some(t=>Ve(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Oi||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Aa(this.state.dataUpdatedAt,t)}onFocus(){var s;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(s=v(this,be))==null||s.continue()}onOnline(){var s;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(s=v(this,be))==null||s.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),v(this,Ne).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(s=>s!==t),this.observers.length||(v(this,be)&&(v(this,es)?v(this,be).cancel({revert:!0}):v(this,be).cancelRetry()),this.scheduleGc()),v(this,Ne).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||K(this,Ue,ot).call(this,{type:"invalidate"})}fetch(t,s){var c,l,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(v(this,be))return v(this,be).continueRetry(),v(this,be).promise}if(t&&this.setOptions(t),!this.options.queryFn){const u=this.observers.find(m=>m.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(H(this,es,!0),n.signal)})},o=()=>{const u=ka(this.options,s),m={client:v(this,Xt),queryKey:this.queryKey,meta:this.meta};return r(m),H(this,es,!1),this.options.persister?this.options.persister(u,m,this):u(m)},i={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:v(this,Xt),state:this.state,fetchFn:o};r(i),(c=this.options.behavior)==null||c.onFetch(i,this),H(this,Cs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=i.fetchOptions)==null?void 0:l.meta))&&K(this,Ue,ot).call(this,{type:"fetch",meta:(d=i.fetchOptions)==null?void 0:d.meta});const a=u=>{var m,g,y,w;Pr(u)&&u.silent||K(this,Ue,ot).call(this,{type:"error",error:u}),Pr(u)||((g=(m=v(this,Ne).config).onError)==null||g.call(m,u,this),(w=(y=v(this,Ne).config).onSettled)==null||w.call(y,this.state.data,u,this)),this.scheduleGc()};return H(this,be,Ma({initialPromise:s==null?void 0:s.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:u=>{var m,g,y,w;if(u===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(u)}catch(b){a(b);return}(g=(m=v(this,Ne).config).onSuccess)==null||g.call(m,u,this),(w=(y=v(this,Ne).config).onSettled)==null||w.call(y,u,this.state.error,this),this.scheduleGc()},onError:a,onFail:(u,m)=>{K(this,Ue,ot).call(this,{type:"failed",failureCount:u,error:m})},onPause:()=>{K(this,Ue,ot).call(this,{type:"pause"})},onContinue:()=>{K(this,Ue,ot).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),v(this,be).start()}},Ps=new WeakMap,Cs=new WeakMap,Ne=new WeakMap,Xt=new WeakMap,be=new WeakMap,vn=new WeakMap,es=new WeakMap,Ue=new WeakSet,ot=function(t){const s=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Ia(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=t.error;return Pr(r)&&r.revert&&v(this,Cs)?{...v(this,Cs),fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=s(this.state),me.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),v(this,Ne).notify({query:this,type:"updated",action:t})})},ua);function Ia(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ja(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function lu(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,n=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Je,da,uu=(da=class extends Vs{constructor(t={}){super();B(this,Je);this.config=t,H(this,Je,new Map)}build(t,s,n){const r=s.queryKey,o=s.queryHash??ji(r,s);let i=this.get(o);return i||(i=new cu({client:t,queryKey:r,queryHash:o,options:t.defaultQueryOptions(s),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(i)),i}add(t){v(this,Je).has(t.queryHash)||(v(this,Je).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const s=v(this,Je).get(t.queryHash);s&&(t.destroy(),s===t&&v(this,Je).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){me.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return v(this,Je).get(t)}getAll(){return[...v(this,Je).values()]}find(t){const s={exact:!0,...t};return this.getAll().find(n=>ho(s,n))}findAll(t={}){const s=this.getAll();return Object.keys(t).length>0?s.filter(n=>ho(t,n)):s}notify(t){me.batch(()=>{this.listeners.forEach(s=>{s(t)})})}onFocus(){me.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){me.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Je=new WeakMap,da),Ge,_e,ts,Ye,xt,ha,du=(ha=class extends La{constructor(t){super();B(this,Ye);B(this,Ge);B(this,_e);B(this,ts);this.mutationId=t.mutationId,H(this,_e,t.mutationCache),H(this,Ge,[]),this.state=t.state||Na(),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,Ge).includes(t)||(v(this,Ge).push(t),this.clearGcTimeout(),v(this,_e).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){H(this,Ge,v(this,Ge).filter(s=>s!==t)),this.scheduleGc(),v(this,_e).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){v(this,Ge).length||(this.state.status==="pending"?this.scheduleGc():v(this,_e).remove(this))}continue(){var t;return((t=v(this,ts))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var r,o,i,a,c,l,d,u,m,g,y,w,b,_,E,P,L,I,A,M;H(this,ts,Ma({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(S,x)=>{K(this,Ye,xt).call(this,{type:"failed",failureCount:S,error:x})},onPause:()=>{K(this,Ye,xt).call(this,{type:"pause"})},onContinue:()=>{K(this,Ye,xt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>v(this,_e).canRun(this)}));const s=this.state.status==="pending",n=!v(this,ts).canStart();try{if(!s){K(this,Ye,xt).call(this,{type:"pending",variables:t,isPaused:n}),await((o=(r=v(this,_e).config).onMutate)==null?void 0:o.call(r,t,this));const x=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t));x!==this.state.context&&K(this,Ye,xt).call(this,{type:"pending",context:x,variables:t,isPaused:n})}const S=await v(this,ts).start();return await((l=(c=v(this,_e).config).onSuccess)==null?void 0:l.call(c,S,t,this.state.context,this)),await((u=(d=this.options).onSuccess)==null?void 0:u.call(d,S,t,this.state.context)),await((g=(m=v(this,_e).config).onSettled)==null?void 0:g.call(m,S,null,this.state.variables,this.state.context,this)),await((w=(y=this.options).onSettled)==null?void 0:w.call(y,S,null,t,this.state.context)),K(this,Ye,xt).call(this,{type:"success",data:S}),S}catch(S){try{throw await((_=(b=v(this,_e).config).onError)==null?void 0:_.call(b,S,t,this.state.context,this)),await((P=(E=this.options).onError)==null?void 0:P.call(E,S,t,this.state.context)),await((I=(L=v(this,_e).config).onSettled)==null?void 0:I.call(L,void 0,S,this.state.variables,this.state.context,this)),await((M=(A=this.options).onSettled)==null?void 0:M.call(A,void 0,S,t,this.state.context)),S}finally{K(this,Ye,xt).call(this,{type:"error",error:S})}}finally{v(this,_e).runNext(this)}}},Ge=new WeakMap,_e=new WeakMap,ts=new WeakMap,Ye=new WeakSet,xt=function(t){const s=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=s(this.state),me.batch(()=>{v(this,Ge).forEach(n=>{n.onMutationUpdate(t)}),v(this,_e).notify({mutation:this,type:"updated",action:t})})},ha);function Na(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var at,Be,yn,fa,hu=(fa=class extends Vs{constructor(t={}){super();B(this,at);B(this,Be);B(this,yn);this.config=t,H(this,at,new Set),H(this,Be,new Map),H(this,yn,0)}build(t,s,n){const r=new du({mutationCache:this,mutationId:++An(this,yn)._,options:t.defaultMutationOptions(s),state:n});return this.add(r),r}add(t){v(this,at).add(t);const s=kn(t);if(typeof s=="string"){const n=v(this,Be).get(s);n?n.push(t):v(this,Be).set(s,[t])}this.notify({type:"added",mutation:t})}remove(t){if(v(this,at).delete(t)){const s=kn(t);if(typeof s=="string"){const n=v(this,Be).get(s);if(n)if(n.length>1){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}else n[0]===t&&v(this,Be).delete(s)}}this.notify({type:"removed",mutation:t})}canRun(t){const s=kn(t);if(typeof s=="string"){const n=v(this,Be).get(s),r=n==null?void 0:n.find(o=>o.state.status==="pending");return!r||r===t}else return!0}runNext(t){var n;const s=kn(t);if(typeof s=="string"){const r=(n=v(this,Be).get(s))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){me.batch(()=>{v(this,at).forEach(t=>{this.notify({type:"removed",mutation:t})}),v(this,at).clear(),v(this,Be).clear()})}getAll(){return Array.from(v(this,at))}find(t){const s={exact:!0,...t};return this.getAll().find(n=>fo(s,n))}findAll(t={}){return this.getAll().filter(s=>fo(t,s))}notify(t){me.batch(()=>{this.listeners.forEach(s=>{s(t)})})}resumePausedMutations(){const t=this.getAll().filter(s=>s.state.isPaused);return me.batch(()=>Promise.all(t.map(s=>s.continue().catch(Te))))}},at=new WeakMap,Be=new WeakMap,yn=new WeakMap,fa);function kn(e){var t;return(t=e.options.scope)==null?void 0:t.id}function go(e){return{onFetch:(t,s)=>{var d,u,m,g,y;const n=t.options,r=(m=(u=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:u.fetchMore)==null?void 0:m.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],i=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let w=!1;const b=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},_=ka(t.options,t.fetchOptions),E=async(P,L,I)=>{if(w)return Promise.reject();if(L==null&&P.pages.length)return Promise.resolve(P);const A={client:t.client,queryKey:t.queryKey,pageParam:L,direction:I?"backward":"forward",meta:t.options.meta};b(A);const M=await _(A),{maxPages:S}=t.options,x=I?su:tu;return{pages:x(P.pages,M,S),pageParams:x(P.pageParams,L,S)}};if(r&&o.length){const P=r==="backward",L=P?fu:vo,I={pages:o,pageParams:i},A=L(n,I);a=await E(I,A,P)}else{const P=e??o.length;do{const L=c===0?i[0]??n.initialPageParam:vo(n,a);if(c>0&&L==null)break;a=await E(a,L),c++}while(c<P)}return a};t.options.persister?t.fetchFn=()=>{var w,b;return(b=(w=t.options).persister)==null?void 0:b.call(w,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s)}:t.fetchFn=l}}}function vo(e,{pages:t,pageParams:s}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,s[n],s):void 0}function fu(e,{pages:t,pageParams:s}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,s[0],s):void 0}var ue,At,Et,As,Es,kt,ks,js,pa,pu=(pa=class{constructor(e={}){B(this,ue);B(this,At);B(this,Et);B(this,As);B(this,Es);B(this,kt);B(this,ks);B(this,js);H(this,ue,e.queryCache||new uu),H(this,At,e.mutationCache||new hu),H(this,Et,e.defaultOptions||{}),H(this,As,new Map),H(this,Es,new Map),H(this,kt,0)}mount(){An(this,kt)._++,v(this,kt)===1&&(H(this,ks,Mi.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(this,ue).onFocus())})),H(this,js,qn.subscribe(async e=>{e&&(await this.resumePausedMutations(),v(this,ue).onOnline())})))}unmount(){var e,t;An(this,kt)._--,v(this,kt)===0&&((e=v(this,ks))==null||e.call(this),H(this,ks,void 0),(t=v(this,js))==null||t.call(this),H(this,js,void 0))}isFetching(e){return v(this,ue).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return v(this,At).findAll({...e,status:"pending"}).length}getQueryData(e){var s;const t=this.defaultQueryOptions({queryKey:e});return(s=v(this,ue).get(t.queryHash))==null?void 0:s.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),s=v(this,ue).build(this,t),n=s.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(ps(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return v(this,ue).findAll(e).map(({queryKey:t,state:s})=>{const n=s.data;return[t,n]})}setQueryData(e,t,s){const n=this.defaultQueryOptions({queryKey:e}),r=v(this,ue).get(n.queryHash),o=r==null?void 0:r.state.data,i=Xl(t,o);if(i!==void 0)return v(this,ue).build(this,n).setData(i,{...s,manual:!0})}setQueriesData(e,t,s){return me.batch(()=>v(this,ue).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,s)]))}getQueryState(e){var s;const t=this.defaultQueryOptions({queryKey:e});return(s=v(this,ue).get(t.queryHash))==null?void 0:s.state}removeQueries(e){const t=v(this,ue);me.batch(()=>{t.findAll(e).forEach(s=>{t.remove(s)})})}resetQueries(e,t){const s=v(this,ue);return me.batch(()=>(s.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const s={revert:!0,...t},n=me.batch(()=>v(this,ue).findAll(e).map(r=>r.cancel(s)));return Promise.all(n).then(Te).catch(Te)}invalidateQueries(e,t={}){return me.batch(()=>(v(this,ue).findAll(e).forEach(s=>{s.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 s={...t,cancelRefetch:t.cancelRefetch??!0},n=me.batch(()=>v(this,ue).findAll(e).filter(r=>!r.isDisabled()).map(r=>{let o=r.fetch(void 0,s);return s.throwOnError||(o=o.catch(Te)),r.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Te)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const s=v(this,ue).build(this,t);return s.isStaleByTime(ps(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Te).catch(Te)}fetchInfiniteQuery(e){return e.behavior=go(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Te).catch(Te)}ensureInfiniteQueryData(e){return e.behavior=go(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qn.isOnline()?v(this,At).resumePausedMutations():Promise.resolve()}getQueryCache(){return v(this,ue)}getMutationCache(){return v(this,At)}getDefaultOptions(){return v(this,Et)}setDefaultOptions(e){H(this,Et,e)}setQueryDefaults(e,t){v(this,As).set(os(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...v(this,As).values()],s={};return t.forEach(n=>{dn(e,n.queryKey)&&Object.assign(s,n.defaultOptions)}),s}setMutationDefaults(e,t){v(this,Es).set(os(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...v(this,Es).values()],s={};return t.forEach(n=>{dn(e,n.mutationKey)&&Object.assign(s,n.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;const t={...v(this,Et).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ji(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===Oi&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...v(this,Et).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){v(this,ue).clear(),v(this,At).clear()}},ue=new WeakMap,At=new WeakMap,Et=new WeakMap,As=new WeakMap,Es=new WeakMap,kt=new WeakMap,ks=new WeakMap,js=new WeakMap,pa),Re,W,wn,Se,ss,Os,jt,Xe,bn,Ms,Ls,ns,rs,Ot,Is,ee,tn,ii,oi,ai,ci,li,ui,di,Ta,ma,mu=(ma=class extends Vs{constructor(t,s){super();B(this,ee);B(this,Re);B(this,W);B(this,wn);B(this,Se);B(this,ss);B(this,Os);B(this,jt);B(this,Xe);B(this,bn);B(this,Ms);B(this,Ls);B(this,ns);B(this,rs);B(this,Ot);B(this,Is,new Set);this.options=s,H(this,Re,t),H(this,Xe,null),H(this,jt,ri()),this.options.experimental_prefetchInRender||v(this,jt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(v(this,W).addObserver(this),yo(v(this,W),this.options)?K(this,ee,tn).call(this):this.updateResult(),K(this,ee,ci).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hi(v(this,W),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hi(v(this,W),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,K(this,ee,li).call(this),K(this,ee,ui).call(this),v(this,W).removeObserver(this)}setOptions(t){const s=this.options,n=v(this,W);if(this.options=v(this,Re).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ve(this.options.enabled,v(this,W))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");K(this,ee,di).call(this),v(this,W).setOptions(this.options),s._defaulted&&!Vn(this.options,s)&&v(this,Re).getQueryCache().notify({type:"observerOptionsUpdated",query:v(this,W),observer:this});const r=this.hasListeners();r&&wo(v(this,W),n,this.options,s)&&K(this,ee,tn).call(this),this.updateResult(),r&&(v(this,W)!==n||Ve(this.options.enabled,v(this,W))!==Ve(s.enabled,v(this,W))||ps(this.options.staleTime,v(this,W))!==ps(s.staleTime,v(this,W)))&&K(this,ee,ii).call(this);const o=K(this,ee,oi).call(this);r&&(v(this,W)!==n||Ve(this.options.enabled,v(this,W))!==Ve(s.enabled,v(this,W))||o!==v(this,Ot))&&K(this,ee,ai).call(this,o)}getOptimisticResult(t){const s=v(this,Re).getQueryCache().build(v(this,Re),t),n=this.createResult(s,t);return vu(this,n)&&(H(this,Se,n),H(this,Os,this.options),H(this,ss,v(this,W).state)),n}getCurrentResult(){return v(this,Se)}trackResult(t,s){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),s==null||s(r),t[r])})}),n}trackProp(t){v(this,Is).add(t)}getCurrentQuery(){return v(this,W)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const s=v(this,Re).defaultQueryOptions(t),n=v(this,Re).getQueryCache().build(v(this,Re),s);return n.fetch().then(()=>this.createResult(n,s))}fetch(t){return K(this,ee,tn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),v(this,Se)))}createResult(t,s){var S;const n=v(this,W),r=this.options,o=v(this,Se),i=v(this,ss),a=v(this,Os),l=t!==n?t.state:v(this,wn),{state:d}=t;let u={...d},m=!1,g;if(s._optimisticResults){const x=this.hasListeners(),T=!x&&yo(t,s),D=x&&wo(t,n,s,r);(T||D)&&(u={...u,...Ia(d.data,t.options)}),s._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:y,errorUpdatedAt:w,status:b}=u;if(s.select&&u.data!==void 0)if(o&&u.data===(i==null?void 0:i.data)&&s.select===v(this,bn))g=v(this,Ms);else try{H(this,bn,s.select),g=s.select(u.data),g=ni(o==null?void 0:o.data,g,s),H(this,Ms,g),H(this,Xe,null)}catch(x){H(this,Xe,x)}else g=u.data;if(s.placeholderData!==void 0&&g===void 0&&b==="pending"){let x;if(o!=null&&o.isPlaceholderData&&s.placeholderData===(a==null?void 0:a.placeholderData))x=o.data;else if(x=typeof s.placeholderData=="function"?s.placeholderData((S=v(this,Ls))==null?void 0:S.state.data,v(this,Ls)):s.placeholderData,s.select&&x!==void 0)try{x=s.select(x),H(this,Xe,null)}catch(T){H(this,Xe,T)}x!==void 0&&(b="success",g=ni(o==null?void 0:o.data,x,s),m=!0)}v(this,Xe)&&(y=v(this,Xe),g=v(this,Ms),w=Date.now(),b="error");const _=u.fetchStatus==="fetching",E=b==="pending",P=b==="error",L=E&&_,I=g!==void 0,M={status:b,fetchStatus:u.fetchStatus,isPending:E,isSuccess:b==="success",isError:P,isInitialLoading:L,isLoading:L,data:g,dataUpdatedAt:u.dataUpdatedAt,error:y,errorUpdatedAt:w,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:_,isRefetching:_&&!E,isLoadingError:P&&!I,isPaused:u.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:P&&I,isStale:Li(t,s),refetch:this.refetch,promise:v(this,jt)};if(this.options.experimental_prefetchInRender){const x=N=>{M.status==="error"?N.reject(M.error):M.data!==void 0&&N.resolve(M.data)},T=()=>{const N=H(this,jt,M.promise=ri());x(N)},D=v(this,jt);switch(D.status){case"pending":t.queryHash===n.queryHash&&x(D);break;case"fulfilled":(M.status==="error"||M.data!==D.value)&&T();break;case"rejected":(M.status!=="error"||M.error!==D.reason)&&T();break}}return M}updateResult(){const t=v(this,Se),s=this.createResult(v(this,W),this.options);if(H(this,ss,v(this,W).state),H(this,Os,this.options),v(this,ss).data!==void 0&&H(this,Ls,v(this,W)),Vn(s,t))return;H(this,Se,s);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!v(this,Is).size)return!0;const i=new Set(o??v(this,Is));return this.options.throwOnError&&i.add("error"),Object.keys(v(this,Se)).some(a=>{const c=a;return v(this,Se)[c]!==t[c]&&i.has(c)})};K(this,ee,Ta).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&K(this,ee,ci).call(this)}},Re=new WeakMap,W=new WeakMap,wn=new WeakMap,Se=new WeakMap,ss=new WeakMap,Os=new WeakMap,jt=new WeakMap,Xe=new WeakMap,bn=new WeakMap,Ms=new WeakMap,Ls=new WeakMap,ns=new WeakMap,rs=new WeakMap,Ot=new WeakMap,Is=new WeakMap,ee=new WeakSet,tn=function(t){K(this,ee,di).call(this);let s=v(this,W).fetch(this.options,t);return t!=null&&t.throwOnError||(s=s.catch(Te)),s},ii=function(){K(this,ee,li).call(this);const t=ps(this.options.staleTime,v(this,W));if(is||v(this,Se).isStale||!ti(t))return;const n=Aa(v(this,Se).dataUpdatedAt,t)+1;H(this,ns,setTimeout(()=>{v(this,Se).isStale||this.updateResult()},n))},oi=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(v(this,W)):this.options.refetchInterval)??!1},ai=function(t){K(this,ee,ui).call(this),H(this,Ot,t),!(is||Ve(this.options.enabled,v(this,W))===!1||!ti(v(this,Ot))||v(this,Ot)===0)&&H(this,rs,setInterval(()=>{(this.options.refetchIntervalInBackground||Mi.isFocused())&&K(this,ee,tn).call(this)},v(this,Ot)))},ci=function(){K(this,ee,ii).call(this),K(this,ee,ai).call(this,K(this,ee,oi).call(this))},li=function(){v(this,ns)&&(clearTimeout(v(this,ns)),H(this,ns,void 0))},ui=function(){v(this,rs)&&(clearInterval(v(this,rs)),H(this,rs,void 0))},di=function(){const t=v(this,Re).getQueryCache().build(v(this,Re),this.options);if(t===v(this,W))return;const s=v(this,W);H(this,W,t),H(this,wn,t.state),this.hasListeners()&&(s==null||s.removeObserver(this),t.addObserver(this))},Ta=function(t){me.batch(()=>{t.listeners&&this.listeners.forEach(s=>{s(v(this,Se))}),v(this,Re).getQueryCache().notify({query:v(this,W),type:"observerResultsUpdated"})})},ma);function gu(e,t){return Ve(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function yo(e,t){return gu(e,t)||e.state.data!==void 0&&hi(e,t,t.refetchOnMount)}function hi(e,t,s){if(Ve(t.enabled,e)!==!1){const n=typeof s=="function"?s(e):s;return n==="always"||n!==!1&&Li(e,t)}return!1}function wo(e,t,s,n){return(e!==t||Ve(n.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&Li(e,s)}function Li(e,t){return Ve(t.enabled,e)!==!1&&e.isStaleByTime(ps(t.staleTime,e))}function vu(e,t){return!Vn(e.getCurrentResult(),t)}var Mt,Lt,Pe,ct,mt,Hn,fi,ga,yu=(ga=class extends Vs{constructor(t,s){super();B(this,mt);B(this,Mt);B(this,Lt);B(this,Pe);B(this,ct);H(this,Mt,t),this.setOptions(s),this.bindMethods(),K(this,mt,Hn).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const s=this.options;this.options=v(this,Mt).defaultMutationOptions(t),Vn(this.options,s)||v(this,Mt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:v(this,Pe),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&os(s.mutationKey)!==os(this.options.mutationKey)?this.reset():((n=v(this,Pe))==null?void 0:n.state.status)==="pending"&&v(this,Pe).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=v(this,Pe))==null||t.removeObserver(this)}onMutationUpdate(t){K(this,mt,Hn).call(this),K(this,mt,fi).call(this,t)}getCurrentResult(){return v(this,Lt)}reset(){var t;(t=v(this,Pe))==null||t.removeObserver(this),H(this,Pe,void 0),K(this,mt,Hn).call(this),K(this,mt,fi).call(this)}mutate(t,s){var n;return H(this,ct,s),(n=v(this,Pe))==null||n.removeObserver(this),H(this,Pe,v(this,Mt).getMutationCache().build(v(this,Mt),this.options)),v(this,Pe).addObserver(this),v(this,Pe).execute(t)}},Mt=new WeakMap,Lt=new WeakMap,Pe=new WeakMap,ct=new WeakMap,mt=new WeakSet,Hn=function(){var s;const t=((s=v(this,Pe))==null?void 0:s.state)??Na();H(this,Lt,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},fi=function(t){me.batch(()=>{var s,n,r,o,i,a,c,l;if(v(this,ct)&&this.hasListeners()){const d=v(this,Lt).variables,u=v(this,Lt).context;(t==null?void 0:t.type)==="success"?((n=(s=v(this,ct)).onSuccess)==null||n.call(s,t.data,d,u),(o=(r=v(this,ct)).onSettled)==null||o.call(r,t.data,null,d,u)):(t==null?void 0:t.type)==="error"&&((a=(i=v(this,ct)).onError)==null||a.call(i,t.error,d,u),(l=(c=v(this,ct)).onSettled)==null||l.call(c,void 0,t.error,d,u))}this.listeners.forEach(d=>{d(v(this,Lt))})})},ga),Fa=p.createContext(void 0),cr=e=>{const t=p.useContext(Fa);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},wu=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(Fa.Provider,{value:e,children:t})),Da=p.createContext(!1),bu=()=>p.useContext(Da);Da.Provider;function xu(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var _u=p.createContext(xu()),Su=()=>p.useContext(_u);function Ha(e,t){return typeof e=="function"?e(...t):!!e}function pi(){}var Ru=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Pu=e=>{p.useEffect(()=>{e.clearReset()},[e])},Cu=({result:e,errorResetBoundary:t,throwOnError:s,query:n,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(r&&e.data===void 0||Ha(s,[e.error,n])),Au=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...s)=>Math.max(t(...s),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Eu=(e,t)=>e.isLoading&&e.isFetching&&!t,ku=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,bo=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function ju(e,t,s){var u,m,g,y,w;const n=cr(),r=bu(),o=Su(),i=n.defaultQueryOptions(e);(m=(u=n.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||m.call(u,i),i._optimisticResults=r?"isRestoring":"optimistic",Au(i),Ru(i,o),Pu(o);const a=!n.getQueryCache().get(i.queryHash),[c]=p.useState(()=>new t(n,i)),l=c.getOptimisticResult(i),d=!r&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(b=>{const _=d?c.subscribe(me.batchCalls(b)):pi;return c.updateResult(),_},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setOptions(i)},[i,c]),ku(i,l))throw bo(i,c,o);if(Cu({result:l,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw l.error;if((y=(g=n.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||y.call(g,i,l),i.experimental_prefetchInRender&&!is&&Eu(l,r)){const b=a?bo(i,c,o):(w=n.getQueryCache().get(i.queryHash))==null?void 0:w.promise;b==null||b.catch(pi).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?l:c.trackResult(l)}function Ua(e,t){return ju(e,mu)}function lr(e,t){const s=cr(),[n]=p.useState(()=>new yu(s,e));p.useEffect(()=>{n.setOptions(e)},[n,e]);const r=p.useSyncExternalStore(p.useCallback(i=>n.subscribe(me.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=p.useCallback((i,a)=>{n.mutate(i,a).catch(pi)},[n]);if(r.error&&Ha(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:o,mutateAsync:r.mutate}}var Ou="Invariant failed";function ut(e,t){if(!e)throw new Error(Ou)}const ms=new WeakMap,Un=new WeakMap,Zn={current:[]};let Cr=!1,cn=0;const sn=new Set,jn=new Map;function Ba(e){const t=Array.from(e).sort((s,n)=>s instanceof gs&&s.options.deps.includes(n)?1:n instanceof gs&&n.options.deps.includes(s)?-1:0);for(const s of t){if(Zn.current.includes(s))continue;Zn.current.push(s),s.recompute();const n=Un.get(s);if(n)for(const r of n){const o=ms.get(r);o&&Ba(o)}}}function Mu(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function Lu(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function $a(e){if(cn>0&&!jn.has(e)&&jn.set(e,e.prevState),sn.add(e),!(cn>0)&&!Cr)try{for(Cr=!0;sn.size>0;){const t=Array.from(sn);sn.clear();for(const s of t){const n=jn.get(s)??s.prevState;s.prevState=n,Mu(s)}for(const s of t){const n=ms.get(s);n&&(Zn.current.push(s),Ba(n))}for(const s of t){const n=ms.get(s);if(n)for(const r of n)Lu(r)}}}finally{Cr=!1,Zn.current=[],jn.clear()}}function Ar(e){cn++;try{e()}finally{if(cn--,cn===0){const t=Array.from(sn)[0];t&&$a(t)}}}function Iu(e){return typeof e=="function"}class mi{constructor(t,s){this.listeners=new Set,this.subscribe=n=>{var r,o;this.listeners.add(n);const i=(o=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:o.call(r,n,this);return()=>{this.listeners.delete(n),i==null||i()}},this.prevState=t,this.state=t,this.options=s}setState(t){var s,n,r;this.prevState=this.state,(s=this.options)!=null&&s.updateFn?this.state=this.options.updateFn(this.prevState)(t):Iu(t)?this.state=t(this.prevState):this.state=t,(r=(n=this.options)==null?void 0:n.onUpdate)==null||r.call(n),$a(this)}}class gs{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const s=[],n=[];for(const r of this.options.deps)s.push(r.prevState),n.push(r.state);return this.lastSeenDepValues=n,{prevDepVals:s,currDepVals:n,prevVal:this.prevState??void 0}},this.recompute=()=>{var s,n;this.prevState=this.state;const{prevDepVals:r,currDepVals:o,prevVal:i}=this.getDepVals();this.state=this.options.fn({prevDepVals:r,currDepVals:o,prevVal:i}),(n=(s=this.options).onUpdate)==null||n.call(s)},this.checkIfRecalculationNeededDeeply=()=>{for(const o of this.options.deps)o instanceof gs&&o.checkIfRecalculationNeededDeeply();let s=!1;const n=this.lastSeenDepValues,{currDepVals:r}=this.getDepVals();for(let o=0;o<r.length;o++)if(r[o]!==n[o]){s=!0;break}s&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const s of this._subscriptions)s()}),this.subscribe=s=>{var n,r;this.listeners.add(s);const o=(r=(n=this.options).onSubscribe)==null?void 0:r.call(n,s,this);return()=>{this.listeners.delete(s),o==null||o()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const s of t)if(s instanceof gs)s.registerOnGraph(),this.registerOnGraph(s.options.deps);else if(s instanceof mi){let n=ms.get(s);n||(n=new Set,ms.set(s,n)),n.add(this);let r=Un.get(this);r||(r=new Set,Un.set(this,r)),r.add(s)}}unregisterFromGraph(t=this.options.deps){for(const s of t)if(s instanceof gs)this.unregisterFromGraph(s.options.deps);else if(s instanceof mi){const n=ms.get(s);n&&n.delete(this);const r=Un.get(this);r&&r.delete(s)}}}const Nt="__TSR_index",xo="popstate",_o="beforeunload";function Va(e){let t=e.getLocation();const s=new Set,n=i=>{t=e.getLocation(),s.forEach(a=>a({location:t,action:i}))},r=i=>{e.notifyOnIndexChange??!0?n(i):t=e.getLocation()},o=async({task:i,navigateOpts:a,...c})=>{var l,d;if((a==null?void 0:a.ignoreBlocker)??!1){i();return}const m=((l=e.getBlockers)==null?void 0:l.call(e))??[],g=c.type==="PUSH"||c.type==="REPLACE";if(typeof document<"u"&&m.length&&g)for(const y of m){const w=hn(c.path,c.state);if(await y.blockerFn({currentLocation:t,nextLocation:w,action:c.type})){(d=e.onBlocked)==null||d.call(e);return}}i()};return{get location(){return t},get length(){return e.getLength()},subscribers:s,subscribe:i=>(s.add(i),()=>{s.delete(i)}),push:(i,a,c)=>{const l=t.state[Nt];a=gi(l+1,a),o({task:()=>{e.pushState(i,a),n({type:"PUSH"})},navigateOpts:c,type:"PUSH",path:i,state:a})},replace:(i,a,c)=>{const l=t.state[Nt];a=gi(l,a),o({task:()=>{e.replaceState(i,a),n({type:"REPLACE"})},navigateOpts:c,type:"REPLACE",path:i,state:a})},go:(i,a)=>{o({task:()=>{e.go(i),r({type:"GO",index:i})},navigateOpts:a,type:"GO"})},back:i=>{o({task:()=>{e.back((i==null?void 0:i.ignoreBlocker)??!1),r({type:"BACK"})},navigateOpts:i,type:"BACK"})},forward:i=>{o({task:()=>{e.forward((i==null?void 0:i.ignoreBlocker)??!1),r({type:"FORWARD"})},navigateOpts:i,type:"FORWARD"})},canGoBack:()=>t.state[Nt]!==0,createHref:i=>e.createHref(i),block:i=>{var a;if(!e.setBlockers)return()=>{};const c=((a=e.getBlockers)==null?void 0:a.call(e))??[];return e.setBlockers([...c,i]),()=>{var l,d;const u=((l=e.getBlockers)==null?void 0:l.call(e))??[];(d=e.setBlockers)==null||d.call(e,u.filter(m=>m!==i))}},flush:()=>{var i;return(i=e.flush)==null?void 0:i.call(e)},destroy:()=>{var i;return(i=e.destroy)==null?void 0:i.call(e)},notify:n}}function gi(e,t){return t||(t={}),{...t,key:Ii(),[Nt]:e}}function Nu(e){var t;const s=typeof document<"u"?window:void 0,n=s.history.pushState,r=s.history.replaceState;let o=[];const i=()=>o,a=x=>o=x,c=x=>x,l=()=>hn(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state);(t=s.history.state)!=null&&t.key||s.history.replaceState({[Nt]:0,key:Ii()},"");let d=l(),u,m=!1,g=!1,y=!1,w=!1;const b=()=>d;let _,E;const P=()=>{_&&(S._ignoreSubscribers=!0,(_.isPush?s.history.pushState:s.history.replaceState)(_.state,"",_.href),S._ignoreSubscribers=!1,_=void 0,E=void 0,u=void 0)},L=(x,T,D)=>{const N=c(T);E||(u=d),d=hn(T,D),_={href:N,state:D,isPush:(_==null?void 0:_.isPush)||x==="push"},E||(E=Promise.resolve().then(()=>P()))},I=x=>{d=l(),S.notify({type:x})},A=async()=>{if(g){g=!1;return}const x=l(),T=x.state[Nt]-d.state[Nt],D=T===1,N=T===-1,F=!D&&!N||m;m=!1;const $=F?"GO":N?"BACK":"FORWARD",V=F?{type:"GO",index:T}:{type:N?"BACK":"FORWARD"};if(y)y=!1;else{const U=i();if(typeof document<"u"&&U.length){for(const q of U)if(await q.blockerFn({currentLocation:d,nextLocation:x,action:$})){g=!0,s.history.go(1),S.notify(V);return}}}d=l(),S.notify(V)},M=x=>{if(w){w=!1;return}let T=!1;const D=i();if(typeof document<"u"&&D.length)for(const N of D){const F=N.enableBeforeUnload??!0;if(F===!0){T=!0;break}if(typeof F=="function"&&F()===!0){T=!0;break}}if(T)return x.preventDefault(),x.returnValue=""},S=Va({getLocation:b,getLength:()=>s.history.length,pushState:(x,T)=>L("push",x,T),replaceState:(x,T)=>L("replace",x,T),back:x=>(x&&(y=!0),w=!0,s.history.back()),forward:x=>{x&&(y=!0),w=!0,s.history.forward()},go:x=>{m=!0,s.history.go(x)},createHref:x=>c(x),flush:P,destroy:()=>{s.history.pushState=n,s.history.replaceState=r,s.removeEventListener(_o,M,{capture:!0}),s.removeEventListener(xo,A)},onBlocked:()=>{u&&d!==u&&(d=u)},getBlockers:i,setBlockers:a,notifyOnIndexChange:!1});return s.addEventListener(_o,M,{capture:!0}),s.addEventListener(xo,A),s.history.pushState=function(...x){const T=n.apply(s.history,x);return S._ignoreSubscribers||I("PUSH"),T},s.history.replaceState=function(...x){const T=r.apply(s.history,x);return S._ignoreSubscribers||I("REPLACE"),T},S}function Tu(e={initialEntries:["/"]}){const t=e.initialEntries;let s=e.initialIndex?Math.min(Math.max(e.initialIndex,0),t.length-1):t.length-1;const n=t.map((o,i)=>gi(i,void 0));return Va({getLocation:()=>hn(t[s],n[s]),getLength:()=>t.length,pushState:(o,i)=>{s<t.length-1&&(t.splice(s+1),n.splice(s+1)),n.push(i),t.push(o),s=Math.max(t.length-1,0)},replaceState:(o,i)=>{n[s]=i,t[s]=o},back:()=>{s=Math.max(s-1,0)},forward:()=>{s=Math.min(s+1,t.length-1)},go:o=>{s=Math.min(Math.max(s+o,0),t.length-1)},createHref:o=>o})}function hn(e,t){const s=e.indexOf("#"),n=e.indexOf("?");return{href:e,pathname:e.substring(0,s>0?n>0?Math.min(s,n):s:n>0?n:e.length),hash:s>-1?e.substring(s):"",search:n>-1?e.slice(n,s===-1?void 0:s):"",state:t||{[Nt]:0,key:Ii()}}}function Ii(){return(Math.random()+1).toString(36).substring(7)}function ds(e){return e[e.length-1]}function Fu(e){return typeof e=="function"}function Qt(e,t){return Fu(e)?e(t):e}function vi(e,t){return t.reduce((s,n)=>(s[n]=e[n],s),{})}function Ie(e,t){if(e===t)return e;const s=t,n=Ro(e)&&Ro(s);if(n||zn(e)&&zn(s)){const r=n?e:Object.keys(e),o=r.length,i=n?s:Object.keys(s),a=i.length,c=n?[]:{};let l=0;for(let d=0;d<a;d++){const u=n?d:i[d];(!n&&r.includes(u)||n)&&e[u]===void 0&&s[u]===void 0?(c[u]=void 0,l++):(c[u]=Ie(e[u],s[u]),c[u]===e[u]&&e[u]!==void 0&&l++)}return o===a&&l===o?e:c}return s}function zn(e){if(!So(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const s=t.prototype;return!(!So(s)||!s.hasOwnProperty("isPrototypeOf"))}function So(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ro(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Po(e,t){let s=Object.keys(e);return t&&(s=s.filter(n=>e[n]!==void 0)),s}function vs(e,t,s){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(zn(e)&&zn(t)){const n=(s==null?void 0:s.ignoreUndefined)??!0,r=Po(e,n),o=Po(t,n);return!(s!=null&&s.partial)&&r.length!==o.length?!1:o.every(i=>vs(e[i],t[i],s))}return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:!e.some((n,r)=>!vs(n,t[r],s)):!1}function us(e){let t,s;const n=new Promise((r,o)=>{t=r,s=o});return n.status="pending",n.resolve=r=>{n.status="resolved",n.value=r,t(r),e==null||e(r)},n.reject=r=>{n.status="rejected",s(r)},n}function Du(e){return/%[0-9A-Fa-f]{2}/.test(e)}function ft(e){return ur(e.filter(t=>t!==void 0).join("/"))}function ur(e){return e.replace(/\/{2,}/g,"/")}function Ni(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Jt(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function Hu(e){return Jt(Ni(e))}function Kn(e,t){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Uu(e,t,s){return Kn(e,s)===Kn(t,s)}function Bu({basepath:e,base:t,to:s,trailingSlash:n="never",caseSensitive:r}){var o,i;t=Wn(e,t,r),s=Wn(e,s,r);let a=Ns(t);const c=Ns(s);a.length>1&&((o=ds(a))==null?void 0:o.value)==="/"&&a.pop(),c.forEach((d,u)=>{d.value==="/"?u?u===c.length-1&&a.push(d):a=[d]:d.value===".."?a.pop():d.value==="."||a.push(d)}),a.length>1&&(((i=ds(a))==null?void 0:i.value)==="/"?n==="never"&&a.pop():n==="always"&&a.push({type:"pathname",value:"/"}));const l=ft([e,...a.map(d=>d.value)]);return ur(l)}function Ns(e){if(!e)return[];e=ur(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const s=e.split("/").filter(Boolean);return t.push(...s.map(n=>n==="$"||n==="*"?{type:"wildcard",value:n}:n.charAt(0)==="$"?{type:"param",value:n}:{type:"pathname",value:n.includes("%25")?n.split("%25").map(r=>decodeURI(r)).join("%25"):decodeURI(n)})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function On({path:e,params:t,leaveWildcards:s,leaveParams:n,decodeCharMap:r}){const o=Ns(e);function i(l){const d=t[l],u=typeof d=="string";return["*","_splat"].includes(l)?u?encodeURI(d):d:u?$u(d,r):d}const a={},c=ft(o.map(l=>{if(l.type==="wildcard"){a._splat=t._splat;const d=i("_splat");return s?`${l.value}${d??""}`:d}if(l.type==="param"){const d=l.value.substring(1);if(a[d]=t[d],n){const u=i(l.value);return`${l.value}${u??""}`}return i(d)??"undefined"}return l.value}));return{usedParams:a,interpolatedPath:c}}function $u(e,t){let s=encodeURIComponent(e);if(t)for(const[n,r]of t)s=s.replaceAll(n,r);return s}function Mn(e,t,s){const n=Vu(e,t,s);if(!(s.to&&!n))return n??{}}function Wn(e,t,s=!1){const n=s?e:e.toLowerCase(),r=s?t:t.toLowerCase();switch(!0){case n==="/":return t;case r===n:return"";case t.length<e.length:return t;case r[n.length]!=="/":return t;case r.startsWith(n):return t.slice(e.length);default:return t}}function Vu(e,t,s){if(e!=="/"&&!t.startsWith(e))return;t=Wn(e,t,s.caseSensitive);const n=Wn(e,`${s.to??"$"}`,s.caseSensitive),r=Ns(t),o=Ns(n);t.startsWith("/")||r.unshift({type:"pathname",value:"/"}),n.startsWith("/")||o.unshift({type:"pathname",value:"/"});const i={};return(()=>{for(let c=0;c<Math.max(r.length,o.length);c++){const l=r[c],d=o[c],u=c>=r.length-1,m=c>=o.length-1;if(d){if(d.type==="wildcard"){const g=decodeURI(ft(r.slice(c).map(y=>y.value)));return i["*"]=g,i._splat=g,!0}if(d.type==="pathname"){if(d.value==="/"&&!(l!=null&&l.value))return!0;if(l){if(s.caseSensitive){if(d.value!==l.value)return!1}else if(d.value.toLowerCase()!==l.value.toLowerCase())return!1}}if(!l)return!1;if(d.type==="param"){if(l.value==="/")return!1;l.value.charAt(0)!=="$"&&(i[d.value.substring(1)]=decodeURIComponent(l.value))}}if(!u&&m)return i["**"]=ft(r.slice(c+1).map(g=>g.value)),!!s.fuzzy&&(d==null?void 0:d.value)!=="/"}return!0})()?i:void 0}function Fe(e){return!!(e!=null&&e.isNotFound)}const Qn="tsr-scroll-restoration-v1_3";let qa=!1;try{qa=typeof window<"u"&&typeof window.sessionStorage=="object"}catch{}const qu=(e,t)=>{let s;return(...n)=>{s||(s=setTimeout(()=>{e(...n),s=null},t))}},hs=qa?{state:JSON.parse(window.sessionStorage.getItem(Qn)||"null")||{},set:t=>(hs.state=Qt(t,hs.state)||hs.state,window.sessionStorage.setItem(Qn,JSON.stringify(hs.state)))}:void 0,yi=e=>e.state.key||e.href;function Zu(e){const t=[];let s;for(;s=e.parentNode;)t.unshift(`${e.tagName}:nth-child(${[].indexOf.call(s.children,e)+1})`),e=s;return`${t.join(" > ")}`.toLowerCase()}let Jn=!1;function Za(e,t,s,n,r){var o;let i;try{i=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(l){console.error(l);return}const a=t||((o=window.history.state)==null?void 0:o.key),c=i[a];Jn=!0,(()=>{if(n&&c){for(const d in c){const u=c[d];if(d==="window")window.scrollTo({top:u.scrollY,left:u.scrollX,behavior:s});else if(d){const m=document.querySelector(d);m&&(m.scrollLeft=u.scrollX,m.scrollTop=u.scrollY)}}return}const l=window.location.hash.split("#")[1];if(l){const d=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(d){const u=document.getElementById(l);u&&u.scrollIntoView(d)}return}["window",...(r==null?void 0:r.filter(d=>d!=="window"))??[]].forEach(d=>{const u=d==="window"?window:document.querySelector(d);u&&u.scrollTo({top:0,left:0,behavior:s})})})(),Jn=!1}function zu(e,t){if((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),typeof document>"u"||e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,Jn=!1;const n=e.options.getScrollRestorationKey||yi;window.history.scrollRestoration="manual";const r=o=>{if(Jn||!e.isScrollRestoring)return;let i="";if(o.target===document||o.target===window)i="window";else{const c=o.target.getAttribute("data-scroll-restoration-id");c?i=`[data-scroll-restoration-id="${c}"]`:i=Zu(o.target)}const a=n(e.state.location);hs.set(c=>{const l=c[a]=c[a]||{},d=l[i]=l[i]||{};if(i==="window")d.scrollX=window.scrollX||0,d.scrollY=window.scrollY||0;else if(i){const u=document.querySelector(i);u&&(d.scrollX=u.scrollLeft||0,d.scrollY=u.scrollTop||0)}return c})};typeof document<"u"&&document.addEventListener("scroll",qu(r,100),!0),e.subscribe("onRendered",o=>{const i=n(o.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}Za(Qn,i,e.options.scrollRestorationBehavior||void 0,e.isScrollRestoring||void 0,e.options.scrollToTopSelectors||void 0),e.isScrollRestoring&&hs.set(a=>(a[i]=a[i]||{},a))})}function Ku(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const s=document.getElementById(e.state.location.hash);s&&s.scrollIntoView(t)}}}function Wu(e,t){const s=Object.entries(e).flatMap(([r,o])=>Array.isArray(o)?o.map(i=>[r,String(i)]):[[r,String(o)]]);return""+new URLSearchParams(s).toString()}function Er(e){if(!e)return"";const t=Du(e)?decodeURIComponent(e):decodeURIComponent(encodeURIComponent(e));return t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t}function Qu(e,t){const s=e;return[...new URLSearchParams(s).entries()].reduce((o,[i,a])=>{const c=o[i];return c==null?o[i]=Er(a):o[i]=Array.isArray(c)?[...c,Er(a)]:[c,Er(a)],o},{})}const Ju=Yu(JSON.parse),Gu=Xu(JSON.stringify,JSON.parse);function Yu(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));const s=Qu(t);for(const n in s){const r=s[n];if(typeof r=="string")try{s[n]=e(r)}catch{}}return s}}function Xu(e,t){function s(n){if(typeof n=="object"&&n!==null)try{return e(n)}catch{}else if(typeof n=="string"&&typeof t=="function")try{return t(n),e(n)}catch{}return n}return n=>{n={...n},Object.keys(n).forEach(o=>{const i=n[o];typeof i>"u"||i===void 0?delete n[o]:n[o]=s(i)});const r=Wu(n).toString();return r?`?${r}`:""}}const $e="__root__";function Kt(e){return!!(e!=null&&e.isRedirect)}function kr(e){return!!(e!=null&&e.isRedirect)&&e.href}function ys(e){const t=e.resolvedLocation,s=e.location,n=(t==null?void 0:t.pathname)!==s.pathname,r=(t==null?void 0:t.href)!==s.href,o=(t==null?void 0:t.hash)!==s.hash;return{fromLocation:t,toLocation:s,pathChanged:n,hrefChanged:r,hashChanged:o}}class ed{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=s=>s(),this.update=s=>{var n;s.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options;this.options={...this.options,...s},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(o=>[encodeURIComponent(o),o])):void 0,(!this.basepath||s.basepath&&s.basepath!==r.basepath)&&(s.basepath===void 0||s.basepath===""||s.basepath==="/"?this.basepath="/":this.basepath=`/${Hu(s.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?Tu({initialEntries:[this.basepath||"/"]}):Nu()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new mi(sd(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(o=>!["redirected"].includes(o.status))}}}),zu(this)),typeof window<"u"&&"CSS"in window&&typeof((n=window.CSS)==null?void 0:n.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.buildRouteTree=()=>{this.routesById={},this.routesByPath={};const s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999,defaultSsr:this.options.defaultSsr}),this.routesById[s.id]=s);const n=i=>{i.forEach((a,c)=>{a.init({originalIndex:c,defaultSsr:this.options.defaultSsr});const l=this.routesById[a.id];if(ut(!l,`Duplicate routes found with id: ${String(a.id)}`),this.routesById[a.id]=a,!a.isRoot&&a.path){const u=Jt(a.fullPath);(!this.routesByPath[u]||a.fullPath.endsWith("/"))&&(this.routesByPath[u]=a)}const d=a.children;d!=null&&d.length&&n(d)})};n([this.routeTree]);const r=[];Object.values(this.routesById).forEach((i,a)=>{var c;if(i.isRoot||!i.path)return;const l=Ni(i.fullPath),d=Ns(l);for(;d.length>1&&((c=d[0])==null?void 0:c.value)==="/";)d.shift();const u=d.map(m=>m.value==="/"?.75:m.type==="param"?.5:m.type==="wildcard"?.25:1);r.push({child:i,trimmed:l,parsed:d,index:a,scores:u})}),this.flatRoutes=r.sort((i,a)=>{const c=Math.min(i.scores.length,a.scores.length);for(let l=0;l<c;l++)if(i.scores[l]!==a.scores[l])return a.scores[l]-i.scores[l];if(i.scores.length!==a.scores.length)return a.scores.length-i.scores.length;for(let l=0;l<c;l++)if(i.parsed[l].value!==a.parsed[l].value)return i.parsed[l].value>a.parsed[l].value?1:-1;return i.index-a.index}).map((i,a)=>(i.child.rank=a,i.child))},this.subscribe=(s,n)=>{const r={eventType:s,fn:n};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=s=>{this.subscribers.forEach(n=>{n.eventType===s.type&&n.fn(s)})},this.parseLocation=(s,n)=>{const r=({pathname:c,search:l,hash:d,state:u})=>{const m=this.options.parseSearch(l),g=this.options.stringifySearch(m);return{pathname:c,searchStr:g,search:Ie(s==null?void 0:s.search,m),hash:d.split("#").reverse()[0]??"",href:`${c}${g}${d}`,state:Ie(s==null?void 0:s.state,u)}},o=r(n??this.history.location),{__tempLocation:i,__tempKey:a}=o.state;if(i&&(!a||a===this.tempLocationKey)){const c=r(i);return c.state.key=o.state.key,delete c.state.__tempLocation,{...c,maskedLocation:o}}return o},this.resolvePathWithBase=(s,n)=>Bu({basepath:this.basepath,base:s,to:ur(n),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.matchRoutes=(s,n,r)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:n},r):this.matchRoutesInternal(s,n),this.getMatchedRoutes=(s,n)=>{let r={};const o=Jt(s.pathname),i=d=>Mn(this.basepath,o,{to:d.fullPath,caseSensitive:d.options.caseSensitive??this.options.caseSensitive,fuzzy:!0});let a=(n==null?void 0:n.to)!==void 0?this.routesByPath[n.to]:void 0;a?r=i(a):a=this.flatRoutes.find(d=>{const u=i(d);return u?(r=u,!0):!1});let c=a||this.routesById[$e];const l=[c];for(;c.parentRoute;)c=c.parentRoute,l.unshift(c);return{matchedRoutes:l,routeParams:r,foundRoute:a}},this.cancelMatch=s=>{const n=this.getMatch(s);n&&(n.abortController.abort(),clearTimeout(n.pendingTimeout))},this.cancelMatches=()=>{var s;(s=this.state.pendingMatches)==null||s.forEach(n=>{this.cancelMatch(n.id)})},this.buildLocation=s=>{const n=(o={},i)=>{var a,c,l,d,u,m,g;const y=o._fromLocation?this.matchRoutes(o._fromLocation,{_buildLocation:!0}):this.state.matches,w=o.from!=null?y.find(N=>Mn(this.basepath,Jt(N.pathname),{to:o.from,caseSensitive:!1,fuzzy:!1})):void 0,b=(w==null?void 0:w.pathname)||this.latestLocation.pathname;ut(o.from==null||w!=null,"Could not find match for from: "+o.from);const _=(a=this.state.pendingMatches)!=null&&a.length?(c=ds(this.state.pendingMatches))==null?void 0:c.search:((l=ds(y))==null?void 0:l.search)||this.latestLocation.search,E=i==null?void 0:i.matchedRoutes.filter(N=>y.find(F=>F.routeId===N.id));let P;if(o.to){const N=(w==null?void 0:w.fullPath)||((d=ds(y))==null?void 0:d.fullPath)||this.latestLocation.pathname;P=this.resolvePathWithBase(N,`${o.to}`)}else{const N=this.routesById[(u=E==null?void 0:E.find(F=>{const $=On({path:F.fullPath,params:(i==null?void 0:i.routeParams)??{},decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;return ft([this.basepath,$])===b}))==null?void 0:u.id];P=this.resolvePathWithBase(b,(N==null?void 0:N.to)??b)}const L={...(m=ds(y))==null?void 0:m.params};let I=(o.params??!0)===!0?L:{...L,...Qt(o.params,L)};Object.keys(I).length>0&&(i==null||i.matchedRoutes.map(N=>{var F;return((F=N.options.params)==null?void 0:F.stringify)??N.options.stringifyParams}).filter(Boolean).forEach(N=>{I={...I,...N(I)}})),P=On({path:P,params:I??{},leaveWildcards:!1,leaveParams:s.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;let A=_;if(s._includeValidateSearch&&((g=this.options.search)!=null&&g.strict)){let N={};i==null||i.matchedRoutes.forEach(F=>{try{F.options.validateSearch&&(N={...N,...jr(F.options.validateSearch,{...N,...A})??{}})}catch{}}),A=N}A=(N=>{const F=(i==null?void 0:i.matchedRoutes.reduce((U,q)=>{var Z;const Q=[];if("search"in q.options)(Z=q.options.search)!=null&&Z.middlewares&&Q.push(...q.options.search.middlewares);else if(q.options.preSearchFilters||q.options.postSearchFilters){const Y=({search:J,next:ye})=>{let te=J;"preSearchFilters"in q.options&&q.options.preSearchFilters&&(te=q.options.preSearchFilters.reduce((oe,ae)=>ae(oe),J));const se=ye(te);return"postSearchFilters"in q.options&&q.options.postSearchFilters?q.options.postSearchFilters.reduce((oe,ae)=>ae(oe),se):se};Q.push(Y)}if(s._includeValidateSearch&&q.options.validateSearch){const Y=({search:J,next:ye})=>{const te=ye(J);try{return{...te,...jr(q.options.validateSearch,te)??{}}}catch{return te}};Q.push(Y)}return U.concat(Q)},[]))??[],$=({search:U})=>o.search?o.search===!0?U:Qt(o.search,U):{};F.push($);const V=(U,q)=>{if(U>=F.length)return q;const Z=F[U];return Z({search:q,next:Y=>V(U+1,Y)})};return V(0,N)})(A),A=Ie(_,A);const S=this.options.stringifySearch(A),x=o.hash===!0?this.latestLocation.hash:o.hash?Qt(o.hash,this.latestLocation.hash):void 0,T=x?`#${x}`:"";let D=o.state===!0?this.latestLocation.state:o.state?Qt(o.state,this.latestLocation.state):{};return D=Ie(this.latestLocation.state,D),{pathname:P,search:A,searchStr:S,state:D,hash:x??"",href:`${P}${S}${T}`,unmaskOnReload:o.unmaskOnReload}},r=(o={},i)=>{var a;const c=n(o);let l=i?n(i):void 0;if(!l){let m={};const g=(a=this.options.routeMasks)==null?void 0:a.find(y=>{const w=Mn(this.basepath,c.pathname,{to:y.from,caseSensitive:!1,fuzzy:!1});return w?(m=w,!0):!1});if(g){const{from:y,...w}=g;i={...vi(s,["from"]),...w,params:m},l=n(i)}}const d=this.getMatchedRoutes(c,o),u=n(o,d);if(l){const m=this.getMatchedRoutes(l,i),g=n(i,m);u.maskedLocation=g}return u};return s.mask?r(s,{...vi(s,["from"]),...s.mask}):r(s)},this.commitLocation=({viewTransition:s,ignoreBlocker:n,...r})=>{const o=()=>{const c=["key","__TSR_index","__hashScrollIntoViewOptions"];c.forEach(d=>{r.state[d]=this.latestLocation.state[d]});const l=vs(r.state,this.latestLocation.state);return c.forEach(d=>{delete r.state[d]}),l},i=this.latestLocation.href===r.href,a=this.commitLocationPromise;if(this.commitLocationPromise=us(()=>{a==null||a.resolve()}),i&&o())this.load();else{let{maskedLocation:c,hashScrollIntoView:l,...d}=r;c&&(d={...c,state:{...c.state,__tempKey:void 0,__tempLocation:{...d,search:d.searchStr,state:{...d.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(d.unmaskOnReload??this.options.unmaskOnReload??!1)&&(d.state.__tempKey=this.tempLocationKey)),d.state.__hashScrollIntoViewOptions=l??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[r.replace?"replace":"push"](d.href,d.state,{ignoreBlocker:n})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:n,hashScrollIntoView:r,viewTransition:o,ignoreBlocker:i,href:a,...c}={})=>{if(a){const d=this.history.location.state.__TSR_index,u=hn(a,{__TSR_index:s?d:d+1});c.to=u.pathname,c.search=this.options.parseSearch(u.search),c.hash=u.hash.slice(1)}const l=this.buildLocation({...c,_includeValidateSearch:!0});return this.commitLocation({...l,viewTransition:o,replace:s,resetScroll:n,hashScrollIntoView:r,ignoreBlocker:i})},this.navigate=({to:s,reloadDocument:n,href:r,...o})=>{if(n){if(!r){const i=this.buildLocation({to:s,...o});r=this.history.createHref(i.href)}o.replace?window.location.replace(r):window.location.href=r;return}return this.buildAndCommitLocation({...o,href:r,to:s})},this.load=async s=>{this.latestLocation=this.parseLocation(this.latestLocation);let n,r,o;for(o=new Promise(i=>{this.startTransition(async()=>{var a;try{const c=this.latestLocation,l=this.state.resolvedLocation;this.cancelMatches();let d;Ar(()=>{d=this.matchRoutes(c),this.__store.setState(u=>({...u,status:"pending",isLoading:!0,location:c,pendingMatches:d,cachedMatches:u.cachedMatches.filter(m=>!d.find(g=>g.id===m.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",...ys({resolvedLocation:l,location:c})}),this.emit({type:"onBeforeLoad",...ys({resolvedLocation:l,location:c})}),await this.loadMatches({sync:s==null?void 0:s.sync,matches:d,location:c,onReady:async()=>{this.startViewTransition(async()=>{let u,m,g;Ar(()=>{this.__store.setState(y=>{const w=y.matches,b=y.pendingMatches||y.matches;return u=w.filter(_=>!b.find(E=>E.id===_.id)),m=b.filter(_=>!w.find(E=>E.id===_.id)),g=w.filter(_=>b.find(E=>E.id===_.id)),{...y,isLoading:!1,loadedAt:Date.now(),matches:b,pendingMatches:void 0,cachedMatches:[...y.cachedMatches,...u.filter(_=>_.status!=="error")]}}),this.clearExpiredCache()}),[[u,"onLeave"],[m,"onEnter"],[g,"onStay"]].forEach(([y,w])=>{y.forEach(b=>{var _,E;(E=(_=this.looseRoutesById[b.routeId].options)[w])==null||E.call(_,b)})})})}})}catch(c){kr(c)?(n=c,this.isServer||this.navigate({...n,replace:!0,ignoreBlocker:!0})):Fe(c)&&(r=c),this.__store.setState(l=>({...l,statusCode:n?n.statusCode:r?404:l.matches.some(d=>d.status==="error")?500:200,redirect:n}))}this.latestLoadPromise===o&&((a=this.commitLocationPromise)==null||a.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),i()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(i=>({...i,statusCode:404}))},this.startViewTransition=s=>{const n=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,n&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;typeof n=="object"&&this.isViewTransitionTypesSupported?r={update:s,types:n.types}:r=s,document.startViewTransition(r)}else s()},this.updateMatch=(s,n)=>{var r;let o;const i=(r=this.state.pendingMatches)==null?void 0:r.find(d=>d.id===s),a=this.state.matches.find(d=>d.id===s),c=this.state.cachedMatches.find(d=>d.id===s),l=i?"pendingMatches":a?"matches":c?"cachedMatches":"";return l&&this.__store.setState(d=>{var u;return{...d,[l]:(u=d[l])==null?void 0:u.map(m=>m.id===s?o=n(m):m)}}),o},this.getMatch=s=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(n=>n.id===s),this.loadMatches=async({location:s,matches:n,preload:r,onReady:o,updateMatch:i=this.updateMatch,sync:a})=>{let c,l=!1;const d=async()=>{l||(l=!0,await(o==null?void 0:o()))},u=g=>!!(r&&!this.state.matches.find(y=>y.id===g));!this.isServer&&!this.state.matches.length&&d();const m=(g,y)=>{var w,b,_,E;if(kr(y)&&!y.reloadDocument)throw y;if(Kt(y)||Fe(y)){if(i(g.id,P=>({...P,status:Kt(y)?"redirected":Fe(y)?"notFound":"error",isFetching:!1,error:y,beforeLoadPromise:void 0,loaderPromise:void 0})),y.routeId||(y.routeId=g.routeId),(w=g.beforeLoadPromise)==null||w.resolve(),(b=g.loaderPromise)==null||b.resolve(),(_=g.loadPromise)==null||_.resolve(),Kt(y))throw l=!0,y=this.resolveRedirect({...y,_fromLocation:s}),y;if(Fe(y))throw this._handleNotFound(n,y,{updateMatch:i}),(E=this.serverSsr)==null||E.onMatchSettled({router:this,match:this.getMatch(g.id)}),y}};try{await new Promise((g,y)=>{(async()=>{var w,b,_,E;try{const P=(A,M,S)=>{var x,T;const{id:D,routeId:N}=n[A],F=this.looseRoutesById[N];if(M instanceof Promise)throw M;M.routerCode=S,c=c??A,m(this.getMatch(D),M);try{(T=(x=F.options).onError)==null||T.call(x,M)}catch($){M=$,m(this.getMatch(D),M)}i(D,$=>{var V,U;return(V=$.beforeLoadPromise)==null||V.resolve(),(U=$.loadPromise)==null||U.resolve(),{...$,error:M,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[A,{id:M,routeId:S}]of n.entries()){const x=this.getMatch(M),T=(w=n[A-1])==null?void 0:w.id,D=this.looseRoutesById[S],N=D.options.pendingMs??this.options.defaultPendingMs,F=!!(o&&!this.isServer&&!u(M)&&(D.options.loader||D.options.beforeLoad)&&typeof N=="number"&&N!==1/0&&(D.options.pendingComponent??((b=this.options)==null?void 0:b.defaultPendingComponent)));let $=!0;if((x.beforeLoadPromise||x.loaderPromise)&&(F&&setTimeout(()=>{try{d()}catch{}},N),await x.beforeLoadPromise,$=this.getMatch(M).status!=="success"),$){try{i(M,ce=>{const G=ce.loadPromise;return{...ce,loadPromise:us(()=>{G==null||G.resolve()}),beforeLoadPromise:us()}});const V=new AbortController;let U;F&&(U=setTimeout(()=>{try{d()}catch{}},N));const{paramsError:q,searchError:Z}=this.getMatch(M);q&&P(A,q,"PARSE_PARAMS"),Z&&P(A,Z,"VALIDATE_SEARCH");const Q=()=>T?this.getMatch(T).context:this.options.context??{};i(M,ce=>({...ce,isFetching:"beforeLoad",fetchCount:ce.fetchCount+1,abortController:V,pendingTimeout:U,context:{...Q(),...ce.__routeContext}}));const{search:Y,params:J,context:ye,cause:te}=this.getMatch(M),se=u(M),oe={search:Y,abortController:V,params:J,preload:se,context:ye,location:s,navigate:ce=>this.navigate({...ce,_fromLocation:s}),buildLocation:this.buildLocation,cause:se?"preload":te,matches:n},ae=await((E=(_=D.options).beforeLoad)==null?void 0:E.call(_,oe))??{};(Kt(ae)||Fe(ae))&&P(A,ae,"BEFORE_LOAD"),i(M,ce=>({...ce,__beforeLoadContext:ae,context:{...Q(),...ce.__routeContext,...ae},abortController:V}))}catch(V){P(A,V,"BEFORE_LOAD")}i(M,V=>{var U;return(U=V.beforeLoadPromise)==null||U.resolve(),{...V,beforeLoadPromise:void 0,isFetching:!1}})}}const L=n.slice(0,c),I=[];L.forEach(({id:A,routeId:M},S)=>{I.push((async()=>{const{loaderPromise:x}=this.getMatch(A);let T=!1,D=!1;if(x){await x;const N=this.getMatch(A);N.error&&m(N,N.error)}else{const N=I[S-1],F=this.looseRoutesById[M],$=()=>{const{params:te,loaderDeps:se,abortController:oe,context:ae,cause:ce}=this.getMatch(A),G=u(A);return{params:te,deps:se,preload:!!G,parentMatchPromise:N,abortController:oe,context:ae,location:s,navigate:ie=>this.navigate({...ie,_fromLocation:s}),cause:G?"preload":ce,route:F}},V=Date.now()-this.getMatch(A).updatedAt,U=u(A),q=U?F.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:F.options.staleTime??this.options.defaultStaleTime??0,Z=F.options.shouldReload,Q=typeof Z=="function"?Z($()):Z;i(A,te=>({...te,loaderPromise:us(),preload:!!U&&!this.state.matches.find(se=>se.id===A)}));const Y=async()=>{var te,se,oe,ae,ce,G,ie,Ke,Me,We,Le;try{const ke=async()=>{const he=this.getMatch(A);he.minPendingPromise&&await he.minPendingPromise};try{this.loadRouteChunk(F),i(A,qt=>({...qt,isFetching:"loader"}));const he=await((se=(te=F.options).loader)==null?void 0:se.call(te,$()));m(this.getMatch(A),he),await F._lazyPromise,await ke();const we={matches:n,match:this.getMatch(A),params:this.getMatch(A).params,loaderData:he},pe=(ae=(oe=F.options).head)==null?void 0:ae.call(oe,we),wt=pe==null?void 0:pe.meta,it=pe==null?void 0:pe.links,Cn=pe==null?void 0:pe.scripts,ne=(G=(ce=F.options).scripts)==null?void 0:G.call(ce,we),le=(Ke=(ie=F.options).headers)==null?void 0:Ke.call(ie,{loaderData:he});i(A,qt=>({...qt,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:he,meta:wt,links:it,headScripts:Cn,headers:le,scripts:ne}))}catch(he){let we=he;await ke(),m(this.getMatch(A),he);try{(We=(Me=F.options).onError)==null||We.call(Me,he)}catch(pe){we=pe,m(this.getMatch(A),pe)}i(A,pe=>({...pe,error:we,status:"error",isFetching:!1}))}(Le=this.serverSsr)==null||Le.onMatchSettled({router:this,match:this.getMatch(A)}),await F._componentsPromise}catch(ke){i(A,he=>({...he,loaderPromise:void 0})),m(this.getMatch(A),ke)}},{status:J,invalid:ye}=this.getMatch(A);T=J==="success"&&(ye||(Q??V>q)),U&&F.options.preload===!1||(T&&!a?(D=!0,(async()=>{try{await Y();const{loaderPromise:te,loadPromise:se}=this.getMatch(A);te==null||te.resolve(),se==null||se.resolve(),i(A,oe=>({...oe,loaderPromise:void 0}))}catch(te){kr(te)&&await this.navigate(te)}})()):(J!=="success"||T&&a)&&await Y())}if(!D){const{loaderPromise:N,loadPromise:F}=this.getMatch(A);N==null||N.resolve(),F==null||F.resolve()}return i(A,N=>({...N,isFetching:D?N.isFetching:!1,loaderPromise:D?N.loaderPromise:void 0,invalid:!1})),this.getMatch(A)})())}),await Promise.all(I),g()}catch(P){y(P)}})()}),await d()}catch(g){if(Kt(g)||Fe(g))throw Fe(g)&&!r&&await d(),g}return n},this.invalidate=s=>{const n=r=>{var o;return((o=s==null?void 0:s.filter)==null?void 0:o.call(s,r))??!0?{...r,invalid:!0,...r.status==="error"?{status:"pending",error:void 0}:{}}:r};return this.__store.setState(r=>{var o;return{...r,matches:r.matches.map(n),cachedMatches:r.cachedMatches.map(n),pendingMatches:(o=r.pendingMatches)==null?void 0:o.map(n)}}),this.load({sync:s==null?void 0:s.sync})},this.resolveRedirect=s=>{const n=s;return n.href||(n.href=this.buildLocation(n).href),n},this.clearCache=s=>{const n=s==null?void 0:s.filter;n!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(o=>!n(o))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const s=n=>{const r=this.looseRoutesById[n.routeId];if(!r.options.loader)return!0;const o=(n.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return!(n.status!=="error"&&Date.now()-n.updatedAt<o)};this.clearCache({filter:s})},this.loadRouteChunk=s=>(s._lazyPromise===void 0&&(s.lazyFn?s._lazyPromise=s.lazyFn().then(n=>{const{id:r,...o}=n.options;Object.assign(s.options,o)}):s._lazyPromise=Promise.resolve()),s._componentsPromise===void 0&&(s._componentsPromise=s._lazyPromise.then(()=>Promise.all(za.map(async n=>{const r=s.options[n];r!=null&&r.preload&&await r.preload()})))),s._componentsPromise),this.preloadRoute=async s=>{const n=this.buildLocation(s);let r=this.matchRoutes(n,{throwOnError:!0,preload:!0,dest:s});const o=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(a=>a.id)),i=new Set([...o,...this.state.cachedMatches.map(a=>a.id)]);Ar(()=>{r.forEach(a=>{i.has(a.id)||this.__store.setState(c=>({...c,cachedMatches:[...c.cachedMatches,a]}))})});try{return r=await this.loadMatches({matches:r,location:n,preload:!0,updateMatch:(a,c)=>{o.has(a)?r=r.map(l=>l.id===a?c(l):l):this.updateMatch(a,c)}}),r}catch(a){if(Kt(a))return a.reloadDocument?void 0:await this.preloadRoute({...a,_fromLocation:n});Fe(a)||console.error(a);return}},this.matchRoute=(s,n)=>{const r={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},o=this.buildLocation(r);if(n!=null&&n.pending&&this.state.status!=="pending")return!1;const a=((n==null?void 0:n.pending)===void 0?!this.state.isLoading:n.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,c=Mn(this.basepath,a.pathname,{...n,to:o.pathname});return!c||s.params&&!vs(c,s.params,{partial:!0})?!1:c&&((n==null?void 0:n.includeSearch)??!0)?vs(a.search,o.search,{partial:!0})?c:!1:c},this._handleNotFound=(s,n,{updateMatch:r=this.updateMatch}={})=>{var o;const i=this.routesById[n.routeId??""]??this.routeTree,a={};for(const l of s)a[l.routeId]=l;!i.options.notFoundComponent&&((o=this.options)!=null&&o.defaultNotFoundComponent)&&(i.options.notFoundComponent=this.options.defaultNotFoundComponent),ut(i.options.notFoundComponent);const c=a[i.id];ut(c,"Could not find match for route: "+i.id),r(c.id,l=>({...l,status:"notFound",error:n,isFetching:!1})),n.routerCode==="BEFORE_LOAD"&&i.parentRoute&&(n.routeId=i.parentRoute.id,this._handleNotFound(s,n,{updateMatch:r}))},this.hasNotFoundMatch=()=>this.__store.state.matches.some(s=>s.status==="notFound"||s.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??Gu,parseSearch:t.parseSearch??Ju}),typeof document<"u"&&(window.__TSR_ROUTER__=this)}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,s){const{foundRoute:n,matchedRoutes:r,routeParams:o}=this.getMatchedRoutes(t,s==null?void 0:s.dest);let i=!1;(n?n.path!=="/"&&o["**"]:Jt(t.pathname))&&(this.options.notFoundRoute?r.push(this.options.notFoundRoute):i=!0);const a=(()=>{if(i){if(this.options.notFoundMode!=="root")for(let u=r.length-1;u>=0;u--){const m=r[u];if(m.children)return m.id}return $e}})(),c=r.map(u=>{var m;let g;const y=((m=u.options.params)==null?void 0:m.parse)??u.options.parseParams;if(y)try{const w=y(o);Object.assign(o,w)}catch(w){if(g=new td(w.message,{cause:w}),s!=null&&s.throwOnError)throw g;return g}}),l=[],d=u=>(u==null?void 0:u.id)?u.context??this.options.context??{}:this.options.context??{};return r.forEach((u,m)=>{var g,y;const w=l[m-1],[b,_,E]=(()=>{const F=(w==null?void 0:w.search)??t.search,$=(w==null?void 0:w._strictSearch)??{};try{const V=jr(u.options.validateSearch,{...F})??{};return[{...F,...V},{...$,...V},void 0]}catch(V){let U=V;if(V instanceof Gn||(U=new Gn(V.message,{cause:V})),s!=null&&s.throwOnError)throw U;return[F,{},U]}})(),P=((y=(g=u.options).loaderDeps)==null?void 0:y.call(g,{search:b}))??"",L=P?JSON.stringify(P):"",{usedParams:I,interpolatedPath:A}=On({path:u.fullPath,params:o,decodeCharMap:this.pathParamsDecodeCharMap}),M=On({path:u.id,params:o,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath+L,S=this.getMatch(M),x=this.state.matches.find(F=>F.routeId===u.id),T=x?"stay":"enter";let D;if(S)D={...S,cause:T,params:x?Ie(x.params,o):o,_strictParams:I,search:Ie(x?x.search:S.search,b),_strictSearch:_};else{const F=u.options.loader||u.options.beforeLoad||u.lazyFn||nd(u)?"pending":"success";D={id:M,index:m,routeId:u.id,params:x?Ie(x.params,o):o,_strictParams:I,pathname:ft([this.basepath,A]),updatedAt:Date.now(),search:x?Ie(x.search,b):b,_strictSearch:_,searchError:void 0,status:F,isFetching:!1,error:void 0,paramsError:c[m],__routeContext:{},__beforeLoadContext:{},context:{},abortController:new AbortController,fetchCount:0,cause:T,loaderDeps:x?Ie(x.loaderDeps,P):P,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:u.options.staticData||{},loadPromise:us(),fullPath:u.fullPath}}s!=null&&s.preload||(D.globalNotFound=a===u.id),D.searchError=E;const N=d(w);D.context={...N,...D.__routeContext,...D.__beforeLoadContext},l.push(D)}),l.forEach((u,m)=>{var g,y,w,b,_,E,P,L;const I=this.looseRoutesById[u.routeId];if(!this.getMatch(u.id)&&(s==null?void 0:s._buildLocation)!==!0){const M=l[m-1],S=d(M),x={deps:u.loaderDeps,params:u.params,context:S,location:t,navigate:T=>this.navigate({...T,_fromLocation:t}),buildLocation:this.buildLocation,cause:u.cause,abortController:u.abortController,preload:!!u.preload,matches:l};u.__routeContext=((y=(g=I.options).context)==null?void 0:y.call(g,x))??{},u.context={...S,...u.__routeContext,...u.__beforeLoadContext}}if(u.status==="success"){u.headers=(b=(w=I.options).headers)==null?void 0:b.call(w,{loaderData:u.loaderData});const M={matches:l,match:u,params:u.params,loaderData:u.loaderData},S=(E=(_=I.options).head)==null?void 0:E.call(_,M);u.links=S==null?void 0:S.links,u.headScripts=S==null?void 0:S.scripts,u.meta=S==null?void 0:S.meta,u.scripts=(L=(P=I.options).scripts)==null?void 0:L.call(P,M)}}),l}}class Gn extends Error{}class td extends Error{}function sd(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function jr(e,t){if(e==null)return{};if("~standard"in e){const s=e["~standard"].validate(t);if(s instanceof Promise)throw new Gn("Async validation not supported");if(s.issues)throw new Gn(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}const za=["component","errorComponent","pendingComponent","notFoundComponent"];function nd(e){var t;for(const s of za)if((t=e.options[s])!=null&&t.preload)return!0;return!1}const rd="Error preloading route! ☝️";class Ka{constructor(t){if(this.init=s=>{var n,r;this.originalIndex=s.originalIndex;const o=this.options,i=!(o!=null&&o.path)&&!(o!=null&&o.id);if(this.parentRoute=(r=(n=this.options).getParentRoute)==null?void 0:r.call(n),i)this._path=$e;else if(!this.parentRoute)throw new Error("Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.");let a=i?$e:o==null?void 0:o.path;a&&a!=="/"&&(a=Ni(a));const c=(o==null?void 0:o.id)||a;let l=i?$e:ft([this.parentRoute.id===$e?"":this.parentRoute.id,c]);a===$e&&(a="/"),l!==$e&&(l=ft(["/",l]));const d=l===$e?"/":ft([this.parentRoute.fullPath,a]);this._path=a,this._id=l,this._fullPath=d,this._to=d,this._ssr=(o==null?void 0:o.ssr)??s.defaultSsr??!0},this.addChildren=s=>this._addFileChildren(s),this._addFileChildren=s=>(Array.isArray(s)&&(this.children=s),typeof s=="object"&&s!==null&&(this.children=Object.values(s)),this),this._addFileTypes=()=>this,this.updateLoader=s=>(Object.assign(this.options,s),this),this.update=s=>(Object.assign(this.options,s),this),this.lazy=s=>(this.lazyFn=s,this),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),t!=null&&t.id&&(t!=null&&t.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}get ssr(){return this._ssr}}class id extends Ka{constructor(t){super(t)}}function Ti(e){const t=e.errorComponent??dr;return f.jsx(od,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:s,reset:n})=>s?p.createElement(t,{error:s,reset:n}):e.children})}class od extends p.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,s){this.props.onCatch&&this.props.onCatch(t,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function dr({error:e}){const[t,s]=p.useState(!1);return f.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[f.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),f.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(n=>!n),children:t?"Hide Error":"Show Error"})]}),f.jsx("div",{style:{height:".25rem"}}),t?f.jsx("div",{children:f.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?f.jsx("code",{children:e.message}):null})}):null]})}var Or={exports:{}},Mr={},Lr={exports:{}},Ir={};/**
2
- * @license React
3
- * use-sync-external-store-shim.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 Co;function ad(){if(Co)return Ir;Co=1;var e=wa();function t(u,m){return u===m&&(u!==0||1/u===1/m)||u!==u&&m!==m}var s=typeof Object.is=="function"?Object.is:t,n=e.useState,r=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function a(u,m){var g=m(),y=n({inst:{value:g,getSnapshot:m}}),w=y[0].inst,b=y[1];return o(function(){w.value=g,w.getSnapshot=m,c(w)&&b({inst:w})},[u,g,m]),r(function(){return c(w)&&b({inst:w}),u(function(){c(w)&&b({inst:w})})},[u]),i(g),g}function c(u){var m=u.getSnapshot;u=u.value;try{var g=m();return!s(u,g)}catch{return!0}}function l(u,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:a;return Ir.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Ir}var Ao;function cd(){return Ao||(Ao=1,Lr.exports=ad()),Lr.exports}/**
10
- * @license React
11
- * use-sync-external-store-shim/with-selector.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 Eo;function ld(){if(Eo)return Mr;Eo=1;var e=wa(),t=cd();function s(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var n=typeof Object.is=="function"?Object.is:s,r=t.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,c=e.useDebugValue;return Mr.useSyncExternalStoreWithSelector=function(l,d,u,m,g){var y=o(null);if(y.current===null){var w={hasValue:!1,value:null};y.current=w}else w=y.current;y=a(function(){function _(A){if(!E){if(E=!0,P=A,A=m(A),g!==void 0&&w.hasValue){var M=w.value;if(g(M,A))return L=M}return L=A}if(M=L,n(P,A))return M;var S=m(A);return g!==void 0&&g(M,S)?(P=A,M):(P=A,L=S)}var E=!1,P,L,I=u===void 0?null:u;return[function(){return _(d())},I===null?void 0:function(){return _(I())}]},[d,u,m,g]);var b=r(l,y[0],y[1]);return i(function(){w.hasValue=!0,w.value=b},[b]),c(b),b},Mr}var ko;function ud(){return ko||(ko=1,Or.exports=ld()),Or.exports}var dd=ud();function hd(e,t=s=>s){return dd.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,fd)}function fd(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[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!1;for(let n=0;n<s.length;n++)if(!Object.prototype.hasOwnProperty.call(t,s[n])||!Object.is(e[s[n]],t[s[n]]))return!1;return!0}const Nr=p.createContext(null);function Wa(){return typeof document>"u"?Nr:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Nr,Nr)}function He(e){const t=p.useContext(Wa());return e==null||e.warn,t}function ve(e){const t=He({warn:(e==null?void 0:e.router)===void 0}),s=(e==null?void 0:e.router)||t,n=p.useRef(void 0);return hd(s.__store,r=>{if(e!=null&&e.select){if(e.structuralSharing??s.options.defaultStructuralSharing){const o=Ie(n.current,e.select(r));return n.current=o,o}return e.select(r)}return r})}const hr=p.createContext(void 0),pd=p.createContext(void 0);function Ft(e){const t=p.useContext(e.from?pd:hr);return ve({select:n=>{const r=n.matches.find(o=>e.from?e.from===o.routeId:o.id===t);if(ut(!((e.shouldThrow??!0)&&!r),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),r!==void 0)return e.select?e.select(r):r},structuralSharing:e.structuralSharing})}function Qa(e){return Ft({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Ja(e){const{select:t,...s}=e;return Ft({...s,select:n=>t?t(n.loaderDeps):n.loaderDeps})}function Ga(e){return Ft({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.params):t.params})}function Ya(e){return Ft({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Xa(e){const{navigate:t}=He();return p.useCallback(s=>t({from:e==null?void 0:e.from,...s}),[e==null?void 0:e.from,t])}let md=class extends Ka{constructor(t){super(t),this.useMatch=s=>Ft({select:s==null?void 0:s.select,from:this.id,structuralSharing:s==null?void 0:s.structuralSharing}),this.useRouteContext=s=>Ft({...s,from:this.id,select:n=>s!=null&&s.select?s.select(n.context):n.context}),this.useSearch=s=>Ya({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useParams=s=>Ga({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Ja({...s,from:this.id}),this.useLoaderData=s=>Qa({...s,from:this.id}),this.useNavigate=()=>Xa({from:this.fullPath}),this.$$typeof=Symbol.for("react.memo")}};function wi(e){return new md(e)}let gd=class extends id{constructor(t){super(t),this.useMatch=s=>Ft({select:s==null?void 0:s.select,from:this.id,structuralSharing:s==null?void 0:s.structuralSharing}),this.useRouteContext=s=>Ft({...s,from:this.id,select:n=>s!=null&&s.select?s.select(n.context):n.context}),this.useSearch=s=>Ya({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useParams=s=>Ga({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Ja({...s,from:this.id}),this.useLoaderData=s=>Qa({...s,from:this.id}),this.useNavigate=()=>Xa({from:this.fullPath}),this.$$typeof=Symbol.for("react.memo")}};function vd(e){return new gd(e)}function yd(e){const t=ve({select:s=>`not-found-${s.location.pathname}-${s.status}`});return f.jsx(Ti,{getResetKey:()=>t,onCatch:(s,n)=>{var r;if(Fe(s))(r=e.onCatch)==null||r.call(e,s,n);else throw s},errorComponent:({error:s})=>{var n;if(Fe(s))return(n=e.fallback)==null?void 0:n.call(e,s);throw s},children:e.children})}function wd(){return f.jsx("p",{children:"Not Found"})}function Bn(e){return f.jsx(f.Fragment,{children:e.children})}function ec(e,t,s){return t.options.notFoundComponent?f.jsx(t.options.notFoundComponent,{data:s}):e.options.defaultNotFoundComponent?f.jsx(e.options.defaultNotFoundComponent,{data:s}):f.jsx(wd,{})}var Tr,jo;function bd(){if(jo)return Tr;jo=1;const e={},t=e.hasOwnProperty,s=(S,x)=>{for(const T in S)t.call(S,T)&&x(T,S[T])},n=(S,x)=>(x&&s(x,(T,D)=>{S[T]=D}),S),r=(S,x)=>{const T=S.length;let D=-1;for(;++D<T;)x(S[D])},o=S=>"\\u"+("0000"+S).slice(-4),i=(S,x)=>{let T=S.toString(16);return x?T:T.toUpperCase()},a=e.toString,c=Array.isArray,l=S=>typeof Buffer=="function"&&Buffer.isBuffer(S),d=S=>a.call(S)=="[object Object]",u=S=>typeof S=="string"||a.call(S)=="[object String]",m=S=>typeof S=="number"||a.call(S)=="[object Number]",g=S=>typeof S=="bigint",y=S=>typeof S=="function",w=S=>a.call(S)=="[object Map]",b=S=>a.call(S)=="[object Set]",_={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},E=/[\\\b\f\n\r\t]/,P=/[0-9]/,L=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,I=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,A=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,M=(S,x)=>{const T=()=>{q=U,++x.indentLevel,U=x.indent.repeat(x.indentLevel)},D={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},N=x&&x.json;N&&(D.quotes="double",D.wrap=!0),x=n(D,x),x.quotes!="single"&&x.quotes!="double"&&x.quotes!="backtick"&&(x.quotes="single");const F=x.quotes=="double"?'"':x.quotes=="backtick"?"`":"'",$=x.compact,V=x.lowercaseHex;let U=x.indent.repeat(x.indentLevel),q="";const Z=x.__inline1__,Q=x.__inline2__,Y=$?"":`
18
- `;let J,ye=!0;const te=x.numbers=="binary",se=x.numbers=="octal",oe=x.numbers=="decimal",ae=x.numbers=="hexadecimal";if(N&&S&&y(S.toJSON)&&(S=S.toJSON()),!u(S)){if(w(S))return S.size==0?"new Map()":($||(x.__inline1__=!0,x.__inline2__=!1),"new Map("+M(Array.from(S),x)+")");if(b(S))return S.size==0?"new Set()":"new Set("+M(Array.from(S),x)+")";if(l(S))return S.length==0?"Buffer.from([])":"Buffer.from("+M(Array.from(S),x)+")";if(c(S))return J=[],x.wrap=!0,Z&&(x.__inline1__=!1,x.__inline2__=!0),Q||T(),r(S,G=>{ye=!1,Q&&(x.__inline2__=!1),J.push(($||Q?"":U)+M(G,x))}),ye?"[]":Q?"["+J.join(", ")+"]":"["+Y+J.join(","+Y)+Y+($?"":q)+"]";if(m(S)||g(S)){if(N)return JSON.stringify(Number(S));let G;if(oe)G=String(S);else if(ae){let ie=S.toString(16);V||(ie=ie.toUpperCase()),G="0x"+ie}else te?G="0b"+S.toString(2):se&&(G="0o"+S.toString(8));return g(S)?G+"n":G}else return g(S)?N?JSON.stringify(Number(S)):S+"n":d(S)?(J=[],x.wrap=!0,T(),s(S,(G,ie)=>{ye=!1,J.push(($?"":U)+M(G,x)+":"+($?"":" ")+M(ie,x))}),ye?"{}":"{"+Y+J.join(","+Y)+Y+($?"":q)+"}"):N?JSON.stringify(S)||"null":String(S)}const ce=x.escapeEverything?I:A;return J=S.replace(ce,(G,ie,Ke,Me,We,Le)=>{if(ie){if(x.minimal)return ie;const he=ie.charCodeAt(0),we=ie.charCodeAt(1);if(x.es6){const pe=(he-55296)*1024+we-56320+65536;return"\\u{"+i(pe,V)+"}"}return o(i(he,V))+o(i(we,V))}if(Ke)return o(i(Ke.charCodeAt(0),V));if(G=="\0"&&!N&&!P.test(Le.charAt(We+1)))return"\\0";if(Me)return Me==F||x.escapeEverything?"\\"+Me:Me;if(E.test(G))return _[G];if(x.minimal&&!L.test(G))return G;const ke=i(G.charCodeAt(0),V);return N||ke.length>2?o(ke):"\\x"+("00"+ke).slice(-2)}),F=="`"&&(J=J.replace(/\$\{/g,"\\${")),x.isScriptContext&&(J=J.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,N?"\\u003C!--":"\\x3C!--")),x.wrap&&(J=F+J+F),J};return M.version="3.0.2",Tr=M,Tr}bd();function xd({children:e,log:t}){return typeof document<"u"?null:f.jsx("script",{className:"tsr-once",dangerouslySetInnerHTML:{__html:[e,"",'if (typeof __TSR_SSR__ !== "undefined") __TSR_SSR__.cleanScripts()'].filter(Boolean).join(`
19
- `)}})}function _d(){const e=He(),s=(e.options.getScrollRestorationKey||yi)(e.latestLocation),n=s!==yi(e.latestLocation)?s:null;return!e.isScrollRestoring||!e.isServer?null:f.jsx(xd,{children:`(${Za.toString()})(${JSON.stringify(Qn)},${JSON.stringify(n)}, undefined, true)`,log:!1})}const tc=p.memo(function({matchId:t}){var s,n;const r=He(),o=ve({select:_=>{var E;return(E=_.matches.find(P=>P.id===t))==null?void 0:E.routeId}});ut(o);const i=r.routesById[o],a=i.options.pendingComponent??r.options.defaultPendingComponent,c=a?f.jsx(a,{}):null,l=i.options.errorComponent??r.options.defaultErrorComponent,d=i.options.onCatch??r.options.defaultOnCatch,u=i.isRoot?i.options.notFoundComponent??((s=r.options.notFoundRoute)==null?void 0:s.options.component):i.options.notFoundComponent,m=(!i.isRoot||i.options.wrapInSuspense)&&(i.options.wrapInSuspense??a??((n=i.options.errorComponent)==null?void 0:n.preload))?p.Suspense:Bn,g=l?Ti:Bn,y=u?yd:Bn,w=ve({select:_=>_.loadedAt}),b=ve({select:_=>{var E;const P=_.matches.findIndex(L=>L.id===t);return(E=_.matches[P-1])==null?void 0:E.routeId}});return f.jsxs(f.Fragment,{children:[f.jsx(hr.Provider,{value:t,children:f.jsx(m,{fallback:c,children:f.jsx(g,{getResetKey:()=>w,errorComponent:l||dr,onCatch:(_,E)=>{if(Fe(_))throw _;d==null||d(_,E)},children:f.jsx(y,{fallback:_=>{if(!u||_.routeId&&_.routeId!==o||!_.routeId&&!i.isRoot)throw _;return p.createElement(u,_)},children:f.jsx(Rd,{matchId:t})})})})}),b===$e&&r.options.scrollRestoration?f.jsxs(f.Fragment,{children:[f.jsx(Sd,{}),f.jsx(_d,{})]}):null]})});function Sd(){var e;const t=He(),s=p.useRef(void 0);return f.jsx("script",{suppressHydrationWarning:!0,ref:n=>{var r;n&&(s.current===void 0||s.current.href!==((r=t.state.resolvedLocation)==null?void 0:r.href))&&(t.emit({type:"onRendered",...ys(t.state)}),s.current=t.state.resolvedLocation)}},(e=t.state.resolvedLocation)==null?void 0:e.state.key)}const Rd=p.memo(function({matchId:t}){var s,n,r;const o=He(),{match:i,key:a,routeId:c}=ve({select:m=>{const g=m.matches.findIndex(P=>P.id===t),y=m.matches[g],w=y.routeId,b=o.routesById[w].options.remountDeps??o.options.defaultRemountDeps,_=b==null?void 0:b({routeId:w,loaderDeps:y.loaderDeps,params:y._strictParams,search:y._strictSearch});return{key:_?JSON.stringify(_):void 0,routeId:w,match:vi(y,["id","status","error"])}},structuralSharing:!0}),l=o.routesById[c],d=p.useMemo(()=>{const m=l.options.component??o.options.defaultComponent;return m?f.jsx(m,{},a):f.jsx(Fi,{})},[a,l.options.component,o.options.defaultComponent]),u=(l.options.errorComponent??o.options.defaultErrorComponent)||dr;if(i.status==="notFound")return ut(Fe(i.error)),ec(o,l,i.error);if(i.status==="redirected")throw ut(Kt(i.error)),(s=o.getMatch(i.id))==null?void 0:s.loadPromise;if(i.status==="error"){if(o.isServer)return f.jsx(u,{error:i.error,reset:void 0,info:{componentStack:""}});throw i.error}if(i.status==="pending"){const m=l.options.pendingMinMs??o.options.defaultPendingMinMs;if(m&&!((n=o.getMatch(i.id))!=null&&n.minPendingPromise)&&!o.isServer){const g=us();Promise.resolve().then(()=>{o.updateMatch(i.id,y=>({...y,minPendingPromise:g}))}),setTimeout(()=>{g.resolve(),o.updateMatch(i.id,y=>({...y,minPendingPromise:void 0}))},m)}throw(r=o.getMatch(i.id))==null?void 0:r.loadPromise}return d}),Fi=p.memo(function(){const t=He(),s=p.useContext(hr),n=ve({select:l=>{var d;return(d=l.matches.find(u=>u.id===s))==null?void 0:d.routeId}}),r=t.routesById[n],o=ve({select:l=>{const u=l.matches.find(m=>m.id===s);return ut(u),u.globalNotFound}}),i=ve({select:l=>{var d;const u=l.matches,m=u.findIndex(g=>g.id===s);return(d=u[m+1])==null?void 0:d.id}});if(o)return ec(t,r,void 0);if(!i)return null;const a=f.jsx(tc,{matchId:i}),c=t.options.defaultPendingComponent?f.jsx(t.options.defaultPendingComponent,{}):null;return s===$e?f.jsx(p.Suspense,{fallback:c,children:a}):a}),nn=typeof window<"u"?p.useLayoutEffect:p.useEffect;function Fr(e){const t=p.useRef({value:e,prev:null}),s=t.current.value;return e!==s&&(t.current={value:e,prev:s}),t.current.prev}function Pd(e,t,s={},n={}){const r=p.useRef(typeof IntersectionObserver=="function"),o=p.useRef(null);return p.useEffect(()=>{if(!(!e.current||!r.current||n.disabled))return o.current=new IntersectionObserver(([i])=>{t(i)},s),o.current.observe(e.current),()=>{var i;(i=o.current)==null||i.disconnect()}},[t,s,n.disabled,e]),o.current}function Cd(e){const t=p.useRef(null);return p.useImperativeHandle(e,()=>t.current,[]),t}function Ad(){const e=He(),t=p.useRef({router:e,mounted:!1}),s=ve({select:({isLoading:u})=>u}),[n,r]=p.useState(!1),o=ve({select:u=>u.matches.some(m=>m.status==="pending"),structuralSharing:!0}),i=Fr(s),a=s||n||o,c=Fr(a),l=s||o,d=Fr(l);return e.isServer||(e.startTransition=u=>{r(!0),p.startTransition(()=>{u(),r(!1)})}),p.useEffect(()=>{const u=e.history.subscribe(e.load),m=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Jt(e.latestLocation.href)!==Jt(m.href)&&e.commitLocation({...m,replace:!0}),()=>{u()}},[e,e.history]),nn(()=>{if(typeof window<"u"&&e.clientSsr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(m){console.error(m)}})()},[e]),nn(()=>{i&&!s&&e.emit({type:"onLoad",...ys(e.state)})},[i,e,s]),nn(()=>{d&&!l&&e.emit({type:"onBeforeRouteMount",...ys(e.state)})},[l,d,e]),nn(()=>{c&&!a&&(e.emit({type:"onResolved",...ys(e.state)}),e.__store.setState(u=>({...u,status:"idle",resolvedLocation:u.location})),Ku(e))},[a,c,e]),null}function Ed(){const e=He(),t=e.options.defaultPendingComponent?f.jsx(e.options.defaultPendingComponent,{}):null,s=e.isServer||typeof document<"u"&&e.clientSsr?Bn:p.Suspense,n=f.jsxs(s,{fallback:t,children:[f.jsx(Ad,{}),f.jsx(kd,{})]});return e.options.InnerWrap?f.jsx(e.options.InnerWrap,{children:n}):n}function kd(){const e=ve({select:s=>{var n;return(n=s.matches[0])==null?void 0:n.id}}),t=ve({select:s=>s.loadedAt});return f.jsx(hr.Provider,{value:e,children:f.jsx(Ti,{getResetKey:()=>t,errorComponent:dr,onCatch:s=>{s.message||s.toString()},children:e?f.jsx(tc,{matchId:e}):null})})}function jd(e){return ve({select:t=>{const s=t.matches;return e!=null&&e.select?e.select(s):s},structuralSharing:e==null?void 0:e.structuralSharing})}function Od(e,t){const s=He(),[n,r]=p.useState(!1),o=p.useRef(!1),i=Cd(t),{activeProps:a=()=>({className:"active"}),inactiveProps:c=()=>({}),activeOptions:l,to:d,preload:u,preloadDelay:m,hashScrollIntoView:g,replace:y,startTransition:w,resetScroll:b,viewTransition:_,children:E,target:P,disabled:L,style:I,className:A,onClick:M,onFocus:S,onMouseEnter:x,onMouseLeave:T,onTouchStart:D,ignoreBlocker:N,...F}=e,{params:$,search:V,hash:U,state:q,mask:Z,reloadDocument:Q,...Y}=F,J=p.useMemo(()=>{try{return new URL(`${d}`),"external"}catch{}return"internal"},[d]),ye=ve({select:ne=>ne.location.search,structuralSharing:!0}),te=jd({select:ne=>{var le;return e.from??((le=ne[ne.length-1])==null?void 0:le.fullPath)}}),se=p.useMemo(()=>({...e,from:te}),[e,te]),oe=p.useMemo(()=>s.buildLocation(se),[s,se,ye]),ae=p.useMemo(()=>se.reloadDocument?!1:u??s.options.defaultPreload,[s.options.defaultPreload,u,se.reloadDocument]),ce=m??s.options.defaultPreloadDelay??0,G=ve({select:ne=>{if(l!=null&&l.exact){if(!Uu(ne.location.pathname,oe.pathname,s.basepath))return!1}else{const le=Kn(ne.location.pathname,s.basepath).split("/");if(!Kn(oe.pathname,s.basepath).split("/").every((wl,bl)=>wl===le[bl]))return!1}return((l==null?void 0:l.includeSearch)??!0)&&!vs(ne.location.search,oe.search,{partial:!(l!=null&&l.exact),ignoreUndefined:!(l!=null&&l.explicitUndefined)})?!1:l!=null&&l.includeHash?ne.location.hash===oe.hash:!0}}),ie=p.useCallback(()=>{s.preloadRoute(se).catch(ne=>{console.warn(ne),console.warn(rd)})},[se,s]),Ke=p.useCallback(ne=>{ne!=null&&ne.isIntersecting&&ie()},[ie]);if(Pd(i,Ke,{rootMargin:"100px"},{disabled:!!L||ae!=="viewport"}),nn(()=>{o.current||!L&&ae==="render"&&(ie(),o.current=!0)},[L,ie,ae]),J==="external")return{...Y,ref:i,type:J,href:d,...E&&{children:E},...P&&{target:P},...L&&{disabled:L},...I&&{style:I},...A&&{className:A},...M&&{onClick:M},...S&&{onFocus:S},...x&&{onMouseEnter:x},...T&&{onMouseLeave:T},...D&&{onTouchStart:D}};const Me=ne=>{if(!L&&!Md(ne)&&!ne.defaultPrevented&&(!P||P==="_self")&&ne.button===0){ne.preventDefault(),xa.flushSync(()=>{r(!0)});const le=s.subscribe("onResolved",()=>{le(),r(!1)});return s.navigate({...se,replace:y,resetScroll:b,hashScrollIntoView:g,startTransition:w,viewTransition:_,ignoreBlocker:N})}},We=ne=>{L||ae&&ie()},Le=We,ke=ne=>{if(L)return;const le=ne.target||{};if(ae){if(le.preloadTimeout)return;le.preloadTimeout=setTimeout(()=>{le.preloadTimeout=null,ie()},ce)}},he=ne=>{if(L)return;const le=ne.target||{};le.preloadTimeout&&(clearTimeout(le.preloadTimeout),le.preloadTimeout=null)},we=ne=>le=>{var qt;(qt=le.persist)==null||qt.call(le),ne.filter(Boolean).forEach(lo=>{le.defaultPrevented||lo(le)})},pe=G?Qt(a,{})??{}:{},wt=G?{}:Qt(c,{}),it=[A,pe.className,wt.className].filter(Boolean).join(" "),Cn={...I,...pe.style,...wt.style};return{...Y,...pe,...wt,href:L?void 0:oe.maskedLocation?s.history.createHref(oe.maskedLocation.href):s.history.createHref(oe.href),ref:i,onClick:we([M,Me]),onFocus:we([S,We]),onMouseEnter:we([x,ke]),onMouseLeave:we([T,he]),onTouchStart:we([D,Le]),disabled:!!L,target:P,...Object.keys(Cn).length&&{style:Cn},...it&&{className:it},...L&&{role:"link","aria-disabled":!0},...G&&{"data-status":"active","aria-current":"page"},...n&&{"data-transitioning":"transitioning"}}}const Yn=p.forwardRef((e,t)=>{const{_asChild:s,...n}=e,{type:r,ref:o,...i}=Od(n,t),a=typeof n.children=="function"?n.children({isActive:i["data-status"]==="active"}):n.children;return typeof s>"u"&&delete i.disabled,p.createElement(s||"a",{...i,ref:o},a)});function Md(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ld=e=>new Id(e);class Id extends ed{constructor(t){super(t)}}function Nd({router:e,children:t,...s}){e.update({...e.options,...s,context:{...e.options.context,...s.context}});const n=Wa(),r=f.jsx(n.Provider,{value:e,children:t});return e.options.Wrap?f.jsx(e.options.Wrap,{children:r}):r}function Td({router:e,...t}){return f.jsx(Nd,{router:e,...t,children:f.jsx(Ed,{})})}const Fd=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),p.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),Dd=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,72H212V64a28,28,0,0,0-28-28H40A28,28,0,0,0,12,64v88a28,28,0,0,0,28,28h96v12a28,28,0,0,0,28,28h60a28,28,0,0,0,28-28V100A28,28,0,0,0,224,72ZM40,156a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H184a4,4,0,0,1,4,4v8H164a28,28,0,0,0-28,28v56Zm188,36a4,4,0,0,1-4,4H164a4,4,0,0,1-4-4V100a4,4,0,0,1,4-4h60a4,4,0,0,1,4,4ZM124,208a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h24A12,12,0,0,1,124,208Zm88-84a12,12,0,0,1-12,12H188a12,12,0,0,1,0-24h12A12,12,0,0,1,212,124Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,64V80H176a16,16,0,0,0-16,16v80H40a16,16,0,0,1-16-16V64A16,16,0,0,1,40,48H184A16,16,0,0,1,200,64Z",opacity:"0.2"}),p.createElement("path",{d:"M224,72H208V64a24,24,0,0,0-24-24H40A24,24,0,0,0,16,64v96a24,24,0,0,0,24,24H152v8a24,24,0,0,0,24,24h48a24,24,0,0,0,24-24V96A24,24,0,0,0,224,72ZM40,168a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H184a8,8,0,0,1,8,8v8H176a24,24,0,0,0-24,24v72Zm192,24a8,8,0,0,1-8,8H176a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Zm-96,16a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h40A8,8,0,0,1,136,208Zm80-96a8,8,0,0,1-8,8H192a8,8,0,0,1,0-16h16A8,8,0,0,1,216,112Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,72H208V64a24,24,0,0,0-24-24H40A24,24,0,0,0,16,64v96a24,24,0,0,0,24,24H152v8a24,24,0,0,0,24,24h48a24,24,0,0,0,24-24V96A24,24,0,0,0,224,72Zm8,120a8,8,0,0,1-8,8H176a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Zm-96,16a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h40A8,8,0,0,1,136,208Zm80-96a8,8,0,0,1-8,8H192a8,8,0,0,1,0-16h16A8,8,0,0,1,216,112Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,74H206V64a22,22,0,0,0-22-22H40A22,22,0,0,0,18,64v96a22,22,0,0,0,22,22H154v10a22,22,0,0,0,22,22h48a22,22,0,0,0,22-22V96A22,22,0,0,0,224,74ZM40,170a10,10,0,0,1-10-10V64A10,10,0,0,1,40,54H184a10,10,0,0,1,10,10V74H176a22,22,0,0,0-22,22v74Zm194,22a10,10,0,0,1-10,10H176a10,10,0,0,1-10-10V96a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10ZM134,208a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h40A6,6,0,0,1,134,208Zm80-96a6,6,0,0,1-6,6H192a6,6,0,0,1,0-12h16A6,6,0,0,1,214,112Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,72H208V64a24,24,0,0,0-24-24H40A24,24,0,0,0,16,64v96a24,24,0,0,0,24,24H152v8a24,24,0,0,0,24,24h48a24,24,0,0,0,24-24V96A24,24,0,0,0,224,72ZM40,168a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H184a8,8,0,0,1,8,8v8H176a24,24,0,0,0-24,24v72Zm192,24a8,8,0,0,1-8,8H176a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Zm-96,16a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h40A8,8,0,0,1,136,208Zm80-96a8,8,0,0,1-8,8H192a8,8,0,0,1,0-16h16A8,8,0,0,1,216,112Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,76H204V64a20,20,0,0,0-20-20H40A20,20,0,0,0,20,64v96a20,20,0,0,0,20,20H156v12a20,20,0,0,0,20,20h48a20,20,0,0,0,20-20V96A20,20,0,0,0,224,76ZM40,172a12,12,0,0,1-12-12V64A12,12,0,0,1,40,52H184a12,12,0,0,1,12,12V76H176a20,20,0,0,0-20,20v76Zm196,20a12,12,0,0,1-12,12H176a12,12,0,0,1-12-12V96a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12ZM132,208a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h40A4,4,0,0,1,132,208Zm80-96a4,4,0,0,1-4,4H192a4,4,0,0,1,0-8h16A4,4,0,0,1,212,112Z"}))]]),Hd=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"}))]]),Ud=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H52V121.65l76-76,76,76Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,120v96H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"}),p.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8H216a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H48V120l80-80,80,80Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,120v96a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a15.87,15.87,0,0,1,4.69-11.32l80-80a16,16,0,0,1,22.62,0l80,80A15.87,15.87,0,0,1,224,120Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6H216a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8H216a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H48V120l80-80,80,80Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"}))]]),Bd=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M235.79,142.88a12,12,0,0,0,4.7-19.87L125,7.52a12,12,0,0,0-17,0L70.25,45.29,48.48,23.52a12,12,0,0,0-17,17L53.28,62.26,12.2,103.35a28,28,0,0,0,0,39.6l84.86,84.86a28,28,0,0,0,39.6,0L214.48,150Zm-31.58-14.77a12,12,0,0,0-4.7,2.9l-79.82,79.83a4,4,0,0,1-5.66,0L29.17,126a4,4,0,0,1,0-5.66L70.25,79.24l24.29,24.29a32,32,0,0,0,52.09,35.11h0a32,32,0,0,0-35.12-52.08L87.23,62.26,116.52,33l93.27,93.28Zm-85.87-17.75,0,0a8,8,0,1,1-.06.06ZM256,208a24,24,0,0,1-48,0c0-19.44,12.93-37.23,14.4-39.2a12,12,0,0,1,19.2,0C243.07,170.78,256,188.57,256,208Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M248,208a16,16,0,0,1-32,0c0-16,16-40,16-40S248,192,248,208Zm-16-76.52-24,8-79.83,79.83a16,16,0,0,1-22.63,0L20.69,134.46a16,16,0,0,1,0-22.63L116.52,16Zm-93.86-29.62a20,20,0,1,0,0,28.28A20,20,0,0,0,138.14,101.86Z",opacity:"0.2"}),p.createElement("path",{d:"M238.66,163.56a8,8,0,0,0-13.32,0C223.57,166.23,208,190.09,208,208a24,24,0,0,0,48,0C256,190.09,240.43,166.23,238.66,163.56ZM232,216a8,8,0,0,1-8-8c0-6.8,4-16.32,8-24.08,4,7.76,8,17.34,8,24.08A8,8,0,0,1,232,216Zm2.53-76.93a8,8,0,0,0,3.13-13.24L122.17,10.34a8,8,0,0,0-11.31,0L70.25,51,45.65,26.34A8,8,0,0,0,34.34,37.66l24.6,24.6L15,106.17a24,24,0,0,0,0,33.94L99.89,225a24,24,0,0,0,33.94,0l78.49-78.49Zm-32.19-5.24-79.83,79.83a8,8,0,0,1-11.31,0L26.34,128.8a8,8,0,0,1,0-11.31L70.25,73.57l29.12,29.12a28,28,0,1,0,11.31-11.32L81.57,62.26l35-34.95L217.19,128l-11.72,3.9A8.09,8.09,0,0,0,202.34,133.83Zm-86.83-26.31,0,0a13.26,13.26,0,1,1-.05.06S115.51,107.53,115.51,107.52Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M256,208a24,24,0,0,1-48,0c0-17.91,15.57-41.77,17.34-44.44a8,8,0,0,1,13.32,0C240.43,166.23,256,190.09,256,208ZM132.49,124.49a12,12,0,0,0-17-17l0,0s0,0,0,0a12,12,0,0,0,17,16.94ZM37.65,18.34A8,8,0,0,0,26.34,29.66l32.6,32.6L70.25,51ZM234.53,139.07a8,8,0,0,0,3.13-13.24L122.17,10.34a8,8,0,0,0-11.31,0L70.25,51l40.43,40.42a28,28,0,1,1-11.31,11.32L58.94,62.26,15,106.17a24,24,0,0,0,0,33.94L99.89,225a24,24,0,0,0,33.94,0l78.49-78.49Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M237,164.67a6,6,0,0,0-10,0c-.7,1-17,25.72-17,43.33a22,22,0,0,0,44,0C254,190.39,237.69,165.71,237,164.67ZM232,218a10,10,0,0,1-10-10c0-8.17,5.37-19.92,10-28.34,4.63,8.41,10,20.15,10,28.34A10,10,0,0,1,232,218Zm1.9-80.82a6,6,0,0,0,2.34-9.94L120.76,11.76a6,6,0,0,0-8.49,0l-42,42-26-26a6,6,0,0,0-8.49,8.48l26,26L16.44,107.59a22,22,0,0,0,0,31.11l84.86,84.86a22,22,0,0,0,31.11,0l78.83-78.83Zm-30.14-1.94-79.83,79.83a10,10,0,0,1-14.14,0L24.93,130.21a10,10,0,0,1,0-14.14L70.25,70.75l31.62,31.61a26,26,0,0,0,3.75,32,26,26,0,0,0,36.76,0h0a26,26,0,0,0-32-40.51L78.74,62.26l37.78-37.77L220.89,128.86l-14.79,4.93A6.07,6.07,0,0,0,203.76,135.24ZM114.1,106.11l0,0a14,14,0,1,1,0,19.82,13.91,13.91,0,0,1,0-19.82Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M234.53,139.07a8,8,0,0,0,3.13-13.24L122.17,10.34a8,8,0,0,0-11.31,0L70.25,51,45.65,26.34A8,8,0,0,0,34.34,37.66l24.6,24.6L15,106.17a24,24,0,0,0,0,33.94L99.89,225a24,24,0,0,0,33.94,0l78.49-78.49Zm-32.19-5.24-79.83,79.83a8,8,0,0,1-11.31,0L26.34,128.8a8,8,0,0,1,0-11.31L70.25,73.57l29.12,29.12a28,28,0,1,0,11.31-11.32L81.57,62.26l35-34.95L217.19,128l-11.72,3.9A8.09,8.09,0,0,0,202.34,133.83Zm-86.83-26.31,0,0a13.26,13.26,0,1,1-.05.06S115.51,107.53,115.51,107.52Zm123.15,56a8,8,0,0,0-13.32,0C223.57,166.23,208,190.09,208,208a24,24,0,0,0,48,0C256,190.09,240.43,166.23,238.66,163.56ZM232,216a8,8,0,0,1-8-8c0-6.8,4-16.32,8-24.08,4,7.76,8,17.34,8,24.08A8,8,0,0,1,232,216Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M235.33,165.78a4,4,0,0,0-6.66,0C228,166.8,212,191,212,208a20,20,0,0,0,40,0C252,191,236,166.8,235.33,165.78ZM232,220a12,12,0,0,1-12-12c0-10.25,7.49-24.64,12-32.37,4.51,7.73,12,22.1,12,32.37A12,12,0,0,1,232,220Zm3.89-87.6a4,4,0,0,0-1.06-3.74L119.34,13.17a4,4,0,0,0-5.65,0L70.25,56.6,42.82,29.17a4,4,0,0,0-5.65,5.66L64.6,62.26,17.86,109a20,20,0,0,0,0,28.29l84.85,84.85a20,20,0,0,0,28.29,0L210.16,143l23.1-7.7A4,4,0,0,0,235.89,132.4Zm-29.15,3.29a4.06,4.06,0,0,0-1.57,1l-79.83,79.82a12,12,0,0,1-17,0L23.51,131.63a12,12,0,0,1,0-17L70.25,67.92l34.2,34.2A24,24,0,0,0,141,133h0a24,24,0,0,0-30.86-36.51l-34.2-34.2,40.61-40.6L224.59,129.74Zm-94.05-31a0,0,0,0,0,0,0,16,16,0,1,1,0,22.64,16,16,0,0,1,0-22.64Z"}))]]),$d=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z",opacity:"0.2"}),p.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z"}))]]),sc=p.forwardRef((e,t)=>p.createElement(Bs,{ref:t,...e,weights:Fd}));sc.displayName="ArrowLeftIcon";const nc=p.forwardRef((e,t)=>p.createElement(Bs,{ref:t,...e,weights:Dd}));nc.displayName="DevicesIcon";const rc=p.forwardRef((e,t)=>p.createElement(Bs,{ref:t,...e,weights:Hd}));rc.displayName="GlobeIcon";const ic=p.forwardRef((e,t)=>p.createElement(Bs,{ref:t,...e,weights:Ud}));ic.displayName="HouseSimpleIcon";const oc=p.forwardRef((e,t)=>p.createElement(Bs,{ref:t,...e,weights:Bd}));oc.displayName="PaintBucketIcon";const ac=p.forwardRef((e,t)=>p.createElement(Bs,{ref:t,...e,weights:$d}));ac.displayName="PaperPlaneTiltIcon";function Vd(){return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex items-center justify-center",children:[f.jsx("div",{className:"bg-contrast-0 p-5"}),f.jsx("div",{className:"bg-contrast-25 p-5"}),f.jsx("div",{className:"bg-contrast-50 p-5"}),f.jsx("div",{className:"bg-contrast-100 p-5"}),f.jsx("div",{className:"bg-contrast-200 p-5"}),f.jsx("div",{className:"bg-contrast-300 p-5"}),f.jsx("div",{className:"bg-contrast-400 p-5"}),f.jsx("div",{className:"bg-contrast-500 p-5"}),f.jsx("div",{className:"bg-contrast-600 p-5"}),f.jsx("div",{className:"bg-contrast-700 p-5"}),f.jsx("div",{className:"bg-contrast-800 p-5"}),f.jsx("div",{className:"bg-contrast-900 p-5"}),f.jsx("div",{className:"bg-contrast-950 p-5"}),f.jsx("div",{className:"bg-contrast-975 p-5"}),f.jsx("div",{className:"bg-contrast-1000 p-5"})]}),f.jsxs("div",{className:"flex items-center justify-center",children:[f.jsx("div",{className:"bg-primary-25 p-5"}),f.jsx("div",{className:"bg-primary-50 p-5"}),f.jsx("div",{className:"bg-primary-100 p-5"}),f.jsx("div",{className:"bg-primary-200 p-5"}),f.jsx("div",{className:"bg-primary-300 p-5"}),f.jsx("div",{className:"bg-primary-400 p-5"}),f.jsx("div",{className:"bg-primary-500 p-5"}),f.jsx("div",{className:"bg-primary-600 p-5"}),f.jsx("div",{className:"bg-primary-700 p-5"}),f.jsx("div",{className:"bg-primary-800 p-5"}),f.jsx("div",{className:"bg-primary-900 p-5"}),f.jsx("div",{className:"bg-primary-950 p-5"}),f.jsx("div",{className:"bg-primary-975 p-5"})]}),f.jsxs("div",{className:"flex items-center justify-center",children:[f.jsx("div",{className:"bg-error-25 p-5"}),f.jsx("div",{className:"bg-error-50 p-5"}),f.jsx("div",{className:"bg-error-100 p-5"}),f.jsx("div",{className:"bg-error-200 p-5"}),f.jsx("div",{className:"bg-error-300 p-5"}),f.jsx("div",{className:"bg-error-400 p-5"}),f.jsx("div",{className:"bg-error-500 p-5"}),f.jsx("div",{className:"bg-error-600 p-5"}),f.jsx("div",{className:"bg-error-700 p-5"}),f.jsx("div",{className:"bg-error-800 p-5"}),f.jsx("div",{className:"bg-error-900 p-5"}),f.jsx("div",{className:"bg-error-950 p-5"}),f.jsx("div",{className:"bg-error-975 p-5"})]}),f.jsxs("div",{className:"flex items-center justify-center",children:[f.jsx("div",{className:"bg-warning-25 p-5"}),f.jsx("div",{className:"bg-warning-50 p-5"}),f.jsx("div",{className:"bg-warning-100 p-5"}),f.jsx("div",{className:"bg-warning-200 p-5"}),f.jsx("div",{className:"bg-warning-300 p-5"}),f.jsx("div",{className:"bg-warning-400 p-5"}),f.jsx("div",{className:"bg-warning-500 p-5"}),f.jsx("div",{className:"bg-warning-600 p-5"}),f.jsx("div",{className:"bg-warning-700 p-5"}),f.jsx("div",{className:"bg-warning-800 p-5"}),f.jsx("div",{className:"bg-warning-900 p-5"}),f.jsx("div",{className:"bg-warning-950 p-5"}),f.jsx("div",{className:"bg-warning-975 p-5"})]}),f.jsxs("div",{className:"flex items-center justify-center",children:[f.jsx("div",{className:"bg-info-25 p-5"}),f.jsx("div",{className:"bg-info-50 p-5"}),f.jsx("div",{className:"bg-info-100 p-5"}),f.jsx("div",{className:"bg-info-200 p-5"}),f.jsx("div",{className:"bg-info-300 p-5"}),f.jsx("div",{className:"bg-info-400 p-5"}),f.jsx("div",{className:"bg-info-500 p-5"}),f.jsx("div",{className:"bg-info-600 p-5"}),f.jsx("div",{className:"bg-info-700 p-5"}),f.jsx("div",{className:"bg-info-800 p-5"}),f.jsx("div",{className:"bg-info-900 p-5"}),f.jsx("div",{className:"bg-info-950 p-5"}),f.jsx("div",{className:"bg-info-975 p-5"})]}),f.jsxs("div",{className:"flex items-center justify-center",children:[f.jsx("div",{className:"bg-success-25 p-5"}),f.jsx("div",{className:"bg-success-50 p-5"}),f.jsx("div",{className:"bg-success-100 p-5"}),f.jsx("div",{className:"bg-success-200 p-5"}),f.jsx("div",{className:"bg-success-300 p-5"}),f.jsx("div",{className:"bg-success-400 p-5"}),f.jsx("div",{className:"bg-success-500 p-5"}),f.jsx("div",{className:"bg-success-600 p-5"}),f.jsx("div",{className:"bg-success-700 p-5"}),f.jsx("div",{className:"bg-success-800 p-5"}),f.jsx("div",{className:"bg-success-900 p-5"}),f.jsx("div",{className:"bg-success-950 p-5"}),f.jsx("div",{className:"bg-success-975 p-5"})]}),f.jsxs("div",{className:"flex items-center justify-center",children:[f.jsx("div",{className:"bg-primary text-primary-contrast p-5",children:"Az"}),f.jsx("div",{className:"bg-error text-error-contrast p-5",children:"Az"}),f.jsx("div",{className:"bg-warning text-warning-contrast p-5",children:"Az"}),f.jsx("div",{className:"bg-success text-success-contrast p-5",children:"Az"})]})]})}const qd=["top","right","bottom","left"],Dt=Math.min,je=Math.max,Xn=Math.round,Ln=Math.floor,tt=e=>({x:e,y:e}),Zd={left:"right",right:"left",bottom:"top",top:"bottom"},zd={start:"end",end:"start"};function bi(e,t,s){return je(e,Dt(t,s))}function gt(e,t){return typeof e=="function"?e(t):e}function vt(e){return e.split("-")[0]}function qs(e){return e.split("-")[1]}function Di(e){return e==="x"?"y":"x"}function Hi(e){return e==="y"?"height":"width"}function Ht(e){return["top","bottom"].includes(vt(e))?"y":"x"}function Ui(e){return Di(Ht(e))}function Kd(e,t,s){s===void 0&&(s=!1);const n=qs(e),r=Ui(e),o=Hi(r);let i=r==="x"?n===(s?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=er(i)),[i,er(i)]}function Wd(e){const t=er(e);return[xi(e),t,xi(t)]}function xi(e){return e.replace(/start|end/g,t=>zd[t])}function Qd(e,t,s){const n=["left","right"],r=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return s?t?r:n:t?n:r;case"left":case"right":return t?o:i;default:return[]}}function Jd(e,t,s,n){const r=qs(e);let o=Qd(vt(e),s==="start",n);return r&&(o=o.map(i=>i+"-"+r),t&&(o=o.concat(o.map(xi)))),o}function er(e){return e.replace(/left|right|bottom|top/g,t=>Zd[t])}function Gd(e){return{top:0,right:0,bottom:0,left:0,...e}}function cc(e){return typeof e!="number"?Gd(e):{top:e,right:e,bottom:e,left:e}}function tr(e){const{x:t,y:s,width:n,height:r}=e;return{width:n,height:r,top:s,left:t,right:t+n,bottom:s+r,x:t,y:s}}function Oo(e,t,s){let{reference:n,floating:r}=e;const o=Ht(t),i=Ui(t),a=Hi(i),c=vt(t),l=o==="y",d=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2,m=n[a]/2-r[a]/2;let g;switch(c){case"top":g={x:d,y:n.y-r.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:u};break;case"left":g={x:n.x-r.width,y:u};break;default:g={x:n.x,y:n.y}}switch(qs(t)){case"start":g[i]-=m*(s&&l?-1:1);break;case"end":g[i]+=m*(s&&l?-1:1);break}return g}const Yd=async(e,t,s)=>{const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i}=s,a=o.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:u}=Oo(l,n,c),m=n,g={},y=0;for(let w=0;w<a.length;w++){const{name:b,fn:_}=a[w],{x:E,y:P,data:L,reset:I}=await _({x:d,y:u,initialPlacement:n,placement:m,strategy:r,middlewareData:g,rects:l,platform:i,elements:{reference:e,floating:t}});d=E??d,u=P??u,g={...g,[b]:{...g[b],...L}},I&&y<=50&&(y++,typeof I=="object"&&(I.placement&&(m=I.placement),I.rects&&(l=I.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):I.rects),{x:d,y:u}=Oo(l,m,c)),w=-1)}return{x:d,y:u,placement:m,strategy:r,middlewareData:g}};async function fn(e,t){var s;t===void 0&&(t={});const{x:n,y:r,platform:o,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:g=0}=gt(t,e),y=cc(g),b=a[m?u==="floating"?"reference":"floating":u],_=tr(await o.getClippingRect({element:(s=await(o.isElement==null?void 0:o.isElement(b)))==null||s?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),E=u==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,P=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),L=await(o.isElement==null?void 0:o.isElement(P))?await(o.getScale==null?void 0:o.getScale(P))||{x:1,y:1}:{x:1,y:1},I=tr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:P,strategy:c}):E);return{top:(_.top-I.top+y.top)/L.y,bottom:(I.bottom-_.bottom+y.bottom)/L.y,left:(_.left-I.left+y.left)/L.x,right:(I.right-_.right+y.right)/L.x}}const Xd=e=>({name:"arrow",options:e,async fn(t){const{x:s,y:n,placement:r,rects:o,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=gt(e,t)||{};if(l==null)return{};const u=cc(d),m={x:s,y:n},g=Ui(r),y=Hi(g),w=await i.getDimensions(l),b=g==="y",_=b?"top":"left",E=b?"bottom":"right",P=b?"clientHeight":"clientWidth",L=o.reference[y]+o.reference[g]-m[g]-o.floating[y],I=m[g]-o.reference[g],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let M=A?A[P]:0;(!M||!await(i.isElement==null?void 0:i.isElement(A)))&&(M=a.floating[P]||o.floating[y]);const S=L/2-I/2,x=M/2-w[y]/2-1,T=Dt(u[_],x),D=Dt(u[E],x),N=T,F=M-w[y]-D,$=M/2-w[y]/2+S,V=bi(N,$,F),U=!c.arrow&&qs(r)!=null&&$!==V&&o.reference[y]/2-($<N?T:D)-w[y]/2<0,q=U?$<N?$-N:$-F:0;return{[g]:m[g]+q,data:{[g]:V,centerOffset:$-V-q,...U&&{alignmentOffset:q}},reset:U}}}),eh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var s,n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:w=!0,...b}=gt(e,t);if((s=o.arrow)!=null&&s.alignmentOffset)return{};const _=vt(r),E=Ht(a),P=vt(a)===a,L=await(c.isRTL==null?void 0:c.isRTL(l.floating)),I=m||(P||!w?[er(a)]:Wd(a)),A=y!=="none";!m&&A&&I.push(...Jd(a,w,y,L));const M=[a,...I],S=await fn(t,b),x=[];let T=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&x.push(S[_]),u){const $=Kd(r,i,L);x.push(S[$[0]],S[$[1]])}if(T=[...T,{placement:r,overflows:x}],!x.every($=>$<=0)){var D,N;const $=(((D=o.flip)==null?void 0:D.index)||0)+1,V=M[$];if(V)return{data:{index:$,overflows:T},reset:{placement:V}};let U=(N=T.filter(q=>q.overflows[0]<=0).sort((q,Z)=>q.overflows[1]-Z.overflows[1])[0])==null?void 0:N.placement;if(!U)switch(g){case"bestFit":{var F;const q=(F=T.filter(Z=>{if(A){const Q=Ht(Z.placement);return Q===E||Q==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(Q=>Q>0).reduce((Q,Y)=>Q+Y,0)]).sort((Z,Q)=>Z[1]-Q[1])[0])==null?void 0:F[0];q&&(U=q);break}case"initialPlacement":U=a;break}if(r!==U)return{reset:{placement:U}}}return{}}}};function Mo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Lo(e){return qd.some(t=>e[t]>=0)}const th=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:s}=t,{strategy:n="referenceHidden",...r}=gt(e,t);switch(n){case"referenceHidden":{const o=await fn(t,{...r,elementContext:"reference"}),i=Mo(o,s.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Lo(i)}}}case"escaped":{const o=await fn(t,{...r,altBoundary:!0}),i=Mo(o,s.floating);return{data:{escapedOffsets:i,escaped:Lo(i)}}}default:return{}}}}};async function sh(e,t){const{placement:s,platform:n,elements:r}=e,o=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=vt(s),a=qs(s),c=Ht(s)==="y",l=["left","top"].includes(i)?-1:1,d=o&&c?-1:1,u=gt(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:y}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof y=="number"&&(g=a==="end"?y*-1:y),c?{x:g*d,y:m*l}:{x:m*l,y:g*d}}const nh=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var s,n;const{x:r,y:o,placement:i,middlewareData:a}=t,c=await sh(t,e);return i===((s=a.offset)==null?void 0:s.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+c.x,y:o+c.y,data:{...c,placement:i}}}}},rh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:s,y:n,placement:r}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:_,y:E}=b;return{x:_,y:E}}},...c}=gt(e,t),l={x:s,y:n},d=await fn(t,c),u=Ht(vt(r)),m=Di(u);let g=l[m],y=l[u];if(o){const b=m==="y"?"top":"left",_=m==="y"?"bottom":"right",E=g+d[b],P=g-d[_];g=bi(E,g,P)}if(i){const b=u==="y"?"top":"left",_=u==="y"?"bottom":"right",E=y+d[b],P=y-d[_];y=bi(E,y,P)}const w=a.fn({...t,[m]:g,[u]:y});return{...w,data:{x:w.x-s,y:w.y-n,enabled:{[m]:o,[u]:i}}}}}},ih=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:s,y:n,placement:r,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=gt(e,t),d={x:s,y:n},u=Ht(r),m=Di(u);let g=d[m],y=d[u];const w=gt(a,t),b=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(c){const P=m==="y"?"height":"width",L=o.reference[m]-o.floating[P]+b.mainAxis,I=o.reference[m]+o.reference[P]-b.mainAxis;g<L?g=L:g>I&&(g=I)}if(l){var _,E;const P=m==="y"?"width":"height",L=["top","left"].includes(vt(r)),I=o.reference[u]-o.floating[P]+(L&&((_=i.offset)==null?void 0:_[u])||0)+(L?0:b.crossAxis),A=o.reference[u]+o.reference[P]+(L?0:((E=i.offset)==null?void 0:E[u])||0)-(L?b.crossAxis:0);y<I?y=I:y>A&&(y=A)}return{[m]:g,[u]:y}}}},oh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var s,n;const{placement:r,rects:o,platform:i,elements:a}=t,{apply:c=()=>{},...l}=gt(e,t),d=await fn(t,l),u=vt(r),m=qs(r),g=Ht(r)==="y",{width:y,height:w}=o.floating;let b,_;u==="top"||u==="bottom"?(b=u,_=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(_=u,b=m==="end"?"top":"bottom");const E=w-d.top-d.bottom,P=y-d.left-d.right,L=Dt(w-d[b],E),I=Dt(y-d[_],P),A=!t.middlewareData.shift;let M=L,S=I;if((s=t.middlewareData.shift)!=null&&s.enabled.x&&(S=P),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(M=E),A&&!m){const T=je(d.left,0),D=je(d.right,0),N=je(d.top,0),F=je(d.bottom,0);g?S=y-2*(T!==0||D!==0?T+D:je(d.left,d.right)):M=w-2*(N!==0||F!==0?N+F:je(d.top,d.bottom))}await c({...t,availableWidth:S,availableHeight:M});const x=await i.getDimensions(a.floating);return y!==x.width||w!==x.height?{reset:{rects:!0}}:{}}}};function fr(){return typeof window<"u"}function Zs(e){return lc(e)?(e.nodeName||"").toLowerCase():"#document"}function Oe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rt(e){var t;return(t=(lc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lc(e){return fr()?e instanceof Node||e instanceof Oe(e).Node:!1}function Ze(e){return fr()?e instanceof Element||e instanceof Oe(e).Element:!1}function st(e){return fr()?e instanceof HTMLElement||e instanceof Oe(e).HTMLElement:!1}function Io(e){return!fr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot}function Sn(e){const{overflow:t,overflowX:s,overflowY:n,display:r}=ze(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+s)&&!["inline","contents"].includes(r)}function ah(e){return["table","td","th"].includes(Zs(e))}function pr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Bi(e){const t=$i(),s=Ze(e)?ze(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>s[n]?s[n]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!t&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!t&&(s.filter?s.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(s.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(s.contain||"").includes(n))}function ch(e){let t=Ut(e);for(;st(t)&&!Ts(t);){if(Bi(t))return t;if(pr(t))return null;t=Ut(t)}return null}function $i(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ts(e){return["html","body","#document"].includes(Zs(e))}function ze(e){return Oe(e).getComputedStyle(e)}function mr(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ut(e){if(Zs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Io(e)&&e.host||rt(e);return Io(t)?t.host:t}function uc(e){const t=Ut(e);return Ts(t)?e.ownerDocument?e.ownerDocument.body:e.body:st(t)&&Sn(t)?t:uc(t)}function pn(e,t,s){var n;t===void 0&&(t=[]),s===void 0&&(s=!0);const r=uc(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Oe(r);if(o){const a=_i(i);return t.concat(i,i.visualViewport||[],Sn(r)?r:[],a&&s?pn(a):[])}return t.concat(r,pn(r,[],s))}function _i(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dc(e){const t=ze(e);let s=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=st(e),o=r?e.offsetWidth:s,i=r?e.offsetHeight:n,a=Xn(s)!==o||Xn(n)!==i;return a&&(s=o,n=i),{width:s,height:n,$:a}}function Vi(e){return Ze(e)?e:e.contextElement}function ws(e){const t=Vi(e);if(!st(t))return tt(1);const s=t.getBoundingClientRect(),{width:n,height:r,$:o}=dc(t);let i=(o?Xn(s.width):s.width)/n,a=(o?Xn(s.height):s.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const lh=tt(0);function hc(e){const t=Oe(e);return!$i()||!t.visualViewport?lh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uh(e,t,s){return t===void 0&&(t=!1),!s||t&&s!==Oe(e)?!1:t}function as(e,t,s,n){t===void 0&&(t=!1),s===void 0&&(s=!1);const r=e.getBoundingClientRect(),o=Vi(e);let i=tt(1);t&&(n?Ze(n)&&(i=ws(n)):i=ws(e));const a=uh(o,s,n)?hc(o):tt(0);let c=(r.left+a.x)/i.x,l=(r.top+a.y)/i.y,d=r.width/i.x,u=r.height/i.y;if(o){const m=Oe(o),g=n&&Ze(n)?Oe(n):n;let y=m,w=_i(y);for(;w&&n&&g!==y;){const b=ws(w),_=w.getBoundingClientRect(),E=ze(w),P=_.left+(w.clientLeft+parseFloat(E.paddingLeft))*b.x,L=_.top+(w.clientTop+parseFloat(E.paddingTop))*b.y;c*=b.x,l*=b.y,d*=b.x,u*=b.y,c+=P,l+=L,y=Oe(w),w=_i(y)}}return tr({width:d,height:u,x:c,y:l})}function qi(e,t){const s=mr(e).scrollLeft;return t?t.left+s:as(rt(e)).left+s}function fc(e,t,s){s===void 0&&(s=!1);const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-(s?0:qi(e,n)),o=n.top+t.scrollTop;return{x:r,y:o}}function dh(e){let{elements:t,rect:s,offsetParent:n,strategy:r}=e;const o=r==="fixed",i=rt(n),a=t?pr(t.floating):!1;if(n===i||a&&o)return s;let c={scrollLeft:0,scrollTop:0},l=tt(1);const d=tt(0),u=st(n);if((u||!u&&!o)&&((Zs(n)!=="body"||Sn(i))&&(c=mr(n)),st(n))){const g=as(n);l=ws(n),d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}const m=i&&!u&&!o?fc(i,c,!0):tt(0);return{width:s.width*l.x,height:s.height*l.y,x:s.x*l.x-c.scrollLeft*l.x+d.x+m.x,y:s.y*l.y-c.scrollTop*l.y+d.y+m.y}}function hh(e){return Array.from(e.getClientRects())}function fh(e){const t=rt(e),s=mr(e),n=e.ownerDocument.body,r=je(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=je(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-s.scrollLeft+qi(e);const a=-s.scrollTop;return ze(n).direction==="rtl"&&(i+=je(t.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:a}}function ph(e,t){const s=Oe(e),n=rt(e),r=s.visualViewport;let o=n.clientWidth,i=n.clientHeight,a=0,c=0;if(r){o=r.width,i=r.height;const l=$i();(!l||l&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:o,height:i,x:a,y:c}}function mh(e,t){const s=as(e,!0,t==="fixed"),n=s.top+e.clientTop,r=s.left+e.clientLeft,o=st(e)?ws(e):tt(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,c=r*o.x,l=n*o.y;return{width:i,height:a,x:c,y:l}}function No(e,t,s){let n;if(t==="viewport")n=ph(e,s);else if(t==="document")n=fh(rt(e));else if(Ze(t))n=mh(t,s);else{const r=hc(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return tr(n)}function pc(e,t){const s=Ut(e);return s===t||!Ze(s)||Ts(s)?!1:ze(s).position==="fixed"||pc(s,t)}function gh(e,t){const s=t.get(e);if(s)return s;let n=pn(e,[],!1).filter(a=>Ze(a)&&Zs(a)!=="body"),r=null;const o=ze(e).position==="fixed";let i=o?Ut(e):e;for(;Ze(i)&&!Ts(i);){const a=ze(i),c=Bi(i);!c&&a.position==="fixed"&&(r=null),(o?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Sn(i)&&!c&&pc(e,i))?n=n.filter(d=>d!==i):r=a,i=Ut(i)}return t.set(e,n),n}function vh(e){let{element:t,boundary:s,rootBoundary:n,strategy:r}=e;const i=[...s==="clippingAncestors"?pr(t)?[]:gh(t,this._c):[].concat(s),n],a=i[0],c=i.reduce((l,d)=>{const u=No(t,d,r);return l.top=je(u.top,l.top),l.right=Dt(u.right,l.right),l.bottom=Dt(u.bottom,l.bottom),l.left=je(u.left,l.left),l},No(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yh(e){const{width:t,height:s}=dc(e);return{width:t,height:s}}function wh(e,t,s){const n=st(t),r=rt(t),o=s==="fixed",i=as(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const c=tt(0);if(n||!n&&!o)if((Zs(t)!=="body"||Sn(r))&&(a=mr(t)),n){const m=as(t,!0,o,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else r&&(c.x=qi(r));const l=r&&!n&&!o?fc(r,a):tt(0),d=i.left+a.scrollLeft-c.x-l.x,u=i.top+a.scrollTop-c.y-l.y;return{x:d,y:u,width:i.width,height:i.height}}function Dr(e){return ze(e).position==="static"}function To(e,t){if(!st(e)||ze(e).position==="fixed")return null;if(t)return t(e);let s=e.offsetParent;return rt(e)===s&&(s=s.ownerDocument.body),s}function mc(e,t){const s=Oe(e);if(pr(e))return s;if(!st(e)){let r=Ut(e);for(;r&&!Ts(r);){if(Ze(r)&&!Dr(r))return r;r=Ut(r)}return s}let n=To(e,t);for(;n&&ah(n)&&Dr(n);)n=To(n,t);return n&&Ts(n)&&Dr(n)&&!Bi(n)?s:n||ch(e)||s}const bh=async function(e){const t=this.getOffsetParent||mc,s=this.getDimensions,n=await s(e.floating);return{reference:wh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function xh(e){return ze(e).direction==="rtl"}const _h={convertOffsetParentRelativeRectToViewportRelativeRect:dh,getDocumentElement:rt,getClippingRect:vh,getOffsetParent:mc,getElementRects:bh,getClientRects:hh,getDimensions:yh,getScale:ws,isElement:Ze,isRTL:xh};function gc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Sh(e,t){let s=null,n;const r=rt(e);function o(){var a;clearTimeout(n),(a=s)==null||a.disconnect(),s=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),o();const l=e.getBoundingClientRect(),{left:d,top:u,width:m,height:g}=l;if(a||t(),!m||!g)return;const y=Ln(u),w=Ln(r.clientWidth-(d+m)),b=Ln(r.clientHeight-(u+g)),_=Ln(d),P={rootMargin:-y+"px "+-w+"px "+-b+"px "+-_+"px",threshold:je(0,Dt(1,c))||1};let L=!0;function I(A){const M=A[0].intersectionRatio;if(M!==c){if(!L)return i();M?i(!1,M):n=setTimeout(()=>{i(!1,1e-7)},1e3)}M===1&&!gc(l,e.getBoundingClientRect())&&i(),L=!1}try{s=new IntersectionObserver(I,{...P,root:r.ownerDocument})}catch{s=new IntersectionObserver(I,P)}s.observe(e)}return i(!0),o}function Rh(e,t,s,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=Vi(e),d=r||o?[...l?pn(l):[],...pn(t)]:[];d.forEach(_=>{r&&_.addEventListener("scroll",s,{passive:!0}),o&&_.addEventListener("resize",s)});const u=l&&a?Sh(l,s):null;let m=-1,g=null;i&&(g=new ResizeObserver(_=>{let[E]=_;E&&E.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var P;(P=g)==null||P.observe(t)})),s()}),l&&!c&&g.observe(l),g.observe(t));let y,w=c?as(e):null;c&&b();function b(){const _=as(e);w&&!gc(w,_)&&s(),w=_,y=requestAnimationFrame(b)}return s(),()=>{var _;d.forEach(E=>{r&&E.removeEventListener("scroll",s),o&&E.removeEventListener("resize",s)}),u==null||u(),(_=g)==null||_.disconnect(),g=null,c&&cancelAnimationFrame(y)}}const Ph=nh,Ch=rh,Ah=eh,Eh=oh,kh=th,Fo=Xd,jh=ih,Oh=(e,t,s)=>{const n=new Map,r={platform:_h,...s},o={...r.platform,_c:n};return Yd(e,t,{...r,platform:o})};var $n=typeof document<"u"?p.useLayoutEffect:p.useEffect;function sr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let s,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(s=e.length,s!==t.length)return!1;for(n=s;n--!==0;)if(!sr(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),s=r.length,s!==Object.keys(t).length)return!1;for(n=s;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=s;n--!==0;){const o=r[n];if(!(o==="_owner"&&e.$$typeof)&&!sr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function vc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Do(e,t){const s=vc(e);return Math.round(t*s)/s}function Hr(e){const t=p.useRef(e);return $n(()=>{t.current=e}),t}function Mh(e){e===void 0&&(e={});const{placement:t="bottom",strategy:s="absolute",middleware:n=[],platform:r,elements:{reference:o,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,u]=p.useState({x:0,y:0,strategy:s,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=p.useState(n);sr(m,n)||g(n);const[y,w]=p.useState(null),[b,_]=p.useState(null),E=p.useCallback(Z=>{Z!==A.current&&(A.current=Z,w(Z))},[]),P=p.useCallback(Z=>{Z!==M.current&&(M.current=Z,_(Z))},[]),L=o||y,I=i||b,A=p.useRef(null),M=p.useRef(null),S=p.useRef(d),x=c!=null,T=Hr(c),D=Hr(r),N=Hr(l),F=p.useCallback(()=>{if(!A.current||!M.current)return;const Z={placement:t,strategy:s,middleware:m};D.current&&(Z.platform=D.current),Oh(A.current,M.current,Z).then(Q=>{const Y={...Q,isPositioned:N.current!==!1};$.current&&!sr(S.current,Y)&&(S.current=Y,xa.flushSync(()=>{u(Y)}))})},[m,t,s,D,N]);$n(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,u(Z=>({...Z,isPositioned:!1})))},[l]);const $=p.useRef(!1);$n(()=>($.current=!0,()=>{$.current=!1}),[]),$n(()=>{if(L&&(A.current=L),I&&(M.current=I),L&&I){if(T.current)return T.current(L,I,F);F()}},[L,I,F,T,x]);const V=p.useMemo(()=>({reference:A,floating:M,setReference:E,setFloating:P}),[E,P]),U=p.useMemo(()=>({reference:L,floating:I}),[L,I]),q=p.useMemo(()=>{const Z={position:s,left:0,top:0};if(!U.floating)return Z;const Q=Do(U.floating,d.x),Y=Do(U.floating,d.y);return a?{...Z,transform:"translate("+Q+"px, "+Y+"px)",...vc(U.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:Q,top:Y}},[s,a,U.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:F,refs:V,elements:U,floatingStyles:q}),[d,F,V,U,q])}const Lh=e=>{function t(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:e,fn(s){const{element:n,padding:r}=typeof e=="function"?e(s):e;return n&&t(n)?n.current!=null?Fo({element:n.current,padding:r}).fn(s):{}:n?Fo({element:n,padding:r}).fn(s):{}}}},Ih=(e,t)=>({...Ph(e),options:[e,t]}),Nh=(e,t)=>({...Ch(e),options:[e,t]}),Th=(e,t)=>({...jh(e),options:[e,t]}),Fh=(e,t)=>({...Ah(e),options:[e,t]}),Dh=(e,t)=>({...Eh(e),options:[e,t]}),Hh=(e,t)=>({...kh(e),options:[e,t]}),Uh=(e,t)=>({...Lh(e),options:[e,t]});var Bh="Arrow",yc=p.forwardRef((e,t)=>{const{children:s,width:n=10,height:r=5,...o}=e;return f.jsx(xn.svg,{...o,ref:t,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?s:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});yc.displayName=Bh;var $h=yc;function Vh(e){const[t,s]=p.useState(void 0);return ei(()=>{if(e){s({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const o=r[0];let i,a;if("borderBoxSize"in o){const c=o.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;s({width:i,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else s(void 0)},[e]),t}var Zi="Popper",[wc,bc]=_a(Zi),[qh,xc]=wc(Zi),_c=e=>{const{__scopePopper:t,children:s}=e,[n,r]=p.useState(null);return f.jsx(qh,{scope:t,anchor:n,onAnchorChange:r,children:s})};_c.displayName=Zi;var Sc="PopperAnchor",Rc=p.forwardRef((e,t)=>{const{__scopePopper:s,virtualRef:n,...r}=e,o=xc(Sc,s),i=p.useRef(null),a=or(t,i),c=p.useRef(null);return p.useEffect(()=>{const l=c.current;c.current=(n==null?void 0:n.current)||i.current,l!==c.current&&o.onAnchorChange(c.current)}),n?null:f.jsx(xn.div,{...r,ref:a})});Rc.displayName=Sc;var zi="PopperContent",[Zh,zh]=wc(zi),Pc=p.forwardRef((e,t)=>{var ce,G,ie,Ke,Me,We;const{__scopePopper:s,side:n="bottom",sideOffset:r=0,align:o="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:y,...w}=e,b=xc(zi,s),[_,E]=p.useState(null),P=or(t,Le=>E(Le)),[L,I]=p.useState(null),A=Vh(L),M=(A==null?void 0:A.width)??0,S=(A==null?void 0:A.height)??0,x=n+(o!=="center"?"-"+o:""),T=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(l)?l:[l],N=D.length>0,F={padding:T,boundary:D.filter(Wh),altBoundary:N},{refs:$,floatingStyles:V,placement:U,isPositioned:q,middlewareData:Z}=Mh({strategy:"fixed",placement:x,whileElementsMounted:(...Le)=>Rh(...Le,{animationFrame:g==="always"}),elements:{reference:b.anchor},middleware:[Ih({mainAxis:r+S,alignmentAxis:i}),c&&Nh({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Th():void 0,...F}),c&&Fh({...F}),Dh({...F,apply:({elements:Le,rects:ke,availableWidth:he,availableHeight:we})=>{const{width:pe,height:wt}=ke.reference,it=Le.floating.style;it.setProperty("--radix-popper-available-width",`${he}px`),it.setProperty("--radix-popper-available-height",`${we}px`),it.setProperty("--radix-popper-anchor-width",`${pe}px`),it.setProperty("--radix-popper-anchor-height",`${wt}px`)}}),L&&Uh({element:L,padding:a}),Qh({arrowWidth:M,arrowHeight:S}),m&&Hh({strategy:"referenceHidden",...F})]}),[Q,Y]=Ec(U),J=kl(y);ei(()=>{q&&(J==null||J())},[q,J]);const ye=(ce=Z.arrow)==null?void 0:ce.x,te=(G=Z.arrow)==null?void 0:G.y,se=((ie=Z.arrow)==null?void 0:ie.centerOffset)!==0,[oe,ae]=p.useState();return ei(()=>{_&&ae(window.getComputedStyle(_).zIndex)},[_]),f.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:q?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(Ke=Z.transformOrigin)==null?void 0:Ke.x,(Me=Z.transformOrigin)==null?void 0:Me.y].join(" "),...((We=Z.hide)==null?void 0:We.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(Zh,{scope:s,placedSide:Q,onArrowChange:I,arrowX:ye,arrowY:te,shouldHideArrow:se,children:f.jsx(xn.div,{"data-side":Q,"data-align":Y,...w,ref:P,style:{...w.style,animation:q?void 0:"none"}})})})});Pc.displayName=zi;var Cc="PopperArrow",Kh={top:"bottom",right:"left",bottom:"top",left:"right"},Ac=p.forwardRef(function(t,s){const{__scopePopper:n,...r}=t,o=zh(Cc,n),i=Kh[o.placedSide];return f.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:f.jsx($h,{...r,ref:s,style:{...r.style,display:"block"}})})});Ac.displayName=Cc;function Wh(e){return e!==null}var Qh=e=>({name:"transformOrigin",options:e,fn(t){var b,_,E;const{placement:s,rects:n,middlewareData:r}=t,i=((b=r.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,d]=Ec(s),u={start:"0%",center:"50%",end:"100%"}[d],m=(((_=r.arrow)==null?void 0:_.x)??0)+a/2,g=(((E=r.arrow)==null?void 0:E.y)??0)+c/2;let y="",w="";return l==="bottom"?(y=i?u:`${m}px`,w=`${-c}px`):l==="top"?(y=i?u:`${m}px`,w=`${n.floating.height+c}px`):l==="right"?(y=`${-c}px`,w=i?u:`${g}px`):l==="left"&&(y=`${n.floating.width+c}px`,w=i?u:`${g}px`),{data:{x:y,y:w}}}});function Ec(e){const[t,s="center"]=e.split("-");return[t,s]}var Jh=_c,kc=Rc,Gh=Pc,Yh=Ac,gr="Popover",[jc,jp]=_a(gr,[bc]),Rn=bc(),[Xh,Bt]=jc(gr),Oc=e=>{const{__scopePopover:t,children:s,open:n,defaultOpen:r,onOpenChange:o,modal:i=!1}=e,a=Rn(t),c=p.useRef(null),[l,d]=p.useState(!1),[u,m]=jl({prop:n,defaultProp:r??!1,onChange:o,caller:gr});return f.jsx(Jh,{...a,children:f.jsx(Xh,{scope:t,contentId:Ol(),triggerRef:c,open:u,onOpenChange:m,onOpenToggle:p.useCallback(()=>m(g=>!g),[m]),hasCustomAnchor:l,onCustomAnchorAdd:p.useCallback(()=>d(!0),[]),onCustomAnchorRemove:p.useCallback(()=>d(!1),[]),modal:i,children:s})})};Oc.displayName=gr;var Mc="PopoverAnchor",ef=p.forwardRef((e,t)=>{const{__scopePopover:s,...n}=e,r=Bt(Mc,s),o=Rn(s),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=r;return p.useEffect(()=>(i(),()=>a()),[i,a]),f.jsx(kc,{...o,...n,ref:t})});ef.displayName=Mc;var Lc="PopoverTrigger",Ic=p.forwardRef((e,t)=>{const{__scopePopover:s,...n}=e,r=Bt(Lc,s),o=Rn(s),i=or(t,r.triggerRef),a=f.jsx(xn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Uc(r.open),...n,ref:i,onClick:an(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:f.jsx(kc,{asChild:!0,...o,children:a})});Ic.displayName=Lc;var Ki="PopoverPortal",[tf,sf]=jc(Ki,{forceMount:void 0}),Nc=e=>{const{__scopePopover:t,forceMount:s,children:n,container:r}=e,o=Bt(Ki,t);return f.jsx(tf,{scope:t,forceMount:s,children:f.jsx(Sa,{present:s||o.open,children:f.jsx(Ml,{asChild:!0,container:r,children:n})})})};Nc.displayName=Ki;var Fs="PopoverContent",Tc=p.forwardRef((e,t)=>{const s=sf(Fs,e.__scopePopover),{forceMount:n=s.forceMount,...r}=e,o=Bt(Fs,e.__scopePopover);return f.jsx(Sa,{present:n||o.open,children:o.modal?f.jsx(rf,{...r,ref:t}):f.jsx(of,{...r,ref:t})})});Tc.displayName=Fs;var nf=Nl("PopoverContent.RemoveScroll"),rf=p.forwardRef((e,t)=>{const s=Bt(Fs,e.__scopePopover),n=p.useRef(null),r=or(t,n),o=p.useRef(!1);return p.useEffect(()=>{const i=n.current;if(i)return Ll(i)},[]),f.jsx(Il,{as:nf,allowPinchZoom:!0,children:f.jsx(Fc,{...e,ref:r,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:an(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),o.current||(a=s.triggerRef.current)==null||a.focus()}),onPointerDownOutside:an(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,l=a.button===2||c;o.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:an(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),of=p.forwardRef((e,t)=>{const s=Bt(Fs,e.__scopePopover),n=p.useRef(!1),r=p.useRef(!1);return f.jsx(Fc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,o),o.defaultPrevented||(n.current||(a=s.triggerRef.current)==null||a.focus(),o.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:o=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=o.target;((l=s.triggerRef.current)==null?void 0:l.contains(i))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&r.current&&o.preventDefault()}})}),Fc=p.forwardRef((e,t)=>{const{__scopePopover:s,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:d,...u}=e,m=Bt(Fs,s),g=Rn(s);return Tl(),f.jsx(Fl,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:o,children:f.jsx(Dl,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>m.onOpenChange(!1),children:f.jsx(Gh,{"data-state":Uc(m.open),role:"dialog",id:m.contentId,...g,...u,ref:t,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Dc="PopoverClose",Hc=p.forwardRef((e,t)=>{const{__scopePopover:s,...n}=e,r=Bt(Dc,s);return f.jsx(xn.button,{type:"button",...n,ref:t,onClick:an(e.onClick,()=>r.onOpenChange(!1))})});Hc.displayName=Dc;var af="PopoverArrow",cf=p.forwardRef((e,t)=>{const{__scopePopover:s,...n}=e,r=Rn(s);return f.jsx(Yh,{...r,...n,ref:t})});cf.displayName=af;function Uc(e){return e?"open":"closed"}var Bc=Oc,$c=Ic,Vc=Nc,qc=Tc,lf=Hc;function Zc({account:e,className:t,...s}){return f.jsxs("div",{className:un("flex min-h-full max-w-full flex-col items-center justify-start gap-1",t),...s,children:[f.jsx(Ra,{account:e,size:"3xl",className:"mb-4 max-w-full"}),e.name&&f.jsx(Hl,{account:e,className:"text-text-default max-w-full truncate text-xl font-medium"}),f.jsx(Pa,{account:e,className:"text-md text-text-light max-w-full truncate"})]})}function uf(e){const{i18n:t,_:s}=nt(),{session:n,canSwitchAccounts:r}=Ul(),{setSession:o,doSignOut:i}=ki();return f.jsxs(Bc,{children:[f.jsx($c,{asChild:!0,children:f.jsx(fs,{"aria-label":t._({id:"1D3nu5"}),shape:"circle",transparent:!0,color:"gray",...e,children:f.jsx(Ra,{account:n.account,size:e.size})})}),f.jsx(Vc,{children:f.jsx(qc,{side:"top",align:"end",className:"w-full",sideOffset:5,style:{width:320},children:f.jsxs("div",{className:"relative flex flex-col gap-2 rounded-lg border border-slate-200 bg-white p-2 shadow-lg dark:border-slate-700 dark:bg-slate-800",children:[f.jsx(Zc,{account:n.account,"aria-label":t._({id:"OLYdKb"}),className:"mt-4"}),f.jsx(fs,{onClick:()=>i(n.account),color:"primary",children:f.jsx(X,{id:"fcWrnU"})},"signout"),r&&f.jsx(fs,{onClick:()=>o(null),children:f.jsx(X,{id:"T8poTj"})},"other"),f.jsx(lf,{className:"absolute right-2 top-2 rounded opacity-50 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2","aria-label":t._({id:"NqPBw0"}),children:f.jsx(Bl,{className:"size-6","aria-hidden":!0})},"close")]})})})]})}function df({children:e,basePath:t,title:s,links:n}){const{_:r}=nt(),{pathname:o}=ve().location,i=o===t,a=n.find(d=>d.to===o),c=a==null?void 0:a.title,l=typeof c=="object"?r(c):c;return f.jsx(Sl,{title:s,header:f.jsx(uf,{className:"shrink-0",size:"lg"}),children:f.jsxs("div",{className:"flex w-full flex-1 flex-col md:flex-row",children:[f.jsx("aside",{className:`shrink-0 p-4 md:px-8 ${i?"w-full md:w-auto":"hidden max-w-xs md:block"}`,role:"navigation",children:f.jsx("nav",{className:"flex flex-col gap-2",children:n.filter(({hidden:d,to:u})=>!d||o===u).map(({to:d,title:u,description:m,icon:g})=>f.jsxs(Yn,{to:d,className:un("flex items-center justify-start","min-h-12 px-4","rounded-3xl transition-colors","whitespace-nowrap font-medium md:whitespace-normal","focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2","text-text-default","md:text-text-light md:[&.active]:text-text-default","hover:bg-slate-100 dark:hover:bg-slate-800","[&.active]:bg-slate-100 dark:[&.active]:bg-slate-800",i&&d===t&&"hidden md:flex"),activeOptions:{exact:!0},activeProps:{className:"active","aria-current":"page"},children:[g&&f.jsx("span",{"aria-hidden":"true",className:"bg-primary text-primary-contrast -ml-2 mb-auto mr-2 mt-2 inline-flex size-8 shrink-0 grow-0 items-center justify-center rounded-full",children:f.jsx(g,{className:"size-4"})}),f.jsxs("span",{className:"my-1 min-w-0 flex-1",children:[f.jsx("span",{className:"block truncate",children:typeof u=="object"?r(u):u}),m&&f.jsx("span",{className:"block whitespace-pre-wrap text-xs md:hidden",children:typeof m=="object"?r(m):m})]})]},d))})}),f.jsxs("main",{className:`w-4xl mx-auto min-w-0 max-w-full px-4 md:px-8 ${i?"-order-1 md:order-1 md:block":""}`,role:"main",children:[f.jsxs("nav",{className:"mb-4 flex items-center gap-2",children:[!i&&f.jsx(Yn,{to:t,className:"text-text-light rounded-full p-2 hover:bg-slate-200 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 md:hidden dark:hover:bg-slate-800",children:f.jsx(sc,{className:"size-6"})},"back"),l&&f.jsxs("h2",{className:"text-text-default text-2xl font-light",children:[f.jsx("title",{children:l}),f.jsx("b",{children:l})]})]}),e]})]})})}const Wi=vd({component:Fi,errorComponent:Ca});function zc(e){const{name:t,logo:s}=Rl();return f.jsxs("span",{...e,children:[s&&f.jsx("img",{src:s,alt:t,className:"not-prose mr-1 inline-block h-[1em] select-none object-contain align-baseline"}),f.jsx("b",{children:t})]})}function hf(){const{account:e}=_n();return f.jsxs("div",{className:"prose-sm md:prose prose-slate dark:prose-invert max-w-none",children:[f.jsx("section",{children:f.jsx(X,{id:"/y3yb7",components:{0:f.jsx("h2",{}),1:f.jsx("p",{}),2:f.jsx("strong",{})}})}),f.jsx("section",{children:f.jsx(X,{id:"SBs48I",components:{0:f.jsx("h3",{}),1:f.jsx("p",{}),2:f.jsx(En,{className:"underline",href:"https://bsky.app"}),3:f.jsx("p",{}),4:f.jsx("p",{}),5:f.jsx("strong",{className:"whitespace-nowrap"}),6:f.jsx(Pa,{account:e})}})}),f.jsx("section",{children:f.jsx(X,{id:"gB0RTR",components:{0:f.jsx("h3",{}),1:f.jsx("p",{}),2:f.jsx("ul",{}),3:f.jsx("li",{}),4:f.jsx("strong",{}),5:f.jsx("li",{}),6:f.jsx("strong",{}),7:f.jsx("li",{}),8:f.jsx("strong",{}),9:f.jsx("li",{}),10:f.jsx("strong",{})}})}),f.jsx("section",{children:f.jsx(X,{id:"bfpG7G",components:{0:f.jsx("h3",{}),1:f.jsx("p",{}),2:f.jsx("strong",{}),3:f.jsx("ul",{}),4:f.jsx("li",{}),5:f.jsx("li",{}),6:f.jsx("li",{}),7:f.jsx("p",{}),8:f.jsx(En,{href:`https://bsky.app/profile/${e.preferred_username??e.sub}`}),9:f.jsx("p",{}),10:f.jsx(zc,{})}})}),f.jsxs("section",{children:[f.jsx(X,{id:"7+d6kP",components:{0:f.jsx("h3",{}),1:f.jsx("p",{})}}),f.jsxs("ul",{children:[f.jsx("li",{children:f.jsx(X,{id:"NS7S2h",components:{0:f.jsx(En,{className:"underline",href:"https://bsky.social"})}})}),f.jsx("li",{children:f.jsx(X,{id:"ZWuMKu",components:{0:f.jsx(En,{className:"underline",href:"https://atproto.com"})}})})]})]})]})}function Qi({value:e,startAngle:t=0,progressDirection:s="clockwise",size:n=24,strokeWidth:r=2,className:o,...i}){const a=n/2,c=a-r/2,l=2*Math.PI*c,u=Math.max(0,Math.min(100,e??70))/100,m=s==="clockwise"?l*(1-u):l*u;return f.jsxs("svg",{width:n,height:n,style:{transform:`rotate(${t}deg)`},className:un(e==null&&"animate-spin",o),...i,children:[f.jsx("circle",{cx:a,cy:a,r:c,fill:"none",stroke:"currentColor",strokeWidth:r,className:"opacity-20"}),f.jsx("circle",{cx:a,cy:a,r:c,fill:"none",stroke:"currentColor",strokeWidth:r,strokeDasharray:l,strokeDashoffset:m,strokeLinecap:"round",className:"transition-all duration-100 ease-linear",style:{transform:s==="counter-clockwise"?"scaleX(-1)":void 0,transformOrigin:"center"}})]})}function Kc(e){const{i18n:t,_:s}=nt(),n=ff(e),r=pf(),o=Math.floor(n/1e3);if(o<60)return t._({id:"xOTzt5"});const i=Math.floor(o/60);if(i===1)return t._({id:"kMDavg"});if(i<60)return t._({id:"KtNcea",values:{deltaMinutes:i}});const a=Math.floor(i/60);if(a===1)return t._({id:"x6/d1l"});if(a<24)return t._({id:"69w9p3",values:{deltaHours:a}});if(a<48&&new Date(e).getTime()<r)return t._({id:"rQRrkB"});const c=Math.floor(a/24);return t._({id:"cd9Wo5",values:{deltaDays:c}})}function ff(e){const t=p.useMemo(()=>new Date(e),[e]),[s,n]=p.useState(()=>Date.now()-t.getTime());return p.useEffect(()=>{const r=setInterval(()=>{n(Date.now()-t.getTime())},1e3);return()=>clearInterval(r)},[t]),s}function pf(){const[e,t]=p.useState(()=>{const s=new Date;return new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime()});return p.useEffect(()=>{const s=setInterval(()=>{const n=new Date;t(new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime())},6e4);return()=>clearInterval(s)},[]),e}function mf({date:e}){return Kc(e)}const Si=({sub:e})=>["oauth-sessions",e];function gf({sub:e}){const t=$s();return Ua({refetchOnWindowFocus:"always",queryKey:Si({sub:e}),retry:0,staleTime:5e3,queryFn:async s=>await t.fetch("GET","/oauth-sessions",{sub:e},s)})}function vf(){const e=$s(),t=cr();return lr({async mutationFn({sub:s,tokenId:n}){await e.fetch("POST","/revoke-oauth-session",{sub:s,tokenId:n})},onError(s,{sub:n}){t.invalidateQueries({queryKey:Si({sub:n})})},onSuccess(s,{sub:n}){t.invalidateQueries({queryKey:Si({sub:n})})}})}const yf="urn:ietf:params:oauth:client-assertion-type:jwt-bearer";var va;const wf=((va=URL.canParse)==null?void 0:va.bind(URL))??(e=>{try{return new URL(e),!0}catch{return!1}});function Wc(e){return!!(e.match(/^\d+\.\d+\.\d+\.\d+$/)||e.startsWith("[")&&e.endsWith("]"))}function Qc(e){return e==="localhost"||e==="127.0.0.1"||e==="[::1]"}function bf(e){const t=e.split(".");if(t.length<2)return!0;const s=t.at(-1).toLowerCase();return s==="test"||s==="local"||s==="localhost"||s==="invalid"||s==="example"}function xf(e){const t=e.startsWith("https://")?8:e.startsWith("http://")?7:-1;if(t===-1)throw new TypeError('URL must use the "https:" or "http:" protocol');const s=e.indexOf("#",t),n=e.indexOf("?",t),r=n!==-1&&(s===-1||n<s)?n:-1,o=s===-1?r===-1?e.length:r:r===-1?s:Math.min(s,r),i=e.indexOf("/",t),a=i===-1||i>o?o:i;if(t===a)throw new TypeError("URL must contain a host");return e.substring(a,o)}const Ho=e=>{if(typeof e=="string"&&e.startsWith("{")&&e.endsWith("}"))try{return JSON.parse(e)}catch{return e}return e},_f=e=>{if(typeof e=="string"){const t=Number(e);if(!Number.isNaN(t))return t}return e},Sf=(e,t)=>{if(e.length===0)throw new TypeError("Value cannot be empty");if(e.includes(" "))throw new TypeError("Value cannot contain spaces");const s=t.length,n=e.length;if(s<n)return!1;let r=t.indexOf(e),o;for(;r!==-1;){if(o=r+n,(r===0||t.charCodeAt(r-1)===32)&&(o===s||t.charCodeAt(o)===32))return!0;r=t.indexOf(e,o+1)}return!1},vr=h.string().refine(e=>e.includes(":")&&wf(e),{message:"Invalid URL"}),Jc=vr.superRefine((e,t)=>{if(!e.startsWith("http://"))return t.addIssue({code:ge.custom,message:'URL must use the "http:" protocol'}),!1;const s=new URL(e);return Qc(s.hostname)?!0:(t.addIssue({code:ge.custom,message:'URL must use "localhost", "127.0.0.1" or "[::1]" as hostname'}),!1)}),Ji=vr.superRefine((e,t)=>{if(!e.startsWith("https://"))return t.addIssue({code:ge.custom,message:'URL must use the "https:" protocol'}),!1;const s=new URL(e);if(Qc(s.hostname))return t.addIssue({code:ge.custom,message:"https: URL must not use a loopback host"}),!1;if(!Wc(s.hostname)){if(!s.hostname.includes("."))return t.addIssue({code:ge.custom,message:"Domain name must contain at least two segments"}),!1;if(s.hostname.endsWith(".local"))return t.addIssue({code:ge.custom,message:'Domain name must not end with ".local"'}),!1}return!0}),de=h.string().superRefine((e,t)=>{if(e.startsWith("http://")){const s=Jc.safeParse(e);return s.success||s.error.issues.forEach(t.addIssue,t),s.success}if(e.startsWith("https://")){const s=Ji.safeParse(e);return s.success||s.error.issues.forEach(t.addIssue,t),s.success}return t.addIssue({code:ge.custom,message:'URL must use the "http:" or "https:" protocol'}),!1}),Rf=vr.superRefine((e,t)=>{const s=e.indexOf("."),n=e.indexOf(":");if(s===-1||n===-1||s>n)return t.addIssue({code:ge.custom,message:'Private-use URI scheme requires a "." as part of the protocol'}),!1;const r=new URL(e);if(!r.protocol.includes("."))return t.addIssue({code:ge.custom,message:"Invalid private-use URI scheme"}),!1;const i=r.protocol.slice(0,-1).split(".").reverse().join(".");return bf(i)&&t.addIssue({code:ge.custom,message:"Private-use URI Scheme redirect URI must not be a local hostname"}),r.href.startsWith(`${r.protocol}//`)||r.username||r.password||r.hostname||r.port?(t.addIssue({code:ge.custom,message:"Private-Use URI Scheme must be in the form <scheme>:/{path} (notice the single slash!) as per RFC 8252"}),!1):!0}),Pf=/^[\x21\x23-\x5B\x5D-\x7E]+(?: [\x21\x23-\x5B\x5D-\x7E]+)*$/,Gc=e=>Pf.test(e),Gi=h.string().refine(Gc,{message:"Invalid OAuth scope"}),Cf="atproto";function Af(e){return Gc(e)&&Sf(Cf,e)}const Ef=h.string().refine(Af,{message:"Invalid ATProto OAuth scope"}),$t=h.string().min(1),Yc=Jc.superRefine((e,t)=>e.startsWith("http://localhost")?(t.addIssue({code:ge.custom,message:'Use of "localhost" hostname is not allowed (RFC 8252), use a loopback IP such as "127.0.0.1" instead'}),!1):!0),kf=Yc,Yi=h.string().superRefine((e,t)=>{if(e.startsWith("https:")){const s=Ji.safeParse(e);return s.success||s.error.issues.forEach(t.addIssue,t),s.success}else if(e.startsWith("http:")){const s=Yc.safeParse(e);return s.success||s.error.issues.forEach(t.addIssue,t),s.success}else if(/^[^.:]+(?:\.[^.:]+)+:/.test(e)){const s=Rf.safeParse(e);return s.success||s.error.issues.forEach(t.addIssue,t),s.success}else return t.addIssue({code:ge.custom,message:'URL must use the "https:" or "http:" protocol, or a private-use URI scheme (RFC 8252)'}),!1}),Zt="http://localhost";$t.superRefine((e,t)=>{const s=el(e);return s.success||t.addIssue({code:"custom",message:s.message}),s.success});function Xc(e){return el(e).success}function el(e){if(!e.startsWith(Zt))return{success:!1,message:`Value must start with "${Zt}"`};if(e.includes("#",Zt.length))return{success:!1,message:"Value must not contain a hash component"};const t=e.length>Zt.length&&e.charCodeAt(Zt.length)===47?Zt.length+1:Zt.length;if(e.length!==t&&e.charCodeAt(t)!==63)return{success:!1,message:"Value must not contain a path component"};const s=e.slice(t+1);return jf(s)}function jf(e){const t={},s=typeof e=="string"?new URLSearchParams(e):e;for(const[n,r]of s)if(n==="scope"){if("scope"in t)return{success:!1,message:'Duplicate "scope" query parameter'};const o=Gi.safeParse(r);if(!o.success)return{success:!1,message:`Invalid "scope" query parameter: ${o.error.issues.map(a=>a.message).join(", ")||"Validation failed"}`};t.scope=o.data}else if(n==="redirect_uri"){const o=kf.safeParse(r);if(!o.success)return{success:!1,message:`Invalid "redirect_uri" query parameter: ${o.error.issues.map(a=>a.message).join(", ")||"Validation failed"}`};t.redirect_uris==null?t.redirect_uris=[o.data]:t.redirect_uris.push(o.data)}else return{success:!1,message:`Unexpected query parameter "${n}"`};return{success:!0,value:t}}const Of="ERR_JWKS_NO_MATCHING_KEY",Mf="ERR_JWK_INVALID",Uo="ERR_JWK_NOT_FOUND",nr="ERR_JWT_INVALID",Lf="ERR_JWT_CREATE",If="ERR_JWT_VERIFY";class Tt extends TypeError{constructor(t="JWK error",s=Mf,n){super(t,n),this.code=s}}class ln extends Error{constructor(t="Unable to create JWT",s=Lf,n){super(t,n),this.code=s}static from(t,s,n){return t instanceof ln?t:t instanceof Tt?new ln(n,t.code,{cause:t}):new ln(n,s,{cause:t})}}class pt extends Error{constructor(t="Invalid JWT",s=If,n){super(t,n),this.code=s}static from(t,s,n){return t instanceof pt?t:t instanceof Tt?new pt(n,t.code,{cause:t}):new pt(n,s,{cause:t})}}class Nf{constructor(t,s,n){xe(this,"name");xe(this,"prefix");xe(this,"baseEncode");this.name=t,this.prefix=s,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class Tf{constructor(t,s,n){xe(this,"name");xe(this,"prefix");xe(this,"baseDecode");xe(this,"prefixCodePoint");this.name=t,this.prefix=s;const r=s.codePointAt(0);if(r===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r,this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return tl(this,t)}}class Ff{constructor(t){xe(this,"decoders");this.decoders=t}or(t){return tl(this,t)}decode(t){const s=t[0],n=this.decoders[s];if(n!=null)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}function tl(e,t){return new Ff({...e.decoders??{[e.prefix]:e},...t.decoders??{[t.prefix]:t}})}class Df{constructor(t,s,n,r){xe(this,"name");xe(this,"prefix");xe(this,"baseEncode");xe(this,"baseDecode");xe(this,"encoder");xe(this,"decoder");this.name=t,this.prefix=s,this.baseEncode=n,this.baseDecode=r,this.encoder=new Nf(t,s,n),this.decoder=new Tf(t,s,r)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}function Hf({name:e,prefix:t,encode:s,decode:n}){return new Df(e,t,s,n)}function Uf(e,t,s,n){let r=e.length;for(;e[r-1]==="=";)--r;const o=new Uint8Array(r*s/8|0);let i=0,a=0,c=0;for(let l=0;l<r;++l){const d=t[e[l]];if(d===void 0)throw new SyntaxError(`Non-${n} character`);a=a<<s|d,i+=s,i>=8&&(i-=8,o[c++]=255&a>>i)}if(i>=s||(255&a<<8-i)!==0)throw new SyntaxError("Unexpected end of data");return o}function Bf(e,t,s){const n=t[t.length-1]==="=",r=(1<<s)-1;let o="",i=0,a=0;for(let c=0;c<e.length;++c)for(a=a<<8|e[c],i+=8;i>s;)i-=s,o+=t[r&a>>i];if(i!==0&&(o+=t[r&a<<s-i]),n)for(;(o.length*s&7)!==0;)o+="=";return o}function $f(e){const t={};for(let s=0;s<e.length;++s)t[e[s]]=s;return t}function yr({name:e,prefix:t,bitsPerChar:s,alphabet:n}){const r=$f(n);return Hf({prefix:t,name:e,encode(o){return Bf(o,n,s)},decode(o){return Uf(o,r,s,e)}})}yr({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6});yr({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6});const Vf=yr({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6});yr({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});const Bo=e=>e!==void 0,qf=e=>(t,s)=>{const n=e.indexOf(t),r=e.indexOf(s);return n===r?0:n===-1?1:r===-1?-1:n-r};function Zf(e){return e==null?t=>!0:Array.isArray(e)?t=>e.includes(t):t=>t===e}const _t=(e,t)=>function(){const s=e.call(this);return Object.defineProperty(this,e.name,{get:()=>s,enumerable:!0,configurable:!0}),s},zf=new TextDecoder;function $o(e){const t=Vf.baseDecode(e),s=zf.decode(t);return JSON.parse(s)}const sl=(e,t)=>{let s;for(let n=0;n<e.length;n++)if(s=e.charCodeAt(n),!(65<=s&&s<=90||97<=s&&s<=122||48<=s&&s<=57||s===45||s===95||s===46)){const r=String.fromCodePoint(e.codePointAt(n));return t.addIssue({code:ge.custom,message:`Invalid character "${r}" in JWT at position ${n}`})}},nl=(e,t=2)=>{if(!Number.isFinite(e)||e<1||(e|0)!==e)throw new TypeError(`Count must be a natural number (got ${e})`);const s=e*t+(e-1),n="Invalid JWT format";return(r,o)=>{if(r.length<s)return o.addIssue({code:ge.custom,message:`${n}: too short`}),!1;let i=0;for(let a=0;a<e-1;a++){const c=r.indexOf(".",i);if(c===-1)return o.addIssue({code:ge.custom,message:`${n}: expected ${e} segments, got ${a+1}`}),!1;if(c-i<t)return o.addIssue({code:ge.custom,message:`${n}: segment ${a+1} is too short`}),!1;i=c+1}return r.indexOf(".",i)!==-1?(o.addIssue({code:ge.custom,message:`${n}: too many segments`}),!1):r.length-i<t?(o.addIssue({code:ge.custom,message:`${n}: last segment is too short`}),!1):!0}};function Kf(e,t,s){return s.indexOf(e,t+1)===-1}const wr=["verify","encrypt","wrapKey"];h.enum(wr);function Xi(e){return wr.includes(e)}function eo(e){return e==="verify"}function to(e){return e==="encrypt"||e==="wrapKey"}const so=["sign","decrypt","unwrapKey","deriveKey","deriveBits"];h.enum(so);function Wf(e){return so.includes(e)}const Qf=[...so,...wr],Jf=h.enum(Qf),Pn=h.object({kty:h.string().min(1),alg:h.string().min(1).optional(),kid:h.string().min(1).optional(),use:h.enum(["sig","enc"]).optional(),key_ops:h.array(Jf).min(1,{message:"At least one key usage must be specified"}).refine(e=>e.every(Kf),{message:"key_ops must not contain duplicates"}).optional(),x5c:h.array(h.string()).optional(),x5t:h.string().min(1).optional(),"x5t#S256":h.string().min(1).optional(),x5u:h.string().url().optional(),ext:h.boolean().optional(),iat:h.number().int().optional(),exp:h.number().int().optional(),nbf:h.number().int().optional(),revoked:h.object({revoked_at:h.number().int(),reason:h.string().optional()}).optional()}),Gf=Pn.extend({kty:h.literal("RSA"),alg:h.enum(["RS256","RS384","RS512","PS256","PS384","PS512"]).optional(),n:h.string().min(1),e:h.string().min(1),d:h.string().min(1).optional(),p:h.string().min(1).optional(),q:h.string().min(1).optional(),dp:h.string().min(1).optional(),dq:h.string().min(1).optional(),qi:h.string().min(1).optional(),oth:h.array(h.object({r:h.string().optional(),d:h.string().optional(),t:h.string().optional()})).min(1).optional()}),Yf=Pn.extend({kty:h.literal("EC"),alg:h.enum(["ES256","ES384","ES512"]).optional(),crv:h.enum(["P-256","P-384","P-521"]),x:h.string().min(1),y:h.string().min(1),d:h.string().min(1).optional()}),Xf=Pn.extend({kty:h.literal("EC"),alg:h.enum(["ES256K"]).optional(),crv:h.enum(["secp256k1"]),x:h.string().min(1),y:h.string().min(1),d:h.string().min(1).optional()}),e0=Pn.extend({kty:h.literal("OKP"),alg:h.enum(["EdDSA"]).optional(),crv:h.enum(["Ed25519","Ed448"]),x:h.string().min(1),d:h.string().min(1).optional()}),t0=Pn.extend({kty:h.literal("oct"),alg:h.enum(["HS256","HS384","HS512"]).optional(),k:h.string()}),br=h.union([Gf,Yf,Xf,e0,t0]).refine(e=>e.use==null||il(e),{message:'"use" can only be used with public keys',path:["use"]}).refine(e=>{var t;return!((t=e.key_ops)!=null&&t.some(Wf))||io(e)},{message:"private key usage not allowed for public keys",path:["key_ops"]}).refine(e=>e.use==null||e.key_ops==null||e.use==="sig"&&e.key_ops.every(eo)||e.use==="enc"&&e.key_ops.every(to),{message:'"key_ops" must be consistent with "use"',path:["key_ops"]}),no=br.refine(s0,{message:'"kid" is required',path:["kid"]}).refine(il,{message:"private key not allowed"}).refine(e=>!e.key_ops||e.key_ops.every(Xi),{message:'"key_ops" must not contain private key usage for public keys',path:["key_ops"]});br.refine(io,{message:"private key required"});function s0(e){return"kid"in e&&e.kid!=null}function ro(e){return"k"in e&&e.k!=null}function rl(e){return"d"in e&&e.d!=null}function io(e){return rl(e)||ro(e)}function il(e){return!rl(e)&&!ro(e)}const{process:In}=globalThis;var ya;const Vo=typeof In<"u"&&typeof((ya=In==null?void 0:In.versions)==null?void 0:ya.node)=="string";function*n0(e){if(typeof e.alg=="string"){yield e.alg;return}switch(e.kty){case"EC":{if(Ur(e)&&(yield"ECDH-ES",yield"ECDH-ES+A128KW",yield"ECDH-ES+A192KW",yield"ECDH-ES+A256KW"),Br(e)){const t="crv"in e?e.crv:void 0;switch(t){case"P-256":case"P-384":yield`ES${t.slice(-3)}`;break;case"P-521":yield"ES512";break;case"secp256k1":Vo&&(yield"ES256K");break;default:throw new Tt(`Unsupported crv "${t}"`)}}return}case"OKP":{if(!e.use)throw new Tt('Missing "use" Parameter value');yield"ECDH-ES",yield"ECDH-ES+A128KW",yield"ECDH-ES+A192KW",yield"ECDH-ES+A256KW";return}case"RSA":{Ur(e)&&(yield"RSA-OAEP",yield"RSA-OAEP-256",yield"RSA-OAEP-384",yield"RSA-OAEP-512",Vo&&(yield"RSA1_5")),Br(e)&&(yield"PS256",yield"PS384",yield"PS512",yield"RS256",yield"RS384",yield"RS512");return}case"oct":{Ur(e)&&(yield"A128GCMKW",yield"A192GCMKW",yield"A256GCMKW",yield"A128KW",yield"A192KW",yield"A256KW"),Br(e)&&(yield"HS256",yield"HS384",yield"HS512");return}default:throw new Tt(`Unsupported kty "${e.kty}"`)}}function Ur(e){var t;return((t=e.key_ops)==null?void 0:t.some(to))??(e.use==null||e.use==="enc")}function Br(e){var t;return((t=e.key_ops)==null?void 0:t.some(eo))??(e.use==null||e.use==="sig")}h.object({keys:h.array(h.unknown()).transform(e=>e.map(t=>br.safeParse(t)).filter(t=>t.success).map(t=>t.data))});const r0=h.object({keys:h.array(h.unknown()).transform(e=>e.map(t=>no.safeParse(t)).filter(t=>t.success).map(t=>t.data))}),xr=h.string().superRefine(sl).superRefine(nl(3)),i0=h.string().superRefine(sl).superRefine(nl(2)),o0=h.object({alg:h.string(),jku:h.string().url().optional(),jwk:h.object({kty:h.string(),crv:h.string().optional(),x:h.string().optional(),y:h.string().optional(),e:h.string().optional(),n:h.string().optional()}).optional(),kid:h.string().optional(),x5u:h.string().optional(),x5c:h.array(h.string()).optional(),x5t:h.string().optional(),"x5t#S256":h.string().optional(),typ:h.string().optional(),cty:h.string().optional(),crit:h.array(h.string()).optional()}).passthrough(),a0=h.string().superRefine((e,t)=>{try{const s=new URL(e);s.protocol!=="http:"&&s.protocol!=="https:"&&t.addIssue({code:h.ZodIssueCode.custom,message:"Only http: and https: protocols are allowed"}),(s.username||s.password)&&t.addIssue({code:h.ZodIssueCode.custom,message:"Credentials not allowed"}),s.search&&t.addIssue({code:h.ZodIssueCode.custom,message:"Query string not allowed"}),s.hash&&t.addIssue({code:h.ZodIssueCode.custom,message:"Fragment not allowed"})}catch{t.addIssue({code:h.ZodIssueCode.invalid_string,validation:"url"})}return e}),c0=h.object({iss:h.string().optional(),aud:h.union([h.string(),h.array(h.string()).nonempty()]).optional(),sub:h.string().optional(),exp:h.number().int().optional(),nbf:h.number().int().optional(),iat:h.number().int().optional(),jti:h.string().optional(),htm:h.string().optional(),htu:a0.optional(),ath:h.string().optional(),acr:h.string().optional(),azp:h.string().optional(),amr:h.array(h.string()).optional(),cnf:h.object({kid:h.string().optional(),jwk:no.optional(),jwe:h.string().optional(),jku:h.string().url().optional(),jkt:h.string().optional(),"x5t#S256":h.string().optional(),osc:h.string().optional()}).optional(),client_id:h.string().optional(),scope:h.string().optional(),nonce:h.string().optional(),at_hash:h.string().optional(),c_hash:h.string().optional(),s_hash:h.string().optional(),auth_time:h.number().int().optional(),name:h.string().optional(),family_name:h.string().optional(),given_name:h.string().optional(),middle_name:h.string().optional(),nickname:h.string().optional(),preferred_username:h.string().optional(),gender:h.string().optional(),picture:h.string().url().optional(),profile:h.string().url().optional(),website:h.string().url().optional(),birthdate:h.string().regex(/\d{4}-\d{2}-\d{2}/).optional(),zoneinfo:h.string().regex(/^[A-Za-z0-9_/]+$/).optional(),locale:h.string().regex(/^[a-z]{2,3}(-[A-Z]{2})?$/).optional(),updated_at:h.number().int().optional(),email:h.string().optional(),email_verified:h.boolean().optional(),phone_number:h.string().optional(),phone_number_verified:h.boolean().optional(),address:h.object({formatted:h.string().optional(),street_address:h.string().optional(),locality:h.string().optional(),region:h.string().optional(),postal_code:h.string().optional(),country:h.string().optional()}).optional(),authorization_details:h.array(h.object({type:h.string(),locations:h.array(h.string()).optional(),actions:h.array(h.string()).optional(),datatypes:h.array(h.string()).optional(),identifier:h.string().optional(),privileges:h.array(h.string()).optional()}).passthrough()).optional()}).passthrough();function l0(e){const{0:t,1:s,length:n}=e.split(".");if(n>3||n<2)throw new pt(void 0,nr);const r=o0.parse($o(t));if(n===2&&(r==null?void 0:r.alg)!=="none")throw new pt(void 0,nr);const o=c0.parse($o(s));return{header:r,payload:o}}var u0=function(e,t,s){for(var n=arguments.length>2,r=0;r<t.length;r++)s=n?t[r].call(e,s):t[r].call(e);return n?s:void 0},Ks=function(e,t,s,n,r,o){function i(_){if(_!==void 0&&typeof _!="function")throw new TypeError("Function expected");return _}for(var a=n.kind,c=a==="getter"?"get":a==="setter"?"set":"value",l=!t&&e?n.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),u,m=!1,g=s.length-1;g>=0;g--){var y={};for(var w in n)y[w]=w==="access"?{}:n[w];for(var w in n.access)y.access[w]=n.access[w];y.addInitializer=function(_){if(m)throw new TypeError("Cannot add initializers after decoration has completed");o.push(i(_||null))};var b=(0,s[g])(a==="accessor"?{get:d.get,set:d.set}:d[c],y);if(a==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(u=i(b.get))&&(d.get=u),(u=i(b.set))&&(d.set=u),(u=i(b.init))&&r.unshift(u)}else(u=i(b))&&(a==="field"?r.unshift(u):d[c]=u)}l&&Object.defineProperty(l,n.name,d),m=!0};(()=>{var i;let e=[],t,s,n,r,o;return i=class{constructor(c){this.jwk=(u0(this,e),c)}get isPrivate(){return io(this.jwk)}get isSymetric(){return ro(this.jwk)}get privateJwk(){if(this.isPrivate)return this.jwk}get publicJwk(){if(this.isSymetric)return;if(!this.isPrivate)return this.jwk;const c=no.safeParse({...this.jwk,d:void 0,k:void 0,use:void 0,key_ops:d0(this.keyOps)??wr});if(c.success)return Object.freeze(c.data)}get bareJwk(){if(this.isSymetric)return;const{kty:c,crv:l,e:d,n:u,x:m,y:g}=this.jwk;return Object.freeze(br.parse({crv:l,e:d,kty:c,n:u,x:m,y:g}))}get use(){return this.jwk.use}get keyOps(){return this.jwk.key_ops}get alg(){return this.jwk.alg}get kid(){return this.jwk.kid}get crv(){return this.jwk.crv}get algorithms(){return Object.freeze(Array.from(n0(this.jwk)))}get isRevoked(){return this.jwk.revoked!=null}isActive(c){var d;if(!(c!=null&&c.allowRevoked)&&this.isRevoked)return!1;const l=(c==null?void 0:c.clockTolerance)??0;if(l!==1/0){const u=((d=c==null?void 0:c.currentDate)==null?void 0:d.getTime())??Date.now(),{exp:m,nbf:g}=this.jwk;if(g!=null&&!(u>=g*1e3-l)||m!=null&&!(u<m*1e3+l))return!1}return!0}matches(c){return!(c.kid!=null&&!(Array.isArray(c.kid)?this.kid!=null&&c.kid.includes(this.kid):this.kid===c.kid)||c.alg!=null&&!(Array.isArray(c.alg)?c.alg.some(d=>this.algorithms.includes(d)):this.algorithms.includes(c.alg))||c.usage!=null&&(!(this.keyOps==null||this.keyOps.includes(c.usage)||c.usage==="verify"&&this.keyOps.includes("sign")||c.usage==="encrypt"&&this.keyOps.includes("decrypt")||c.usage==="wrapKey"&&this.keyOps.includes("unwrapKey"))||!(this.use==null||this.use==="sig"&&eo(c.usage)||this.use==="enc"&&to(c.usage))||!(this.isPrivate||Xi(c.usage))))}},(()=>{const c=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[_t],s=[_t],n=[_t],r=[_t],o=[_t],Ks(i,null,t,{kind:"getter",name:"isPrivate",static:!1,private:!1,access:{has:l=>"isPrivate"in l,get:l=>l.isPrivate},metadata:c},null,e),Ks(i,null,s,{kind:"getter",name:"isSymetric",static:!1,private:!1,access:{has:l=>"isSymetric"in l,get:l=>l.isSymetric},metadata:c},null,e),Ks(i,null,n,{kind:"getter",name:"publicJwk",static:!1,private:!1,access:{has:l=>"publicJwk"in l,get:l=>l.publicJwk},metadata:c},null,e),Ks(i,null,r,{kind:"getter",name:"bareJwk",static:!1,private:!1,access:{has:l=>"bareJwk"in l,get:l=>l.bareJwk},metadata:c},null,e),Ks(i,null,o,{kind:"getter",name:"algorithms",static:!1,private:!1,access:{has:l=>"algorithms"in l,get:l=>l.algorithms},metadata:c},null,e),c&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c})})(),i})();function d0(e){if(e==null)return;const t=new Set(e.filter(Xi));return e.includes("sign")&&t.add("verify"),e.includes("decrypt")&&t.add("encrypt"),e.includes("unwrapKey")&&t.add("wrapKey"),Array.from(t)}var h0=function(e,t,s){for(var n=arguments.length>2,r=0;r<t.length;r++)s=n?t[r].call(e,s):t[r].call(e);return n?s:void 0},$r=function(e,t,s,n,r,o){function i(_){if(_!==void 0&&typeof _!="function")throw new TypeError("Function expected");return _}for(var a=n.kind,c=a==="getter"?"get":a==="setter"?"set":"value",l=!t&&e?n.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),u,m=!1,g=s.length-1;g>=0;g--){var y={};for(var w in n)y[w]=w==="access"?{}:n[w];for(var w in n.access)y.access[w]=n.access[w];y.addInitializer=function(_){if(m)throw new TypeError("Cannot add initializers after decoration has completed");o.push(i(_||null))};var b=(0,s[g])(a==="accessor"?{get:d.get,set:d.set}:d[c],y);if(a==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(u=i(b.get))&&(d.get=u),(u=i(b.set))&&(d.set=u),(u=i(b.init))&&r.unshift(u)}else(u=i(b))&&(a==="field"?r.unshift(u):d[c]=u)}l&&Object.defineProperty(l,n.name,d),m=!0};const f0=e=>e.privateJwk,p0=e=>e.publicJwk;(()=>{var r;let e=[],t,s,n;return r=class{constructor(i,a=i instanceof r?[...i.preferredSigningAlgorithms]:["EdDSA","ES256K","ES256","PS256","PS384","PS512","HS256","HS384","HS512"]){this.preferredSigningAlgorithms=(h0(this,e),a);const c=[],l=new Set;for(const d of i)if(d&&(c.push(d),d.kid)){if(l.has(d.kid))throw new Tt(`Duplicate key: ${d.kid}`);l.add(d.kid)}this.keys=Object.freeze(c)}get size(){return this.keys.length}get signAlgorithms(){const i=new Set;for(const a of this)if(a.use==="sig")for(const c of a.algorithms)i.add(c);return Object.freeze([...i].sort(qf(this.preferredSigningAlgorithms)))}get publicJwks(){return Object.freeze({keys:Object.freeze(Array.from(this,p0).filter(Bo))})}get privateJwks(){return Object.freeze({keys:Object.freeze(Array.from(this,f0).filter(Bo))})}has(i){return this.keys.some(a=>a.kid===i)}get(i){const a=this.find(i);if(a)return a;throw new Tt(`Key not found ${i.kid??i.alg??i.usage??"<unknown>"}`,Uo)}find(i){for(const a of this.list(i))return a}*list(i){for(const a of this)a.isActive(i)&&a.matches(i)&&(yield a)}findPrivateKey({kid:i,alg:a,usage:c,...l}){const d=[];Array.isArray(a)&&a.length===1&&(a=a[0]);for(const g of this.list({...l,kid:i,alg:a,usage:c})){if(typeof a=="string")return{key:g,alg:a};d.push(g)}const u=Zf(a),m=d.map(g=>[g,g.algorithms.filter(u)]);for(const g of this.preferredSigningAlgorithms)for(const[y,w]of m)if(w.includes(g))return{key:y,alg:g};for(const[g,y]of m)for(const w of y)return{key:g,alg:w};throw new Tt(`No private key found for ${i||a||c}`,Uo)}[(t=[_t],s=[_t],n=[_t],Symbol.iterator)](){return this.keys.values()}async createJwt({alg:i,kid:a,...c},l){try{const{key:d,alg:u}=this.findPrivateKey({alg:i,kid:a,usage:"sign",allowRevoked:!1}),m={...c,alg:u,kid:d.kid};return typeof l=="function"&&(l=await l(m,d)),await d.createJwt(m,l)}catch(d){throw ln.from(d)}}async verifyJwt(i,a){const{header:c}=l0(i),{kid:l,alg:d}=c,u=[];for(const m of this.list({...a,kid:l,alg:d,usage:"verify"}))try{return{...await m.verifyJwt(i,a),key:m}}catch(g){u.push(g)}switch(u.length){case 0:throw new pt("No key matched",Of);case 1:throw pt.from(u[0],nr);default:throw pt.from(u,nr)}}toJSON(){return structuredClone(this.publicJwks)}},(()=>{const i=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;$r(r,null,t,{kind:"getter",name:"signAlgorithms",static:!1,private:!1,access:{has:a=>"signAlgorithms"in a,get:a=>a.signAlgorithms},metadata:i},null,e),$r(r,null,s,{kind:"getter",name:"publicJwks",static:!1,private:!1,access:{has:a=>"publicJwks"in a,get:a=>a.publicJwks},metadata:i},null,e),$r(r,null,n,{kind:"getter",name:"privateJwks",static:!1,private:!1,access:{has:a=>"privateJwks"in a,get:a=>a.privateJwks},metadata:i},null,e),i&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),r})();const m0=h.object({type:h.string(),locations:h.array(vr).optional(),actions:h.array(h.string()).optional(),datatypes:h.array(h.string()).optional(),identifier:h.string().optional(),privileges:h.array(h.string()).optional()}),ol=h.array(m0),g0=h.union([h.string().regex(/^DPoP$/i).transform(()=>"DPoP"),h.string().regex(/^Bearer$/i).transform(()=>"Bearer")]),v0=h.object({access_token:h.string(),token_type:g0,scope:h.string().optional(),refresh_token:h.string().optional(),expires_in:h.number().optional(),id_token:xr.optional(),authorization_details:ol.optional()}).passthrough();v0.extend({token_type:h.literal("DPoP"),sub:$l,scope:Ef,id_token:h.never().optional()});const y0=h.string().min(1),w0=h.object({grant_type:h.literal("authorization_code"),code:h.string().min(1),redirect_uri:Yi,code_verifier:h.string().min(43).max(128).regex(/^[a-zA-Z0-9-._~]+$/).optional()}),al=h.object({request:h.union([xr,i0])}),cl=h.enum(["S256","plain"]),ll=h.enum(["none","login","consent","select_account","create"]),b0=h.enum(["query","fragment","form_post"]),ul=h.enum(["code","token","none","code id_token token","code id_token","code token","id_token token","id_token"]),x0=h.enum(["auth_time","nonce","acr","name","family_name","given_name","middle_name","nickname","preferred_username","gender","picture","profile","website","birthdate","zoneinfo","locale","updated_at","email","email_verified","phone_number","phone_number_verified","address"]),qo=h.union([h.string(),h.number(),h.boolean()]),_0=h.object({essential:h.boolean().optional(),value:qo.optional(),values:h.array(qo).optional()}),S0=h.enum(["userinfo","id_token"]),dl=h.object({client_id:$t,state:h.string().optional(),redirect_uri:Yi.optional(),scope:Gi.optional(),response_type:ul,code_challenge:h.string().optional(),code_challenge_method:cl.optional(),dpop_jkt:h.string().optional(),response_mode:b0.optional(),nonce:h.string().optional(),max_age:h.preprocess(_f,h.number().int().min(0)).optional(),claims:h.preprocess(Ho,h.record(S0,h.record(x0,h.union([h.literal(null),_0])))).optional(),login_hint:h.string().min(1).optional(),ui_locales:h.string().regex(/^[a-z]{2,3}(-[A-Z]{2})?( [a-z]{2,3}(-[A-Z]{2})?)*$/).optional(),id_token_hint:xr.optional(),display:h.enum(["page","popup","touch","wap"]).optional(),prompt:ll.optional(),authorization_details:h.preprocess(Ho,ol).optional()});h.union([dl,al]);const R0=h.string().min(1),P0=h.object({request_uri:R0});h.intersection(h.object({client_id:$t}),h.union([dl,al,P0]));h.enum(["invalid_request","unauthorized_client","access_denied","unsupported_response_type","invalid_scope","server_error","temporarily_unavailable"]);const hl=de.superRefine((e,t)=>{if(e.endsWith("/"))return t.addIssue({code:h.ZodIssueCode.custom,message:"Issuer URL must not end with a slash"}),!1;const s=new URL(e);if(s.username||s.password)return t.addIssue({code:h.ZodIssueCode.custom,message:"Issuer URL must not contain a username or password"}),!1;if(s.hash||s.search)return t.addIssue({code:h.ZodIssueCode.custom,message:"Issuer URL must not contain a query or fragment"}),!1;const n=s.pathname==="/"?s.origin:s.href;return e!==n?(t.addIssue({code:h.ZodIssueCode.custom,message:"Issuer URL must be in the canonical form"}),!1):!0}),C0=h.object({issuer:hl,claims_supported:h.array(h.string()).optional(),claims_locales_supported:h.array(h.string()).optional(),claims_parameter_supported:h.boolean().optional(),request_parameter_supported:h.boolean().optional(),request_uri_parameter_supported:h.boolean().optional(),require_request_uri_registration:h.boolean().optional(),scopes_supported:h.array(h.string()).optional(),subject_types_supported:h.array(h.string()).optional(),response_types_supported:h.array(h.string()).optional(),response_modes_supported:h.array(h.string()).optional(),grant_types_supported:h.array(h.string()).optional(),code_challenge_methods_supported:h.array(cl).min(1).optional(),ui_locales_supported:h.array(h.string()).optional(),id_token_signing_alg_values_supported:h.array(h.string()).optional(),display_values_supported:h.array(h.string()).optional(),request_object_signing_alg_values_supported:h.array(h.string()).optional(),authorization_response_iss_parameter_supported:h.boolean().optional(),authorization_details_types_supported:h.array(h.string()).optional(),request_object_encryption_alg_values_supported:h.array(h.string()).optional(),request_object_encryption_enc_values_supported:h.array(h.string()).optional(),jwks_uri:de.optional(),authorization_endpoint:de,token_endpoint:de,token_endpoint_auth_methods_supported:h.array(h.string()).default(["client_secret_basic"]),token_endpoint_auth_signing_alg_values_supported:h.array(h.string()).optional(),revocation_endpoint:de.optional(),introspection_endpoint:de.optional(),pushed_authorization_request_endpoint:de.optional(),require_pushed_authorization_requests:h.boolean().optional(),userinfo_endpoint:de.optional(),end_session_endpoint:de.optional(),registration_endpoint:de.optional(),dpop_signing_alg_values_supported:h.array(h.string()).optional(),protected_resources:h.array(de).optional(),client_id_metadata_document_supported:h.boolean().optional(),prompt_values_supported:h.array(ll).optional()});C0.superRefine((e,t)=>{e.require_pushed_authorization_requests&&!e.pushed_authorization_request_endpoint&&t.addIssue({code:h.ZodIssueCode.custom,message:'"pushed_authorization_request_endpoint" required when "require_pushed_authorization_requests" is true'})}).superRefine((e,t)=>{e.response_types_supported&&(e.response_types_supported.includes("code")||t.addIssue({code:h.ZodIssueCode.custom,message:'Response type "code" is required'}))}).superRefine((e,t)=>{var s;(s=e.token_endpoint_auth_signing_alg_values_supported)!=null&&s.includes("none")&&t.addIssue({code:h.ZodIssueCode.custom,message:'Client authentication method "none" is not allowed'})});const A0=h.object({grant_type:h.literal("client_credentials")}),E0=h.object({client_id:$t,client_assertion_type:h.literal(yf),client_assertion:xr}),k0=h.object({client_id:$t,client_secret:h.string()}),j0=h.object({client_id:$t});h.union([E0,k0,j0]);const O0=h.intersection($t,Ji).superRefine((e,t)=>{const s=new URL(e);return s.username||s.password?(t.addIssue({code:h.ZodIssueCode.custom,message:"ClientID must not contain credentials"}),!1):s.hash?(t.addIssue({code:h.ZodIssueCode.custom,message:"ClientID must not contain a fragment"}),!1):s.pathname==="/"?(t.addIssue({code:h.ZodIssueCode.custom,message:'ClientID must contain a path component (e.g. "/client-metadata.json")'}),!1):s.pathname.endsWith("/")?(t.addIssue({code:h.ZodIssueCode.custom,message:"ClientID path must not end with a trailing slash"}),!1):Wc(s.hostname)?(t.addIssue({code:h.ZodIssueCode.custom,message:"ClientID hostname must not be an IP address"}),!1):xf(e)!==s.pathname?(t.addIssue({code:h.ZodIssueCode.custom,message:`ClientID must be in canonical form ("${s.href}", got "${e}")`}),!1):!0}),M0=O0.superRefine((e,t)=>{const s=new URL(e);return s.port?(t.addIssue({code:h.ZodIssueCode.custom,message:"ClientID must not contain a port"}),!1):s.search?(t.addIssue({code:h.ZodIssueCode.custom,message:"ClientID must not contain a query string"}),!1):s.pathname!=="/oauth-client-metadata.json"?(t.addIssue({code:h.ZodIssueCode.custom,message:'ClientID must be "/oauth-client-metadata.json"'}),!1):!0});function fl(e){return M0.safeParse(e).success}const L0=h.enum(["client_secret_basic","client_secret_jwt","client_secret_post","none","private_key_jwt","self_signed_tls_client_auth","tls_client_auth"]),I0=h.enum(["authorization_code","implicit","refresh_token","password","client_credentials","urn:ietf:params:oauth:grant-type:jwt-bearer","urn:ietf:params:oauth:grant-type:saml2-bearer"]);h.object({redirect_uris:h.array(Yi).nonempty(),response_types:h.array(ul).nonempty().default(["code"]),grant_types:h.array(I0).nonempty().default(["authorization_code"]),scope:Gi.optional(),token_endpoint_auth_method:L0.default("client_secret_basic"),token_endpoint_auth_signing_alg:h.string().optional(),userinfo_signed_response_alg:h.string().optional(),userinfo_encrypted_response_alg:h.string().optional(),jwks_uri:de.optional(),jwks:r0.optional(),application_type:h.enum(["web","native"]).default("web"),subject_type:h.enum(["public","pairwise"]).default("public"),request_object_signing_alg:h.string().optional(),id_token_signed_response_alg:h.string().optional(),authorization_signed_response_alg:h.string().default("RS256"),authorization_encrypted_response_enc:h.enum(["A128CBC-HS256"]).optional(),authorization_encrypted_response_alg:h.string().optional(),client_id:$t.optional(),client_name:h.string().optional(),client_uri:de.optional(),policy_uri:de.optional(),tos_uri:de.optional(),logo_uri:de.optional(),default_max_age:h.number().optional(),require_auth_time:h.boolean().optional(),contacts:h.array(h.string().email()).optional(),tls_client_certificate_bound_access_tokens:h.boolean().optional(),dpop_bound_access_tokens:h.boolean().optional(),authorization_details_types:h.array(h.string()).optional()});h.object({request_uri:h.string(),expires_in:h.number().int().positive()});const N0=h.object({grant_type:h.literal("password"),username:h.string(),password:h.string()});h.object({resource:de.refine(e=>!e.includes("?"),{message:"Resource URL must not contain query parameters"}).refine(e=>!e.includes("#"),{message:"Resource URL must not contain a fragment"}),authorization_servers:h.array(hl).optional(),jwks_uri:de.optional(),scopes_supported:h.array(h.string()).optional(),bearer_methods_supported:h.array(h.enum(["header","body","query"])).optional(),resource_signing_alg_values_supported:h.array(h.string()).optional(),resource_documentation:de.optional(),resource_policy_uri:de.optional(),resource_tos_uri:de.optional()});const pl=h.string().min(1),T0=h.object({grant_type:h.literal("refresh_token"),refresh_token:pl});h.object({token:h.union([y0,pl]),token_type_hint:h.enum(["access_token","refresh_token"]).optional()});h.discriminatedUnion("grant_type",[w0,T0,N0,A0]);h.enum(["interaction_required","login_required","account_selection_required","consent_required","invalid_request_uri","invalid_request_object","request_not_supported","request_uri_not_supported","registration_not_supported"]);h.object({sub:h.string(),iss:h.string().url().optional(),aud:h.union([h.string(),h.array(h.string()).min(1)]).optional(),email:h.string().email().optional(),email_verified:h.boolean().optional(),name:h.string().optional(),preferred_username:h.string().optional(),picture:h.string().url().optional()});function F0({clientId:e}){const{i18n:t,_:s}=nt();return Xc(e)?t._({id:"u607t5"}):fl(e)?new URL(e).hostname:e}function D0({clientId:e,clientMetadata:t}){const{i18n:s,_:n}=nt();return Xc(e)?s._({id:"4Yp2r7"}):t!=null&&t.client_name?t.client_name:fl(e)?new URL(e).hostname:e}function H0(){const{account:e}=_n(),{sub:t}=e,{data:s,isLoading:n,refetch:r}=gf({sub:t});return s?s.length>0?f.jsxs("div",{className:"space-y-2",children:[f.jsx("p",{children:f.jsx(X,{id:"kx1Bq7"})}),s.map(o=>f.jsx(U0,{sub:t,session:o},o.tokenId)),f.jsx("p",{className:"text-text-light mt-4 text-sm",children:f.jsx(X,{id:"SLeBc7"})})]}):f.jsx("p",{children:f.jsx(X,{id:"pWhWXw"})}):n?f.jsx(Qi,{className:"text-primary",size:28}):f.jsx(Ei,{role:"status",action:f.jsx(ba,{onClick:()=>r(),children:f.jsx(X,{id:"6gRgw8"})}),children:f.jsx(X,{id:"b9LiEi"})})}function U0({session:{clientId:e,clientMetadata:t,tokenId:s,createdAt:n,updatedAt:r,scope:o=t==null?void 0:t.scope},sub:i}){const{i18n:a,i18n:c,_:l}=nt(),{notify:d}=ar(),{mutateAsync:u,isPending:m}=vf(),g=F0({clientId:e}),y=D0({clientId:e,clientMetadata:t}),w=async()=>{try{await u({sub:i,tokenId:s}),d({variant:"success",title:a._({id:"AyHABv"}),duration:2e3})}catch(b){console.error("Failed to revoke OAuth session",b),d({variant:"error",title:a._({id:"ginpu1"}),duration:2e3})}};return f.jsxs("div",{className:"border-contrast-50 dark:border-contrast-100 flex flex-wrap items-center justify-between space-x-4 border-t px-2 pt-3",children:[f.jsxs("div",{className:"flex min-w-36 flex-1 flex-col space-x-2 truncate",children:[f.jsx("p",{className:"truncate font-semibold",children:y}),f.jsx("p",{className:"font-mono text-xs",children:g}),f.jsxs("p",{className:"text-text-light truncate text-xs",children:[f.jsx(X,{id:"4hPphw",values:{0:c.date(n,{year:"numeric",month:"short",day:"numeric"})}})," • ",f.jsx(X,{id:"NNWPjN",components:{0:f.jsx(mf,{date:r})}})]})]}),f.jsx(fs,{size:"sm",className:"min-w-max shrink-0 grow-0",loading:m,onClick:w,children:f.jsx(X,{id:"Hwam5t"})})]})}const ml=({sub:e})=>["account-sessions",e];function B0({sub:e}){const t=$s();return Ua({refetchOnWindowFocus:"always",staleTime:15e3,queryKey:ml({sub:e}),queryFn:async({signal:s})=>t.fetch("GET","/account-sessions",{sub:e},{signal:s})})}function $0(){const e=$s(),t=cr();return lr({async mutationFn({sub:s,deviceId:n}){return e.fetch("POST","/revoke-account-session",{sub:s,deviceId:n})},onSuccess(s,{sub:n}){t.invalidateQueries({queryKey:ml({sub:n})})}})}var V0="2.0.3",Ri=500,Zo="user-agent",Ds="",zo="?",rr="function",It="undefined",Hs="object",Pi="string",Ce="browser",lt="cpu",et="device",qe="engine",De="os",bs="result",j="name",R="type",k="vendor",O="version",Ae="architecture",mn="major",C="model",rn="console",z="mobile",re="tablet",fe="smarttv",Qe="wearable",Vr="xr",on="embedded",Ws="inapp",oo="brands",Wt="formFactors",ao="fullVersionList",xs="platform",co="platformVersion",_r="bitness",Vt="sec-ch-ua",q0=Vt+"-full-version-list",Z0=Vt+"-arch",z0=Vt+"-"+_r,K0=Vt+"-form-factors",W0=Vt+"-"+z,Q0=Vt+"-"+C,gl=Vt+"-"+xs,J0=gl+"-version",vl=[oo,ao,z,C,xs,co,Ae,Wt,_r],Nn="Amazon",cs="Apple",Ko="ASUS",Wo="BlackBerry",zt="Google",Qo="Huawei",Jo="Lenovo",Go="Honor",Tn="LG",qr="Microsoft",Zr="Motorola",zr="Nvidia",Yo="OnePlus",Kr="OPPO",Qs="Samsung",Xo="Sharp",Js="Sony",Wr="Xiaomi",Qr="Zebra",ea="Chrome",ta="Chromium",bt="Chromecast",G0="Edge",Gs="Firefox",Ys="Opera",Jr="Facebook",sa="Sogou",ls="Mobile ",Xs=" Browser",Ci="Windows",Y0=typeof window!==It,Ee=Y0&&window.navigator?window.navigator:void 0,St=Ee&&Ee.userAgentData?Ee.userAgentData:void 0,X0=function(e,t){var s={},n=t;if(!ir(t)){n={};for(var r in t)for(var o in t[r])n[o]=t[r][o].concat(n[o]?n[o]:[])}for(var i in e)s[i]=n[i]&&n[i].length%2===0?n[i].concat(e[i]):e[i];return s},Sr=function(e){for(var t={},s=0;s<e.length;s++)t[e[s].toUpperCase()]=e[s];return t},Ai=function(e,t){if(typeof e===Hs&&e.length>0){for(var s in e)if(dt(e[s])==dt(t))return!0;return!1}return zs(e)?dt(t).indexOf(dt(e))!==-1:!1},ir=function(e,t){for(var s in e)return/^(browser|cpu|device|engine|os)$/.test(s)||(t?ir(e[s]):!1)},zs=function(e){return typeof e===Pi},Gr=function(e){if(e){for(var t=[],s=Us(/\\?\"/g,e).split(","),n=0;n<s.length;n++)if(s[n].indexOf(";")>-1){var r=gn(s[n]).split(";v=");t[n]={brand:r[0],version:r[1]}}else t[n]=gn(s[n]);return t}},dt=function(e){return zs(e)?e.toLowerCase():e},Yr=function(e){return zs(e)?Us(/[^\d\.]/g,e).split(".")[0]:void 0},ht=function(e){for(var t in e){var s=e[t];typeof s==Hs&&s.length==2?this[s[0]]=s[1]:this[s]=void 0}return this},Us=function(e,t){return zs(t)?t.replace(e,Ds):t},en=function(e){return Us(/\\?\"/g,e)},gn=function(e,t){if(zs(e))return e=Us(/^\s\s*/,e),typeof t===It?e:e.substring(0,Ri)},Xr=function(e,t){if(!(!e||!t))for(var s=0,n,r,o,i,a,c;s<t.length&&!a;){var l=t[s],d=t[s+1];for(n=r=0;n<l.length&&!a&&l[n];)if(a=l[n++].exec(e),a)for(o=0;o<d.length;o++)c=a[++r],i=d[o],typeof i===Hs&&i.length>0?i.length===2?typeof i[1]==rr?this[i[0]]=i[1].call(this,c):this[i[0]]=i[1]:i.length===3?typeof i[1]===rr&&!(i[1].exec&&i[1].test)?this[i[0]]=c?i[1].call(this,c,i[2]):void 0:this[i[0]]=c?c.replace(i[1],i[2]):void 0:i.length===4&&(this[i[0]]=c?i[3].call(this,c.replace(i[1],i[2])):void 0):this[i]=c||void 0;s+=2}},Rt=function(e,t){for(var s in t)if(typeof t[s]===Hs&&t[s].length>0){for(var n=0;n<t[s].length;n++)if(Ai(t[s][n],e))return s===zo?void 0:s}else if(Ai(t[s],e))return s===zo?void 0:s;return t.hasOwnProperty("*")?t["*"]:e},na={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ra={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},ia={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[O,[j,ls+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[O,[j,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[j,O],[/opios[\/ ]+([\w\.]+)/i],[O,[j,Ys+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[O,[j,Ys+" GX"]],[/\bopr\/([\w\.]+)/i],[O,[j,Ys]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[O,[j,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[O,[j,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[j,O],[/quark(?:pc)?\/([-\w\.]+)/i],[O,[j,"Quark"]],[/\bddg\/([\w\.]+)/i],[O,[j,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[O,[j,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[O,[j,"WeChat"]],[/konqueror\/([\w\.]+)/i],[O,[j,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[O,[j,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[O,[j,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[O,[j,"Smart "+Jo+Xs]],[/(avast|avg)\/([\w\.]+)/i],[[j,/(.+)/,"$1 Secure"+Xs],O],[/\bfocus\/([\w\.]+)/i],[O,[j,Gs+" Focus"]],[/\bopt\/([\w\.]+)/i],[O,[j,Ys+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[O,[j,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[O,[j,"Dolphin"]],[/coast\/([\w\.]+)/i],[O,[j,Ys+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[O,[j,"MIUI"+Xs]],[/fxios\/([\w\.-]+)/i],[O,[j,ls+Gs]],[/\bqihoobrowser\/?([\w\.]*)/i],[O,[j,"360"]],[/\b(qq)\/([\w\.]+)/i],[[j,/(.+)/,"$1Browser"],O],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[j,/(.+)/,"$1"+Xs],O],[/samsungbrowser\/([\w\.]+)/i],[O,[j,Qs+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[O,[j,sa+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[j,sa+" Mobile"],O],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[j,O],[/(lbbrowser|rekonq)/i],[j],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[O,j],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[j,Jr],O,[R,Ws]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[j,O,[R,Ws]],[/\bgsa\/([\w\.]+) .*safari\//i],[O,[j,"GSA"],[R,Ws]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[O,[j,"TikTok"],[R,Ws]],[/\[(linkedin)app\]/i],[j,[R,Ws]],[/(chromium)[\/ ]([-\w\.]+)/i],[j,O],[/headlesschrome(?:\/([\w\.]+)| )/i],[O,[j,ea+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[j,ea+" WebView"],O],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[O,[j,"Android"+Xs]],[/chrome\/([\w\.]+) mobile/i],[O,[j,ls+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[j,O],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[O,[j,ls+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[j,ls+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[O,j],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[j,[O,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[j,O],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[j,ls+Gs],O],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[j,"Netscape"],O],[/(wolvic|librewolf)\/([\w\.]+)/i],[j,O],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[O,[j,Gs+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[j,[O,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[j,[O,/[^\d\.]+./,Ds]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[Ae,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[Ae,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[Ae,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[Ae,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[Ae,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[Ae,/ower/,Ds,dt]],[/ sun4\w[;\)]/i],[[Ae,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[Ae,dt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[C,[k,Qs],[R,re]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[C,[k,Qs],[R,z]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[C,[k,cs],[R,z]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[C,[k,cs],[R,re]],[/(macintosh);/i],[C,[k,cs]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[C,[k,Xo],[R,z]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[C,[k,Go],[R,re]],[/honor([-\w ]+)[;\)]/i],[C,[k,Go],[R,z]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[C,[k,Qo],[R,re]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[C,[k,Qo],[R,z]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[C,/_/g," "],[k,Wr],[R,re]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[C,/_/g," "],[k,Wr],[R,z]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[C,[k,Kr],[R,z]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[C,[k,Rt,{OnePlus:["304","403","203"],"*":Kr}],[R,re]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[C,[k,"BLU"],[R,z]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[C,[k,"Vivo"],[R,z]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[C,[k,"Realme"],[R,z]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[C,[k,Zr],[R,z]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[C,[k,Zr],[R,re]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[C,[k,Tn],[R,re]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[C,[k,Tn],[R,z]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[C,[k,Jo],[R,re]],[/(nokia) (t[12][01])/i],[k,C,[R,re]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[C,/_/g," "],[R,z],[k,"Nokia"]],[/(pixel (c|tablet))\b/i],[C,[k,zt],[R,re]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[C,[k,zt],[R,z]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[C,[k,Js],[R,z]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[C,"Xperia Tablet"],[k,Js],[R,re]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[C,[k,Yo],[R,z]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[C,[k,Nn],[R,re]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[C,/(.+)/g,"Fire Phone $1"],[k,Nn],[R,z]],[/(playbook);[-\w\),; ]+(rim)/i],[C,k,[R,re]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[C,[k,Wo],[R,z]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[C,[k,Ko],[R,re]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[C,[k,Ko],[R,z]],[/(nexus 9)/i],[C,[k,"HTC"],[R,re]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[k,[C,/_/g," "],[R,z]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[C,[k,"TCL"],[R,re]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[C,[k,"TCL"],[R,z]],[/(itel) ((\w+))/i],[[k,dt],C,[R,Rt,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[C,[k,"Acer"],[R,re]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[C,[k,"Meizu"],[R,z]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[C,[k,"Ulefone"],[R,z]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[C,[k,"Energizer"],[R,z]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[C,[k,"Cat"],[R,z]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[C,[k,"Smartfren"],[R,z]],[/droid.+; (a(?:015|06[35]|142p?))/i],[C,[k,"Nothing"],[R,z]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[C,[k,"Archos"],[R,re]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[C,[k,"Archos"],[R,z]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[k,C,[R,re]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[k,C,[R,z]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[k,C,[R,re]],[/(surface duo)/i],[C,[k,qr],[R,re]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[C,[k,"Fairphone"],[R,z]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[C,[k,zr],[R,re]],[/(sprint) (\w+)/i],[k,C,[R,z]],[/(kin\.[onetw]{3})/i],[[C,/\./g," "],[k,qr],[R,z]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[C,[k,Qr],[R,re]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[C,[k,Qr],[R,z]],[/smart-tv.+(samsung)/i],[k,[R,fe]],[/hbbtv.+maple;(\d+)/i],[[C,/^/,"SmartTV"],[k,Qs],[R,fe]],[/tcast.+(lg)e?. ([-\w]+)/i],[k,C,[R,fe]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[k,Tn],[R,fe]],[/(apple) ?tv/i],[k,[C,cs+" TV"],[R,fe]],[/crkey.*devicetype\/chromecast/i],[[C,bt+" Third Generation"],[k,zt],[R,fe]],[/crkey.*devicetype\/([^/]*)/i],[[C,/^/,"Chromecast "],[k,zt],[R,fe]],[/fuchsia.*crkey/i],[[C,bt+" Nest Hub"],[k,zt],[R,fe]],[/crkey/i],[[C,bt],[k,zt],[R,fe]],[/(portaltv)/i],[C,[k,Jr],[R,fe]],[/droid.+aft(\w+)( bui|\))/i],[C,[k,Nn],[R,fe]],[/(shield \w+ tv)/i],[C,[k,zr],[R,fe]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[C,[k,Xo],[R,fe]],[/(bravia[\w ]+)( bui|\))/i],[C,[k,Js],[R,fe]],[/(mi(tv|box)-?\w+) bui/i],[C,[k,Wr],[R,fe]],[/Hbbtv.*(technisat) (.*);/i],[k,C,[R,fe]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[k,gn],[C,gn],[R,fe]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[C,[R,fe]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[R,fe]],[/(ouya)/i,/(nintendo) (\w+)/i],[k,C,[R,rn]],[/droid.+; (shield)( bui|\))/i],[C,[k,zr],[R,rn]],[/(playstation \w+)/i],[C,[k,Js],[R,rn]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[C,[k,qr],[R,rn]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[C,[k,Qs],[R,Qe]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[k,C,[R,Qe]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[C,[k,Kr],[R,Qe]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[C,[k,cs],[R,Qe]],[/(opwwe\d{3})/i],[C,[k,Yo],[R,Qe]],[/(moto 360)/i],[C,[k,Zr],[R,Qe]],[/(smartwatch 3)/i],[C,[k,Js],[R,Qe]],[/(g watch r)/i],[C,[k,Tn],[R,Qe]],[/droid.+; (wt63?0{2,3})\)/i],[C,[k,Qr],[R,Qe]],[/droid.+; (glass) \d/i],[C,[k,zt],[R,Vr]],[/(pico) (4|neo3(?: link|pro)?)/i],[k,C,[R,Vr]],[/(quest( \d| pro)?s?).+vr/i],[C,[k,Jr],[R,Vr]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[k,[R,on]],[/(aeobc)\b/i],[C,[k,Nn],[R,on]],[/(homepod).+mac os/i],[C,[k,cs],[R,on]],[/windows iot/i],[[R,on]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[C,[R,Rt,{mobile:"Mobile",xr:"VR","*":re}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[R,re]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[R,z]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[C,[k,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[O,[j,G0+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[j,O],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[O,[j,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[j,O],[/ladybird\//i],[[j,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[O,j]],os:[[/microsoft (windows) (vista|xp)/i],[j,O],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[j,[O,Rt,na]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[O,Rt,na],[j,Ci]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[O,/_/g,"."],[j,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[j,"macOS"],[O,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[O,[j,bt+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[O,[j,bt+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[O,[j,bt+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[O,[j,bt+" Linux"]],[/crkey\/([\d\.]+)/i],[O,[j,bt]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[O,j],[/(ubuntu) ([\w\.]+) like android/i],[[j,/(.+)/,"$1 Touch"],O],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[j,O],[/\(bb(10);/i],[O,[j,Wo]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[O,[j,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[O,[j,Gs+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[O,[j,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[O,[j,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[j,"Chrome OS"],O],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[j,O],[/(sunos) ?([\w\.\d]*)/i],[[j,"Solaris"],O],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[j,O]]},Fn=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return ht.call(e.init,[[Ce,[j,O,mn,R]],[lt,[Ae]],[et,[R,C,k]],[qe,[j,O]],[De,[j,O]]]),ht.call(e.isIgnore,[[Ce,[O,mn]],[qe,[O]],[De,[O]]]),ht.call(e.isIgnoreRgx,[[Ce,/ ?browser$/i],[De,/ ?os$/i]]),ht.call(e.toString,[[Ce,[j,O]],[lt,[Ae]],[et,[k,C]],[qe,[j,O]],[De,[j,O]]]),e}(),ep=function(e,t){var s=Fn.init[t],n=Fn.isIgnore[t]||0,r=Fn.isIgnoreRgx[t]||0,o=Fn.toString[t]||0;function i(){ht.call(this,s)}return i.prototype.getItem=function(){return e},i.prototype.withClientHints=function(){return St?St.getHighEntropyValues(vl).then(function(a){return e.setCH(new yl(a,!1)).parseCH().get()}):e.parseCH().get()},i.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=bs&&(i.prototype.is=function(a){var c=!1;for(var l in this)if(this.hasOwnProperty(l)&&!Ai(n,l)&&dt(r?Us(r,this[l]):this[l])==dt(r?Us(r,a):a)){if(c=!0,a!=It)break}else if(a==It&&c){c=!c;break}return c},i.prototype.toString=function(){var a=Ds;for(var c in o)typeof this[o[c]]!==It&&(a+=(a?" ":Ds)+this[o[c]]);return a||It}),St||(i.prototype.then=function(a){var c=this,l=function(){for(var u in c)c.hasOwnProperty(u)&&(this[u]=c[u])};l.prototype={is:i.prototype.is,toString:i.prototype.toString};var d=new l;return a(d),d}),new i};function yl(e,t){if(e=e||{},ht.call(this,vl),t)ht.call(this,[[oo,Gr(e[Vt])],[ao,Gr(e[q0])],[z,/\?1/.test(e[W0])],[C,en(e[Q0])],[xs,en(e[gl])],[co,en(e[J0])],[Ae,en(e[Z0])],[Wt,Gr(e[K0])],[_r,en(e[z0])]]);else for(var s in e)this.hasOwnProperty(s)&&typeof e[s]!==It&&(this[s]=e[s])}function oa(e,t,s,n){return this.get=function(r){return r?this.data.hasOwnProperty(r)?this.data[r]:void 0:this.data},this.set=function(r,o){return this.data[r]=o,this},this.setCH=function(r){return this.uaCH=r,this},this.detectFeature=function(){if(Ee&&Ee.userAgent==this.ua)switch(this.itemType){case Ce:Ee.brave&&typeof Ee.brave.isBrave==rr&&this.set(j,"Brave");break;case et:!this.get(R)&&St&&St[z]&&this.set(R,z),this.get(C)=="Macintosh"&&Ee&&typeof Ee.standalone!==It&&Ee.maxTouchPoints&&Ee.maxTouchPoints>2&&this.set(C,"iPad").set(R,re);break;case De:!this.get(j)&&St&&St[xs]&&this.set(j,St[xs]);break;case bs:var r=this.data,o=function(i){return r[i].getItem().detectFeature().get()};this.set(Ce,o(Ce)).set(lt,o(lt)).set(et,o(et)).set(qe,o(qe)).set(De,o(De))}return this},this.parseUA=function(){return this.itemType!=bs&&Xr.call(this.data,this.ua,this.rgxMap),this.itemType==Ce&&this.set(mn,Yr(this.get(O))),this},this.parseCH=function(){var r=this.uaCH,o=this.rgxMap;switch(this.itemType){case Ce:case qe:var i=r[ao]||r[oo],a;if(i)for(var c in i){var l=i[c].brand||i[c],d=i[c].version;this.itemType==Ce&&!/not.a.brand/i.test(l)&&(!a||/chrom/i.test(a)&&l!=ta)&&(l=Rt(l,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(j,l).set(O,d).set(mn,Yr(d)),a=l),this.itemType==qe&&l==ta&&this.set(O,d)}break;case lt:var u=r[Ae];u&&(u&&r[_r]=="64"&&(u+="64"),Xr.call(this.data,u+";",o));break;case et:if(r[z]&&this.set(R,z),r[C]&&(this.set(C,r[C]),!this.get(R)||!this.get(k))){var m={};Xr.call(m,"droid 9; "+r[C]+")",o),!this.get(R)&&m.type&&this.set(R,m.type),!this.get(k)&&m.vendor&&this.set(k,m.vendor)}if(r[Wt]){var g;if(typeof r[Wt]!="string")for(var y=0;!g&&y<r[Wt].length;)g=Rt(r[Wt][y++],ra);else g=Rt(r[Wt],ra);this.set(R,g)}break;case De:var w=r[xs];if(w){var b=r[co];w==Ci&&(b=parseInt(Yr(b),10)>=13?"11":"10"),this.set(j,w).set(O,b)}this.get(j)==Ci&&r[C]=="Xbox"&&this.set(j,"Xbox").set(O,void 0);break;case bs:var _=this.data,E=function(P){return _[P].getItem().setCH(r).parseCH().get()};this.set(Ce,E(Ce)).set(lt,E(lt)).set(et,E(et)).set(qe,E(qe)).set(De,E(De))}return this},ht.call(this,[["itemType",e],["ua",t],["uaCH",n],["rgxMap",s],["data",ep(this,e)]]),this}function yt(e,t,s){if(typeof e===Hs?(ir(e,!0)?(typeof t===Hs&&(s=t),t=e):(s=e,t=void 0),e=void 0):typeof e===Pi&&!ir(t,!0)&&(s=t,t=void 0),s&&typeof s.append===rr){var n={};s.forEach(function(c,l){n[l]=c}),s=n}if(!(this instanceof yt))return new yt(e,t,s).getResult();var r=typeof e===Pi?e:s&&s[Zo]?s[Zo]:Ee&&Ee.userAgent?Ee.userAgent:Ds,o=new yl(s,!0),i=t?X0(ia,t):ia,a=function(c){return c==bs?function(){return new oa(c,r,i,o).set("ua",r).set(Ce,this.getBrowser()).set(lt,this.getCPU()).set(et,this.getDevice()).set(qe,this.getEngine()).set(De,this.getOS()).get()}:function(){return new oa(c,r,i[c],o).parseUA().get()}};return ht.call(this,[["getBrowser",a(Ce)],["getCPU",a(lt)],["getDevice",a(et)],["getEngine",a(qe)],["getOS",a(De)],["getResult",a(bs)],["getUA",function(){return r}],["setUA",function(c){return zs(c)&&(r=c.length>Ri?gn(c,Ri):c),this}]]).setUA(r),this}yt.VERSION=V0;yt.BROWSER=Sr([j,O,mn,R]);yt.CPU=Sr([Ae]);yt.DEVICE=Sr([C,k,R,rn,z,fe,re,Qe,on]);yt.ENGINE=yt.OS=Sr([j,O]);function tp(e){const t=p.useMemo(()=>e?yt(e):null,[e]);return t?t.device.is("mobile")?[t.os.name].filter(Boolean).join(" • "):[t.os.name,t.browser.name].filter(Boolean).join(" • "):void 0}function sp(){const{account:e}=_n(),{data:t,refetch:s,isLoading:n}=B0(e);return t?t.length>0?f.jsxs("div",{className:"space-y-2",children:[f.jsx("p",{children:f.jsx(X,{id:"CbBmBd",components:{0:f.jsx(Yn,{to:"/account/apps",className:"text-blue-600 hover:underline"})}})}),t.map(r=>f.jsx(np,{sub:e.sub,session:r},`${e.sub}@${r.deviceId}`))]}):f.jsx("p",{children:f.jsx(X,{id:"Ssa5RR"})}):n?f.jsx(Qi,{className:"text-primary",size:28}):f.jsx(Ei,{role:"status",action:f.jsx(ba,{onClick:()=>s(),children:f.jsx(X,{id:"6gRgw8"})}),children:f.jsx(X,{id:"b9LiEi"})})}function np({session:e,sub:t}){const{notify:s}=ar(),{i18n:n,_:r}=nt(),{mutateAsync:o,isPending:i}=$0(),{userAgent:a,lastSeenAt:c,ipAddress:l}=e.deviceMetadata,d=tp(a||void 0),u=Kc(c),m=async()=>{try{await o({sub:t,deviceId:e.deviceId}),s({variant:"success",title:n._({id:"jAO4/H"}),duration:2e3})}catch{s({variant:"error",title:n._({id:"CiwBmN"}),duration:2e3})}};return f.jsxs("div",{className:"border-contrast-50 dark:border-contrast-100 flex flex-wrap items-center justify-between space-x-4 border-t px-2 pt-3",children:[f.jsxs("div",{className:"flex min-w-36 flex-1 flex-col space-x-2 truncate",children:[f.jsx("p",{className:"truncate font-semibold",children:d||f.jsx(X,{id:"K80Okk"})}),f.jsx("p",{className:"font-mono text-xs",children:l}),f.jsx("p",{className:"text-text-light truncate text-xs",children:f.jsx(X,{id:"sJZ6K9",values:{lastUsedAgo:u}})})]}),f.jsx(fs,{size:"sm",className:"min-w-max shrink-0 grow-0",disabled:e.isCurrentDevice,loading:i,onClick:m,title:e.isCurrentDevice?n._({id:"JOalQJ"}):void 0,children:f.jsx(X,{id:"MzTcmM"})})]})}function rp(){const{account:e}=_n();return f.jsxs("div",{className:"flex min-h-full flex-col items-center justify-start gap-4 py-4 md:pt-24",children:[f.jsx(Zc,{account:e}),f.jsx(ip,{className:"text-text-light text-center text-sm"})]})}function ip(e){return f.jsxs("p",{...e,children:[f.jsx(X,{id:"Jn0vdi",components:{0:f.jsx(zc,{})}})," ",f.jsx(Yn,{to:"/account/about",className:"text-sm text-blue-600 hover:underline",children:f.jsx(X,{id:"z73+hu"})})]})}function op(e,{cooldownSeconds:t=60,initialCooldown:s=0}={}){const[n,r]=p.useState(s),o=n>0,i=p.useCallback((...c)=>{if(o)throw new Error("Action is on cooldown");return r(t),e==null?void 0:e(...c)},[e,t,o]);p.useEffect(()=>{if(n>0){const c=setTimeout(()=>{r(n-1)},1e3);return()=>clearTimeout(c)}},[n]);const a=p.useCallback(()=>r(0),[]);return p.useMemo(()=>({disabled:o,trigger:i,clear:a,remaining:n,total:t}),[o,i,a,n,t])}function ap({cooldownSeconds:e,initialCooldown:t,children:s,onClick:n,disabled:r=!1,className:o,...i}){const{i18n:a,_:c}=nt(),l=op(n,{cooldownSeconds:e,initialCooldown:t}),[d,u]=p.useState(!1),m=Math.ceil(l.remaining),g=!r&&l.disabled;return f.jsx("div",{className:"inline-block",onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:f.jsxs(Bc,{open:g&&d,children:[f.jsx($c,{asChild:!0,children:f.jsxs(fs,{onClick:l.trigger,disabled:g||r,className:un("relative pr-9",o),"aria-label":g?a._({id:"6gxSCq",values:{remainingSeconds:m}}):void 0,"aria-live":g?"polite":void 0,"aria-atomic":"true",...i,children:[f.jsx(Qi,{size:16,value:(l.total-l.remaining)/l.total*100,startAngle:-90,className:un("absolute right-3 top-1/2 inline-block -translate-y-1/2 transform transition-opacity",g?"opacity-100":"opacity-0"),"aria-hidden":"true"}),s]})}),f.jsx(Vc,{children:f.jsx(qc,{side:"bottom",align:"center",role:"tooltip",children:f.jsx("div",{className:"rounded border border-slate-300 bg-white px-2 py-1.5 text-xs shadow-sm dark:border-slate-600 dark:bg-slate-800",children:f.jsx(X,{id:"VA4HpI",values:{remainingSeconds:m}})})})})]})})}function cp(){const e=$s(),{i18n:t,_:s}=nt(),{notify:n}=ar(),r=Pl();return lr({async mutationFn({locale:o=r,email:i}){return e.fetch("POST","/reset-password-request",{locale:o,email:i})},onSuccess(o,i,a){n({variant:"success",title:t._({id:"boBFOP"}),description:t._({id:"lAK2OC"})})},onError(o,i,a){console.error("Failed to request password reset",o),n({variant:"error",title:t._({id:"eMlT5s"}),description:t._({id:"JANaVF"})})}})}function lp(){const e=$s(),{i18n:t,_:s}=nt(),{notify:n}=ar();return lr({async mutationFn({token:r,password:o}){return e.fetch("POST","/reset-password-confirm",{token:r,password:o})},onSuccess(r,o,i){n({variant:"success",title:t._({id:"D9Jms7"}),description:t._({id:"67nRLM"})})},onError(r,o,i){console.error("Failed to reset password",r),n({variant:"error",title:t._({id:"3DLYmM"}),description:t._({id:"q1d4qv"})})}})}function up(){const[e,t]=p.useState(!1),{account:s}=_n(),{email:n}=s;if(!n)return f.jsx(Ei,{role:"status",children:f.jsx(X,{id:"51yaeH"})});const r=cp(),o=lp();return f.jsxs("div",{className:"space-y-4",children:[f.jsx("p",{children:f.jsx(X,{id:"VaEN/4",values:{email:n},components:{0:f.jsx("strong",{})}})}),f.jsxs(ap,{onClick:async()=>{await r.mutateAsync({email:n})},cooldownSeconds:30,loading:r.isPending,disabled:e,className:"max-w-full",children:[f.jsx(ac,{"aria-hidden":!0,className:"mr-2",weight:"bold"}),f.jsx("span",{className:"flex-1 truncate",children:f.jsx(X,{id:"abag5u"})})]}),f.jsx(Vl,{disabled:e||o.isPending,onSubmit:async i=>{await o.mutateAsync(i),t(!0)}})]})}const dp={"/":{icon:ic,position:0,title:{id:"AeXO77"},component:rp},"/devices":{icon:nc,position:10,title:{id:"qavm0B"},description:{id:"bdNEzF"},component:sp},"/apps":{icon:rc,position:20,title:{id:"VDvaN2"},description:{id:"xSiaWQ"},component:H0},"/password":{icon:Zl,position:30,title:{id:"8ZsakT"},description:{id:"Ar5o5b"},component:up},"/about":{icon:ql,position:50,title:{id:"uyJsf6"},component:hf,description:{id:"nxn0xR"}}};function hp(e,t){const s={...dp,...t},n=wi({path:e,component:o=>f.jsx(fp,{basePath:e,subPages:s,...o}),getParentRoute:()=>Wi}),r=Object.entries(s).map(([o,{component:i}])=>wi({getParentRoute:()=>n,path:o,component:i}));return[n,...r]}function fp({basePath:e,subPages:t}){const s=p.useMemo(()=>Object.entries(t).sort(([n,r],[o,i])=>{if(r.position!=null&&i.position!=null){const a=r.position-i.position;if(a!==0)return a}return n.localeCompare(o)}).map(([n,r])=>({to:e==="/"?n:n==="/"?e:`${e}${n}`,title:r.title,description:r.description,hidden:r.hidden,icon:r.icon})),[t,e]);return f.jsx(pp,{signOutTo:e,children:f.jsx(df,{title:{id:"KdxItU"},basePath:e,links:s,children:f.jsx(Fi,{})})})}const Dn=new URL(window.location.href);function pp({children:e,signOutTo:t}){const s=He(),{session:n}=ki(),r=p.useRef(n!=null),o=Dn.searchParams.get("display")==="popup",i=Dn.searchParams.get("login_hint")||void 0,a=Dn.searchParams.get("nonce")||void 0,c=Dn.searchParams.get("redirect_uri")||void 0,l=p.useMemo(()=>{if(c&&a)return()=>{const d=new URL(c);window.location.href=d.toString()};if(o)return()=>{var d;(d=window.opener)==null||d.postMessage({nonce:a,event:"done"},"*"),window.postMessage({nonce:a,event:"done"},"*"),window.close()}},[o,c,a]);return p.useEffect(()=>{n&&!r.current?r.current=!0:!n&&r.current&&(r.current=!1,t&&s.navigate({to:t}),l==null||l())},[n,l]),f.jsx(zl,{forcedIdentifier:i,disableRemember:o,onCancel:l,children:e})}const mp=wi({getParentRoute:()=>Wi,path:"/account/reset-password",component:gp,errorComponent:Ca});function gp(){const{doInitiatePasswordReset:e,doConfirmResetPassword:t}=ki(),s=He();return f.jsx(Kl,{onResetPasswordRequest:e,onResetPasswordConfirm:t,onBack:()=>{window.history.back(),setTimeout(()=>{s.state.location.pathname==="/account/reset-password"&&s.navigate({to:"/account"})},1e3)}})}const vp=hp("/account",{"/branding":{icon:oc,hidden:!0,position:40,title:{id:"A3MAIm"},component:Vd}}),yp=Ld({routeTree:Wi.addChildren([...vp,mp])}),{__customizationData:wp,__deviceSessions:bp}=window,xp=new pu,_p=document.getElementById("root");Cl.createRoot(_p).render(f.jsx(p.StrictMode,{children:f.jsx(Al,{value:wp,children:f.jsx(El,{children:f.jsx(Wl,{children:f.jsx(Ql,{fallbackRender:Yl,children:f.jsx(Jl,{initialSessions:bp,initialSelected:Gl.Only,children:f.jsx(wu,{client:xp,children:f.jsx(Td,{router:yp})})})})})})})}));
20
- //# sourceMappingURL=account-page-BWF2SB1c.js.map