appos 0.1.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.
- package/README.md +399 -0
- package/build/client/assets/IconMail-BZadZvAd.js +1 -0
- package/build/client/assets/_-CgPm6_fJ.js +1 -0
- package/build/client/assets/_index-BCLDp_mg.js +1 -0
- package/build/client/assets/_layout-CTmjtKOZ.js +1 -0
- package/build/client/assets/_layout-HsJ3Zu5t.js +1 -0
- package/build/client/assets/_layout-OcS85aOt.js +1 -0
- package/build/client/assets/app-sidebar-Bm6e4kn_.js +1 -0
- package/build/client/assets/app-sidebar-D2Nsi85j.js +1 -0
- package/build/client/assets/auth-provider-rkzBVtYX.js +1 -0
- package/build/client/assets/brand-CbTWw97e.js +1 -0
- package/build/client/assets/browser-ponyfill-D3yQFvRu.js +2 -0
- package/build/client/assets/button-DtZhoqpk.js +1 -0
- package/build/client/assets/check-D5D2EGI4.js +1 -0
- package/build/client/assets/checkbox-B35Nn166.js +1 -0
- package/build/client/assets/chunk-JG3XND5A-BetDbdG0.js +1 -0
- package/build/client/assets/chunk-UIGDSWPH-DeiamgQc.js +26 -0
- package/build/client/assets/chunk-vBKQ29Cd.js +1 -0
- package/build/client/assets/circle-alert-DB4JluX5.js +1 -0
- package/build/client/assets/compare-Br3z3FUS-BXkA2ojG.js +2 -0
- package/build/client/assets/compiler-runtime-Co9svCia.js +1 -0
- package/build/client/assets/config-ChcA_Pkv.js +1 -0
- package/build/client/assets/createReactComponent-C2TSpqC7.js +1 -0
- package/build/client/assets/dialog-CQrpvURm.js +1 -0
- package/build/client/assets/dist-B6TkSbxV.js +1 -0
- package/build/client/assets/dist-BNO39Rfs.js +1 -0
- package/build/client/assets/dist-BWnI-4xl.js +1 -0
- package/build/client/assets/dist-CA21wN5I.js +1 -0
- package/build/client/assets/dist-CBNvQRbZ.js +1 -0
- package/build/client/assets/dist-CYRPrwOb.js +1 -0
- package/build/client/assets/dist-DKtC0FSi.js +1 -0
- package/build/client/assets/dist-DhfcebhF.js +1 -0
- package/build/client/assets/dist-VqaKdvZu.js +1 -0
- package/build/client/assets/dist-Yn6lj8QC.js +5 -0
- package/build/client/assets/dropdown-menu-CbzduuDa.js +1 -0
- package/build/client/assets/empty-DQRarCKT.js +1 -0
- package/build/client/assets/entry.client-BN1GPjAL.js +10 -0
- package/build/client/assets/es2015-BJguufLZ.js +41 -0
- package/build/client/assets/eye-Ctrln70x.js +1 -0
- package/build/client/assets/file-preview-dialog-BRkWSRN4.js +14 -0
- package/build/client/assets/index-Del2yBnb.js +1 -0
- package/build/client/assets/initReactI18next-CyHiepAw.js +1 -0
- package/build/client/assets/input-V1lM1yoz.js +1 -0
- package/build/client/assets/jsx-runtime-SCjaiuzT.js +1 -0
- package/build/client/assets/lock-Bj7dxHab.js +1 -0
- package/build/client/assets/manifest-ca813980.js +1 -0
- package/build/client/assets/nav-user-BqPUBe9x.js +1 -0
- package/build/client/assets/nav-user-Yu7wt7b_.js +1 -0
- package/build/client/assets/org-switcher-BIuearbE.js +1 -0
- package/build/client/assets/password-input-bor7e4TM.js +1 -0
- package/build/client/assets/react-dom-Bhi-1tDD.js +1 -0
- package/build/client/assets/realtime-BmU1LPhx.js +1 -0
- package/build/client/assets/root-CS5YIV-V.js +3 -0
- package/build/client/assets/root-D0CFuQYc.css +2 -0
- package/build/client/assets/route-B9cwW-UK.js +1 -0
- package/build/client/assets/route-BD2nV1q2.js +1 -0
- package/build/client/assets/route-BEnDcljt.js +1 -0
- package/build/client/assets/route-BR4LdxHR.js +1 -0
- package/build/client/assets/route-BU5TYmVE.js +0 -0
- package/build/client/assets/route-BVmIPEvK.js +11 -0
- package/build/client/assets/route-BY244T48.js +1 -0
- package/build/client/assets/route-Bwd903CU.js +1 -0
- package/build/client/assets/route-CN9iChOk.js +1 -0
- package/build/client/assets/route-CQ3p9Qb1.js +1 -0
- package/build/client/assets/route-CVLnTONw.js +1 -0
- package/build/client/assets/route-CoMZag4T.js +1 -0
- package/build/client/assets/route-CsYSLbnx.js +1 -0
- package/build/client/assets/route-DWNrq2GE.js +1 -0
- package/build/client/assets/route-Dxfmap_u.js +1 -0
- package/build/client/assets/route-Gnx1fkRX.js +0 -0
- package/build/client/assets/route-NduA4SS_.js +1 -0
- package/build/client/assets/route-u2hskgE_.js +1 -0
- package/build/client/assets/route-v9Jwv-AW.js +1 -0
- package/build/client/assets/select-DATRE76_.js +1 -0
- package/build/client/assets/separator-Cla0V581.js +1 -0
- package/build/client/assets/shim-TRiHENXu.js +1 -0
- package/build/client/assets/sidebar-CqrdL512.js +1 -0
- package/build/client/assets/site-header-CZO3qBhf.js +1 -0
- package/build/client/assets/site-header-CwidwSv1.js +1 -0
- package/build/client/assets/social-providers-Bz7f1_yd.js +1 -0
- package/build/client/assets/test-WdoqKbLa.js +1 -0
- package/build/client/assets/tooltip-BeDraHQn.js +1 -0
- package/build/client/assets/trpc-C1CjVipH.js +6 -0
- package/build/client/assets/trust-indicator-D4tEs4Dr.js +20 -0
- package/build/client/assets/use-file-upload-CNPfWC6W.js +1 -0
- package/build/client/assets/useTranslation-Bz7VuQ7j.js +1 -0
- package/build/client/assets/utils-InBzhUf_.js +1 -0
- package/build/client/assets/x-4CC8aqOW.js +1 -0
- package/build/client/favicon.ico +0 -0
- package/build/client/locales/en/emails.json +11 -0
- package/build/client/locales/en/translation.json +411 -0
- package/build/client/locales/zh-CN/emails.json +11 -0
- package/build/client/locales/zh-CN/translation.json +1 -0
- package/build/client/locales/zh-TW/emails.json +11 -0
- package/build/client/locales/zh-TW/translation.json +1 -0
- package/build/client/logo-invert.png +0 -0
- package/build/client/logo.png +0 -0
- package/build/lib/adapter-factory-CLtf7vT5-CTKiMV2u.mjs +19675 -0
- package/build/lib/bun-sqlite-dialect-DN7EKoIB-0pWIoG0L.mjs +155 -0
- package/build/lib/chunk-BYI67GdN.mjs +1 -0
- package/build/lib/chunk-CkKlU7xI.mjs +44 -0
- package/build/lib/client-BtuhFgvy.mjs +65 -0
- package/build/lib/client.d.ts +2272 -0
- package/build/lib/client.js +24 -0
- package/build/lib/date.d.ts +1 -0
- package/build/lib/date.js +1 -0
- package/build/lib/dialect-BeMwdQoz-D41NdSow.mjs +72 -0
- package/build/lib/dist-cjs-B43A5HXv.mjs +169 -0
- package/build/lib/dist-cjs-B_wkbabY.mjs +214 -0
- package/build/lib/dist-cjs-BmbYbMhp.mjs +143 -0
- package/build/lib/dist-cjs-Cc337rwW.mjs +7 -0
- package/build/lib/dist-cjs-CgzfN8xY.mjs +4974 -0
- package/build/lib/dist-cjs-DBFcizQf.mjs +50 -0
- package/build/lib/dist-cjs-DC-UL-xx.mjs +97 -0
- package/build/lib/dist-cjs-DHlTgXUO.mjs +6975 -0
- package/build/lib/dist-cjs-DYAmJYzN.mjs +323 -0
- package/build/lib/dist-cjs-Ddm6Stp9.mjs +1294 -0
- package/build/lib/dist-cjs-GFGBhaZg.mjs +84 -0
- package/build/lib/dist-cjs-ieCOxrOi.mjs +181 -0
- package/build/lib/dist-cjs-nbOGa7i_.mjs +47 -0
- package/build/lib/dist-cjs-pN6ekzMW.mjs +66 -0
- package/build/lib/dist-cjs-yYlQ1OiO.mjs +102 -0
- package/build/lib/esm-DPet4lFW.mjs +15816 -0
- package/build/lib/event-streams-x9fP9BzF.mjs +185 -0
- package/build/lib/file-preview-dialog-Cugg8tEc.mjs +59 -0
- package/build/lib/kysely-adapter-BTWfu5rn.mjs +183 -0
- package/build/lib/magic-string.es-jZcifc5m.mjs +1013 -0
- package/build/lib/memory-adapter-DiU519m9.mjs +147 -0
- package/build/lib/node-ponyfill-Dmm1SWTU.mjs +38212 -0
- package/build/lib/node-sqlite-dialect-BqISUSC3-DYvTLBpY.mjs +155 -0
- package/build/lib/package-DfozRyK6.mjs +5 -0
- package/build/lib/react-dom-CPjM_WCt.mjs +42 -0
- package/build/lib/server.d.mts +76273 -0
- package/build/lib/server.mjs +325 -0
- package/build/lib/sso-oidc-Qom0PEDW.mjs +1036 -0
- package/build/lib/sts-CLRaHSW_.mjs +13 -0
- package/build/lib/sts-Dl7yZqX1.mjs +1405 -0
- package/build/lib/test.d.mts +8922 -0
- package/build/lib/test.mjs +175650 -0
- package/build/lib/ui/index.d.ts +1643 -0
- package/build/lib/ui/index.js +160 -0
- package/build/lib/utils.d.ts +21 -0
- package/build/lib/utils.js +1 -0
- package/build/lib/zod.d.ts +1 -0
- package/build/lib/zod.js +23 -0
- package/build/main.js +2383 -0
- package/build/server/assets/context-BoNg86Eh.js +35 -0
- package/build/server/assets/dialog-B8YbGNaz.js +54 -0
- package/build/server/assets/file-preview-dialog-qWSViOWQ.js +15 -0
- package/build/server/assets/react-CFQ4y0AA.js +13 -0
- package/build/server/assets/react-dom-Ca1YUVo2.js +5 -0
- package/build/server/assets/server-build-BMOfm0ad.js +118 -0
- package/build/server/assets/server.node-B2oksIp8.js +196 -0
- package/build/server/assets/server.node-VQzoub0A.js +1 -0
- package/build/server/index.js +123 -0
- package/package.json +224 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import{c as e,i as t,n,r,t as i}from"./react-CFQ4y0AA.js";import{Stream as a}from"stream";import o from"node:process";import s from"node:os";import c from"node:tty";var l=e(i(),1),u=e=>{throw TypeError(e)},d=(e,t,n)=>t.has(e)||u(`Cannot `+n),f=(e,t,n)=>(d(e,t,`read from private field`),n?n.call(e):t.get(e)),p=(e,t,n)=>t.has(e)?u(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n);function m(e,t){if(e===!1||e==null)throw Error(t)}function h(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function g(){return Math.random().toString(36).substring(2,10)}function _(e,t,n=null,r){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?y(t):t,state:n,key:t&&t.key||r||g()}}function v({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function y(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function b(e){return{defaultValue:e}}var x,S=class{constructor(e){if(p(this,x,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(f(this,x).has(e))return f(this,x).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){f(this,x).set(e,t)}};x=new WeakMap;var C=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function ee(e){return C.has(e)}var w=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function te(e){return w.has(e)}function ne(e){return e.index===!0}function re(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(m(e.index!==!0||!e.children,`Cannot specify children on an index route`),m(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),ne(e)){let n={...e,id:s};return r[s]=ie(n,t(n)),n}else{let n={...e,id:s,children:void 0};return r[s]=ie(n,t(n)),e.children&&(n.children=re(e.children,t,o,r,i)),n}})}function ie(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function T(e,t,n=`/`){return ae(e,t,n,!1)}function ae(e,t,n,r){let i=E((typeof t==`string`?y(t):t).pathname||`/`,n);if(i==null)return null;let a=se(e);le(a);let o=null;for(let e=0;o==null&&e<a.length;++e){let t=Se(i);o=ye(a[e],t,r)}return o}function oe(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function se(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;m(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=D([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(m(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),se(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:_e(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of ce(e.path))a(e,t,!0,n)}),t}function ce(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=ce(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function le(e){e.sort((e,t)=>e.score===t.score?ve(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ue=/^:[\w-]+$/,de=3,fe=2,pe=1,me=10,he=-2,ge=e=>e===`*`;function _e(e,t){let n=e.split(`/`),r=n.length;return n.some(ge)&&(r+=he),t&&(r+=fe),n.filter(e=>!ge(e)).reduce((e,t)=>e+(ue.test(t)?de:t===``?pe:me),r)}function ve(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function ye(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=be({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=be({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:D([a,u.pathname]),pathnameBase:Ae(D([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=D([a,u.pathnameBase]))}return o}function be(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=xe(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function xe(e,t=!1,n=!0){h(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:n!=null}),n?`/?([^\\/]+)?`:`/([^\\/]+)`)).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Se(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return h(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function E(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Ce({basename:e,pathname:t}){return t===`/`?e:D([e,t])}function we(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?y(e):e;return{pathname:n?n.startsWith(`/`)?n:Te(n,t):t,search:je(r),hash:Me(i)}}function Te(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Ee(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function De(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Oe(e){let t=De(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function ke(e,t,n,r=!1){let i;typeof e==`string`?i=y(e):(i={...e},m(!i.pathname||!i.pathname.includes(`?`),Ee(`?`,`pathname`,`search`,i)),m(!i.pathname||!i.pathname.includes(`#`),Ee(`#`,`pathname`,`hash`,i)),m(!i.search||!i.search.includes(`#`),Ee(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=we(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var D=e=>e.join(`/`).replace(/\/\/+/g,`/`),Ae=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),je=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Me=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Ne=class{constructor(e,t){this.type=`DataWithResponseInit`,this.data=e,this.init=t||null}};function Pe(e,t){return new Ne(e,typeof t==`number`?{status:t}:t)}var Fe=(e,t=302)=>{let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},Ie=(e,t)=>{let n=Fe(e,t);return n.headers.set(`X-Remix-Reload-Document`,`true`),n},Le=(e,t)=>{let n=Fe(e,t);return n.headers.set(`X-Remix-Replace`,`true`),n},O=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function k(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function A(e){return e.filter(Boolean).join(`/`).replace(/\/\/*/g,`/`)||`/`}var Re=Symbol(`Uninstrumented`);function ze(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=Ve(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=Ve(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[Re]??i,a=Ve(n[e],t,(...e)=>Ue(e[0]));a&&(a[Re]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[Re]??e,r=Ve(n.middleware,t,(...e)=>Ue(e[0]));return r?(r[Re]=t,r):e})),r}function Be(e,t){let n={request:[]};t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}}));let r=e;return n.request.length>0&&(r=Ve(n.request,e,(...e)=>{let[t,n]=e;return{request:We(t),context:n==null?n:Ge(n)}})),r}function Ve(e,t,n){return e.length===0?null:async(...r)=>{let i=await He(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function He(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=He(e,t,n,r-1),a=await o,m(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function Ue(e){let{request:t,context:n,params:r,unstable_pattern:i}=e;return{request:We(t),params:{...r},unstable_pattern:i,context:Ge(n)}}function We(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Ge(e){if(qe(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var Ke=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function qe(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===Ke}var Je=[`POST`,`PUT`,`PATCH`,`DELETE`],Ye=new Set(Je),Xe=[`GET`,...Je],Ze=new Set(Xe),Qe=new Set([301,302,303,307,308]),$e={state:`idle`,location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},et={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},tt={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},nt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rt=e=>nt.test(e),it=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),at=Symbol(`ResetLoaderData`);function ot(e,t){m(e.length>0,`You must provide a non-empty routes array to createStaticHandler`);let n={},r=(t?t.basename:null)||`/`,i=t?.mapRouteProperties||it,a=i;if(t?.unstable_instrumentations){let e=t.unstable_instrumentations;a=t=>({...i(t),...ze(e.map(e=>e.route).filter(Boolean),t)})}let o=re(e,a,void 0,n);async function s(e,{requestContext:t,filterMatchesToLoad:i,skipLoaderErrorBubbling:s,skipRevalidation:c,dataStrategy:u,generateMiddlewareResponse:d}={}){let f=new URL(e.url),p=e.method,h=_(``,v(f),null,`default`),g=T(o,h,r);if(t??=new S,!Bt(p)&&p!==`HEAD`){let e=M(405,{method:p}),{matches:t,route:n}=jt(o),i={basename:r,location:h,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return d?d(()=>Promise.resolve(i)):i}else if(!g){let e=M(404,{pathname:h.pathname}),{matches:t,route:n}=jt(o),i={basename:r,location:h,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return d?d(()=>Promise.resolve(i)):i}if(d){m(t instanceof S,"When using middleware in `staticHandler.query()`, any provided `requestContext` must be an instance of `RouterContextProvider`");try{await gt(g,n,a);let f,p=await vt({request:e,unstable_pattern:A(g.map(e=>e.route.path)),matches:g,params:g[0].params,context:t},async()=>await d(async(e,n={})=>{let a=await l(e,h,g,t,u||null,s===!0,null,`filterMatchesToLoad`in n?n.filterMatchesToLoad??null:i??null,c===!0);return F(a)?a:(f={location:h,basename:r,...a},f)}),async(e,t)=>{if(zt(e))return e;if(F(e))try{e=new O(e.status,e.statusText,await Dt(e))}catch(t){e=t}if(P(e)&&(e=Nt(e)),f){t in f.loaderData&&(f.loaderData[t]=void 0);let n=st(o,f,e,s?t:j(g,t).route.id);return d(()=>Promise.resolve(n))}else{let n={matches:g,location:h,basename:r,loaderData:{},actionData:null,errors:{[s?t:j(g,g.find(e=>e.route.id===t||e.route.loader)?.route.id||t).route.id]:e},statusCode:k(e)?e.status:500,actionHeaders:{},loaderHeaders:{}};return d(()=>Promise.resolve(n))}});return m(F(p),`Expected a response in query()`),p}catch(e){if(F(e))return e;throw e}}let y=await l(e,h,g,t,u||null,s===!0,null,i||null,c===!0);return F(y)?y:{location:h,basename:r,...y}}async function c(e,{routeId:t,requestContext:i,dataStrategy:s,generateMiddlewareResponse:c}={}){let u=new URL(e.url),d=e.method,f=_(``,v(u),null,`default`),p=T(o,f,r);if(i??=new S,!Bt(d)&&d!==`HEAD`&&d!==`OPTIONS`)throw M(405,{method:d});if(!p)throw M(404,{pathname:f.pathname});let h=t?p.find(e=>e.route.id===t):Ht(p,f);if(t&&!h)throw M(403,{pathname:f.pathname,routeId:t});if(!h)throw M(404,{pathname:f.pathname});if(c)return m(i instanceof S,"When using middleware in `staticHandler.queryRoute()`, any provided `requestContext` must be an instance of `RouterContextProvider`"),await gt(p,n,a),await vt({request:e,unstable_pattern:A(p.map(e=>e.route.path)),matches:p,params:p[0].params,context:i},async()=>await c(async e=>{let t=g(await l(e,f,p,i,s||null,!1,h,null,!1));return F(t)?t:typeof t==`string`?new Response(t):Response.json(t)}),e=>{if(P(e))return Promise.resolve(Mt(e));if(F(e))return Promise.resolve(e);throw e});return g(await l(e,f,p,i,s||null,!1,h,null,!1));function g(e){if(F(e))return e;let t=e.errors?Object.values(e.errors)[0]:void 0;if(t!==void 0)throw t;if(e.actionData)return Object.values(e.actionData)[0];if(e.loaderData)return Object.values(e.loaderData)[0]}}async function l(e,t,n,r,i,a,o,s,c){m(e.signal,`query()/queryRoute() requests must contain an AbortController signal`);try{if(I(e.method))return await u(e,n,o||Ht(n,t),r,i,a,o!=null,s,c);let l=await d(e,n,r,i,a,o,s);return F(l)?l:{...l,actionData:null,actionHeaders:{}}}catch(e){if(Ft(e)&&F(e.result)){if(e.type===`error`)throw e.result;return e.result}if(zt(e))return e;throw e}}async function u(e,t,r,i,o,s,c,l,u){let p;if(!r.route.action&&!r.route.lazy){let t=M(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:r.route.id});if(c)throw t;p={type:`error`,error:t}}else p=(await f(e,wt(a,n,e,t,r,[],i),c,i,o))[r.route.id],e.signal.aborted&&ct(e,c);if(Lt(p))throw new Response(null,{status:p.response.status,headers:{Location:p.response.headers.get(`Location`)}});if(c){if(N(p))throw p.error;return{matches:[r],loaderData:{},actionData:{[r.route.id]:p.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{}}}if(u)if(N(p)){let e=s?r:j(t,r.route.id);return{statusCode:k(p.error)?p.error.status:p.statusCode==null?500:p.statusCode,actionData:null,actionHeaders:{...p.headers?{[r.route.id]:p.headers}:{}},matches:t,loaderData:{},errors:{[e.route.id]:p.error},loaderHeaders:{}}}else return{actionData:{[r.route.id]:p.data},actionHeaders:p.headers?{[r.route.id]:p.headers}:{},matches:t,loaderData:{},errors:null,statusCode:p.statusCode||200,loaderHeaders:{}};let m=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});return N(p)?{...await d(m,t,i,o,s,null,l,[(s?r:j(t,r.route.id)).route.id,p]),statusCode:k(p.error)?p.error.status:p.statusCode==null?500:p.statusCode,actionData:null,actionHeaders:{...p.headers?{[r.route.id]:p.headers}:{}}}:{...await d(m,t,i,o,s,null,l),actionData:{[r.route.id]:p.data},...p.statusCode?{statusCode:p.statusCode}:{},actionHeaders:p.headers?{[r.route.id]:p.headers}:{}}}async function d(e,t,r,i,o,s,c,l){let u=s!=null;if(u&&!s?.route.loader&&!s?.route.lazy)throw M(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:s?.route.id});let d;if(s)d=wt(a,n,e,t,s,[],r);else{let i=l&&N(l[1])?t.findIndex(e=>e.route.id===l[0])-1:void 0,o=A(t.map(e=>e.route.path));d=t.map((t,s)=>i!=null&&s>i?Ct(a,n,e,o,t,[],r,!1):Ct(a,n,e,o,t,[],r,(t.route.loader||t.route.lazy)!=null&&(!c||c(t))))}if(!i&&!d.some(e=>e.shouldLoad))return{matches:t,loaderData:{},errors:l&&N(l[1])?{[l[0]]:l[1].error}:null,statusCode:200,loaderHeaders:{}};let p=await f(e,d,u,r,i);return e.signal.aborted&&ct(e,u),{...At(t,p,l,!0,o),matches:t}}async function f(e,t,n,i,a){let o=await Tt(a||_t,e,t,null,i,!0),s={};return await Promise.all(t.map(async i=>{if(!(i.route.id in o))return;let a=o[i.route.id];if(It(a)){let n=a.result;throw kt(n,e,i.route.id,t,r)}if(n){if(F(a.result))throw a;if(P(a.result))throw Mt(a.result)}s[i.route.id]=await Ot(a)})),s}return{dataRoutes:o,query:s,queryRoute:c}}function st(e,t,n,r){let i=r||t._deepestRenderedBoundaryId||e[0].id;return{...t,statusCode:k(n)?n.status:500,errors:{[i]:n}}}function ct(e,t){if(e.signal.reason!==void 0)throw e.signal.reason;let n=t?`queryRoute`:`query`;throw Error(`${n}() call aborted without an \`AbortSignal.reason\`: ${e.method} ${e.url}`)}function lt(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=ke(r||`.`,Oe(o),E(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Vt(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=Ce({basename:n,pathname:c.pathname})),v(c)}function ut(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}var dt=new WeakMap,ft=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(m(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=dt.get(i);o||(o={},dt.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=ee(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)h(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)h(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},pt=new WeakMap;function mt(e,t,n,r,i){let a=n[e.id];if(m(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=pt.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{m(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=te(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?h(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?h(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return pt.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=ft({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}function ht(e){return e!==void 0}function gt(e,t,n){let r=e.map(({route:e})=>{if(!(typeof e.lazy!=`object`||!e.lazy.middleware))return ft({key:`middleware`,route:e,manifest:t,mapRouteProperties:n})}).filter(ht);return r.length>0?Promise.all(r):void 0}async function _t(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}function vt(e,t,n){return bt(e,t,r,F,n);function r(e){return P(e)?Mt(e):e}}function yt(e,t){return bt(e,t,e=>e,Pt,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=j(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.unstable_shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function bt(e,t,n,r,i){let{matches:a,request:o,params:s,context:c,unstable_pattern:l}=e,u=a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]);return await xt({request:o,params:s,context:c,unstable_pattern:l},u,t,n,r,i)}async function xt(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await xt(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function St(e,t,n,r,i){let a=ft({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=mt(r.route,I(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Ct(e,t,n,r,i,a,o,s,c=null){let l=!1,u=St(e,t,n,i,a);return{...i,_lazyPromises:u,shouldLoad:s,unstable_shouldRevalidateArgs:c,unstable_shouldCallHandler(e){return l=!0,c?typeof e==`boolean`?ut(i,{...c,defaultShouldRevalidate:e}):ut(i,c):s},resolve(e){let{lazy:t,loader:a,middleware:c}=i.route,d=l||s||e&&!I(n.method)&&(t||a),f=c&&c.length>0&&!a&&!t;return d&&(I(n.method)||!f)?Et({request:n,unstable_pattern:r,match:i,lazyHandlerPromise:u?.handler,lazyRoutePromise:u?.route,handlerOverride:e,scopedContext:o}):Promise.resolve({type:`data`,result:void 0})}}}function wt(e,t,n,r,i,a,o,s=null){return r.map(c=>c.route.id===i.route.id?Ct(e,t,n,A(r.map(e=>e.route.path)),c,a,o,!0,s):{...c,shouldLoad:!1,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler:()=>!1,_lazyPromises:St(e,t,n,c,a),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function Tt(e,t,n,r,i,a){n.some(e=>e._lazyPromises?.middleware)&&await Promise.all(n.map(e=>e._lazyPromises?.middleware));let o={request:t,unstable_pattern:A(n.map(e=>e.route.path)),params:n[0].params,context:i,matches:n},s=a?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=o;return yt(t,()=>e({...t,fetcherKey:r,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},c=await e({...o,fetcherKey:r,runClientMiddleware:s});try{await Promise.all(n.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return c}async function Et({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:i,handlerOverride:a,scopedContext:o}){let s,c,l=I(e.method),u=l?`action`:`loader`,d=r=>{let i,s=new Promise((e,t)=>i=t);c=()=>i(),e.signal.addEventListener(`abort`,c);let l=i=>typeof r==`function`?r({request:e,unstable_pattern:t,params:n.params,context:o},...i===void 0?[]:[i]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${u}" [routeId: ${n.route.id}]`)),d=(async()=>{try{return{type:`data`,result:await(a?a(e=>l(e)):l())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([d,s])};try{let t=l?n.route.action:n.route.loader;if(r||i)if(t){let e,[n]=await Promise.all([d(t).catch(t=>{e=t}),r,i]);if(e!==void 0)throw e;s=n}else{await r;let t=l?n.route.action:n.route.loader;if(t)[s]=await Promise.all([d(t),i]);else if(u===`action`){let t=new URL(e.url),r=t.pathname+t.search;throw M(405,{method:e.method,pathname:r,routeId:n.route.id})}else return{type:`data`,result:void 0}}else if(t)s=await d(t);else{let t=new URL(e.url);throw M(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{c&&e.signal.removeEventListener(`abort`,c)}return s}async function Dt(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Ot(e){let{result:t,type:n}=e;if(F(t)){let e;try{e=await Dt(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new O(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?P(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:new O(t.init?.status||500,void 0,t.data),statusCode:k(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:k(t)?t.status:void 0}:P(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function kt(e,t,n,r,i){let a=e.headers.get(`Location`);if(m(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!rt(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=lt(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}function At(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&N(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(m(!Lt(f),`Cannot handle redirect results in processLoaderData`),N(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=j(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=at),c||(c=!0,s=k(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function j(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function jt(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function M(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new O(e||500,o,Error(s),!0)}function Mt(e){return Response.json(e.data,e.init??void 0)}function Nt(e){return new O(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Pt(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Ft(t))}function Ft(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function It(e){return F(e.result)&&Qe.has(e.result.status)}function N(e){return e.type===`error`}function Lt(e){return(e&&e.type)===`redirect`}function P(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function F(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Rt(e){return Qe.has(e)}function zt(e){return F(e)&&Rt(e.status)&&e.headers.has(`Location`)}function Bt(e){return Ze.has(e.toUpperCase())}function I(e){return Ye.has(e.toUpperCase())}function Vt(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Ht(e,t){let n=typeof t==`string`?y(t).search:t.search;if(e[e.length-1].route.index&&Vt(n||``))return e[e.length-1];let r=De(e);return r[r.length-1]}var L=l.createContext(null);L.displayName=`DataRouter`;var R=l.createContext(null);R.displayName=`DataRouterState`;var Ut=l.createContext(!1);function Wt(){return l.useContext(Ut)}var Gt=l.createContext({isTransitioning:!1});Gt.displayName=`ViewTransition`;var Kt=l.createContext(new Map);Kt.displayName=`Fetchers`;var qt=l.createContext(null);qt.displayName=`Await`;var z=l.createContext(null);z.displayName=`Navigation`;var B=l.createContext(null);B.displayName=`Location`;var V=l.createContext({outlet:null,matches:[],isDataRoute:!1});V.displayName=`Route`;var Jt=l.createContext(null);Jt.displayName=`RouteError`;function Yt(e,{relative:t}={}){m(H(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=l.useContext(z),{hash:i,pathname:a,search:o}=W(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:D([n,a])),r.createHref({pathname:s,search:o,hash:i})}function H(){return l.useContext(B)!=null}function U(){return m(H(),`useLocation() may be used only in the context of a <Router> component.`),l.useContext(B).location}var Xt=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Zt(e){l.useContext(z).static||l.useLayoutEffect(e)}function Qt(){let{isDataRoute:e}=l.useContext(V);return e?Sn():$t()}function $t(){m(H(),`useNavigate() may be used only in the context of a <Router> component.`);let e=l.useContext(L),{basename:t,navigator:n}=l.useContext(z),{matches:r}=l.useContext(V),{pathname:i}=U(),a=JSON.stringify(Oe(r)),o=l.useRef(!1);return Zt(()=>{o.current=!0}),l.useCallback((r,s={})=>{if(h(o.current,Xt),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=ke(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:D([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var en=l.createContext(null);function tn(e){let t=l.useContext(V).outlet;return l.useMemo(()=>t&&l.createElement(en.Provider,{value:e},t),[t,e])}function nn(){let{matches:e}=l.useContext(V),t=e[e.length-1];return t?t.params:{}}function W(e,{relative:t}={}){let{matches:n}=l.useContext(V),{pathname:r}=U(),i=JSON.stringify(Oe(n));return l.useMemo(()=>ke(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function rn(e,t,n,r,i){m(H(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:a}=l.useContext(z),{matches:o}=l.useContext(V),s=o[o.length-1],c=s?s.params:{},u=s?s.pathname:`/`,d=s?s.pathnameBase:`/`,f=s&&s.route;{let e=f&&f.path||``;wn(u,!f||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2
|
+
|
|
3
|
+
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let p=U(),g;if(t){let e=typeof t==`string`?y(t):t;m(d===`/`||e.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),g=e}else g=p;let _=g.pathname||`/`,v=_;if(d!==`/`){let e=d.replace(/^\//,``).split(`/`);v=`/`+_.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let b=T(e,{pathname:v});h(f||b!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),h(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let x=ln(b&&b.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:D([d,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?d:D([d,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),o,n,r,i);return t&&x?l.createElement(B.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,...g},navigationType:`POP`}},x):x}function an(){let e=xn(),t=k(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=l.createElement(l.Fragment,null,l.createElement(`p`,null,`💿 Hey developer 👋`),l.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,l.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,l.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),l.createElement(l.Fragment,null,l.createElement(`h2`,null,`Unexpected Application Error!`),l.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?l.createElement(`pre`,{style:i},n):null,o)}var on=l.createElement(an,null),sn=class extends l.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){return this.state.error===void 0?this.props.children:l.createElement(V.Provider,{value:this.props.routeContext},l.createElement(Jt.Provider,{value:this.state.error,children:this.props.component}))}};function cn({routeContext:e,match:t,children:n}){let r=l.useContext(L);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),l.createElement(V.Provider,{value:e},n)}function ln(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n?.errors;if(o!=null){let e=a.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);m(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(`,`)}`),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(n)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||r[t.route.id]===void 0);if(t.route.lazy||i){s=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight((e,i,u)=>{let d,f=!1,p=null,m=null;n&&(d=o&&i.route.id?o[i.route.id]:void 0,p=i.route.errorElement||on,s&&(c<0&&u===0?(wn(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,m=null):c===u&&(f=!0,m=i.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,u+1)),g=()=>{let t;return t=d?p:f?m:i.route.Component?l.createElement(i.route.Component,null):i.route.element?i.route.element:e,l.createElement(cn,{match:i,routeContext:{outlet:e,matches:h,isDataRoute:n!=null},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||u===0)?l.createElement(sn,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},unstable_onError:r}):g()},null)}function un(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dn(e){let t=l.useContext(L);return m(t,un(e)),t}function G(e){let t=l.useContext(R);return m(t,un(e)),t}function fn(e){let t=l.useContext(V);return m(t,un(e)),t}function pn(e){let t=fn(e),n=t.matches[t.matches.length-1];return m(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function mn(){return pn(`useRouteId`)}function hn(){return G(`useNavigation`).navigation}function gn(){let e=dn(`useRevalidator`),t=G(`useRevalidator`),n=l.useCallback(async()=>{await e.router.revalidate()},[e.router]);return l.useMemo(()=>({revalidate:n,state:t.revalidation}),[n,t.revalidation])}function _n(){let{matches:e,loaderData:t}=G(`useMatches`);return l.useMemo(()=>e.map(e=>oe(e,t)),[e,t])}function vn(){let e=G(`useLoaderData`),t=pn(`useLoaderData`);return e.loaderData[t]}function yn(e){return G(`useRouteLoaderData`).loaderData[e]}function bn(){let e=G(`useActionData`),t=pn(`useLoaderData`);return e.actionData?e.actionData[t]:void 0}function xn(){let e=l.useContext(Jt),t=G(`useRouteError`),n=pn(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Sn(){let{router:e}=dn(`useNavigate`),t=pn(`useNavigate`),n=l.useRef(!1);return Zt(()=>{n.current=!0}),l.useCallback(async(r,i={})=>{h(n.current,Xt),n.current&&(typeof r==`number`?e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Cn={};function wn(e,t,n){!t&&!Cn[e]&&(Cn[e]=!0,h(!1,n))}var Tn={};function En(e,t){!e&&!Tn[t]&&(Tn[t]=!0,console.warn(t))}function Dn(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&h(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:l.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&h(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:l.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&h(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}l.memo(On);function On({routes:e,future:t,state:n,unstable_onError:r}){return rn(e,void 0,n,r,t)}function kn(e){return tn(e.context)}function An({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1}){m(!H(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let o=e.replace(/^\/*/,`/`),s=l.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof n==`string`&&(n=y(n));let{pathname:c=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`}=n,g=l.useMemo(()=>{let e=E(c,o);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p},navigationType:r}},[o,c,u,d,f,p,r]);return h(g!=null,`<Router basename="${o}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:l.createElement(z.Provider,{value:s},l.createElement(B.Provider,{children:t,value:g}))}function jn(){return{params:nn(),loaderData:vn(),actionData:bn(),matches:_n()}}function Mn(e){return function(){let t=jn();return l.createElement(e,t)}}var Nn=`get`,Pn=`application/x-www-form-urlencoded`;function Fn(e){return e!=null&&typeof e.tagName==`string`}function In(e){return Fn(e)&&e.tagName.toLowerCase()===`button`}function Ln(e){return Fn(e)&&e.tagName.toLowerCase()===`form`}function Rn(e){return Fn(e)&&e.tagName.toLowerCase()===`input`}function zn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Bn(e,t){return e.button===0&&(!t||t===`_self`)&&!zn(e)}function Vn(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Hn(e,t){let n=Vn(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Un=null;function Wn(){if(Un===null)try{new FormData(document.createElement(`form`),0),Un=!1}catch{Un=!0}return Un}var Gn=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Kn(e){return e!=null&&!Gn.has(e)?(h(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Pn}"`),null):e}function qn(e,t){let n,r,i,a,o;if(Ln(e)){let o=e.getAttribute(`action`);r=o?E(o,t):null,n=e.getAttribute(`method`)||Nn,i=Kn(e.getAttribute(`enctype`))||Pn,a=new FormData(e)}else if(In(e)||Rn(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?E(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Nn,i=Kn(e.getAttribute(`formenctype`))||Kn(o.getAttribute(`enctype`))||Pn,a=new FormData(o,e),!Wn()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Fn(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Nn,r=null,i=Pn,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}var Jn=-1,Yn=-2,Xn=-3,Zn=-4,Qn=-5,$n=-6,er=-7,tr=`B`,nr=`D`,K=`E`,rr=`M`,ir=`N`,q=`P`,ar=`R`,or=`S`,sr=`Y`,cr=`U`,lr=`Z`,ur=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function dr(){let e=new TextDecoder,t=``;return new TransformStream({transform(n,r){let i=e.decode(n,{stream:!0}),a=(t+i).split(`
|
|
4
|
+
`);t=a.pop()||``;for(let e of a)r.enqueue(e)},flush(e){t&&e.enqueue(t)}})}function J(e){let{indices:t}=this,n=t.get(e);if(n)return[n];if(e===void 0)return er;if(e===null)return Qn;if(Number.isNaN(e))return Yn;if(e===1/0)return $n;if(e===-1/0)return Xn;if(e===0&&1/e<0)return Zn;let r=this.index++;return t.set(e,r),fr.call(this,e,r),r}function fr(e,t){let{deferred:n,plugins:r,postPlugins:i}=this,a=this.stringified,o=[[e,t]];for(;o.length>0;){let[e,t]=o.pop(),s=e=>Object.keys(e).map(t=>`"_${J.call(this,t)}":${J.call(this,e[t])}`).join(`,`),c=null;switch(typeof e){case`boolean`:case`number`:case`string`:a[t]=JSON.stringify(e);break;case`bigint`:a[t]=`["${tr}","${e}"]`;break;case`symbol`:{let n=Symbol.keyFor(e);n?a[t]=`["${sr}",${JSON.stringify(n)}]`:c=Error(`Cannot encode symbol unless created with Symbol.for()`);break}case`object`:{if(!e){a[t]=`${Qn}`;break}let i=Array.isArray(e),o=!1;if(!i&&r)for(let n of r){let r=n(e);if(Array.isArray(r)){o=!0;let[e,...n]=r;a[t]=`[${JSON.stringify(e)}`,n.length>0&&(a[t]+=`,${n.map(e=>J.call(this,e)).join(`,`)}`),a[t]+=`]`;break}}if(!o){let r=i?`[`:`{`;if(i){for(let t=0;t<e.length;t++)r+=(t?`,`:``)+(t in e?J.call(this,e[t]):Jn);a[t]=`${r}]`}else if(e instanceof Date){let n=e.getTime();a[t]=`["${nr}",${Number.isNaN(n)?JSON.stringify(`invalid`):n}]`}else e instanceof URL?a[t]=`["${cr}",${JSON.stringify(e.href)}]`:e instanceof RegExp?a[t]=`["${ar}",${JSON.stringify(e.source)},${JSON.stringify(e.flags)}]`:e instanceof Set?e.size>0?a[t]=`["${or}",${[...e].map(e=>J.call(this,e)).join(`,`)}]`:a[t]=`["${or}"]`:e instanceof Map?e.size>0?a[t]=`["${rr}",${[...e].flatMap(([e,t])=>[J.call(this,e),J.call(this,t)]).join(`,`)}]`:a[t]=`["${rr}"]`:e instanceof Promise?(a[t]=`["${q}",${t}]`,n[t]=e):e instanceof Error?(a[t]=`["${K}",${JSON.stringify(e.message)}`,e.name!==`Error`&&(a[t]+=`,${JSON.stringify(e.name)}`),a[t]+=`]`):Object.getPrototypeOf(e)===null?a[t]=`["${ir}",{${s(e)}}]`:mr(e)?a[t]=`{${s(e)}}`:c=Error(`Cannot encode object with prototype`)}break}default:{let n=Array.isArray(e),i=!1;if(!n&&r)for(let n of r){let r=n(e);if(Array.isArray(r)){i=!0;let[e,...n]=r;a[t]=`[${JSON.stringify(e)}`,n.length>0&&(a[t]+=`,${n.map(e=>J.call(this,e)).join(`,`)}`),a[t]+=`]`;break}}i||(c=Error(`Cannot encode function or unexpected type`))}}if(c){let n=!1;if(i)for(let r of i){let i=r(e);if(Array.isArray(i)){n=!0;let[e,...r]=i;a[t]=`[${JSON.stringify(e)}`,r.length>0&&(a[t]+=`,${r.map(e=>J.call(this,e)).join(`,`)}`),a[t]+=`]`;break}}if(!n)throw c}}}var pr=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function mr(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===pr}var hr=typeof window<`u`?window:typeof globalThis<`u`?globalThis:void 0;function gr(e){let{hydrated:t,values:n}=this;if(typeof e==`number`)return _r.call(this,e);if(!Array.isArray(e)||!e.length)throw SyntaxError();let r=n.length;for(let t of e)n.push(t);return t.length=n.length,_r.call(this,r)}function _r(e){let{hydrated:t,values:n,deferred:r,plugins:i}=this,a,o=[[e,e=>{a=e}]],s=[];for(;o.length>0;){let[e,a]=o.pop();switch(e){case er:a(void 0);continue;case Qn:a(null);continue;case Yn:a(NaN);continue;case $n:a(1/0);continue;case Xn:a(-1/0);continue;case Zn:a(-0);continue}if(t[e]){a(t[e]);continue}let c=n[e];if(!c||typeof c!=`object`){t[e]=c,a(c);continue}if(Array.isArray(c))if(typeof c[0]==`string`){let[n,l,u]=c;switch(n){case nr:a(t[e]=new Date(l));continue;case cr:a(t[e]=new URL(l));continue;case tr:a(t[e]=BigInt(l));continue;case ar:a(t[e]=new RegExp(l,u));continue;case sr:a(t[e]=Symbol.for(l));continue;case or:let n=new Set;t[e]=n;for(let e=c.length-1;e>0;e--)o.push([c[e],e=>{n.add(e)}]);a(n);continue;case rr:let d=new Map;t[e]=d;for(let e=c.length-2;e>0;e-=2){let t=[];o.push([c[e+1],e=>{t[1]=e}]),o.push([c[e],e=>{t[0]=e}]),s.push(()=>{d.set(t[0],t[1])})}a(d);continue;case ir:let f=Object.create(null);t[e]=f;for(let e of Object.keys(l).reverse()){let t=[];o.push([l[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{f[t[0]]=t[1]})}a(f);continue;case q:if(t[l])a(t[e]=t[l]);else{let n=new ur;r[l]=n,a(t[e]=n.promise)}continue;case K:let[,p,m]=c,h=m&&hr&&hr[m]?new hr[m](p):Error(p);t[e]=h,a(h);continue;case lr:a(t[e]=t[l]);continue;default:if(Array.isArray(i)){let n=[],r=c.slice(1);for(let e=0;e<r.length;e++){let t=r[e];o.push([t,t=>{n[e]=t}])}s.push(()=>{for(let r of i){let i=r(c[0],...n);if(i){a(t[e]=i.value);return}}throw SyntaxError()});continue}throw SyntaxError()}}else{let n=[];t[e]=n;for(let e=0;e<c.length;e++){let t=c[e];t!==Jn&&o.push([t,t=>{n[e]=t}])}a(n);continue}else{let n={};t[e]=n;for(let e of Object.keys(c).reverse()){let t=[];o.push([c[e],e=>{t[1]=e}]),o.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{n[t[0]]=t[1]})}a(n);continue}}for(;s.length>0;)s.pop()();return a}async function vr(e,t){let{plugins:n}=t??{},r=new ur,i=e.pipeThrough(dr()).getReader(),a={values:[],hydrated:[],deferred:{},plugins:n},o=await yr.call(a,i),s=r.promise;return o.done?r.resolve():s=br.call(a,i).then(r.resolve).catch(e=>{for(let t of Object.values(a.deferred))t.reject(e);r.reject(e)}),{done:s.then(()=>i.closed),value:o.value}}async function yr(e){let t=await e.read();if(!t.value)throw SyntaxError();let n;try{n=JSON.parse(t.value)}catch{throw SyntaxError()}return{done:t.done,value:gr.call(this,n)}}async function br(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;let n=t.value;switch(n[0]){case q:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=gr.call(this,a);r.resolve(o);break}case K:{let e=n.indexOf(`:`),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw Error(`Deferred ID ${t} not found in stream`);let i=n.slice(e+1),a;try{a=JSON.parse(i)}catch{throw SyntaxError()}let o=gr.call(this,a);r.reject(o);break}default:throw SyntaxError()}t=await e.read()}}function xr(e,t){let{plugins:n,postPlugins:r,signal:i}=t??{},a={deferred:{},index:0,indices:new Map,stringified:[],plugins:n,postPlugins:r,signal:i},o=new TextEncoder,s=0;return new ReadableStream({async start(t){let n=J.call(a,e);if(Array.isArray(n))throw Error(`This should never happen`);n<0?t.enqueue(o.encode(`${n}
|
|
5
|
+
`)):(t.enqueue(o.encode(`[${a.stringified.join(`,`)}]
|
|
6
|
+
`)),s=a.stringified.length-1);let r=new WeakSet;if(Object.keys(a.deferred).length){let e,n=new Promise((t,n)=>{if(e=t,i){let e=()=>n(i.reason||Error(`Signal was aborted.`));i.aborted?e():i.addEventListener(`abort`,t=>{e()})}});for(;Object.keys(a.deferred).length>0;){for(let[e,i]of Object.entries(a.deferred))r.has(i)||r.add(a.deferred[Number(e)]=Promise.race([n,i]).then(n=>{let r=J.call(a,n);if(Array.isArray(r))t.enqueue(o.encode(`${q}${e}:[["${lr}",${r[0]}]]
|
|
7
|
+
`)),a.index++,s++;else if(r<0)t.enqueue(o.encode(`${q}${e}:${r}
|
|
8
|
+
`));else{let n=a.stringified.slice(s+1).join(`,`);t.enqueue(o.encode(`${q}${e}:[${n}]
|
|
9
|
+
`)),s=a.stringified.length-1}},n=>{(!n||typeof n!=`object`||!(n instanceof Error))&&(n=Error(`An unknown error occurred`));let r=J.call(a,n);if(Array.isArray(r))t.enqueue(o.encode(`${K}${e}:[["${lr}",${r[0]}]]
|
|
10
|
+
`)),a.index++,s++;else if(r<0)t.enqueue(o.encode(`${K}${e}:${r}
|
|
11
|
+
`));else{let n=a.stringified.slice(s+1).join(`,`);t.enqueue(o.encode(`${K}${e}:[${n}]
|
|
12
|
+
`)),s=a.stringified.length-1}}).finally(()=>{delete a.deferred[Number(e)]}));await Promise.race(Object.values(a.deferred))}e()}await Promise.all(Object.values(a.deferred)),t.close()}})}var Sr={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Cr=/[&><\u2028\u2029]/g;function wr(e){return e.replace(Cr,e=>Sr[e])}function Tr(e,t){if(e===!1||e==null)throw Error(t)}var Y=Symbol(`SingleFetchRedirect`),Er=new Set([100,101,204,205]);function Dr({context:e,identifier:t,reader:n,textDecoder:r,nonce:i}){if(!e.renderMeta||!e.renderMeta.didRenderScripts)return null;e.renderMeta.streamCache||(e.renderMeta.streamCache={});let{streamCache:a}=e.renderMeta,o=a[t];if(o||=a[t]=n.read().then(e=>{a[t].result={done:e.done,value:r.decode(e.value,{stream:!0})}}).catch(e=>{a[t].error=e}),o.error)throw o.error;if(o.result===void 0)throw o;let{done:s,value:c}=o.result,u=c?l.createElement(`script`,{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.enqueue(${wr(JSON.stringify(c))});`}}):null;return s?l.createElement(l.Fragment,null,u,l.createElement(`script`,{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.close();`}})):l.createElement(l.Fragment,null,u,l.createElement(l.Suspense,null,l.createElement(Dr,{context:e,identifier:t+1,reader:n,textDecoder:r,nonce:i})))}function Or(e,t,n){let r=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return r.pathname===`/`?r.pathname=`_root.${n}`:t&&E(r.pathname,t)===`/`?r.pathname=`${t.replace(/\/$/,``)}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,``)}.${n}`,r}function kr(e,t){return vr(e,{plugins:[(e,...n)=>{if(e===`SanitizedError`){let[e,r,i]=n,a=Error;e&&e in t&&typeof t[e]==`function`&&(a=t[e]);let o=new a(r);return o.stack=i,{value:o}}if(e===`ErrorResponse`){let[e,t,r]=n;return{value:new O(t,r,e)}}if(e===`SingleFetchRedirect`)return{value:{[Y]:n[0]}};if(e===`SingleFetchClassInstance`)return{value:n[0]};if(e===`SingleFetchFallback`)return{value:void 0}}]})}async function Ar(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function jr(e,t,n){return zr(e.map(e=>{let r=t[e.route.id],i=n.routes[e.route.id];return[i&&i.css?i.css.map(e=>({rel:`stylesheet`,href:e})):[],r?.links?.()||[]]}).flat(2),Ir(e,n))}function Mr(e){return e!=null&&typeof e.page==`string`}function Nr(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Pr(e,t,n){return zr((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Ar(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Nr).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Fr(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Ir(e,t,{includeHydrateFallback:n}={}){return Lr(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Lr(e){return[...new Set(e)]}function Rr(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function zr(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Mr(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Rr(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Br(){return l.createElement(hi,{title:`Loading...`,renderScripts:!0},l.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
|
|
13
|
+
console.log(
|
|
14
|
+
"💿 Hey developer 👋. You can provide a way better UX than this " +
|
|
15
|
+
"when your app is loading JS modules and/or running \`clientLoader\` " +
|
|
16
|
+
"functions. Check out https://reactrouter.com/start/framework/route-module#hydratefallback " +
|
|
17
|
+
"for more information."
|
|
18
|
+
);
|
|
19
|
+
`}}))}function Vr(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function Hr(e,t,n){let r=Wr(t),i=t.HydrateFallback&&(!n||e.id===`root`)?t.HydrateFallback:e.id===`root`?Br:void 0,a=t.ErrorBoundary?t.ErrorBoundary:e.id===`root`?()=>l.createElement(mi,{error:xn()}):void 0;return e.id===`root`&&t.Layout?{...r?{element:l.createElement(t.Layout,null,l.createElement(r,null))}:{Component:r},...a?{errorElement:l.createElement(t.Layout,null,l.createElement(a,null))}:{ErrorBoundary:a},...i?{hydrateFallbackElement:l.createElement(t.Layout,null,l.createElement(i,null))}:{HydrateFallback:i}}:{Component:r,ErrorBoundary:a,HydrateFallback:i}}function Ur(e,t,n,r,i=``,a=Vr(e),o=Promise.resolve({Component:()=>null})){return(a[i]||[]).map(i=>{let s=t[i.id];Tr(s,"No `routeModule` available to create server routes");let c={...Hr(i,s,r),caseSensitive:i.caseSensitive,id:i.id,index:i.index,path:i.path,handle:s.handle,lazy:r?()=>o:void 0,loader:i.hasLoader||i.hasClientLoader?()=>null:void 0},l=Ur(e,t,n,r,i.id,a,o);return l.length>0&&(c.children=l),c})}function Wr(e){if(e.default!=null&&!(typeof e.default==`object`&&Object.keys(e.default).length===0))return e.default}function Gr(e,t,n,r){return r&&e!==`root`||t!=null&&(t.hydrate===!0||n!==!0)}function Kr(e,t){return e.mode===`lazy`&&t===!0}function qr({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),i=n.state.location.pathname.split(`/`).filter(Boolean),a=[`/`];for(i.pop();i.length>0;)a.push(`/${i.join(`/`)}`),i.pop();a.forEach(e=>{let t=T(n.routes,e,n.basename);t&&t.forEach(e=>r.add(e.route.id))});let o=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:o,sri:e?!0:void 0}}function Jr(e,t){let n=e||`/__manifest`;return t==null?n:`${t}${n}`.replace(/\/+/g,`/`)}function Yr(){let e=l.useContext(L);return Tr(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Xr(){let e=l.useContext(R);return Tr(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Zr=l.createContext(void 0);Zr.displayName=`FrameworkContext`;function X(){let e=l.useContext(Zr);return Tr(e,`You must render this element inside a <HydratedRouter> element`),e}function Qr(e,t){let n=l.useContext(Zr),[r,i]=l.useState(!1),[a,o]=l.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=l.useRef(null);l.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),l.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{i(!0)},h=()=>{i(!1),o(!1)};return n?e===`intent`?[a,p,{onFocus:$r(s,m),onBlur:$r(c,h),onMouseEnter:$r(u,m),onMouseLeave:$r(d,h),onTouchStart:$r(f,m)}]:[a,p,{}]:[!1,p,{}]}function $r(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ei(e,t,n){if(n&&!ci)return[e[0]];if(t){let n=e.findIndex(e=>t[e.route.id]!==void 0);return e.slice(0,n+1)}return e}var ti=`data-react-router-critical-css`;function ni({nonce:e}){let{isSpaMode:t,manifest:n,routeModules:r,criticalCss:i}=X(),{errors:a,matches:o}=Xr(),s=ei(o,a,t),c=l.useMemo(()=>jr(s,r,n),[s,r,n]);return l.createElement(l.Fragment,null,typeof i==`string`?l.createElement(`style`,{[ti]:``,dangerouslySetInnerHTML:{__html:i}}):null,typeof i==`object`?l.createElement(`link`,{[ti]:``,rel:`stylesheet`,href:i.href,nonce:e}):null,c.map(({key:t,link:n})=>Mr(n)?l.createElement(ri,{key:t,nonce:e,...n}):l.createElement(`link`,{key:t,nonce:e,...n})))}function ri({page:e,...t}){let{router:n}=Yr(),r=l.useMemo(()=>T(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?l.createElement(ai,{page:e,matches:r,...t}):null}function ii(e){let{manifest:t,routeModules:n}=X(),[r,i]=l.useState([]);return l.useEffect(()=>{let r=!1;return Pr(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function ai({page:e,matches:t,...n}){let r=U(),{manifest:i,routeModules:a}=X(),{basename:o}=Yr(),{loaderData:s,matches:c}=Xr(),u=l.useMemo(()=>Fr(e,t,c,i,r,`data`),[e,t,c,i,r]),d=l.useMemo(()=>Fr(e,t,c,i,r,`assets`),[e,t,c,i,r]),f=l.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,c=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in s&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?c=!0:n.add(e.route.id))}),n.size===0)return[];let l=Or(e,o,`data`);return c&&n.size>0&&l.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[l.pathname+l.search]},[o,s,r,i,u,t,e,a]),p=l.useMemo(()=>Ir(d,i),[d,i]),m=ii(d);return l.createElement(l.Fragment,null,f.map(e=>l.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>l.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>l.createElement(`link`,{key:e,nonce:n.nonce,...t})))}function oi(){let{isSpaMode:e,routeModules:t}=X(),{errors:n,matches:r,loaderData:i}=Xr(),a=U(),o=ei(r,n,e),s=null;n&&(s=n[o[o.length-1].route.id]);let c=[],u=null,d=[];for(let e=0;e<o.length;e++){let n=o[e],r=n.route.id,l=i[r],f=n.params,p=t[r],m=[],h={id:r,data:l,loaderData:l,meta:[],params:n.params,pathname:n.pathname,handle:n.route.handle,error:s};if(d[e]=h,p?.meta?m=typeof p.meta==`function`?p.meta({data:l,loaderData:l,params:f,location:a,matches:d,error:s}):Array.isArray(p.meta)?[...p.meta]:p.meta:u&&(m=[...u]),m||=[],!Array.isArray(m))throw Error(`The route at `+n.route.path+` returns an invalid value. All route meta functions must return an array of meta objects.
|
|
20
|
+
|
|
21
|
+
To reference the meta function API, see https://remix.run/route/meta`);h.meta=m,d[e]=h,c=[...m],u=c}return l.createElement(l.Fragment,null,c.flat().map(e=>{if(!e)return null;if(`tagName`in e){let{tagName:t,...n}=e;if(!si(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let r=t;return l.createElement(r,{key:JSON.stringify(n),...n})}if(`title`in e)return l.createElement(`title`,{key:`title`},String(e.title));if(`charset`in e&&(e.charSet??=e.charset,delete e.charset),`charSet`in e&&e.charSet!=null)return typeof e.charSet==`string`?l.createElement(`meta`,{key:`charSet`,charSet:e.charSet}):null;if(`script:ld+json`in e)try{let t=JSON.stringify(e[`script:ld+json`]);return l.createElement(`script`,{key:`script:ld+json:${t}`,type:`application/ld+json`,dangerouslySetInnerHTML:{__html:wr(t)}})}catch{return null}return l.createElement(`meta`,{key:JSON.stringify(e),...e})}))}function si(e){return typeof e==`string`&&/^(meta|link)$/.test(e)}var ci=!1;function li(){ci=!0}function ui(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:i,routeDiscovery:a,ssr:o}=X(),{router:s,static:c,staticContext:u}=Yr(),{matches:d}=Xr(),f=Wt(),p=Kr(a,o);i&&(i.didRenderScripts=!0);let m=ei(d,null,r);l.useEffect(()=>{li()},[]);let h=l.useMemo(()=>{if(f)return null;let r=u?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:` `,i=c?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:``}${p?``:`import ${JSON.stringify(t.url)}`};
|
|
22
|
+
${m.map((e,n)=>{let r=`route${n}`,i=t.routes[e.route.id];Tr(i,`Route ${e.route.id} not found in manifest`);let{clientActionModule:a,clientLoaderModule:o,clientMiddlewareModule:s,hydrateFallbackModule:c,module:l}=i,u=[...a?[{module:a,varName:`${r}_clientAction`}]:[],...o?[{module:o,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...c?[{module:c,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return u.length===1?`import * as ${r} from ${JSON.stringify(l)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join(`
|
|
23
|
+
`),`const ${r} = {${u.map(e=>`...${e.varName}`).join(`,`)}};`].join(`
|
|
24
|
+
`)}).join(`
|
|
25
|
+
`)}
|
|
26
|
+
${p?`window.__reactRouterManifest = ${JSON.stringify(qr(t,s),null,2)};`:``}
|
|
27
|
+
window.__reactRouterRouteModules = {${m.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(`,`)}};
|
|
28
|
+
|
|
29
|
+
import(${JSON.stringify(t.entry.module)});`:` `;return l.createElement(l.Fragment,null,l.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),l.createElement(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:`module`,async:!0}))},[]),g=ci||f?[]:di(t.entry.imports.concat(Ir(m,t,{includeHydrateFallback:!0}))),_=typeof t.sri==`object`?t.sri:{};return En(!f,`The <Scripts /> element is a no-op when using RSC and can be safely removed.`),ci||f?null:l.createElement(l.Fragment,null,typeof t.sri==`object`?l.createElement(`script`,{"rr-importmap":``,type:`importmap`,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:_})}}):null,p?null:l.createElement(`link`,{rel:`modulepreload`,href:t.url,crossOrigin:e.crossOrigin,integrity:_[t.url],suppressHydrationWarning:!0}),l.createElement(`link`,{rel:`modulepreload`,href:t.entry.module,crossOrigin:e.crossOrigin,integrity:_[t.entry.module],suppressHydrationWarning:!0}),g.map(t=>l.createElement(`link`,{key:t,rel:`modulepreload`,href:t,crossOrigin:e.crossOrigin,integrity:_[t],suppressHydrationWarning:!0})),h)}function di(e){return[...new Set(e)]}function fi(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var pi=class extends l.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location===e.location?{error:e.error||t.error,location:t.location}:{error:e.error||null,location:e.location}}render(){return this.state.error?l.createElement(mi,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function mi({error:e,isOutsideRemixApp:t}){console.error(e);let n=l.createElement(`script`,{dangerouslySetInnerHTML:{__html:`
|
|
30
|
+
console.log(
|
|
31
|
+
"💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
|
|
32
|
+
);
|
|
33
|
+
`}});if(k(e))return l.createElement(hi,{title:`Unhandled Thrown Response!`},l.createElement(`h1`,{style:{fontSize:`24px`}},e.status,` `,e.statusText),n);let r;if(e instanceof Error)r=e;else{let t=e==null?`Unknown Error`:typeof e==`object`&&`toString`in e?e.toString():JSON.stringify(e);r=Error(t)}return l.createElement(hi,{title:`Application Error!`,isOutsideRemixApp:t},l.createElement(`h1`,{style:{fontSize:`24px`}},`Application Error`),l.createElement(`pre`,{style:{padding:`2rem`,background:`hsla(10, 50%, 50%, 0.1)`,color:`red`,overflow:`auto`}},r.stack),n)}function hi({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=X();return i.root?.Layout&&!n?r:l.createElement(`html`,{lang:`en`},l.createElement(`head`,null,l.createElement(`meta`,{charSet:`utf-8`}),l.createElement(`meta`,{name:`viewport`,content:`width=device-width,initial-scale=1,viewport-fit=cover`}),l.createElement(`title`,null,e)),l.createElement(`body`,null,l.createElement(`main`,{style:{fontFamily:`system-ui, sans-serif`,padding:`2rem`}},r,t?l.createElement(ui,null):null)))}var gi=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{gi&&(window.__reactRouterVersion=`7.9.5`)}catch{}function _i({basename:e,children:t,history:n}){let[r,i]=l.useState({action:n.action,location:n.location}),a=l.useCallback(e=>{l.startTransition(()=>i(e))},[i]);return l.useLayoutEffect(()=>n.listen(a),[n,a]),l.createElement(An,{basename:e,children:t,location:r.location,navigationType:r.action,navigator:n})}_i.displayName=`unstable_HistoryRouter`;var vi=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yi=l.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:c,preventScrollReset:u,viewTransition:d,...f},p){let{basename:m}=l.useContext(z),g=typeof c==`string`&&vi.test(c),_,v=!1;if(typeof c==`string`&&g&&(_=c,gi))try{let e=new URL(window.location.href),t=c.startsWith(`//`)?new URL(e.protocol+c):new URL(c),n=E(t.pathname,m);t.origin===e.origin&&n!=null?c=n+t.search+t.hash:v=!0}catch{h(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let y=Yt(c,{relative:r}),[b,x,S]=Qr(n,f),C=Ei(c,{replace:a,state:o,target:s,preventScrollReset:u,relative:r,viewTransition:d});function ee(t){e&&e(t),t.defaultPrevented||C(t)}let w=l.createElement(`a`,{...f,...S,href:_||y,onClick:v||i?e:ee,ref:fi(p,x),target:s,"data-discover":!g&&t===`render`?`true`:void 0});return b&&!g?l.createElement(l.Fragment,null,w,l.createElement(ri,{page:y})):w});yi.displayName=`Link`;var bi=l.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},u){let d=W(a,{relative:c.relative}),f=U(),p=l.useContext(R),{navigator:m,basename:h}=l.useContext(z),g=p!=null&&Li(d)&&o===!0,_=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,v=f.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=E(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},ee=x?e:void 0,w;w=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let te=typeof i==`function`?i(C):i;return l.createElement(yi,{...c,"aria-current":ee,className:w,ref:u,style:te,to:a,viewTransition:o},typeof s==`function`?s(C):s)});bi.displayName=`NavLink`;var xi=l.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Nn,action:s,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:f,...p},m)=>{let h=Ai(),g=ji(s,{relative:u}),_=o.toLowerCase()===`get`?`get`:`post`,v=typeof s==`string`&&vi.test(s);return l.createElement(`form`,{ref:m,method:_,action:g,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o;h(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:u,preventScrollReset:d,viewTransition:f})},...p,"data-discover":!v&&e===`render`?`true`:void 0})});xi.displayName=`Form`;function Si({getKey:e,storageKey:t,...n}){let r=l.useContext(Zr),{basename:i}=l.useContext(z),a=U(),o=_n();Fi({getKey:e,storageKey:t});let s=l.useMemo(()=>{if(!r||!e)return null;let t=Pi(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return l.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${JSON.stringify(t||Mi)}, ${JSON.stringify(s)})`}})}Si.displayName=`ScrollRestoration`;function Ci(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wi(e){let t=l.useContext(L);return m(t,Ci(e)),t}function Ti(e){let t=l.useContext(R);return m(t,Ci(e)),t}function Ei(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:o}={}){let s=Qt(),c=U(),u=W(e,{relative:a});return l.useCallback(l=>{Bn(l,t)&&(l.preventDefault(),s(e,{replace:n===void 0?v(c)===v(u):n,state:r,preventScrollReset:i,relative:a,viewTransition:o}))},[c,s,u,n,r,t,e,i,a,o])}function Di(e){h(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=l.useRef(Vn(e)),n=l.useRef(!1),r=U(),i=l.useMemo(()=>Hn(r.search,n.current?null:t.current),[r.search]),a=Qt();return[i,l.useCallback((e,t)=>{let r=Vn(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Oi=0,ki=()=>`__${String(++Oi)}__`;function Ai(){let{router:e}=wi(`useSubmit`),{basename:t}=l.useContext(z),n=mn();return l.useCallback(async(r,i={})=>{let{action:a,method:o,encType:s,formData:c,body:l}=qn(r,t);if(i.navigate===!1){let t=i.fetcherKey||ki();await e.fetch(t,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:l,formMethod:i.method||o,formEncType:i.encType||s,flushSync:i.flushSync})}else await e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:l,formMethod:i.method||o,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function ji(e,{relative:t}={}){let{basename:n}=l.useContext(z),r=l.useContext(V);m(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...W(e||`.`,{relative:t})},o=U();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:D([n,a.pathname])),v(a)}var Mi=`react-router-scroll-positions`,Ni={};function Pi(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:E(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Fi({getKey:e,storageKey:t}={}){let{router:n}=wi(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Ti(`useScrollRestoration`),{basename:a}=l.useContext(z),o=U(),s=_n(),c=hn();l.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Ii(l.useCallback(()=>{if(c.state===`idle`){let t=Pi(o,s,a,e);Ni[t]=window.scrollY}try{sessionStorage.setItem(t||Mi,JSON.stringify(Ni))}catch(e){h(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(l.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Mi);e&&(Ni=JSON.parse(e))}catch{}},[t]),l.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Ni,()=>window.scrollY,e?(t,n)=>Pi(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),l.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{h(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Ii(e,t){let{capture:n}=t||{};l.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Li(e,{relative:t}={}){let n=l.useContext(Gt);m(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=wi(`useViewTransitionState`),i=W(e,{relative:t});if(!n.isTransitioning)return!1;let a=E(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=E(n.nextLocation.pathname,r)||n.nextLocation.pathname;return be(i.pathname,o)!=null||be(i.pathname,a)!=null}function Ri({context:e,router:t,hydrate:n=!0,nonce:r}){m(t&&e,"You must provide `router` and `context` to <StaticRouterProvider>");let i={router:t,navigator:Vi(),static:!0,staticContext:e,basename:e.basename||`/`},a=new Map,o=``;if(n!==!1){let t={loaderData:e.loaderData,actionData:e.actionData,errors:Bi(e.errors)};o=`window.__staticRouterHydrationData = JSON.parse(${Ji(JSON.stringify(JSON.stringify(t)))});`}let{state:s}=i.router;return l.createElement(l.Fragment,null,l.createElement(L.Provider,{value:i},l.createElement(R.Provider,{value:s},l.createElement(Kt.Provider,{value:a},l.createElement(Gt.Provider,{value:{isTransitioning:!1}},l.createElement(An,{basename:i.basename,location:s.location,navigationType:s.historyAction,navigator:i.navigator,static:i.static},l.createElement(zi,{routes:t.routes,future:t.future,state:s})))))),o?l.createElement(`script`,{suppressHydrationWarning:!0,nonce:r,dangerouslySetInnerHTML:{__html:o}}):null)}function zi({routes:e,future:t,state:n}){return rn(e,void 0,n,void 0,t)}function Bi(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)k(r)?n[e]={...r,__type:`RouteErrorResponse`}:r instanceof Error?n[e]={message:r.message,__type:`Error`,...r.name===`Error`?{}:{__subType:r.name}}:n[e]=r;return n}function Vi(){return{createHref:Ui,encodeLocation:Wi,push(e){throw Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`)},replace(e){throw Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`)},go(e){throw Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`)},back(){throw Error(`You cannot use navigator.back() on the server because it is a stateless environment.`)},forward(){throw Error(`You cannot use navigator.forward() on the server because it is a stateless environment.`)}}}function Hi(e,t,n={}){let r={},i=re(e,Dn,void 0,r),a=t.matches.map(e=>{let t=r[e.route.id]||e.route;return{...e,route:t}}),o=e=>`You cannot use router.${e}() on the server because it is a stateless environment`;return{get basename(){return t.basename},get future(){return{v8_middleware:!1,...n?.future}},get state(){return{historyAction:`POP`,location:t.location,matches:a,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,navigation:$e,restoreScrollPosition:null,preventScrollReset:!1,revalidation:`idle`,fetchers:new Map,blockers:new Map}},get routes(){return i},get window(){},initialize(){throw o(`initialize`)},subscribe(){throw o(`subscribe`)},enableScrollRestoration(){throw o(`enableScrollRestoration`)},navigate(){throw o(`navigate`)},fetch(){throw o(`fetch`)},revalidate(){throw o(`revalidate`)},createHref:Ui,encodeLocation:Wi,getFetcher(){return et},deleteFetcher(){throw o(`deleteFetcher`)},resetFetcher(){throw o(`resetFetcher`)},dispose(){throw o(`dispose`)},getBlocker(){return tt},deleteBlocker(){throw o(`deleteBlocker`)},patchRoutes(){throw o(`patchRoutes`)},_internalFetchControllers:new Map,_internalSetRoutes(){throw o(`_internalSetRoutes`)},_internalSetStateDoNotUseOrYouWillBreakYourApp(){throw o(`_internalSetStateDoNotUseOrYouWillBreakYourApp`)}}}function Ui(e){return typeof e==`string`?e:v(e)}function Wi(e){let t=typeof e==`string`?e:v(e);t=t.replace(/ $/,`%20`);let n=Gi.test(t)?new URL(t):new URL(t,`http://localhost`);return{pathname:n.pathname,search:n.search,hash:n.hash}}var Gi=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ki={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},qi=/[&><\u2028\u2029]/g;function Ji(e){return e.replace(qi,e=>Ki[e])}var Yi=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),Xi=n(((e,t)=>{var n={decodeValues:!0,map:!1,silent:!1};function r(e){return typeof e==`string`&&!!e.trim()}function i(e,t){var i=e.split(`;`).filter(r),o=a(i.shift()),s=o.name,c=o.value;t=t?Object.assign({},n,t):n;try{c=t.decodeValues?decodeURIComponent(c):c}catch(e){console.error(`set-cookie-parser encountered an error while decoding a cookie with value '`+c+`'. Set options.decodeValues to false to disable this feature.`,e)}var l={name:s,value:c};return i.forEach(function(e){var t=e.split(`=`),n=t.shift().trimLeft().toLowerCase(),r=t.join(`=`);n===`expires`?l.expires=new Date(r):n===`max-age`?l.maxAge=parseInt(r,10):n===`secure`?l.secure=!0:n===`httponly`?l.httpOnly=!0:n===`samesite`?l.sameSite=r:n===`partitioned`?l.partitioned=!0:l[n]=r}),l}function a(e){var t=``,n=``,r=e.split(`=`);return r.length>1?(t=r.shift(),n=r.join(`=`)):n=e,{name:t,value:n}}function o(e,t){if(t=t?Object.assign({},n,t):n,!e)return t.map?{}:[];if(e.headers)if(typeof e.headers.getSetCookie==`function`)e=e.headers.getSetCookie();else if(e.headers[`set-cookie`])e=e.headers[`set-cookie`];else{var a=e.headers[Object.keys(e.headers).find(function(e){return e.toLowerCase()===`set-cookie`})];!a&&e.headers.cookie&&!t.silent&&console.warn(`Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning.`),e=a}return Array.isArray(e)||(e=[e]),t.map?e.filter(r).reduce(function(e,n){var r=i(n,t);return e[r.name]=r,e},{}):e.filter(r).map(function(e){return i(e,t)})}function s(e){if(Array.isArray(e))return e;if(typeof e!=`string`)return[];var t=[],n=0,r,i,a,o,s;function c(){for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length}function l(){return i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`}for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.substring(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.substring(r,e.length))}return t}t.exports=o,t.exports.parse=o,t.exports.parseString=i,t.exports.splitCookiesString=s}));Yi();var Zi=Xi();function Qi({context:e,url:t,nonce:n}){typeof t==`string`&&(t=new URL(t));let{manifest:r,routeModules:i,criticalCss:a,serverHandoffString:o}=e,s=Ur(r.routes,i,e.future,e.isSpaMode);e.staticHandlerContext.loaderData={...e.staticHandlerContext.loaderData};for(let t of e.staticHandlerContext.matches){let n=t.route.id,r=i[n],a=e.manifest.routes[n];r&&a&&Gr(n,r.clientLoader,a.hasLoader,e.isSpaMode)&&(r.HydrateFallback||!a.hasLoader)&&delete e.staticHandlerContext.loaderData[n]}let c=Hi(s,e.staticHandlerContext);return l.createElement(l.Fragment,null,l.createElement(Zr.Provider,{value:{manifest:r,routeModules:i,criticalCss:a,serverHandoffString:o,future:e.future,ssr:e.ssr,isSpaMode:e.isSpaMode,routeDiscovery:e.routeDiscovery,serializeError:e.serializeError,renderMeta:e.renderMeta}},l.createElement(pi,{location:c.state.location},l.createElement(Ri,{router:c,context:e.staticHandlerContext,hydrate:!1}))),e.serverHandoffStream?l.createElement(l.Suspense,null,l.createElement(Dr,{context:e,identifier:0,reader:e.serverHandoffStream.getReader(),textDecoder:new TextDecoder,nonce:n})):null)}function $i(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r&&(t[n]=r.module),t},{})}function ea(e){return e===`development`||e===`production`||e===`test`}function ta(e,t){if(e instanceof Error&&t!==`development`){let e=Error(`Unexpected Server Error`);return e.stack=void 0,e}return e}function na(e,t){return Object.entries(e).reduce((e,[n,r])=>Object.assign(e,{[n]:ta(r,t)}),{})}function ra(e,t){let n=ta(e,t);return{message:n.message,stack:n.stack}}function ia(e,t){if(!e)return null;let n=Object.entries(e),r={};for(let[e,i]of n)if(k(i))r[e]={...i,__type:`RouteErrorResponse`};else if(i instanceof Error){let n=ta(i,t);r[e]={message:n.message,stack:n.stack,__type:`Error`,...n.name===`Error`?{}:{__subType:n.name}}}else r[e]=i;return r}function aa(e,t,n){let r=T(e,t,n);return r?r.map(e=>({params:e.params,pathname:e.pathname,route:e.route})):null}async function oa(e,t){let n=await e({request:ca(sa(t.request)),params:t.params,context:t.context,unstable_pattern:t.unstable_pattern});if(P(n)&&n.init&&n.init.status&&Rt(n.init.status))throw new Response(null,n.init);return n}function sa(e){let t=new URL(e.url),n=t.searchParams.getAll(`index`);t.searchParams.delete(`index`);let r=[];for(let e of n)e&&r.push(e);for(let e of r)t.searchParams.append(`index`,e);let i={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return i.body&&(i.duplex=`half`),new Request(t.href,i)}function ca(e){let t=new URL(e.url);t.searchParams.delete(`_routes`);let n={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return n.body&&(n.duplex=`half`),new Request(t.href,n)}function la(e,t){if(e===!1||e==null)throw console.error(`The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose`),Error(t)}var ua=`__reactRouterDevServerHooks`;function da(){return globalThis[ua]}function fa(e,t){if(typeof process<`u`)try{if(process.env?.IS_RR_BUILD_REQUEST===`yes`)return e.headers.get(t)}catch{}return null}function pa(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||``;t[n]||(t[n]=[]),t[n].push(e)}}),t}function ma(e,t=``,n=pa(e)){return(n[t]||[]).map(t=>({...t,children:ma(e,t.id,n)}))}function ha(e,t,n=``,r=pa(e)){return(r[n]||[]).map(n=>{let i={hasErrorBoundary:n.id===`root`||n.module.ErrorBoundary!=null,id:n.id,path:n.path,middleware:n.module.middleware,loader:n.module.loader?async e=>{let t=fa(e.request,`X-React-Router-Prerender-Data`);if(t!=null){let e=t&&decodeURI(t);la(e,`Missing prerendered data for route`);let r=new TextEncoder().encode(e),i=(await kr(new ReadableStream({start(e){e.enqueue(r),e.close()}}),global)).value;if(i&&Y in i){let e=i[Y],t={status:e.status};throw e.reload?Ie(e.redirect,t):e.replace?Le(e.redirect,t):Fe(e.redirect,t)}else{la(i&&n.id in i,`Unable to decode prerendered data`);let e=i[n.id];return la(`data`in e,`Unable to process prerendered data`),e.data}}return await oa(n.module.loader,e)}:void 0,action:n.module.action?e=>oa(n.module.action,e):void 0,handle:n.module.handle};return n.index?{index:!0,...i}:{caseSensitive:n.caseSensitive,children:ha(e,t,n.id,r),...i}})}function ga(e){return wr(JSON.stringify(e))}function _a(e,t){return va(e,e=>{let n=t.routes[e.route.id];return la(n,`Route with id "${e.route.id}" not found in build`),n.module.headers})}function va(e,t,n){let r=e.errors?e.matches.findIndex(t=>e.errors[t.route.id]):-1,i=r>=0?e.matches.slice(0,r+1):e.matches,a;if(r>=0){let{actionHeaders:t,actionData:n,loaderHeaders:i,loaderData:o}=e;e.matches.slice(r).some(e=>{let r=e.route.id;return t[r]&&(!n||!n.hasOwnProperty(r))?a=t[r]:i[r]&&!o.hasOwnProperty(r)&&(a=i[r]),a!=null})}let o=new Headers(n);return i.reduce((n,r,o)=>{let{id:s}=r.route,c=e.loaderHeaders[s]||new Headers,l=e.actionHeaders[s]||new Headers,u=a!=null&&o===i.length-1,d=u&&a!==c&&a!==l,f=t(r);if(f==null){let e=new Headers(n);return d&&Z(a,e),Z(l,e),Z(c,e),e}let p=new Headers(typeof f==`function`?f({loaderHeaders:c,parentHeaders:n,actionHeaders:l,errorHeaders:u?a:void 0}):f);return d&&Z(a,p),Z(l,p),Z(c,p),Z(n,p),p},new Headers(o))}function Z(e,t){let n=e.get(`Set-Cookie`);if(n){let e=(0,Zi.splitCookiesString)(n),r=new Set(t.getSetCookie());e.forEach(e=>{r.has(e)||t.append(`Set-Cookie`,e)})}}var ya=new Set([...Er,304]);async function ba(e,t,n,r,i,a,o){try{let t=new Request(i,{method:r.method,body:r.body,headers:r.headers,signal:r.signal,...r.body?{duplex:`half`}:void 0});return s(await n.query(t,{requestContext:a,skipLoaderErrorBubbling:!0,skipRevalidation:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return s(await e(t))}catch(e){return c(e)}}:void 0}))}catch(e){return c(e)}function s(e){return F(e)?e:l(e)}function c(n){return o(n),Sa(r,e,t,{result:{error:n},headers:new Headers,status:500})}function l(n){let i=_a(n,e);if(Rt(n.statusCode)&&i.has(`Location`))return new Response(null,{status:n.statusCode,headers:i});n.errors&&=(Object.values(n.errors).forEach(e=>{(!k(e)||e.error)&&o(e)}),na(n.errors,t));let a;return a=n.errors?{error:Object.values(n.errors)[0]}:{data:Object.values(n.actionData||{})[0]},Sa(r,e,t,{result:a,headers:i,status:n.statusCode})}}async function xa(e,t,n,r,i,a,o){let s=new URL(r.url).searchParams.get(`_routes`),c=s?new Set(s.split(`,`)):null;try{let t=new Request(i,{headers:r.headers,signal:r.signal});return l(await n.query(t,{requestContext:a,filterMatchesToLoad:e=>!c||c.has(e.route.id),skipLoaderErrorBubbling:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return l(await e(t))}catch(e){return u(e)}}:void 0}))}catch(e){return u(e)}function l(e){return F(e)?e:d(e)}function u(n){return o(n),Sa(r,e,t,{result:{error:n},headers:new Headers,status:500})}function d(n){let i=_a(n,e);if(Rt(n.statusCode)&&i.has(`Location`))return new Response(null,{status:n.statusCode,headers:i});n.errors&&=(Object.values(n.errors).forEach(e=>{(!k(e)||e.error)&&o(e)}),na(n.errors,t));let a={},s=new Set(n.matches.filter(e=>c?c.has(e.route.id):e.route.loader!=null).map(e=>e.route.id));if(n.errors)for(let[e,t]of Object.entries(n.errors))a[e]={error:t};for(let[e,t]of Object.entries(n.loaderData))!(e in a)&&s.has(e)&&(a[e]={data:t});return Sa(r,e,t,{result:a,headers:i,status:n.statusCode})}}function Sa(e,t,n,{result:r,headers:i,status:a}){let o=new Headers(i);return o.set(`X-Remix-Response`,`yes`),ya.has(a)?new Response(null,{status:a,headers:o}):(o.set(`Content-Type`,`text/x-script`),o.delete(`Content-Length`),new Response(Ta(r,e.signal,t.entry.module.streamTimeout,n),{status:a||200,headers:o}))}function Ca(e,t,n,r){let i=wa(e.status,e.headers,n.basename),a=new Headers(e.headers);return a.delete(`Location`),a.set(`Content-Type`,`text/x-script`),Sa(t,n,r,{result:t.method===`GET`?{[Y]:i}:i,headers:a,status:202})}function wa(e,t,n){let r=t.get(`Location`);return n&&(r=E(r,n)||r),{redirect:r,status:e,revalidate:t.has(`X-Remix-Revalidate`)||t.has(`Set-Cookie`),reload:t.has(`X-Remix-Reload-Document`),replace:t.has(`X-Remix-Replace`)}}function Ta(e,t,n,r){let i=new AbortController,a=setTimeout(()=>i.abort(Error(`Server Timeout`)),typeof n==`number`?n:4950);return t.addEventListener(`abort`,()=>clearTimeout(a)),xr(e,{signal:i.signal,plugins:[e=>{if(e instanceof Error){let{name:t,message:n,stack:i}=r===`production`?ta(e,r):e;return[`SanitizedError`,t,n,i]}if(e instanceof O){let{data:t,status:n,statusText:r}=e;return[`ErrorResponse`,t,n,r]}if(e&&typeof e==`object`&&Y in e)return[`SingleFetchRedirect`,e[Y]]}],postPlugins:[e=>{if(e&&typeof e==`object`)return[`SingleFetchClassInstance`,Object.fromEntries(Object.entries(e))]},()=>[`SingleFetchFallback`]]})}function Ea(e,t){let n=ma(e.routes),r=ha(e.routes,e.future),i=ea(t)?t:`production`,a=ot(r,{basename:e.basename,unstable_instrumentations:e.entry.module.unstable_instrumentations}),o=e.entry.module.handleError||((e,{request:t})=>{i!==`test`&&!t.signal.aborted&&console.error(k(e)&&e.error?e.error:e)}),s=async(r,s)=>{let c={},l,u=e=>{t===`development`&&da()?.processRequestError?.(e),o(e,{context:l,params:c,request:r})};if(e.future.v8_middleware){if(s&&!(s instanceof S)){let e=Error("Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function.");return u(e),Na(e,i)}l=s||new S}else l=s||{};let d=new URL(r.url),f=e.basename||`/`,p=d.pathname;E(p,f)===`/_root.data`?p=f:p.endsWith(`.data`)&&(p=p.replace(/\.data$/,``)),E(p,f)!==`/`&&p.endsWith(`/`)&&(p=p.slice(0,-1));let m=fa(r,`X-React-Router-SPA-Mode`)===`yes`;if(!e.ssr){let t=decodeURI(p);if(f!==`/`){let e=E(t,f);if(e==null)return o(new O(404,`Not Found`,`Refusing to prerender the \`${t}\` path because it does not start with the basename \`${f}\``),{context:l,params:c,request:r}),new Response(`Not Found`,{status:404,statusText:`Not Found`});t=e}if(e.prerender.length===0)m=!0;else if(!e.prerender.includes(t)&&!e.prerender.includes(t+`/`)){if(d.pathname.endsWith(`.data`))return o(new O(404,`Not Found`,`Refusing to SSR the path \`${t}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`),{context:l,params:c,request:r}),new Response(`Not Found`,{status:404,statusText:`Not Found`});m=!0}}let h=Jr(e.routeDiscovery.manifestPath,f);if(d.pathname===h)try{return await Oa(e,n,d)}catch(e){return u(e),new Response(`Unknown Server Error`,{status:500})}let g=aa(n,p,e.basename);g&&g.length>0&&Object.assign(c,g[0].params);let _;if(d.pathname.endsWith(`.data`)){let t=new URL(r.url);t.pathname=p;let o=aa(n,t.pathname,e.basename);_=await ka(i,e,a,r,t,l,u),zt(_)&&(_=Ca(_,r,e,i)),e.entry.module.handleDataRequest&&(_=await e.entry.module.handleDataRequest(_,{context:l,params:o?o[0].params:{},request:r}),zt(_)&&(_=Ca(_,r,e,i)))}else if(!m&&g&&g[g.length-1].route.module.default==null&&g[g.length-1].route.module.ErrorBoundary==null)_=await ja(i,e,a,g.slice(-1)[0].route.id,r,l,u);else{let{pathname:n}=d,o;e.unstable_getCriticalCss?o=await e.unstable_getCriticalCss({pathname:n}):t===`development`&&da()?.getCriticalCss&&(o=await da()?.getCriticalCss?.(n)),_=await Aa(i,e,a,r,l,u,m,o)}return r.method===`HEAD`?new Response(null,{headers:_.headers,status:_.status,statusText:_.statusText}):_};return e.entry.module.unstable_instrumentations&&(s=Be(s,e.entry.module.unstable_instrumentations.map(e=>e.handler).filter(Boolean))),{routes:n,dataRoutes:r,serverMode:i,staticHandler:a,errorHandler:o,requestHandler:s}}var Da=(e,t)=>{let n,r,i,a,o,s;return async function(c,l){if(n=typeof e==`function`?await e():e,typeof e==`function`){let e=Ea(n,t);r=e.routes,i=e.serverMode,a=e.staticHandler,o=e.errorHandler,s=e.requestHandler}else if(!r||!i||!a||!o||!s){let e=Ea(n,t);r=e.routes,i=e.serverMode,a=e.staticHandler,o=e.errorHandler,s=e.requestHandler}return s(c,l)}};async function Oa(e,t,n){if(e.assets.version!==n.searchParams.get(`version`))return new Response(null,{status:204,headers:{"X-Remix-Reload-Document":`true`}});let r={};if(n.searchParams.has(`paths`)){let i=new Set;(n.searchParams.get(`paths`)||``).split(`,`).filter(Boolean).forEach(e=>{e.startsWith(`/`)||(e=`/${e}`);let t=e.split(`/`).slice(1);t.forEach((e,n)=>{let r=t.slice(0,n+1).join(`/`);i.add(`/${r}`)})});for(let n of i){let i=aa(t,n,e.basename);if(i)for(let t of i){let n=t.route.id,i=e.assets.routes[n];i&&(r[n]=i)}}return Response.json(r,{headers:{"Cache-Control":`public, max-age=31536000, immutable`}})}return new Response(`Invalid Request`,{status:400})}async function ka(e,t,n,r,i,a,o){return r.method===`GET`?await xa(t,e,n,r,i,a,o):await ba(t,e,n,r,i,a,o)}async function Aa(e,t,n,r,i,a,o,s){try{let e=await n.query(r,{requestContext:i,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{let t=await e(r);return F(t)||(t=await c(t,o)),t}catch(e){return a(e),new Response(null,{status:500})}}:void 0});return F(e)||(e=await c(e,o)),e}catch(e){return a(e),new Response(null,{status:500})}async function c(o,c){let l=_a(o,t);if(ya.has(o.statusCode))return new Response(null,{status:o.statusCode,headers:l});o.errors&&=(Object.values(o.errors).forEach(e=>{(!k(e)||e.error)&&a(e)}),na(o.errors,e));let u={loaderData:o.loaderData,actionData:o.actionData,errors:ia(o.errors,e)},d={basename:t.basename,future:t.future,routeDiscovery:t.routeDiscovery,ssr:t.ssr,isSpaMode:c},f={manifest:t.assets,routeModules:$i(t.routes),staticHandlerContext:o,criticalCss:s,serverHandoffString:ga({...d,criticalCss:s}),serverHandoffStream:Ta(u,r.signal,t.entry.module.streamTimeout,e),renderMeta:{},future:t.future,ssr:t.ssr,routeDiscovery:t.routeDiscovery,isSpaMode:c,serializeError:t=>ra(t,e)},p=t.entry.module.default;try{return await p(r,o.statusCode,l,f,i)}catch(s){a(s);let c=s;if(F(s))try{let e=await Pa(s);c=new O(s.status,s.statusText,e)}catch{}o=st(n.dataRoutes,o,c),o.errors&&=na(o.errors,e);let u={loaderData:o.loaderData,actionData:o.actionData,errors:ia(o.errors,e)};f={...f,staticHandlerContext:o,serverHandoffString:ga(d),serverHandoffStream:Ta(u,r.signal,t.entry.module.streamTimeout,e),renderMeta:{}};try{return await p(r,o.statusCode,l,f,i)}catch(t){return a(t),Na(t,e)}}}}async function ja(e,t,n,r,i,a,o){try{return s(await n.queryRoute(i,{routeId:r,requestContext:a,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{return s(await e(i))}catch(e){return c(e)}}:void 0}))}catch(e){return c(e)}function s(e){return F(e)?e:typeof e==`string`?new Response(e):Response.json(e)}function c(t){if(F(t))return t;if(k(t))return o(t),Ma(t,e);if(t instanceof Error&&t.message===`Expected a response from queryRoute`){let t=Error(`Expected a Response to be returned from resource route handler`);return o(t),Na(t,e)}return o(t),Na(t,e)}}function Ma(e,t){return Response.json(ra(e.error||Error(`Unexpected Server Error`),t),{status:e.status,statusText:e.statusText})}function Na(e,t){let n=`Unexpected Server Error`;return t!==`production`&&(n+=`
|
|
34
|
+
|
|
35
|
+
${String(e)}`),new Response(n,{status:500,headers:{"Content-Type":`text/plain`}})}function Pa(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}function Fa(e,...t){let n=t[0],r=e.replace(/\/*\*?$/,``).replace(/\/:([\w-]+)(\?)?/g,(t,r,i)=>{let a=i===void 0,o=n?n[r]:void 0;if(a&&o===void 0)throw Error(`Path '${e}' requires param '${r}' but it was not provided`);return o===void 0?``:`/`+o});if(e.endsWith(`*`)){let e=n?n[`*`]:void 0;e!==void 0&&(r+=`/`+e)}return r||`/`}new TextEncoder,l.use;async function Ia(e,t){let n=e.getReader(),r=t;try{for(;;){let{done:e,value:i}=await n.read();if(e){t.end();break}t.write(i),typeof r.flush==`function`&&r.flush()}}catch(e){throw t.destroy(e),e}}var La=e=>{let t=new Ra(e);return new ReadableStream(t,t)},Ra=class{highWaterMark;accumulatedSize;stream;controller;constructor(e){this.highWaterMark=e.readableHighWaterMark||new a.Readable().readableHighWaterMark,this.accumulatedSize=0,this.stream=e,this.enqueue=this.enqueue.bind(this),this.error=this.error.bind(this),this.close=this.close.bind(this)}size(e){return e?.byteLength||0}start(e){this.controller=e,this.stream.on(`data`,this.enqueue),this.stream.once(`error`,this.error),this.stream.once(`end`,this.close),this.stream.once(`close`,this.close)}pull(){this.resume()}cancel(e){this.stream.destroy&&this.stream.destroy(e),this.stream.off(`data`,this.enqueue),this.stream.off(`error`,this.error),this.stream.off(`end`,this.close),this.stream.off(`close`,this.close)}enqueue(e){if(this.controller)try{let t=e instanceof Uint8Array?e:Buffer.from(e),n=(this.controller.desiredSize||0)-t.byteLength;this.controller.enqueue(t),n<=0&&this.pause()}catch{this.controller.error(Error(`Could not create Buffer, chunk must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object`)),this.cancel()}}pause(){this.stream.pause&&this.stream.pause()}resume(){this.stream.readable&&this.stream.resume&&this.stream.resume()}close(){this.controller&&(this.controller.close(),delete this.controller)}error(e){this.controller&&(this.controller.error(e),delete this.controller)}},za=n(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),Ba=t({createSupportsColor:()=>Wa,default:()=>qa});function Q(e,t=globalThis.Deno?globalThis.Deno.args:o.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}function Va(){if(!(`FORCE_COLOR`in $))return;if($.FORCE_COLOR===`true`)return 1;if($.FORCE_COLOR===`false`)return 0;if($.FORCE_COLOR.length===0)return 1;let e=Math.min(Number.parseInt($.FORCE_COLOR,10),3);if([0,1,2,3].includes(e))return e}function Ha(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ua(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=Va();r!==void 0&&(Ga=r);let i=n?Ga:r;if(i===0)return 0;if(n){if(Q(`color=16m`)||Q(`color=full`)||Q(`color=truecolor`))return 3;if(Q(`color=256`))return 2}if(`TF_BUILD`in $&&`AGENT_NAME`in $)return 1;if(e&&!t&&i===void 0)return 0;let a=i||0;if($.TERM===`dumb`)return a;if(o.platform===`win32`){let e=s.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in $)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in $)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in $)||$.CI_NAME===`codeship`?1:a;if(`TEAMCITY_VERSION`in $)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($.TEAMCITY_VERSION)?1:0;if($.COLORTERM===`truecolor`||$.TERM===`xterm-kitty`||$.TERM===`xterm-ghostty`||$.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in $){let e=Number.parseInt(($.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch($.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test($.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($.TERM)||`COLORTERM`in $?1:a}function Wa(e,t={}){return Ha(Ua(e,{streamIsTTY:e&&e.isTTY,...t}))}var $,Ga,Ka,qa,Ja=r((()=>{({env:$}=o),Q(`no-color`)||Q(`no-colors`)||Q(`color=false`)||Q(`color=never`)?Ga=0:(Q(`color`)||Q(`colors`)||Q(`color=true`)||Q(`color=always`))&&(Ga=1),Ka={stdout:Wa({isTTY:c.isatty(1)}),stderr:Wa({isTTY:c.isatty(2)})},qa=Ka}));const Ya=b();export{hn as C,Di as D,yn as E,Mn as O,Qt as S,xn as T,Pe as _,La as a,vn as b,Da as c,ni as d,oi as f,Si as g,ui as h,za as i,Fa as l,S as m,Ja as n,Ia as o,kn as p,Ba as r,Qi as s,Ya as t,yi as u,k as v,gn as w,U as x,Fe as y};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import{c as e,n as t,t as n}from"./react-CFQ4y0AA.js";import{t as r}from"./react-dom-Ca1YUVo2.js";const i=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);d(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)};var a={};const o=(e,t,n,r)=>{d(n)&&a[n]||(d(n)&&(a[n]=new Date),i(e,t,n,r))};var s=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}};const c=(e,t,n)=>{e.loadNamespaces(t,s(e,n))},l=(e,t,n,r)=>{if(d(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return c(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,s(e,r))},u=(e,t,n={})=>!t.languages||!t.languages.length?(o(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),d=e=>typeof e==`string`,f=e=>typeof e==`object`&&!!e;var p=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,m={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},h=e=>m[e],g={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(p,h)};const _=()=>g;var v;const y=()=>v;var b=n();const x=(0,b.createContext)();var S=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},C=t((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),w=t((e=>{process.env.NODE_ENV!==`production`&&function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function r(e,t){f||o.startTransition===void 0||(f=!0,console.error(`You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.`));var n=t();if(!p){var r=t();s(n,r)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),p=!0)}r=c({inst:{value:n,getSnapshot:t}});var a=r[0].inst,m=r[1];return u(function(){a.value=n,a.getSnapshot=t,i(a)&&m({inst:a})},[e,n,t]),l(function(){return i(a)&&m({inst:a}),e(function(){i(a)&&m({inst:a})})},[e]),d(n),n}function i(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!s(e,n)}catch{return!0}}function a(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=n(),s=typeof Object.is==`function`?Object.is:t,c=o.useState,l=o.useEffect,u=o.useLayoutEffect,d=o.useDebugValue,f=!1,p=!1,m=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?a:r;e.useSyncExternalStore=o.useSyncExternalStore===void 0?m:o.useSyncExternalStore,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()})),T=t(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=C():t.exports=w()})),ee=T(),te={t:(e,t)=>d(t)?t:f(t)&&d(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},ne=()=>()=>{};const E=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,b.useContext)(x)||{},a=n||r||y();a&&!a.reportNamespaces&&(a.reportNamespaces=new S),a||o(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next`);let s=(0,b.useMemo)(()=>({..._(),...a?.options?.react,...t}),[a,t]),{useSuspense:f,keyPrefix:p}=s,m=(0,b.useMemo)(()=>{let t=e||i||a?.options?.defaultNS;return d(t)?[t]:t||[`translation`]},[e,i,a]);a?.reportNamespaces?.addUsedNamespaces?.(m);let h=(0,b.useRef)(0),g=(0,b.useCallback)(e=>{if(!a)return ne;let{bindI18n:t,bindI18nStore:n}=s,r=()=>{h.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,s]),v=(0,b.useRef)(),C=(0,b.useCallback)(()=>{if(!a)return te;let e=!!(a.isInitialized||a.initializedStoreOnce)&&m.every(e=>u(e,a,s)),n=t.lng||a.language,r=h.current,i=v.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===p&&i.revision===r)return i;let o={t:a.getFixedT(n,s.nsMode===`fallback`?m:m[0],p),ready:e,lng:n,keyPrefix:p,revision:r};return v.current=o,o},[a,m,p,s,t.lng]),[w,T]=(0,b.useState)(0),{t:E,ready:D}=(0,ee.useSyncExternalStore)(g,C,C);(0,b.useEffect)(()=>{if(a&&!D&&!f){let e=()=>T(e=>e+1);t.lng?l(a,t.lng,m,e):c(a,m,e)}},[a,t.lng,m,D,f,w]);let O=a||{},k=(0,b.useMemo)(()=>{let e=Object.create(Object.getPrototypeOf(O),Object.getOwnPropertyDescriptors(O));Object.defineProperty(e,`__original`,{value:O,writable:!1,enumerable:!1,configurable:!1});let t=[E,e,D];return t.t=E,t.i18n=e,t.ready=D,t},[E,O,D,O.resolvedLanguage,O.language,O.languages]);if(a&&f&&!D)throw new Promise(e=>{let n=()=>e();t.lng?l(a,t.lng,m,n):c(a,m,n)});return k};var D=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),O=t((e=>{process.env.NODE_ENV!==`production`&&function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===E?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case ne:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ee:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case te:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function r(e){return``+e}function i(e){try{r(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),r(e)}}function a(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===te)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function o(){var e=D.A;return e===null?null:e.getOwner()}function s(){return Error(`react-stack-top-frame`)}function c(e){if(O.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function l(e,t){function n(){j||(j=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function u(){var e=t(this.type);return re[e]||(re[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function d(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:u}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,n,r,a,s,u){var f=n.children;if(f!==void 0)if(a)if(k(f)){for(a=0;a<f.length;a++)p(f[a]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else p(f);if(O.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});a=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,M[f+a]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
+
let props = %s;
|
|
3
|
+
<%s {...props} />
|
|
4
|
+
React keys must be passed directly to JSX without using spread:
|
|
5
|
+
let props = %s;
|
|
6
|
+
<%s key={someKey} {...props} />`,a,f,m,f),M[f+a]=!0)}if(f=null,r!==void 0&&(i(r),f=``+r),c(n)&&(i(n.key),f=``+n.key),`key`in n)for(var h in r={},n)h!==`key`&&(r[h]=n[h]);else r=n;return f&&l(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e),d(e,f,r,o(),s,u)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===te&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=n(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),ee=Symbol.for(`react.memo`),te=Symbol.for(`react.lazy`),ne=Symbol.for(`react.activity`),E=Symbol.for(`react.client.reference`),D=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=Object.prototype.hasOwnProperty,k=Array.isArray,A=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var j,re={},ie=h.react_stack_bottom_frame.bind(h,s)(),ae=A(a(s)),M={};e.Fragment=v,e.jsx=function(e,t,n){var r=1e4>D.recentlyCreatedOwnerStacks++;return f(e,t,n,!1,r?Error(`react-stack-top-frame`):ie,r?A(a(e)):ae)},e.jsxs=function(e,t,n){var r=1e4>D.recentlyCreatedOwnerStacks++;return f(e,t,n,!0,r?Error(`react-stack-top-frame`):ie,r?A(a(e)):ae)}}()})),k=t(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=D():t.exports=O()})),A=t((e=>{var t=n().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;e.c=function(e){return t.H.useMemoCache(e)}})),j=t((e=>{process.env.NODE_ENV!==`production`&&function(){var t=n().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;e.c=function(e){var n=t.H;return n===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
7
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
8
|
+
2. You might be breaking the Rules of Hooks
|
|
9
|
+
3. You might have more than one copy of React in the same app
|
|
10
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n.useMemoCache(e)}}()})),re=t(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=A():t.exports=j()})),ie=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ae=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),M=e=>{let t=ae(e);return t.charAt(0).toUpperCase()+t.slice(1)},N=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),P=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},oe={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},se=(0,b.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,b.createElement)(`svg`,{ref:c,...oe,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:N(`lucide`,i),...!a&&!P(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,b.createElement)(e,t)),...Array.isArray(a)?a:[a]])),F=(e,t)=>{let n=(0,b.forwardRef)(({className:n,...r},i)=>(0,b.createElement)(se,{ref:i,iconNode:t,className:N(`lucide-${ie(M(e))}`,`lucide-${e}`,n),...r}));return n.displayName=M(e),n},ce=F(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function le(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function I(...e){return t=>{let n=!1,r=e.map(e=>{let r=le(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():le(e[t],null)}}}}function L(...e){return b.useCallback(I(...e),e)}var R=k();function ue(e){let t=fe(e),n=b.forwardRef((e,n)=>{let{children:r,...i}=e,a=b.Children.toArray(r),o=a.find(he);if(o){let e=o.props.children,r=a.map(t=>t===o?b.Children.count(e)>1?b.Children.only(null):b.isValidElement(e)?e.props.children:null:t);return(0,R.jsx)(t,{...i,ref:n,children:b.isValidElement(e)?b.cloneElement(e,void 0,r):null})}return(0,R.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var de=ue(`Slot`);function fe(e){let t=b.forwardRef((e,t)=>{let{children:n,...r}=e;if(b.isValidElement(n)){let e=_e(n),i=ge(r,n.props);return n.type!==b.Fragment&&(i.ref=t?I(t,e):e),b.cloneElement(n,i)}return b.Children.count(n)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pe=Symbol(`radix.slottable`);function me(e){let t=({children:e})=>(0,R.jsx)(R.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=pe,t}function he(e){return b.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===pe}function ge(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function _e(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ve(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ve(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function ye(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ve(e))&&(r&&(r+=` `),r+=t);return r}var be=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},xe=(e,t)=>({classGroupId:e,validator:t}),Se=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ce=`-`,we=[],Te=`arbitrary..`,Ee=e=>{let t=ke(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Oe(e);let n=e.split(Ce);return De(n,n[0]===``&&n.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?be(i,t):t:i||we}return n[e]||we}}},De=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=De(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Ce):e.slice(t).join(Ce),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Oe=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Te+r:void 0})(),ke=e=>{let{theme:t,classGroups:n}=e;return Ae(n,t)},Ae=(e,t)=>{let n=Se();for(let r in e){let i=e[r];je(i,n,r,t)}return n},je=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Me(i,t,n,r)}},Me=(e,t,n,r)=>{if(typeof e==`string`){Ne(e,t,n);return}if(typeof e==`function`){Pe(e,t,n,r);return}Fe(e,t,n,r)},Ne=(e,t,n)=>{let r=e===``?t:Ie(t,e);r.classGroupId=n},Pe=(e,t,n,r)=>{if(Le(e)){je(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(xe(n,e))},Fe=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];je(o,Ie(t,a),n,r)}},Ie=(e,t)=>{let n=e,r=t.split(Ce),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Se(),n.nextPart.set(t,i)),n=i}return n},Le=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Re=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ze=`!`,Be=`:`,Ve=[],He=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ue=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Be){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(ze)?(c=s.slice(0,-1),l=!0):s.startsWith(ze)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return He(t,l,c,u)};if(t){let e=t+Be,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):He(Ve,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},We=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ge=e=>({cache:Re(e.cacheSize),parseClassName:Ue(e),sortModifiers:We(e),...Ee(e)}),Ke=/\s+/,qe=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(Ke),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+ze:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},Je=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ye(n))&&(i&&(i+=` `),i+=r);return i},Ye=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ye(e[r]))&&(n&&(n+=` `),n+=t);return n},Xe=(e,...t)=>{let n,r,i,a,o=o=>(n=Ge(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=qe(e,n);return i(e,a),a};return a=o,(...e)=>a(Je(...e))},Ze=[],z=e=>{let t=t=>t[e]||Ze;return t.isThemeGetter=!0,t},Qe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$e=/^\((?:(\w[\w-]*):)?(.+)\)$/i,et=/^\d+\/\d+$/,tt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,it=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,at=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>et.test(e),V=e=>!!e&&!Number.isNaN(Number(e)),H=e=>!!e&&Number.isInteger(Number(e)),ot=e=>e.endsWith(`%`)&&V(e.slice(0,-1)),U=e=>tt.test(e),st=()=>!0,ct=e=>nt.test(e)&&!rt.test(e),lt=()=>!1,ut=e=>it.test(e),dt=e=>at.test(e),ft=e=>!W(e)&&!K(e),pt=e=>wt(e,Ot,lt),W=e=>Qe.test(e),G=e=>wt(e,kt,ct),mt=e=>wt(e,At,V),ht=e=>wt(e,Et,lt),gt=e=>wt(e,Dt,dt),_t=e=>wt(e,Mt,ut),K=e=>$e.test(e),vt=e=>Tt(e,kt),yt=e=>Tt(e,jt),bt=e=>Tt(e,Et),xt=e=>Tt(e,Ot),St=e=>Tt(e,Dt),Ct=e=>Tt(e,Mt,!0),wt=(e,t,n)=>{let r=Qe.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Tt=(e,t,n=!1)=>{let r=$e.exec(e);return r?r[1]?t(r[1]):n:!1},Et=e=>e===`position`||e===`percentage`,Dt=e=>e===`image`||e===`url`,Ot=e=>e===`length`||e===`size`||e===`bg-size`,kt=e=>e===`length`,At=e=>e===`number`,jt=e=>e===`family-name`,Mt=e=>e===`shadow`,Nt=Xe(()=>{let e=z(`color`),t=z(`font`),n=z(`text`),r=z(`font-weight`),i=z(`tracking`),a=z(`leading`),o=z(`breakpoint`),s=z(`container`),c=z(`spacing`),l=z(`radius`),u=z(`shadow`),d=z(`inset-shadow`),f=z(`text-shadow`),p=z(`drop-shadow`),m=z(`blur`),h=z(`perspective`),g=z(`aspect`),_=z(`ease`),v=z(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),K,W],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[K,W,c],T=()=>[B,`full`,`auto`,...w()],ee=()=>[H,`none`,`subgrid`,K,W],te=()=>[`auto`,{span:[`full`,H,K,W]},H,K,W],ne=()=>[H,`auto`,K,W],E=()=>[`auto`,`min`,`max`,`fr`,K,W],D=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],O=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],A=()=>[B,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,K,W],re=()=>[...b(),bt,ht,{position:[K,W]}],ie=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ae=()=>[`auto`,`cover`,`contain`,xt,pt,{size:[K,W]}],M=()=>[ot,vt,G],N=()=>[``,`none`,`full`,l,K,W],P=()=>[``,V,vt,G],oe=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],F=()=>[V,ot,bt,ht],ce=()=>[``,`none`,m,K,W],le=()=>[`none`,V,K,W],I=()=>[`none`,V,K,W],L=()=>[V,K,W],R=()=>[B,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[U],breakpoint:[U],color:[st],container:[U],"drop-shadow":[U],ease:[`in`,`out`,`in-out`],font:[ft],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[U],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[U],shadow:[U],spacing:[`px`,V],text:[U],"text-shadow":[U],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,B,W,K,g]}],container:[`container`],columns:[{columns:[V,W,K,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[H,`auto`,K,W]}],basis:[{basis:[B,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[V,B,`auto`,`initial`,`none`,W]}],grow:[{grow:[``,V,K,W]}],shrink:[{shrink:[``,V,K,W]}],order:[{order:[H,`first`,`last`,`none`,K,W]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...D(),`normal`]}],"justify-items":[{"justify-items":[...O(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...O()]}],"align-content":[{content:[`normal`,...D()]}],"align-items":[{items:[...O(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...O(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...O(),`baseline`]}],"place-self":[{"place-self":[`auto`,...O()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,...A()]}],"font-size":[{text:[`base`,n,vt,G]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,K,mt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ot,W]}],"font-family":[{font:[yt,W,t]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,K,W]}],"line-clamp":[{"line-clamp":[V,`none`,K,mt]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,K,W]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,K,W]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...oe(),`wavy`]}],"text-decoration-thickness":[{decoration:[V,`from-font`,`auto`,K,G]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[V,`auto`,K,W]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,K,W]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,K,W]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:ie()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},H,K,W],radial:[``,K,W],conic:[H,K,W]},St,gt]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...oe(),`hidden`,`none`]}],"divide-style":[{divide:[...oe(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...oe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[V,K,W]}],"outline-w":[{outline:[``,V,vt,G]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,Ct,_t]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ct,_t]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[V,G]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,Ct,_t]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[V,K,W]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[V]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[K,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[V]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:ie()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,K,W]}],filter:[{filter:[``,`none`,K,W]}],blur:[{blur:ce()}],brightness:[{brightness:[V,K,W]}],contrast:[{contrast:[V,K,W]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ct,_t]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,V,K,W]}],"hue-rotate":[{"hue-rotate":[V,K,W]}],invert:[{invert:[``,V,K,W]}],saturate:[{saturate:[V,K,W]}],sepia:[{sepia:[``,V,K,W]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,K,W]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[V,K,W]}],"backdrop-contrast":[{"backdrop-contrast":[V,K,W]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,V,K,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,K,W]}],"backdrop-invert":[{"backdrop-invert":[``,V,K,W]}],"backdrop-opacity":[{"backdrop-opacity":[V,K,W]}],"backdrop-saturate":[{"backdrop-saturate":[V,K,W]}],"backdrop-sepia":[{"backdrop-sepia":[``,V,K,W]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,K,W]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[V,`initial`,K,W]}],ease:[{ease:[`linear`,`initial`,_,K,W]}],delay:[{delay:[V,K,W]}],animate:[{animate:[`none`,v,K,W]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,K,W]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:I()}],"scale-x":[{"scale-x":I()}],"scale-y":[{"scale-y":I()}],"scale-z":[{"scale-z":I()}],"scale-3d":[`scale-3d`],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[K,W,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:R()}],"translate-x":[{"translate-x":R()}],"translate-y":[{"translate-y":R()}],"translate-z":[{"translate-z":R()}],"translate-none":[`translate-none`],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,K,W]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,K,W]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[V,vt,G,mt]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Pt(...e){return Nt(ye(e))}function Ft(e){let t=e.trim().split(` `);return t.length===0?``:t.length===1?t[0].charAt(0).toUpperCase():t[0].charAt(0).toUpperCase()+t[t.length-1].charAt(0).toUpperCase()}var It=e(r(),1),q=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=ue(`Primitive.${t}`),r=b.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,R.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Lt(e,t){e&&It.flushSync(()=>e.dispatchEvent(t))}function Rt(e,t){let n=b.createContext(t),r=e=>{let{children:t,...r}=e,i=b.useMemo(()=>r,Object.values(r));return(0,R.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=b.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function zt(e,t=[]){let n=[];function r(t,r){let i=b.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=b.useMemo(()=>o,Object.values(o));return(0,R.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=b.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>b.createContext(e));return function(n){let r=n?.[e]||t;return b.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Bt(i,...t)]}function Bt(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}typeof window<`u`&&window.document&&window.document.createElement;function J(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var Vt=globalThis?.document?b.useLayoutEffect:()=>{},Ht=b.useInsertionEffect||Vt;function Ut({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Wt({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=b.useRef(e!==void 0);b.useEffect(()=>{let e=t.current;if(e!==s){let t=e?`controlled`:`uncontrolled`,n=s?`controlled`:`uncontrolled`;console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}return[c,b.useCallback(t=>{if(s){let n=Gt(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Wt({defaultProp:e,onChange:t}){let[n,r]=b.useState(e),i=b.useRef(n),a=b.useRef(t);return Ht(()=>{a.current=t},[t]),b.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Gt(e){return typeof e==`function`}function Kt(e,t){return b.useReducer((e,n)=>t[e][n]??e,e)}var qt=e=>{let{present:t,children:n}=e,r=Jt(t),i=typeof n==`function`?n({present:r.isPresent}):b.Children.only(n),a=L(r.ref,Xt(i));return typeof n==`function`||r.isPresent?b.cloneElement(i,{ref:a}):null};qt.displayName=`Presence`;function Jt(e){let[t,n]=b.useState(),r=b.useRef(null),i=b.useRef(e),a=b.useRef(`none`),[o,s]=Kt(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return b.useEffect(()=>{let e=Yt(r.current);a.current=o===`mounted`?e:`none`},[o]),Vt(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Yt(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Vt(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Yt(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Yt(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:b.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function Yt(e){return e?.animationName||`none`}function Xt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zt=b.useId||(()=>void 0),Qt=0;function $t(e){let[t,n]=b.useState(Zt());return Vt(()=>{e||n(e=>e??String(Qt++))},[e]),e||(t?`radix-${t}`:``)}function en(e){let t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...e)=>t.current?.(...e),[])}function tn(e,t=globalThis?.document){let n=en(e);b.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var nn=`DismissableLayer`,rn=`dismissableLayer.update`,an=`dismissableLayer.pointerDownOutside`,on=`dismissableLayer.focusOutside`,sn,cn=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ln=b.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=b.useContext(cn),[u,d]=b.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=b.useState({}),m=L(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),v=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,x=v>=_,S=fn(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!x||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),C=pn(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return tn(e=>{v===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),b.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(sn=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),mn(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=sn)}},[u,f,n,l]),b.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),mn())},[u,l]),b.useEffect(()=>{let e=()=>p({});return document.addEventListener(rn,e),()=>document.removeEventListener(rn,e)},[]),(0,R.jsx)(q.div,{...c,ref:m,style:{pointerEvents:y?x?`auto`:`none`:void 0,...e.style},onFocusCapture:J(e.onFocusCapture,C.onFocusCapture),onBlurCapture:J(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,S.onPointerDownCapture)})});ln.displayName=nn;var un=`DismissableLayerBranch`,dn=b.forwardRef((e,t)=>{let n=b.useContext(cn),r=b.useRef(null),i=L(t,r);return b.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,R.jsx)(q.div,{...e,ref:i})});dn.displayName=un;function fn(e,t=globalThis?.document){let n=en(e),r=b.useRef(!1),i=b.useRef(()=>{});return b.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){hn(an,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function pn(e,t=globalThis?.document){let n=en(e),r=b.useRef(!1);return b.useEffect(()=>{let e=e=>{e.target&&!r.current&&hn(on,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function mn(){let e=new CustomEvent(rn);document.dispatchEvent(e)}function hn(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Lt(i,a):i.dispatchEvent(a)}var gn=`focusScope.autoFocusOnMount`,_n=`focusScope.autoFocusOnUnmount`,vn={bubbles:!1,cancelable:!0},yn=`FocusScope`,bn=b.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=b.useState(null),l=en(i),u=en(a),d=b.useRef(null),f=L(t,e=>c(e)),p=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Y(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Y(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Y(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),b.useEffect(()=>{if(s){Dn.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(gn,vn);s.addEventListener(gn,l),s.dispatchEvent(t),t.defaultPrevented||(xn(An(Cn(s)),{select:!0}),document.activeElement===e&&Y(s))}return()=>{s.removeEventListener(gn,l),setTimeout(()=>{let t=new CustomEvent(_n,vn);s.addEventListener(_n,u),s.dispatchEvent(t),t.defaultPrevented||Y(e??document.body,{select:!0}),s.removeEventListener(_n,u),Dn.remove(p)},0)}}},[s,l,u,p]);let m=b.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Sn(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Y(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Y(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,R.jsx)(q.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});bn.displayName=yn;function xn(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Y(r,{select:t}),document.activeElement!==n)return}function Sn(e){let t=Cn(e);return[wn(t,e),wn(t.reverse(),e)]}function Cn(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function wn(e,t){for(let n of e)if(!Tn(n,{upTo:t}))return n}function Tn(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function En(e){return e instanceof HTMLInputElement&&`select`in e}function Y(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&En(e)&&t&&e.select()}}var Dn=On();function On(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=kn(e,t),e.unshift(t)},remove(t){e=kn(e,t),e[0]?.resume()}}}function kn(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function An(e){return e.filter(e=>e.tagName!==`A`)}var jn=e(r(),1),Mn=`Portal`,Nn=b.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=b.useState(!1);Vt(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?jn.createPortal((0,R.jsx)(q.div,{...r,ref:t}),o):null});Nn.displayName=Mn;var Pn=0;function Fn(){b.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??In()),document.body.insertAdjacentElement(`beforeend`,e[1]??In()),Pn++,()=>{Pn===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Pn--}},[])}function In(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var X=function(){return X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},X.apply(this,arguments)};function Ln(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Rn(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var zn=`right-scroll-bar-position`,Bn=`width-before-scroll-bar`,Vn=`with-scroll-bars-hidden`,Hn=`--removed-body-scroll-bar-size`;function Un(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Wn(e,t){var n=(0,b.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Gn=typeof window<`u`?b.useLayoutEffect:b.useEffect,Kn=new WeakMap;function qn(e,t){var n=Wn(t||null,function(t){return e.forEach(function(e){return Un(e,t)})});return Gn(function(){var t=Kn.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Un(e,null)}),i.forEach(function(e){r.has(e)||Un(e,a)})}Kn.set(n,e)},[e]),n}function Jn(e){return e}function Yn(e,t){t===void 0&&(t=Jn);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Xn(e){e===void 0&&(e={});var t=Yn(null);return t.options=X({async:!0,ssr:!1},e),t}var Zn=function(e){var t=e.sideCar,n=Ln(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return b.createElement(r,X({},n))};Zn.isSideCarExport=!0;function Qn(e,t){return e.useMedium(t),Zn}var $n=Xn(),er=function(){},tr=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:er,onWheelCapture:er,onTouchMoveCapture:er}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,x=Ln(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=qn([n,t]),w=X(X({},x),i);return b.createElement(b.Fragment,null,u&&b.createElement(S,{sideCar:$n,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?b.cloneElement(b.Children.only(s),X(X({},w),{ref:C})):b.createElement(v,X({},w,{className:c,ref:C}),s))});tr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tr.classNames={fullWidth:Bn,zeroRight:zn};var nr,rr=function(){if(nr)return nr;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function ir(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=rr();return t&&e.setAttribute(`nonce`,t),e}function ar(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function or(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var sr=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ir())&&(ar(t,n),or(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cr=function(){var e=sr();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},lr=function(){var e=cr();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},ur={left:0,top:0,right:0,gap:0},dr=function(e){return parseInt(e||``,10)||0},fr=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[dr(n),dr(r),dr(i)]},pr=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return ur;var t=fr(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},mr=lr(),hr=`data-scroll-locked`,gr=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
11
|
+
.${Vn} {
|
|
12
|
+
overflow: hidden ${r};
|
|
13
|
+
padding-right: ${s}px ${r};
|
|
14
|
+
}
|
|
15
|
+
body[${hr}] {
|
|
16
|
+
overflow: hidden ${r};
|
|
17
|
+
overscroll-behavior: contain;
|
|
18
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
19
|
+
padding-left: ${i}px;
|
|
20
|
+
padding-top: ${a}px;
|
|
21
|
+
padding-right: ${o}px;
|
|
22
|
+
margin-left:0;
|
|
23
|
+
margin-top:0;
|
|
24
|
+
margin-right: ${s}px ${r};
|
|
25
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.${zn} {
|
|
29
|
+
right: ${s}px ${r};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.${Bn} {
|
|
33
|
+
margin-right: ${s}px ${r};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.${zn} .${zn} {
|
|
37
|
+
right: 0 ${r};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.${Bn} .${Bn} {
|
|
41
|
+
margin-right: 0 ${r};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
body[${hr}] {
|
|
45
|
+
${Hn}: ${s}px;
|
|
46
|
+
}
|
|
47
|
+
`},_r=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},vr=function(){b.useEffect(function(){return document.body.setAttribute(hr,(_r()+1).toString()),function(){var e=_r()-1;e<=0?document.body.removeAttribute(hr):document.body.setAttribute(hr,e.toString())}},[])},yr=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;vr();var a=b.useMemo(function(){return pr(i)},[i]);return b.createElement(mr,{styles:gr(a,!t,i,n?``:`!important`)})},br=!1;if(typeof window<`u`)try{var xr=Object.defineProperty({},`passive`,{get:function(){return br=!0,!0}});window.addEventListener(`test`,xr,xr),window.removeEventListener(`test`,xr,xr)}catch{br=!1}var Sr=br?{passive:!1}:!1,Cr=function(e){return e.tagName===`TEXTAREA`},wr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Cr(e)&&n[t]===`visible`)},Tr=function(e){return wr(e,`overflowY`)},Er=function(e){return wr(e,`overflowX`)},Dr=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Ar(e,r)){var i=jr(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Or=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},kr=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Ar=function(e,t){return e===`v`?Tr(t):Er(t)},jr=function(e,t){return e===`v`?Or(t):kr(t)},Mr=function(e,t){return e===`h`&&t===`rtl`?-1:1},Nr=function(e,t,n,r,i){var a=Mr(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=jr(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Ar(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Pr=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fr=function(e){return[e.deltaX,e.deltaY]},Ir=function(e){return e&&`current`in e?e.current:e},Lr=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Rr=function(e){return`
|
|
48
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
49
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
50
|
+
`},zr=0,Br=[];function Vr(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),i=b.useState(zr++)[0],a=b.useState(lr)[0],o=b.useRef(e);b.useEffect(function(){o.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Rn([e.lockRef.current],(e.shards||[]).map(Ir),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=b.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Pr(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=Dr(d,u);if(!f)return!0;if(f?l=d:(l=d===`v`?`h`:`v`,f=Dr(d,u)),!f)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var p=r.current||l;return Nr(p,t,e,p===`h`?s:c,!0)},[]),c=b.useCallback(function(e){var n=e;if(!(!Br.length||Br[Br.length-1]!==a)){var r=`deltaY`in n?Fr(n):Pr(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Lr(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Ir).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=b.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Hr(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=b.useCallback(function(e){n.current=Pr(e),r.current=void 0},[]),d=b.useCallback(function(t){l(t.type,Fr(t),t.target,s(t,e.lockRef.current))},[]),f=b.useCallback(function(t){l(t.type,Pr(t),t.target,s(t,e.lockRef.current))},[]);b.useEffect(function(){return Br.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Sr),document.addEventListener(`touchmove`,c,Sr),document.addEventListener(`touchstart`,u,Sr),function(){Br=Br.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Sr),document.removeEventListener(`touchmove`,c,Sr),document.removeEventListener(`touchstart`,u,Sr)}},[]);var p=e.removeScrollBar,m=e.inert;return b.createElement(b.Fragment,null,m?b.createElement(a,{styles:Rr(i)}):null,p?b.createElement(yr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Hr(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ur=Qn($n,Vr),Wr=b.forwardRef(function(e,t){return b.createElement(tr,X({},e,{ref:t,sideCar:Ur}))});Wr.classNames=tr.classNames;var Gr=Wr,Kr=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},qr=new WeakMap,Jr=new WeakMap,Yr={},Xr=0,Zr=function(e){return e&&(e.host||Zr(e.parentNode))},Qr=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Zr(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},$r=function(e,t,n,r){var i=Qr(t,Array.isArray(e)?e:[e]);Yr[n]||(Yr[n]=new WeakMap);var a=Yr[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(qr.get(e)||0)+1,l=(a.get(e)||0)+1;qr.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Jr.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Xr++,function(){o.forEach(function(e){var t=qr.get(e)-1,i=a.get(e)-1;qr.set(e,t),a.set(e,i),t||(Jr.has(e)||e.removeAttribute(r),Jr.delete(e)),i||e.removeAttribute(n)}),Xr--,Xr||(qr=new WeakMap,qr=new WeakMap,Jr=new WeakMap,Yr={})}},ei=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Kr(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),$r(r,i,n,`aria-hidden`)):function(){return null}},ti=`Dialog`,[ni,ri]=zt(ti),[ii,Z]=ni(ti),ai=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=b.useRef(null),c=b.useRef(null),[l,u]=Ut({prop:r,defaultProp:i??!1,onChange:a,caller:ti});return(0,R.jsx)(ii,{scope:t,triggerRef:s,contentRef:c,contentId:$t(),titleId:$t(),descriptionId:$t(),open:l,onOpenChange:u,onOpenToggle:b.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};ai.displayName=ti;var oi=`DialogTrigger`,si=b.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Z(oi,n),a=L(t,i.triggerRef);return(0,R.jsx)(q.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Ei(i.open),...r,ref:a,onClick:J(e.onClick,i.onOpenToggle)})});si.displayName=oi;var ci=`DialogPortal`,[li,ui]=ni(ci,{forceMount:void 0}),di=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Z(ci,t);return(0,R.jsx)(li,{scope:t,forceMount:n,children:b.Children.map(r,e=>(0,R.jsx)(qt,{present:n||a.open,children:(0,R.jsx)(Nn,{asChild:!0,container:i,children:e})}))})};di.displayName=ci;var fi=`DialogOverlay`,pi=b.forwardRef((e,t)=>{let n=ui(fi,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Z(fi,e.__scopeDialog);return a.modal?(0,R.jsx)(qt,{present:r||a.open,children:(0,R.jsx)(hi,{...i,ref:t})}):null});pi.displayName=fi;var mi=ue(`DialogOverlay.RemoveScroll`),hi=b.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Z(fi,n);return(0,R.jsx)(Gr,{as:mi,allowPinchZoom:!0,shards:[i.contentRef],children:(0,R.jsx)(q.div,{"data-state":Ei(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),Q=`DialogContent`,gi=b.forwardRef((e,t)=>{let n=ui(Q,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Z(Q,e.__scopeDialog);return(0,R.jsx)(qt,{present:r||a.open,children:a.modal?(0,R.jsx)(_i,{...i,ref:t}):(0,R.jsx)(vi,{...i,ref:t})})});gi.displayName=Q;var _i=b.forwardRef((e,t)=>{let n=Z(Q,e.__scopeDialog),r=b.useRef(null),i=L(t,n.contentRef,r);return b.useEffect(()=>{let e=r.current;if(e)return ei(e)},[]),(0,R.jsx)(yi,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:J(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:J(e.onFocusOutside,e=>e.preventDefault())})}),vi=b.forwardRef((e,t)=>{let n=Z(Q,e.__scopeDialog),r=b.useRef(!1),i=b.useRef(!1);return(0,R.jsx)(yi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),yi=b.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Z(Q,n),c=b.useRef(null),l=L(t,c);return Fn(),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(bn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,R.jsx)(ln,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Ei(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Ai,{titleId:s.titleId}),(0,R.jsx)(Mi,{contentRef:c,descriptionId:s.descriptionId})]})]})}),bi=`DialogTitle`,xi=b.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Z(bi,n);return(0,R.jsx)(q.h2,{id:i.titleId,...r,ref:t})});xi.displayName=bi;var Si=`DialogDescription`,Ci=b.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Z(Si,n);return(0,R.jsx)(q.p,{id:i.descriptionId,...r,ref:t})});Ci.displayName=Si;var wi=`DialogClose`,Ti=b.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Z(wi,n);return(0,R.jsx)(q.button,{type:`button`,...r,ref:t,onClick:J(e.onClick,()=>i.onOpenChange(!1))})});Ti.displayName=wi;function Ei(e){return e?`open`:`closed`}var Di=`DialogTitleWarning`,[Oi,ki]=Rt(Di,{contentName:Q,titleName:bi,docsSlug:`dialog`}),Ai=({titleId:e})=>{let t=ki(Di),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
51
|
+
|
|
52
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
53
|
+
|
|
54
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ji=`DialogDescriptionWarning`,Mi=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ki(ji).contentName}}.`;return b.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ni=ai,Pi=si,Fi=di,Ii=pi,Li=gi,Ri=xi,zi=Ci,Bi=Ti,$=re();function Vi(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,R.jsx)(Ni,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function Hi(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,R.jsx)(Fi,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function Ui(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Pt(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,R.jsx)(Ii,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Wi(e){let t=(0,$.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,showCloseButton:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?!0:a,s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,R.jsx)(Ui,{}),t[5]=s):s=t[5];let c;t[6]===r?c=t[7]:(c=Pt(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg`,r),t[6]=r,t[7]=c);let l;t[8]===o?l=t[9]:(l=o&&(0,R.jsxs)(Bi,{"data-slot":`dialog-close`,className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,R.jsx)(ce,{}),(0,R.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[8]=o,t[9]=l);let u;return t[10]!==n||t[11]!==i||t[12]!==c||t[13]!==l?(u=(0,R.jsxs)(Hi,{"data-slot":`dialog-portal`,children:[s,(0,R.jsxs)(Li,{"data-slot":`dialog-content`,className:c,...i,children:[n,l]})]}),t[10]=n,t[11]=i,t[12]=c,t[13]=l,t[14]=u):u=t[14],u}function Gi(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Pt(`flex flex-col gap-2 text-center sm:text-left`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,R.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ki(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Pt(`text-lg leading-none font-semibold`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,R.jsx)(Ri,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function qi(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Pt(`text-muted-foreground text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,R.jsx)(zi,{"data-slot":`dialog-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{Lt as A,F as B,$t as C,J as D,Vt as E,ue as F,x as G,k as H,me as I,I as L,Ft as M,ye as N,zt as O,de as P,L as R,en as S,Ut as T,E as U,re as V,T as W,Gr as _,Ki as a,bn as b,zi as c,Ni as d,Ri as f,ei as g,ri as h,Gi as i,Pt as j,q as k,Ii as l,Oi as m,Wi as n,Bi as o,Pi as p,qi as r,Li as s,Vi as t,Fi as u,Fn as v,qt as w,ln as x,Nn as y,ce as z};
|