@modern-admin/web 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/standalone/assets/{action-component-host-CuzX-99S.js → action-component-host-BrEZDHZt.js} +2 -2
- package/dist/standalone/assets/action-component-host-BrEZDHZt.js.br +0 -0
- package/dist/standalone/assets/action-component-host-BrEZDHZt.js.gz +0 -0
- package/dist/standalone/assets/{action-component-host-CuzX-99S.js.map → action-component-host-BrEZDHZt.js.map} +1 -1
- package/dist/standalone/assets/{action-page-BUTCUZ7e.js → action-page-Bx7kzeK7.js} +2 -2
- package/dist/standalone/assets/action-page-Bx7kzeK7.js.br +0 -0
- package/dist/standalone/assets/action-page-Bx7kzeK7.js.gz +0 -0
- package/dist/standalone/assets/{action-page-BUTCUZ7e.js.map → action-page-Bx7kzeK7.js.map} +1 -1
- package/dist/standalone/assets/{ai-assistant-widget-B3Xy7bCi.js → ai-assistant-widget-BbIXVrSu.js} +2 -2
- package/dist/standalone/assets/ai-assistant-widget-BbIXVrSu.js.br +0 -0
- package/dist/standalone/assets/ai-assistant-widget-BbIXVrSu.js.gz +0 -0
- package/dist/standalone/assets/{ai-assistant-widget-B3Xy7bCi.js.map → ai-assistant-widget-BbIXVrSu.js.map} +1 -1
- package/dist/standalone/assets/{audit-log-page-GHzf7mLS.js → audit-log-page-BoZh23oQ.js} +2 -2
- package/dist/standalone/assets/audit-log-page-BoZh23oQ.js.br +0 -0
- package/dist/standalone/assets/audit-log-page-BoZh23oQ.js.gz +0 -0
- package/dist/standalone/assets/{audit-log-page-GHzf7mLS.js.map → audit-log-page-BoZh23oQ.js.map} +1 -1
- package/dist/standalone/assets/{calendar-DxUwrP2r.js → calendar-nvD_z7KQ.js} +2 -2
- package/dist/standalone/assets/calendar-nvD_z7KQ.js.br +0 -0
- package/dist/standalone/assets/calendar-nvD_z7KQ.js.gz +0 -0
- package/dist/standalone/assets/{calendar-DxUwrP2r.js.map → calendar-nvD_z7KQ.js.map} +1 -1
- package/dist/standalone/assets/{chart-widget-DnK78Joj.js → chart-widget-YeCL7jdB.js} +2 -2
- package/dist/standalone/assets/chart-widget-YeCL7jdB.js.br +0 -0
- package/dist/standalone/assets/chart-widget-YeCL7jdB.js.gz +0 -0
- package/dist/standalone/assets/{chart-widget-DnK78Joj.js.map → chart-widget-YeCL7jdB.js.map} +1 -1
- package/dist/standalone/assets/{command-Df4Effbo.js → command-Sb0xL-se.js} +2 -2
- package/dist/standalone/assets/command-Sb0xL-se.js.br +0 -0
- package/dist/standalone/assets/command-Sb0xL-se.js.gz +0 -0
- package/dist/standalone/assets/{command-Df4Effbo.js.map → command-Sb0xL-se.js.map} +1 -1
- package/dist/standalone/assets/date-picker-C4HcgidQ.js +2 -0
- package/dist/standalone/assets/date-picker-C4HcgidQ.js.br +0 -0
- package/dist/standalone/assets/date-picker-C4HcgidQ.js.gz +0 -0
- package/dist/standalone/assets/date-picker-C4HcgidQ.js.map +1 -0
- package/dist/standalone/assets/{edit-page-C_QYbzrq.js → edit-page-CW7-FAPC.js} +2 -2
- package/dist/standalone/assets/edit-page-CW7-FAPC.js.br +0 -0
- package/dist/standalone/assets/edit-page-CW7-FAPC.js.gz +0 -0
- package/dist/standalone/assets/{edit-page-C_QYbzrq.js.map → edit-page-CW7-FAPC.js.map} +1 -1
- package/dist/standalone/assets/{empty-BQFNUnfh.js → empty-Cposcczv.js} +2 -2
- package/dist/standalone/assets/empty-Cposcczv.js.br +0 -0
- package/dist/standalone/assets/empty-Cposcczv.js.gz +0 -0
- package/dist/standalone/assets/{empty-BQFNUnfh.js.map → empty-Cposcczv.js.map} +1 -1
- package/dist/standalone/assets/{global-search-dialog-DMgCfJpF.js → global-search-dialog-DLv_nIvM.js} +2 -2
- package/dist/standalone/assets/global-search-dialog-DLv_nIvM.js.br +0 -0
- package/dist/standalone/assets/global-search-dialog-DLv_nIvM.js.gz +0 -0
- package/dist/standalone/assets/{global-search-dialog-DMgCfJpF.js.map → global-search-dialog-DLv_nIvM.js.map} +1 -1
- package/dist/standalone/assets/{heavy-fields-Do2qd-Wi.js → heavy-fields-BiCEgD2L.js} +2 -2
- package/dist/standalone/assets/heavy-fields-BiCEgD2L.js.br +0 -0
- package/dist/standalone/assets/heavy-fields-BiCEgD2L.js.gz +0 -0
- package/dist/standalone/assets/{heavy-fields-Do2qd-Wi.js.map → heavy-fields-BiCEgD2L.js.map} +1 -1
- package/dist/standalone/assets/{home-page-eGVeZnKR.js → home-page-BSz1wGk0.js} +3 -3
- package/dist/standalone/assets/home-page-BSz1wGk0.js.br +0 -0
- package/dist/standalone/assets/home-page-BSz1wGk0.js.gz +0 -0
- package/dist/standalone/assets/{home-page-eGVeZnKR.js.map → home-page-BSz1wGk0.js.map} +1 -1
- package/dist/standalone/assets/{icon-registry-BroqBCns.js → icon-registry-BQU4fIc4.js} +2 -2
- package/dist/standalone/assets/icon-registry-BQU4fIc4.js.br +0 -0
- package/dist/standalone/assets/{icon-registry-BroqBCns.js.gz → icon-registry-BQU4fIc4.js.gz} +0 -0
- package/dist/standalone/assets/{icon-registry-BroqBCns.js.map → icon-registry-BQU4fIc4.js.map} +1 -1
- package/dist/standalone/assets/{index-C3MuojaM.js → index-BL8keDxQ.js} +3 -3
- package/dist/standalone/assets/index-BL8keDxQ.js.br +0 -0
- package/dist/standalone/assets/index-BL8keDxQ.js.gz +0 -0
- package/dist/standalone/assets/{index-C3MuojaM.js.map → index-BL8keDxQ.js.map} +1 -1
- package/dist/standalone/assets/{json-editor-BQLKoybQ.js → json-editor-CAIgxYb3.js} +2 -2
- package/dist/standalone/assets/json-editor-CAIgxYb3.js.br +0 -0
- package/dist/standalone/assets/json-editor-CAIgxYb3.js.gz +0 -0
- package/dist/standalone/assets/{json-editor-BQLKoybQ.js.map → json-editor-CAIgxYb3.js.map} +1 -1
- package/dist/standalone/assets/{property-renderer--LvNtRJE.js → property-renderer-B8Md-EqW.js} +4 -4
- package/dist/standalone/assets/property-renderer-B8Md-EqW.js.br +0 -0
- package/dist/standalone/assets/property-renderer-B8Md-EqW.js.gz +0 -0
- package/dist/standalone/assets/property-renderer-B8Md-EqW.js.map +1 -0
- package/dist/standalone/assets/{reference-UuQ6Jts1.js → reference-WPaf6IdD.js} +2 -2
- package/dist/standalone/assets/reference-WPaf6IdD.js.br +0 -0
- package/dist/standalone/assets/reference-WPaf6IdD.js.gz +0 -0
- package/dist/standalone/assets/{reference-UuQ6Jts1.js.map → reference-WPaf6IdD.js.map} +1 -1
- package/dist/standalone/assets/{revisions-button-DHcQjj4r.js → revisions-button-0WtL6bsZ.js} +2 -2
- package/dist/standalone/assets/revisions-button-0WtL6bsZ.js.br +0 -0
- package/dist/standalone/assets/revisions-button-0WtL6bsZ.js.gz +0 -0
- package/dist/standalone/assets/{revisions-button-DHcQjj4r.js.map → revisions-button-0WtL6bsZ.js.map} +1 -1
- package/dist/standalone/assets/{select-B30EsRTA.js → select-CR4acjX0.js} +2 -2
- package/dist/standalone/assets/select-CR4acjX0.js.br +0 -0
- package/dist/standalone/assets/select-CR4acjX0.js.gz +0 -0
- package/dist/standalone/assets/{select-B30EsRTA.js.map → select-CR4acjX0.js.map} +1 -1
- package/dist/standalone/assets/{settings-page-3r5atVKG.js → settings-page-DtguXLAP.js} +2 -2
- package/dist/standalone/assets/settings-page-DtguXLAP.js.br +0 -0
- package/dist/standalone/assets/settings-page-DtguXLAP.js.gz +0 -0
- package/dist/standalone/assets/{settings-page-3r5atVKG.js.map → settings-page-DtguXLAP.js.map} +1 -1
- package/dist/standalone/assets/{show-page-CmRDBZRg.js → show-page-Dnox2NwO.js} +2 -2
- package/dist/standalone/assets/show-page-Dnox2NwO.js.br +0 -0
- package/dist/standalone/assets/show-page-Dnox2NwO.js.gz +0 -0
- package/dist/standalone/assets/{show-page-CmRDBZRg.js.map → show-page-Dnox2NwO.js.map} +1 -1
- package/dist/standalone/assets/{tabs-BXeUKAN4.js → tabs-DUS8e6dR.js} +2 -2
- package/dist/standalone/assets/tabs-DUS8e6dR.js.br +0 -0
- package/dist/standalone/assets/tabs-DUS8e6dR.js.gz +0 -0
- package/dist/standalone/assets/{tabs-BXeUKAN4.js.map → tabs-DUS8e6dR.js.map} +1 -1
- package/dist/standalone/assets/{value-format-BikdS7In.js → value-format-Cgau0meh.js} +2 -2
- package/dist/standalone/assets/value-format-Cgau0meh.js.br +0 -0
- package/dist/standalone/assets/value-format-Cgau0meh.js.gz +0 -0
- package/dist/standalone/assets/{value-format-BikdS7In.js.map → value-format-Cgau0meh.js.map} +1 -1
- package/dist/standalone/assets/{wizard-create-page-ChrGqxlO.js → wizard-create-page-v2-Aw8Oj.js} +2 -2
- package/dist/standalone/assets/wizard-create-page-v2-Aw8Oj.js.br +0 -0
- package/dist/standalone/assets/wizard-create-page-v2-Aw8Oj.js.gz +0 -0
- package/dist/standalone/assets/{wizard-create-page-ChrGqxlO.js.map → wizard-create-page-v2-Aw8Oj.js.map} +1 -1
- package/dist/standalone/assets/{zod-CF8JsamI.js → zod-BrelKLfy.js} +2 -2
- package/dist/standalone/assets/zod-BrelKLfy.js.br +0 -0
- package/dist/standalone/assets/zod-BrelKLfy.js.gz +0 -0
- package/dist/standalone/assets/{zod-CF8JsamI.js.map → zod-BrelKLfy.js.map} +1 -1
- package/dist/standalone/index.html +4 -4
- package/dist/standalone/index.html.br +0 -0
- package/dist/standalone/index.html.gz +0 -0
- package/package.json +4 -4
- package/dist/standalone/assets/action-component-host-CuzX-99S.js.br +0 -0
- package/dist/standalone/assets/action-component-host-CuzX-99S.js.gz +0 -0
- package/dist/standalone/assets/action-page-BUTCUZ7e.js.br +0 -0
- package/dist/standalone/assets/action-page-BUTCUZ7e.js.gz +0 -0
- package/dist/standalone/assets/ai-assistant-widget-B3Xy7bCi.js.br +0 -0
- package/dist/standalone/assets/ai-assistant-widget-B3Xy7bCi.js.gz +0 -0
- package/dist/standalone/assets/audit-log-page-GHzf7mLS.js.br +0 -0
- package/dist/standalone/assets/audit-log-page-GHzf7mLS.js.gz +0 -0
- package/dist/standalone/assets/calendar-DxUwrP2r.js.br +0 -0
- package/dist/standalone/assets/calendar-DxUwrP2r.js.gz +0 -0
- package/dist/standalone/assets/chart-widget-DnK78Joj.js.br +0 -0
- package/dist/standalone/assets/chart-widget-DnK78Joj.js.gz +0 -0
- package/dist/standalone/assets/command-Df4Effbo.js.br +0 -0
- package/dist/standalone/assets/command-Df4Effbo.js.gz +0 -0
- package/dist/standalone/assets/date-picker-BM6tYOT1.js +0 -2
- package/dist/standalone/assets/date-picker-BM6tYOT1.js.br +0 -0
- package/dist/standalone/assets/date-picker-BM6tYOT1.js.gz +0 -0
- package/dist/standalone/assets/date-picker-BM6tYOT1.js.map +0 -1
- package/dist/standalone/assets/edit-page-C_QYbzrq.js.br +0 -0
- package/dist/standalone/assets/edit-page-C_QYbzrq.js.gz +0 -0
- package/dist/standalone/assets/empty-BQFNUnfh.js.br +0 -0
- package/dist/standalone/assets/empty-BQFNUnfh.js.gz +0 -0
- package/dist/standalone/assets/global-search-dialog-DMgCfJpF.js.br +0 -0
- package/dist/standalone/assets/global-search-dialog-DMgCfJpF.js.gz +0 -0
- package/dist/standalone/assets/heavy-fields-Do2qd-Wi.js.br +0 -0
- package/dist/standalone/assets/heavy-fields-Do2qd-Wi.js.gz +0 -0
- package/dist/standalone/assets/home-page-eGVeZnKR.js.br +0 -0
- package/dist/standalone/assets/home-page-eGVeZnKR.js.gz +0 -0
- package/dist/standalone/assets/icon-registry-BroqBCns.js.br +0 -0
- package/dist/standalone/assets/index-C3MuojaM.js.br +0 -0
- package/dist/standalone/assets/index-C3MuojaM.js.gz +0 -0
- package/dist/standalone/assets/json-editor-BQLKoybQ.js.br +0 -0
- package/dist/standalone/assets/json-editor-BQLKoybQ.js.gz +0 -0
- package/dist/standalone/assets/property-renderer--LvNtRJE.js.br +0 -0
- package/dist/standalone/assets/property-renderer--LvNtRJE.js.gz +0 -0
- package/dist/standalone/assets/property-renderer--LvNtRJE.js.map +0 -1
- package/dist/standalone/assets/reference-UuQ6Jts1.js.br +0 -0
- package/dist/standalone/assets/reference-UuQ6Jts1.js.gz +0 -0
- package/dist/standalone/assets/revisions-button-DHcQjj4r.js.br +0 -0
- package/dist/standalone/assets/revisions-button-DHcQjj4r.js.gz +0 -0
- package/dist/standalone/assets/select-B30EsRTA.js.br +0 -0
- package/dist/standalone/assets/select-B30EsRTA.js.gz +0 -0
- package/dist/standalone/assets/settings-page-3r5atVKG.js.br +0 -0
- package/dist/standalone/assets/settings-page-3r5atVKG.js.gz +0 -0
- package/dist/standalone/assets/show-page-CmRDBZRg.js.br +0 -0
- package/dist/standalone/assets/show-page-CmRDBZRg.js.gz +0 -0
- package/dist/standalone/assets/tabs-BXeUKAN4.js.br +0 -0
- package/dist/standalone/assets/tabs-BXeUKAN4.js.gz +0 -0
- package/dist/standalone/assets/value-format-BikdS7In.js.br +0 -0
- package/dist/standalone/assets/value-format-BikdS7In.js.gz +0 -0
- package/dist/standalone/assets/wizard-create-page-ChrGqxlO.js.br +0 -0
- package/dist/standalone/assets/wizard-create-page-ChrGqxlO.js.gz +0 -0
- package/dist/standalone/assets/zod-CF8JsamI.js.br +0 -0
- package/dist/standalone/assets/zod-CF8JsamI.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./home-page-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./home-page-BSz1wGk0.js","./createLucideIcon-CUopU_LC.js","./with-selector-NDLhu4dT.js","./pipette-CqHYfQnn.js","./trash-2-DhyKQCKv.js","./pencil-BO-k3yTG.js","./plus-Dk-FzitW.js","./x-C3kLunD6.js","./dist-Dpg8xy_r.js","./select-CR4acjX0.js","./dist-BSbFjTlr.js","./router-wFvtgo77.js","./empty-Cposcczv.js","./info-CGVdWTj1.js","./card-4cS4uWCP.js","./tabs-DUS8e6dR.js","./value-format-Cgau0meh.js","./uuid-DLSnbsz2.js","./use-dashboard-charts-Cr3OUSL5.js","./schemas-twnCb1uT.js","./reference-WPaf6IdD.js","./chevrons-up-down-BHCs46XQ.js","./useQueries-BCUhWYX4.js","./badge-6nyM5Jft.js","./command-Sb0xL-se.js","./dist-BcL2U6dT.js","./audit-log-page-BoZh23oQ.js","./key-lbuX0yk_.js","./file-text-CcLZq8HA.js","./key-round-CQLp1Ua9.js","./calendar-nvD_z7KQ.js","./calendar-Chw94eNX.css","./user-directory-9COoW6AO.js","./settings-page-DtguXLAP.js","./bot-DFDgGfNj.js","./copy-BexCWf4U.js","./save-Cd3oR3Sj.js","./square-pen-DGT7ekeJ.js","./triangle-alert-CyaaNWN8.js","./textarea-CX_0QVSz.js","./json-editor-CAIgxYb3.js","./circle-alert-0EyKeic4.js","./wand-sparkles-DWaFQeYS.js","./property-renderer-B8Md-EqW.js","./refresh-cw-DHvUQTMb.js","./upload-BVhXhZgn.js","./ellipsis-lEjcTxo0.js","./zap-b3saQVKc.js","./date-picker-C4HcgidQ.js","./action-component-host-BrEZDHZt.js","./richtext-render-DnVcQ34I.js","./show-page-Dnox2NwO.js","./revisions-button-0WtL6bsZ.js","./rotate-ccw-BLr0QLAg.js","./edit-page-CW7-FAPC.js","./sparkles-CqF0zjrF.js","./zod-BrelKLfy.js","./wizard-create-page-v2-Aw8Oj.js","./action-page-Bx7kzeK7.js","./arrow-left-CI9hUPwJ.js","./icon-registry-BQU4fIc4.js","./clock-OCmX6DtA.js","./undo-2-DlSB-5DM.js","./minimize-2-Bx2cH_WS.js","./palette-DVP_4RAn.js","./send-D4KHQGYj.js","./ai-assistant-widget-BbIXVrSu.js","./global-search-dialog-DLv_nIvM.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{a as e,i as t,n,r,t as i}from"./createLucideIcon-CUopU_LC.js";import{C as a,S as o,_ as s,b as c,d as l,f as u,g as d,h as f,i as p,l as m,m as h,o as g,p as _,r as v,s as y,u as b,v as x,x as S}from"./with-selector-NDLhu4dT.js";import{n as C,t as w}from"./dist-BSbFjTlr.js";import{t as ee}from"./x-C3kLunD6.js";import{a as T,c as E,i as D,l as te,n as ne,r as re,s as ie,t as ae}from"./dist-Dpg8xy_r.js";import{$ as oe,C as O,Dt as k,E as se,Et as ce,F as le,H as A,M as j,O as M,S as ue,St as de,T as fe,Tt as pe,V as me,X as he,_ as ge,b as _e,c as ve,d as ye,et as N,f as be,g as xe,h as Se,ht as Ce,i as we,k as Te,l as Ee,m as De,n as Oe,nt as ke,o as Ae,p as je,q as Me,rt as Ne,s as Pe,t as Fe,tt as Ie,u as Le,v as Re,w as ze,wt as Be,x as Ve,y as He}from"./router-wFvtgo77.js";import{a as Ue,c as We,i as Ge,l as Ke,n as qe,o as Je,r as Ye,s as Xe,t as Ze}from"./dist-BcL2U6dT.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Qe=r((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&re(x,t.startTime-e)}}var S=!1,C=-1,w=5,ee=-1;function T(){return g?!0:!(e.unstable_now()-ee<w)}function E(){if(g=!1,S){var t=e.unstable_now();ee=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&T());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&re(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(E)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,ne=te.port2;te.port1.onmessage=E,D=function(){ne.postMessage(null)}}else D=function(){_(E,0)};function re(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,re(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),$e=r(((e,t)=>{t.exports=Qe()})),et=r((e=>{var t=$e(),r=n(),i=a();function o(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(o(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(o(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return d(i),e;if(a===r)return d(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),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`),ee=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),te=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function re(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var ie=Symbol.for(`react.client.reference`);function ae(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ie?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 ee:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?ae(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var oe=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ce=[],le=-1;function A(e){return{current:e}}function j(e){0>le||(e.current=ce[le],ce[le]=null,le--)}function M(e,t){le++,ce[le]=e.current,e.current=t}var ue=A(null),de=A(null),fe=A(null),pe=A(null);function me(e,t){switch(M(fe,t),M(de,e),M(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}j(ue),M(ue,e)}function he(){j(ue),j(de),j(fe)}function ge(e){e.memoizedState!==null&&M(pe,e);var t=ue.current,n=Wd(t,e.type);t!==n&&(M(de,e),M(ue,n))}function _e(e){de.current===e&&(j(ue),j(de)),pe.current===e&&(j(pe),$f._currentValue=se)}var ve,ye;function N(e){if(ve===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ve=t&&t[1]||``,ye=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+ve+e+ye}var be=!1;function xe(e,t){if(!e||be)return``;be=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
@@ -11,5 +11,5 @@ Error generating stack: `+e.message+`
|
|
|
11
11
|
|
|
12
12
|
`)||``),alert:async e=>{typeof window<`u`&&window.alert([e?.title,e?.description].filter(Boolean).join(`
|
|
13
13
|
|
|
14
|
-
`)||``)},open:async()=>void 0}}var up=P.createContext({register:()=>()=>{},list:[]});function dp({children:e}){let[t,n]=P.useState([]),r=P.useRef(e=>(n(t=>[...t,e]),()=>{n(t=>t.filter(t=>t!==e))})).current,i=P.useMemo(()=>({register:r,list:t}),[r,t]);return(0,F.jsx)(up.Provider,{value:i,children:e})}function fp(){return P.useContext(up).list}function pp(){return P.useContext(up).register}var mp={esc:`escape`,space:` `,spacebar:` `,return:`enter`,del:`delete`};function hp(e){return/^[a-z]$/.test(e)?`Key${e.toUpperCase()}`:/^[0-9]$/.test(e)?`Digit${e}`:null}function gp(e){let t=e.toLowerCase().split(`+`).map(e=>e.trim()).filter(Boolean),n=t[t.length-1]??``,r=mp[n]??n,i=hp(r),a=t.some(e=>e===`mod`||e===`ctrl`||e===`meta`||e===`cmd`),o=t.includes(`shift`),s=t.includes(`alt`)||t.includes(`option`);return{key:r,code:i,mod:a,shift:o,alt:s,hasModifier:a||s}}function _p(e){return typeof e.key==`string`?e.key.toLowerCase():null}function vp(e){return typeof e.code==`string`&&e.code.length>0?e.code:null}function yp(e,t){if(e.code){let n=vp(t);if(!n||n!==e.code)return!1}else{let n=_p(t);if(!n||n!==e.key)return!1}let n=t.ctrlKey||t.metaKey;return!(e.mod!==n||e.alt!==t.altKey||e.shift&&!t.shiftKey)}function bp(e){if(!(e instanceof HTMLElement))return!1;let t=e.tagName;return t===`INPUT`||t===`TEXTAREA`||t===`SELECT`||e.isContentEditable}function xp(e,t,n={}){let{enabled:r=!0,allowInInput:i,preventDefault:a=!0,description:o,group:s}=n,c=P.useRef(t);P.useEffect(()=>{c.current=t},[t]);let l=Array.isArray(e)?e.join(`|`):e,u=pp();P.useEffect(()=>{if(!r)return;let e=l.split(`|`).map(gp),t=t=>{let n=e.find(e=>yp(e,t));n&&(!(i??n.hasModifier)&&bp(t.target)||(a&&t.preventDefault(),c.current(t)))};return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[l,r,i,a]),P.useEffect(()=>{if(!(!r||!o))return u({keys:l,description:o,group:s})},[r,o,s,l,u])}var Sp=`modulepreload`,Cp=function(e,t){return new URL(e,t).href},wp={},Tp=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=Cp(t,n),t=s(t),t in wp)return;wp[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Sp,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Ep(){let[e,t]=P.useState(!1),n=fp(),{t:r}=N(),i=r(`common:shortcutsHelp`);return xp(`?`,()=>t(e=>!e),{description:i}),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Qs,{children:[(0,F.jsx)($s,{asChild:!0,children:(0,F.jsx)(ie,{variant:`ghost`,size:`icon`,onClick:()=>t(!0),"aria-label":i,className:`hidden md:inline-flex`,children:(0,F.jsx)(pt,{className:`size-4`})})}),(0,F.jsxs)(ec,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(`span`,{children:i}),(0,F.jsx)(tc,{children:`?`})]})]}),(0,F.jsx)(ic,{open:e,onOpenChange:t,items:n,title:i,emptyMessage:r(`common:shortcutsEmpty`)})]})}function Dp({icon:e,label:t,active:n,onSelect:r}){return(0,F.jsxs)(os,{onSelect:e=>{e.preventDefault(),r()},className:`gap-3 px-3 py-2`,children:[e&&(0,F.jsx)(`span`,{className:`flex size-4 items-center justify-center text-muted-foreground`,children:e}),(0,F.jsx)(`span`,{className:`flex-1 truncate`,children:t}),n&&(0,F.jsx)(nt,{className:`size-4 text-primary`})]})}function Op(){let{t:e}=N(),[t,n]=P.useState(()=>kt()),r=e=>{At(e),n(e)},i=t===`dark`?bt:t===`light`?wt:yt;return(0,F.jsxs)($o,{children:[(0,F.jsx)(es,{asChild:!0,children:(0,F.jsx)(ie,{variant:`ghost`,size:`icon`,"aria-label":e(`common:toggleTheme`),children:(0,F.jsx)(i,{className:`size-4`})})}),(0,F.jsxs)(as,{align:`end`,sideOffset:8,className:`w-44 p-1`,children:[(0,F.jsx)(ls,{className:`px-3 py-2 text-xs uppercase tracking-wide text-muted-foreground`,children:e(`common:theme`)}),(0,F.jsx)(us,{}),(0,F.jsx)(Dp,{icon:(0,F.jsx)(wt,{className:`size-4`}),label:e(`common:themeLight`),active:t===`light`,onSelect:()=>r(`light`)}),(0,F.jsx)(Dp,{icon:(0,F.jsx)(bt,{className:`size-4`}),label:e(`common:themeDark`),active:t===`dark`,onSelect:()=>r(`dark`)}),(0,F.jsx)(Dp,{icon:(0,F.jsx)(yt,{className:`size-4`}),label:e(`common:themeSystem`),active:t===`system`,onSelect:()=>r(`system`)})]})]})}function kp(){let{locale:e,setLocale:t,availableLocales:n,t:r}=N(),i=n();return i.length<=1?null:(0,F.jsxs)($o,{children:[(0,F.jsx)(es,{asChild:!0,children:(0,F.jsxs)(ie,{variant:`ghost`,size:`sm`,className:`gap-2`,children:[(0,F.jsx)(mt,{className:`size-4`}),(0,F.jsx)(`span`,{className:`text-xs uppercase`,children:e})]})}),(0,F.jsxs)(as,{align:`end`,sideOffset:8,className:`w-52 p-1`,children:[(0,F.jsx)(ls,{className:`px-3 py-2 text-xs uppercase tracking-wide text-muted-foreground`,children:r(`common:language`)}),(0,F.jsx)(us,{}),(0,F.jsx)(nr,{className:`max-h-72`,children:i.map(n=>(0,F.jsx)(Dp,{label:n.name,active:n.code===e,onSelect:()=>t(n.code)},n.code))})]})]})}function Ap(e){let t=Ce();(0,P.useEffect)(()=>{if(e)return e(e=>{se(t,e.resourceId)})},[t,e])}var jp=Object.create(null);jp.open=`0`,jp.close=`1`,jp.ping=`2`,jp.pong=`3`,jp.message=`4`,jp.upgrade=`5`,jp.noop=`6`;var Mp=Object.create(null);Object.keys(jp).forEach(e=>{Mp[jp[e]]=e});var Np={type:`error`,data:`parser error`},Pp=typeof Blob==`function`||typeof Blob<`u`&&Object.prototype.toString.call(Blob)===`[object BlobConstructor]`,Fp=typeof ArrayBuffer==`function`,Ip=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Lp=({type:e,data:t},n,r)=>Pp&&t instanceof Blob?n?r(t):Rp(t,r):Fp&&(t instanceof ArrayBuffer||Ip(t))?n?r(t):Rp(new Blob([t]),r):r(jp[e]+(t||``)),Rp=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(`,`)[1];t(`b`+(e||``))},n.readAsDataURL(e)};function zp(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Bp;function Vp(e,t){if(Pp&&e.data instanceof Blob)return e.data.arrayBuffer().then(zp).then(t);if(Fp&&(e.data instanceof ArrayBuffer||Ip(e.data)))return t(zp(e.data));Lp(e,!1,e=>{Bp||=new TextEncoder,t(Bp.encode(e))})}var Hp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Up=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(let e=0;e<64;e++)Up[Hp.charCodeAt(e)]=e;var Wp=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);let l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)a=Up[e.charCodeAt(r)],o=Up[e.charCodeAt(r+1)],s=Up[e.charCodeAt(r+2)],c=Up[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},Gp=typeof ArrayBuffer==`function`,Kp=(e,t)=>{if(typeof e!=`string`)return{type:`message`,data:Jp(e,t)};let n=e.charAt(0);return n===`b`?{type:`message`,data:qp(e.substring(1),t)}:Mp[n]?e.length>1?{type:Mp[n],data:e.substring(1)}:{type:Mp[n]}:Np},qp=(e,t)=>Gp?Jp(Wp(e),t):{base64:!0,data:e},Jp=(e,t)=>{switch(t){case`blob`:return e instanceof Blob?e:new Blob([e]);default:return e instanceof ArrayBuffer?e:e.buffer}},Yp=``,Xp=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,a)=>{Lp(e,!1,e=>{r[a]=e,++i===n&&t(r.join(Yp))})})},Zp=(e,t)=>{let n=e.split(Yp),r=[];for(let e=0;e<n.length;e++){let i=Kp(n[e],t);if(r.push(i),i.type===`error`)break}return r};function Qp(){return new TransformStream({transform(e,t){Vp(e,n=>{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);let e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!=`string`&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}var $p;function em(e){return e.reduce((e,t)=>e+t.length,0)}function tm(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function nm(e,t){$p||=new TextDecoder;let n=[],r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(em(n)<1)break;let e=tm(n,1);a=(e[0]&128)==128,i=e[0]&127,r=i<126?3:i===126?1:2}else if(r===1){if(em(n)<2)break;let e=tm(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(r===2){if(em(n)<8)break;let e=tm(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>2**21-1){s.enqueue(Np);break}i=a*2**32+t.getUint32(4),r=3}else{if(em(n)<i)break;let e=tm(n,i);s.enqueue(Kp(a?e:$p.decode(e),t)),r=0}if(i===0||i>e){s.enqueue(Np);break}}}})}function rm(e){if(e)return im(e)}function im(e){for(var t in rm.prototype)e[t]=rm.prototype[t];return e}rm.prototype.on=rm.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[`$`+e]=this._callbacks[`$`+e]||[]).push(t),this},rm.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},rm.prototype.off=rm.prototype.removeListener=rm.prototype.removeAllListeners=rm.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[`$`+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[`$`+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks[`$`+e],this},rm.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks[`$`+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},rm.prototype.emitReserved=rm.prototype.emit,rm.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[`$`+e]||[]},rm.prototype.hasListeners=function(e){return!!this.listeners(e).length};var am=typeof Promise==`function`&&typeof Promise.resolve==`function`?e=>Promise.resolve().then(e):(e,t)=>t(e,0),om=typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)(),sm=`arraybuffer`;function cm(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}var lm=om.setTimeout,um=om.clearTimeout;function dm(e,t){t.useNativeTimers?(e.setTimeoutFn=lm.bind(om),e.clearTimeoutFn=um.bind(om)):(e.setTimeoutFn=om.setTimeout.bind(om),e.clearTimeoutFn=om.clearTimeout.bind(om))}var fm=1.33;function pm(e){return typeof e==`string`?mm(e):Math.ceil((e.byteLength||e.size)*fm)}function mm(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function hm(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function gm(e){let t=``;for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=`&`),t+=encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t}function _m(e){let t={},n=e.split(`&`);for(let e=0,r=n.length;e<r;e++){let r=n[e].split(`=`);t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}var vm=class extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type=`TransportError`}},ym=class extends rm{constructor(e){super(),this.writable=!1,dm(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved(`error`,new vm(e,t,n)),this}open(){return this.readyState=`opening`,this.doOpen(),this}close(){return(this.readyState===`opening`||this.readyState===`open`)&&(this.doClose(),this.onClose()),this}send(e){this.readyState===`open`&&this.write(e)}onOpen(){this.readyState=`open`,this.writable=!0,super.emitReserved(`open`)}onData(e){let t=Kp(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved(`packet`,e)}onClose(e){this.readyState=`closed`,super.emitReserved(`close`,e)}pause(e){}createUri(e,t={}){return e+`://`+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(`:`)===-1?e:`[`+e+`]`}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?`:`+this.opts.port:``}_query(e){let t=gm(e);return t.length?`?`+t:``}},bm=class extends ym{constructor(){super(...arguments),this._polling=!1}get name(){return`polling`}doOpen(){this._poll()}pause(e){this.readyState=`pausing`;let t=()=>{this.readyState=`paused`,e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once(`pollComplete`,function(){--e||t()})),this.writable||(e++,this.once(`drain`,function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(`poll`)}onData(e){Zp(e,this.socket.binaryType).forEach(e=>{if(this.readyState===`opening`&&e.type===`open`&&this.onOpen(),e.type===`close`)return this.onClose({description:`transport closed by the server`}),!1;this.onPacket(e)}),this.readyState!==`closed`&&(this._polling=!1,this.emitReserved(`pollComplete`),this.readyState===`open`&&this._poll())}doClose(){let e=()=>{this.write([{type:`close`}])};this.readyState===`open`?e():this.once(`open`,e)}write(e){this.writable=!1,Xp(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved(`drain`)})})}uri(){let e=this.opts.secure?`https`:`http`,t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=hm()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},xm=!1;try{xm=typeof XMLHttpRequest<`u`&&`withCredentials`in new XMLHttpRequest}catch{}var Sm=xm;function Cm(){}var wm=class extends bm{constructor(e){if(super(e),typeof location<`u`){let t=location.protocol===`https:`,n=location.port;n||=t?`443`:`80`,this.xd=typeof location<`u`&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:`POST`,data:e});n.on(`success`,t),n.on(`error`,(e,t)=>{this.onError(`xhr post error`,e,t)})}doPoll(){let e=this.request();e.on(`data`,this.onData.bind(this)),e.on(`error`,(e,t)=>{this.onError(`xhr poll error`,e,t)}),this.pollXhr=e}},Tm=class e extends rm{constructor(e,t,n){super(),this.createRequest=e,dm(this,n),this._opts=n,this._method=n.method||`GET`,this._uri=t,this._data=n.data===void 0?null:n.data,this._create()}_create(){var t;let n=cm(this._opts,`agent`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`autoUnref`);n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch{}if(this._method===`POST`)try{r.setRequestHeader(`Content-type`,`text/plain;charset=UTF-8`)}catch{}try{r.setRequestHeader(`Accept`,`*/*`)}catch{}(t=this._opts.cookieJar)==null||t.addCookies(r),`withCredentials`in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;r.readyState===3&&((e=this._opts.cookieJar)==null||e.parseCookies(r.getResponseHeader(`set-cookie`))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==`number`?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}typeof document<`u`&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(e){this.emitReserved(`error`,e,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(this._xhr===void 0||this._xhr===null)){if(this._xhr.onreadystatechange=Cm,t)try{this._xhr.abort()}catch{}typeof document<`u`&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved(`data`,e),this.emitReserved(`success`),this._cleanup())}abort(){this._cleanup()}};if(Tm.requestsCount=0,Tm.requests={},typeof document<`u`){if(typeof attachEvent==`function`)attachEvent(`onunload`,Em);else if(typeof addEventListener==`function`){let e=`onpagehide`in om?`pagehide`:`unload`;addEventListener(e,Em,!1)}}function Em(){for(let e in Tm.requests)Tm.requests.hasOwnProperty(e)&&Tm.requests[e].abort()}var Dm=(function(){let e=km({xdomain:!1});return e&&e.responseType!==null})(),Om=class extends wm{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=Dm&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Tm(km,this.uri(),e)}};function km(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<`u`&&(!t||Sm))return new XMLHttpRequest}catch{}if(!t)try{return new om[[`Active`,`Object`].join(`X`)](`Microsoft.XMLHTTP`)}catch{}}var Am=typeof navigator<`u`&&typeof navigator.product==`string`&&navigator.product.toLowerCase()===`reactnative`,jm=class extends ym{get name(){return`websocket`}doOpen(){let e=this.uri(),t=this.opts.protocols,n=Am?{}:cm(this.opts,`agent`,`perMessageDeflate`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`localAddress`,`protocolVersion`,`origin`,`maxPayload`,`family`,`checkServerIdentity`);this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved(`error`,e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:`websocket connection closed`,context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(`websocket error`,e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;Lp(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch{}r&&am(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?`wss`:`ws`,t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=hm()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Mm=om.WebSocket||om.MozWebSocket,Nm={websocket:class extends jm{createSocket(e,t,n){return Am?new Mm(e,t,n):t?new Mm(e,t):new Mm(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends ym{get name(){return`webtransport`}doOpen(){try{this._transport=new WebTransport(this.createUri(`https`),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved(`error`,e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError(`webtransport error`,e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=nm(2**53-1,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=Qp();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();let i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let a={type:`open`};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&am(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)==null||e.close()}},polling:Om},Pm=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Fm=[`source`,`protocol`,`authority`,`userInfo`,`user`,`password`,`host`,`port`,`relative`,`path`,`directory`,`file`,`query`,`anchor`];function Im(e){if(e.length>8e3)throw`URI too long`;let t=e,n=e.indexOf(`[`),r=e.indexOf(`]`);n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,`;`)+e.substring(r,e.length));let i=Pm.exec(e||``),a={},o=14;for(;o--;)a[Fm[o]]=i[o]||``;return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,`:`),a.authority=a.authority.replace(`[`,``).replace(`]`,``).replace(/;/g,`:`),a.ipv6uri=!0),a.pathNames=Lm(a,a.path),a.queryKey=Rm(a,a.query),a}function Lm(e,t){let n=t.replace(/\/{2,9}/g,`/`).split(`/`);return(t.slice(0,1)==`/`||t.length===0)&&n.splice(0,1),t.slice(-1)==`/`&&n.splice(n.length-1,1),n}function Rm(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}var zm=typeof addEventListener==`function`&&typeof removeEventListener==`function`,Bm=[];zm&&addEventListener(`offline`,()=>{Bm.forEach(e=>e())},!1);var Vm=class e extends rm{constructor(e,t){if(super(),this.binaryType=sm,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==`object`&&(t=e,e=null),e){let n=Im(e);t.hostname=n.host,t.secure=n.protocol===`https`||n.protocol===`wss`,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Im(t.host).host);dm(this,t),this.secure=t.secure==null?typeof location<`u`&&location.protocol===`https:`:t.secure,t.hostname&&!t.port&&(t.port=this.secure?`443`:`80`),this.hostname=t.hostname||(typeof location<`u`?location.hostname:`localhost`),this.port=t.port||(typeof location<`u`&&location.port?location.port:this.secure?`443`:`80`),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:`/engine.io`,agent:!1,withCredentials:!1,upgrade:!0,timestampParam:`t`,rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,``)+(this.opts.addTrailingSlash?`/`:``),typeof this.opts.query==`string`&&(this.opts.query=_m(this.opts.query)),zm&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener(`beforeunload`,this._beforeunloadEventListener,!1)),this.hostname!==`localhost`&&(this._offlineEventListener=()=>{this._onClose(`transport close`,{description:`network connection lost`})},Bm.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(`error`,`No transports available`)},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(`websocket`)!==-1?`websocket`:this.transports[0];this.readyState=`opening`;let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(`drain`,this._onDrain.bind(this)).on(`packet`,this._onPacket.bind(this)).on(`error`,this._onError.bind(this)).on(`close`,e=>this._onClose(`transport close`,e))}onOpen(){this.readyState=`open`,e.priorWebsocketSuccess=this.transport.name===`websocket`,this.emitReserved(`open`),this.flush()}_onPacket(e){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`)switch(this.emitReserved(`packet`,e),this.emitReserved(`heartbeat`),e.type){case`open`:this.onHandshake(JSON.parse(e.data));break;case`ping`:this._sendPacket(`pong`),this.emitReserved(`ping`),this.emitReserved(`pong`),this._resetPingTimeout();break;case`error`:let t=Error(`server error`);t.code=e.data,this._onError(t);break;case`message`:this.emitReserved(`data`,e.data),this.emitReserved(`message`,e.data);break}}onHandshake(e){this.emitReserved(`handshake`,e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==`closed`&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(`ping timeout`)},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved(`drain`):this.flush()}flush(){if(this.readyState!==`closed`&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(`flush`)}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===`polling`&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+=pm(n)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,am(()=>{this._onClose(`ping timeout`)},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket(`message`,e,t,n),this}send(e,t,n){return this._sendPacket(`message`,e,t,n),this}_sendPacket(e,t,n,r){if(typeof t==`function`&&(r=t,t=void 0),typeof n==`function`&&(r=n,n=null),this.readyState===`closing`||this.readyState===`closed`)return;n||={},n.compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved(`packetCreate`,i),this.writeBuffer.push(i),r&&this.once(`flush`,r),this.flush()}close(){let e=()=>{this._onClose(`forced close`),this.transport.close()},t=()=>{this.off(`upgrade`,t),this.off(`upgradeError`,t),e()},n=()=>{this.once(`upgrade`,t),this.once(`upgradeError`,t)};return(this.readyState===`opening`||this.readyState===`open`)&&(this.readyState=`closing`,this.writeBuffer.length?this.once(`drain`,()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===`opening`)return this.transports.shift(),this._open();this.emitReserved(`error`,t),this._onClose(`transport error`,t)}_onClose(e,t){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners(`close`),this.transport.close(),this.transport.removeAllListeners(),zm&&(this._beforeunloadEventListener&&removeEventListener(`beforeunload`,this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=Bm.indexOf(this._offlineEventListener);e!==-1&&Bm.splice(e,1)}this.readyState=`closed`,this.id=null,this.emitReserved(`close`,e,t),this.writeBuffer=[],this._prevBufferLen=0}}};Vm.protocol=4;var Hm=class extends Vm{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===`open`&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;Vm.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:`ping`,data:`probe`}]),t.once(`packet`,e=>{if(!n)if(e.type===`pong`&&e.data===`probe`){if(this.upgrading=!0,this.emitReserved(`upgrading`,t),!t)return;Vm.priorWebsocketSuccess=t.name===`websocket`,this.transport.pause(()=>{n||this.readyState!==`closed`&&(l(),this.setTransport(t),t.send([{type:`upgrade`}]),this.emitReserved(`upgrade`,t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error(`probe error`);e.transport=t.name,this.emitReserved(`upgradeError`,e)}}))};function i(){n||(n=!0,l(),t.close(),t=null)}let a=e=>{let n=Error(`probe error: `+e);n.transport=t.name,i(),this.emitReserved(`upgradeError`,n)};function o(){a(`transport closed`)}function s(){a(`socket closed`)}function c(e){t&&e.name!==t.name&&i()}let l=()=>{t.removeListener(`open`,r),t.removeListener(`error`,a),t.removeListener(`close`,o),this.off(`close`,s),this.off(`upgrading`,c)};t.once(`open`,r),t.once(`error`,a),t.once(`close`,o),this.once(`close`,s),this.once(`upgrading`,c),this._upgrades.indexOf(`webtransport`)!==-1&&e!==`webtransport`?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}},Um=class extends Hm{constructor(e,t={}){let n=typeof e==`object`,r=n?{...e}:{...t};(!r.transports||r.transports&&typeof r.transports[0]==`string`)&&(r.transports=(r.transports||[`polling`,`websocket`,`webtransport`]).map(e=>Nm[e]).filter(e=>!!e)),super(n?r:e,r)}};Um.protocol;function Wm(e,t=``,n){let r=e;n||=typeof location<`u`&&location,e??=n.protocol+`//`+n.host,typeof e==`string`&&(e.charAt(0)===`/`&&(e=e.charAt(1)===`/`?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=n===void 0?`https://`+e:n.protocol+`//`+e),r=Im(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=`80`:/^(http|ws)s$/.test(r.protocol)&&(r.port=`443`)),r.path=r.path||`/`;let i=r.host.indexOf(`:`)===-1?r.host:`[`+r.host+`]`;return r.id=r.protocol+`://`+i+`:`+r.port+t,r.href=r.protocol+`://`+i+(n&&n.port===r.port?``:`:`+r.port),r}var Gm=typeof ArrayBuffer==`function`,Km=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,qm=Object.prototype.toString,Jm=typeof Blob==`function`||typeof Blob<`u`&&qm.call(Blob)===`[object BlobConstructor]`,Ym=typeof File==`function`||typeof File<`u`&&qm.call(File)===`[object FileConstructor]`;function Xm(e){return Gm&&(e instanceof ArrayBuffer||Km(e))||Jm&&e instanceof Blob||Ym&&e instanceof File}function Zm(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(Zm(e[t]))return!0;return!1}if(Xm(e))return!0;if(e.toJSON&&typeof e.toJSON==`function`&&arguments.length===1)return Zm(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&Zm(e[t]))return!0;return!1}function Qm(e){let t=[],n=e.data,r=e;return r.data=$m(n,t),r.attachments=t.length,{packet:r,buffers:t}}function $m(e,t){if(!e)return e;if(Xm(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=$m(e[r],t);return n}else if(typeof e==`object`&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=$m(e[r],t));return n}return e}function eh(e,t){return e.data=th(e.data,t),delete e.attachments,e}function th(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==`number`&&e.num>=0&&e.num<t.length)return t[e.num];throw Error(`illegal attachments`)}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=th(e[n],t);else if(typeof e==`object`)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=th(e[n],t));return e}var nh=t({Decoder:()=>ah,Encoder:()=>ih,PacketType:()=>$,isPacketValid:()=>fh,protocol:()=>5}),rh=[`connect`,`connect_error`,`disconnect`,`disconnecting`,`newListener`,`removeListener`],$;(function(e){e[e.CONNECT=0]=`CONNECT`,e[e.DISCONNECT=1]=`DISCONNECT`,e[e.EVENT=2]=`EVENT`,e[e.ACK=3]=`ACK`,e[e.CONNECT_ERROR=4]=`CONNECT_ERROR`,e[e.BINARY_EVENT=5]=`BINARY_EVENT`,e[e.BINARY_ACK=6]=`BINARY_ACK`})($||={});var ih=class{constructor(e){this.replacer=e}encode(e){return(e.type===$.EVENT||e.type===$.ACK)&&Zm(e)?this.encodeAsBinary({type:e.type===$.EVENT?$.BINARY_EVENT:$.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=``+e.type;return(e.type===$.BINARY_EVENT||e.type===$.BINARY_ACK)&&(t+=e.attachments+`-`),e.nsp&&e.nsp!==`/`&&(t+=e.nsp+`,`),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=Qm(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},ah=class e extends rm{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==`function`?{reviver:e}:e)}add(e){let t;if(typeof e==`string`){if(this.reconstructor)throw Error(`got plaintext data when reconstructing a packet`);t=this.decodeString(e);let n=t.type===$.BINARY_EVENT;n||t.type===$.BINARY_ACK?(t.type=n?$.EVENT:$.ACK,this.reconstructor=new oh(t),t.attachments===0&&super.emitReserved(`decoded`,t)):super.emitReserved(`decoded`,t)}else if(Xm(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved(`decoded`,t));else throw Error(`got binary data when not reconstructing a packet`);else throw Error(`Unknown type: `+e)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if($[r.type]===void 0)throw Error(`unknown packet type `+r.type);if(r.type===$.BINARY_EVENT||r.type===$.BINARY_ACK){let e=n+1;for(;t.charAt(++n)!==`-`&&n!=t.length;);let i=t.substring(e,n);if(i!=Number(i)||t.charAt(n)!==`-`)throw Error(`Illegal attachments`);let a=Number(i);if(!ch(a)||a<0)throw Error(`Illegal attachments`);if(a>this.opts.maxAttachments)throw Error(`too many attachments`);r.attachments=a}if(t.charAt(n+1)===`/`){let e=n+1;for(;++n&&!(t.charAt(n)===`,`||n===t.length););r.nsp=t.substring(e,n)}else r.nsp=`/`;let i=t.charAt(n+1);if(i!==``&&Number(i)==i){let e=n+1;for(;++n;){let e=t.charAt(n);if(e==null||Number(e)!=e){--n;break}if(n===t.length)break}r.id=Number(t.substring(e,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw Error(`invalid payload`)}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case $.CONNECT:return uh(t);case $.DISCONNECT:return t===void 0;case $.CONNECT_ERROR:return typeof t==`string`||uh(t);case $.EVENT:case $.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&rh.indexOf(t[0])===-1);case $.ACK:case $.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&=(this.reconstructor.finishedReconstruction(),null)}},oh=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=eh(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function sh(e){return typeof e==`string`}var ch=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e};function lh(e){return e===void 0||ch(e)}function uh(e){return Object.prototype.toString.call(e)===`[object Object]`}function dh(e,t){switch(e){case $.CONNECT:return t===void 0||uh(t);case $.DISCONNECT:return t===void 0;case $.EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&rh.indexOf(t[0])===-1);case $.ACK:return Array.isArray(t);case $.CONNECT_ERROR:return typeof t==`string`||uh(t);default:return!1}}function fh(e){return sh(e.nsp)&&lh(e.id)&&dh(e.type,e.data)}function ph(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var mh=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),hh=class extends rm{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[ph(e,`open`,this.onopen.bind(this)),ph(e,`packet`,this.onpacket.bind(this)),ph(e,`error`,this.onerror.bind(this)),ph(e,`close`,this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState===`open`&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift(`message`),this.emit.apply(this,e),this}emit(e,...t){if(mh.hasOwnProperty(e))throw Error(`"`+e.toString()+`" is a reserved event name`);if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:$.EVENT,data:t};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof t[t.length-1]==`function`){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine?.transport?.writable,i=this.connected&&!this.io.engine?._hasPingExpired();return this.flags.volatile&&!r||(i?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){let n=this.flags.timeout??this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error(`operation has timed out`))},n),i=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]==`function`&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],e===null?(this._queue.shift(),t&&t(null,...r)):n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==`function`?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:$.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(`connect_error`,e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved(`disconnect`,e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error(`socket has been disconnected`))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case $.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved(`connect_error`,Error(`It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)`));break;case $.EVENT:case $.BINARY_EVENT:this.onevent(e);break;case $.ACK:case $.BINARY_ACK:this.onack(e);break;case $.DISCONNECT:this.ondisconnect();break;case $.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved(`connect_error`,t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==`string`&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:$.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];typeof t==`function`&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(`connect`)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(`io server disconnect`)}destroy(){this.subs&&=(this.subs.forEach(e=>e()),void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:$.DISCONNECT}),this.destroy(),this.connected&&this.onclose(`io client disconnect`),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}};function gh(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}gh.prototype.duration=function(){var e=this.ms*this.factor**+this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},gh.prototype.reset=function(){this.attempts=0},gh.prototype.setMin=function(e){this.ms=e},gh.prototype.setMax=function(e){this.max=e},gh.prototype.setJitter=function(e){this.jitter=e};var _h=class extends rm{constructor(e,t){super(),this.nsps={},this.subs=[],e&&typeof e==`object`&&(t=e,e=void 0),t||={},t.path=t.path||`/socket.io`,this.opts=t,dm(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor??.5),this.backoff=new gh({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState=`closed`,this.uri=e;let n=t.parser||nh;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)==null||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)==null||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)==null||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(`open`))return this;this.engine=new Um(this.uri,this.opts);let t=this.engine,n=this;this._readyState=`opening`,this.skipReconnect=!1;let r=ph(t,`open`,function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState=`closed`,this.emitReserved(`error`,t),e?e(t):this.maybeReconnectOnOpen()},a=ph(t,`error`,i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error(`timeout`)),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=`open`,this.emitReserved(`open`);let e=this.engine;this.subs.push(ph(e,`ping`,this.onping.bind(this)),ph(e,`data`,this.ondata.bind(this)),ph(e,`error`,this.onerror.bind(this)),ph(e,`close`,this.onclose.bind(this)),ph(this.decoder,`decoded`,this.ondecoded.bind(this)))}onping(){this.emitReserved(`ping`)}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose(`parse error`,e)}}ondecoded(e){am(()=>{this.emitReserved(`packet`,e)},this.setTimeoutFn)}onerror(e){this.emitReserved(`error`,e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new hh(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t)if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(`forced close`)}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)==null||n.close(),this.backoff.reset(),this._readyState=`closed`,this.emitReserved(`close`,e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(`reconnect_failed`),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(`reconnect_attempt`,e.backoff.attempts),!e.skipReconnect&&e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved(`reconnect_error`,t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(`reconnect`,e)}},vh={};function yh(e,t){typeof e==`object`&&(t=e,e=void 0),t||={};let n=Wm(e,t.path||`/socket.io`),r=n.source,i=n.id,a=n.path,o=vh[i]&&a in vh[i].nsps,s=t.forceNew||t[`force new connection`]||!1===t.multiplex||o,c;return s?c=new _h(r,t):(vh[i]||(vh[i]=new _h(r,t)),c=vh[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(yh,{Manager:_h,Socket:hh,io:yh,connect:yh});var bh=`modernAdmin:realtime`,xh=`/admin/realtime`;function Sh(e={}){return t=>{let n=yh(`${e.baseUrl??``}${xh}`,{withCredentials:e.withCredentials??!0}),r=e=>{e&&typeof e.resourceId==`string`&&t(e)};n.on(bh,r);let i=()=>{n.emit(`subscribe`,{all:!0})};return n.on(`connect`,i),()=>{n.off(bh,r),n.off(`connect`,i),n.disconnect()}}}function Ch(){return(0,F.jsxs)(`svg`,{className:`size-4`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:[(0,F.jsx)(`path`,{d:`M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z`}),(0,F.jsx)(`path`,{d:`M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z`}),(0,F.jsx)(`path`,{d:`M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l3.66-2.84z`}),(0,F.jsx)(`path`,{d:`M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z`})]})}function wh(){return(0,F.jsx)(`svg`,{className:`size-4`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,F.jsx)(`path`,{d:`M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z`})})}function Th(){return(0,F.jsx)(`svg`,{className:`size-4`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,F.jsx)(`path`,{d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.459 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zm3.378-3.066c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701z`})})}var Eh={google:{label:`Google`,icon:(0,F.jsx)(Ch,{})},github:{label:`GitHub`,icon:(0,F.jsx)(wh,{})},apple:{label:`Apple`,icon:(0,F.jsx)(Th,{})}};function Dh(e){return Eh[e]??{label:e.charAt(0).toUpperCase()+e.slice(1),icon:(0,F.jsx)(ut,{className:`size-4`,"aria-hidden":`true`})}}function Oh({size:e=`md`}){let t=e===`sm`?`size-8 rounded-lg`:`size-9 rounded-xl`,n=e===`sm`?`size-4`:`size-5`;return(0,F.jsx)(`span`,{className:`flex ${t} items-center justify-center bg-primary/10 ring-1 ring-primary/20`,children:(0,F.jsx)(st,{className:`${n} text-primary`,"aria-hidden":`true`})})}function kh({title:e,hint:t,tagline:n}){let{t:r}=N(),i=me(),a=he(),{data:o}=Te(),[s,c]=P.useState(``),[l,u]=P.useState(``),d=o?.providers??[],f=o===void 0||o.emailAndPassword,p=e=>{e.preventDefault(),!i.isPending&&i.mutate({email:s,password:l})},m=(()=>{let e=i.error;if(!e)return null;if(e instanceof de&&e.status===401)return r(`auth:loginFailed`);if(e instanceof de)try{let t=JSON.parse(e.message);if(t.message)return t.message}catch{}return e.message||r(`errors:server`)})(),h=e??r(`common:appName`),g=r(`auth:subtitle`),_=n??r(`auth:tagline`);return(0,F.jsxs)(`div`,{className:`grid min-h-screen grid-cols-1 bg-background lg:grid-cols-2`,children:[(0,F.jsxs)(`aside`,{className:`relative hidden flex-col justify-between border-r border-border bg-muted/30 p-10 lg:flex`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,F.jsx)(Oh,{}),(0,F.jsx)(`span`,{className:`text-base font-semibold tracking-tight`,children:r(`common:appName`)})]}),(0,F.jsx)(`p`,{className:`max-w-md text-sm text-muted-foreground`,children:_})]}),(0,F.jsx)(`main`,{className:`flex items-center justify-center p-6 sm:p-10`,children:(0,F.jsxs)(`div`,{className:`w-full max-w-sm`,children:[(0,F.jsxs)(`div`,{className:`mb-8 flex flex-col items-center gap-3 text-center`,children:[(0,F.jsx)(Oh,{}),(0,F.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight`,children:h}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:g})]}),d.length>0&&(0,F.jsx)(`div`,{className:`mb-4 flex flex-col gap-2`,children:d.map(e=>{let{label:t,icon:n}=Dh(e);return(0,F.jsxs)(ie,{type:`button`,variant:`outline`,className:`w-full gap-2`,disabled:a.isPending,onClick:()=>a.mutate(e),children:[n,r(`auth:continueWith`).replace(`{provider}`,t)]},e)})}),d.length>0&&f&&(0,F.jsxs)(`div`,{className:`relative mb-4 flex items-center gap-3`,children:[(0,F.jsx)(`div`,{className:`flex-1 border-t border-border`}),(0,F.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:r(`auth:orContinueWith`)}),(0,F.jsx)(`div`,{className:`flex-1 border-t border-border`})]}),f&&(0,F.jsxs)(`form`,{onSubmit:p,className:`flex flex-col gap-4`,children:[(0,F.jsxs)(oc,{children:[(0,F.jsx)(sc,{htmlFor:`login-email`,children:r(`auth:email`)}),(0,F.jsx)(Mt,{id:`login-email`,type:`email`,autoComplete:`email`,autoFocus:!0,required:!0,placeholder:`you@example.com`,value:s,onChange:e=>c(e.target.value),disabled:i.isPending})]}),(0,F.jsxs)(oc,{children:[(0,F.jsx)(sc,{htmlFor:`login-password`,children:r(`auth:password`)}),(0,F.jsx)(Nt,{id:`login-password`,autoComplete:`current-password`,required:!0,value:l,onChange:e=>u(e.target.value),disabled:i.isPending,toggleLabel:{show:r(`common:showPassword`),hide:r(`common:hidePassword`)}})]}),m&&(0,F.jsx)(lc,{children:m}),(0,F.jsxs)(ie,{type:`submit`,className:`mt-2 w-full gap-2`,disabled:i.isPending||!s||!l,children:[(0,F.jsx)(gt,{className:`size-4`}),r(`auth:login`)]}),t&&(0,F.jsx)(cc,{className:`text-center`,children:t})]})]})})]})}var Ah=P.lazy(()=>Tp(()=>import(`./home-page-eGVeZnKR.js`).then(e=>({default:e.HomePage})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url)),jh=P.lazy(()=>Tp(()=>import(`./audit-log-page-GHzf7mLS.js`).then(e=>({default:e.AuditLogPage})),__vite__mapDeps([26,1,2,27,4,5,28,29,7,8,9,10,11,30,31,22,14,32]),import.meta.url)),Mh=P.lazy(()=>Tp(()=>import(`./settings-page-3r5atVKG.js`).then(e=>({default:e.SettingsPage})),__vite__mapDeps([33,1,2,34,4,35,29,6,36,37,38,7,8,39,9,10,11,40,41,42,12,13,23,14]),import.meta.url)),Nh=P.lazy(()=>Tp(()=>import(`./property-renderer--LvNtRJE.js`).then(e=>e.i).then(e=>({default:e.ResourceListPage})),__vite__mapDeps([43,1,2,44,45,4,41,35,46,5,28,6,7,47,8,39,9,10,11,40,42,12,13,22,48,30,31,49,23,14,50,17,20,21,24,25]),import.meta.url)),Ph=P.lazy(()=>Tp(()=>import(`./show-page-CmRDBZRg.js`).then(e=>({default:e.ResourceShowPage})),__vite__mapDeps([51,1,2,4,41,5,47,8,11,49,46,14,15,10,43,44,45,35,28,6,7,39,9,40,42,12,13,22,48,30,31,23,50,17,20,21,24,25,52,53,32]),import.meta.url)),Fh=P.lazy(()=>Tp(()=>import(`./edit-page-C_QYbzrq.js`).then(e=>({default:e.ResourceEditPage})),__vite__mapDeps([54,1,2,4,41,6,36,55,7,8,12,13,9,10,11,49,46,47,14,56,19,43,44,45,35,5,28,39,40,42,22,48,30,31,23,50,17,20,21,24,25,52,53,32]),import.meta.url)),Ih=P.lazy(()=>Tp(()=>import(`./wizard-create-page-ChrGqxlO.js`).then(e=>({default:e.ResourceWizardCreatePage})),__vite__mapDeps([57,1,2,6,7,8,12,13,9,10,4,11,49,41,46,47,14,56,19,43,44,45,35,5,28,39,40,42,22,48,30,31,23,50,17,20,21,24,25]),import.meta.url)),Lh=P.lazy(()=>Tp(()=>import(`./action-page-BUTCUZ7e.js`).then(e=>({default:e.ResourceActionPage})),__vite__mapDeps([58,1,2,59,8,11,49,41,46,47,14]),import.meta.url));function Rh(){return(0,F.jsx)(`div`,{role:`status`,"aria-busy":`true`,className:`flex items-center justify-center py-24 text-muted-foreground`,children:(0,F.jsx)(ht,{className:`size-5 animate-spin`,"aria-hidden":`true`})})}var zh=Rf()({component:function(){let{ShellLayout:e}=zh.useRouteContext();return(0,F.jsx)(e,{children:(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(Rh,{}),children:(0,F.jsx)(Zf,{})})})}}),Bh=Lf({getParentRoute:()=>zh,path:`/`,component:function(){return(0,F.jsx)(Ah,{})}}),Vh=Lf({getParentRoute:()=>zh,path:`/audit-log`,component:function(){return(0,F.jsx)(jh,{})}}),Hh=Lf({getParentRoute:()=>zh,path:`/resources/$resourceId`,component:function(){let{resourceId:e}=Hh.useParams();return(0,F.jsx)(Nh,{resourceId:e})}});function Uh(){let{t:e}=N(),t=[{label:e(`wizard:products.step1`),properties:[`name`,`sku`,`inStock`]},{label:e(`wizard:products.step2`),properties:[`price`,`currencyCode`,`quantity`]},{label:e(`wizard:products.step3`)}];return(0,F.jsx)(Ih,{resourceId:`products`,steps:t})}var Wh=Lf({getParentRoute:()=>zh,path:`/resources/$resourceId/new`,component:function(){let{resourceId:e}=Wh.useParams();return e===`products`?(0,F.jsx)(Uh,{}):(0,F.jsx)(Fh,{resourceId:e})}}),Gh=Lf({getParentRoute:()=>zh,path:`/resources/$resourceId/$recordId`,component:function(){let{resourceId:e,recordId:t}=Gh.useParams();return(0,F.jsx)(Ph,{resourceId:e,recordId:t})}}),Kh=Lf({getParentRoute:()=>zh,path:`/resources/$resourceId/$recordId/edit`,component:function(){let{resourceId:e,recordId:t}=Kh.useParams();return(0,F.jsx)(Fh,{resourceId:e,recordId:t})}}),qh=Lf({getParentRoute:()=>zh,path:`/resources/$resourceId/actions/$actionName`,component:function(){let{resourceId:e,actionName:t}=qh.useParams(),n=Ae(),r=n.name===`action`?n.recordIds:void 0;return(0,F.jsx)(Lh,{resourceId:e,actionName:t,...r?{recordIds:r}:{}})}}),Jh=Lf({getParentRoute:()=>zh,path:`/resources/$resourceId/$recordId/actions/$actionName`,component:function(){let{resourceId:e,recordId:t,actionName:n}=Jh.useParams();return(0,F.jsx)(Lh,{resourceId:e,recordId:t,actionName:n})}}),Yh=Lf({getParentRoute:()=>zh,path:`/settings`,component:function(){return(0,F.jsx)(Mh,{})}}),Xh=Lf({getParentRoute:()=>zh,path:`/settings/$section`,component:function(){let{section:e}=Xh.useParams();return(0,F.jsx)(Mh,{section:e})}}),Zh=Lf({getParentRoute:()=>zh,path:`/ext/$extKey`,component:function(){let{extKey:e}=Zh.useParams(),t=Bl(e);return t?(0,F.jsx)(t.component,{}):(0,F.jsx)(`div`,{className:`flex flex-col items-center justify-center py-24 text-muted-foreground`,children:(0,F.jsxs)(`p`,{className:`text-sm`,children:[`Extension "`,e,`" not found.`]})})}}),Qh=zh.addChildren([Bh,Vh,Zh,Wh,qh,Jh,Kh,Gh,Hh,Xh,Yh]),$h=e=>{let t=e.startsWith(`?`)?e.slice(1):e;if(!t)return{};let n=new URLSearchParams(t),r={};return n.forEach((e,t)=>{r[t]=e}),r},eg=e=>{if(!e)return``;let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r==null||r===``||t.set(n,typeof r==`string`?r:String(r));let n=t.toString();return n?`?${n}`:``},tg={ShellLayout:()=>null};function ng(e){return np({routeTree:Qh,history:hd(),basepath:e||`/`,parseSearch:$h,stringifySearch:eg,context:tg,defaultPreload:!1,scrollRestoration:!1})}function rg({ShellLayout:e,basepath:t=``}){let n=P.useMemo(()=>!t||t===`/`?``:t.endsWith(`/`)?t.slice(0,-1):t,[t]),r=P.useMemo(()=>ng(n),[n]),i=P.useMemo(()=>({ShellLayout:e}),[e]);return(0,F.jsx)(Fe.Provider,{value:n,children:(0,F.jsx)(ap,{router:r,context:i})})}var ig=null,ag=null,og=new Set;function sg(){return ag??=Tp(()=>import(`./icon-registry-BroqBCns.js`).then(e=>{ig=e.icons;for(let e of og)e()}),__vite__mapDeps([60,1,3,44,59,61,45,62,34,27,4,21,41,63,35,46,5,28,64,13,29,65,6,53,36,55,37,38,42,7,47]),import.meta.url),ag}var cg=e=>(og.add(e),()=>og.delete(e)),lg=()=>ig;function ug({name:e,className:t}){let n=P.useSyncExternalStore(cg,lg,lg);return P.useEffect(()=>{e&&!ig&&sg()},[e]),(0,F.jsx)(e&&n?.[e]||st,{className:t})}var dg=P.lazy(()=>Tp(()=>import(`./ai-assistant-widget-B3Xy7bCi.js`).then(e=>({default:e.AiAssistantWidget})),__vite__mapDeps([66,1,2,34,65,6,7,8,39,11,23,14,50,17,18,19]),import.meta.url)),fg=P.lazy(()=>Tp(()=>import(`./global-search-dialog-DMgCfJpF.js`).then(e=>({default:e.GlobalSearchDialog})),__vite__mapDeps([67,1,2,61,38,7,11,24,25]),import.meta.url));function pg(e){let t=new Map,n=[];for(let r of e){if(r.navigation===null)continue;let e=r.navigation?.name??r.navigation?.group;if(e){let n=t.get(e)??[];n.push(r),t.set(e,n)}else n.push(r)}return{groups:Array.from(t.entries()).map(([e,t])=>({label:e,resources:t})),ungrouped:n}}var mg=`sidebar:groups:collapsed`;function hg(){if(typeof localStorage>`u`)return new Set;try{let e=localStorage.getItem(mg);return e?new Set(JSON.parse(e)):new Set}catch{return new Set}}function gg(e){if(!(typeof localStorage>`u`))try{localStorage.setItem(mg,JSON.stringify([...e]))}catch{}}function _g(e,t){return(e.name===`list`||e.name===`show`||e.name===`edit`||e.name===`new`)&&`resourceId`in e&&e.resourceId===t}function vg({resource:e,showId:t}){let n=_g(Ae(),e.id),r=e.name!==e.id,i=t&&r;return(0,F.jsx)(Yc,{children:(0,F.jsx)(Zc,{asChild:!0,isActive:n,tooltip:i?`${e.name} (${e.id})`:e.name,children:(0,F.jsxs)(Oe,{to:{name:`list`,resourceId:e.id},children:[(0,F.jsx)(ug,{name:e.navigation?.icon}),(0,F.jsxs)(`span`,{className:`min-w-0 flex-1 truncate`,children:[e.name,i&&(0,F.jsxs)(`span`,{className:`ml-0.5 text-xs opacity-60`,children:[` (`,e.id,`)`]})]})]})})})}function yg(){let{state:e,toggleSidebar:t}=Mc(),{t:n}=N(),r=e===`collapsed`;return(0,F.jsx)(`button`,{type:`button`,onClick:t,"aria-label":n(r?`common:expandSidebar`:`common:collapseSidebar`),className:`absolute right-0 top-24 z-50 hidden h-5 w-5 translate-x-1/2 items-center justify-center rounded-full border border-border bg-card shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground md:flex`,children:(0,F.jsx)(it,{className:`size-3 transition-transform duration-300`,style:{transform:r?`rotate(180deg)`:`rotate(0deg)`}})})}function bg({showResourceIds:e}){let t=Me(),n=le(),{t:r}=N(),i=Ae(),{data:a}=M(),o=a?.branding?.companyName??r(`common:appName`),{groups:s,ungrouped:c}=P.useMemo(()=>pg(t),[t]),{isMobile:l,setOpenMobile:u,state:d}=Mc(),[f,p]=P.useState(hg),m=P.useCallback(e=>{p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),gg(n),n})},[]),h=`${i.name}:${`resourceId`in i?i.resourceId:``}:${`recordId`in i?i.recordId:``}`;P.useEffect(()=>{l&&u(!1)},[h]);let g=i.name===`home`,_=i.name===`audit-log`;return(0,F.jsxs)(Ic,{collapsible:`icon`,labels:{sidebarTitle:r(`common:sidebarTitle`),navigationMenu:r(`common:sidebarNavigation`)},children:[(0,F.jsxs)(Bc,{className:`h-12 flex-row items-center gap-2 border-b border-border px-3 py-0 sm:h-14 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0`,children:[(0,F.jsx)(st,{className:`size-4 shrink-0 text-primary`}),(0,F.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:o})]}),(0,F.jsxs)(Uc,{children:[(0,F.jsx)(Wc,{children:(0,F.jsxs)(Jc,{children:[(0,F.jsx)(Yc,{children:(0,F.jsx)(Zc,{asChild:!0,isActive:g,tooltip:r(`common:home`),children:(0,F.jsxs)(Oe,{to:{name:`home`},children:[(0,F.jsx)(ft,{}),(0,F.jsx)(`span`,{children:r(`common:home`)})]})})}),n.auditLog&&(0,F.jsx)(Yc,{children:(0,F.jsx)(Zc,{asChild:!0,isActive:_,tooltip:r(`audit:title`),children:(0,F.jsxs)(Oe,{to:{name:`audit-log`},children:[(0,F.jsx)(dt,{}),(0,F.jsx)(`span`,{children:r(`audit:title`)})]})})}),Ll().filter(e=>!e.featureGate||!!n[e.featureGate]).map(e=>(0,F.jsx)(Yc,{children:(0,F.jsx)(Zc,{asChild:!0,isActive:i.name===`extension`&&i.key===e.extensionKey,tooltip:e.label,children:(0,F.jsxs)(Oe,{to:{name:`extension`,key:e.extensionKey},children:[(0,F.jsx)(e.icon,{}),(0,F.jsx)(`span`,{children:e.label})]})})},e.key)),c.map(t=>(0,F.jsx)(vg,{resource:t,showId:e},t.id))]})}),s.map(t=>{let n=d===`collapsed`||!f.has(t.label);return(0,F.jsxs)(Wc,{children:[(0,F.jsx)(Gc,{asChild:!0,children:(0,F.jsxs)(`button`,{type:`button`,className:`w-full cursor-pointer justify-between hover:bg-accent hover:text-accent-foreground`,onClick:()=>m(t.label),children:[t.label,(0,F.jsx)(rt,{className:y(`size-4 shrink-0 transition-transform duration-200`,!n&&`-rotate-90`)})]})}),n&&(0,F.jsx)(Jc,{children:t.resources.map(t=>(0,F.jsx)(vg,{resource:t,showId:e},t.id))})]},t.label)})]}),(0,F.jsx)(Vc,{}),(0,F.jsx)(yg,{})]})}function xg(e){let t=(e.name?.trim()||e.email?.trim()||e.id).split(/\s+|[._@-]/).filter(Boolean);return t.length===0?`?`:t.length===1?t[0].slice(0,2).toUpperCase():(t[0][0]+t[1][0]).toUpperCase()}function Sg({user:e}){let{t}=N(),n=A(),r=we(),i=le(),a=xg(e),o=e.name||e.email||e.id,s=i.apiKeys?`api-keys`:i.webhooks?`webhooks`:i.aiAssistant?`ai-assistant`:null;return(0,F.jsxs)($o,{children:[(0,F.jsx)(es,{asChild:!0,children:(0,F.jsxs)(ie,{variant:`ghost`,className:`h-9 gap-2 px-2`,"aria-label":o,children:[(0,F.jsxs)(on,{className:`size-7`,children:[e.avatarUrl&&(0,F.jsx)(sn,{src:e.avatarUrl,alt:o}),(0,F.jsx)(cn,{className:`text-xs`,children:a})]}),(0,F.jsx)(`span`,{className:`hidden max-w-[10rem] truncate text-sm sm:inline`,children:o})]})}),(0,F.jsxs)(as,{align:`end`,sideOffset:8,className:`w-56 p-1`,children:[(0,F.jsxs)(ls,{className:`flex items-center gap-2 px-3 py-2`,children:[(0,F.jsxs)(on,{className:`size-8`,children:[e.avatarUrl&&(0,F.jsx)(sn,{src:e.avatarUrl,alt:o}),(0,F.jsx)(cn,{className:`text-xs`,children:a})]}),(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,F.jsx)(`span`,{className:`truncate text-sm font-medium`,children:o}),e.email&&e.email!==o&&(0,F.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:e.email}),e.role&&(0,F.jsx)(`span`,{className:`truncate text-xs uppercase tracking-wide text-muted-foreground`,children:e.role})]})]}),s&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(us,{}),(0,F.jsxs)(os,{className:`gap-3 px-3 py-2`,onSelect:e=>{e.preventDefault(),r({name:`settings`,section:s})},children:[(0,F.jsx)(Ct,{className:`size-4 text-muted-foreground`}),(0,F.jsx)(`span`,{children:t(`settings:menuItem`)})]})]}),(0,F.jsx)(us,{}),(0,F.jsxs)(os,{className:`gap-3 px-3 py-2`,disabled:n.isPending,onSelect:e=>{e.preventDefault(),n.mutate()},children:[(0,F.jsx)(_t,{className:`size-4 text-muted-foreground`}),(0,F.jsx)(`span`,{children:t(`auth:logout`)})]})]})]})}function Cg({onOpen:e}){let{t}=N(),n=P.useMemo(()=>typeof navigator>`u`?!1:/Mac|iPhone|iPad|iPod/i.test(navigator.platform||navigator.userAgent),[]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(ie,{variant:`outline`,size:`sm`,onClick:e,"aria-label":t(`globalSearch:title`),className:`hidden h-9 w-full max-w-xs justify-start gap-2 px-3 text-muted-foreground sm:inline-flex`,children:[(0,F.jsx)(St,{className:`size-4`}),(0,F.jsx)(`span`,{className:`flex-1 truncate text-left text-sm`,children:t(`globalSearch:trigger`)}),(0,F.jsxs)(`kbd`,{className:`pointer-events-none ml-2 inline-flex h-5 select-none items-center gap-0.5 rounded border border-border bg-muted px-1.5 font-mono text-[10px] font-medium`,children:[n?(0,F.jsx)(`span`,{"aria-hidden":`true`,children:`⌘`}):(0,F.jsx)(`span`,{"aria-hidden":`true`,children:`Ctrl`}),(0,F.jsx)(`span`,{"aria-hidden":`true`,children:`K`})]})]}),(0,F.jsx)(ie,{variant:`ghost`,size:`icon`,onClick:e,"aria-label":t(`globalSearch:title`),className:`sm:hidden`,children:(0,F.jsx)(St,{className:`size-4`})})]})}function wg({user:e}){let{t}=N(),{setOpenMobile:n}=Mc(),[r,i]=P.useState(!1),a=P.useRef(!1);return r&&(a.current=!0),xp(`mod+k`,()=>i(e=>!e),{allowInInput:!0,description:t(`globalSearch:hotkey`),group:t(`common:search`)}),(0,F.jsxs)(`header`,{className:`sticky top-0 z-30 flex h-12 shrink-0 items-center gap-1 border-b border-border bg-card px-2 sm:h-14 sm:gap-3 sm:px-6`,children:[(0,F.jsx)(ie,{variant:`ghost`,size:`icon`,className:`md:hidden`,onClick:()=>n(!0),"aria-label":t(`common:openMenu`),children:(0,F.jsx)(vt,{className:`size-5`})}),(0,F.jsx)(Cg,{onOpen:()=>i(!0)}),(0,F.jsxs)(`div`,{className:`ml-auto flex items-center gap-1`,children:[(0,F.jsx)(Ep,{}),(0,F.jsx)(kp,{}),(0,F.jsx)(Op,{}),e?(0,F.jsx)(Sg,{user:e}):(0,F.jsx)(ie,{variant:`ghost`,size:`icon`,disabled:!0,"aria-label":t(`auth:login`),children:(0,F.jsx)(Tt,{className:`size-4 opacity-50`})})]}),(r||a.current)&&(0,F.jsx)(P.Suspense,{fallback:null,children:(0,F.jsx)(fg,{open:r,onOpenChange:i})})]})}function Tg(){let{t:e}=N();return(0,F.jsxs)(`div`,{role:`status`,"aria-busy":`true`,"aria-live":`polite`,className:`flex min-h-screen flex-col items-center justify-center gap-6 bg-background p-6`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,F.jsx)(`span`,{className:`flex size-12 items-center justify-center rounded-2xl bg-primary/10 ring-1 ring-primary/20`,children:(0,F.jsx)(st,{className:`size-6 text-primary`})}),(0,F.jsx)(`span`,{className:`text-xl font-semibold tracking-tight`,children:e(`common:appName`)})]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,F.jsx)(ht,{className:`size-4 animate-spin`,"aria-hidden":`true`}),(0,F.jsx)(`span`,{children:e(`common:loading`)})]})]})}function Eg(){let e=Ne();return Ap(P.useMemo(()=>Sh({baseUrl:e.apiBaseUrl}),[e])),null}function Dg({children:e,showSidebarResourceIds:t}){let{user:n}=j(),r=le();return(0,F.jsx)(dp,{children:(0,F.jsx)(cp,{children:(0,F.jsxs)(Pc,{children:[(0,F.jsx)(bg,{showResourceIds:t}),(0,F.jsxs)(zc,{className:`h-svh min-w-0 overflow-hidden`,children:[(0,F.jsx)(wg,{user:n}),(0,F.jsx)(`main`,{className:`min-h-0 min-w-0 flex-1 overflow-auto px-2 pt-2 sm:px-6 sm:pt-6`,children:e}),r.aiAssistant&&(0,F.jsx)(P.Suspense,{fallback:null,children:(0,F.jsx)(dg,{})}),r.realtime&&(0,F.jsx)(Eg,{})]}),(0,F.jsx)(W,{})]})})})}function Og({loginHint:e,basePath:t,showSidebarResourceIds:n}={}){let{user:r,isLoading:i,isAuthenticated:a}=j();M();let o=n??!1,s=P.useMemo(()=>function({children:e}){return(0,F.jsx)(Dg,{showSidebarResourceIds:o,children:e})},[o]);return i?(0,F.jsx)(Tg,{}):!a||!r?(0,F.jsx)(kh,{hint:e}):(0,F.jsx)(rg,{ShellLayout:s,basepath:t??``})}var kg=tt();function Ag({config:e,components:t}){return(0,F.jsx)(oe,{locales:(0,P.useMemo)(()=>{if(!e.locales||e.locales.length===0)return Ie;let t=new Set(e.locales),n=Ie.filter(e=>t.has(e.code));return n.length>0?n:Ie},[e.locales]),defaultLocale:e.defaultLocale,fallbackLocale:e.fallbackLocale,metadataTranslations:e.metadataTranslations,children:(0,F.jsx)(ke,{components:t,clientOptions:{baseUrl:e.apiUrl,credentials:e.credentials??`include`,headers:e.headers,persistDemoSession:e.persistDemoSession,authBasePath:e.authBasePath},children:(0,F.jsx)(Og,{loginHint:e.loginHint,basePath:e.basePath,showSidebarResourceIds:e.showSidebarResourceIds})})})}function jg(e,t){jt();let n=(0,kg.createRoot)(e);return n.render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(Ag,{config:t.config,components:t.components})})),{unmount:()=>n.unmount()}}function Mg(){return typeof window>`u`?{}:window.__MODERN_ADMIN__??{}}var Ng=document.getElementById(`root`);if(!Ng)throw Error(`[modern-admin] expected #root container in the host page`);jg(Ng,{config:Mg()});export{St as $,is as A,Ar as B,ss as C,ts as D,ls as E,zr as F,Bt as G,ir as H,Lr as I,Nt as J,zt as K,Ir as L,es as M,Mr as N,us as O,Fr as P,Ct as Q,Rr as R,$o as S,os as T,nr as U,vr as V,hn as W,Tt as X,Mt as Y,wt as Z,tc as _,it as _t,zl as a,gt as at,ec as b,_c as c,pt as ct,Sc as d,ut as dt,xt as et,wc as f,lt as ft,sc as g,at as gt,lc as h,ot as ht,G as i,_t as it,rs as j,ns as k,xc as l,ft as lt,oc as m,st as mt,xp as n,yt as nt,Rl as o,ht as ot,gc as p,ct as pt,Rt as q,lp as r,vt as rt,hc as s,mt as st,Tp as t,bt as tt,Tc as u,dt as ut,nc as v,rt as vt,as as w,$s as x,Qs as y,nt as yt,jr as z};
|
|
15
|
-
//# sourceMappingURL=index-
|
|
14
|
+
`)||``)},open:async()=>void 0}}var up=P.createContext({register:()=>()=>{},list:[]});function dp({children:e}){let[t,n]=P.useState([]),r=P.useRef(e=>(n(t=>[...t,e]),()=>{n(t=>t.filter(t=>t!==e))})).current,i=P.useMemo(()=>({register:r,list:t}),[r,t]);return(0,F.jsx)(up.Provider,{value:i,children:e})}function fp(){return P.useContext(up).list}function pp(){return P.useContext(up).register}var mp={esc:`escape`,space:` `,spacebar:` `,return:`enter`,del:`delete`};function hp(e){return/^[a-z]$/.test(e)?`Key${e.toUpperCase()}`:/^[0-9]$/.test(e)?`Digit${e}`:null}function gp(e){let t=e.toLowerCase().split(`+`).map(e=>e.trim()).filter(Boolean),n=t[t.length-1]??``,r=mp[n]??n,i=hp(r),a=t.some(e=>e===`mod`||e===`ctrl`||e===`meta`||e===`cmd`),o=t.includes(`shift`),s=t.includes(`alt`)||t.includes(`option`);return{key:r,code:i,mod:a,shift:o,alt:s,hasModifier:a||s}}function _p(e){return typeof e.key==`string`?e.key.toLowerCase():null}function vp(e){return typeof e.code==`string`&&e.code.length>0?e.code:null}function yp(e,t){if(e.code){let n=vp(t);if(!n||n!==e.code)return!1}else{let n=_p(t);if(!n||n!==e.key)return!1}let n=t.ctrlKey||t.metaKey;return!(e.mod!==n||e.alt!==t.altKey||e.shift&&!t.shiftKey)}function bp(e){if(!(e instanceof HTMLElement))return!1;let t=e.tagName;return t===`INPUT`||t===`TEXTAREA`||t===`SELECT`||e.isContentEditable}function xp(e,t,n={}){let{enabled:r=!0,allowInInput:i,preventDefault:a=!0,description:o,group:s}=n,c=P.useRef(t);P.useEffect(()=>{c.current=t},[t]);let l=Array.isArray(e)?e.join(`|`):e,u=pp();P.useEffect(()=>{if(!r)return;let e=l.split(`|`).map(gp),t=t=>{let n=e.find(e=>yp(e,t));n&&(!(i??n.hasModifier)&&bp(t.target)||(a&&t.preventDefault(),c.current(t)))};return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[l,r,i,a]),P.useEffect(()=>{if(!(!r||!o))return u({keys:l,description:o,group:s})},[r,o,s,l,u])}var Sp=`modulepreload`,Cp=function(e,t){return new URL(e,t).href},wp={},Tp=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=Cp(t,n),t=s(t),t in wp)return;wp[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Sp,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Ep(){let[e,t]=P.useState(!1),n=fp(),{t:r}=N(),i=r(`common:shortcutsHelp`);return xp(`?`,()=>t(e=>!e),{description:i}),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Qs,{children:[(0,F.jsx)($s,{asChild:!0,children:(0,F.jsx)(ie,{variant:`ghost`,size:`icon`,onClick:()=>t(!0),"aria-label":i,className:`hidden md:inline-flex`,children:(0,F.jsx)(pt,{className:`size-4`})})}),(0,F.jsxs)(ec,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(`span`,{children:i}),(0,F.jsx)(tc,{children:`?`})]})]}),(0,F.jsx)(ic,{open:e,onOpenChange:t,items:n,title:i,emptyMessage:r(`common:shortcutsEmpty`)})]})}function Dp({icon:e,label:t,active:n,onSelect:r}){return(0,F.jsxs)(os,{onSelect:e=>{e.preventDefault(),r()},className:`gap-3 px-3 py-2`,children:[e&&(0,F.jsx)(`span`,{className:`flex size-4 items-center justify-center text-muted-foreground`,children:e}),(0,F.jsx)(`span`,{className:`flex-1 truncate`,children:t}),n&&(0,F.jsx)(nt,{className:`size-4 text-primary`})]})}function Op(){let{t:e}=N(),[t,n]=P.useState(()=>kt()),r=e=>{At(e),n(e)},i=t===`dark`?bt:t===`light`?wt:yt;return(0,F.jsxs)($o,{children:[(0,F.jsx)(es,{asChild:!0,children:(0,F.jsx)(ie,{variant:`ghost`,size:`icon`,"aria-label":e(`common:toggleTheme`),children:(0,F.jsx)(i,{className:`size-4`})})}),(0,F.jsxs)(as,{align:`end`,sideOffset:8,className:`w-44 p-1`,children:[(0,F.jsx)(ls,{className:`px-3 py-2 text-xs uppercase tracking-wide text-muted-foreground`,children:e(`common:theme`)}),(0,F.jsx)(us,{}),(0,F.jsx)(Dp,{icon:(0,F.jsx)(wt,{className:`size-4`}),label:e(`common:themeLight`),active:t===`light`,onSelect:()=>r(`light`)}),(0,F.jsx)(Dp,{icon:(0,F.jsx)(bt,{className:`size-4`}),label:e(`common:themeDark`),active:t===`dark`,onSelect:()=>r(`dark`)}),(0,F.jsx)(Dp,{icon:(0,F.jsx)(yt,{className:`size-4`}),label:e(`common:themeSystem`),active:t===`system`,onSelect:()=>r(`system`)})]})]})}function kp(){let{locale:e,setLocale:t,availableLocales:n,t:r}=N(),i=n();return i.length<=1?null:(0,F.jsxs)($o,{children:[(0,F.jsx)(es,{asChild:!0,children:(0,F.jsxs)(ie,{variant:`ghost`,size:`sm`,className:`gap-2`,children:[(0,F.jsx)(mt,{className:`size-4`}),(0,F.jsx)(`span`,{className:`text-xs uppercase`,children:e})]})}),(0,F.jsxs)(as,{align:`end`,sideOffset:8,className:`w-52 p-1`,children:[(0,F.jsx)(ls,{className:`px-3 py-2 text-xs uppercase tracking-wide text-muted-foreground`,children:r(`common:language`)}),(0,F.jsx)(us,{}),(0,F.jsx)(nr,{className:`max-h-72`,children:i.map(n=>(0,F.jsx)(Dp,{label:n.name,active:n.code===e,onSelect:()=>t(n.code)},n.code))})]})]})}function Ap(e){let t=Ce();(0,P.useEffect)(()=>{if(e)return e(e=>{se(t,e.resourceId)})},[t,e])}var jp=Object.create(null);jp.open=`0`,jp.close=`1`,jp.ping=`2`,jp.pong=`3`,jp.message=`4`,jp.upgrade=`5`,jp.noop=`6`;var Mp=Object.create(null);Object.keys(jp).forEach(e=>{Mp[jp[e]]=e});var Np={type:`error`,data:`parser error`},Pp=typeof Blob==`function`||typeof Blob<`u`&&Object.prototype.toString.call(Blob)===`[object BlobConstructor]`,Fp=typeof ArrayBuffer==`function`,Ip=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Lp=({type:e,data:t},n,r)=>Pp&&t instanceof Blob?n?r(t):Rp(t,r):Fp&&(t instanceof ArrayBuffer||Ip(t))?n?r(t):Rp(new Blob([t]),r):r(jp[e]+(t||``)),Rp=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(`,`)[1];t(`b`+(e||``))},n.readAsDataURL(e)};function zp(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Bp;function Vp(e,t){if(Pp&&e.data instanceof Blob)return e.data.arrayBuffer().then(zp).then(t);if(Fp&&(e.data instanceof ArrayBuffer||Ip(e.data)))return t(zp(e.data));Lp(e,!1,e=>{Bp||=new TextEncoder,t(Bp.encode(e))})}var Hp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Up=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(let e=0;e<64;e++)Up[Hp.charCodeAt(e)]=e;var Wp=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);let l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)a=Up[e.charCodeAt(r)],o=Up[e.charCodeAt(r+1)],s=Up[e.charCodeAt(r+2)],c=Up[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},Gp=typeof ArrayBuffer==`function`,Kp=(e,t)=>{if(typeof e!=`string`)return{type:`message`,data:Jp(e,t)};let n=e.charAt(0);return n===`b`?{type:`message`,data:qp(e.substring(1),t)}:Mp[n]?e.length>1?{type:Mp[n],data:e.substring(1)}:{type:Mp[n]}:Np},qp=(e,t)=>Gp?Jp(Wp(e),t):{base64:!0,data:e},Jp=(e,t)=>{switch(t){case`blob`:return e instanceof Blob?e:new Blob([e]);default:return e instanceof ArrayBuffer?e:e.buffer}},Yp=``,Xp=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,a)=>{Lp(e,!1,e=>{r[a]=e,++i===n&&t(r.join(Yp))})})},Zp=(e,t)=>{let n=e.split(Yp),r=[];for(let e=0;e<n.length;e++){let i=Kp(n[e],t);if(r.push(i),i.type===`error`)break}return r};function Qp(){return new TransformStream({transform(e,t){Vp(e,n=>{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);let e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!=`string`&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}var $p;function em(e){return e.reduce((e,t)=>e+t.length,0)}function tm(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function nm(e,t){$p||=new TextDecoder;let n=[],r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(em(n)<1)break;let e=tm(n,1);a=(e[0]&128)==128,i=e[0]&127,r=i<126?3:i===126?1:2}else if(r===1){if(em(n)<2)break;let e=tm(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(r===2){if(em(n)<8)break;let e=tm(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>2**21-1){s.enqueue(Np);break}i=a*2**32+t.getUint32(4),r=3}else{if(em(n)<i)break;let e=tm(n,i);s.enqueue(Kp(a?e:$p.decode(e),t)),r=0}if(i===0||i>e){s.enqueue(Np);break}}}})}function rm(e){if(e)return im(e)}function im(e){for(var t in rm.prototype)e[t]=rm.prototype[t];return e}rm.prototype.on=rm.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[`$`+e]=this._callbacks[`$`+e]||[]).push(t),this},rm.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},rm.prototype.off=rm.prototype.removeListener=rm.prototype.removeAllListeners=rm.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[`$`+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[`$`+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks[`$`+e],this},rm.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks[`$`+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},rm.prototype.emitReserved=rm.prototype.emit,rm.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[`$`+e]||[]},rm.prototype.hasListeners=function(e){return!!this.listeners(e).length};var am=typeof Promise==`function`&&typeof Promise.resolve==`function`?e=>Promise.resolve().then(e):(e,t)=>t(e,0),om=typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)(),sm=`arraybuffer`;function cm(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}var lm=om.setTimeout,um=om.clearTimeout;function dm(e,t){t.useNativeTimers?(e.setTimeoutFn=lm.bind(om),e.clearTimeoutFn=um.bind(om)):(e.setTimeoutFn=om.setTimeout.bind(om),e.clearTimeoutFn=om.clearTimeout.bind(om))}var fm=1.33;function pm(e){return typeof e==`string`?mm(e):Math.ceil((e.byteLength||e.size)*fm)}function mm(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function hm(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function gm(e){let t=``;for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=`&`),t+=encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t}function _m(e){let t={},n=e.split(`&`);for(let e=0,r=n.length;e<r;e++){let r=n[e].split(`=`);t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}var vm=class extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type=`TransportError`}},ym=class extends rm{constructor(e){super(),this.writable=!1,dm(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved(`error`,new vm(e,t,n)),this}open(){return this.readyState=`opening`,this.doOpen(),this}close(){return(this.readyState===`opening`||this.readyState===`open`)&&(this.doClose(),this.onClose()),this}send(e){this.readyState===`open`&&this.write(e)}onOpen(){this.readyState=`open`,this.writable=!0,super.emitReserved(`open`)}onData(e){let t=Kp(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved(`packet`,e)}onClose(e){this.readyState=`closed`,super.emitReserved(`close`,e)}pause(e){}createUri(e,t={}){return e+`://`+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(`:`)===-1?e:`[`+e+`]`}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?`:`+this.opts.port:``}_query(e){let t=gm(e);return t.length?`?`+t:``}},bm=class extends ym{constructor(){super(...arguments),this._polling=!1}get name(){return`polling`}doOpen(){this._poll()}pause(e){this.readyState=`pausing`;let t=()=>{this.readyState=`paused`,e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once(`pollComplete`,function(){--e||t()})),this.writable||(e++,this.once(`drain`,function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(`poll`)}onData(e){Zp(e,this.socket.binaryType).forEach(e=>{if(this.readyState===`opening`&&e.type===`open`&&this.onOpen(),e.type===`close`)return this.onClose({description:`transport closed by the server`}),!1;this.onPacket(e)}),this.readyState!==`closed`&&(this._polling=!1,this.emitReserved(`pollComplete`),this.readyState===`open`&&this._poll())}doClose(){let e=()=>{this.write([{type:`close`}])};this.readyState===`open`?e():this.once(`open`,e)}write(e){this.writable=!1,Xp(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved(`drain`)})})}uri(){let e=this.opts.secure?`https`:`http`,t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=hm()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},xm=!1;try{xm=typeof XMLHttpRequest<`u`&&`withCredentials`in new XMLHttpRequest}catch{}var Sm=xm;function Cm(){}var wm=class extends bm{constructor(e){if(super(e),typeof location<`u`){let t=location.protocol===`https:`,n=location.port;n||=t?`443`:`80`,this.xd=typeof location<`u`&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:`POST`,data:e});n.on(`success`,t),n.on(`error`,(e,t)=>{this.onError(`xhr post error`,e,t)})}doPoll(){let e=this.request();e.on(`data`,this.onData.bind(this)),e.on(`error`,(e,t)=>{this.onError(`xhr poll error`,e,t)}),this.pollXhr=e}},Tm=class e extends rm{constructor(e,t,n){super(),this.createRequest=e,dm(this,n),this._opts=n,this._method=n.method||`GET`,this._uri=t,this._data=n.data===void 0?null:n.data,this._create()}_create(){var t;let n=cm(this._opts,`agent`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`autoUnref`);n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch{}if(this._method===`POST`)try{r.setRequestHeader(`Content-type`,`text/plain;charset=UTF-8`)}catch{}try{r.setRequestHeader(`Accept`,`*/*`)}catch{}(t=this._opts.cookieJar)==null||t.addCookies(r),`withCredentials`in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;r.readyState===3&&((e=this._opts.cookieJar)==null||e.parseCookies(r.getResponseHeader(`set-cookie`))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==`number`?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}typeof document<`u`&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(e){this.emitReserved(`error`,e,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(this._xhr===void 0||this._xhr===null)){if(this._xhr.onreadystatechange=Cm,t)try{this._xhr.abort()}catch{}typeof document<`u`&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved(`data`,e),this.emitReserved(`success`),this._cleanup())}abort(){this._cleanup()}};if(Tm.requestsCount=0,Tm.requests={},typeof document<`u`){if(typeof attachEvent==`function`)attachEvent(`onunload`,Em);else if(typeof addEventListener==`function`){let e=`onpagehide`in om?`pagehide`:`unload`;addEventListener(e,Em,!1)}}function Em(){for(let e in Tm.requests)Tm.requests.hasOwnProperty(e)&&Tm.requests[e].abort()}var Dm=(function(){let e=km({xdomain:!1});return e&&e.responseType!==null})(),Om=class extends wm{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=Dm&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Tm(km,this.uri(),e)}};function km(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<`u`&&(!t||Sm))return new XMLHttpRequest}catch{}if(!t)try{return new om[[`Active`,`Object`].join(`X`)](`Microsoft.XMLHTTP`)}catch{}}var Am=typeof navigator<`u`&&typeof navigator.product==`string`&&navigator.product.toLowerCase()===`reactnative`,jm=class extends ym{get name(){return`websocket`}doOpen(){let e=this.uri(),t=this.opts.protocols,n=Am?{}:cm(this.opts,`agent`,`perMessageDeflate`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`localAddress`,`protocolVersion`,`origin`,`maxPayload`,`family`,`checkServerIdentity`);this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved(`error`,e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:`websocket connection closed`,context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(`websocket error`,e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;Lp(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch{}r&&am(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?`wss`:`ws`,t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=hm()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Mm=om.WebSocket||om.MozWebSocket,Nm={websocket:class extends jm{createSocket(e,t,n){return Am?new Mm(e,t,n):t?new Mm(e,t):new Mm(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends ym{get name(){return`webtransport`}doOpen(){try{this._transport=new WebTransport(this.createUri(`https`),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved(`error`,e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError(`webtransport error`,e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=nm(2**53-1,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=Qp();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();let i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let a={type:`open`};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&am(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)==null||e.close()}},polling:Om},Pm=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Fm=[`source`,`protocol`,`authority`,`userInfo`,`user`,`password`,`host`,`port`,`relative`,`path`,`directory`,`file`,`query`,`anchor`];function Im(e){if(e.length>8e3)throw`URI too long`;let t=e,n=e.indexOf(`[`),r=e.indexOf(`]`);n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,`;`)+e.substring(r,e.length));let i=Pm.exec(e||``),a={},o=14;for(;o--;)a[Fm[o]]=i[o]||``;return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,`:`),a.authority=a.authority.replace(`[`,``).replace(`]`,``).replace(/;/g,`:`),a.ipv6uri=!0),a.pathNames=Lm(a,a.path),a.queryKey=Rm(a,a.query),a}function Lm(e,t){let n=t.replace(/\/{2,9}/g,`/`).split(`/`);return(t.slice(0,1)==`/`||t.length===0)&&n.splice(0,1),t.slice(-1)==`/`&&n.splice(n.length-1,1),n}function Rm(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}var zm=typeof addEventListener==`function`&&typeof removeEventListener==`function`,Bm=[];zm&&addEventListener(`offline`,()=>{Bm.forEach(e=>e())},!1);var Vm=class e extends rm{constructor(e,t){if(super(),this.binaryType=sm,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==`object`&&(t=e,e=null),e){let n=Im(e);t.hostname=n.host,t.secure=n.protocol===`https`||n.protocol===`wss`,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Im(t.host).host);dm(this,t),this.secure=t.secure==null?typeof location<`u`&&location.protocol===`https:`:t.secure,t.hostname&&!t.port&&(t.port=this.secure?`443`:`80`),this.hostname=t.hostname||(typeof location<`u`?location.hostname:`localhost`),this.port=t.port||(typeof location<`u`&&location.port?location.port:this.secure?`443`:`80`),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:`/engine.io`,agent:!1,withCredentials:!1,upgrade:!0,timestampParam:`t`,rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,``)+(this.opts.addTrailingSlash?`/`:``),typeof this.opts.query==`string`&&(this.opts.query=_m(this.opts.query)),zm&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener(`beforeunload`,this._beforeunloadEventListener,!1)),this.hostname!==`localhost`&&(this._offlineEventListener=()=>{this._onClose(`transport close`,{description:`network connection lost`})},Bm.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(`error`,`No transports available`)},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(`websocket`)!==-1?`websocket`:this.transports[0];this.readyState=`opening`;let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(`drain`,this._onDrain.bind(this)).on(`packet`,this._onPacket.bind(this)).on(`error`,this._onError.bind(this)).on(`close`,e=>this._onClose(`transport close`,e))}onOpen(){this.readyState=`open`,e.priorWebsocketSuccess=this.transport.name===`websocket`,this.emitReserved(`open`),this.flush()}_onPacket(e){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`)switch(this.emitReserved(`packet`,e),this.emitReserved(`heartbeat`),e.type){case`open`:this.onHandshake(JSON.parse(e.data));break;case`ping`:this._sendPacket(`pong`),this.emitReserved(`ping`),this.emitReserved(`pong`),this._resetPingTimeout();break;case`error`:let t=Error(`server error`);t.code=e.data,this._onError(t);break;case`message`:this.emitReserved(`data`,e.data),this.emitReserved(`message`,e.data);break}}onHandshake(e){this.emitReserved(`handshake`,e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==`closed`&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(`ping timeout`)},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved(`drain`):this.flush()}flush(){if(this.readyState!==`closed`&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(`flush`)}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===`polling`&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+=pm(n)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,am(()=>{this._onClose(`ping timeout`)},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket(`message`,e,t,n),this}send(e,t,n){return this._sendPacket(`message`,e,t,n),this}_sendPacket(e,t,n,r){if(typeof t==`function`&&(r=t,t=void 0),typeof n==`function`&&(r=n,n=null),this.readyState===`closing`||this.readyState===`closed`)return;n||={},n.compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved(`packetCreate`,i),this.writeBuffer.push(i),r&&this.once(`flush`,r),this.flush()}close(){let e=()=>{this._onClose(`forced close`),this.transport.close()},t=()=>{this.off(`upgrade`,t),this.off(`upgradeError`,t),e()},n=()=>{this.once(`upgrade`,t),this.once(`upgradeError`,t)};return(this.readyState===`opening`||this.readyState===`open`)&&(this.readyState=`closing`,this.writeBuffer.length?this.once(`drain`,()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===`opening`)return this.transports.shift(),this._open();this.emitReserved(`error`,t),this._onClose(`transport error`,t)}_onClose(e,t){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners(`close`),this.transport.close(),this.transport.removeAllListeners(),zm&&(this._beforeunloadEventListener&&removeEventListener(`beforeunload`,this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=Bm.indexOf(this._offlineEventListener);e!==-1&&Bm.splice(e,1)}this.readyState=`closed`,this.id=null,this.emitReserved(`close`,e,t),this.writeBuffer=[],this._prevBufferLen=0}}};Vm.protocol=4;var Hm=class extends Vm{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===`open`&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;Vm.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:`ping`,data:`probe`}]),t.once(`packet`,e=>{if(!n)if(e.type===`pong`&&e.data===`probe`){if(this.upgrading=!0,this.emitReserved(`upgrading`,t),!t)return;Vm.priorWebsocketSuccess=t.name===`websocket`,this.transport.pause(()=>{n||this.readyState!==`closed`&&(l(),this.setTransport(t),t.send([{type:`upgrade`}]),this.emitReserved(`upgrade`,t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error(`probe error`);e.transport=t.name,this.emitReserved(`upgradeError`,e)}}))};function i(){n||(n=!0,l(),t.close(),t=null)}let a=e=>{let n=Error(`probe error: `+e);n.transport=t.name,i(),this.emitReserved(`upgradeError`,n)};function o(){a(`transport closed`)}function s(){a(`socket closed`)}function c(e){t&&e.name!==t.name&&i()}let l=()=>{t.removeListener(`open`,r),t.removeListener(`error`,a),t.removeListener(`close`,o),this.off(`close`,s),this.off(`upgrading`,c)};t.once(`open`,r),t.once(`error`,a),t.once(`close`,o),this.once(`close`,s),this.once(`upgrading`,c),this._upgrades.indexOf(`webtransport`)!==-1&&e!==`webtransport`?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}},Um=class extends Hm{constructor(e,t={}){let n=typeof e==`object`,r=n?{...e}:{...t};(!r.transports||r.transports&&typeof r.transports[0]==`string`)&&(r.transports=(r.transports||[`polling`,`websocket`,`webtransport`]).map(e=>Nm[e]).filter(e=>!!e)),super(n?r:e,r)}};Um.protocol;function Wm(e,t=``,n){let r=e;n||=typeof location<`u`&&location,e??=n.protocol+`//`+n.host,typeof e==`string`&&(e.charAt(0)===`/`&&(e=e.charAt(1)===`/`?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=n===void 0?`https://`+e:n.protocol+`//`+e),r=Im(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=`80`:/^(http|ws)s$/.test(r.protocol)&&(r.port=`443`)),r.path=r.path||`/`;let i=r.host.indexOf(`:`)===-1?r.host:`[`+r.host+`]`;return r.id=r.protocol+`://`+i+`:`+r.port+t,r.href=r.protocol+`://`+i+(n&&n.port===r.port?``:`:`+r.port),r}var Gm=typeof ArrayBuffer==`function`,Km=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,qm=Object.prototype.toString,Jm=typeof Blob==`function`||typeof Blob<`u`&&qm.call(Blob)===`[object BlobConstructor]`,Ym=typeof File==`function`||typeof File<`u`&&qm.call(File)===`[object FileConstructor]`;function Xm(e){return Gm&&(e instanceof ArrayBuffer||Km(e))||Jm&&e instanceof Blob||Ym&&e instanceof File}function Zm(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(Zm(e[t]))return!0;return!1}if(Xm(e))return!0;if(e.toJSON&&typeof e.toJSON==`function`&&arguments.length===1)return Zm(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&Zm(e[t]))return!0;return!1}function Qm(e){let t=[],n=e.data,r=e;return r.data=$m(n,t),r.attachments=t.length,{packet:r,buffers:t}}function $m(e,t){if(!e)return e;if(Xm(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=$m(e[r],t);return n}else if(typeof e==`object`&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=$m(e[r],t));return n}return e}function eh(e,t){return e.data=th(e.data,t),delete e.attachments,e}function th(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==`number`&&e.num>=0&&e.num<t.length)return t[e.num];throw Error(`illegal attachments`)}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=th(e[n],t);else if(typeof e==`object`)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=th(e[n],t));return e}var nh=t({Decoder:()=>ah,Encoder:()=>ih,PacketType:()=>$,isPacketValid:()=>fh,protocol:()=>5}),rh=[`connect`,`connect_error`,`disconnect`,`disconnecting`,`newListener`,`removeListener`],$;(function(e){e[e.CONNECT=0]=`CONNECT`,e[e.DISCONNECT=1]=`DISCONNECT`,e[e.EVENT=2]=`EVENT`,e[e.ACK=3]=`ACK`,e[e.CONNECT_ERROR=4]=`CONNECT_ERROR`,e[e.BINARY_EVENT=5]=`BINARY_EVENT`,e[e.BINARY_ACK=6]=`BINARY_ACK`})($||={});var ih=class{constructor(e){this.replacer=e}encode(e){return(e.type===$.EVENT||e.type===$.ACK)&&Zm(e)?this.encodeAsBinary({type:e.type===$.EVENT?$.BINARY_EVENT:$.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=``+e.type;return(e.type===$.BINARY_EVENT||e.type===$.BINARY_ACK)&&(t+=e.attachments+`-`),e.nsp&&e.nsp!==`/`&&(t+=e.nsp+`,`),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=Qm(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},ah=class e extends rm{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==`function`?{reviver:e}:e)}add(e){let t;if(typeof e==`string`){if(this.reconstructor)throw Error(`got plaintext data when reconstructing a packet`);t=this.decodeString(e);let n=t.type===$.BINARY_EVENT;n||t.type===$.BINARY_ACK?(t.type=n?$.EVENT:$.ACK,this.reconstructor=new oh(t),t.attachments===0&&super.emitReserved(`decoded`,t)):super.emitReserved(`decoded`,t)}else if(Xm(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved(`decoded`,t));else throw Error(`got binary data when not reconstructing a packet`);else throw Error(`Unknown type: `+e)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if($[r.type]===void 0)throw Error(`unknown packet type `+r.type);if(r.type===$.BINARY_EVENT||r.type===$.BINARY_ACK){let e=n+1;for(;t.charAt(++n)!==`-`&&n!=t.length;);let i=t.substring(e,n);if(i!=Number(i)||t.charAt(n)!==`-`)throw Error(`Illegal attachments`);let a=Number(i);if(!ch(a)||a<0)throw Error(`Illegal attachments`);if(a>this.opts.maxAttachments)throw Error(`too many attachments`);r.attachments=a}if(t.charAt(n+1)===`/`){let e=n+1;for(;++n&&!(t.charAt(n)===`,`||n===t.length););r.nsp=t.substring(e,n)}else r.nsp=`/`;let i=t.charAt(n+1);if(i!==``&&Number(i)==i){let e=n+1;for(;++n;){let e=t.charAt(n);if(e==null||Number(e)!=e){--n;break}if(n===t.length)break}r.id=Number(t.substring(e,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw Error(`invalid payload`)}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case $.CONNECT:return uh(t);case $.DISCONNECT:return t===void 0;case $.CONNECT_ERROR:return typeof t==`string`||uh(t);case $.EVENT:case $.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&rh.indexOf(t[0])===-1);case $.ACK:case $.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&=(this.reconstructor.finishedReconstruction(),null)}},oh=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=eh(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function sh(e){return typeof e==`string`}var ch=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e};function lh(e){return e===void 0||ch(e)}function uh(e){return Object.prototype.toString.call(e)===`[object Object]`}function dh(e,t){switch(e){case $.CONNECT:return t===void 0||uh(t);case $.DISCONNECT:return t===void 0;case $.EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&rh.indexOf(t[0])===-1);case $.ACK:return Array.isArray(t);case $.CONNECT_ERROR:return typeof t==`string`||uh(t);default:return!1}}function fh(e){return sh(e.nsp)&&lh(e.id)&&dh(e.type,e.data)}function ph(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var mh=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),hh=class extends rm{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[ph(e,`open`,this.onopen.bind(this)),ph(e,`packet`,this.onpacket.bind(this)),ph(e,`error`,this.onerror.bind(this)),ph(e,`close`,this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState===`open`&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift(`message`),this.emit.apply(this,e),this}emit(e,...t){if(mh.hasOwnProperty(e))throw Error(`"`+e.toString()+`" is a reserved event name`);if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:$.EVENT,data:t};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof t[t.length-1]==`function`){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine?.transport?.writable,i=this.connected&&!this.io.engine?._hasPingExpired();return this.flags.volatile&&!r||(i?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){let n=this.flags.timeout??this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error(`operation has timed out`))},n),i=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]==`function`&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],e===null?(this._queue.shift(),t&&t(null,...r)):n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==`function`?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:$.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(`connect_error`,e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved(`disconnect`,e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error(`socket has been disconnected`))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case $.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved(`connect_error`,Error(`It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)`));break;case $.EVENT:case $.BINARY_EVENT:this.onevent(e);break;case $.ACK:case $.BINARY_ACK:this.onack(e);break;case $.DISCONNECT:this.ondisconnect();break;case $.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved(`connect_error`,t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==`string`&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:$.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];typeof t==`function`&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(`connect`)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(`io server disconnect`)}destroy(){this.subs&&=(this.subs.forEach(e=>e()),void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:$.DISCONNECT}),this.destroy(),this.connected&&this.onclose(`io client disconnect`),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}};function gh(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}gh.prototype.duration=function(){var e=this.ms*this.factor**+this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},gh.prototype.reset=function(){this.attempts=0},gh.prototype.setMin=function(e){this.ms=e},gh.prototype.setMax=function(e){this.max=e},gh.prototype.setJitter=function(e){this.jitter=e};var _h=class extends rm{constructor(e,t){super(),this.nsps={},this.subs=[],e&&typeof e==`object`&&(t=e,e=void 0),t||={},t.path=t.path||`/socket.io`,this.opts=t,dm(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor??.5),this.backoff=new gh({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState=`closed`,this.uri=e;let n=t.parser||nh;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)==null||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)==null||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)==null||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(`open`))return this;this.engine=new Um(this.uri,this.opts);let t=this.engine,n=this;this._readyState=`opening`,this.skipReconnect=!1;let r=ph(t,`open`,function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState=`closed`,this.emitReserved(`error`,t),e?e(t):this.maybeReconnectOnOpen()},a=ph(t,`error`,i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error(`timeout`)),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=`open`,this.emitReserved(`open`);let e=this.engine;this.subs.push(ph(e,`ping`,this.onping.bind(this)),ph(e,`data`,this.ondata.bind(this)),ph(e,`error`,this.onerror.bind(this)),ph(e,`close`,this.onclose.bind(this)),ph(this.decoder,`decoded`,this.ondecoded.bind(this)))}onping(){this.emitReserved(`ping`)}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose(`parse error`,e)}}ondecoded(e){am(()=>{this.emitReserved(`packet`,e)},this.setTimeoutFn)}onerror(e){this.emitReserved(`error`,e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new hh(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t)if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(`forced close`)}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)==null||n.close(),this.backoff.reset(),this._readyState=`closed`,this.emitReserved(`close`,e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(`reconnect_failed`),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(`reconnect_attempt`,e.backoff.attempts),!e.skipReconnect&&e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved(`reconnect_error`,t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(`reconnect`,e)}},vh={};function yh(e,t){typeof e==`object`&&(t=e,e=void 0),t||={};let n=Wm(e,t.path||`/socket.io`),r=n.source,i=n.id,a=n.path,o=vh[i]&&a in vh[i].nsps,s=t.forceNew||t[`force new connection`]||!1===t.multiplex||o,c;return s?c=new _h(r,t):(vh[i]||(vh[i]=new _h(r,t)),c=vh[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(yh,{Manager:_h,Socket:hh,io:yh,connect:yh});var bh=`modernAdmin:realtime`,xh=`/admin/realtime`;function Sh(e={}){return t=>{let n=yh(`${e.baseUrl??``}${xh}`,{withCredentials:e.withCredentials??!0}),r=e=>{e&&typeof e.resourceId==`string`&&t(e)};n.on(bh,r);let i=()=>{n.emit(`subscribe`,{all:!0})};return n.on(`connect`,i),()=>{n.off(bh,r),n.off(`connect`,i),n.disconnect()}}}function Ch(){return(0,F.jsxs)(`svg`,{className:`size-4`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:[(0,F.jsx)(`path`,{d:`M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z`}),(0,F.jsx)(`path`,{d:`M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z`}),(0,F.jsx)(`path`,{d:`M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l3.66-2.84z`}),(0,F.jsx)(`path`,{d:`M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z`})]})}function wh(){return(0,F.jsx)(`svg`,{className:`size-4`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,F.jsx)(`path`,{d:`M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z`})})}function Th(){return(0,F.jsx)(`svg`,{className:`size-4`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,F.jsx)(`path`,{d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.459 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zm3.378-3.066c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701z`})})}var Eh={google:{label:`Google`,icon:(0,F.jsx)(Ch,{})},github:{label:`GitHub`,icon:(0,F.jsx)(wh,{})},apple:{label:`Apple`,icon:(0,F.jsx)(Th,{})}};function Dh(e){return Eh[e]??{label:e.charAt(0).toUpperCase()+e.slice(1),icon:(0,F.jsx)(ut,{className:`size-4`,"aria-hidden":`true`})}}function Oh({size:e=`md`}){let t=e===`sm`?`size-8 rounded-lg`:`size-9 rounded-xl`,n=e===`sm`?`size-4`:`size-5`;return(0,F.jsx)(`span`,{className:`flex ${t} items-center justify-center bg-primary/10 ring-1 ring-primary/20`,children:(0,F.jsx)(st,{className:`${n} text-primary`,"aria-hidden":`true`})})}function kh({title:e,hint:t,tagline:n}){let{t:r}=N(),i=me(),a=he(),{data:o}=Te(),[s,c]=P.useState(``),[l,u]=P.useState(``),d=o?.providers??[],f=o===void 0||o.emailAndPassword,p=e=>{e.preventDefault(),!i.isPending&&i.mutate({email:s,password:l})},m=(()=>{let e=i.error;if(!e)return null;if(e instanceof de&&e.status===401)return r(`auth:loginFailed`);if(e instanceof de)try{let t=JSON.parse(e.message);if(t.message)return t.message}catch{}return e.message||r(`errors:server`)})(),h=e??r(`common:appName`),g=r(`auth:subtitle`),_=n??r(`auth:tagline`);return(0,F.jsxs)(`div`,{className:`grid min-h-screen grid-cols-1 bg-background lg:grid-cols-2`,children:[(0,F.jsxs)(`aside`,{className:`relative hidden flex-col justify-between border-r border-border bg-muted/30 p-10 lg:flex`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,F.jsx)(Oh,{}),(0,F.jsx)(`span`,{className:`text-base font-semibold tracking-tight`,children:r(`common:appName`)})]}),(0,F.jsx)(`p`,{className:`max-w-md text-sm text-muted-foreground`,children:_})]}),(0,F.jsx)(`main`,{className:`flex items-center justify-center p-6 sm:p-10`,children:(0,F.jsxs)(`div`,{className:`w-full max-w-sm`,children:[(0,F.jsxs)(`div`,{className:`mb-8 flex flex-col items-center gap-3 text-center`,children:[(0,F.jsx)(Oh,{}),(0,F.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight`,children:h}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:g})]}),d.length>0&&(0,F.jsx)(`div`,{className:`mb-4 flex flex-col gap-2`,children:d.map(e=>{let{label:t,icon:n}=Dh(e);return(0,F.jsxs)(ie,{type:`button`,variant:`outline`,className:`w-full gap-2`,disabled:a.isPending,onClick:()=>a.mutate(e),children:[n,r(`auth:continueWith`).replace(`{provider}`,t)]},e)})}),d.length>0&&f&&(0,F.jsxs)(`div`,{className:`relative mb-4 flex items-center gap-3`,children:[(0,F.jsx)(`div`,{className:`flex-1 border-t border-border`}),(0,F.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:r(`auth:orContinueWith`)}),(0,F.jsx)(`div`,{className:`flex-1 border-t border-border`})]}),f&&(0,F.jsxs)(`form`,{onSubmit:p,className:`flex flex-col gap-4`,children:[(0,F.jsxs)(oc,{children:[(0,F.jsx)(sc,{htmlFor:`login-email`,children:r(`auth:email`)}),(0,F.jsx)(Mt,{id:`login-email`,type:`email`,autoComplete:`email`,autoFocus:!0,required:!0,placeholder:`you@example.com`,value:s,onChange:e=>c(e.target.value),disabled:i.isPending})]}),(0,F.jsxs)(oc,{children:[(0,F.jsx)(sc,{htmlFor:`login-password`,children:r(`auth:password`)}),(0,F.jsx)(Nt,{id:`login-password`,autoComplete:`current-password`,required:!0,value:l,onChange:e=>u(e.target.value),disabled:i.isPending,toggleLabel:{show:r(`common:showPassword`),hide:r(`common:hidePassword`)}})]}),m&&(0,F.jsx)(lc,{children:m}),(0,F.jsxs)(ie,{type:`submit`,className:`mt-2 w-full gap-2`,disabled:i.isPending||!s||!l,children:[(0,F.jsx)(gt,{className:`size-4`}),r(`auth:login`)]}),t&&(0,F.jsx)(cc,{className:`text-center`,children:t})]})]})})]})}var Ah=P.lazy(()=>Tp(()=>import(`./home-page-BSz1wGk0.js`).then(e=>({default:e.HomePage})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url)),jh=P.lazy(()=>Tp(()=>import(`./audit-log-page-BoZh23oQ.js`).then(e=>({default:e.AuditLogPage})),__vite__mapDeps([26,1,2,27,4,5,28,29,7,8,9,10,11,30,31,22,14,32]),import.meta.url)),Mh=P.lazy(()=>Tp(()=>import(`./settings-page-DtguXLAP.js`).then(e=>({default:e.SettingsPage})),__vite__mapDeps([33,1,2,34,4,35,29,6,36,37,38,7,8,39,9,10,11,40,41,42,12,13,23,14]),import.meta.url)),Nh=P.lazy(()=>Tp(()=>import(`./property-renderer-B8Md-EqW.js`).then(e=>e.i).then(e=>({default:e.ResourceListPage})),__vite__mapDeps([43,1,2,44,45,4,41,35,46,5,28,6,7,47,8,39,9,10,11,40,42,12,13,22,48,30,31,49,23,14,50,17,20,21,24,25]),import.meta.url)),Ph=P.lazy(()=>Tp(()=>import(`./show-page-Dnox2NwO.js`).then(e=>({default:e.ResourceShowPage})),__vite__mapDeps([51,1,2,4,41,5,47,8,11,49,46,14,15,10,43,44,45,35,28,6,7,39,9,40,42,12,13,22,48,30,31,23,50,17,20,21,24,25,52,53,32]),import.meta.url)),Fh=P.lazy(()=>Tp(()=>import(`./edit-page-CW7-FAPC.js`).then(e=>({default:e.ResourceEditPage})),__vite__mapDeps([54,1,2,4,41,6,36,55,7,8,12,13,9,10,11,49,46,47,14,56,19,43,44,45,35,5,28,39,40,42,22,48,30,31,23,50,17,20,21,24,25,52,53,32]),import.meta.url)),Ih=P.lazy(()=>Tp(()=>import(`./wizard-create-page-v2-Aw8Oj.js`).then(e=>({default:e.ResourceWizardCreatePage})),__vite__mapDeps([57,1,2,6,7,8,12,13,9,10,4,11,49,41,46,47,14,56,19,43,44,45,35,5,28,39,40,42,22,48,30,31,23,50,17,20,21,24,25]),import.meta.url)),Lh=P.lazy(()=>Tp(()=>import(`./action-page-Bx7kzeK7.js`).then(e=>({default:e.ResourceActionPage})),__vite__mapDeps([58,1,2,59,8,11,49,41,46,47,14]),import.meta.url));function Rh(){return(0,F.jsx)(`div`,{role:`status`,"aria-busy":`true`,className:`flex items-center justify-center py-24 text-muted-foreground`,children:(0,F.jsx)(ht,{className:`size-5 animate-spin`,"aria-hidden":`true`})})}var zh=Rf()({component:function(){let{ShellLayout:e}=zh.useRouteContext();return(0,F.jsx)(e,{children:(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(Rh,{}),children:(0,F.jsx)(Zf,{})})})}}),Bh=Lf({getParentRoute:()=>zh,path:`/`,component:function(){return(0,F.jsx)(Ah,{})}}),Vh=Lf({getParentRoute:()=>zh,path:`/audit-log`,component:function(){return(0,F.jsx)(jh,{})}}),Hh=Lf({getParentRoute:()=>zh,path:`/resources/$resourceId`,component:function(){let{resourceId:e}=Hh.useParams();return(0,F.jsx)(Nh,{resourceId:e})}});function Uh(){let{t:e}=N(),t=[{label:e(`wizard:products.step1`),properties:[`name`,`sku`,`inStock`]},{label:e(`wizard:products.step2`),properties:[`price`,`currencyCode`,`quantity`]},{label:e(`wizard:products.step3`)}];return(0,F.jsx)(Ih,{resourceId:`products`,steps:t})}var Wh=Lf({getParentRoute:()=>zh,path:`/resources/$resourceId/new`,component:function(){let{resourceId:e}=Wh.useParams();return e===`products`?(0,F.jsx)(Uh,{}):(0,F.jsx)(Fh,{resourceId:e})}}),Gh=Lf({getParentRoute:()=>zh,path:`/resources/$resourceId/$recordId`,component:function(){let{resourceId:e,recordId:t}=Gh.useParams();return(0,F.jsx)(Ph,{resourceId:e,recordId:t})}}),Kh=Lf({getParentRoute:()=>zh,path:`/resources/$resourceId/$recordId/edit`,component:function(){let{resourceId:e,recordId:t}=Kh.useParams();return(0,F.jsx)(Fh,{resourceId:e,recordId:t})}}),qh=Lf({getParentRoute:()=>zh,path:`/resources/$resourceId/actions/$actionName`,component:function(){let{resourceId:e,actionName:t}=qh.useParams(),n=Ae(),r=n.name===`action`?n.recordIds:void 0;return(0,F.jsx)(Lh,{resourceId:e,actionName:t,...r?{recordIds:r}:{}})}}),Jh=Lf({getParentRoute:()=>zh,path:`/resources/$resourceId/$recordId/actions/$actionName`,component:function(){let{resourceId:e,recordId:t,actionName:n}=Jh.useParams();return(0,F.jsx)(Lh,{resourceId:e,recordId:t,actionName:n})}}),Yh=Lf({getParentRoute:()=>zh,path:`/settings`,component:function(){return(0,F.jsx)(Mh,{})}}),Xh=Lf({getParentRoute:()=>zh,path:`/settings/$section`,component:function(){let{section:e}=Xh.useParams();return(0,F.jsx)(Mh,{section:e})}}),Zh=Lf({getParentRoute:()=>zh,path:`/ext/$extKey`,component:function(){let{extKey:e}=Zh.useParams(),t=Bl(e);return t?(0,F.jsx)(t.component,{}):(0,F.jsx)(`div`,{className:`flex flex-col items-center justify-center py-24 text-muted-foreground`,children:(0,F.jsxs)(`p`,{className:`text-sm`,children:[`Extension "`,e,`" not found.`]})})}}),Qh=zh.addChildren([Bh,Vh,Zh,Wh,qh,Jh,Kh,Gh,Hh,Xh,Yh]),$h=e=>{let t=e.startsWith(`?`)?e.slice(1):e;if(!t)return{};let n=new URLSearchParams(t),r={};return n.forEach((e,t)=>{r[t]=e}),r},eg=e=>{if(!e)return``;let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r==null||r===``||t.set(n,typeof r==`string`?r:String(r));let n=t.toString();return n?`?${n}`:``},tg={ShellLayout:()=>null};function ng(e){return np({routeTree:Qh,history:hd(),basepath:e||`/`,parseSearch:$h,stringifySearch:eg,context:tg,defaultPreload:!1,scrollRestoration:!1})}function rg({ShellLayout:e,basepath:t=``}){let n=P.useMemo(()=>!t||t===`/`?``:t.endsWith(`/`)?t.slice(0,-1):t,[t]),r=P.useMemo(()=>ng(n),[n]),i=P.useMemo(()=>({ShellLayout:e}),[e]);return(0,F.jsx)(Fe.Provider,{value:n,children:(0,F.jsx)(ap,{router:r,context:i})})}var ig=null,ag=null,og=new Set;function sg(){return ag??=Tp(()=>import(`./icon-registry-BQU4fIc4.js`).then(e=>{ig=e.icons;for(let e of og)e()}),__vite__mapDeps([60,1,3,44,59,61,45,62,34,27,4,21,41,63,35,46,5,28,64,13,29,65,6,53,36,55,37,38,42,7,47]),import.meta.url),ag}var cg=e=>(og.add(e),()=>og.delete(e)),lg=()=>ig;function ug({name:e,className:t}){let n=P.useSyncExternalStore(cg,lg,lg);return P.useEffect(()=>{e&&!ig&&sg()},[e]),(0,F.jsx)(e&&n?.[e]||st,{className:t})}var dg=P.lazy(()=>Tp(()=>import(`./ai-assistant-widget-BbIXVrSu.js`).then(e=>({default:e.AiAssistantWidget})),__vite__mapDeps([66,1,2,34,65,6,7,8,39,11,23,14,50,17,18,19]),import.meta.url)),fg=P.lazy(()=>Tp(()=>import(`./global-search-dialog-DLv_nIvM.js`).then(e=>({default:e.GlobalSearchDialog})),__vite__mapDeps([67,1,2,61,38,7,11,24,25]),import.meta.url));function pg(e){let t=new Map,n=[];for(let r of e){if(r.navigation===null)continue;let e=r.navigation?.name??r.navigation?.group;if(e){let n=t.get(e)??[];n.push(r),t.set(e,n)}else n.push(r)}return{groups:Array.from(t.entries()).map(([e,t])=>({label:e,resources:t})),ungrouped:n}}var mg=`sidebar:groups:collapsed`;function hg(){if(typeof localStorage>`u`)return new Set;try{let e=localStorage.getItem(mg);return e?new Set(JSON.parse(e)):new Set}catch{return new Set}}function gg(e){if(!(typeof localStorage>`u`))try{localStorage.setItem(mg,JSON.stringify([...e]))}catch{}}function _g(e,t){return(e.name===`list`||e.name===`show`||e.name===`edit`||e.name===`new`)&&`resourceId`in e&&e.resourceId===t}function vg({resource:e,showId:t}){let n=_g(Ae(),e.id),r=e.name!==e.id,i=t&&r;return(0,F.jsx)(Yc,{children:(0,F.jsx)(Zc,{asChild:!0,isActive:n,tooltip:i?`${e.name} (${e.id})`:e.name,children:(0,F.jsxs)(Oe,{to:{name:`list`,resourceId:e.id},children:[(0,F.jsx)(ug,{name:e.navigation?.icon}),(0,F.jsxs)(`span`,{className:`min-w-0 flex-1 truncate`,children:[e.name,i&&(0,F.jsxs)(`span`,{className:`ml-0.5 text-xs opacity-60`,children:[` (`,e.id,`)`]})]})]})})})}function yg(){let{state:e,toggleSidebar:t}=Mc(),{t:n}=N(),r=e===`collapsed`;return(0,F.jsx)(`button`,{type:`button`,onClick:t,"aria-label":n(r?`common:expandSidebar`:`common:collapseSidebar`),className:`absolute right-0 top-24 z-50 hidden h-5 w-5 translate-x-1/2 items-center justify-center rounded-full border border-border bg-card shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground md:flex`,children:(0,F.jsx)(it,{className:`size-3 transition-transform duration-300`,style:{transform:r?`rotate(180deg)`:`rotate(0deg)`}})})}function bg({showResourceIds:e}){let t=Me(),n=le(),{t:r}=N(),i=Ae(),{data:a}=M(),o=a?.branding?.companyName??r(`common:appName`),{groups:s,ungrouped:c}=P.useMemo(()=>pg(t),[t]),{isMobile:l,setOpenMobile:u,state:d}=Mc(),[f,p]=P.useState(hg),m=P.useCallback(e=>{p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),gg(n),n})},[]),h=`${i.name}:${`resourceId`in i?i.resourceId:``}:${`recordId`in i?i.recordId:``}`;P.useEffect(()=>{l&&u(!1)},[h]);let g=i.name===`home`,_=i.name===`audit-log`;return(0,F.jsxs)(Ic,{collapsible:`icon`,labels:{sidebarTitle:r(`common:sidebarTitle`),navigationMenu:r(`common:sidebarNavigation`)},children:[(0,F.jsxs)(Bc,{className:`h-12 flex-row items-center gap-2 border-b border-border px-3 py-0 sm:h-14 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0`,children:[(0,F.jsx)(st,{className:`size-4 shrink-0 text-primary`}),(0,F.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:o})]}),(0,F.jsxs)(Uc,{children:[(0,F.jsx)(Wc,{children:(0,F.jsxs)(Jc,{children:[(0,F.jsx)(Yc,{children:(0,F.jsx)(Zc,{asChild:!0,isActive:g,tooltip:r(`common:home`),children:(0,F.jsxs)(Oe,{to:{name:`home`},children:[(0,F.jsx)(ft,{}),(0,F.jsx)(`span`,{children:r(`common:home`)})]})})}),n.auditLog&&(0,F.jsx)(Yc,{children:(0,F.jsx)(Zc,{asChild:!0,isActive:_,tooltip:r(`audit:title`),children:(0,F.jsxs)(Oe,{to:{name:`audit-log`},children:[(0,F.jsx)(dt,{}),(0,F.jsx)(`span`,{children:r(`audit:title`)})]})})}),Ll().filter(e=>!e.featureGate||!!n[e.featureGate]).map(e=>(0,F.jsx)(Yc,{children:(0,F.jsx)(Zc,{asChild:!0,isActive:i.name===`extension`&&i.key===e.extensionKey,tooltip:e.label,children:(0,F.jsxs)(Oe,{to:{name:`extension`,key:e.extensionKey},children:[(0,F.jsx)(e.icon,{}),(0,F.jsx)(`span`,{children:e.label})]})})},e.key)),c.map(t=>(0,F.jsx)(vg,{resource:t,showId:e},t.id))]})}),s.map(t=>{let n=d===`collapsed`||!f.has(t.label);return(0,F.jsxs)(Wc,{children:[(0,F.jsx)(Gc,{asChild:!0,children:(0,F.jsxs)(`button`,{type:`button`,className:`w-full cursor-pointer justify-between hover:bg-accent hover:text-accent-foreground`,onClick:()=>m(t.label),children:[t.label,(0,F.jsx)(rt,{className:y(`size-4 shrink-0 transition-transform duration-200`,!n&&`-rotate-90`)})]})}),n&&(0,F.jsx)(Jc,{children:t.resources.map(t=>(0,F.jsx)(vg,{resource:t,showId:e},t.id))})]},t.label)})]}),(0,F.jsx)(Vc,{}),(0,F.jsx)(yg,{})]})}function xg(e){let t=(e.name?.trim()||e.email?.trim()||e.id).split(/\s+|[._@-]/).filter(Boolean);return t.length===0?`?`:t.length===1?t[0].slice(0,2).toUpperCase():(t[0][0]+t[1][0]).toUpperCase()}function Sg({user:e}){let{t}=N(),n=A(),r=we(),i=le(),a=xg(e),o=e.name||e.email||e.id,s=i.apiKeys?`api-keys`:i.webhooks?`webhooks`:i.aiAssistant?`ai-assistant`:null;return(0,F.jsxs)($o,{children:[(0,F.jsx)(es,{asChild:!0,children:(0,F.jsxs)(ie,{variant:`ghost`,className:`h-9 gap-2 px-2`,"aria-label":o,children:[(0,F.jsxs)(on,{className:`size-7`,children:[e.avatarUrl&&(0,F.jsx)(sn,{src:e.avatarUrl,alt:o}),(0,F.jsx)(cn,{className:`text-xs`,children:a})]}),(0,F.jsx)(`span`,{className:`hidden max-w-[10rem] truncate text-sm sm:inline`,children:o})]})}),(0,F.jsxs)(as,{align:`end`,sideOffset:8,className:`w-56 p-1`,children:[(0,F.jsxs)(ls,{className:`flex items-center gap-2 px-3 py-2`,children:[(0,F.jsxs)(on,{className:`size-8`,children:[e.avatarUrl&&(0,F.jsx)(sn,{src:e.avatarUrl,alt:o}),(0,F.jsx)(cn,{className:`text-xs`,children:a})]}),(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,F.jsx)(`span`,{className:`truncate text-sm font-medium`,children:o}),e.email&&e.email!==o&&(0,F.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:e.email}),e.role&&(0,F.jsx)(`span`,{className:`truncate text-xs uppercase tracking-wide text-muted-foreground`,children:e.role})]})]}),s&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(us,{}),(0,F.jsxs)(os,{className:`gap-3 px-3 py-2`,onSelect:e=>{e.preventDefault(),r({name:`settings`,section:s})},children:[(0,F.jsx)(Ct,{className:`size-4 text-muted-foreground`}),(0,F.jsx)(`span`,{children:t(`settings:menuItem`)})]})]}),(0,F.jsx)(us,{}),(0,F.jsxs)(os,{className:`gap-3 px-3 py-2`,disabled:n.isPending,onSelect:e=>{e.preventDefault(),n.mutate()},children:[(0,F.jsx)(_t,{className:`size-4 text-muted-foreground`}),(0,F.jsx)(`span`,{children:t(`auth:logout`)})]})]})]})}function Cg({onOpen:e}){let{t}=N(),n=P.useMemo(()=>typeof navigator>`u`?!1:/Mac|iPhone|iPad|iPod/i.test(navigator.platform||navigator.userAgent),[]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(ie,{variant:`outline`,size:`sm`,onClick:e,"aria-label":t(`globalSearch:title`),className:`hidden h-9 w-full max-w-xs justify-start gap-2 px-3 text-muted-foreground sm:inline-flex`,children:[(0,F.jsx)(St,{className:`size-4`}),(0,F.jsx)(`span`,{className:`flex-1 truncate text-left text-sm`,children:t(`globalSearch:trigger`)}),(0,F.jsxs)(`kbd`,{className:`pointer-events-none ml-2 inline-flex h-5 select-none items-center gap-0.5 rounded border border-border bg-muted px-1.5 font-mono text-[10px] font-medium`,children:[n?(0,F.jsx)(`span`,{"aria-hidden":`true`,children:`⌘`}):(0,F.jsx)(`span`,{"aria-hidden":`true`,children:`Ctrl`}),(0,F.jsx)(`span`,{"aria-hidden":`true`,children:`K`})]})]}),(0,F.jsx)(ie,{variant:`ghost`,size:`icon`,onClick:e,"aria-label":t(`globalSearch:title`),className:`sm:hidden`,children:(0,F.jsx)(St,{className:`size-4`})})]})}function wg({user:e}){let{t}=N(),{setOpenMobile:n}=Mc(),[r,i]=P.useState(!1),a=P.useRef(!1);return r&&(a.current=!0),xp(`mod+k`,()=>i(e=>!e),{allowInInput:!0,description:t(`globalSearch:hotkey`),group:t(`common:search`)}),(0,F.jsxs)(`header`,{className:`sticky top-0 z-30 flex h-12 shrink-0 items-center gap-1 border-b border-border bg-card px-2 sm:h-14 sm:gap-3 sm:px-6`,children:[(0,F.jsx)(ie,{variant:`ghost`,size:`icon`,className:`md:hidden`,onClick:()=>n(!0),"aria-label":t(`common:openMenu`),children:(0,F.jsx)(vt,{className:`size-5`})}),(0,F.jsx)(Cg,{onOpen:()=>i(!0)}),(0,F.jsxs)(`div`,{className:`ml-auto flex items-center gap-1`,children:[(0,F.jsx)(Ep,{}),(0,F.jsx)(kp,{}),(0,F.jsx)(Op,{}),e?(0,F.jsx)(Sg,{user:e}):(0,F.jsx)(ie,{variant:`ghost`,size:`icon`,disabled:!0,"aria-label":t(`auth:login`),children:(0,F.jsx)(Tt,{className:`size-4 opacity-50`})})]}),(r||a.current)&&(0,F.jsx)(P.Suspense,{fallback:null,children:(0,F.jsx)(fg,{open:r,onOpenChange:i})})]})}function Tg(){let{t:e}=N();return(0,F.jsxs)(`div`,{role:`status`,"aria-busy":`true`,"aria-live":`polite`,className:`flex min-h-screen flex-col items-center justify-center gap-6 bg-background p-6`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,F.jsx)(`span`,{className:`flex size-12 items-center justify-center rounded-2xl bg-primary/10 ring-1 ring-primary/20`,children:(0,F.jsx)(st,{className:`size-6 text-primary`})}),(0,F.jsx)(`span`,{className:`text-xl font-semibold tracking-tight`,children:e(`common:appName`)})]}),(0,F.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,F.jsx)(ht,{className:`size-4 animate-spin`,"aria-hidden":`true`}),(0,F.jsx)(`span`,{children:e(`common:loading`)})]})]})}function Eg(){let e=Ne();return Ap(P.useMemo(()=>Sh({baseUrl:e.apiBaseUrl}),[e])),null}function Dg({children:e,showSidebarResourceIds:t}){let{user:n}=j(),r=le();return(0,F.jsx)(dp,{children:(0,F.jsx)(cp,{children:(0,F.jsxs)(Pc,{children:[(0,F.jsx)(bg,{showResourceIds:t}),(0,F.jsxs)(zc,{className:`h-svh min-w-0 overflow-hidden`,children:[(0,F.jsx)(wg,{user:n}),(0,F.jsx)(`main`,{className:`min-h-0 min-w-0 flex-1 overflow-auto px-2 pt-2 sm:px-6 sm:pt-6`,children:e}),r.aiAssistant&&(0,F.jsx)(P.Suspense,{fallback:null,children:(0,F.jsx)(dg,{})}),r.realtime&&(0,F.jsx)(Eg,{})]}),(0,F.jsx)(W,{})]})})})}function Og({loginHint:e,basePath:t,showSidebarResourceIds:n}={}){let{user:r,isLoading:i,isAuthenticated:a}=j();M();let o=n??!1,s=P.useMemo(()=>function({children:e}){return(0,F.jsx)(Dg,{showSidebarResourceIds:o,children:e})},[o]);return i?(0,F.jsx)(Tg,{}):!a||!r?(0,F.jsx)(kh,{hint:e}):(0,F.jsx)(rg,{ShellLayout:s,basepath:t??``})}var kg=tt();function Ag({config:e,components:t}){return(0,F.jsx)(oe,{locales:(0,P.useMemo)(()=>{if(!e.locales||e.locales.length===0)return Ie;let t=new Set(e.locales),n=Ie.filter(e=>t.has(e.code));return n.length>0?n:Ie},[e.locales]),defaultLocale:e.defaultLocale,fallbackLocale:e.fallbackLocale,metadataTranslations:e.metadataTranslations,children:(0,F.jsx)(ke,{components:t,clientOptions:{baseUrl:e.apiUrl,credentials:e.credentials??`include`,headers:e.headers,persistDemoSession:e.persistDemoSession,authBasePath:e.authBasePath},children:(0,F.jsx)(Og,{loginHint:e.loginHint,basePath:e.basePath,showSidebarResourceIds:e.showSidebarResourceIds})})})}function jg(e,t){jt();let n=(0,kg.createRoot)(e);return n.render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(Ag,{config:t.config,components:t.components})})),{unmount:()=>n.unmount()}}function Mg(){return typeof window>`u`?{}:window.__MODERN_ADMIN__??{}}var Ng=document.getElementById(`root`);if(!Ng)throw Error(`[modern-admin] expected #root container in the host page`);jg(Ng,{config:Mg()});export{St as $,is as A,Ar as B,ss as C,ts as D,ls as E,zr as F,Bt as G,ir as H,Lr as I,Nt as J,zt as K,Ir as L,es as M,Mr as N,us as O,Fr as P,Ct as Q,Rr as R,$o as S,os as T,nr as U,vr as V,hn as W,Tt as X,Mt as Y,wt as Z,tc as _,it as _t,zl as a,gt as at,ec as b,_c as c,pt as ct,Sc as d,ut as dt,xt as et,wc as f,lt as ft,sc as g,at as gt,lc as h,ot as ht,G as i,_t as it,rs as j,ns as k,xc as l,ft as lt,oc as m,st as mt,xp as n,yt as nt,Rl as o,ht as ot,gc as p,ct as pt,Rt as q,lp as r,vt as rt,hc as s,mt as st,Tp as t,bt as tt,Tc as u,dt as ut,nc as v,rt as vt,as as w,$s as x,Qs as y,nt as yt,jr as z};
|
|
15
|
+
//# sourceMappingURL=index-BL8keDxQ.js.map
|
|
Binary file
|
|
Binary file
|