@rangka/client 0.1.0 → 0.1.2
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/App.d.ts.map +1 -1
- package/dist/App.js +7 -1
- package/dist/App.js.map +1 -1
- package/dist/components/ui/input-group.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +20 -0
- package/dist/main.js.map +1 -1
- package/dist/shell/assets/AttachmentWidget-BTTGroHP.js +1 -0
- package/dist/shell/assets/AttachmentsWidget-DZgvmO9P.js +1 -0
- package/dist/shell/assets/BadgeWidget-DN6GsAAG.js +1 -0
- package/dist/shell/assets/CardWidget-qX-UvqJh.js +1 -0
- package/dist/shell/assets/CheckboxWidget-CYPZ85ih.js +1 -0
- package/dist/shell/assets/CodeWidget-DnVtHG1d.js +1 -0
- package/dist/shell/assets/ColumnWidget-CYmFCVOf.js +1 -0
- package/dist/shell/assets/ComputedWidget-BQApkfir.js +1 -0
- package/dist/shell/assets/DatePickerWidget-pEusSy9D.js +1 -0
- package/dist/shell/assets/DatetimeWidget-M0fEGDTD.js +1 -0
- package/dist/shell/assets/DividerWidget-hXVGhIKC.js +1 -0
- package/dist/shell/assets/DrawerWidget-DynL7EIy.js +1 -0
- package/dist/shell/assets/DynamicLinkWidget-ChMJ5DAf.js +1 -0
- package/dist/shell/assets/IconWidget-Cgo9txq1.js +1 -0
- package/dist/shell/assets/ImageWidget-YUv1_OQK.js +1 -0
- package/dist/shell/assets/JsonWidget-RHUHhXHJ.js +1 -0
- package/dist/shell/assets/LinkWidget-CIu7qmb2.js +1 -0
- package/dist/shell/assets/ManyToManyWidget-DCQnygvZ.js +1 -0
- package/dist/shell/assets/ModalWidget-FggzYaS2.js +1 -0
- package/dist/shell/assets/MoneyWidget-CKjOSucD.js +1 -0
- package/dist/shell/assets/RepeatWidget-Dfp4zW4d.js +1 -0
- package/dist/shell/assets/ScrollAreaWidget-CdFdf4rv.js +1 -0
- package/dist/shell/assets/SequenceWidget-DIXHZslz.js +1 -0
- package/dist/shell/assets/SpacerWidget-BgM4dC6x.js +1 -0
- package/dist/shell/assets/SplitWidget-_mcQkjQk.js +1 -0
- package/dist/shell/assets/StackWidget-BI_VIreo.js +1 -0
- package/dist/shell/assets/TableWidget-DuIvd6qR.js +1 -0
- package/dist/shell/assets/TextareaWidget-CATua7Ls.js +1 -0
- package/dist/shell/assets/TreeWidget-BoHlhfza.js +1 -0
- package/dist/shell/assets/calendar-DqckiKt1.js +1 -0
- package/dist/shell/assets/index-63v1sBS3.css +1 -0
- package/dist/shell/assets/index-D1wStSrO.js +8635 -0
- package/dist/shell/assets/popover-DywIKFaQ.js +1 -0
- package/dist/shell/assets/textarea-BVCZevA6.js +1 -0
- package/dist/shell/assets/useSurfaceContext-kzu9770H.js +1 -0
- package/dist/shell/assets/vendor-query-dRdWN_eK.js +1 -0
- package/dist/shell/assets/vendor-radix-D-Trh8JA.js +69 -0
- package/dist/shell/assets/vendor-router-B1WM9yRc.js +17 -0
- package/dist/shell/index.html +5 -2
- package/dist/theme.css +82 -0
- package/dist/widgets/components/lazy-manifest.d.ts +11 -0
- package/dist/widgets/components/lazy-manifest.d.ts.map +1 -0
- package/dist/widgets/components/lazy-manifest.js +32 -0
- package/dist/widgets/components/lazy-manifest.js.map +1 -0
- package/dist/widgets/components/register.d.ts.map +1 -1
- package/dist/widgets/components/register.js +0 -58
- package/dist/widgets/components/register.js.map +1 -1
- package/dist/widgets/loader.d.ts +3 -0
- package/dist/widgets/loader.d.ts.map +1 -0
- package/dist/widgets/loader.js +99 -0
- package/dist/widgets/loader.js.map +1 -0
- package/dist/widgets/renderer/LazyWidget.d.ts +8 -0
- package/dist/widgets/renderer/LazyWidget.d.ts.map +1 -0
- package/dist/widgets/renderer/LazyWidget.js +31 -0
- package/dist/widgets/renderer/LazyWidget.js.map +1 -0
- package/dist/widgets/renderer/WidgetErrorBoundary.d.ts +17 -0
- package/dist/widgets/renderer/WidgetErrorBoundary.d.ts.map +1 -0
- package/dist/widgets/renderer/WidgetErrorBoundary.js +18 -0
- package/dist/widgets/renderer/WidgetErrorBoundary.js.map +1 -0
- package/dist/widgets/renderer/WidgetRenderer.d.ts.map +1 -1
- package/dist/widgets/renderer/WidgetRenderer.js +8 -6
- package/dist/widgets/renderer/WidgetRenderer.js.map +1 -1
- package/package.json +7 -4
- package/.claude/skills/add-widget/SKILL.md +0 -101
- package/.turbo/turbo-build.log +0 -29
- package/CHANGELOG.md +0 -18
- package/CLAUDE.md +0 -236
- package/components.json +0 -25
- package/dist/components/ui/chart.d.ts +0 -45
- package/dist/components/ui/chart.d.ts.map +0 -1
- package/dist/components/ui/chart.js +0 -119
- package/dist/components/ui/chart.js.map +0 -1
- package/dist/shell/assets/index--35CAvcP.js +0 -8715
- package/dist/shell/assets/index-COLmoPYo.css +0 -1
- package/index.html +0 -12
- package/src/App.tsx +0 -44
- package/src/__tests__/setup.ts +0 -1
- package/src/api/auth.ts +0 -41
- package/src/api/boot.ts +0 -10
- package/src/api/client.ts +0 -26
- package/src/api/paths.ts +0 -3
- package/src/api/token.ts +0 -13
- package/src/auth/LoginForm.tsx +0 -67
- package/src/auth/SessionExpired.tsx +0 -24
- package/src/auth/SetupForm.tsx +0 -76
- package/src/boot/BootGate.tsx +0 -35
- package/src/boot/BootProvider.tsx +0 -28
- package/src/boot/types.ts +0 -9
- package/src/boot/useBoot.ts +0 -111
- package/src/components/Icon.tsx +0 -17
- package/src/components/ui/accordion.tsx +0 -82
- package/src/components/ui/alert-dialog.tsx +0 -180
- package/src/components/ui/alert.tsx +0 -76
- package/src/components/ui/aspect-ratio.tsx +0 -9
- package/src/components/ui/avatar.tsx +0 -94
- package/src/components/ui/badge.tsx +0 -45
- package/src/components/ui/breadcrumb.tsx +0 -104
- package/src/components/ui/button-group.tsx +0 -78
- package/src/components/ui/button.tsx +0 -65
- package/src/components/ui/calendar.tsx +0 -187
- package/src/components/ui/card.tsx +0 -85
- package/src/components/ui/carousel.tsx +0 -229
- package/src/components/ui/chart.tsx +0 -339
- package/src/components/ui/checkbox.tsx +0 -27
- package/src/components/ui/collapsible.tsx +0 -21
- package/src/components/ui/combobox.tsx +0 -275
- package/src/components/ui/command.tsx +0 -178
- package/src/components/ui/context-menu.tsx +0 -242
- package/src/components/ui/dialog.tsx +0 -146
- package/src/components/ui/direction.tsx +0 -20
- package/src/components/ui/drawer.tsx +0 -118
- package/src/components/ui/dropdown-menu.tsx +0 -247
- package/src/components/ui/empty.tsx +0 -94
- package/src/components/ui/field.tsx +0 -224
- package/src/components/ui/hover-card.tsx +0 -36
- package/src/components/ui/input-group.tsx +0 -142
- package/src/components/ui/input-otp.tsx +0 -86
- package/src/components/ui/input.tsx +0 -19
- package/src/components/ui/item.tsx +0 -182
- package/src/components/ui/kbd.tsx +0 -26
- package/src/components/ui/label.tsx +0 -19
- package/src/components/ui/menubar.tsx +0 -260
- package/src/components/ui/native-select.tsx +0 -55
- package/src/components/ui/navigation-menu.tsx +0 -160
- package/src/components/ui/pagination.tsx +0 -112
- package/src/components/ui/popover.tsx +0 -74
- package/src/components/ui/progress.tsx +0 -31
- package/src/components/ui/radio-group.tsx +0 -42
- package/src/components/ui/resizable.tsx +0 -42
- package/src/components/ui/scroll-area.tsx +0 -53
- package/src/components/ui/select.tsx +0 -185
- package/src/components/ui/separator.tsx +0 -26
- package/src/components/ui/sheet.tsx +0 -128
- package/src/components/ui/sidebar.tsx +0 -669
- package/src/components/ui/skeleton.tsx +0 -13
- package/src/components/ui/slider.tsx +0 -54
- package/src/components/ui/sonner.tsx +0 -43
- package/src/components/ui/spinner.tsx +0 -16
- package/src/components/ui/switch.tsx +0 -33
- package/src/components/ui/table.tsx +0 -87
- package/src/components/ui/tabs.tsx +0 -80
- package/src/components/ui/textarea.tsx +0 -18
- package/src/components/ui/toggle-group.tsx +0 -86
- package/src/components/ui/toggle.tsx +0 -44
- package/src/components/ui/tooltip.tsx +0 -53
- package/src/context/MetaContext.tsx +0 -22
- package/src/context/ModuleContext.tsx +0 -62
- package/src/context/PermissionsContext.tsx +0 -39
- package/src/context/ShellProviders.tsx +0 -33
- package/src/context/UserContext.tsx +0 -16
- package/src/data/QueryProvider.tsx +0 -7
- package/src/data/queryClient.ts +0 -18
- package/src/data/useModelMeta.ts +0 -17
- package/src/data/useMutation.ts +0 -60
- package/src/data/useRecord.ts +0 -29
- package/src/data/useSource.ts +0 -112
- package/src/hooks/use-mobile.ts +0 -19
- package/src/index.css +0 -260
- package/src/index.ts +0 -16
- package/src/lib/utils.ts +0 -6
- package/src/main.tsx +0 -17
- package/src/router/NotFound.tsx +0 -8
- package/src/router/RouterProvider.tsx +0 -7
- package/src/router/buildRouteTree.tsx +0 -63
- package/src/router/createShellRouter.ts +0 -9
- package/src/router/hooks.ts +0 -43
- package/src/shell/CommandPalette.tsx +0 -76
- package/src/shell/ConfirmDialog.tsx +0 -34
- package/src/shell/ConfirmProvider.tsx +0 -56
- package/src/shell/DrawerContext.tsx +0 -44
- package/src/shell/HeaderActions.tsx +0 -31
- package/src/shell/ModuleSelectorPage.tsx +0 -149
- package/src/shell/PageOutlet.tsx +0 -21
- package/src/shell/ShellContext.tsx +0 -45
- package/src/shell/ShellDevTools.tsx +0 -153
- package/src/shell/ShellLayout.tsx +0 -231
- package/src/shell/Toast.tsx +0 -58
- package/src/shell/ToastProvider.tsx +0 -60
- package/src/shell/app-sidebar/AppSidebar.tsx +0 -44
- package/src/shell/app-sidebar/ModuleSwitcher.tsx +0 -87
- package/src/shell/app-sidebar/NavMain.tsx +0 -64
- package/src/shell/app-sidebar/NavUser.tsx +0 -97
- package/src/shell/app-sidebar/SearchMenu.tsx +0 -22
- package/src/shell/app-sidebar/index.ts +0 -8
- package/src/shell/app-sidebar/types.ts +0 -38
- package/src/shell/types.ts +0 -6
- package/src/shell/useBreadcrumbs.ts +0 -42
- package/src/studio/bridge.ts +0 -125
- package/src/studio/index.ts +0 -3
- package/src/studio/overlay.ts +0 -47
- package/src/studio/types.ts +0 -32
- package/src/studio/walker.ts +0 -48
- package/src/vite-env.d.ts +0 -1
- package/src/widgets/__tests__/action-edge-cases.test.ts +0 -281
- package/src/widgets/__tests__/action.test.ts +0 -236
- package/src/widgets/__tests__/attachment-widget.test.tsx +0 -85
- package/src/widgets/__tests__/attachments-widget.test.tsx +0 -109
- package/src/widgets/__tests__/binding.test.ts +0 -76
- package/src/widgets/__tests__/button-widget.test.tsx +0 -145
- package/src/widgets/__tests__/checkbox-widget.test.tsx +0 -158
- package/src/widgets/__tests__/code-widget.test.tsx +0 -64
- package/src/widgets/__tests__/computed-widget.test.tsx +0 -62
- package/src/widgets/__tests__/condition-edge-cases.test.ts +0 -120
- package/src/widgets/__tests__/condition.test.ts +0 -221
- package/src/widgets/__tests__/context.test.ts +0 -99
- package/src/widgets/__tests__/data-widget.test.tsx +0 -204
- package/src/widgets/__tests__/datepicker-widget.test.tsx +0 -66
- package/src/widgets/__tests__/datetime-widget.test.tsx +0 -67
- package/src/widgets/__tests__/drawer-widget.test.tsx +0 -149
- package/src/widgets/__tests__/dynamic-link-widget.test.tsx +0 -52
- package/src/widgets/__tests__/edge-cases.test.ts +0 -232
- package/src/widgets/__tests__/evaluator.test.ts +0 -107
- package/src/widgets/__tests__/functions.test.ts +0 -147
- package/src/widgets/__tests__/grid-widget.test.tsx +0 -137
- package/src/widgets/__tests__/hooks.test.tsx +0 -249
- package/src/widgets/__tests__/icon-widget.test.tsx +0 -129
- package/src/widgets/__tests__/input-widget.test.tsx +0 -264
- package/src/widgets/__tests__/integration.test.ts +0 -116
- package/src/widgets/__tests__/json-widget.test.tsx +0 -70
- package/src/widgets/__tests__/link-widget.test.tsx +0 -92
- package/src/widgets/__tests__/many-to-many-widget.test.tsx +0 -93
- package/src/widgets/__tests__/modal-widget.test.tsx +0 -148
- package/src/widgets/__tests__/money-widget.test.tsx +0 -97
- package/src/widgets/__tests__/parser.test.ts +0 -171
- package/src/widgets/__tests__/reactive-variables.test.ts +0 -383
- package/src/widgets/__tests__/renderer.test.tsx +0 -300
- package/src/widgets/__tests__/repeat-widget.test.tsx +0 -229
- package/src/widgets/__tests__/select-widget.test.tsx +0 -231
- package/src/widgets/__tests__/sequence-widget.test.tsx +0 -58
- package/src/widgets/__tests__/shell-integration.test.tsx +0 -1343
- package/src/widgets/__tests__/split-widget.test.tsx +0 -133
- package/src/widgets/__tests__/state-edge-cases.test.ts +0 -118
- package/src/widgets/__tests__/state.test.ts +0 -106
- package/src/widgets/__tests__/table-data-binding.test.tsx +0 -482
- package/src/widgets/__tests__/table-filter-popover.test.tsx +0 -486
- package/src/widgets/__tests__/table-search.test.tsx +0 -305
- package/src/widgets/__tests__/table-widget.test.tsx +0 -509
- package/src/widgets/__tests__/textarea-widget.test.tsx +0 -105
- package/src/widgets/__tests__/tracker-validator-edge-cases.test.ts +0 -242
- package/src/widgets/__tests__/tracker.test.ts +0 -133
- package/src/widgets/__tests__/tree-widget.test.tsx +0 -97
- package/src/widgets/__tests__/use-model-source.test.ts +0 -67
- package/src/widgets/__tests__/validator.test.ts +0 -208
- package/src/widgets/action/dispatcher.ts +0 -334
- package/src/widgets/action/index.ts +0 -2
- package/src/widgets/binding/index.ts +0 -2
- package/src/widgets/binding/resolver.ts +0 -61
- package/src/widgets/components/AttachmentWidget.tsx +0 -111
- package/src/widgets/components/AttachmentsWidget.tsx +0 -121
- package/src/widgets/components/BadgeWidget.tsx +0 -35
- package/src/widgets/components/ButtonWidget.tsx +0 -43
- package/src/widgets/components/CardWidget.tsx +0 -68
- package/src/widgets/components/CheckboxWidget.tsx +0 -39
- package/src/widgets/components/CodeWidget.tsx +0 -44
- package/src/widgets/components/ColumnWidget.tsx +0 -22
- package/src/widgets/components/ComputedWidget.tsx +0 -49
- package/src/widgets/components/DataWidget.tsx +0 -189
- package/src/widgets/components/DatePickerWidget.tsx +0 -73
- package/src/widgets/components/DatetimeWidget.tsx +0 -160
- package/src/widgets/components/DividerWidget.tsx +0 -37
- package/src/widgets/components/DrawerWidget.tsx +0 -52
- package/src/widgets/components/DynamicLinkWidget.tsx +0 -130
- package/src/widgets/components/GridWidget.tsx +0 -134
- package/src/widgets/components/GroupWidget.tsx +0 -111
- package/src/widgets/components/IconWidget.tsx +0 -29
- package/src/widgets/components/ImageWidget.tsx +0 -28
- package/src/widgets/components/InputWidget.tsx +0 -70
- package/src/widgets/components/JsonWidget.tsx +0 -78
- package/src/widgets/components/LinkWidget.tsx +0 -99
- package/src/widgets/components/ManyToManyWidget.tsx +0 -125
- package/src/widgets/components/ModalWidget.tsx +0 -52
- package/src/widgets/components/MoneyWidget.tsx +0 -80
- package/src/widgets/components/RepeatWidget.tsx +0 -66
- package/src/widgets/components/ScrollAreaWidget.tsx +0 -40
- package/src/widgets/components/SectionWidget.tsx +0 -78
- package/src/widgets/components/SelectWidget.tsx +0 -63
- package/src/widgets/components/SequenceWidget.tsx +0 -32
- package/src/widgets/components/SpacerWidget.tsx +0 -29
- package/src/widgets/components/SplitWidget.tsx +0 -60
- package/src/widgets/components/StackWidget.tsx +0 -44
- package/src/widgets/components/TableWidget.tsx +0 -366
- package/src/widgets/components/TextWidget.tsx +0 -44
- package/src/widgets/components/TextareaWidget.tsx +0 -49
- package/src/widgets/components/TreeWidget.tsx +0 -109
- package/src/widgets/components/index.ts +0 -30
- package/src/widgets/components/register.ts +0 -93
- package/src/widgets/components/table/CellRenderers.tsx +0 -83
- package/src/widgets/components/table/TablePagination.tsx +0 -45
- package/src/widgets/components/table/TableToolbar.tsx +0 -285
- package/src/widgets/components/table/filter-operators.ts +0 -134
- package/src/widgets/components/table/index.ts +0 -11
- package/src/widgets/condition/evaluator.ts +0 -57
- package/src/widgets/condition/index.ts +0 -1
- package/src/widgets/context/builder.ts +0 -99
- package/src/widgets/context/index.ts +0 -8
- package/src/widgets/context/types.ts +0 -37
- package/src/widgets/data/index.ts +0 -5
- package/src/widgets/data/useModelQuery.ts +0 -116
- package/src/widgets/data/useModelRecord.ts +0 -37
- package/src/widgets/expression/evaluator.ts +0 -100
- package/src/widgets/expression/functions.ts +0 -131
- package/src/widgets/expression/index.ts +0 -13
- package/src/widgets/expression/parser.ts +0 -229
- package/src/widgets/expression/types.ts +0 -45
- package/src/widgets/form/FormContext.ts +0 -29
- package/src/widgets/form/FormProvider.tsx +0 -84
- package/src/widgets/form/FormWidget.tsx +0 -42
- package/src/widgets/form/index.ts +0 -4
- package/src/widgets/form/useFormState.ts +0 -127
- package/src/widgets/form/useFormSubmit.ts +0 -90
- package/src/widgets/form/useFormValidation.ts +0 -62
- package/src/widgets/hooks/index.ts +0 -8
- package/src/widgets/hooks/useAction.ts +0 -83
- package/src/widgets/hooks/useBind.ts +0 -34
- package/src/widgets/hooks/useCondition.ts +0 -21
- package/src/widgets/hooks/useDataQuery.ts +0 -48
- package/src/widgets/hooks/useExpression.ts +0 -14
- package/src/widgets/hooks/usePageState.ts +0 -21
- package/src/widgets/hooks/useSurfaceContext.ts +0 -11
- package/src/widgets/hooks/useWidgetContext.ts +0 -14
- package/src/widgets/index.ts +0 -80
- package/src/widgets/lib/layout-props.ts +0 -135
- package/src/widgets/reactivity/index.ts +0 -11
- package/src/widgets/reactivity/tracker.ts +0 -139
- package/src/widgets/reactivity/variables.ts +0 -213
- package/src/widgets/registry.ts +0 -41
- package/src/widgets/renderer/SlotRenderer.tsx +0 -47
- package/src/widgets/renderer/WidgetRenderer.tsx +0 -191
- package/src/widgets/renderer/index.ts +0 -4
- package/src/widgets/shell/WidgetSlotRenderer.tsx +0 -73
- package/src/widgets/shell/index.ts +0 -4
- package/src/widgets/shell/useActionHandlers.ts +0 -170
- package/src/widgets/state/index.ts +0 -2
- package/src/widgets/state/store.ts +0 -96
- package/src/widgets/types.ts +0 -28
- package/src/widgets/validation/index.ts +0 -2
- package/src/widgets/validation/validator.ts +0 -140
- package/tsconfig.json +0 -27
- package/tsconfig.tsbuildinfo +0 -1
- package/vite.config.ts +0 -21
- package/vitest.config.ts +0 -16
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{r as E,j as M,R as _t,a as rs,b as Os}from"./vendor-radix-D-Trh8JA.js";var wt=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Zt(t){const s=E.useRef({value:t,prev:null}),e=s.current.value;return t!==e&&(s.current={value:t,prev:e}),s.current.prev}function Us(t,s,e={},n={}){E.useEffect(()=>{if(!t.current||n.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([r])=>{s(r)},e);return o.observe(t.current),()=>{o.disconnect()}},[s,e,n.disabled,t])}function Ws(t){const s=E.useRef(null);return E.useImperativeHandle(t,()=>s.current,[]),s}const is=!1;function Lt(t){return t[t.length-1]}function Hs(t){return typeof t=="function"}function rt(t,s){return Hs(t)?t(s):t}const as=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;function cs(t){for(const s in t)if(as.call(t,s))return!0;return!1}const Vs=()=>Object.create(null),nt=(t,s)=>X(t,s,Vs);function X(t,s,e=()=>({}),n=0){if(t===s)return t;if(n>500)return s;const o=s,r=je(t)&&je(o);if(!r&&!(Ut(t)&&Ut(o)))return o;const i=r?t:Be(t);if(!i)return o;const c=r?o:Be(o);if(!c)return o;const l=i.length,u=c.length,f=r?new Array(u):e();let a=0;for(let d=0;d<u;d++){const h=r?d:c[d],p=t[h],g=o[h];if(p===g){f[h]=p,(r?d<l:as.call(t,h))&&a++;continue}if(p===null||g===null||typeof p!="object"||typeof g!="object"){f[h]=g;continue}const m=X(p,g,e,n+1);f[h]=m,m===p&&a++}return l===u&&a===l?t:f}function Be(t){const s=Object.getOwnPropertyNames(t);for(const o of s)if(!Ee.call(t,o))return!1;const e=Object.getOwnPropertySymbols(t);if(e.length===0)return s;const n=s;for(const o of e){if(!Ee.call(t,o))return!1;n.push(o)}return n}function Ut(t){if(!Ae(t))return!1;const s=t.constructor;if(typeof s>"u")return!0;const e=s.prototype;return!(!Ae(e)||!e.hasOwnProperty("isPrototypeOf"))}function Ae(t){return Object.prototype.toString.call(t)==="[object Object]"}function je(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function at(t,s,e){if(t===s)return!0;if(typeof t!=typeof s)return!1;if(Array.isArray(t)&&Array.isArray(s)){if(t.length!==s.length)return!1;for(let n=0,o=t.length;n<o;n++)if(!at(t[n],s[n],e))return!1;return!0}if(Ut(t)&&Ut(s)){const n=(e==null?void 0:e.ignoreUndefined)??!0;if(e!=null&&e.partial){for(const i in s)if((!n||s[i]!==void 0)&&!at(t[i],s[i],e))return!1;return!0}let o=0;if(!n)o=Object.keys(t).length;else for(const i in t)t[i]!==void 0&&o++;let r=0;for(const i in s)if((!n||s[i]!==void 0)&&(r++,r>o||!at(t[i],s[i],e)))return!1;return o===r}return!1}function vt(t){let s,e;const n=new Promise((o,r)=>{s=o,e=r});return n.status="pending",n.resolve=o=>{n.status="resolved",n.value=o,s(o),t==null||t(o)},n.reject=o=>{n.status="rejected",e(o)},n}function Ct(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}function $s(t){return t.replace(/[\x00-\x1f\x7f]/g,"")}function De(t){let s;try{s=decodeURI(t)}catch{s=t.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return $s(s)}const zs=["http:","https:","mailto:","tel:"];function Wt(t,s){if(!t)return!1;try{const e=new URL(t);return!s.has(e.protocol)}catch{return!1}}function Pt(t){if(!t)return{path:t,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(t)&&!t.startsWith("//"))return{path:t,handledProtocolRelativeURL:!1};const s=/%25|%5C/gi;let e=0,n="",o;for(;(o=s.exec(t))!==null;)n+=De(t.slice(e,o.index))+o[0],e=s.lastIndex;n=n+De(e?t.slice(e):t);let r=!1;return n.startsWith("//")&&(r=!0,n="/"+n.replace(/^\/+/,"")),{path:n,handledProtocolRelativeURL:r}}function Ks(t){return/\s|[^\u0000-\u007F]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function Gs(t,s){if(t===s)return!0;if(t.length!==s.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==s[e])return!1;return!0}function q(){throw new Error("Invariant failed")}function It(t){const s=new Map;let e,n;const o=r=>{r.next&&(r.prev?(r.prev.next=r.next,r.next.prev=r.prev,r.next=void 0,n&&(n.next=r,r.prev=n)):(r.next.prev=void 0,e=r.next,r.next=void 0,n&&(r.prev=n,n.next=r)),n=r)};return{get(r){const i=s.get(r);if(i)return o(i),i.value},set(r,i){if(s.size>=t&&e){const l=e;s.delete(l.key),l.next&&(e=l.next,l.next.prev=void 0),l===n&&(n=void 0)}const c=s.get(r);if(c)c.value=i,o(c);else{const l={key:r,value:i,prev:n};n&&(n.next=l),n=l,e||(e=l),s.set(r,l)}},clear(){s.clear(),e=void 0,n=void 0}}}const Z=4,ls=5;function qs(t){const s=t.indexOf("{");if(s===-1)return null;const e=t.indexOf("}",s);return e===-1||s+1>=t.length?null:[s,e]}function us(t,s,e=new Uint16Array(6)){const n=t.indexOf("/",s),o=n===-1?t.length:n,r=t.substring(s,o);if(!r||!r.includes("$"))return e[0]=0,e[1]=s,e[2]=s,e[3]=o,e[4]=o,e[5]=o,e;if(r==="$"){const c=t.length;return e[0]=2,e[1]=s,e[2]=s,e[3]=c,e[4]=c,e[5]=c,e}if(r.charCodeAt(0)===36)return e[0]=1,e[1]=s,e[2]=s+1,e[3]=o,e[4]=o,e[5]=o,e;const i=qs(r);if(i){const[c,l]=i,u=r.charCodeAt(c+1);if(u===45){if(c+2<r.length&&r.charCodeAt(c+2)===36){const f=c+3,a=l;if(f<a)return e[0]=3,e[1]=s+c,e[2]=s+f,e[3]=s+a,e[4]=s+l+1,e[5]=o,e}}else if(u===36){const f=c+1,a=c+2;return a===l?(e[0]=2,e[1]=s+c,e[2]=s+f,e[3]=s+a,e[4]=s+l+1,e[5]=t.length,e):(e[0]=1,e[1]=s+c,e[2]=s+a,e[3]=s+l,e[4]=s+l+1,e[5]=o,e)}}return e[0]=0,e[1]=s,e[2]=s,e[3]=o,e[4]=o,e[5]=o,e}function Kt(t,s,e,n,o,r,i){var l,u,f,a,d,h,p,g,m,x;i==null||i(e);let c=n;{const v=e.fullPath??e.from,_=v.length,S=((l=e.options)==null?void 0:l.caseSensitive)??t,w=((f=(u=e.options)==null?void 0:u.params)==null?void 0:f.parse)??((a=e.options)==null?void 0:a.parseParams);for(;c<_;){const y=us(v,c,s);let P;const b=c,R=y[5];switch(c=R+1,r++,y[0]){case 0:{const L=v.substring(y[2],y[3]);if(S){const k=(d=o.static)==null?void 0:d.get(L);if(k)P=k;else{o.static??(o.static=new Map);const C=it(e.fullPath??e.from);C.parent=o,C.depth=r,P=C,o.static.set(L,C)}}else{const k=L.toLowerCase(),C=(h=o.staticInsensitive)==null?void 0:h.get(k);if(C)P=C;else{o.staticInsensitive??(o.staticInsensitive=new Map);const T=it(e.fullPath??e.from);T.parent=o,T.depth=r,P=T,o.staticInsensitive.set(k,T)}}break}case 1:{const L=v.substring(b,y[1]),k=v.substring(y[4],R),C=S&&!!(L||k),T=L?C?L:L.toLowerCase():void 0,F=k?C?k:k.toLowerCase():void 0,j=!w&&((p=o.dynamic)==null?void 0:p.find(B=>!B.parse&&B.caseSensitive===C&&B.prefix===T&&B.suffix===F));if(j)P=j;else{const B=te(1,e.fullPath??e.from,C,T,F);P=B,B.depth=r,B.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(B)}break}case 3:{const L=v.substring(b,y[1]),k=v.substring(y[4],R),C=S&&!!(L||k),T=L?C?L:L.toLowerCase():void 0,F=k?C?k:k.toLowerCase():void 0,j=!w&&((g=o.optional)==null?void 0:g.find(B=>!B.parse&&B.caseSensitive===C&&B.prefix===T&&B.suffix===F));if(j)P=j;else{const B=te(3,e.fullPath??e.from,C,T,F);P=B,B.parent=o,B.depth=r,o.optional??(o.optional=[]),o.optional.push(B)}break}case 2:{const L=v.substring(b,y[1]),k=v.substring(y[4],R),C=S&&!!(L||k),T=L?C?L:L.toLowerCase():void 0,F=k?C?k:k.toLowerCase():void 0,j=te(2,e.fullPath??e.from,C,T,F);P=j,j.parent=o,j.depth=r,o.wildcard??(o.wildcard=[]),o.wildcard.push(j)}}o=P}if(w&&e.children&&!e.isRoot&&e.id&&e.id.charCodeAt(e.id.lastIndexOf("/")+1)===95){const y=it(e.fullPath??e.from);y.kind=ls,y.parent=o,r++,y.depth=r,o.pathless??(o.pathless=[]),o.pathless.push(y),o=y}const I=(e.path||!e.children)&&!e.isRoot;if(I&&v.endsWith("/")){const y=it(e.fullPath??e.from);y.kind=Z,y.parent=o,r++,y.depth=r,o.index=y,o=y}o.parse=w??null,o.priority=((x=(m=e.options)==null?void 0:m.params)==null?void 0:x.priority)??0,I&&!o.route&&(o.route=e,o.fullPath=e.fullPath??e.from)}if(e.children)for(const v of e.children)Kt(t,s,v,c,o,r,i)}function Qt(t,s){if(t.parse&&!s.parse)return-1;if(!t.parse&&s.parse)return 1;if(t.parse&&s.parse&&(t.priority||s.priority))return s.priority-t.priority;if(t.prefix&&s.prefix&&t.prefix!==s.prefix){if(t.prefix.startsWith(s.prefix))return-1;if(s.prefix.startsWith(t.prefix))return 1}if(t.suffix&&s.suffix&&t.suffix!==s.suffix){if(t.suffix.endsWith(s.suffix))return-1;if(s.suffix.endsWith(t.suffix))return 1}return t.prefix&&!s.prefix?-1:!t.prefix&&s.prefix?1:t.suffix&&!s.suffix?-1:!t.suffix&&s.suffix?1:t.caseSensitive&&!s.caseSensitive?-1:!t.caseSensitive&&s.caseSensitive?1:0}function Y(t){var s,e,n;if(t.pathless)for(const o of t.pathless)Y(o);if(t.static)for(const o of t.static.values())Y(o);if(t.staticInsensitive)for(const o of t.staticInsensitive.values())Y(o);if((s=t.dynamic)!=null&&s.length){t.dynamic.sort(Qt);for(const o of t.dynamic)Y(o)}if((e=t.optional)!=null&&e.length){t.optional.sort(Qt);for(const o of t.optional)Y(o)}if((n=t.wildcard)!=null&&n.length){t.wildcard.sort(Qt);for(const o of t.wildcard)Y(o)}}function it(t){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0}}function te(t,s,e,n,o){return{kind:t,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:s,parent:null,parse:null,priority:0,caseSensitive:e,prefix:n,suffix:o}}function Js(t,s){const e=it("/"),n=new Uint16Array(6);for(const o of t)Kt(!1,n,o,1,e,0);Y(e),s.masksTree=e,s.flatCache=It(1e3)}function Ys(t,s){t||(t="/");const e=s.flatCache.get(t);if(e)return e;const n=ye(t,s.masksTree);return s.flatCache.set(t,n),n}function Xs(t,s,e,n,o){t||(t="/"),n||(n="/");const r=s?`case\0${t}`:t;let i=o.singleCache.get(r);return i||(i=it("/"),Kt(s,new Uint16Array(6),{from:t},1,i,0),o.singleCache.set(r,i)),ye(n,i,e)}function Zs(t,s,e=!1){const n=e?t:`nofuzz\0${t}`,o=s.matchCache.get(n);if(o!==void 0)return o;t||(t="/");let r;try{r=ye(t,s.segmentTree,e)}catch(i){if(i instanceof URIError)r=null;else throw i}return r&&(r.branch=ds(r.route)),s.matchCache.set(n,r),r}function Qs(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function to(t,s=!1,e){const n=it(t.fullPath),o=new Uint16Array(6),r={},i={};let c=0;return Kt(s,o,t,1,n,0,l=>{if(e==null||e(l,c),l.id in r&&q(),r[l.id]=l,c!==0&&l.path){const u=Qs(l.fullPath);(!i[u]||l.fullPath.endsWith("/"))&&(i[u]=l)}c++}),Y(n),{processedTree:{segmentTree:n,singleCache:It(1e3),matchCache:It(1e3),flatCache:null,masksTree:null},routesById:r,routesByPath:i}}function ye(t,s,e=!1){const n=t.split("/"),o=so(t,n,s,e);if(!o)return null;const[r]=fs(t,n,o);return{route:o.node.route,rawParams:r}}function fs(t,s,e){var f,a,d,h,p,g,m,x,v,_;const n=eo(e.node);let o=null;const r=Object.create(null);let i=((f=e.extract)==null?void 0:f.part)??0,c=((a=e.extract)==null?void 0:a.node)??0,l=((d=e.extract)==null?void 0:d.path)??0,u=((h=e.extract)==null?void 0:h.segment)??0;for(;c<n.length;i++,c++,l++,u++){const S=n[c];if(S.kind===Z)break;if(S.kind===ls){u--,i--,l--;continue}const w=s[i],I=l;if(w&&(l+=w.length),S.kind===1){o??(o=e.node.fullPath.split("/"));const y=o[u],P=((p=S.prefix)==null?void 0:p.length)??0;if(y.charCodeAt(P)===123){const b=((g=S.suffix)==null?void 0:g.length)??0,R=y.substring(P+2,y.length-b-1),L=w.substring(P,w.length-b);r[R]=decodeURIComponent(L)}else{const b=y.substring(1);r[b]=decodeURIComponent(w)}}else if(S.kind===3){if(e.skipped&1<<c){i--,l=I-1;continue}o??(o=e.node.fullPath.split("/"));const y=o[u],P=((m=S.prefix)==null?void 0:m.length)??0,b=((x=S.suffix)==null?void 0:x.length)??0,R=y.substring(P+3,y.length-b-1),L=S.suffix||S.prefix?w.substring(P,w.length-b):w;L&&(r[R]=decodeURIComponent(L))}else if(S.kind===2){const y=S,P=t.substring(I+(((v=y.prefix)==null?void 0:v.length)??0),t.length-(((_=y.suffix)==null?void 0:_.length)??0)),b=decodeURIComponent(P);r["*"]=b,r._splat=b;break}}return e.rawParams&&Object.assign(r,e.rawParams),[r,{part:i,node:c,path:l,segment:u}]}function ds(t){const s=[t];for(;t.parentRoute;)t=t.parentRoute,s.push(t);return s.reverse(),s}function eo(t){const s=Array(t.depth+1);do s[t.depth]=t,t=t.parent;while(t);return s}function so(t,s,e,n){if(t==="/"&&e.index)return{node:e.index,skipped:0};const o=!Lt(s),r=o&&t!=="/",i=s.length-(o?1:0),c=[{node:e,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let l=null,u=null;for(;c.length;){const f=c.pop(),{node:a,index:d,skipped:h,depth:p,statics:g,dynamics:m,optionals:x}=f;let{extract:v,rawParams:_}=f;if(a.kind===2&&a.route&&!Bt(u,f))continue;if(a.parse){if(!Fe(t,s,f))continue;_=f.rawParams,v=f.extract}n&&a.route&&a.kind!==Z&&Bt(l,f)&&(l=f);const S=d===i;if(S&&(a.route&&(!r||a.kind===Z||a.kind===2)&&Bt(u,f)&&(u=f),!a.optional&&!a.wildcard&&!a.index&&!a.pathless))continue;const w=S?void 0:s[d];let I;if(S&&a.index){const y={node:a.index,index:d,skipped:h,depth:p+1,statics:g,dynamics:m,optionals:x,extract:v,rawParams:_};let P=!0;if(a.index.parse&&(Fe(t,s,y)||(P=!1)),P){if(!m&&!x&&!h&&oo(g,i))return y;Bt(u,y)&&(u=y)}}if(a.wildcard)for(let y=a.wildcard.length-1;y>=0;y--){const P=a.wildcard[y],{prefix:b,suffix:R}=P;if(!(b&&(S||!(P.caseSensitive?w:I??(I=w.toLowerCase())).startsWith(b)))){if(R){if(S)continue;const L=s.slice(d).join("/").slice(-R.length);if((P.caseSensitive?L:L.toLowerCase())!==R)continue}c.push({node:P,index:i,skipped:h,depth:p+1,statics:g,dynamics:m,optionals:x,extract:v,rawParams:_})}}if(a.optional){const y=h|1<<p,P=p+1;for(let b=a.optional.length-1;b>=0;b--){const R=a.optional[b];c.push({node:R,index:d,skipped:y,depth:P,statics:g,dynamics:m,optionals:x,extract:v,rawParams:_})}if(!S)for(let b=a.optional.length-1;b>=0;b--){const R=a.optional[b],{prefix:L,suffix:k}=R;if(L||k){const C=R.caseSensitive?w:I??(I=w.toLowerCase());if(L&&!C.startsWith(L)||k&&!C.endsWith(k))continue}c.push({node:R,index:d+1,skipped:h,depth:P,statics:g,dynamics:m,optionals:x+Et(i,d),extract:v,rawParams:_})}}if(!S&&a.dynamic&&w)for(let y=a.dynamic.length-1;y>=0;y--){const P=a.dynamic[y],{prefix:b,suffix:R}=P;if(b||R){const L=P.caseSensitive?w:I??(I=w.toLowerCase());if(b&&!L.startsWith(b)||R&&!L.endsWith(R))continue}c.push({node:P,index:d+1,skipped:h,depth:p+1,statics:g,dynamics:m+Et(i,d),optionals:x,extract:v,rawParams:_})}if(!S&&a.staticInsensitive){const y=a.staticInsensitive.get(I??(I=w.toLowerCase()));y&&c.push({node:y,index:d+1,skipped:h,depth:p+1,statics:g+Et(i,d),dynamics:m,optionals:x,extract:v,rawParams:_})}if(!S&&a.static){const y=a.static.get(w);y&&c.push({node:y,index:d+1,skipped:h,depth:p+1,statics:g+Et(i,d),dynamics:m,optionals:x,extract:v,rawParams:_})}if(a.pathless){const y=p+1;for(let P=a.pathless.length-1;P>=0;P--){const b=a.pathless[P];c.push({node:b,index:d,skipped:h,depth:y,statics:g,dynamics:m,optionals:x,extract:v,rawParams:_})}}}if(u)return u;if(n&&l){let f=l.index;for(let d=0;d<l.index;d++)f+=s[d].length;const a=f===t.length?"/":t.slice(f);return l.rawParams??(l.rawParams=Object.create(null)),l.rawParams["**"]=decodeURIComponent(a),l}return null}function Et(t,s){return 2**(t-s-1)}function oo(t,s){return t===2**(s-1)-1}function Fe(t,s,e){let n,o;try{[n,o]=fs(t,s,e)}catch{return null}if(e.rawParams=n,e.extract=o,!e.node.parse)return!0;try{if(e.node.parse(n)===!1)return null}catch{}return!0}function Bt(t,s){return t?s.statics>t.statics||s.statics===t.statics&&(s.dynamics>t.dynamics||s.dynamics===t.dynamics&&(s.optionals>t.optionals||s.optionals===t.optionals&&((s.node.kind===Z)>(t.node.kind===Z)||s.node.kind===Z==(t.node.kind===Z)&&s.depth>t.depth))):!0}function Dt(t){return ve(t.filter(s=>s!==void 0).join("/"))}function ve(t){return t.replace(/\/{2,}/g,"/")}function hs(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function G(t){const s=t.length;return s>1&&t[s-1]==="/"?t.replace(/\/{1,}$/,""):t}function ps(t){return G(hs(t))}function Ht(t,s){return t!=null&&t.endsWith("/")&&t!=="/"&&t!==`${s}/`?t.slice(0,-1):t}function no(t,s,e){return Ht(t,e)===Ht(s,e)}function ro({base:t,to:s,trailingSlash:e="never",cache:n}){const o=s.startsWith("/"),r=!o&&s===".";let i;if(n){i=o?s:r?t:t+"\0"+s;const u=n.get(i);if(u)return u}let c;if(r)c=t.split("/");else if(o)c=s.split("/");else{for(c=t.split("/");c.length>1&&Lt(c)==="";)c.pop();const u=s.split("/");for(let f=0,a=u.length;f<a;f++){const d=u[f];d===""?f?f===a-1&&c.push(d):c=[d]:d===".."?c.pop():d==="."||c.push(d)}}c.length>1&&(Lt(c)===""?e==="never"&&c.pop():e==="always"&&c.push(""));const l=ve(c.join("/"))||"/";return i&&n&&n.set(i,l),l}function io(t){const s=new Map(t.map(o=>[encodeURIComponent(o),o])),e=Array.from(s.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),n=new RegExp(e,"g");return o=>o.replace(n,r=>s.get(r)??r)}function ee(t,s,e){const n=s[t];return typeof n!="string"?n:t==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(n)?n:n.split("/").map(o=>Oe(o,e)).join("/"):Oe(n,e)}function Ne({path:t,params:s,decoder:e,...n}){let o=!1;const r=Object.create(null);if(!t||t==="/")return{interpolatedPath:"/",usedParams:r,isMissingParams:o};if(!t.includes("$"))return{interpolatedPath:t,usedParams:r,isMissingParams:o};const i=t.length;let c=0,l,u="";for(;c<i;){const f=c;l=us(t,f,l);const a=l[5];if(c=a+1,f===a)continue;const d=l[0];if(d===0){u+="/"+t.substring(f,a);continue}if(d===2){const h=s._splat;r._splat=h,r["*"]=h;const p=t.substring(f,l[1]),g=t.substring(l[4],a);if(!h){o=!0,(p||g)&&(u+="/"+p+g);continue}const m=ee("_splat",s,e);u+="/"+p+m+g;continue}if(d===1){const h=t.substring(l[2],l[3]);!o&&!(h in s)&&(o=!0),r[h]=s[h];const p=t.substring(f,l[1]),g=t.substring(l[4],a),m=ee(h,s,e)??"undefined";u+="/"+p+m+g;continue}if(d===3){const h=t.substring(l[2],l[3]),p=s[h];if(p==null)continue;r[h]=p;const g=t.substring(f,l[1]),m=t.substring(l[4],a),x=ee(h,s,e)??"";u+="/"+g+x+m;continue}}return t.endsWith("/")&&(u+="/"),{usedParams:r,interpolatedPath:u||"/",isMissingParams:o}}function Oe(t,s){const e=encodeURIComponent(t);return(s==null?void 0:s(e))??e}function N(t){return(t==null?void 0:t.isNotFound)===!0}function ao(t,s=String){const e=new URLSearchParams;for(const n in t){const o=t[n];o!==void 0&&e.set(n,s(o))}return e.toString()}function se(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function co(t){const s=new URLSearchParams(t),e=Object.create(null);for(const[n,o]of s.entries()){const r=e[n];r==null?e[n]=se(o):Array.isArray(r)?r.push(se(o)):e[n]=[r,se(o)]}return e}const lo=fo(JSON.parse),uo=ho(JSON.stringify,JSON.parse);function fo(t){return s=>{s[0]==="?"&&(s=s.substring(1));const e=co(s);for(const n in e){const o=e[n];if(typeof o=="string")try{e[n]=t(o)}catch{}}return e}}function ho(t,s){const e=typeof s=="function";function n(o){if(typeof o=="object"&&o!==null)try{return t(o)}catch{}else if(e&&typeof o=="string")try{return s(o),t(o)}catch{}return o}return o=>{const r=ao(o,n);return r?`?${r}`:""}}const ct="__root__";function po(t){if(t.statusCode=t.statusCode||t.code||307,!t._builtLocation&&!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}const s=new Headers(t.headers);t.href&&s.get("Location")===null&&s.set("Location",t.href);const e=new Response(null,{status:t.statusCode,headers:s});if(e.options=t,t.throw)throw e;return e}function W(t){return t instanceof Response&&!!t.options}const ue=t=>{var s;if(!t.rendered)return t.rendered=!0,(s=t.onReady)==null?void 0:s.call(t)},go=t=>t.stores.matchesId.get().some(s=>{var e;return(e=t.stores.matchStores.get(s))==null?void 0:e.get()._forcePending}),Gt=(t,s)=>!!(t.preload&&!t.router.stores.matchStores.has(s)),lt=(t,s,e=!0)=>{const n={...t.router.options.context??{}},o=e?s:s-1;for(let r=0;r<=o;r++){const i=t.matches[r];if(!i)continue;const c=t.router.getMatch(i.id);c&&Object.assign(n,c.__routeContext,c.__beforeLoadContext)}return n},Ue=(t,s)=>{if(!t.matches.length)return;const e=s.routeId,n=t.matches.findIndex(i=>i.routeId===t.router.routeTree.id),o=n>=0?n:0;let r=e?t.matches.findIndex(i=>i.routeId===e):t.firstBadMatchIndex??t.matches.length-1;r<0&&(r=o);for(let i=r;i>=0;i--){const c=t.matches[i];if(t.router.looseRoutesById[c.routeId].options.notFoundComponent)return i}return e?r:o},Q=(t,s,e)=>{var n,o,r;if(!(!W(e)&&!N(e)))throw W(e)&&e.redirectHandled&&!e.options.reloadDocument||(s&&((n=s._nonReactive.beforeLoadPromise)==null||n.resolve(),(o=s._nonReactive.loaderPromise)==null||o.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loaderPromise=void 0,s._nonReactive.error=e,t.updateMatch(s.id,i=>({...i,status:W(e)?"redirected":N(e)?"notFound":i.status==="pending"?"success":i.status,context:lt(t,s.index),isFetching:!1,error:e})),N(e)&&!e.routeId&&(e.routeId=s.routeId),(r=s._nonReactive.loadPromise)==null||r.resolve()),W(e)&&(t.rendered=!0,e.options._fromLocation=t.location,e.redirectHandled=!0,e=t.router.resolveRedirect(e))),e},gs=(t,s)=>{const e=t.router.getMatch(s);return!!(!e||e._nonReactive.dehydrated)},We=(t,s,e)=>{const n=lt(t,e);t.updateMatch(s,o=>({...o,context:n}))},Rt=(t,s,e)=>{var i,c;const{id:n,routeId:o}=t.matches[s],r=t.router.looseRoutesById[o];if(e instanceof Promise)throw e;t.firstBadMatchIndex??(t.firstBadMatchIndex=s),Q(t,t.router.getMatch(n),e);try{(c=(i=r.options).onError)==null||c.call(i,e)}catch(l){e=l,Q(t,t.router.getMatch(n),e)}t.updateMatch(n,l=>{var u,f;return(u=l._nonReactive.beforeLoadPromise)==null||u.resolve(),l._nonReactive.beforeLoadPromise=void 0,(f=l._nonReactive.loadPromise)==null||f.resolve(),{...l,error:e,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!t.preload&&!W(e)&&!N(e)&&(t.serialError??(t.serialError=e))},ms=(t,s,e,n)=>{var r;if(n._nonReactive.pendingTimeout!==void 0)return;const o=e.options.pendingMs??t.router.options.defaultPendingMs;if(t.onReady&&!Gt(t,s)&&(e.options.loader||e.options.beforeLoad||vs(e))&&typeof o=="number"&&o!==1/0&&(e.options.pendingComponent??((r=t.router.options)==null?void 0:r.defaultPendingComponent))){const i=setTimeout(()=>{ue(t)},o);n._nonReactive.pendingTimeout=i}},mo=(t,s,e)=>{const n=t.router.getMatch(s);if(!n._nonReactive.beforeLoadPromise&&!n._nonReactive.loaderPromise)return;ms(t,s,e,n);const o=()=>{const r=t.router.getMatch(s);r.preload&&(r.status==="redirected"||r.status==="notFound")&&Q(t,r,r.error)};return n._nonReactive.beforeLoadPromise?n._nonReactive.beforeLoadPromise.then(o):o()},yo=(t,s,e,n)=>{const o=t.router.getMatch(s);let r=o._nonReactive.loadPromise;o._nonReactive.loadPromise=vt(()=>{r==null||r.resolve(),r=void 0});const{paramsError:i,searchError:c}=o;i&&Rt(t,e,i),c&&Rt(t,e,c),ms(t,s,n,o);const l=new AbortController;let u=!1;const f=()=>{u||(u=!0,t.updateMatch(s,S=>({...S,isFetching:"beforeLoad",fetchCount:S.fetchCount+1,abortController:l})))},a=()=>{var S;(S=o._nonReactive.beforeLoadPromise)==null||S.resolve(),o._nonReactive.beforeLoadPromise=void 0,t.updateMatch(s,w=>({...w,isFetching:!1}))};if(!n.options.beforeLoad){t.router.batch(()=>{f(),a()});return}o._nonReactive.beforeLoadPromise=vt();const d={...lt(t,e,!1),...o.__routeContext},{search:h,params:p,cause:g}=o,m=Gt(t,s),x={search:h,abortController:l,params:p,preload:m,context:d,location:t.location,navigate:S=>t.router.navigate({...S,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:m?"preload":g,matches:t.matches,routeId:n.id,...t.router.options.additionalContext},v=S=>{if(S===void 0){t.router.batch(()=>{f(),a()});return}(W(S)||N(S))&&(f(),Rt(t,e,S)),t.router.batch(()=>{f(),t.updateMatch(s,w=>({...w,__beforeLoadContext:S})),a()})};let _;try{if(_=n.options.beforeLoad(x),Ct(_))return f(),_.catch(S=>{Rt(t,e,S)}).then(v)}catch(S){f(),Rt(t,e,S)}v(_)},vo=(t,s)=>{const{id:e,routeId:n}=t.matches[s],o=t.router.looseRoutesById[n],r=()=>c(),i=()=>yo(t,e,s,o),c=()=>{if(gs(t,e))return;const l=mo(t,e,o);return Ct(l)?l.then(i):i()};return r()},So=(t,s,e)=>{var r,i,c,l,u,f;const n=t.router.getMatch(s);if(!n||!e.options.head&&!e.options.scripts&&!e.options.headers)return;const o={ssr:t.router.options.ssr,matches:t.matches,match:n,params:n.params,loaderData:n.loaderData};return Promise.all([(i=(r=e.options).head)==null?void 0:i.call(r,o),(l=(c=e.options).scripts)==null?void 0:l.call(c,o),(f=(u=e.options).headers)==null?void 0:f.call(u,o)]).then(([a,d,h])=>({meta:a==null?void 0:a.meta,links:a==null?void 0:a.links,headScripts:a==null?void 0:a.scripts,headers:h,scripts:d,styles:a==null?void 0:a.styles}))},ys=(t,s,e,n,o)=>{const r=s[n-1],{params:i,loaderDeps:c,abortController:l,cause:u}=t.router.getMatch(e),f=lt(t,n),a=Gt(t,e);return{params:i,deps:c,preload:!!a,parentMatchPromise:r,abortController:l,context:f,location:t.location,navigate:d=>t.router.navigate({...d,_fromLocation:t.location}),cause:a?"preload":u,route:o,...t.router.options.additionalContext}},He=async(t,s,e,n,o)=>{var r,i,c,l,u;try{const f=t.router.getMatch(e);try{(!(is??t.router.isServer)||f.ssr===!0)&&Mt(o);const a=o.options.loader,d=typeof a=="function"?a:a==null?void 0:a.handler,h=d==null?void 0:d(ys(t,s,e,n,o)),p=!!d&&Ct(h);if((p||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||f._nonReactive.minPendingPromise)&&t.updateMatch(e,m=>({...m,isFetching:"loader"})),d){const m=p?await h:h;Q(t,t.router.getMatch(e),m),m!==void 0&&t.updateMatch(e,x=>({...x,loaderData:m}))}o._lazyPromise&&await o._lazyPromise;const g=f._nonReactive.minPendingPromise;g&&await g,o._componentsPromise&&await o._componentsPromise,t.updateMatch(e,m=>({...m,error:void 0,context:lt(t,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(a){let d=a;if((d==null?void 0:d.name)==="AbortError"){if(f.abortController.signal.aborted){(r=f._nonReactive.loaderPromise)==null||r.resolve(),f._nonReactive.loaderPromise=void 0;return}t.updateMatch(e,p=>({...p,status:p.status==="pending"?"success":p.status,isFetching:!1,context:lt(t,n)}));return}const h=f._nonReactive.minPendingPromise;h&&await h,N(a)&&await((c=(i=o.options.notFoundComponent)==null?void 0:i.preload)==null?void 0:c.call(i)),Q(t,t.router.getMatch(e),a);try{(u=(l=o.options).onError)==null||u.call(l,a)}catch(p){d=p,Q(t,t.router.getMatch(e),p)}!W(d)&&!N(d)&&await Mt(o,["errorComponent"]),t.updateMatch(e,p=>({...p,error:d,context:lt(t,n),status:"error",isFetching:!1}))}}catch(f){const a=t.router.getMatch(e);a&&(a._nonReactive.loaderPromise=void 0),Q(t,a,f)}},xo=async(t,s,e)=>{var h,p,g,m;async function n(x,v,_,S,w){const I=Date.now()-v.updatedAt,y=x?w.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:w.options.staleTime??t.router.options.defaultStaleTime??0,P=w.options.shouldReload,b=typeof P=="function"?P(ys(t,s,o,e,w)):P,{status:R,invalid:L}=S,k=I>=y&&(!!t.forceStaleReload||S.cause==="enter"||_!==void 0&&_!==S.id);i=R==="success"&&(L||(b??k)),x&&w.options.preload===!1||(i&&!t.sync&&f?(c=!0,(async()=>{var C,T;try{await He(t,s,o,e,w);const F=t.router.getMatch(o);(C=F._nonReactive.loaderPromise)==null||C.resolve(),(T=F._nonReactive.loadPromise)==null||T.resolve(),F._nonReactive.loaderPromise=void 0,F._nonReactive.loadPromise=void 0}catch(F){W(F)&&await t.router.navigate(F.options)}})()):R!=="success"||i?await He(t,s,o,e,w):We(t,o,e))}const{id:o,routeId:r}=t.matches[e];let i=!1,c=!1;const l=t.router.looseRoutesById[r],u=l.options.loader,f=((typeof u=="function"||u==null?void 0:u.staleReloadMode)??t.router.options.defaultStaleReloadMode)!=="blocking";if(gs(t,o)){if(!t.router.getMatch(o))return t.matches[e];We(t,o,e)}else{const x=t.router.getMatch(o),v=t.router.stores.matchesId.get()[e],_=((h=v&&t.router.stores.matchStores.get(v)||null)==null?void 0:h.routeId)===r?v:(p=t.router.stores.matches.get().find(w=>w.routeId===r))==null?void 0:p.id,S=Gt(t,o);if(x._nonReactive.loaderPromise){if(x.status==="success"&&!t.sync&&!x.preload&&f)return x;await x._nonReactive.loaderPromise;const w=t.router.getMatch(o),I=w._nonReactive.error||w.error;I&&Q(t,w,I),w.status==="pending"&&await n(S,x,_,w,l)}else{const w=S&&!t.router.stores.matchStores.has(o),I=t.router.getMatch(o);I._nonReactive.loaderPromise=vt(),w!==I.preload&&t.updateMatch(o,y=>({...y,preload:w})),await n(S,x,_,I,l)}}const a=t.router.getMatch(o);c||((g=a._nonReactive.loaderPromise)==null||g.resolve(),(m=a._nonReactive.loadPromise)==null||m.resolve(),a._nonReactive.loadPromise=void 0),clearTimeout(a._nonReactive.pendingTimeout),a._nonReactive.pendingTimeout=void 0,c||(a._nonReactive.loaderPromise=void 0),a._nonReactive.dehydrated=void 0;const d=c?a.isFetching:!1;return d!==a.isFetching||a.invalid!==!1?(t.updateMatch(o,x=>({...x,isFetching:d,invalid:!1})),t.router.getMatch(o)):a};async function Ve(t){var d,h;const s=t,e=[];go(s.router)&&ue(s);let n;for(let p=0;p<s.matches.length;p++){try{const g=vo(s,p);Ct(g)&&await g}catch(g){if(W(g))throw g;if(N(g))n=g;else if(!s.preload)throw g;break}if(s.serialError||s.firstBadMatchIndex!=null)break}const o=s.firstBadMatchIndex??s.matches.length,r=n&&!s.preload?Ue(s,n):void 0,i=n&&s.preload?0:r!==void 0?Math.min(r+1,o):o;let c,l;for(let p=0;p<i;p++)e.push(xo(s,e,p));try{await Promise.all(e)}catch{const p=await Promise.allSettled(e);for(const g of p){if(g.status!=="rejected")continue;const m=g.reason;if(W(m))throw m;N(m)?c??(c=m):l??(l=m)}if(l!==void 0)throw l}const u=c??(n&&!s.preload?n:void 0);let f=s.firstBadMatchIndex!==void 0?s.firstBadMatchIndex:s.matches.length-1;if(!u&&n&&s.preload)return s.matches;if(u){const p=Ue(s,u);p===void 0&&q();const g=s.matches[p],m=s.router.looseRoutesById[g.routeId],x=(d=s.router.options)==null?void 0:d.defaultNotFoundComponent;!m.options.notFoundComponent&&x&&(m.options.notFoundComponent=x),u.routeId=g.routeId;const v=g.routeId===s.router.routeTree.id;s.updateMatch(g.id,_=>({..._,...v?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:u},isFetching:!1})),f=p,await Mt(m,["notFoundComponent"])}else if(!s.preload){const p=s.matches[0];p.globalNotFound||(h=s.router.getMatch(p.id))!=null&&h.globalNotFound&&s.updateMatch(p.id,g=>({...g,globalNotFound:!1,error:void 0}))}if(s.serialError&&s.firstBadMatchIndex!==void 0){const p=s.router.looseRoutesById[s.matches[s.firstBadMatchIndex].routeId];await Mt(p,["errorComponent"])}for(let p=0;p<=f;p++){const{id:g,routeId:m}=s.matches[p],x=s.router.looseRoutesById[m];try{const v=So(s,g,x);if(v){const _=await v;s.updateMatch(g,S=>({...S,..._}))}}catch(v){console.error(`Error executing head for route ${m}:`,v)}}const a=ue(s);if(Ct(a)&&await a,u)throw u;if(s.serialError&&!s.preload&&!s.onReady)throw s.serialError;return s.matches}function $e(t,s){const e=s.map(n=>{var o,r;return(r=(o=t.options[n])==null?void 0:o.preload)==null?void 0:r.call(o)}).filter(Boolean);if(e.length!==0)return Promise.all(e)}function Mt(t,s=Ft){!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(n=>{const{id:o,...r}=n.options;Object.assign(t.options,r),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0);const e=()=>t._componentsLoaded?void 0:s===Ft?(()=>{if(t._componentsPromise===void 0){const n=$e(t,Ft);n?t._componentsPromise=n.then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0}):t._componentsLoaded=!0}return t._componentsPromise})():$e(t,s);return t._lazyPromise?t._lazyPromise.then(e):e()}function vs(t){var s;for(const e of Ft)if((s=t.options[e])!=null&&s.preload)return!0;return!1}const Ft=["component","errorComponent","pendingComponent","notFoundComponent"];function Po(t){return{input:({url:s})=>{for(const e of t)s=fe(e,s);return s},output:({url:s})=>{for(let e=t.length-1;e>=0;e--)s=Ss(t[e],s);return s}}}function Ro(t){const s=ps(t.basepath),e=`/${s}`,n=t.caseSensitive?e:e.toLowerCase(),o=`${n}/`;return{input:({url:r})=>{const i=t.caseSensitive?r.pathname:r.pathname.toLowerCase();return i===n?r.pathname="/":i.startsWith(o)&&(r.pathname=r.pathname.slice(e.length)),r},output:({url:r})=>(r.pathname=Dt(["/",s,r.pathname]),r)}}function fe(t,s){var n;const e=(n=t==null?void 0:t.input)==null?void 0:n.call(t,{url:s});if(e){if(typeof e=="string")return new URL(e);if(e instanceof URL)return e}return s}function Ss(t,s){var n;const e=(n=t==null?void 0:t.output)==null?void 0:n.call(t,{url:s});if(e){if(typeof e=="string")return new URL(e);if(e instanceof URL)return e}return s}function bo(t,s){const{createMutableStore:e,createReadonlyStore:n,batch:o,init:r}=s,i=new Map,c=new Map,l=new Map,u=e(t.status),f=e(t.loadedAt),a=e(t.isLoading),d=e(t.isTransitioning),h=e(t.location),p=e(t.resolvedLocation),g=e(t.statusCode),m=e(t.redirect),x=e([]),v=e([]),_=e([]),S=n(()=>oe(i,x.get())),w=n(()=>oe(c,v.get())),I=n(()=>oe(l,_.get())),y=n(()=>x.get()[0]),P=n(()=>x.get().some(B=>{var $;return(($=i.get(B))==null?void 0:$.get().status)==="pending"})),b=n(()=>{var B;return{locationHref:h.get().href,resolvedLocationHref:(B=p.get())==null?void 0:B.href,status:u.get()}}),R=n(()=>({status:u.get(),loadedAt:f.get(),isLoading:a.get(),isTransitioning:d.get(),matches:S.get(),location:h.get(),resolvedLocation:p.get(),statusCode:g.get(),redirect:m.get()})),L=It(64);function k(B){let $=L.get(B);return $||($=n(()=>{const Re=x.get();for(const be of Re){const ft=i.get(be);if(ft&&ft.routeId===B)return ft.get()}}),L.set(B,$)),$}const C={status:u,loadedAt:f,isLoading:a,isTransitioning:d,location:h,resolvedLocation:p,statusCode:g,redirect:m,matchesId:x,pendingIds:v,cachedIds:_,matches:S,pendingMatches:w,cachedMatches:I,firstId:y,hasPending:P,matchRouteDeps:b,matchStores:i,pendingMatchStores:c,cachedMatchStores:l,__store:R,getRouteMatchStore:k,setMatches:T,setPending:F,setCached:j};T(t.matches),r==null||r(C);function T(B){ne(B,i,x,e,o)}function F(B){ne(B,c,v,e,o)}function j(B){ne(B,l,_,e,o)}return C}function oe(t,s){const e=[];for(const n of s){const o=t.get(n);o&&e.push(o.get())}return e}function ne(t,s,e,n,o){const r=t.map(c=>c.id),i=new Set(r);o(()=>{for(const c of s.keys())i.has(c)||s.delete(c);for(const c of t){const l=s.get(c.id);if(!l){const u=n(c);u.routeId=c.routeId,s.set(c.id,u);continue}l.routeId=c.routeId,l.get()!==c&&l.set(c)}Gs(e.get(),r)||e.set(r)})}var tt="__TSR_index",ze="popstate",Ke="beforeunload";function wo(t){let s=t.getLocation();const e=new Set,n=i=>{s=t.getLocation(),e.forEach(c=>c({location:s,action:i}))},o=i=>{t.notifyOnIndexChange??!0?n(i):s=t.getLocation()},r=async({task:i,navigateOpts:c,...l})=>{var a,d;if((c==null?void 0:c.ignoreBlocker)??!1){i();return}const u=((a=t.getBlockers)==null?void 0:a.call(t))??[],f=l.type==="PUSH"||l.type==="REPLACE";if(typeof document<"u"&&u.length&&f)for(const h of u){const p=Vt(l.path,l.state);if(await h.blockerFn({currentLocation:s,nextLocation:p,action:l.type})){(d=t.onBlocked)==null||d.call(t);return}}i()};return{get location(){return s},get length(){return t.getLength()},subscribers:e,subscribe:i=>(e.add(i),()=>{e.delete(i)}),push:(i,c,l)=>{const u=s.state[tt];c=Ge(u+1,c),r({task:()=>{t.pushState(i,c),n({type:"PUSH"})},navigateOpts:l,type:"PUSH",path:i,state:c})},replace:(i,c,l)=>{const u=s.state[tt];c=Ge(u,c),r({task:()=>{t.replaceState(i,c),n({type:"REPLACE"})},navigateOpts:l,type:"REPLACE",path:i,state:c})},go:(i,c)=>{r({task:()=>{t.go(i),o({type:"GO",index:i})},navigateOpts:c,type:"GO"})},back:i=>{r({task:()=>{t.back((i==null?void 0:i.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:i,type:"BACK"})},forward:i=>{r({task:()=>{t.forward((i==null?void 0:i.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:i,type:"FORWARD"})},canGoBack:()=>s.state[tt]!==0,createHref:i=>t.createHref(i),block:i=>{var l;if(!t.setBlockers)return()=>{};const c=((l=t.getBlockers)==null?void 0:l.call(t))??[];return t.setBlockers([...c,i]),()=>{var f,a;const u=((f=t.getBlockers)==null?void 0:f.call(t))??[];(a=t.setBlockers)==null||a.call(t,u.filter(d=>d!==i))}},flush:()=>{var i;return(i=t.flush)==null?void 0:i.call(t)},destroy:()=>{var i;return(i=t.destroy)==null?void 0:i.call(t)},notify:n}}function Ge(t,s){s||(s={});const e=Se();return{...s,key:e,__TSR_key:e,[tt]:t}}function _o(t){var P,b;const s=typeof document<"u"?window:void 0,e=s.history.pushState,n=s.history.replaceState;let o=[];const r=()=>o,i=R=>o=R,c=(R=>R),l=(()=>Vt(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state));if(!((P=s.history.state)!=null&&P.__TSR_key)&&!((b=s.history.state)!=null&&b.key)){const R=Se();s.history.replaceState({[tt]:0,key:R,__TSR_key:R},"")}let u=l(),f,a=!1,d=!1,h=!1,p=!1;const g=()=>u;let m,x;const v=()=>{m&&(y._ignoreSubscribers=!0,(m.isPush?s.history.pushState:s.history.replaceState)(m.state,"",m.href),y._ignoreSubscribers=!1,m=void 0,x=void 0,f=void 0)},_=(R,L,k)=>{const C=c(L);x||(f=u),u=Vt(L,k),m={href:C,state:k,isPush:(m==null?void 0:m.isPush)||R==="push"},x||(x=Promise.resolve().then(()=>v()))},S=R=>{u=l(),y.notify({type:R})},w=async()=>{if(d){d=!1;return}const R=l(),L=R.state[tt]-u.state[tt],k=L===1,C=L===-1,T=!k&&!C||a;a=!1;const F=T?"GO":C?"BACK":"FORWARD",j=T?{type:"GO",index:L}:{type:C?"BACK":"FORWARD"};if(h)h=!1;else{const B=r();if(typeof document<"u"&&B.length){for(const $ of B)if(await $.blockerFn({currentLocation:u,nextLocation:R,action:F})){d=!0,s.history.go(1),y.notify(j);return}}}u=l(),y.notify(j)},I=R=>{if(p){p=!1;return}let L=!1;const k=r();if(typeof document<"u"&&k.length)for(const C of k){const T=C.enableBeforeUnload??!0;if(T===!0){L=!0;break}if(typeof T=="function"&&T()===!0){L=!0;break}}if(L)return R.preventDefault(),R.returnValue=""},y=wo({getLocation:g,getLength:()=>s.history.length,pushState:(R,L)=>_("push",R,L),replaceState:(R,L)=>_("replace",R,L),back:R=>(R&&(h=!0),p=!0,s.history.back()),forward:R=>{R&&(h=!0),p=!0,s.history.forward()},go:R=>{a=!0,s.history.go(R)},createHref:R=>c(R),flush:v,destroy:()=>{s.history.pushState=e,s.history.replaceState=n,s.removeEventListener(Ke,I,{capture:!0}),s.removeEventListener(ze,w)},onBlocked:()=>{f&&u!==f&&(u=f)},getBlockers:r,setBlockers:i,notifyOnIndexChange:!1});return s.addEventListener(Ke,I,{capture:!0}),s.addEventListener(ze,w),s.history.pushState=function(...R){const L=e.apply(s.history,R);return y._ignoreSubscribers||S("PUSH"),L},s.history.replaceState=function(...R){const L=n.apply(s.history,R);return y._ignoreSubscribers||S("REPLACE"),L},y}function Lo(t){let s=t.replace(/[\x00-\x1f\x7f]/g,"");return s.startsWith("//")&&(s="/"+s.replace(/^\/+/,"")),s}function Vt(t,s){const e=Lo(t),n=e.indexOf("#"),o=e.indexOf("?"),r=Se();return{href:e,pathname:e.substring(0,n>0?o>0?Math.min(n,o):n:o>0?o:e.length),hash:n>-1?e.substring(n):"",search:o>-1?e.slice(o,n===-1?void 0:n):"",state:s||{[tt]:0,key:r,__TSR_key:r}}}function Se(){return(Math.random()+1).toString(36).substring(7)}function mt(t,s){const e=s,n=t;return{fromLocation:e,toLocation:n,pathChanged:(e==null?void 0:e.pathname)!==n.pathname,hrefChanged:(e==null?void 0:e.href)!==n.href,hashChanged:(e==null?void 0:e.hash)!==n.hash}}const de=new WeakMap;var Co=class{constructor(t,s){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{var f;const n=this.options,o=this.basepath??(n==null?void 0:n.basepath)??"/",r=this.basepath===void 0,i=n==null?void 0:n.rewrite;if(this.options={...n,...e},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=io(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=_o()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let a;this.resolvePathCache=It(1e3),a=this.buildRouteTree(),this.setRoutes(a)}if(!this.stores&&this.latestLocation){const a=this.getStoreConfig(this);this.batch=a.batch,this.stores=bo(Mo(this.latestLocation),a),Uo(this)}let c=!1;const l=this.options.basepath??"/",u=this.options.rewrite;if(r||o!==l||i!==u){this.basepath=l;const a=[],d=ps(l);d&&d!=="/"&&a.push(Ro({basepath:l})),u&&a.push(u),this.rewrite=a.length===0?void 0:a.length===1?a[0]:Po(a),this.history&&this.updateLatestLocation(),c=!0}c&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof((f=window.CSS)==null?void 0:f.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const e=to(this.routeTree,this.options.caseSensitive,(n,o)=>{n.init({originalIndex:o})});return this.options.routeMasks&&Js(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,n)=>{const o={eventType:e,fn:n};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=e=>{this.subscribers.forEach(n=>{n.eventType===e.type&&n.fn(e)})},this.parseLocation=(e,n)=>{const o=({pathname:l,search:u,hash:f,href:a,state:d})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(l)){const x=this.options.parseSearch(u),v=this.options.stringifySearch(x);return{href:l+v+f,publicHref:l+v+f,pathname:Pt(l).path,external:!1,searchStr:v,search:nt(n==null?void 0:n.search,x),hash:Pt(f.slice(1)).path,state:X(n==null?void 0:n.state,d)}}const h=new URL(a,this.origin),p=fe(this.rewrite,h),g=this.options.parseSearch(p.search),m=this.options.stringifySearch(g);return p.search=m,{href:p.href.replace(p.origin,""),publicHref:a,pathname:Pt(p.pathname).path,external:!!this.rewrite&&p.origin!==this.origin,searchStr:m,search:nt(n==null?void 0:n.search,g),hash:Pt(p.hash.slice(1)).path,state:X(n==null?void 0:n.state,d)}},r=o(e),{__tempLocation:i,__tempKey:c}=r.state;if(i&&(!c||c===this.tempLocationKey)){const l=o(i);return l.state.key=r.state.key,l.state.__TSR_key=r.state.__TSR_key,delete l.state.__tempLocation,{...l,maskedLocation:r}}return r},this.resolvePathWithBase=(e,n)=>ro({base:e,to:n.includes("//")?ve(n):n,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,n,o)=>typeof e=="string"?this.matchRoutesInternal({pathname:e,search:n},o):this.matchRoutesInternal(e,n),this.getMatchedRoutes=e=>To({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{const n=this.getMatch(e);n&&(n.abortController.abort(),clearTimeout(n._nonReactive.pendingTimeout),n._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{var o;if(this.stores.pendingMatchStores.has(e))return;const n=(o=this.stores.matchStores.get(e))==null?void 0:o.get();n&&(n.status==="pending"||n.isFetching==="loader")&&this.cancelMatch(e)})},this.buildLocation=e=>{const n=(r={})=>{var L,k;const i=r._fromLocation||this.pendingBuiltLocation||this.latestLocation,c=this.matchRoutesLightweight(i);r.from;const l=r.unsafeRelative==="path"?i.pathname:r.from??c.fullPath,u=r.to?`${r.to}`:void 0,f=c.search,a=Object.assign(Object.create(null),c.params),d=(u==null?void 0:u.charCodeAt(0))===47?"/":this.resolvePathWithBase(l,"."),h=u?this.resolvePathWithBase(d,u):d,p=r.params===!1||r.params===null?Object.create(null):(r.params??!0)===!0?a:Object.assign(a,rt(r.params,a)),g=this.routesByPath[G(h)];let m;if(g)m=this.getRouteBranch(g);else if(h.includes("$"))m=[];else{const C=this.getMatchedRoutes(h);m=C.matchedRoutes,this.options.notFoundRoute&&(!C.foundRoute||C.foundRoute.path!=="/"&&C.routeParams["**"])&&(m=[...m,this.options.notFoundRoute])}if(m.length&&cs(p))for(const C of m){const T=((L=C.options.params)==null?void 0:L.stringify)??C.options.stringifyParams;if(T)try{Object.assign(p,T(p))}catch{}}const x=e.leaveParams?h:Pt(Ne({path:h,params:p,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let v=f;if(e._includeValidateSearch&&((k=this.options.search)!=null&&k.strict)){const C={};m.forEach(T=>{if(T.options.validateSearch)try{Object.assign(C,Nt(T.options.validateSearch,{...C,...v}))}catch{}}),v=C}v=ko({search:v,dest:r,destRoutes:m,_includeValidateSearch:e._includeValidateSearch}),v=nt(f,v);const _=this.options.stringifySearch(v),S=r.hash===!0?i.hash:r.hash?rt(r.hash,i.hash):void 0,w=S?`#${S}`:"";let I=r.state===!0?i.state:r.state?rt(r.state,i.state):{};I=X(i.state,I);const y=`${x}${_}${w}`;let P,b,R=!1;if(this.rewrite){const C=new URL(y,this.origin),T=Ss(this.rewrite,C);P=C.href.replace(C.origin,""),T.origin!==this.origin?(b=T.href,R=!0):b=T.pathname+T.search+T.hash}else P=Ks(y),b=P;return{publicHref:b,href:P,pathname:x,search:v,searchStr:_,state:I,hash:S??"",external:R,unmaskOnReload:r.unmaskOnReload}},o=(r={},i)=>{const c=n(r);let l=i?n(i):void 0;if(!l){const u=Object.create(null);if(this.options.routeMasks){const f=Ys(c.pathname,this.processedTree);if(f){Object.assign(u,f.rawParams);const{from:a,params:d,...h}=f.route,p=d===!1||d===null?Object.create(null):(d??!0)===!0?u:Object.assign(u,rt(d,u));i={from:e.from,...h,params:p},l=n(i)}}}return l&&(c.maskedLocation=l),c};return e.mask?o(e,{from:e.from,...e.mask}):o(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:n,...o})=>{let r;const i=()=>{const u=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];u.forEach(a=>{o.state[a]=this.latestLocation.state[a]});const f=at(o.state,this.latestLocation.state);return u.forEach(a=>{delete o.state[a]}),f},c=G(this.latestLocation.href)===G(o.href);let l=this.commitLocationPromise;if(this.commitLocationPromise=vt(()=>{l==null||l.resolve(),l=void 0}),c&&i())this.load();else{let{maskedLocation:u,hashScrollIntoView:f,...a}=o;u&&(a={...u,state:{...u.state,__tempKey:void 0,__tempLocation:{...a,search:a.searchStr,state:{...a.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(a.unmaskOnReload??this.options.unmaskOnReload??!1)&&(a.state.__tempKey=this.tempLocationKey)),a.state.__hashScrollIntoViewOptions=f??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=o.replace?"REPLACE":"PUSH",this.history[r==="REPLACE"?"replace":"push"](a.publicHref,a.state,{ignoreBlocker:n})}return this._scroll.next=o.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:n,hashScrollIntoView:o,viewTransition:r,ignoreBlocker:i,href:c,...l}={})=>{if(c){const a=this.history.location.state.__TSR_index,d=Vt(c,{__TSR_index:e?a:a+1}),h=new URL(d.pathname,this.origin);l.to=fe(this.rewrite,h).pathname,l.search=this.options.parseSearch(d.search),l.hash=d.hash.slice(1)}const u=this.buildLocation({...l,_includeValidateSearch:!0});this.pendingBuiltLocation=u;const f=this.commitLocation({...u,viewTransition:r,replace:e,resetScroll:n,hashScrollIntoView:o,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===u&&(this.pendingBuiltLocation=void 0)}),f},this.navigate=async({to:e,reloadDocument:n,href:o,publicHref:r,...i})=>{var l,u;let c=!1;if(o)try{new URL(`${o}`),c=!0}catch{}if(c&&!n&&(n=!0),n){if(e!==void 0||!o){const a=this.buildLocation({to:e,...i});o=o??a.publicHref,r=r??a.publicHref}const f=!c&&r?r:o;if(Wt(f,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){const a=((u=(l=this.history).getBlockers)==null?void 0:u.call(l))??[];for(const d of a)if(d!=null&&d.blockerFn&&await d.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return i.replace?window.location.replace(f):window.location.href=f,Promise.resolve()}return this.buildAndCommitLocation({...i,href:o,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const e=this.matchRoutes(this.latestLocation),n=this.stores.cachedMatches.get().filter(o=>!e.some(r=>r.id===o.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(n)})},this.load=async e=>{var u;const n=(u=e==null?void 0:e.action)==null?void 0:u.type;let o,r,i;const c=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(f=>{this.startTransition(async()=>{var a;try{this.beforeLoad(),n?de.set(this.latestLocation,n):de.delete(this.latestLocation);const d=this.latestLocation,h=mt(d,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...h}),this.emit({type:"onBeforeLoad",...h}),await Ve({router:this,sync:e==null?void 0:e.sync,forceStaleReload:c.href===d.href,matches:this.stores.pendingMatches.get(),location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var v,_;let p=null,g=null,m=null,x=null;this.batch(()=>{const S=this.stores.pendingMatches.get(),w=S.length,I=this.stores.matches.get();p=w?I.filter(b=>!this.stores.pendingMatchStores.has(b.id)):null;const y=new Set;for(const b of this.stores.pendingMatchStores.values())b.routeId&&y.add(b.routeId);const P=new Set;for(const b of this.stores.matchStores.values())b.routeId&&P.add(b.routeId);g=w?I.filter(b=>!y.has(b.routeId)):null,m=w?S.filter(b=>!P.has(b.routeId)):null,x=w?S.filter(b=>P.has(b.routeId)):I,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),w&&(this.stores.setMatches(S),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...p.filter(b=>b.status!=="error"&&b.status!=="notFound"&&b.status!=="redirected")]),this.clearExpiredCache())});for(const[S,w]of[[g,"onLeave"],[m,"onEnter"],[x,"onStay"]])if(S)for(const I of S)(_=(v=this.looseRoutesById[I.routeId].options)[w])==null||_.call(v,I)})})}})}catch(d){W(d)?(o=d,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):N(d)&&(r=d);const h=o?o.status:r?404:this.stores.matches.get().some(p=>p.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(h),this.stores.redirect.set(o)})}this.latestLoadPromise===i&&((a=this.commitLocationPromise)==null||a.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let l;this.hasNotFoundMatch()?l=404:this.stores.matches.get().some(f=>f.status==="error")&&(l=500),l!==void 0&&this.stores.statusCode.set(l)},this.startViewTransition=e=>{const n=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,n&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof n=="object"&&this.isViewTransitionTypesSupported){const r=this.latestLocation,i=this.stores.resolvedLocation.get(),c=typeof n.types=="function"?n.types(mt(r,i)):n.types;if(c===!1){e();return}o={update:e,types:c}}else o=e;document.startViewTransition(o)}else e()},this.updateMatch=(e,n)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStores.get(e);if(o){o.set(n);return}const r=this.stores.matchStores.get(e);if(r){r.set(n);return}const i=this.stores.cachedMatchStores.get(e);if(i){const c=n(i.get());c.status==="redirected"?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(l=>l.filter(u=>u!==e)):i.set(c)}})},this.getMatch=e=>{var n,o,r;return((n=this.stores.cachedMatchStores.get(e))==null?void 0:n.get())??((o=this.stores.pendingMatchStores.get(e))==null?void 0:o.get())??((r=this.stores.matchStores.get(e))==null?void 0:r.get())},this.invalidate=e=>{const n=o=>{var r;return((r=e==null?void 0:e.filter)==null?void 0:r.call(e,o))??!0?{...o,invalid:!0,...e!=null&&e.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o};return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(n)),this.stores.setCached(this.stores.cachedMatches.get().map(n)),this.stores.setPending(this.stores.pendingMatches.get().map(n))}),this.shouldViewTransition=!1,this.load({sync:e==null?void 0:e.sync})},this.getParsedLocationHref=e=>e.publicHref||"/",this.resolveRedirect=e=>{const n=e.headers.get("Location");if(!e.options.href||e.options._builtLocation){const o=e.options._builtLocation??this.buildLocation(e.options),r=this.getParsedLocationHref(o);e.options.href=r,e.headers.set("Location",r)}else if(n)try{const o=new URL(n);if(this.origin&&o.origin===this.origin){const r=o.pathname+o.search+o.hash;e.options.href=r,e.headers.set("Location",r)}}catch{}if(e.options.href&&!e.options._builtLocation&&Wt(e.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return e.headers.get("Location")||e.headers.set("Location",e.options.href),e},this.clearCache=e=>{const n=e==null?void 0:e.filter;n!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(o=>!n(o))):this.stores.setCached([])},this.clearExpiredCache=()=>{const e=Date.now(),n=o=>{const r=this.looseRoutesById[o.routeId];if(!r.options.loader)return!0;const i=(o.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:e-o.updatedAt>=i};this.clearCache({filter:n})},this.loadRouteChunk=Mt,this.preloadRoute=async e=>{const n=e._builtLocation??this.buildLocation(e);let o=this.matchRoutes(n,{throwOnError:!0,preload:!0,dest:e});const r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),c=o.filter(l=>!i.has(l.id));if(c.length){const l=this.stores.cachedMatches.get();this.stores.setCached([...l,...c])}try{return o=await Ve({router:this,matches:o,location:n,preload:!0,updateMatch:(l,u)=>{r.has(l)?o=o.map(f=>f.id===l?u(f):f):this.updateMatch(l,u)}}),o}catch(l){if(W(l))return l.options.reloadDocument?void 0:await this.preloadRoute({...l.options,_fromLocation:n});N(l)||console.error(l);return}},this.matchRoute=(e,n)=>{const o={...e,to:e.to?this.resolvePathWithBase(e.from||"",e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(o);if(n!=null&&n.pending&&this.stores.status.get()!=="pending")return!1;const i=((n==null?void 0:n.pending)===void 0?!this.stores.isLoading.get():n.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),c=Xs(r.pathname,(n==null?void 0:n.caseSensitive)??!1,(n==null?void 0:n.fuzzy)??!1,i.pathname,this.processedTree);return!c||e.params&&!at(c.rawParams,e.params,{partial:!0})?!1:(n==null?void 0:n.includeSearch)??!0?at(i.search,r.search,{partial:!0})?c.rawParams:!1:c.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status==="notFound"||e.globalNotFound),this.getStoreConfig=s,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??uo,parseSearch:t.parseSearch??lo,protocolAllowlist:t.protocolAllowlist??zs}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:t,routesByPath:s,processedTree:e}){this.routesById=t,this.routesByPath=s,this.processedTree=e;const n=this.options.notFoundRoute;n&&(n.init({originalIndex:99999999999}),this.routesById[n.id]=n)}getRouteBranch(t){let s=this.routeBranchCache.get(t);return s||(s=ds(t),this.routeBranchCache.set(t,s)),s}get looseRoutesById(){return this.routesById}getParentContext(t){return t!=null&&t.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,s){var f,a;const e=this.getMatchedRoutes(t.pathname),{foundRoute:n,routeParams:o}=e;let{matchedRoutes:r}=e,i=!1;(n?n.path!=="/"&&o["**"]:G(t.pathname))&&(this.options.notFoundRoute?r=[...r,this.options.notFoundRoute]:i=!0);const c=i?Bo(this.options.notFoundMode,r):void 0,l=new Array(r.length),u=new Map;for(const d of this.stores.matchStores.values())d.routeId&&u.set(d.routeId,d.get());for(let d=0;d<r.length;d++){const h=r[d],p=l[d-1];let g,m,x;{const T=(p==null?void 0:p.search)??t.search,F=(p==null?void 0:p._strictSearch)??void 0;try{const j=Nt(h.options.validateSearch,{...T})??void 0;g={...T,...j},m={...F,...j},x=void 0}catch(j){let B=j;if(j instanceof $t||(B=new $t(j.message,{cause:j})),s!=null&&s.throwOnError)throw B;g=T,m={},x=B}}const v=((a=(f=h.options).loaderDeps)==null?void 0:a.call(f,{search:g}))??"",_=v?JSON.stringify(v):"",{interpolatedPath:S,usedParams:w}=Ne({path:h.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),I=h.id+S+_,y=this.getMatch(I),P=u.get(h.id),b=(y==null?void 0:y._strictParams)??w;let R;if(!y)try{qe(h,b)}catch(T){if(N(T)||W(T)?R=T:R=new Io(T.message,{cause:T}),s!=null&&s.throwOnError)throw R}Object.assign(o,b);const L=P?"stay":"enter";let k;if(y)k={...y,cause:L,params:(P==null?void 0:P.params)??o,_strictParams:b,search:nt(P?P.search:y.search,g),_strictSearch:m};else{const T=h.options.loader||h.options.beforeLoad||h.lazyFn||vs(h)?"pending":"success";k={id:I,ssr:h.options.ssr,index:d,routeId:h.id,params:(P==null?void 0:P.params)??o,_strictParams:b,pathname:S,updatedAt:Date.now(),search:P?nt(P.search,g):g,_strictSearch:m,searchError:void 0,status:T,isFetching:!1,error:void 0,paramsError:R,__routeContext:void 0,_nonReactive:{loadPromise:vt()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:L,loaderDeps:P?X(P.loaderDeps,v):v,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:h.options.staticData||{},fullPath:h.fullPath}}s!=null&&s.preload||(k.globalNotFound=c===h.id),k.searchError=x;const C=this.getParentContext(p);k.context={...C,...k.__routeContext,...k.__beforeLoadContext},l[d]=k}for(let d=0;d<l.length;d++){const h=l[d],p=this.looseRoutesById[h.routeId],g=this.getMatch(h.id),m=u.get(h.routeId);if(h.params=m?nt(m.params,o):o,!g){const x=l[d-1],v=this.getParentContext(x);if(p.options.context){const _={deps:h.loaderDeps,params:h.params,context:v??{},location:t,navigate:S=>this.navigate({...S,_fromLocation:t}),buildLocation:this.buildLocation,cause:h.cause,abortController:h.abortController,preload:!!h.preload,matches:l,routeId:p.id};h.__routeContext=p.options.context(_)??void 0}h.context={...v,...h.__routeContext,...h.__beforeLoadContext}}}return l}matchRoutesLightweight(t){var u;const{matchedRoutes:s,routeParams:e}=this.getMatchedRoutes(t.pathname),n=Lt(s),o={...t.search};for(const f of s)try{Object.assign(o,Nt(f.options.validateSearch,o))}catch{}const r=Lt(this.stores.matchesId.get()),i=r&&((u=this.stores.matchStores.get(r))==null?void 0:u.get()),c=i&&i.routeId===n.id&&i.pathname===t.pathname;let l;if(c)l=i.params;else{const f=Object.assign(Object.create(null),e);for(const a of s)try{qe(a,f)}catch{}l=f}return{matchedRoutes:s,fullPath:n.fullPath,search:o,params:l}}},$t=class extends Error{},Io=class extends Error{};function Mo(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],statusCode:200}}function Nt(t,s){if(t==null)return{};if("~standard"in t){const e=t["~standard"].validate(s);if(e instanceof Promise)throw new $t("Async validation not supported");if(e.issues)throw new $t(JSON.stringify(e.issues,void 0,2),{cause:e});return e.value}return"parse"in t?t.parse(s):typeof t=="function"?t(s):{}}function To({pathname:t,routesById:s,processedTree:e}){const n=Object.create(null),o=G(t);let r;const i=Zs(o,e,!0);return i&&(r=i.route,Object.assign(n,i.rawParams)),{matchedRoutes:(i==null?void 0:i.branch)||[s.__root__],routeParams:n,foundRoute:r}}function ko({search:t,dest:s,destRoutes:e,_includeValidateSearch:n}){return Eo(e)(t,s,n??!1)}function Eo(t){var r;let s,e;const n=[];for(const i of t){const c=i.options;if("search"in c)(r=c.search)!=null&&r.middlewares&&n.push(...c.search.middlewares);else if(c.preSearchFilters||c.postSearchFilters){const u=({search:f,next:a})=>{const d=a(c.preSearchFilters?c.preSearchFilters.reduce((h,p)=>p(h),f):f);return c.postSearchFilters?c.postSearchFilters.reduce((h,p)=>p(h),d):d};n.push(u)}const l=c.validateSearch;if(l){const u=({search:f,next:a,meta:d})=>{const h=a(f);if(e)try{const p=Nt(l,h);if(d&&p)for(const g in p)g in h||(d.defaulted||(d.defaulted=new Map)).set(g,p[g]);return{...h,...p}}catch{}return h};n.push(u)}}const o=(i,c,l)=>{if(i>=n.length){if(!s.search)return{};if(s.search===!0)return c;const f=rt(s.search,c);return l&&(l.explicit=f),f}const u=(f,a)=>{if(a){const d=l||{};return{search:o(i+1,f,d),meta:d}}return o(i+1,f,l)};return n[i]({search:c,next:u,meta:l})};return function(c,l,u){return s=l,e=u,o(0,c)}}function Bo(t,s){if(t!=="root")for(let e=s.length-1;e>=0;e--){const n=s[e];if(n.children)return n.id}return ct}function qe(t,s){var n;const e=((n=t.options.params)==null?void 0:n.parse)??t.options.parseParams;if(e){const o=e(s);if(o===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(s,o)}}function Ao(){try{return sessionStorage}catch{return}}const jo="tsr-scroll-restoration-v1_3",yt=Ao();function Do(){try{return JSON.parse((yt==null?void 0:yt.getItem("tsr-scroll-restoration-v1_3"))||"{}")}catch{return{}}}function Fo(){try{yt==null||yt.setItem(jo,JSON.stringify(J))}catch{}}const J=Do(),Je="data-scroll-restoration-id",No=t=>t.state.__TSR_key||t.href;function Oo(t){const s=t.getAttribute(Je);if(s)return`[${Je}="${s}"]`;let e="",n=t,o;for(;o=n.parentNode;){let r=1,i=n;for(;i=i.previousElementSibling;)r++;const c=`${n.localName}:nth-child(${r})`;e=e?`${c} > ${e}`:c,n=o}return e}let At=!1;const pt="window";function he(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}function Ye(t){const s=[];for(const e of t){if(e===pt)continue;const n=he(e);n&&s.push(n)}return s}function Uo(t,s){const e=t.options.scrollRestoration,n=t._scroll;e&&(n.restoring=!0);const o=t.options.getScrollRestorationKey||No,r=new Map,i=(u,f,a)=>{const d=r.get(u)||{};d.scrollX=f,d.scrollY=a,r.set(u,d)},c=u=>{if(!(At||!n.restoring))if(u.target===document)i(pt,scrollX,scrollY);else{const f=u.target;i(f,f.scrollLeft,f.scrollTop)}},l=u=>{if(!n.restoring)return;const f=J[u]||(J[u]={});for(const[a,d]of r)a===pt?f[pt]=d:a.isConnected&&(f[Oo(a)]=d)};e&&!n.restoration&&(n.restoration=!0,At=!1,history.scrollRestoration="manual",document.addEventListener("scroll",c,!0),t.subscribe("onBeforeLoad",u=>{u.fromLocation&&l(o(u.fromLocation)),r.clear()}),addEventListener("pagehide",()=>{l(o(t.stores.resolvedLocation.get()??t.stores.location.get())),Fo()})),!n.reset&&(n.reset=!0,t.subscribe("onRendered",u=>{var m;const f=t.options.scrollRestorationBehavior,a=t.options.scrollToTopSelectors,d=n.next;let h;if(r.clear(),d||(n.next=!0),typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;const p=o(u.toLocation),g=u.fromLocation&&o(u.fromLocation);if(n.restoring&&g&&g!==p){const x=J[g];if(x){let v=J[p];for(const _ in x){if(_===pt){if(d)continue}else{const S=he(_);if(!S||d&&a&&(h??(h=Ye(a)),h.includes(S)))continue}v||(v=J[p]={}),v[_]??(v[_]=x[_])}}}At=!0;try{const x=u.toLocation.hash,v=u.toLocation.state.__hashScrollIntoViewOptions??!0;let _=!1;if(d){const S=de.get(u.toLocation),w=x&&v&&(S==="PUSH"||S==="REPLACE"),I=n.restoring?J[p]:void 0;if(I)for(const y in I){const{scrollX:P,scrollY:b}=I[y];if(y===pt){if(w)continue;scrollTo({top:b,left:P,behavior:f}),_=!0}else{const R=he(y);R&&(R.scrollLeft=P,R.scrollTop=b)}}if(!_&&!x){const y={top:0,left:0,behavior:f};if(scrollTo(y),a){h??(h=Ye(a));for(const P of h)P.scrollTo(y)}}}!_&&x&&v&&((m=document.getElementById(x))==null||m.scrollIntoView(v))}finally{At=!1}}))}const Wo="Error preloading route! ☝️";var xs=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=s=>{var l,u;this.originalIndex=s.originalIndex;const e=this.options,n=!(e!=null&&e.path)&&!(e!=null&&e.id);this.parentRoute=(u=(l=this.options).getParentRoute)==null?void 0:u.call(l),n?this._path=ct:this.parentRoute||q();let o=n?ct:e==null?void 0:e.path;o&&o!=="/"&&(o=hs(o));const r=(e==null?void 0:e.id)||o;let i=n?ct:Dt([this.parentRoute.id==="__root__"?"":this.parentRoute.id,r]);o==="__root__"&&(o="/"),i!=="__root__"&&(i=Dt(["/",i]));const c=i==="__root__"?"/":Dt([this.parentRoute.fullPath,o]);this._path=o,this._id=i,this._fullPath=c,this._to=G(c)},this.addChildren=s=>this._addFileChildren(s),this._addFileChildren=s=>(Array.isArray(s)&&(this.children=s),typeof s=="object"&&s!==null&&(this.children=Object.values(s)),this),this._addFileTypes=()=>this,this.updateLoader=s=>(Object.assign(this.options,s),this),this.update=s=>(Object.assign(this.options,s),this),this.lazy=s=>(this.lazyFn=s,this),this.redirect=s=>po({from:this.fullPath,...s}),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),t!=null&&t.id&&(t!=null&&t.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},Ho=class extends xs{constructor(t){super(t)}};function xe(t){const s=t.errorComponent??Pe;return M.jsx(Vo,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:e,reset:n})=>e?E.createElement(s,{error:e,reset:n}):t.children})}var Vo=class extends E.Component{constructor(...t){super(...t),this.state={error:null}}static getDerivedStateFromProps(t,s){const e=t.getResetKey();return s.error&&s.resetKey!==e?{resetKey:e,error:null}:{resetKey:e}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidCatch(t,s){this.props.onCatch&&this.props.onCatch(t,s)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Pe({error:t}){const[s,e]=E.useState(!1);return M.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[M.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[M.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),M.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>e(n=>!n),children:s?"Hide Error":"Show Error"})]}),M.jsx("div",{style:{height:".25rem"}}),s?M.jsx("div",{children:M.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?M.jsx("code",{children:t.message}):null})}):null]})}function $o({children:t,fallback:s=null}){return Ps()?M.jsx(_t.Fragment,{children:t}):M.jsx(_t.Fragment,{children:s})}function Ps(){return _t.useSyncExternalStore(zo,()=>!0,()=>!1)}function zo(){return()=>{}}var Rs=E.createContext(null);function V(t){return E.useContext(Rs)}var qt=E.createContext(void 0),Ko=E.createContext(void 0),D=(t=>(t[t.None=0]="None",t[t.Mutable=1]="Mutable",t[t.Watching=2]="Watching",t[t.RecursedCheck=4]="RecursedCheck",t[t.Recursed=8]="Recursed",t[t.Dirty=16]="Dirty",t[t.Pending=32]="Pending",t))(D||{});function Go({update:t,notify:s,unwatched:e}){return{link:n,unlink:o,propagate:r,checkDirty:i,shallowPropagate:c};function n(u,f,a){const d=f.depsTail;if(d!==void 0&&d.dep===u)return;const h=d!==void 0?d.nextDep:f.deps;if(h!==void 0&&h.dep===u){h.version=a,f.depsTail=h;return}const p=u.subsTail;if(p!==void 0&&p.version===a&&p.sub===f)return;const g=f.depsTail=u.subsTail={version:a,dep:u,sub:f,prevDep:d,nextDep:h,prevSub:p,nextSub:void 0};h!==void 0&&(h.prevDep=g),d!==void 0?d.nextDep=g:f.deps=g,p!==void 0?p.nextSub=g:u.subs=g}function o(u,f=u.sub){const a=u.dep,d=u.prevDep,h=u.nextDep,p=u.nextSub,g=u.prevSub;return h!==void 0?h.prevDep=d:f.depsTail=d,d!==void 0?d.nextDep=h:f.deps=h,p!==void 0?p.prevSub=g:a.subsTail=g,g!==void 0?g.nextSub=p:(a.subs=p)===void 0&&e(a),h}function r(u){let f=u.nextSub,a;t:do{const d=u.sub;let h=d.flags;if(h&60?h&12?h&4?!(h&48)&&l(u,d)?(d.flags=h|40,h&=1):h=0:d.flags=h&-9|32:h=0:d.flags=h|32,h&2&&s(d),h&1){const p=d.subs;if(p!==void 0){const g=(u=p).nextSub;g!==void 0&&(a={value:f,prev:a},f=g);continue}}if((u=f)!==void 0){f=u.nextSub;continue}for(;a!==void 0;)if(u=a.value,a=a.prev,u!==void 0){f=u.nextSub;continue t}break}while(!0)}function i(u,f){let a,d=0,h=!1;t:do{const p=u.dep,g=p.flags;if(f.flags&16)h=!0;else if((g&17)===17){if(t(p)){const m=p.subs;m.nextSub!==void 0&&c(m),h=!0}}else if((g&33)===33){(u.nextSub!==void 0||u.prevSub!==void 0)&&(a={value:u,prev:a}),u=p.deps,f=p,++d;continue}if(!h){const m=u.nextDep;if(m!==void 0){u=m;continue}}for(;d--;){const m=f.subs,x=m.nextSub!==void 0;if(x?(u=a.value,a=a.prev):u=m,h){if(t(f)){x&&c(m),f=u.sub;continue}h=!1}else f.flags&=-33;f=u.sub;const v=u.nextDep;if(v!==void 0){u=v;continue t}}return h}while(!0)}function c(u){do{const f=u.sub,a=f.flags;(a&48)===32&&(f.flags=a|16,(a&6)===2&&s(f))}while((u=u.nextSub)!==void 0)}function l(u,f){let a=f.depsTail;for(;a!==void 0;){if(a===u)return!0;a=a.prevDep}return!1}}function qo(t,s,e){var r,i,c;const n=typeof t=="object",o=n?t:void 0;return{next:(r=n?t.next:t)==null?void 0:r.bind(o),error:(i=n?t.error:s)==null?void 0:i.bind(o),complete:(c=n?t.complete:e)==null?void 0:c.bind(o)}}const pe=[];let Ot=0;const{link:Xe,unlink:Jo,propagate:Yo,checkDirty:bs,shallowPropagate:Ze}=Go({update(t){return t._update()},notify(t){pe[ge++]=t,t.flags&=~D.Watching},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=D.Mutable|D.Dirty,zt(t))}});let jt=0,ge=0,z,me=0;function ws(t){try{++me,t()}finally{--me||_s()}}function zt(t){const s=t.depsTail;let e=s!==void 0?s.nextDep:t.deps;for(;e!==void 0;)e=Jo(e,t)}function _s(){if(!(me>0)){for(;jt<ge;){const t=pe[jt];pe[jt++]=void 0,t.notify()}jt=0,ge=0}}function Qe(t,s){const e=typeof t=="function",n=t,o={_snapshot:e?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:e?D.None:D.Mutable,get(){return z!==void 0&&Xe(o,z,Ot),o._snapshot},subscribe(r){const i=qo(r),c={current:!1},l=Xo(()=>{var u;o.get(),c.current?(u=i.next)==null||u.call(i,o._snapshot):c.current=!0});return{unsubscribe:()=>{l.stop()}}},_update(r){const i=z,c=(s==null?void 0:s.compare)??Object.is;if(e)z=o,++Ot,o.depsTail=void 0;else if(r===void 0)return!1;e&&(o.flags=D.Mutable|D.RecursedCheck);try{const l=o._snapshot,u=typeof r=="function"?r(l):r===void 0&&e?n(l):r;return l===void 0||!c(l,u)?(o._snapshot=u,!0):!1}finally{z=i,e&&(o.flags&=~D.RecursedCheck),zt(o)}}};return e?(o.flags=D.Mutable|D.Dirty,o.get=function(){const r=o.flags;if(r&D.Dirty||r&D.Pending&&bs(o.deps,o)){if(o._update()){const i=o.subs;i!==void 0&&Ze(i)}}else r&D.Pending&&(o.flags=r&~D.Pending);return z!==void 0&&Xe(o,z,Ot),o._snapshot}):o.set=function(r){if(o._update(r)){const i=o.subs;i!==void 0&&(Yo(i),Ze(i),_s())}},o}function Xo(t){const s=()=>{const n=z;z=e,++Ot,e.depsTail=void 0,e.flags=D.Watching|D.RecursedCheck;try{return t()}finally{z=n,e.flags&=~D.RecursedCheck,zt(e)}},e={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:D.Watching|D.RecursedCheck,notify(){const n=this.flags;n&D.Dirty||n&D.Pending&&bs(this.deps,this)?s():this.flags=D.Watching},stop(){this.flags=D.None,this.depsTail=void 0,zt(this)}};return s(),e}var re={exports:{}},ie={},ae={exports:{}},ce={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var ts;function Zo(){if(ts)return ce;ts=1;var t=rs();function s(a,d){return a===d&&(a!==0||1/a===1/d)||a!==a&&d!==d}var e=typeof Object.is=="function"?Object.is:s,n=t.useState,o=t.useEffect,r=t.useLayoutEffect,i=t.useDebugValue;function c(a,d){var h=d(),p=n({inst:{value:h,getSnapshot:d}}),g=p[0].inst,m=p[1];return r(function(){g.value=h,g.getSnapshot=d,l(g)&&m({inst:g})},[a,h,d]),o(function(){return l(g)&&m({inst:g}),a(function(){l(g)&&m({inst:g})})},[a]),i(h),h}function l(a){var d=a.getSnapshot;a=a.value;try{var h=d();return!e(a,h)}catch{return!0}}function u(a,d){return d()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:c;return ce.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:f,ce}var es;function Qo(){return es||(es=1,ae.exports=Zo()),ae.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var ss;function tn(){if(ss)return ie;ss=1;var t=rs(),s=Qo();function e(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var n=typeof Object.is=="function"?Object.is:e,o=s.useSyncExternalStore,r=t.useRef,i=t.useEffect,c=t.useMemo,l=t.useDebugValue;return ie.useSyncExternalStoreWithSelector=function(u,f,a,d,h){var p=r(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=c(function(){function x(I){if(!v){if(v=!0,_=I,I=d(I),h!==void 0&&g.hasValue){var y=g.value;if(h(y,I))return S=y}return S=I}if(y=S,n(_,I))return y;var P=d(I);return h!==void 0&&h(y,P)?(_=I,y):(_=I,S=P)}var v=!1,_,S,w=a===void 0?null:a;return[function(){return x(f())},w===null?void 0:function(){return x(w())}]},[f,a,d,h]);var m=o(u,p[0],p[1]);return i(function(){g.hasValue=!0,g.value=m},[m]),l(m),m},ie}var os;function en(){return os||(os=1,re.exports=tn()),re.exports}var sn=en();function on(t,s){return t===s}function H(t,s,e=on){const n=E.useCallback(i=>{if(!t)return()=>{};const{unsubscribe:c}=t.subscribe(i);return c},[t]),o=E.useCallback(()=>t==null?void 0:t.get(),[t]);return sn.useSyncExternalStoreWithSelector(n,o,o,s,e)}var nn={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function ut(t){const s=V(),e=E.useContext(t.from?Ko:qt),n=t.from??e,o=n?t.from?s.stores.getRouteMatchStore(n):s.stores.matchStores.get(n):void 0,r=E.useRef(void 0);return H(o??nn,i=>{if((t.shouldThrow??!0)&&!i&&q(),i===void 0)return;const c=t.select?t.select(i):i;if(t.structuralSharing??s.options.defaultStructuralSharing){const l=X(r.current,c);return r.current=l,l}return c})}function Ls(t){return ut({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:s=>t.select?t.select(s.loaderData):s.loaderData})}function Cs(t){const{select:s,...e}=t;return ut({...e,select:n=>s?s(n.loaderDeps):n.loaderDeps})}function Is(t){return ut({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:s=>{const e=t.strict===!1?s.params:s._strictParams;return t.select?t.select(e):e}})}function Ms(t){return ut({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:s=>t.select?t.select(s.search):s.search})}function Ts(t){const s=V();return E.useCallback(e=>s.navigate({...e,from:e.from??(t==null?void 0:t.from)}),[t==null?void 0:t.from,s])}function ks(t){return ut({...t,select:s=>t.select?t.select(s.context):s.context})}function rn(t,s){const e=V(),n=Ws(s),{activeProps:o,inactiveProps:r,activeOptions:i,to:c,preload:l,preloadDelay:u,preloadIntentProximity:f,hashScrollIntoView:a,replace:d,startTransition:h,resetScroll:p,viewTransition:g,children:m,target:x,disabled:v,style:_,className:S,onClick:w,onBlur:I,onFocus:y,onMouseEnter:P,onMouseLeave:b,onTouchStart:R,ignoreBlocker:L,params:k,search:C,hash:T,state:F,mask:j,reloadDocument:B,unsafeRelative:$,from:Re,_fromLocation:be,...ft}=t,Jt=Ps(),St=E.useMemo(()=>t,[e,t.from,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),et=H(e.stores.location,A=>A,(A,U)=>A.href===U.href),O=E.useMemo(()=>{const A={_fromLocation:et,...St};return e.buildLocation(A)},[e,et,St]),we=O.maskedLocation?O.maskedLocation.publicHref:O.publicHref,_e=O.maskedLocation?O.maskedLocation.external:O.external,K=E.useMemo(()=>dn(we,_e,e.history,v),[v,_e,we,e.history]),xt=E.useMemo(()=>{if(K!=null&&K.external)return Wt(K.href,e.protocolAllowlist)?void 0:K.href;if(!hn(c)&&!(typeof c!="string"||c.indexOf(":")===-1))try{return new URL(c),Wt(c,e.protocolAllowlist)?void 0:c}catch{}},[c,K,e.protocolAllowlist]),Yt=E.useMemo(()=>{if(xt)return!1;if(i!=null&&i.exact){if(!no(et.pathname,O.pathname,e.basepath))return!1}else{const A=Ht(et.pathname,e.basepath),U=Ht(O.pathname,e.basepath);if(!(A.startsWith(U)&&(A.length===U.length||A[U.length]==="/")))return!1}return((i==null?void 0:i.includeSearch)??!0)&&!at(et.search,O.search,{partial:!(i!=null&&i.exact),ignoreUndefined:!(i!=null&&i.explicitUndefined)})?!1:i!=null&&i.includeHash?Jt&&et.hash===O.hash:!0},[i==null?void 0:i.exact,i==null?void 0:i.explicitUndefined,i==null?void 0:i.includeHash,i==null?void 0:i.includeSearch,et,xt,Jt,O.hash,O.pathname,O.search,e.basepath]),Tt=Yt?rt(o,{})??an:le,kt=Yt?le:rt(r,{})??le,Le=[S,Tt.className,kt.className].filter(Boolean).join(" "),Ce=(_||Tt.style||kt.style)&&{..._,...Tt.style,...kt.style},[js,Ie]=E.useState(!1),Me=E.useRef(!1),dt=t.reloadDocument||xt?!1:l??e.options.defaultPreload,Xt=u??e.options.defaultPreloadDelay??0,st=E.useCallback(()=>{e.preloadRoute({...St,_builtLocation:O}).catch(A=>{console.warn(A),console.warn(Wo)})},[e,St,O]);Us(n,E.useCallback(A=>{A!=null&&A.isIntersecting&&st()},[st]),fn,{disabled:!!v||dt!=="viewport"}),E.useEffect(()=>{Me.current||!v&&dt==="render"&&(st(),Me.current=!0)},[v,st,dt]);const Ds=A=>{const U=A.currentTarget.getAttribute("target"),ot=x!==void 0?x:U;if(!v&&!pn(A)&&!A.defaultPrevented&&(!ot||ot==="_self")&&A.button===0){A.preventDefault(),Os.flushSync(()=>{Ie(!0)});const Ns=e.subscribe("onResolved",()=>{Ns(),Ie(!1)});e.navigate({...St,replace:d,resetScroll:p,hashScrollIntoView:a,startTransition:h,viewTransition:g,ignoreBlocker:L})}};if(xt)return{...ft,ref:n,href:xt,...m&&{children:m},...x&&{target:x},...v&&{disabled:v},..._&&{style:_},...S&&{className:S},...w&&{onClick:w},...I&&{onBlur:I},...y&&{onFocus:y},...P&&{onMouseEnter:P},...b&&{onMouseLeave:b},...R&&{onTouchStart:R}};const Te=A=>{if(v||dt!=="intent")return;if(!Xt){st();return}const U=A.currentTarget;if(bt.has(U))return;const ot=setTimeout(()=>{bt.delete(U),st()},Xt);bt.set(U,ot)},Fs=A=>{v||dt!=="intent"||st()},ke=A=>{if(v||!dt||!Xt)return;const U=A.currentTarget,ot=bt.get(U);ot&&(clearTimeout(ot),bt.delete(U))};return{...ft,...Tt,...kt,href:K==null?void 0:K.href,ref:n,onClick:ht([w,Ds]),onBlur:ht([I,ke]),onFocus:ht([y,Te]),onMouseEnter:ht([P,Te]),onMouseLeave:ht([b,ke]),onTouchStart:ht([R,Fs]),disabled:!!v,target:x,...Ce&&{style:Ce},...Le&&{className:Le},...v&&cn,...Yt&&ln,...Jt&&js&&un}}var le={},an={className:"active"},cn={role:"link","aria-disabled":!0},ln={"data-status":"active","aria-current":"page"},un={"data-transitioning":"transitioning"},bt=new WeakMap,fn={rootMargin:"100px"},ht=t=>s=>{for(const e of t)if(e){if(s.defaultPrevented)return;e(s)}};function dn(t,s,e,n){if(!n)return s?{href:t,external:!0}:{href:e.createHref(t)||"/",external:!1}}function hn(t){if(typeof t!="string")return!1;const s=t.charCodeAt(0);return s===47?t.charCodeAt(1)!==47:s===46}var Es=E.forwardRef((t,s)=>{const{_asChild:e,...n}=t,{type:o,...r}=rn(n,s),i=typeof n.children=="function"?n.children({isActive:r["data-status"]==="active"}):n.children;if(!e){const{disabled:c,...l}=r;return E.createElement("a",l,i)}return E.createElement(e,r,i)});function pn(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var gn=class extends xs{constructor(t){super(t),this.useMatch=s=>ut({select:s==null?void 0:s.select,from:this.id,structuralSharing:s==null?void 0:s.structuralSharing}),this.useRouteContext=s=>ks({...s,from:this.id}),this.useSearch=s=>Ms({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useParams=s=>Is({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Cs({...s,from:this.id}),this.useLoaderData=s=>Ls({...s,from:this.id}),this.useNavigate=()=>Ts({from:this.fullPath}),this.Link=_t.forwardRef((s,e)=>M.jsx(Es,{ref:e,from:this.fullPath,...s}))}};function kn(t){return new gn(t)}var mn=class extends Ho{constructor(t){super(t),this.useMatch=s=>ut({select:s==null?void 0:s.select,from:this.id,structuralSharing:s==null?void 0:s.structuralSharing}),this.useRouteContext=s=>ks({...s,from:this.id}),this.useSearch=s=>Ms({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useParams=s=>Is({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Cs({...s,from:this.id}),this.useLoaderData=s=>Ls({...s,from:this.id}),this.useNavigate=()=>Ts({from:this.fullPath}),this.Link=_t.forwardRef((s,e)=>M.jsx(Es,{ref:e,from:this.fullPath,...s}))}};function En(t){return new mn(t)}function yn(t){const s=V(),e=`not-found-${H(s.stores.location,n=>n.pathname)}-${H(s.stores.status,n=>n)}`;return M.jsx(xe,{getResetKey:()=>e,onCatch:(n,o)=>{var r;if(N(n))(r=t.onCatch)==null||r.call(t,n,o);else throw n},errorComponent:({error:n})=>{var o;if(N(n))return(o=t.fallback)==null?void 0:o.call(t,n);throw n},children:t.children})}function vn(){return M.jsx("p",{children:"Not Found"})}function gt(t){return M.jsx(M.Fragment,{children:t.children})}function Bs(t,s,e){return s.options.notFoundComponent?M.jsx(s.options.notFoundComponent,{...e}):t.options.defaultNotFoundComponent?M.jsx(t.options.defaultNotFoundComponent,{...e}):M.jsx(vn,{})}function Sn(t){return null}function xn(){return Sn(V()),null}var As=E.memo(function({matchId:s}){const e=V(),n=e.stores.matchStores.get(s);n||q();const o=H(e.stores.loadedAt,i=>i),r=H(n,i=>i);return M.jsx(Pn,{router:e,matchId:s,resetKey:o,matchState:E.useMemo(()=>{var l;const i=r.routeId,c=(l=e.routesById[i].parentRoute)==null?void 0:l.id;return{routeId:i,ssr:r.ssr,_displayPending:r._displayPending,parentRouteId:c}},[r._displayPending,r.routeId,r.ssr,e.routesById])})});function Pn({router:t,matchId:s,resetKey:e,matchState:n}){var p,g;const o=t.routesById[n.routeId],r=o.options.pendingComponent??t.options.defaultPendingComponent,i=r?M.jsx(r,{}):null,c=o.options.errorComponent??t.options.defaultErrorComponent,l=o.options.onCatch??t.options.defaultOnCatch,u=o.isRoot?o.options.notFoundComponent??((p=t.options.notFoundRoute)==null?void 0:p.options.component):o.options.notFoundComponent,f=n.ssr===!1||n.ssr==="data-only",a=(!o.isRoot||o.options.wrapInSuspense||f)&&(o.options.wrapInSuspense??r??(((g=o.options.errorComponent)==null?void 0:g.preload)||f))?E.Suspense:gt,d=c?xe:gt,h=u?yn:gt;return M.jsxs(o.isRoot?o.options.shellComponent??gt:gt,{children:[M.jsx(qt.Provider,{value:s,children:M.jsx(a,{fallback:i,children:M.jsx(d,{getResetKey:()=>e,errorComponent:c||Pe,onCatch:(m,x)=>{if(N(m))throw m.routeId??(m.routeId=n.routeId),m;l==null||l(m,x)},children:M.jsx(h,{fallback:m=>{if(m.routeId??(m.routeId=n.routeId),!u||m.routeId&&m.routeId!==n.routeId||!m.routeId&&!o.isRoot)throw m;return E.createElement(u,m)},children:f||n._displayPending?M.jsx($o,{fallback:i,children:M.jsx(ns,{matchId:s})}):M.jsx(ns,{matchId:s})})})})}),n.parentRouteId===ct?M.jsxs(M.Fragment,{children:[M.jsx(Rn,{resetKey:e}),t.options.scrollRestoration&&is?M.jsx(xn,{}):null]}):null]})}function Rn({resetKey:t}){const s=V(),e=E.useRef(void 0);return wt(()=>{const n=s.latestLocation.href;(e.current===void 0||e.current!==n)&&(s.emit({type:"onRendered",...mt(s.stores.location.get(),s.stores.resolvedLocation.get())}),e.current=n)},[s.latestLocation.state.__TSR_key,t,s]),null}var ns=E.memo(function({matchId:s}){const e=V(),n=(f,a)=>{var d;return((d=e.getMatch(f.id))==null?void 0:d._nonReactive[a])??f._nonReactive[a]},o=e.stores.matchStores.get(s);o||q();const r=H(o,f=>f),i=r.routeId,c=e.routesById[i],l=E.useMemo(()=>{var a;const f=(a=e.routesById[i].options.remountDeps??e.options.defaultRemountDeps)==null?void 0:a({routeId:i,loaderDeps:r.loaderDeps,params:r._strictParams,search:r._strictSearch});return f?JSON.stringify(f):void 0},[i,r.loaderDeps,r._strictParams,r._strictSearch,e.options.defaultRemountDeps,e.routesById]),u=E.useMemo(()=>{const f=c.options.component??e.options.defaultComponent;return f?M.jsx(f,{},l):M.jsx(bn,{})},[l,c.options.component,e.options.defaultComponent]);if(r._displayPending)throw n(r,"displayPendingPromise");if(r._forcePending)throw n(r,"minPendingPromise");if(r.status==="pending"){const f=c.options.pendingMinMs??e.options.defaultPendingMinMs;if(f){const a=e.getMatch(r.id);if(a&&!a._nonReactive.minPendingPromise){const d=vt();a._nonReactive.minPendingPromise=d,setTimeout(()=>{d.resolve(),a._nonReactive.minPendingPromise=void 0},f)}}throw n(r,"loadPromise")}if(r.status==="notFound")return N(r.error)||q(),Bs(e,c,r.error);if(r.status==="redirected")throw W(r.error)||q(),n(r,"loadPromise");if(r.status==="error")throw r.error;return u}),bn=E.memo(function(){const s=V(),e=E.useContext(qt);let n,o=!1,r;{const u=e?s.stores.matchStores.get(e):void 0;[n,o]=H(u,f=>[f==null?void 0:f.routeId,(f==null?void 0:f.globalNotFound)??!1]),r=H(s.stores.matchesId,f=>f[f.findIndex(a=>a===e)+1])}const i=n?s.routesById[n]:void 0,c=s.options.defaultPendingComponent?M.jsx(s.options.defaultPendingComponent,{}):null;if(o)return i||q(),Bs(s,i,void 0);if(!r)return null;const l=M.jsx(As,{matchId:r});return n===ct?M.jsx(E.Suspense,{fallback:c,children:l}):l});function wn(){const t=V(),s=E.useRef({router:t,mounted:!1}),[e,n]=E.useState(!1),o=H(t.stores.isLoading,a=>a),r=H(t.stores.hasPending,a=>a),i=Zt(o),c=o||e||r,l=Zt(c),u=o||r,f=Zt(u);return t.startTransition=a=>{n(!0),E.startTransition(()=>{a(),n(!1)})},E.useEffect(()=>{const a=t.history.subscribe(t.load),d=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return G(t.latestLocation.publicHref)!==G(d.publicHref)&&t.commitLocation({...d,replace:!0}),()=>{a()}},[t,t.history]),wt(()=>{if(typeof window<"u"&&t.ssr||s.current.router===t&&s.current.mounted)return;s.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(d){console.error(d)}})()},[t]),wt(()=>{i&&!o&&t.emit({type:"onLoad",...mt(t.stores.location.get(),t.stores.resolvedLocation.get())})},[i,t,o]),wt(()=>{f&&!u&&t.emit({type:"onBeforeRouteMount",...mt(t.stores.location.get(),t.stores.resolvedLocation.get())})},[u,f,t]),wt(()=>{if(l&&!c){const a=mt(t.stores.location.get(),t.stores.resolvedLocation.get());t.emit({type:"onResolved",...a}),ws(()=>{t.stores.status.set("idle"),t.stores.resolvedLocation.set(t.stores.location.get())})}},[c,l,t]),null}function _n(){const t=V(),s=t.routesById[ct].options.pendingComponent??t.options.defaultPendingComponent,e=s?M.jsx(s,{}):null,n=M.jsxs(typeof document<"u"&&t.ssr?gt:E.Suspense,{fallback:e,children:[M.jsx(wn,{}),M.jsx(Ln,{})]});return t.options.InnerWrap?M.jsx(t.options.InnerWrap,{children:n}):n}function Ln(){const t=V(),s=H(t.stores.firstId,o=>o),e=H(t.stores.loadedAt,o=>o),n=s?M.jsx(As,{matchId:s}):null;return M.jsx(qt.Provider,{value:s,children:t.options.disableGlobalCatchBoundary?n:M.jsx(xe,{getResetKey:()=>e,errorComponent:Pe,onCatch:void 0,children:n})})}var Cn=t=>({createMutableStore:Qe,createReadonlyStore:Qe,batch:ws}),Bn=t=>new In(t),In=class extends Co{constructor(t){super(t,Cn)}};function Mn({router:t,children:s,...e}){cs(e)&&t.update({...t.options,...e,context:{...t.options.context,...e.context}});const n=M.jsx(Rs.Provider,{value:t,children:s});return t.options.Wrap?M.jsx(t.options.Wrap,{children:n}):n}function An({router:t,...s}){return M.jsx(Mn,{router:t,...s,children:M.jsx(_n,{})})}function jn(t){const s=V({warn:(t==null?void 0:t.router)===void 0}),e=(t==null?void 0:t.router)||s,n=E.useRef(void 0);return H(e.stores.__store,o=>{if(t!=null&&t.select){if(t.structuralSharing??e.options.defaultStructuralSharing){const r=X(n.current,t.select(o));return n.current=r,r}return t.select(o)}return o})}export{bn as O,An as R,Ts as a,V as b,jn as c,En as d,kn as e,Bn as f,Is as u};
|
package/dist/shell/index.html
CHANGED
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Rangka</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index
|
|
8
|
-
<link rel="
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-D1wStSrO.js"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-radix-D-Trh8JA.js">
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-query-dRdWN_eK.js">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-router-B1WM9yRc.js">
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-63v1sBS3.css">
|
|
9
12
|
</head>
|
|
10
13
|
<body>
|
|
11
14
|
<div id="root"></div>
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
@theme inline {
|
|
2
|
+
--animate-page-enter: page-enter 150ms ease-out;
|
|
3
|
+
--font-heading: var(--font-sans);
|
|
4
|
+
|
|
5
|
+
--font-sans: 'Inter Variable', sans-serif;
|
|
6
|
+
|
|
7
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
8
|
+
|
|
9
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
10
|
+
|
|
11
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
12
|
+
|
|
13
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
14
|
+
|
|
15
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
16
|
+
|
|
17
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
18
|
+
|
|
19
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
20
|
+
|
|
21
|
+
--color-sidebar: var(--sidebar);
|
|
22
|
+
|
|
23
|
+
--color-chart-5: var(--chart-5);
|
|
24
|
+
|
|
25
|
+
--color-chart-4: var(--chart-4);
|
|
26
|
+
|
|
27
|
+
--color-chart-3: var(--chart-3);
|
|
28
|
+
|
|
29
|
+
--color-chart-2: var(--chart-2);
|
|
30
|
+
|
|
31
|
+
--color-chart-1: var(--chart-1);
|
|
32
|
+
|
|
33
|
+
--color-ring: var(--ring);
|
|
34
|
+
|
|
35
|
+
--color-input: var(--input);
|
|
36
|
+
|
|
37
|
+
--color-border: var(--border);
|
|
38
|
+
|
|
39
|
+
--color-destructive: var(--destructive);
|
|
40
|
+
|
|
41
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
42
|
+
|
|
43
|
+
--color-accent: var(--accent);
|
|
44
|
+
|
|
45
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
46
|
+
|
|
47
|
+
--color-muted: var(--muted);
|
|
48
|
+
|
|
49
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
50
|
+
|
|
51
|
+
--color-secondary: var(--secondary);
|
|
52
|
+
|
|
53
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
54
|
+
|
|
55
|
+
--color-primary: var(--primary);
|
|
56
|
+
|
|
57
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
58
|
+
|
|
59
|
+
--color-popover: var(--popover);
|
|
60
|
+
|
|
61
|
+
--color-card-foreground: var(--card-foreground);
|
|
62
|
+
|
|
63
|
+
--color-card: var(--card);
|
|
64
|
+
|
|
65
|
+
--color-foreground: var(--foreground);
|
|
66
|
+
|
|
67
|
+
--color-background: var(--background);
|
|
68
|
+
|
|
69
|
+
--radius-sm: calc(var(--radius) * 0.6);
|
|
70
|
+
|
|
71
|
+
--radius-md: calc(var(--radius) * 0.8);
|
|
72
|
+
|
|
73
|
+
--radius-lg: var(--radius);
|
|
74
|
+
|
|
75
|
+
--radius-xl: calc(var(--radius) * 1.4);
|
|
76
|
+
|
|
77
|
+
--radius-2xl: calc(var(--radius) * 1.8);
|
|
78
|
+
|
|
79
|
+
--radius-3xl: calc(var(--radius) * 2.2);
|
|
80
|
+
|
|
81
|
+
--radius-4xl: calc(var(--radius) * 2.6);
|
|
82
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { WidgetProps } from '../types.js';
|
|
3
|
+
import type { WidgetDefinitionMeta } from '@rangka/shared';
|
|
4
|
+
type LazyWidgetModule = {
|
|
5
|
+
default: ComponentType<WidgetProps> & {
|
|
6
|
+
widgetMeta: WidgetDefinitionMeta;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const lazyWidgets: Record<string, () => Promise<LazyWidgetModule>>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=lazy-manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lazy-manifest.d.ts","sourceRoot":"","sources":["../../../src/widgets/components/lazy-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG;QAAE,UAAU,EAAE,oBAAoB,CAAA;KAAE,CAAC;CAC5E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,CA8BvE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export const lazyWidgets = {
|
|
2
|
+
checkbox: () => import('./CheckboxWidget.js'),
|
|
3
|
+
badge: () => import('./BadgeWidget.js'),
|
|
4
|
+
icon: () => import('./IconWidget.js'),
|
|
5
|
+
image: () => import('./ImageWidget.js'),
|
|
6
|
+
divider: () => import('./DividerWidget.js'),
|
|
7
|
+
spacer: () => import('./SpacerWidget.js'),
|
|
8
|
+
split: () => import('./SplitWidget.js'),
|
|
9
|
+
card: () => import('./CardWidget.js'),
|
|
10
|
+
'scroll-area': () => import('./ScrollAreaWidget.js'),
|
|
11
|
+
stack: () => import('./StackWidget.js'),
|
|
12
|
+
table: () => import('./TableWidget.js'),
|
|
13
|
+
column: () => import('./ColumnWidget.js'),
|
|
14
|
+
repeat: () => import('./RepeatWidget.js'),
|
|
15
|
+
drawer: () => import('./DrawerWidget.js'),
|
|
16
|
+
modal: () => import('./ModalWidget.js'),
|
|
17
|
+
textarea: () => import('./TextareaWidget.js'),
|
|
18
|
+
datepicker: () => import('./DatePickerWidget.js'),
|
|
19
|
+
datetime: () => import('./DatetimeWidget.js'),
|
|
20
|
+
money: () => import('./MoneyWidget.js'),
|
|
21
|
+
link: () => import('./LinkWidget.js'),
|
|
22
|
+
'many-to-many': () => import('./ManyToManyWidget.js'),
|
|
23
|
+
'dynamic-link': () => import('./DynamicLinkWidget.js'),
|
|
24
|
+
attachment: () => import('./AttachmentWidget.js'),
|
|
25
|
+
attachments: () => import('./AttachmentsWidget.js'),
|
|
26
|
+
sequence: () => import('./SequenceWidget.js'),
|
|
27
|
+
computed: () => import('./ComputedWidget.js'),
|
|
28
|
+
code: () => import('./CodeWidget.js'),
|
|
29
|
+
json: () => import('./JsonWidget.js'),
|
|
30
|
+
tree: () => import('./TreeWidget.js'),
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=lazy-manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lazy-manifest.js","sourceRoot":"","sources":["../../../src/widgets/components/lazy-manifest.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,WAAW,GAAoD;IAC1E,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,qBAAqB,CAAyC;IACrF,KAAK,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAyC;IAC/E,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAyC;IAC7E,KAAK,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAyC;IAC/E,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,oBAAoB,CAAyC;IACnF,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAyC;IACjF,KAAK,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAyC;IAC/E,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAyC;IAC7E,aAAa,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAyC;IAC5F,KAAK,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAyC;IAC/E,KAAK,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAyC;IAC/E,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAyC;IACjF,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAyC;IACjF,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAyC;IACjF,KAAK,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAyC;IAC/E,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,qBAAqB,CAAyC;IACrF,UAAU,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAyC;IACzF,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,qBAAqB,CAAyC;IACrF,KAAK,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAyC;IAC/E,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAyC;IAC7E,cAAc,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAyC;IAC7F,cAAc,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,wBAAwB,CAAyC;IAC9F,UAAU,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAyC;IACzF,WAAW,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,wBAAwB,CAAyC;IAC3F,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,qBAAqB,CAAyC;IACrF,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,qBAAqB,CAAyC;IACrF,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAyC;IAC7E,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAyC;IAC7E,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAyC;CAC9E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../src/widgets/components/register.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../src/widgets/components/register.ts"],"names":[],"mappings":"AA8BA,wBAAgB,sBAAsB,IAAI,IAAI,CAI7C"}
|
|
@@ -2,79 +2,21 @@ import { registerWidget } from '../registry.js';
|
|
|
2
2
|
import { ButtonWidget } from './ButtonWidget.js';
|
|
3
3
|
import { InputWidget } from './InputWidget.js';
|
|
4
4
|
import { SelectWidget } from './SelectWidget.js';
|
|
5
|
-
import { CheckboxWidget } from './CheckboxWidget.js';
|
|
6
5
|
import { TextWidget } from './TextWidget.js';
|
|
7
|
-
import { BadgeWidget } from './BadgeWidget.js';
|
|
8
|
-
import { IconWidget } from './IconWidget.js';
|
|
9
|
-
import { ImageWidget } from './ImageWidget.js';
|
|
10
6
|
import { GroupWidget } from './GroupWidget.js';
|
|
11
7
|
import { SectionWidget } from './SectionWidget.js';
|
|
12
|
-
import { DividerWidget } from './DividerWidget.js';
|
|
13
|
-
import { SpacerWidget } from './SpacerWidget.js';
|
|
14
|
-
import { SplitWidget } from './SplitWidget.js';
|
|
15
8
|
import { GridWidget } from './GridWidget.js';
|
|
16
|
-
import { CardWidget } from './CardWidget.js';
|
|
17
|
-
import { ScrollAreaWidget } from './ScrollAreaWidget.js';
|
|
18
|
-
import { StackWidget } from './StackWidget.js';
|
|
19
|
-
import { TableWidget } from './TableWidget.js';
|
|
20
|
-
import { ColumnWidget } from './ColumnWidget.js';
|
|
21
9
|
import { DataWidget } from './DataWidget.js';
|
|
22
|
-
import { RepeatWidget } from './RepeatWidget.js';
|
|
23
|
-
import { DrawerWidget } from './DrawerWidget.js';
|
|
24
|
-
import { ModalWidget } from './ModalWidget.js';
|
|
25
|
-
import { TextareaWidget } from './TextareaWidget.js';
|
|
26
|
-
import { DatePickerWidget } from './DatePickerWidget.js';
|
|
27
|
-
import { DatetimeWidget } from './DatetimeWidget.js';
|
|
28
|
-
import { MoneyWidget } from './MoneyWidget.js';
|
|
29
|
-
import { LinkWidget } from './LinkWidget.js';
|
|
30
|
-
import { ManyToManyWidget } from './ManyToManyWidget.js';
|
|
31
|
-
import { DynamicLinkWidget } from './DynamicLinkWidget.js';
|
|
32
|
-
import { AttachmentWidget } from './AttachmentWidget.js';
|
|
33
|
-
import { AttachmentsWidget } from './AttachmentsWidget.js';
|
|
34
|
-
import { SequenceWidget } from './SequenceWidget.js';
|
|
35
|
-
import { ComputedWidget } from './ComputedWidget.js';
|
|
36
|
-
import { CodeWidget } from './CodeWidget.js';
|
|
37
|
-
import { JsonWidget } from './JsonWidget.js';
|
|
38
|
-
import { TreeWidget } from './TreeWidget.js';
|
|
39
10
|
import { FormWidget } from '../form/FormWidget.js';
|
|
40
11
|
const builtInWidgets = [
|
|
41
12
|
ButtonWidget,
|
|
42
13
|
InputWidget,
|
|
43
14
|
SelectWidget,
|
|
44
|
-
CheckboxWidget,
|
|
45
15
|
TextWidget,
|
|
46
|
-
BadgeWidget,
|
|
47
|
-
IconWidget,
|
|
48
|
-
ImageWidget,
|
|
49
16
|
GroupWidget,
|
|
50
17
|
SectionWidget,
|
|
51
|
-
DividerWidget,
|
|
52
|
-
SpacerWidget,
|
|
53
|
-
SplitWidget,
|
|
54
18
|
GridWidget,
|
|
55
|
-
CardWidget,
|
|
56
|
-
ScrollAreaWidget,
|
|
57
|
-
StackWidget,
|
|
58
|
-
TableWidget,
|
|
59
|
-
ColumnWidget,
|
|
60
19
|
DataWidget,
|
|
61
|
-
RepeatWidget,
|
|
62
|
-
DrawerWidget,
|
|
63
|
-
ModalWidget,
|
|
64
|
-
TextareaWidget,
|
|
65
|
-
DatePickerWidget,
|
|
66
|
-
DatetimeWidget,
|
|
67
|
-
MoneyWidget,
|
|
68
|
-
LinkWidget,
|
|
69
|
-
ManyToManyWidget,
|
|
70
|
-
DynamicLinkWidget,
|
|
71
|
-
AttachmentWidget,
|
|
72
|
-
AttachmentsWidget,
|
|
73
|
-
SequenceWidget,
|
|
74
|
-
ComputedWidget,
|
|
75
|
-
CodeWidget,
|
|
76
|
-
JsonWidget,
|
|
77
|
-
TreeWidget,
|
|
78
20
|
FormWidget,
|
|
79
21
|
];
|
|
80
22
|
export function registerBuiltInWidgets() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../src/widgets/components/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../src/widgets/components/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AASnD,MAAM,cAAc,GAAqB;IACvC,YAAyC;IACzC,WAAwC;IACxC,YAAyC;IACzC,UAAuC;IACvC,WAAwC;IACxC,aAA0C;IAC1C,UAAuC;IACvC,UAAuC;IACvC,UAAuC;CACxC,CAAC;AAEF,MAAM,UAAU,sBAAsB;IACpC,KAAK,MAAM,MAAM,IAAI,cAAc,EAAE,CAAC;QACpC,cAAc,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/widgets/loader.ts"],"names":[],"mappings":"AAaA,wBAAsB,iBAAiB,CACrC,WAAW,GAAE,MAAiC,GAC7C,OAAO,CAAC,IAAI,CAAC,CAQf;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CA8BjE"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { getWidget, registerWidget } from './registry.js';
|
|
2
|
+
import { lazyWidgets } from './components/lazy-manifest.js';
|
|
3
|
+
let manifestCache = null;
|
|
4
|
+
const loaded = new Set();
|
|
5
|
+
const loading = new Map();
|
|
6
|
+
export async function loadCustomWidgets(manifestUrl = '/_rangka/manifest.json') {
|
|
7
|
+
try {
|
|
8
|
+
const res = await fetch(manifestUrl);
|
|
9
|
+
if (!res.ok)
|
|
10
|
+
return;
|
|
11
|
+
manifestCache = await res.json();
|
|
12
|
+
}
|
|
13
|
+
catch {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export async function ensureWidget(name) {
|
|
18
|
+
if (getWidget(name))
|
|
19
|
+
return true;
|
|
20
|
+
if (loaded.has(name))
|
|
21
|
+
return getWidget(name) !== undefined;
|
|
22
|
+
const pending = loading.get(name);
|
|
23
|
+
if (pending)
|
|
24
|
+
return pending;
|
|
25
|
+
const loader = lazyWidgets[name];
|
|
26
|
+
if (loader) {
|
|
27
|
+
const promise = loadBuiltInWidget(name, loader);
|
|
28
|
+
loading.set(name, promise);
|
|
29
|
+
const result = await promise;
|
|
30
|
+
loading.delete(name);
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
if (!manifestCache) {
|
|
34
|
+
await loadCustomWidgets();
|
|
35
|
+
}
|
|
36
|
+
const raw = manifestCache?.[name];
|
|
37
|
+
if (!raw)
|
|
38
|
+
return false;
|
|
39
|
+
const entry = typeof raw === 'string' ? { js: raw, css: '' } : raw;
|
|
40
|
+
const promise = loadCustomWidget(name, entry);
|
|
41
|
+
loading.set(name, promise);
|
|
42
|
+
const result = await promise;
|
|
43
|
+
loading.delete(name);
|
|
44
|
+
return result;
|
|
45
|
+
}
|
|
46
|
+
async function loadBuiltInWidget(name, loader) {
|
|
47
|
+
try {
|
|
48
|
+
const mod = await loader();
|
|
49
|
+
const component = mod.default;
|
|
50
|
+
if (component && component.widgetMeta) {
|
|
51
|
+
registerWidget(component.widgetMeta, component);
|
|
52
|
+
}
|
|
53
|
+
loaded.add(name);
|
|
54
|
+
return getWidget(name) !== undefined;
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
loaded.add(name);
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
async function loadCustomWidget(name, entry) {
|
|
62
|
+
try {
|
|
63
|
+
if (entry.css) {
|
|
64
|
+
await injectCSS(entry.css);
|
|
65
|
+
}
|
|
66
|
+
const mod = await import(/* @vite-ignore */ entry.js);
|
|
67
|
+
if (mod.default && typeof mod.default === 'object') {
|
|
68
|
+
const def = mod.default;
|
|
69
|
+
if (def.meta && def.component) {
|
|
70
|
+
registerWidget(def.meta, def.component);
|
|
71
|
+
}
|
|
72
|
+
else if (def.name) {
|
|
73
|
+
registerWidget(def, mod.default);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
loaded.add(name);
|
|
77
|
+
return getWidget(name) !== undefined;
|
|
78
|
+
}
|
|
79
|
+
catch {
|
|
80
|
+
loaded.add(name);
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function injectCSS(href) {
|
|
85
|
+
return new Promise((resolve) => {
|
|
86
|
+
const existing = document.querySelector(`link[href="${href}"]`);
|
|
87
|
+
if (existing) {
|
|
88
|
+
resolve();
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const link = document.createElement('link');
|
|
92
|
+
link.rel = 'stylesheet';
|
|
93
|
+
link.href = href;
|
|
94
|
+
link.onload = () => resolve();
|
|
95
|
+
link.onerror = () => resolve();
|
|
96
|
+
document.head.appendChild(link);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../src/widgets/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAQ5D,IAAI,aAAa,GAAoB,IAAI,CAAC;AAC1C,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAC;AACjC,MAAM,OAAO,GAAG,IAAI,GAAG,EAA4B,CAAC;AAEpD,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,cAAsB,wBAAwB;IAE9C,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC;QACrC,IAAI,CAAC,GAAG,CAAC,EAAE;YAAE,OAAO;QACpB,aAAa,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;IACnC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO;IACT,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,IAAY;IAC7C,IAAI,SAAS,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACjC,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,SAAS,CAAC;IAE3D,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,OAAO;QAAE,OAAO,OAAO,CAAC;IAE5B,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,OAAO,GAAG,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAChD,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACrB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,iBAAiB,EAAE,CAAC;IAC5B,CAAC;IAED,MAAM,GAAG,GAAG,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,CAAC,GAAG;QAAE,OAAO,KAAK,CAAC;IAEvB,MAAM,KAAK,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IACnE,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC9C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE3B,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC;IAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACrB,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,KAAK,UAAU,iBAAiB,CAC9B,IAAY,EACZ,MAEE;IAEF,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,MAAM,EAAE,CAAC;QAC3B,MAAM,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC;QAC9B,IAAI,SAAS,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;YACtC,cAAc,CAAC,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;QAClD,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACjB,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,SAAS,CAAC;IACvC,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACjB,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,KAAK,UAAU,gBAAgB,CAC7B,IAAY,EACZ,KAAkC;IAElC,IAAI,CAAC;QACH,IAAI,KAAK,CAAC,GAAG,EAAE,CAAC;YACd,MAAM,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC7B,CAAC;QAED,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAEtD,IAAI,GAAG,CAAC,OAAO,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;YACnD,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC;YACxB,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,SAAS,EAAE,CAAC;gBAC9B,cAAc,CACZ,GAAG,CAAC,IAA4B,EAChC,GAAG,CAAC,SAAuC,CAC5C,CAAC;YACJ,CAAC;iBAAM,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;gBACpB,cAAc,CAAC,GAA2B,EAAE,GAAG,CAAC,OAAqC,CAAC,CAAC;YACzF,CAAC;QACH,CAAC;QAED,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACjB,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,SAAS,CAAC;IACvC,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACjB,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,SAAS,SAAS,CAAC,IAAY;IAC7B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC;QAChE,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,EAAE,CAAC;YACV,OAAO;QACT,CAAC;QACD,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,GAAG,GAAG,YAAY,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WidgetProps } from '../types.js';
|
|
3
|
+
interface LazyWidgetProps extends WidgetProps {
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function LazyWidget({ name, ...widgetProps }: LazyWidgetProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=LazyWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LazyWidget.d.ts","sourceRoot":"","sources":["../../../src/widgets/renderer/LazyWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,UAAU,eAAgB,SAAQ,WAAW;IAC3C,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,EAAE,EAAE,eAAe,qBAgCnE"}
|