@dimina-kit/devtools 0.4.0-dev.20260828161241 → 0.4.0-dev.20260907055341
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -729
- package/dist/main/app/app.d.ts +27 -7
- package/dist/main/app/app.js +285 -681
- package/dist/main/app/editor-view.d.ts +21 -0
- package/dist/main/app/editor-view.js +71 -0
- package/dist/main/app/global-mirrors.d.ts +23 -0
- package/dist/main/app/global-mirrors.js +37 -0
- package/dist/main/app/host-sidebar-default.d.ts +19 -0
- package/dist/main/app/host-sidebar-default.js +44 -0
- package/dist/main/app/menu-setup.d.ts +13 -0
- package/dist/main/app/menu-setup.js +49 -0
- package/dist/main/app/open-project-ipc.d.ts +13 -0
- package/dist/main/app/open-project-ipc.js +21 -0
- package/dist/main/app/project-list-surface.d.ts +31 -0
- package/dist/main/app/project-list-surface.js +20 -0
- package/dist/main/app/project-window.d.ts +36 -0
- package/dist/main/app/project-window.js +93 -0
- package/dist/main/app/servers.d.ts +17 -0
- package/dist/main/app/servers.js +60 -0
- package/dist/main/app/ui-extension-targets.d.ts +42 -0
- package/dist/main/app/ui-extension-targets.js +101 -0
- package/dist/main/app/window-close-reveal.harness.d.ts +34 -0
- package/dist/main/app/window-close-reveal.harness.js +65 -0
- package/dist/main/app/window-events.d.ts +15 -0
- package/dist/main/app/window-events.js +45 -0
- package/dist/main/app/window-runtime-services.d.ts +41 -0
- package/dist/main/app/window-runtime-services.js +178 -0
- package/dist/main/app/workbench-modules.d.ts +24 -0
- package/dist/main/app/workbench-modules.js +51 -0
- package/dist/main/app/workbench-window.d.ts +85 -0
- package/dist/main/app/workbench-window.js +310 -0
- package/dist/main/index.bundle.js +10669 -9096
- package/dist/main/ipc/app.d.ts +4 -1
- package/dist/main/ipc/app.js +4 -3
- package/dist/main/ipc/device-picker.d.ts +16 -0
- package/dist/main/ipc/device-picker.js +27 -0
- package/dist/main/ipc/index.d.ts +1 -0
- package/dist/main/ipc/index.js +1 -0
- package/dist/main/ipc/internal-devtools.d.ts +2 -1
- package/dist/main/ipc/internal-devtools.js +4 -3
- package/dist/main/ipc/popover.d.ts +4 -1
- package/dist/main/ipc/popover.js +25 -9
- package/dist/main/ipc/project-create.d.ts +2 -1
- package/dist/main/ipc/project-create.js +6 -5
- package/dist/main/ipc/project-fs.d.ts +3 -1
- package/dist/main/ipc/project-fs.js +17 -17
- package/dist/main/ipc/projects.d.ts +3 -3
- package/dist/main/ipc/projects.js +13 -12
- package/dist/main/ipc/session.d.ts +4 -1
- package/dist/main/ipc/session.js +16 -11
- package/dist/main/ipc/settings.d.ts +4 -1
- package/dist/main/ipc/settings.js +12 -19
- package/dist/main/ipc/simulator-module.d.ts +5 -0
- package/dist/main/ipc/simulator-module.js +9 -5
- package/dist/main/ipc/simulator.d.ts +4 -1
- package/dist/main/ipc/simulator.js +12 -18
- package/dist/main/ipc/tooltip.d.ts +2 -1
- package/dist/main/ipc/tooltip.js +8 -7
- package/dist/main/ipc/views.d.ts +4 -1
- package/dist/main/ipc/views.js +20 -9
- package/dist/main/runtime/devtools-backend-before-quit.harness.d.ts +2 -20
- package/dist/main/runtime/devtools-backend-before-quit.harness.js +14 -283
- package/dist/main/runtime/devtools-backend.js +14 -3
- package/dist/main/runtime/devtools-runtime-mock.harness.d.ts +21 -0
- package/dist/main/runtime/devtools-runtime-mock.harness.js +313 -0
- package/dist/main/services/app-services.d.ts +62 -0
- package/dist/main/services/app-services.js +64 -0
- package/dist/main/services/automation/connection-target.d.ts +36 -0
- package/dist/main/services/automation/connection-target.js +29 -0
- package/dist/main/services/automation/console-bridge.d.ts +28 -0
- package/dist/main/services/automation/console-bridge.js +91 -0
- package/dist/main/services/automation/handlers/app.js +4 -4
- package/dist/main/services/automation/handlers/element.js +55 -21
- package/dist/main/services/automation/index.d.ts +12 -1
- package/dist/main/services/automation/index.js +54 -133
- package/dist/main/services/default-adapter.js +1 -1
- package/dist/main/services/fs-bridge-protocol.d.ts +61 -0
- package/dist/main/services/fs-bridge-protocol.js +34 -0
- package/dist/main/services/fs-watch-sse.d.ts +8 -1
- package/dist/main/services/fs-watch-sse.js +19 -5
- package/dist/main/services/mcp/connection-owner.d.ts +38 -0
- package/dist/main/services/mcp/connection-owner.js +79 -0
- package/dist/main/services/mcp/index.d.ts +3 -1
- package/dist/main/services/mcp/index.js +4 -3
- package/dist/main/services/mcp/opened-project.d.ts +88 -0
- package/dist/main/services/mcp/opened-project.js +60 -0
- package/dist/main/services/mcp/target-manager.d.ts +71 -23
- package/dist/main/services/mcp/target-manager.js +269 -142
- package/dist/main/services/mcp/target-selection.d.ts +47 -0
- package/dist/main/services/mcp/target-selection.js +71 -0
- package/dist/main/services/mcp/tools/context-tools.js +20 -5
- package/dist/main/services/mcp/tools/project-tools.d.ts +29 -6
- package/dist/main/services/mcp/tools/project-tools.js +37 -25
- package/dist/main/services/module.d.ts +13 -5
- package/dist/main/services/notifications/renderer-notifier.d.ts +28 -4
- package/dist/main/services/notifications/renderer-notifier.js +15 -3
- package/dist/main/services/projects/local-provider.js +2 -0
- package/dist/main/services/projects/project-repository.d.ts +31 -1
- package/dist/main/services/projects/project-repository.js +144 -20
- package/dist/main/services/projects/types.d.ts +31 -8
- package/dist/main/services/safe-area/index.d.ts +19 -5
- package/dist/main/services/safe-area/index.js +38 -13
- package/dist/main/services/simulator/ui-extensions.d.ts +8 -0
- package/dist/main/services/simulator/ui-extensions.js +16 -6
- package/dist/main/services/simulator-storage/index.d.ts +12 -1
- package/dist/main/services/simulator-storage/index.js +22 -7
- package/dist/main/services/simulator-storage/window-scope.d.ts +20 -0
- package/dist/main/services/simulator-storage/window-scope.js +20 -0
- package/dist/main/services/views/host-slot-port-channel.d.ts +20 -3
- package/dist/main/services/views/host-slot-port-channel.js +33 -5
- package/dist/main/services/views/managed-web-contents-view.js +21 -1
- package/dist/main/services/views/native-simulator-view.js +13 -16
- package/dist/main/services/views/overlay-panels-view.d.ts +13 -0
- package/dist/main/services/views/overlay-panels-view.js +31 -0
- package/dist/main/services/views/view-manager.d.ts +1 -1
- package/dist/main/services/views/view-manager.js +3 -0
- package/dist/main/services/window-contexts/context-router.d.ts +36 -0
- package/dist/main/services/window-contexts/context-router.js +55 -0
- package/dist/main/services/workbench-coi-host.d.ts +52 -0
- package/dist/main/services/workbench-coi-host.js +227 -0
- package/dist/main/services/workbench-coi-server.js +75 -133
- package/dist/main/services/workbench-coi-shutdown.d.ts +40 -0
- package/dist/main/services/workbench-coi-shutdown.js +69 -0
- package/dist/main/services/workbench-coi-static.d.ts +23 -0
- package/dist/main/services/workbench-coi-static.js +87 -0
- package/dist/main/services/workbench-context.d.ts +27 -3
- package/dist/main/services/workbench-context.js +10 -5
- package/dist/main/services/workspace/compile-mode-adapter.d.ts +18 -0
- package/dist/main/services/workspace/compile-mode-adapter.js +57 -0
- package/dist/main/services/workspace/compile-mode-store.d.ts +25 -0
- package/dist/main/services/workspace/compile-mode-store.js +71 -0
- package/dist/main/services/workspace/workspace-compile-modes.d.ts +59 -0
- package/dist/main/services/workspace/workspace-compile-modes.js +93 -0
- package/dist/main/services/workspace/workspace-referer.d.ts +17 -0
- package/dist/main/services/workspace/workspace-referer.js +26 -0
- package/dist/main/services/workspace/workspace-service.d.ts +4 -0
- package/dist/main/services/workspace/workspace-service.js +51 -84
- package/dist/main/services/workspace/workspace-thumbnails.d.ts +22 -0
- package/dist/main/services/workspace/workspace-thumbnails.js +67 -0
- package/dist/main/utils/ipc-context-source.d.ts +40 -0
- package/dist/main/utils/ipc-context-source.js +23 -0
- package/dist/main/utils/ipc-registry.d.ts +42 -36
- package/dist/main/utils/ipc-registry.js +117 -50
- package/dist/main/utils/sender-policy.d.ts +9 -0
- package/dist/main/utils/sender-policy.js +26 -3
- package/dist/main/utils/theme.d.ts +3 -2
- package/dist/main/utils/theme.js +3 -2
- package/dist/main/windows/main-window/create.d.ts +16 -0
- package/dist/main/windows/main-window/create.js +19 -11
- package/dist/main/windows/main-window/events.d.ts +1 -1
- package/dist/main/windows/main-window/events.js +26 -13
- package/dist/main/windows/main-window/index.d.ts +1 -1
- package/dist/main/windows/main-window/index.js +1 -1
- package/dist/native-host/common/common.js +94 -73
- package/dist/native-host/render/render.js +4079 -3171
- package/dist/native-host/service/service.js +2 -2
- package/dist/preload/runtime/native-host.d.ts +4 -0
- package/dist/preload/runtime/temp-files.js +9 -2
- package/dist/preload/runtime/wait-for-slot-root.d.ts +7 -4
- package/dist/preload/runtime/wait-for-slot-root.js +36 -8
- package/dist/preload/windows/host-dialog-runtime.cjs +10 -3
- package/dist/preload/windows/host-dialog-runtime.cjs.map +2 -2
- package/dist/preload/windows/host-sidebar-runtime.cjs +10 -3
- package/dist/preload/windows/host-sidebar-runtime.cjs.map +2 -2
- package/dist/preload/windows/host-toolbar-runtime.cjs +10 -3
- package/dist/preload/windows/host-toolbar-runtime.cjs.map +2 -2
- package/dist/preload/windows/main.cjs +181 -4
- package/dist/preload/windows/main.cjs.map +4 -4
- package/dist/preload/windows/simulator.cjs +10 -0
- package/dist/preload/windows/simulator.cjs.map +2 -2
- package/dist/preload/windows/simulator.js +10 -0
- package/dist/render-host/pageFrame.html +1 -1
- package/dist/render-host/preload.cjs +16 -4
- package/dist/renderer/assets/button-CB2MWjHY.js +2 -0
- package/dist/renderer/assets/constants-CkoGPQTS.js +2 -0
- package/dist/renderer/assets/constants-zQZ2-y21.js +2 -0
- package/dist/renderer/assets/{createLucideIcon-Bqi8hpdi.js → createLucideIcon-cZ9FlZZw.js} +2 -2
- package/dist/renderer/assets/devicePicker-H2eIO4e1.js +2 -0
- package/dist/renderer/assets/dialog-pHzEA8Vx.js +46 -0
- package/dist/renderer/assets/dist-B5HADirS.js +2 -0
- package/dist/renderer/assets/{dist-DKWdE1TK.js → dist-DIFlRMKe.js} +2 -2
- package/dist/renderer/assets/hostSidebarDefault-DRWh6OCt.js +2 -0
- package/dist/renderer/assets/index-CEL_XFge.js +2 -0
- package/dist/renderer/assets/{input-Ct3alvkq.js → input-CAObw95L.js} +2 -2
- package/dist/renderer/assets/ipc-channels-overlays-gIPUFnqc.js +2 -0
- package/dist/renderer/assets/jsx-runtime-DICEQH_0.css +1 -0
- package/dist/renderer/assets/{jsx-runtime-DGLHmmOq.js → jsx-runtime-DIw5wnYl.js} +1 -1
- package/dist/renderer/assets/plus-BQ9u5EbL.js +2 -0
- package/dist/renderer/assets/popover-Cw7G2Ctp.js +2 -0
- package/dist/renderer/assets/presets-DMZOb9ay.js +2 -0
- package/dist/renderer/assets/project-api-YTOr_Yvo.js +2 -0
- package/dist/renderer/assets/{projectCreateDialog-Bbjz75bP.js → projectCreateDialog-BmLqiYxn.js} +2 -2
- package/dist/renderer/assets/search-BMvuYF48.js +2 -0
- package/dist/renderer/assets/select-nFP95TxM.js +2 -0
- package/dist/renderer/assets/settings-CnpVfSWt.js +2 -0
- package/dist/renderer/assets/settings-api-Ccsf-Nsj.js +2 -0
- package/dist/renderer/assets/settings-tab-bar-CAzrv32m.js +2 -0
- package/dist/renderer/assets/smartphone-Bb2GdIKy.js +2 -0
- package/dist/renderer/assets/tabs-CPKN3Mmq.js +2 -0
- package/dist/renderer/assets/{tooltip-B_-_YVbw.js → tooltip-D6AxXRk5.js} +2 -2
- package/dist/renderer/assets/types-Bh0hA7El.js +2 -0
- package/dist/renderer/assets/updateDialog-CwndJ0Bl.js +2 -0
- package/dist/renderer/assets/{utils-kfQov6Pa.js → utils-sEB5OZEQ.js} +2 -2
- package/dist/renderer/assets/view-api-B-2zPBR5.js +2 -0
- package/dist/renderer/assets/view-ids-BfaDVV5P.js +2 -0
- package/dist/renderer/assets/workbench-BLJ0wKsg.js +5 -0
- package/dist/renderer/assets/{workbenchSettings-CV4LVA9b.js → workbenchSettings-YD0Ctbm_.js} +3 -3
- package/dist/renderer/entries/device-picker/index.html +28 -0
- package/dist/renderer/entries/host-sidebar-default/index.html +6 -5
- package/dist/renderer/entries/main/index.html +16 -17
- package/dist/renderer/entries/popover/index.html +16 -10
- package/dist/renderer/entries/project-create-dialog/index.html +12 -12
- package/dist/renderer/entries/settings/index.html +10 -10
- package/dist/renderer/entries/tooltip/index.html +5 -5
- package/dist/renderer/entries/update-dialog/index.html +10 -10
- package/dist/renderer/entries/workbench/index.html +49 -0
- package/dist/renderer/entries/workbench-settings/index.html +12 -11
- package/dist/service-host/host-env-update.cjs +23 -0
- package/dist/service-host/preload.cjs +24 -49
- package/dist/service-host/service-message-queue.cjs +71 -0
- package/dist/service-host/sync-impls/system-info.js +31 -9
- package/dist/shared/compile-mode-state.d.ts +73 -0
- package/dist/shared/compile-mode-state.js +100 -0
- package/dist/shared/compile-modes.d.ts +152 -0
- package/dist/shared/compile-modes.js +237 -0
- package/dist/shared/ipc-channels-overlays.d.ts +8 -2
- package/dist/shared/ipc-channels-overlays.js +19 -2
- package/dist/shared/ipc-channels.d.ts +5 -10
- package/dist/shared/ipc-channels.js +17 -14
- package/dist/shared/ipc-schemas.d.ts +76 -24
- package/dist/shared/ipc-schemas.js +55 -10
- package/dist/shared/project-window-types.d.ts +42 -0
- package/dist/shared/project-window-types.js +2 -0
- package/dist/shared/types.d.ts +43 -17
- package/dist/shared/view-ids.d.ts +1 -0
- package/dist/shared/view-ids.js +3 -1
- package/dist/simulator/assets/bridge-channels-B3JAmRfl.js +2 -0
- package/dist/simulator/assets/device-shell-ATEhHV2_.css +1 -0
- package/dist/simulator/assets/device-shell-pxnZZp10.js +431 -0
- package/dist/simulator/assets/simulator-Dwp7lnvu.js +10 -0
- package/dist/simulator/assets/simulator-mini-app-DFo7fhi5.js +2 -0
- package/dist/simulator/assets/simulator-ui-B2ddJB1R.js +2 -0
- package/dist/simulator/simulator.html +3 -3
- package/dist/simulator/temp-files.d.ts +6 -0
- package/dist/simulator/temp-files.js +46 -4
- package/dist/simulator/types.d.ts +7 -0
- package/dist/vscode-workbench/assets/__vite-browser-external-JIkWewFf.js +1 -0
- package/dist/vscode-workbench/assets/{dist-CMfmHflW.js → dist-CXG-u1VB.js} +3 -3
- package/dist/vscode-workbench/assets/{iconv-lite-umd-Bx8CgaZq.js → iconv-lite-umd-Dxx9Qyb4.js} +1 -1
- package/dist/vscode-workbench/assets/{index-CdG6YWhW.js → index-6VJMsaWj.js} +460 -460
- package/dist/vscode-workbench/assets/{jschardet-M0qgd2lN.js → jschardet-Ba3D16vt.js} +1 -1
- package/dist/vscode-workbench/index.html +1 -1
- package/package.json +11 -8
- package/dist/renderer/assets/button-D5Q2wkXq.js +0 -2
- package/dist/renderer/assets/constants-D7DfVqMp.js +0 -2
- package/dist/renderer/assets/constants-D8zsejFq.js +0 -2
- package/dist/renderer/assets/dialog-e1TecTOY.js +0 -46
- package/dist/renderer/assets/hostSidebarDefault-B3yLfy8j.js +0 -2
- package/dist/renderer/assets/index-CsPD68N_.js +0 -5
- package/dist/renderer/assets/ipc-channels-overlays-LsDzGAtV.js +0 -2
- package/dist/renderer/assets/jsx-runtime-2vXHouwr.css +0 -1
- package/dist/renderer/assets/popover-Dix5cm_b.js +0 -2
- package/dist/renderer/assets/project-api-k7Oq9iaq.js +0 -2
- package/dist/renderer/assets/select-acGb0AmJ.js +0 -2
- package/dist/renderer/assets/settings-CQrTMr43.js +0 -2
- package/dist/renderer/assets/settings-api-CrUQ9rYV.js +0 -2
- package/dist/renderer/assets/settings-tab-bar-Cw1kVIf2.js +0 -2
- package/dist/renderer/assets/types-CsEKtFyr.js +0 -2
- package/dist/renderer/assets/updateDialog-NsF8223A.js +0 -2
- package/dist/renderer/assets/view-api-CLn3rcQE.js +0 -2
- package/dist/simulator/assets/bridge-channels-zhsumfky.js +0 -2
- package/dist/simulator/assets/device-shell-CmtM1QxP.js +0 -2
- package/dist/simulator/assets/device-shell-iFZo1igL.css +0 -1
- package/dist/simulator/assets/simulator-CIobn3Mh.js +0 -10
- package/dist/simulator/assets/simulator-mini-app-CRe6n9br.js +0 -2
- package/dist/simulator/assets/simulator-ui-C_cP602X.js +0 -2
- package/dist/vscode-workbench/assets/__vite-browser-external-Bc1vizTf.js +0 -1
|
@@ -6,4 +6,4 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
|
6
6
|
`).replace(Ni,``)}function Fi(e,t,n){if(t=Pi(t),Pi(e)!==t&&n)throw Error(r(425))}function Ii(){}var Li=null,Ri=null;function zi(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bi=typeof setTimeout==`function`?setTimeout:void 0,Vi=typeof clearTimeout==`function`?clearTimeout:void 0,Hi=typeof Promise==`function`?Promise:void 0,Ui=typeof queueMicrotask==`function`?queueMicrotask:Hi===void 0?Bi:function(e){return Hi.resolve(null).then(e).catch(Wi)};function Wi(e){setTimeout(function(){throw e})}function Gi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),Dn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);Dn(t)}function Ki(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function qi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Ji=Math.random().toString(36).slice(2),Yi=`__reactFiber$`+Ji,Xi=`__reactProps$`+Ji,Zi=`__reactContainer$`+Ji,Qi=`__reactEvents$`+Ji,$i=`__reactListeners$`+Ji,ea=`__reactHandles$`+Ji;function ta(e){var t=e[Yi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zi]||n[Yi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=qi(e);e!==null;){if(n=e[Yi])return n;e=qi(e)}return t}e=n,n=e.parentNode}return null}function na(e){return e=e[Yi]||e[Zi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ra(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function ia(e){return e[Xi]||null}var aa=[],oa=-1;function sa(e){return{current:e}}function D(e){0>oa||(e.current=aa[oa],aa[oa]=null,oa--)}function O(e,t){oa++,aa[oa]=e.current,e.current=t}var ca={},k=sa(ca),A=sa(!1),la=ca;function ua(e,t){var n=e.type.contextTypes;if(!n)return ca;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function j(e){return e=e.childContextTypes,e!=null}function da(){D(A),D(k)}function fa(e,t,n){if(k.current!==ca)throw Error(r(168));O(k,t),O(A,n)}function pa(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,Se(e)||`Unknown`,a));return C({},n,i)}function ma(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ca,la=k.current,O(k,e),O(A,A.current),!0}function ha(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=pa(e,t,la),i.__reactInternalMemoizedMergedChildContext=e,D(A),D(k),O(k,e)):D(A),O(A,n)}var ga=null,_a=!1,va=!1;function ya(e){ga===null?ga=[e]:ga.push(e)}function ba(e){_a=!0,ya(e)}function xa(){if(!va&&ga!==null){va=!0;var e=0,t=T;try{var n=ga;for(T=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ga=null,_a=!1}catch(t){throw ga!==null&&(ga=ga.slice(e+1)),Ot(Nt,xa),t}finally{T=t,va=!1}}return null}var Sa=[],Ca=0,wa=null,Ta=0,Ea=[],Da=0,Oa=null,ka=1,Aa=``;function ja(e,t){Sa[Ca++]=Ta,Sa[Ca++]=wa,wa=e,Ta=t}function Ma(e,t,n){Ea[Da++]=ka,Ea[Da++]=Aa,Ea[Da++]=Oa,Oa=e;var r=ka;e=Aa;var i=32-Vt(r)-1;r&=~(1<<i),n+=1;var a=32-Vt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ka=1<<32-Vt(t)+i|n<<i|r,Aa=a+e}else ka=1<<a|n<<i|r,Aa=e}function Na(e){e.return!==null&&(ja(e,1),Ma(e,1,0))}function Pa(e){for(;e===wa;)wa=Sa[--Ca],Sa[Ca]=null,Ta=Sa[--Ca],Sa[Ca]=null;for(;e===Oa;)Oa=Ea[--Da],Ea[Da]=null,Aa=Ea[--Da],Ea[Da]=null,ka=Ea[--Da],Ea[Da]=null}var Fa=null,Ia=null,M=!1,La=null;function Ra(e,t){var n=Kl(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function za(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,Fa=e,Ia=Ki(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Fa=e,Ia=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=Oa===null?null:{id:ka,overflow:Aa},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Kl(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Fa=e,Ia=null,!0);default:return!1}}function Ba(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Va(e){if(M){var t=Ia;if(t){var n=t;if(!za(e,t)){if(Ba(e))throw Error(r(418));t=Ki(n.nextSibling);var i=Fa;t&&za(e,t)?Ra(i,n):(e.flags=e.flags&-4097|2,M=!1,Fa=e)}}else{if(Ba(e))throw Error(r(418));e.flags=e.flags&-4097|2,M=!1,Fa=e}}}function Ha(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Fa=e}function Ua(e){if(e!==Fa)return!1;if(!M)return Ha(e),M=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!zi(e.type,e.memoizedProps)),t&&=Ia){if(Ba(e))throw Wa(),Error(r(418));for(;t;)Ra(e,t),t=Ki(t.nextSibling)}if(Ha(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Ia=Ki(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Ia=null}}else Ia=Fa?Ki(e.stateNode.nextSibling):null;return!0}function Wa(){for(var e=Ia;e;)e=Ki(e.nextSibling)}function Ga(){Ia=Fa=null,M=!1}function Ka(e){La===null?La=[e]:La.push(e)}var qa=x.ReactCurrentBatchConfig;function Ja(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Ya(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Xa(e){var t=e._init;return t(e._payload)}function Za(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=Yl(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=$l(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ie?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===fe&&Xa(i)===t.type)?(r=a(t,n.props),r.ref=Ja(e,t,n),r.return=e,r):(r=Xl(n.type,n.key,n.props,null,e.mode,r),r.ref=Ja(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=eu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Zl(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=$l(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case ne:return n=Xl(t.type,t.key,t.props,null,e.mode,n),n.ref=Ja(e,null,t),n.return=e,n;case re:return t=eu(t,e.mode,n),t.return=e,t;case fe:var r=t._init;return f(e,r(t._payload),n)}if(Fe(t)||he(t))return t=Zl(t,e.mode,n,null),t.return=e,t;Ya(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case ne:return n.key===i?l(e,t,n,r):null;case re:return n.key===i?u(e,t,n,r):null;case fe:return i=n._init,p(e,t,i(n._payload),r)}if(Fe(n)||he(n))return i===null?d(e,t,n,r,null):null;Ya(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case ne:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case re:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case fe:var a=r._init;return m(e,t,n,a(r._payload),i)}if(Fe(r)||he(r))return e=e.get(n)||null,d(t,e,r,i,null);Ya(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),M&&ja(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return M&&ja(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),M&&ja(r,h),l}function g(a,s,c,l){var u=he(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),M&&ja(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return M&&ja(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),M&&ja(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===ie&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case ne:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===ie){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===fe&&Xa(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ja(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===ie?(r=Zl(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=Xl(i.type,i.key,i.props,null,e.mode,o),o.ref=Ja(e,r,i),o.return=e,e=o)}return s(e);case re:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=eu(i,e.mode,o),r.return=e,e=r}return s(e);case fe:return l=i._init,_(e,r,l(i._payload),o)}if(Fe(i))return h(e,r,i,o);if(he(i))return g(e,r,i,o);Ya(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=$l(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Qa=Za(!0),$a=Za(!1),eo=sa(null),to=null,no=null,ro=null;function io(){ro=no=to=null}function ao(e){var t=eo.current;D(eo),e._currentValue=t}function oo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function so(e,t){to=e,ro=no=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(R=!0),e.firstContext=null)}function co(e){var t=e._currentValue;if(ro!==e)if(e={context:e,memoizedValue:t,next:null},no===null){if(to===null)throw Error(r(308));no=e,to.dependencies={lanes:0,firstContext:e}}else no=no.next=e;return t}var lo=null;function uo(e){lo===null?lo=[e]:lo.push(e)}function fo(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,uo(t)):(n.next=i.next,i.next=n),t.interleaved=n,po(e,r)}function po(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var mo=!1;function ho(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function go(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _o(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,po(e,n)}return i=r.interleaved,i===null?(t.next=t,uo(r)):(t.next=i.next,i.next=t),r.interleaved=t,po(e,n)}function yo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nn(e,n)}}function bo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xo(e,t,n,r){var i=e.updateQueue;mo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=C({},d,f);break a;case 2:mo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Qc|=o,e.lanes=o,e.memoizedState=d}}function So(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var Co={},wo=sa(Co),To=sa(Co),Eo=sa(Co);function Do(e){if(e===Co)throw Error(r(174));return e}function Oo(e,t){switch(O(Eo,t),O(To,e),O(wo,Co),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:He(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=He(t,e)}D(wo),O(wo,t)}function ko(){D(wo),D(To),D(Eo)}function Ao(e){Do(Eo.current);var t=Do(wo.current),n=He(t,e.type);t!==n&&(O(To,e),O(wo,n))}function jo(e){To.current===e&&(D(wo),D(To))}var N=sa(0);function Mo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var No=[];function Po(){for(var e=0;e<No.length;e++)No[e]._workInProgressVersionPrimary=null;No.length=0}var Fo=x.ReactCurrentDispatcher,Io=x.ReactCurrentBatchConfig,Lo=0,P=null,F=null,I=null,Ro=!1,zo=!1,Bo=0,Vo=0;function L(){throw Error(r(321))}function Ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gr(e[n],t[n]))return!1;return!0}function Uo(e,t,n,i,a,o){if(Lo=o,P=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fo.current=e===null||e.memoizedState===null?Es:Ds,e=n(i,a),zo){o=0;do{if(zo=!1,Bo=0,25<=o)throw Error(r(301));o+=1,I=F=null,t.updateQueue=null,Fo.current=Os,e=n(i,a)}while(zo)}if(Fo.current=Ts,t=F!==null&&F.next!==null,Lo=0,I=F=P=null,Ro=!1,t)throw Error(r(300));return e}function Wo(){var e=Bo!==0;return Bo=0,e}function Go(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return I===null?P.memoizedState=I=e:I=I.next=e,I}function Ko(){if(F===null){var e=P.alternate;e=e===null?null:e.memoizedState}else e=F.next;var t=I===null?P.memoizedState:I.next;if(t!==null)I=t,F=e;else{if(e===null)throw Error(r(310));F=e,e={memoizedState:F.memoizedState,baseState:F.baseState,baseQueue:F.baseQueue,queue:F.queue,next:null},I===null?P.memoizedState=I=e:I=I.next=e}return I}function qo(e,t){return typeof t==`function`?t(e):t}function Jo(e){var t=Ko(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=F,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Lo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,P.lanes|=d,Qc|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Gr(i,t.memoizedState)||(R=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,P.lanes|=o,Qc|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Yo(e){var t=Ko(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Gr(o,t.memoizedState)||(R=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Xo(){}function Zo(e,t){var n=P,i=Ko(),a=t(),o=!Gr(i.memoizedState,a);if(o&&(i.memoizedState=a,R=!0),i=i.queue,ls(es.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||I!==null&&I.memoizedState.tag&1){if(n.flags|=2048,is(9,$o.bind(null,n,i,a,t),void 0,null),G===null)throw Error(r(349));Lo&30||Qo(n,t,a)}return a}function Qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=P.updateQueue,t===null?(t={lastEffect:null,stores:null},P.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function $o(e,t,n,r){t.value=n,t.getSnapshot=r,ts(t)&&ns(e)}function es(e,t,n){return n(function(){ts(t)&&ns(e)})}function ts(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gr(e,n)}catch{return!0}}function ns(e){var t=po(e,1);t!==null&&gl(t,e,1,-1)}function rs(e){var t=Go();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:e},t.queue=e,e=e.dispatch=xs.bind(null,P,e),[t.memoizedState,e]}function is(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=P.updateQueue,t===null?(t={lastEffect:null,stores:null},P.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function as(){return Ko().memoizedState}function os(e,t,n,r){var i=Go();P.flags|=e,i.memoizedState=is(1|t,n,void 0,r===void 0?null:r)}function ss(e,t,n,r){var i=Ko();r=r===void 0?null:r;var a=void 0;if(F!==null){var o=F.memoizedState;if(a=o.destroy,r!==null&&Ho(r,o.deps)){i.memoizedState=is(t,n,a,r);return}}P.flags|=e,i.memoizedState=is(1|t,n,a,r)}function cs(e,t){return os(8390656,8,e,t)}function ls(e,t){return ss(2048,8,e,t)}function us(e,t){return ss(4,2,e,t)}function ds(e,t){return ss(4,4,e,t)}function fs(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ps(e,t,n){return n=n==null?null:n.concat([e]),ss(4,4,fs.bind(null,t,e),n)}function ms(){}function hs(e,t){var n=Ko();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ho(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gs(e,t){var n=Ko();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ho(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _s(e,t,n){return Lo&21?(Gr(n,t)||(n=Qt(),P.lanes|=n,Qc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,R=!0),e.memoizedState=n)}function vs(e,t){var n=T;T=n!==0&&4>n?n:4,e(!0);var r=Io.transition;Io.transition={};try{e(!1),t()}finally{T=n,Io.transition=r}}function ys(){return Ko().memoizedState}function bs(e,t,n){var r=hl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ss(e))Cs(t,n);else if(n=fo(e,t,n,r),n!==null){var i=Z();gl(n,e,r,i),ws(n,t,r)}}function xs(e,t,n){var r=hl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ss(e))Cs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Gr(s,o)){var c=t.interleaved;c===null?(i.next=i,uo(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=fo(e,t,i,r),n!==null&&(i=Z(),gl(n,e,r,i),ws(n,t,r))}}function Ss(e){var t=e.alternate;return e===P||t!==null&&t===P}function Cs(e,t){zo=Ro=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ws(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nn(e,n)}}var Ts={readContext:co,useCallback:L,useContext:L,useEffect:L,useImperativeHandle:L,useInsertionEffect:L,useLayoutEffect:L,useMemo:L,useReducer:L,useRef:L,useState:L,useDebugValue:L,useDeferredValue:L,useTransition:L,useMutableSource:L,useSyncExternalStore:L,useId:L,unstable_isNewReconciler:!1},Es={readContext:co,useCallback:function(e,t){return Go().memoizedState=[e,t===void 0?null:t],e},useContext:co,useEffect:cs,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),os(4194308,4,fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4194308,4,e,t)},useInsertionEffect:function(e,t){return os(4,2,e,t)},useMemo:function(e,t){var n=Go();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Go();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=bs.bind(null,P,e),[r.memoizedState,e]},useRef:function(e){var t=Go();return e={current:e},t.memoizedState=e},useState:rs,useDebugValue:ms,useDeferredValue:function(e){return Go().memoizedState=e},useTransition:function(){var e=rs(!1),t=e[0];return e=vs.bind(null,e[1]),Go().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=P,a=Go();if(M){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),G===null)throw Error(r(349));Lo&30||Qo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,cs(es.bind(null,i,o,e),[e]),i.flags|=2048,is(9,$o.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Go(),t=G.identifierPrefix;if(M){var n=Aa,r=ka;n=(r&~(1<<32-Vt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Bo++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Vo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Ds={readContext:co,useCallback:hs,useContext:co,useEffect:ls,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:Jo,useRef:as,useState:function(){return Jo(qo)},useDebugValue:ms,useDeferredValue:function(e){return _s(Ko(),F.memoizedState,e)},useTransition:function(){return[Jo(qo)[0],Ko().memoizedState]},useMutableSource:Xo,useSyncExternalStore:Zo,useId:ys,unstable_isNewReconciler:!1},Os={readContext:co,useCallback:hs,useContext:co,useEffect:ls,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:Yo,useRef:as,useState:function(){return Yo(qo)},useDebugValue:ms,useDeferredValue:function(e){var t=Ko();return F===null?t.memoizedState=e:_s(t,F.memoizedState,e)},useTransition:function(){return[Yo(qo)[0],Ko().memoizedState]},useMutableSource:Xo,useSyncExternalStore:Zo,useId:ys,unstable_isNewReconciler:!1};function ks(e,t){if(e&&e.defaultProps){for(var n in t=C({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function As(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:C({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var js={isMounted:function(e){return(e=e._reactInternals)?St(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Z(),i=hl(e),a=_o(r,i);a.payload=t,n!=null&&(a.callback=n),t=vo(e,a,i),t!==null&&(gl(t,e,i,r),yo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Z(),i=hl(e),a=_o(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=vo(e,a,i),t!==null&&(gl(t,e,i,r),yo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Z(),r=hl(e),i=_o(n,r);i.tag=2,t!=null&&(i.callback=t),t=vo(e,i,r),t!==null&&(gl(t,e,r,n),yo(t,e,r))}};function Ms(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Kr(n,r)||!Kr(i,a):!0}function Ns(e,t,n){var r=!1,i=ca,a=t.contextType;return typeof a==`object`&&a?a=co(a):(i=j(t)?la:k.current,r=t.contextTypes,a=(r=r!=null)?ua(e,i):ca),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=js,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ps(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&js.enqueueReplaceState(t,t.state,null)}function Fs(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ho(e);var a=t.contextType;typeof a==`object`&&a?i.context=co(a):(a=j(t)?la:k.current,i.context=ua(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(As(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&js.enqueueReplaceState(i,i.state,null),xo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Is(e,t){try{var n=``,r=t;do n+=be(r),r=r.return;while(r);var i=n}catch(e){i=`
|
|
7
7
|
Error generating stack: `+e.message+`
|
|
8
8
|
`+e.stack}return{value:e,source:t,stack:i,digest:null}}function Ls(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Rs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var zs=typeof WeakMap==`function`?WeakMap:Map;function Bs(e,t,n){n=_o(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){al||(al=!0,ol=r),Rs(e,t)},n}function Vs(e,t,n){n=_o(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Rs(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Rs(e,t),typeof r!=`function`&&(sl===null?sl=new Set([this]):sl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Hs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zs;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=zl.bind(null,e,t,n),t.then(e,e))}function Us(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null?!0:t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Ws(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_o(-1,1),t.tag=2,vo(n,t,1))),n.lanes|=1),e)}var Gs=x.ReactCurrentOwner,R=!1;function z(e,t,n,r){t.child=e===null?$a(t,null,n,r):Qa(t,e.child,n,r)}function Ks(e,t,n,r,i){n=n.render;var a=t.ref;return so(t,i),r=Uo(e,t,n,r,a,i),n=Wo(),e!==null&&!R?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fc(e,t,i)):(M&&n&&Na(t),t.flags|=1,z(e,t,r,i),t.child)}function qs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ql(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Js(e,t,a,r,i)):(e=Xl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Kr:n,n(o,r)&&e.ref===t.ref)return fc(e,t,i)}return t.flags|=1,e=Yl(a,r),e.ref=t.ref,e.return=t,t.child=e}function Js(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Kr(a,r)&&e.ref===t.ref)if(R=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(R=!0);else return t.lanes=e.lanes,fc(e,t,i)}return Zs(e,t,n,r,i)}function Ys(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},O(Xc,J),J|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,O(Xc,J),J|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,O(Xc,J),J|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),O(Xc,J),J|=r;return z(e,t,i,n),t.child}function Xs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zs(e,t,n,r,i){var a=j(n)?la:k.current;return a=ua(t,a),so(t,i),n=Uo(e,t,n,r,a,i),r=Wo(),e!==null&&!R?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fc(e,t,i)):(M&&r&&Na(t),t.flags|=1,z(e,t,n,i),t.child)}function Qs(e,t,n,r,i){if(j(n)){var a=!0;ma(t)}else a=!1;if(so(t,i),t.stateNode===null)dc(e,t),Ns(t,n,r),Fs(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=co(l):(l=j(n)?la:k.current,l=ua(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Ps(t,o,r,l),mo=!1;var f=t.memoizedState;o.state=f,xo(t,r,o,i),c=t.memoizedState,s!==r||f!==c||A.current||mo?(typeof u==`function`&&(As(t,n,u,r),c=t.memoizedState),(s=mo||Ms(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,go(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ks(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=co(c):(c=j(n)?la:k.current,c=ua(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Ps(t,o,r,c),mo=!1,f=t.memoizedState,o.state=f,xo(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||A.current||mo?(typeof p==`function`&&(As(t,n,p,r),m=t.memoizedState),(l=mo||Ms(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return $s(e,t,n,r,a,i)}function $s(e,t,n,r,i,a){Xs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&ha(t,n,!1),fc(e,t,a);r=t.stateNode,Gs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Qa(t,e.child,null,a),t.child=Qa(t,null,s,a)):z(e,t,s,a),t.memoizedState=r.state,i&&ha(t,n,!0),t.child}function ec(e){var t=e.stateNode;t.pendingContext?fa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&fa(e,t.context,!1),Oo(e,t.containerInfo)}function tc(e,t,n,r,i){return Ga(),Ka(i),t.flags|=256,z(e,t,n,r),t.child}var nc={dehydrated:null,treeContext:null,retryLane:0};function rc(e){return{baseLanes:e,cachePool:null,transitions:null}}function ic(e,t,n){var r=t.pendingProps,i=N.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),O(N,i&1),e===null)return Va(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Ql(o,r,0,null),e=Zl(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=rc(n),t.memoizedState=nc,e):ac(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return sc(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Yl(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=Zl(a,o,n,null),a.flags|=2):a=Yl(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?rc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=nc,r}return a=e.child,e=a.sibling,r=Yl(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ac(e,t){return t=Ql({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function oc(e,t,n,r){return r!==null&&Ka(r),Qa(t,e.child,null,n),e=ac(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sc(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Ls(Error(r(422))),oc(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=Ql({mode:`visible`,children:i.children},a,0,null),o=Zl(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Qa(t,e.child,null,s),t.child.memoizedState=rc(s),t.memoizedState=nc,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return oc(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Ls(o,i,void 0),oc(e,t,s,i)}if(c=(s&e.childLanes)!==0,R||c){if(i=G,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,po(e,a),gl(i,e,a,-1))}return kl(),i=Ls(Error(r(421))),oc(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Vl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Ia=Ki(a.nextSibling),Fa=t,M=!0,La=null,e!==null&&(Ea[Da++]=ka,Ea[Da++]=Aa,Ea[Da++]=Oa,ka=e.id,Aa=e.overflow,Oa=t),t=ac(t,i.children),t.flags|=4096,t)}function cc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),oo(e.return,t,n)}function lc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function uc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(z(e,t,r.children,n),r=N.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cc(e,n,t);else if(e.tag===19)cc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(O(N,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Mo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),lc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Mo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}lc(t,!0,n,null,a);break;case`together`:lc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function dc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function fc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qc|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Yl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pc(e,t,n){switch(t.tag){case 3:ec(t),Ga();break;case 5:Ao(t);break;case 1:j(t.type)&&ma(t);break;case 4:Oo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;O(eo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(O(N,N.current&1),e=fc(e,t,n),e===null?null:e.sibling):ic(e,t,n):(O(N,N.current&1),t.flags|=128,null);O(N,N.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return uc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),O(N,N.current),r)break;return null;case 22:case 23:return t.lanes=0,Ys(e,t,n)}return fc(e,t,n)}var mc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},hc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Do(wo.current);var o=null;switch(n){case`input`:i=ke(e,i),r=ke(e,r),o=[];break;case`select`:i=C({},i,{value:void 0}),r=C({},r,{value:void 0}),o=[];break;case`textarea`:i=Le(e,i),r=Le(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Ii)}Ze(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&E(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},gc=function(e,t,n,r){n!==r&&(t.flags|=4)};function _c(e,t){if(!M)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function B(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vc(e,t,n){var i=t.pendingProps;switch(Pa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return B(t),null;case 1:return j(t.type)&&da(),B(t),null;case 3:return i=t.stateNode,ko(),D(A),D(k),Po(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ua(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,La!==null&&(yl(La),La=null))),B(t),null;case 5:jo(t);var o=Do(Eo.current);if(n=t.type,e!==null&&t.stateNode!=null)hc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return B(t),null}if(e=Do(wo.current),Ua(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Yi]=t,i[Xi]=s,e=(t.mode&1)!=0,n){case`dialog`:E(`cancel`,i),E(`close`,i);break;case`iframe`:case`object`:case`embed`:E(`load`,i);break;case`video`:case`audio`:for(o=0;o<yi.length;o++)E(yi[o],i);break;case`source`:E(`error`,i);break;case`img`:case`image`:case`link`:E(`error`,i),E(`load`,i);break;case`details`:E(`toggle`,i);break;case`input`:Ae(i,s),E(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},E(`invalid`,i);break;case`textarea`:Re(i,s),E(`invalid`,i)}for(var c in Ze(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&Fi(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&Fi(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&E(`scroll`,i)}switch(n){case`input`:Ee(i),Ne(i,s,!0);break;case`textarea`:Ee(i),Be(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Ii)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Ve(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Yi]=t,e[Xi]=i,mc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Qe(n,i),n){case`dialog`:E(`cancel`,e),E(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:E(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<yi.length;o++)E(yi[o],e);o=i;break;case`source`:E(`error`,e),o=i;break;case`img`:case`image`:case`link`:E(`error`,e),E(`load`,e),o=i;break;case`details`:E(`toggle`,e),o=i;break;case`input`:Ae(e,i),o=ke(e,i),E(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=C({},i,{value:void 0}),E(`invalid`,e);break;case`textarea`:Re(e,i),o=Le(e,i),E(`invalid`,e);break;default:o=i}for(s in Ze(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Ye(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&We(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Ge(e,u):typeof u==`number`&&Ge(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&E(`scroll`,e):u!=null&&te(e,s,u,c))}switch(n){case`input`:Ee(e),Ne(e,i,!1);break;case`textarea`:Ee(e),Be(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+Ce(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Ie(e,!!i.multiple,i.defaultValue,!0):Ie(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Ii)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return B(t),null;case 6:if(e&&t.stateNode!=null)gc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=Do(Eo.current),Do(wo.current),Ua(t)){if(i=t.stateNode,n=t.memoizedProps,i[Yi]=t,(s=i.nodeValue!==n)&&(e=Fa,e!==null))switch(e.tag){case 3:Fi(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Fi(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Yi]=t,t.stateNode=i}return B(t),null;case 13:if(D(N),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(M&&Ia!==null&&t.mode&1&&!(t.flags&128))Wa(),Ga(),t.flags|=98560,s=!1;else if(s=Ua(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Yi]=t}else Ga(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;B(t),s=!1}else La!==null&&(yl(La),La=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||N.current&1?Y===0&&(Y=3):kl())),t.updateQueue!==null&&(t.flags|=4),B(t),null);case 4:return ko(),e===null&&Ti(t.stateNode.containerInfo),B(t),null;case 10:return ao(t.type._context),B(t),null;case 17:return j(t.type)&&da(),B(t),null;case 19:if(D(N),s=t.memoizedState,s===null)return B(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)_c(s,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=Mo(e),c!==null){for(t.flags|=128,_c(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return O(N,N.current&1|2),t.child}e=e.sibling}s.tail!==null&&w()>rl&&(t.flags|=128,i=!0,_c(s,!1),t.lanes=4194304)}else{if(!i)if(e=Mo(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_c(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!M)return B(t),null}else 2*w()-s.renderingStartTime>rl&&n!==1073741824&&(t.flags|=128,i=!0,_c(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(B(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=w(),t.sibling=null,n=N.current,O(N,i?n&1|2:n&1),t);case 22:case 23:return Tl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?J&1073741824&&(B(t),t.subtreeFlags&6&&(t.flags|=8192)):B(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function yc(e,t){switch(Pa(t),t.tag){case 1:return j(t.type)&&da(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ko(),D(A),D(k),Po(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jo(t),null;case 13:if(D(N),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(N),null;case 4:return ko(),null;case 10:return ao(t.type._context),null;case 22:case 23:return Tl(),null;case 24:return null;default:return null}}var bc=!1,V=!1,xc=typeof WeakSet==`function`?WeakSet:Set,H=null;function Sc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){$(e,t,n)}else n.current=null}function Cc(e,t,n){try{n()}catch(n){$(e,t,n)}}var wc=!1;function Tc(e,t){if(Li=kn,e=Xr(),Zr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ri={focusedElem:e,selectionRange:n},kn=!1,H=t;H!==null;)if(t=H,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ks(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){$(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return h=wc,wc=!1,h}function Ec(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Cc(t,n,a)}i=i.next}while(i!==r)}}function Dc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Oc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function kc(e){var t=e.alternate;t!==null&&(e.alternate=null,kc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yi],delete t[Xi],delete t[Qi],delete t[$i],delete t[ea])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ac(e){return e.tag===5||e.tag===3||e.tag===4}function jc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Ac(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ii));else if(r!==4&&(e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}function Nc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Nc(e,t,n),e=e.sibling;e!==null;)Nc(e,t,n),e=e.sibling}var U=null,Pc=!1;function Fc(e,t,n){for(n=n.child;n!==null;)Ic(e,t,n),n=n.sibling}function Ic(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount==`function`)try{zt.onCommitFiberUnmount(Rt,n)}catch{}switch(n.tag){case 5:V||Sc(n,t);case 6:var r=U,i=Pc;U=null,Fc(e,t,n),U=r,Pc=i,U!==null&&(Pc?(e=U,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):U.removeChild(n.stateNode));break;case 18:U!==null&&(Pc?(e=U,n=n.stateNode,e.nodeType===8?Gi(e.parentNode,n):e.nodeType===1&&Gi(e,n),Dn(e)):Gi(U,n.stateNode));break;case 4:r=U,i=Pc,U=n.stateNode.containerInfo,Pc=!0,Fc(e,t,n),U=r,Pc=i;break;case 0:case 11:case 14:case 15:if(!V&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Cc(n,t,o),i=i.next}while(i!==r)}Fc(e,t,n);break;case 1:if(!V&&(Sc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){$(n,t,e)}Fc(e,t,n);break;case 21:Fc(e,t,n);break;case 22:n.mode&1?(V=(r=V)||n.memoizedState!==null,Fc(e,t,n),V=r):Fc(e,t,n);break;default:Fc(e,t,n)}}function Lc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xc),t.forEach(function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Rc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:U=c.stateNode,Pc=!1;break a;case 3:U=c.stateNode.containerInfo,Pc=!0;break a;case 4:U=c.stateNode.containerInfo,Pc=!0;break a}c=c.return}if(U===null)throw Error(r(160));Ic(o,s,a),U=null,Pc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){$(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)zc(t,e),t=t.sibling}function zc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rc(t,e),Bc(e),i&4){try{Ec(3,e,e.return),Dc(3,e)}catch(t){$(e,e.return,t)}try{Ec(5,e,e.return)}catch(t){$(e,e.return,t)}}break;case 1:Rc(t,e),Bc(e),i&512&&n!==null&&Sc(n,n.return);break;case 5:if(Rc(t,e),Bc(e),i&512&&n!==null&&Sc(n,n.return),e.flags&32){var a=e.stateNode;try{Ge(a,``)}catch(t){$(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&je(a,o),Qe(c,s);var u=Qe(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Ye(a,f):d===`dangerouslySetInnerHTML`?We(a,f):d===`children`?Ge(a,f):te(a,d,f,u)}switch(c){case`input`:Me(a,o);break;case`textarea`:ze(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Ie(a,!!o.multiple,o.multiple?[]:``,!1):Ie(a,!!o.multiple,o.defaultValue,!0)):Ie(a,!!o.multiple,m,!1)}a[Xi]=o}catch(t){$(e,e.return,t)}}break;case 6:if(Rc(t,e),Bc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){$(e,e.return,t)}}break;case 3:if(Rc(t,e),Bc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Dn(t.containerInfo)}catch(t){$(e,e.return,t)}break;case 4:Rc(t,e),Bc(e);break;case 13:Rc(t,e),Bc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(nl=w())),i&4&&Lc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(V=(u=V)||d,Rc(t,e),V=u):Rc(t,e),Bc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(H=e,d=e.child;d!==null;){for(f=H=d;H!==null;){switch(p=H,m=p.child,p.tag){case 0:case 11:case 14:case 15:Ec(4,p,p.return);break;case 1:Sc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){$(i,n,e)}}break;case 5:Sc(p,p.return);break;case 22:if(p.memoizedState!==null){Wc(f);continue}}m===null?Wc(f):(m.return=p,H=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Je(`display`,s))}catch(t){$(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){$(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Rc(t,e),Bc(e),i&4&&Lc(e);break;case 21:break;default:Rc(t,e),Bc(e)}}function Bc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Ac(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Ge(a,``),i.flags&=-33),Nc(e,jc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Mc(e,jc(e),o);break;default:throw Error(r(161))}}catch(t){$(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vc(e,t,n){H=e,Hc(e,t,n)}function Hc(e,t,n){for(var r=(e.mode&1)!=0;H!==null;){var i=H,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||bc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||V;s=bc;var l=V;if(bc=o,(V=c)&&!l)for(H=i;H!==null;)o=H,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Gc(i):(c.return=o,H=c);for(;a!==null;)H=a,Hc(a,t,n),a=a.sibling;H=i,bc=s,V=l}Uc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,H=a):Uc(e,t,n)}}function Uc(e){for(;H!==null;){var t=H;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:V||Dc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!V)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ks(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&So(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}So(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Dn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}V||t.flags&512&&Oc(t)}catch(e){$(t,t.return,e)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function Wc(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function Gc(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Dc(4,t)}catch(e){$(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){$(t,i,e)}}var a=t.return;try{Oc(t)}catch(e){$(t,a,e)}break;case 5:var o=t.return;try{Oc(t)}catch(e){$(t,o,e)}}}catch(e){$(t,t.return,e)}if(t===e){H=null;break}var s=t.sibling;if(s!==null){s.return=t.return,H=s;break}H=t.return}}var Kc=Math.ceil,qc=x.ReactCurrentDispatcher,Jc=x.ReactCurrentOwner,Yc=x.ReactCurrentBatchConfig,W=0,G=null,K=null,q=0,J=0,Xc=sa(0),Y=0,Zc=null,Qc=0,$c=0,el=0,tl=null,X=null,nl=0,rl=1/0,il=null,al=!1,ol=null,sl=null,cl=!1,ll=null,ul=0,dl=0,fl=null,pl=-1,ml=0;function Z(){return W&6?w():pl===-1?pl=w():pl}function hl(e){return e.mode&1?W&2&&q!==0?q&-q:qa.transition===null?(e=T,e===0?(e=window.event,e=e===void 0?16:Fn(e.type),e):e):(ml===0&&(ml=Qt()),ml):1}function gl(e,t,n,i){if(50<dl)throw dl=0,fl=null,Error(r(185));en(e,n,i),(!(W&2)||e!==G)&&(e===G&&(!(W&2)&&($c|=n),Y===4&&xl(e,q)),Q(e,i),n===1&&W===0&&!(t.mode&1)&&(rl=w()+500,_a&&xa()))}function Q(e,t){var n=e.callbackNode;Xt(e,t);var r=Jt(e,e===G?q:0);if(r===0)n!==null&&kt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&kt(n),t===1)e.tag===0?ba(Sl.bind(null,e)):ya(Sl.bind(null,e)),Ui(function(){!(W&6)&&xa()}),n=null;else{switch(rn(r)){case 1:n=Nt;break;case 4:n=Pt;break;case 16:n=Ft;break;case 536870912:n=Lt;break;default:n=Ft}n=Wl(n,_l.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _l(e,t){if(pl=-1,ml=0,W&6)throw Error(r(327));var n=e.callbackNode;if(Ll()&&e.callbackNode!==n)return null;var i=Jt(e,e===G?q:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Al(e,i);else{t=i;var a=W;W|=2;var o=Ol();(G!==e||q!==t)&&(il=null,rl=w()+500,El(e,t));do try{Ml();break}catch(t){Dl(e,t)}while(1);io(),qc.current=o,W=a,K===null?(G=null,q=0,t=Y):t=0}if(t!==0){if(t===2&&(a=Zt(e),a!==0&&(i=a,t=vl(e,a))),t===1)throw n=Zc,El(e,0),xl(e,i),Q(e,w()),n;if(t===6)xl(e,i);else{if(a=e.current.alternate,!(i&30)&&!bl(a)&&(t=Al(e,i),t===2&&(o=Zt(e),o!==0&&(i=o,t=vl(e,o))),t===1))throw n=Zc,El(e,0),xl(e,i),Q(e,w()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Fl(e,X,il);break;case 3:if(xl(e,i),(i&130023424)===i&&(t=nl+500-w(),10<t)){if(Jt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Z(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Bi(Fl.bind(null,e,X,il),t);break}Fl(e,X,il);break;case 4:if(xl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Vt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=w()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Kc(i/1960))-i,10<i){e.timeoutHandle=Bi(Fl.bind(null,e,X,il),i);break}Fl(e,X,il);break;case 5:Fl(e,X,il);break;default:throw Error(r(329))}}}return Q(e,w()),e.callbackNode===n?_l.bind(null,e):null}function vl(e,t){var n=tl;return e.current.memoizedState.isDehydrated&&(El(e,t).flags|=256),e=Al(e,t),e!==2&&(t=X,X=n,t!==null&&yl(t)),e}function yl(e){X===null?X=e:X.push.apply(X,e)}function bl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Gr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xl(e,t){for(t&=~el,t&=~$c,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),r=1<<n;e[n]=-1,t&=~r}}function Sl(e){if(W&6)throw Error(r(327));Ll();var t=Jt(e,0);if(!(t&1))return Q(e,w()),null;var n=Al(e,t);if(e.tag!==0&&n===2){var i=Zt(e);i!==0&&(t=i,n=vl(e,i))}if(n===1)throw n=Zc,El(e,0),xl(e,t),Q(e,w()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fl(e,X,il),Q(e,w()),null}function Cl(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(rl=w()+500,_a&&xa())}}function wl(e){ll!==null&&ll.tag===0&&!(W&6)&&Ll();var t=W;W|=1;var n=Yc.transition,r=T;try{if(Yc.transition=null,T=1,e)return e()}finally{T=r,Yc.transition=n,W=t,!(W&6)&&xa()}}function Tl(){J=Xc.current,D(Xc)}function El(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Vi(n)),K!==null)for(n=K.return;n!==null;){var r=n;switch(Pa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&da();break;case 3:ko(),D(A),D(k),Po();break;case 5:jo(r);break;case 4:ko();break;case 13:D(N);break;case 19:D(N);break;case 10:ao(r.type._context);break;case 22:case 23:Tl()}n=n.return}if(G=e,K=e=Yl(e.current,null),q=J=t,Y=0,Zc=null,el=$c=Qc=0,X=tl=null,lo!==null){for(t=0;t<lo.length;t++)if(n=lo[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}lo=null}return e}function Dl(e,t){do{var n=K;try{if(io(),Fo.current=Ts,Ro){for(var i=P.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Ro=!1}if(Lo=0,I=F=P=null,zo=!1,Bo=0,Jc.current=null,n===null||n.return===null){Y=1,Zc=t,K=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=q,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Us(s);if(m!==null){m.flags&=-257,Ws(m,s,c,o,t),m.mode&1&&Hs(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Hs(o,u,t),kl();break a}l=Error(r(426))}}else if(M&&c.mode&1){var _=Us(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Ws(_,s,c,o,t),Ka(Is(l,c));break a}}o=l=Is(l,c),Y!==4&&(Y=2),tl===null?tl=[o]:tl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Bs(o,l,t);bo(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(sl===null||!sl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var ee=Vs(o,c,t);bo(o,ee);break a}}o=o.return}while(o!==null)}Pl(n)}catch(e){t=e,K===n&&n!==null&&(K=n=n.return);continue}break}while(1)}function Ol(){var e=qc.current;return qc.current=Ts,e===null?Ts:e}function kl(){(Y===0||Y===3||Y===2)&&(Y=4),G===null||!(Qc&268435455)&&!($c&268435455)||xl(G,q)}function Al(e,t){var n=W;W|=2;var i=Ol();(G!==e||q!==t)&&(il=null,El(e,t));do try{jl();break}catch(t){Dl(e,t)}while(1);if(io(),W=n,qc.current=i,K!==null)throw Error(r(261));return G=null,q=0,Y}function jl(){for(;K!==null;)Nl(K)}function Ml(){for(;K!==null&&!At();)Nl(K)}function Nl(e){var t=Ul(e.alternate,e,J);e.memoizedProps=e.pendingProps,t===null?Pl(e):K=t,Jc.current=null}function Pl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=yc(n,t),n!==null){n.flags&=32767,K=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Y=6,K=null;return}}else if(n=vc(n,t,J),n!==null){K=n;return}if(t=t.sibling,t!==null){K=t;return}K=t=e}while(t!==null);Y===0&&(Y=5)}function Fl(e,t,n){var r=T,i=Yc.transition;try{Yc.transition=null,T=1,Il(e,t,n,r)}finally{Yc.transition=i,T=r}return null}function Il(e,t,n,i){do Ll();while(ll!==null);if(W&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(tn(e,o),e===G&&(K=G=null,q=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||cl||(cl=!0,Wl(Ft,function(){return Ll(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Yc.transition,Yc.transition=null;var s=T;T=1;var c=W;W|=4,Jc.current=null,Tc(e,n),zc(n,e),Qr(Ri),kn=!!Li,Ri=Li=null,e.current=n,Vc(n,e,a),jt(),W=c,T=s,Yc.transition=o}else e.current=n;if(cl&&(cl=!1,ll=e,ul=a),o=e.pendingLanes,o===0&&(sl=null),Bt(n.stateNode,i),Q(e,w()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(al)throw al=!1,e=ol,ol=null,e;return ul&1&&e.tag!==0&&Ll(),o=e.pendingLanes,o&1?e===fl?dl++:(dl=0,fl=e):dl=0,xa(),null}function Ll(){if(ll!==null){var e=rn(ul),t=Yc.transition,n=T;try{if(Yc.transition=null,T=16>e?16:e,ll===null)var i=!1;else{if(e=ll,ll=null,ul=0,W&6)throw Error(r(331));var a=W;for(W|=4,H=e.current;H!==null;){var o=H,s=o.child;if(H.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(H=u;H!==null;){var d=H;switch(d.tag){case 0:case 11:case 15:Ec(8,d,o)}var f=d.child;if(f!==null)f.return=d,H=f;else for(;H!==null;){d=H;var p=d.sibling,m=d.return;if(kc(d),d===u){H=null;break}if(p!==null){p.return=m,H=p;break}H=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}H=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,H=s;else b:for(;H!==null;){if(o=H,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ec(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,H=v;break b}H=o.return}}var y=e.current;for(H=y;H!==null;){s=H;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,H=b;else b:for(s=y;H!==null;){if(c=H,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Dc(9,c)}}catch(e){$(c,c.return,e)}if(c===s){H=null;break b}var ee=c.sibling;if(ee!==null){ee.return=c.return,H=ee;break b}H=c.return}}if(W=a,xa(),zt&&typeof zt.onPostCommitFiberRoot==`function`)try{zt.onPostCommitFiberRoot(Rt,e)}catch{}i=!0}return i}finally{T=n,Yc.transition=t}}return!1}function Rl(e,t,n){t=Is(n,t),t=Bs(e,t,1),e=vo(e,t,1),t=Z(),e!==null&&(en(e,1,t),Q(e,t))}function $(e,t,n){if(e.tag===3)Rl(e,e,n);else for(;t!==null;){if(t.tag===3){Rl(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(sl===null||!sl.has(r))){e=Is(n,e),e=Vs(t,e,1),t=vo(t,e,1),e=Z(),t!==null&&(en(t,1,e),Q(t,e));break}}t=t.return}}function zl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Z(),e.pingedLanes|=e.suspendedLanes&n,G===e&&(q&n)===n&&(Y===4||Y===3&&(q&130023424)===q&&500>w()-nl?El(e,0):el|=n),Q(e,t)}function Bl(e,t){t===0&&(e.mode&1?(t=Kt,Kt<<=1,!(Kt&130023424)&&(Kt=4194304)):t=1);var n=Z();e=po(e,t),e!==null&&(en(e,t,n),Q(e,n))}function Vl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bl(e,n)}function Hl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Bl(e,n)}var Ul=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||A.current)R=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return R=!1,pc(e,t,n);R=!!(e.flags&131072)}else R=!1,M&&t.flags&1048576&&Ma(t,Ta,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;dc(e,t),e=t.pendingProps;var a=ua(t,k.current);so(t,n),a=Uo(null,t,i,e,a,n);var o=Wo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,j(i)?(o=!0,ma(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ho(t),a.updater=js,t.stateNode=a,a._reactInternals=t,Fs(t,i,e,n),t=$s(null,t,i,!0,o,n)):(t.tag=0,M&&o&&Na(t),z(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(dc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Jl(i),e=ks(i,e),a){case 0:t=Zs(null,t,i,e,n);break a;case 1:t=Qs(null,t,i,e,n);break a;case 11:t=Ks(null,t,i,e,n);break a;case 14:t=qs(null,t,i,ks(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ks(i,a),Zs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ks(i,a),Qs(e,t,i,a,n);case 3:a:{if(ec(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,go(e,t),xo(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Is(Error(r(423)),t),t=tc(e,t,i,n,a);break a}else if(i!==a){a=Is(Error(r(424)),t),t=tc(e,t,i,n,a);break a}else for(Ia=Ki(t.stateNode.containerInfo.firstChild),Fa=t,M=!0,La=null,n=$a(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ga(),i===a){t=fc(e,t,n);break a}z(e,t,i,n)}t=t.child}return t;case 5:return Ao(t),e===null&&Va(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,zi(i,a)?s=null:o!==null&&zi(i,o)&&(t.flags|=32),Xs(e,t),z(e,t,s,n),t.child;case 6:return e===null&&Va(t),null;case 13:return ic(e,t,n);case 4:return Oo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Qa(t,null,i,n):z(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ks(i,a),Ks(e,t,i,a,n);case 7:return z(e,t,t.pendingProps,n),t.child;case 8:return z(e,t,t.pendingProps.children,n),t.child;case 12:return z(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,O(eo,i._currentValue),i._currentValue=s,o!==null)if(Gr(o.value,s)){if(o.children===a.children&&!A.current){t=fc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=_o(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),oo(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),oo(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}z(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,so(t,n),a=co(a),i=i(a),t.flags|=1,z(e,t,i,n),t.child;case 14:return i=t.type,a=ks(i,t.pendingProps),a=ks(i.type,a),qs(e,t,i,a,n);case 15:return Js(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ks(i,a),dc(e,t),t.tag=1,j(i)?(e=!0,ma(t)):e=!1,so(t,n),Ns(t,i,a),Fs(t,i,a,n),$s(null,t,i,!0,e,n);case 19:return uc(e,t,n);case 22:return Ys(e,t,n)}throw Error(r(156,t.tag))};function Wl(e,t){return Ot(e,t)}function Gl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kl(e,t,n,r){return new Gl(e,t,n,r)}function ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jl(e){if(typeof e==`function`)return+!!ql(e);if(e!=null){if(e=e.$$typeof,e===le)return 11;if(e===S)return 14}return 2}function Yl(e,t){var n=e.alternate;return n===null?(n=Kl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)ql(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case ie:return Zl(n.children,a,o,t);case ae:s=8,a|=8;break;case oe:return e=Kl(12,n,t,a|2),e.elementType=oe,e.lanes=o,e;case ue:return e=Kl(13,n,t,a),e.elementType=ue,e.lanes=o,e;case de:return e=Kl(19,n,t,a),e.elementType=de,e.lanes=o,e;case pe:return Ql(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case se:s=10;break a;case ce:s=9;break a;case le:s=11;break a;case S:s=14;break a;case fe:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=Kl(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function Zl(e,t,n,r){return e=Kl(7,e,r,t),e.lanes=n,e}function Ql(e,t,n,r){return e=Kl(22,e,r,t),e.elementType=pe,e.lanes=n,e.stateNode={isHidden:!1},e}function $l(e,t,n){return e=Kl(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Kl(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$t(0),this.expirationTimes=$t(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$t(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nu(e,t,n,r,i,a,o,s,c){return e=new tu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=Kl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ho(a),e}function ru(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:re,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function iu(e){if(!e)return ca;e=e._reactInternals;a:{if(St(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(j(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(j(n))return pa(e,n,t)}return t}function au(e,t,n,r,i,a,o,s,c){return e=nu(n,r,!0,e,i,a,o,s,c),e.context=iu(null),n=e.current,r=Z(),i=hl(n),a=_o(r,i),a.callback=t??null,vo(n,a,i),e.current.lanes=i,en(e,i,r),Q(e,r),e}function ou(e,t,n,r){var i=t.current,a=Z(),o=hl(i);return n=iu(n),t.context===null?t.context=n:t.pendingContext=n,t=_o(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=vo(i,t,o),e!==null&&(gl(e,i,o,a),yo(e,i,o)),o}function su(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lu(e,t){cu(e,t),(e=e.alternate)&&cu(e,t)}function uu(){return null}var du=typeof reportError==`function`?reportError:function(e){console.error(e)};function fu(e){this._internalRoot=e}pu.prototype.render=fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));ou(e,t,null,null)},pu.prototype.unmount=fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wl(function(){ou(null,e,null,null)}),t[Zi]=null}};function pu(e){this._internalRoot=e}pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=cn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_n.length&&t!==0&&t<_n[n].priority;n++);_n.splice(n,0,e),n===0&&Sn(e)}};function mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function gu(){}function _u(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=su(o);a.call(e)}}var o=au(t,r,e,0,null,!1,!1,``,gu);return e._reactRootContainer=o,e[Zi]=o.current,Ti(e.nodeType===8?e.parentNode:e),wl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=su(c);s.call(e)}}var c=nu(e,0,!1,null,null,!1,!1,``,gu);return e._reactRootContainer=c,e[Zi]=c.current,Ti(e.nodeType===8?e.parentNode:e),wl(function(){ou(t,c,n,r)}),c}function vu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=su(o);s.call(e)}}ou(t,o,e,i)}else o=_u(n,t,e,i,r);return su(o)}an=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=qt(t.pendingLanes);n!==0&&(nn(t,n|1),Q(t,w()),!(W&6)&&(rl=w()+500,xa()))}break;case 13:wl(function(){var t=po(e,1);t!==null&&gl(t,e,1,Z())}),lu(e,1)}},on=function(e){if(e.tag===13){var t=po(e,134217728);t!==null&&gl(t,e,134217728,Z()),lu(e,134217728)}},sn=function(e){if(e.tag===13){var t=hl(e),n=po(e,t);n!==null&&gl(n,e,t,Z()),lu(e,t)}},cn=function(){return T},ln=function(e,t){var n=T;try{return T=e,t()}finally{T=n}},tt=function(e,t,n){switch(t){case`input`:if(Me(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=ia(i);if(!a)throw Error(r(90));De(i),Me(i,a)}}}break;case`textarea`:ze(e,n);break;case`select`:t=n.value,t!=null&&Ie(e,!!n.multiple,t,!1)}},st=Cl,ct=wl;var yu={usingClientEntryPoint:!1,Events:[na,ra,ia,at,ot,Cl]},bu={findFiberByHostInstance:ta,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},xu={bundleType:bu.bundleType,version:bu.version,rendererPackageName:bu.rendererPackageName,rendererConfig:bu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Et(e),e===null?null:e.stateNode},findFiberByHostInstance:bu.findFiberByHostInstance||uu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{Rt=Su.inject(xu),zt=Su}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mu(t))throw Error(r(200));return ru(e,t,null,n)},e.createRoot=function(e,t){if(!mu(e))throw Error(r(299));var n=!1,i=``,a=du;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=nu(e,1,!1,null,null,n,!1,i,a),e[Zi]=t.current,Ti(e.nodeType===8?e.parentNode:e),new fu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=Et(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return wl(e)},e.hydrate=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!mu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=du;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=au(t,null,e,1,n??null,a,!1,o,s),e[Zi]=t.current,Ti(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new pu(t)},e.render=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!hu(e))throw Error(r(40));return e._reactRootContainer?(wl(function(){vu(null,null,e,!1,function(){e._reactRootContainer=null,e[Zi]=null})}),!0):!1},e.unstable_batchedUpdates=Cl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!hu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return vu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=m();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),g=o((e=>{var t=u(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),_=o(((e,t)=>{t.exports=g()}));export{c as a,u as i,h as n,m as r,_ as t};
|
|
9
|
-
//# sourceMappingURL=jsx-runtime-
|
|
9
|
+
//# sourceMappingURL=jsx-runtime-DIw5wnYl.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-cZ9FlZZw.js";var t=e(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),n=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t as n,n as t};
|
|
2
|
+
//# sourceMappingURL=plus-BQ9u5EbL.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e,i as t,n,t as r}from"./jsx-runtime-DIw5wnYl.js";import{r as i,u as a}from"./ipc-channels-overlays-gIPUFnqc.js";import{l as o,s,v as c}from"./view-api-B-2zPBR5.js";import{n as l}from"./utils-sEB5OZEQ.js";import{t as u}from"./button-CB2MWjHY.js";import{t as d}from"./input-CAObw95L.js";import{n as f,t as p}from"./plus-BQ9u5EbL.js";import{a as m,f as h,i as g,n as _,o as v,t as y}from"./dialog-pHzEA8Vx.js";import{n as b}from"./constants-CkoGPQTS.js";import{c as x,f as S,n as C,p as w,r as T,t as E,u as D}from"./dist-DIFlRMKe.js";import{c as O,l as ee,n as te,s as ne,t as re}from"./select-nFP95TxM.js";import{a as ie,i as k,n as A,r as ae,t as oe}from"./tabs-CPKN3Mmq.js";import{t as j}from"./dist-B5HADirS.js";function M(e){return a(i.Apply,{command:e})}var N=e(t(),1),se=e(n(),1);function ce(e,[t,n]){return Math.min(n,Math.max(t,e))}var P=r();function le(e,t){return N.useReducer((e,n)=>t[e][n]??e,e)}var F=`ScrollArea`,[ue,de]=D(F),[fe,I]=ue(F),L=N.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r=`hover`,dir:i,scrollHideDelay:a=600,...o}=e,[s,c]=N.useState(null),[l,u]=N.useState(null),[d,f]=N.useState(null),[p,m]=N.useState(null),[h,g]=N.useState(null),[_,v]=N.useState(0),[y,b]=N.useState(0),[x,C]=N.useState(!1),[w,E]=N.useState(!1),D=S(t,e=>c(e)),O=ie(i);return(0,P.jsx)(fe,{scope:n,type:r,dir:O,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:C,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:w,onScrollbarYEnabledChange:E,onCornerWidthChange:v,onCornerHeightChange:b,children:(0,P.jsx)(T.div,{dir:O,...o,ref:D,style:{position:`relative`,"--radix-scroll-area-corner-width":_+`px`,"--radix-scroll-area-corner-height":y+`px`,...e.style}})})});L.displayName=F;var R=`ScrollAreaViewport`,z=N.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=I(R,n),s=S(t,N.useRef(null),o.onViewportChange);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`},nonce:i}),(0,P.jsx)(T.div,{"data-radix-scroll-area-viewport":``,...a,ref:s,style:{overflowX:o.scrollbarXEnabled?`scroll`:`hidden`,overflowY:o.scrollbarYEnabled?`scroll`:`hidden`,...e.style},children:(0,P.jsx)(`div`,{ref:o.onContentChange,style:{minWidth:`100%`,display:`table`},children:r})})]})});z.displayName=R;var B=`ScrollAreaScrollbar`,V=N.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=I(B,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation===`horizontal`;return N.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type===`hover`?(0,P.jsx)(pe,{...r,ref:t,forceMount:n}):i.type===`scroll`?(0,P.jsx)(me,{...r,ref:t,forceMount:n}):i.type===`auto`?(0,P.jsx)(H,{...r,ref:t,forceMount:n}):i.type===`always`?(0,P.jsx)(U,{...r,ref:t}):null});V.displayName=B;var pe=N.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=I(B,e.__scopeScrollArea),[a,o]=N.useState(!1);return N.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,r),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,r)}}},[i.scrollArea,i.scrollHideDelay]),(0,P.jsx)(E,{present:n||a,children:(0,P.jsx)(H,{"data-state":a?`visible`:`hidden`,...r,ref:t})})}),me=N.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=I(B,e.__scopeScrollArea),a=e.orientation===`horizontal`,o=J(()=>c(`SCROLL_END`),100),[s,c]=le(`hidden`,{hidden:{SCROLL:`scrolling`},scrolling:{SCROLL_END:`idle`,POINTER_ENTER:`interacting`},interacting:{SCROLL:`interacting`,POINTER_LEAVE:`idle`},idle:{HIDE:`hidden`,SCROLL:`scrolling`,POINTER_ENTER:`interacting`}});return N.useEffect(()=>{if(s===`idle`){let e=window.setTimeout(()=>c(`HIDE`),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,i.scrollHideDelay,c]),N.useEffect(()=>{let e=i.viewport,t=a?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c(`SCROLL`),o()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[i.viewport,a,c,o]),(0,P.jsx)(E,{present:n||s!==`hidden`,children:(0,P.jsx)(U,{"data-state":s===`hidden`?`hidden`:`visible`,...r,ref:t,onPointerEnter:w(e.onPointerEnter,()=>c(`POINTER_ENTER`)),onPointerLeave:w(e.onPointerLeave,()=>c(`POINTER_LEAVE`))})})}),H=N.forwardRef((e,t)=>{let n=I(B,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=N.useState(!1),s=e.orientation===`horizontal`,c=J(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?e:t)}},10);return Y(n.viewport,c),Y(n.content,c),(0,P.jsx)(E,{present:r||a,children:(0,P.jsx)(U,{"data-state":a?`visible`:`hidden`,...i,ref:t})})}),U=N.forwardRef((e,t)=>{let{orientation:n=`vertical`,...r}=e,i=I(B,e.__scopeScrollArea),a=N.useRef(null),o=N.useRef(0),[s,c]=N.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=we(s.viewport,s.content),u={...r,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return Te(e,o.current,s,t)}return n===`horizontal`?(0,P.jsx)(he,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=Ee(e,s,i.dir);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}}):n===`vertical`?(0,P.jsx)(ge,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=Ee(e,s);a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}),he=N.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=I(B,e.__scopeScrollArea),[o,s]=N.useState(),c=N.useRef(null),l=S(t,c,a.onScrollbarXChange);return N.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,P.jsx)(ye,{"data-orientation":`horizontal`,...i,ref:l,sizes:n,style:{bottom:0,left:a.dir===`rtl`?`var(--radix-scroll-area-corner-width)`:0,right:a.dir===`ltr`?`var(--radix-scroll-area-corner-width)`:0,"--radix-scroll-area-thumb-width":q(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),Oe(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:K(o.paddingLeft),paddingEnd:K(o.paddingRight)}})}})}),ge=N.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=I(B,e.__scopeScrollArea),[o,s]=N.useState(),c=N.useRef(null),l=S(t,c,a.onScrollbarYChange);return N.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,P.jsx)(ye,{"data-orientation":`vertical`,...i,ref:l,sizes:n,style:{top:0,right:a.dir===`ltr`?0:void 0,left:a.dir===`rtl`?0:void 0,bottom:`var(--radix-scroll-area-corner-height)`,"--radix-scroll-area-thumb-height":q(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),Oe(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:K(o.paddingTop),paddingEnd:K(o.paddingBottom)}})}})}),[_e,ve]=ue(B),ye=N.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:u,onResize:d,...f}=e,p=I(B,n),[m,h]=N.useState(null),g=S(t,e=>h(e)),_=N.useRef(null),v=N.useRef(``),y=p.viewport,b=r.content-r.viewport,x=C(u),E=C(c),D=J(d,10);function O(e){_.current&&l({x:e.clientX-_.current.left,y:e.clientY-_.current.top})}return N.useEffect(()=>{let e=e=>{let t=e.target;m?.contains(t)&&x(e,b)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[y,m,b,x]),N.useEffect(E,[r,E]),Y(m,D),Y(p.content,D),(0,P.jsx)(_e,{scope:n,scrollbar:m,hasThumb:i,onThumbChange:C(a),onThumbPointerUp:C(o),onThumbPositionChange:E,onThumbPointerDown:C(s),children:(0,P.jsx)(T.div,{...f,ref:g,style:{position:`absolute`,...f.style},onPointerDown:w(e.onPointerDown,e=>{e.button===0&&(e.target.setPointerCapture(e.pointerId),_.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,p.viewport&&(p.viewport.style.scrollBehavior=`auto`),O(e))}),onPointerMove:w(e.onPointerMove,O),onPointerUp:w(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,p.viewport&&(p.viewport.style.scrollBehavior=``),_.current=null})})})}),W=`ScrollAreaThumb`,be=N.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=ve(W,e.__scopeScrollArea);return(0,P.jsx)(E,{present:n||i.hasThumb,children:(0,P.jsx)(xe,{ref:t,...r})})}),xe=N.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=I(W,n),o=ve(W,n),{onThumbPositionChange:s}=o,c=S(t,e=>o.onThumbChange(e)),l=N.useRef(void 0),u=J(()=>{l.current&&=(l.current(),void 0)},100);return N.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{u(),l.current||(l.current=ke(e,s),s())};return s(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[a.viewport,u,s]),(0,P.jsx)(T.div,{"data-state":o.hasThumb?`visible`:`hidden`,...i,ref:c,style:{width:`var(--radix-scroll-area-thumb-width)`,height:`var(--radix-scroll-area-thumb-height)`,...r},onPointerDownCapture:w(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:w(e.onPointerUp,o.onThumbPointerUp)})});be.displayName=W;var G=`ScrollAreaCorner`,Se=N.forwardRef((e,t)=>{let n=I(G,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!==`scroll`&&r?(0,P.jsx)(Ce,{...e,ref:t}):null});Se.displayName=G;var Ce=N.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=I(G,n),[a,o]=N.useState(0),[s,c]=N.useState(0),l=!!(a&&s);return Y(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),c(e)}),Y(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),o(e)}),l?(0,P.jsx)(T.div,{...r,ref:t,style:{width:a,height:s,position:`absolute`,right:i.dir===`ltr`?0:void 0,left:i.dir===`rtl`?0:void 0,bottom:0,...e.style}}):null});function K(e){return e?parseInt(e,10):0}function we(e,t){let n=e/t;return isNaN(n)?0:n}function q(e){let t=we(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Te(e,t,n,r=`ltr`){let i=q(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return De([c,l],d)(e)}function Ee(e,t,n=`ltr`){let r=q(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=ce(e,n===`ltr`?[0,o]:[o*-1,0]);return De([0,o],[0,s])(c)}function De(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Oe(e,t){return e>0&&e<t}var ke=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function J(e,t){let n=C(e),r=N.useRef(0);return N.useEffect(()=>()=>window.clearTimeout(r.current),[]),N.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Y(e,t){let n=C(t);x(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var Ae=L,je=z,Me=Se,Ne=N.forwardRef(({className:e,children:t,...n},r)=>(0,P.jsxs)(Ae,{ref:r,className:l(`relative overflow-hidden`,e),...n,children:[(0,P.jsx)(je,{className:`h-full w-full rounded-[inherit]`,children:t}),(0,P.jsx)(Pe,{}),(0,P.jsx)(Me,{})]}));Ne.displayName=Ae.displayName;var Pe=N.forwardRef(({className:e,orientation:t=`vertical`,...n},r)=>(0,P.jsx)(V,{ref:r,orientation:t,className:l(`flex touch-none select-none transition-colors`,t===`vertical`&&`h-full w-2.5 border-l border-l-transparent p-[1px]`,t===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent p-[1px]`,e),...n,children:(0,P.jsx)(be,{className:`relative flex-1 rounded-full bg-[var(--qd-border)]`})}));Pe.displayName=V.displayName;var Fe=`Separator`,Ie=`horizontal`,Le=[`horizontal`,`vertical`],X=N.forwardRef((e,t)=>{let{decorative:n,orientation:r=Ie,...i}=e,a=Re(r)?r:Ie,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,P.jsx)(j.div,{"data-orientation":a,...o,...i,ref:t})});X.displayName=Fe;function Re(e){return Le.includes(e)}var ze=X,Z=N.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,P.jsx)(ze,{ref:i,decorative:n,orientation:t,className:l(`shrink-0 bg-border`,t===`horizontal`?`h-[1px] w-full`:`h-full w-[1px]`,e),...r}));Z.displayName=ze.displayName;var Be=`max-h-[280px]`;function Ve(e){let{label:t,subtitle:n,selected:r,onSelect:i,onEdit:a}=e;return(0,P.jsxs)(`div`,{className:`group relative flex items-center rounded-[var(--qd-radius-md)] ${r?`bg-[var(--color-surface-active)]`:`hover:bg-[var(--qd-muted)]`}`,children:[r&&(0,P.jsx)(`span`,{"aria-hidden":`true`,className:`absolute left-0 top-1.5 bottom-1.5 w-[2px] rounded-full bg-[var(--qd-primary)]`}),(0,P.jsxs)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":r,"aria-label":t,"data-testid":`compile-mode-row`,"data-mode-label":t,className:`min-w-0 flex-1 appearance-none border-0 bg-transparent px-2.5 py-1.5 text-left outline-none focus-visible:ring-2 focus-visible:ring-[var(--qd-primary)] rounded-[var(--qd-radius-md)]`,onClick:i,children:[(0,P.jsx)(`span`,{className:`block truncate text-sm text-text`,children:t}),n&&(0,P.jsx)(`span`,{className:`block truncate text-xs text-text-secondary`,children:n})]}),a&&(0,P.jsx)(u,{variant:`icon`,size:`icon-sm`,className:`mr-1.5 shrink-0 transition-opacity ${r?`opacity-100`:`opacity-0 group-hover:opacity-100 group-focus-within:opacity-100`}`,"aria-label":`编辑 ${t}`,onClick:a,children:(0,P.jsx)(f,{className:`size-3.5`})})]})}function He(e){let{label:t,disabled:n,onClick:r}=e;return(0,P.jsxs)(u,{variant:`ghost`,size:`sm`,className:`w-full justify-start gap-1.5 px-2.5 text-text-secondary`,disabled:n,onClick:r,children:[(0,P.jsx)(p,{className:`size-3.5 shrink-0`}),t]})}function Ue(e){let{state:t,entryPagePath:n,currentRoute:r,onSelect:i,onEdit:a,onCreate:o,onCreateFromCurrentPage:s}=e;return(0,P.jsxs)(`div`,{className:`flex flex-col gap-1`,role:`menu`,"aria-label":`编译模式`,children:[(0,P.jsx)(Ve,{label:`普通编译`,subtitle:n,selected:t.selectedId===null,onSelect:()=>i(null)}),t.entries.length>0&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z,{className:`my-0.5`}),(0,P.jsx)(Ne,{className:Be,children:(0,P.jsx)(`div`,{className:`flex flex-col gap-1 pr-1`,children:t.entries.map(e=>(0,P.jsx)(Ve,{label:e.mode.name||`未命名模式`,subtitle:e.mode.query?`${e.mode.pathName}?${e.mode.query}`:e.mode.pathName,selected:t.selectedId===e.id,onSelect:()=>i(e.id),onEdit:()=>a(e.id)},e.id))})})]}),(0,P.jsx)(Z,{className:`my-0.5`}),(0,P.jsx)(He,{label:`添加编译模式`,onClick:o}),(0,P.jsx)(He,{label:r?`以当前页面新建`:`以当前页面新建(项目未运行)`,disabled:!r,onClick:s})]})}function Q(e){let{label:t,field:n,hint:r,labelled:i=!0,children:a}=e;return(0,P.jsxs)(`div`,{className:`flex flex-col gap-1.5`,"data-testid":`compile-mode-field`,"data-field":n,children:[(0,P.jsxs)(i?`label`:`div`,{className:`flex flex-col gap-1.5`,children:[(0,P.jsx)(`span`,{className:`text-sm text-text-secondary`,children:t}),a]}),r&&(0,P.jsx)(`span`,{className:`text-xs text-text-dim`,children:r})]})}function We(e){let{title:t,mode:n,pages:r,canDelete:i,onSubmit:a,onCancel:o,onDelete:s}=e,[c,l]=(0,N.useState)(n.name),[f,x]=(0,N.useState)(n.pathName),[S,C]=(0,N.useState)(n.query),[w,T]=(0,N.useState)(()=>ne(n.query)),[E,D]=(0,N.useState)(`rows`),[O,te]=(0,N.useState)(n.scene);function ie(){T(ne(S)),D(`rows`)}function j(e){T(e),C(ee(e))}function M(e,t,n){let r=[...w];r[e]={...r[e]??{key:``,value:``},[t]:n},j(r)}function se(){a({...n,name:c.trim(),pathName:f,query:S,scene:O})}return(0,P.jsx)(y,{open:!0,onOpenChange:e=>{e||o()},children:(0,P.jsxs)(_,{className:`w-[520px] max-w-[calc(100vw-2rem)] gap-4 p-5`,children:[(0,P.jsx)(m,{children:(0,P.jsx)(v,{children:t})}),(0,P.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,P.jsx)(Q,{label:`模式名称`,field:`name`,children:(0,P.jsx)(d,{value:c,autoFocus:!0,placeholder:`未命名`,onChange:e=>l(e.target.value)})}),(0,P.jsx)(Q,{label:`启动页面`,field:`pathName`,children:(0,P.jsxs)(re,{value:f,onChange:e=>x(e.target.value),children:[(0,P.jsx)(`option`,{value:``,children:`默认为首页`}),f&&!r.includes(f)&&(0,P.jsxs)(`option`,{value:f,children:[f,`(页面不存在)`]}),r.map(e=>(0,P.jsx)(`option`,{value:e,children:e},e))]})}),(0,P.jsx)(Q,{label:`启动参数`,field:`params`,labelled:!1,children:(0,P.jsxs)(oe,{variant:`segment`,value:E,onValueChange:e=>{e===`rows`?ie():D(`raw`)},children:[(0,P.jsxs)(ae,{className:`w-fit`,children:[(0,P.jsx)(k,{value:`rows`,children:`逐条`}),(0,P.jsx)(k,{value:`raw`,children:`原始串`})]}),(0,P.jsxs)(A,{value:`rows`,className:`flex flex-col gap-2`,children:[w.map((e,t)=>(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,"data-testid":`compile-mode-param-row`,children:[(0,P.jsx)(d,{className:`min-w-0 flex-1`,value:e.key,placeholder:`参数名`,onChange:e=>M(t,`key`,e.target.value)}),(0,P.jsx)(d,{className:`min-w-0 flex-1`,value:e.value,placeholder:`参数值`,onChange:e=>M(t,`value`,e.target.value)}),(0,P.jsx)(u,{variant:`danger`,size:`icon-sm`,className:`shrink-0`,"aria-label":`删除参数 ${e.key||t+1}`,onClick:()=>j(w.filter((e,n)=>n!==t)),children:(0,P.jsx)(h,{className:`size-3.5`})})]},t)),(0,P.jsxs)(u,{variant:`ghost`,size:`sm`,className:`w-fit gap-1.5 px-2 text-text-secondary`,onClick:()=>T([...w,{key:``,value:``}]),children:[(0,P.jsx)(p,{className:`size-3.5`}),`添加参数`]})]}),(0,P.jsxs)(A,{value:`raw`,className:`flex flex-col gap-1.5`,children:[(0,P.jsx)(d,{className:`font-mono`,value:S,placeholder:`a=1&b=2`,onChange:e=>C(e.target.value)}),(0,P.jsx)(`span`,{className:`text-xs text-text-dim`,children:`URL 查询串,不含开头的 ?`})]})]})}),(0,P.jsx)(Q,{label:`进入场景`,field:`scene`,hint:`留空则使用默认场景值 ${b}`,children:(0,P.jsx)(d,{type:`number`,className:`w-32`,value:O??``,placeholder:String(b),onChange:e=>te(e.target.value===``?null:Number(e.target.value))})})]}),(0,P.jsxs)(g,{className:`sm:justify-between`,children:[i?(0,P.jsx)(u,{variant:`ghost`,className:`text-status-error hover:bg-[var(--qd-destructive-soft)]`,onClick:s,children:`删除模式`}):(0,P.jsx)(`span`,{}),(0,P.jsxs)(`div`,{className:`flex gap-2`,children:[(0,P.jsx)(u,{variant:`outline`,onClick:o,children:`取消`}),(0,P.jsx)(u,{onClick:se,children:`保存`})]})]})]})})}function $(e){return e.split(`/`).filter(Boolean).pop()??``}function Ge(){let[e,t]=(0,N.useState)({top:0,left:0}),[n,r]=(0,N.useState)(te()),[i,a]=(0,N.useState)([]),[l,u]=(0,N.useState)(``),[d,f]=(0,N.useState)(``),[p,m]=(0,N.useState)({kind:`menu`}),h=(0,N.useRef)(null);(0,N.useEffect)(()=>{function e(e){let n=window.innerWidth-340-8;t({top:e.top,left:Math.min(e.left,n)})}let n=c(t=>{a(t.pages),r(t.state),u(t.entryPagePath),f(t.currentRoute),m({kind:`menu`}),h.current={top:t.top,left:t.left},e(h.current)}),i=()=>{h.current&&e(h.current)};return window.addEventListener(`resize`,i),o(),()=>{n(),window.removeEventListener(`resize`,i)}},[]);function g(e){M(e).catch(()=>{})}function _(e){g({type:`select`,id:e})}function v(e){let t=n.entries.find(t=>t.id===e)?.mode;t&&m({kind:`form`,title:`编辑编译模式`,id:e,mode:t})}function y(){m({kind:`form`,title:`添加编译模式`,id:null,mode:{name:$(l),pathName:l,query:``,scene:null}})}function b(){let e=O(d,``);m({kind:`form`,title:`以当前页面新建`,id:null,mode:{...e,name:$(e.pathName)}})}function x(e){p.kind===`form`&&g(p.id===null?{type:`add`,mode:e}:{type:`update`,id:p.id,mode:e})}function S(){p.kind!==`form`||p.id===null||g({type:`remove`,id:p.id})}return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`div`,{className:`fixed inset-0`,onClick:()=>void s()}),(0,P.jsx)(`div`,{className:`fixed w-[340px] bg-surface border border-border-strong rounded-md p-3.5 shadow-[0_8px_24px_var(--color-overlay-heavy)] z-10`,style:{top:e.top,left:e.left},onClick:e=>e.stopPropagation(),children:(0,P.jsx)(Ue,{state:n,entryPagePath:l,currentRoute:d,onSelect:_,onEdit:v,onCreate:y,onCreateFromCurrentPage:b})}),p.kind===`form`&&(0,P.jsx)(We,{title:p.title,mode:p.mode,pages:i,canDelete:p.id!==null,onSubmit:x,onCancel:()=>m({kind:`menu`}),onDelete:S})]})}se.createRoot(document.getElementById(`root`)).render((0,P.jsx)(Ge,{}));
|
|
2
|
+
//# sourceMappingURL=popover-Cw7G2Ctp.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=[{name:`Pixel 7`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 13`,statusBarHeight:52,safeAreaInsets:{top:52},safeAreaInsetsLandscape:{right:52},cutout:{shape:`circle`,width:26,height:26,top:13},userAgent:`Mozilla/5.0 (Linux; Android 14; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 8`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 14`,statusBarHeight:50,safeAreaInsets:{top:50},safeAreaInsetsLandscape:{right:50},cutout:{shape:`circle`,width:28,height:28,top:11},userAgent:`Mozilla/5.0 (Linux; Android 14; Pixel 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 8 Pro`,os:`android`,screen:{width:448,height:997},pixelRatio:3,system:`Android 14`,statusBarHeight:50,safeAreaInsets:{top:50},safeAreaInsetsLandscape:{right:50},cutout:{shape:`circle`,width:28,height:28,top:11},userAgent:`Mozilla/5.0 (Linux; Android 14; Pixel 8 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 8a`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 14`,statusBarHeight:46,safeAreaInsets:{top:46},safeAreaInsetsLandscape:{right:46},cutout:{shape:`circle`,width:26,height:26,top:13},userAgent:`Mozilla/5.0 (Linux; Android 14; Pixel 8a) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 9`,os:`android`,screen:{width:412,height:924},pixelRatio:2.625,system:`Android 14`,statusBarHeight:58,safeAreaInsets:{top:58},safeAreaInsetsLandscape:{right:58},cutout:{shape:`circle`,width:28,height:28,top:15},userAgent:`Mozilla/5.0 (Linux; Android 14; Pixel 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 9 Pro`,os:`android`,screen:{width:427,height:952},pixelRatio:3,system:`Android 14`,statusBarHeight:68,safeAreaInsets:{top:68},safeAreaInsetsLandscape:{right:68},cutout:{shape:`circle`,width:32,height:32,top:18},userAgent:`Mozilla/5.0 (Linux; Android 14; Pixel 9 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 9 Pro XL`,os:`android`,screen:{width:448,height:997},pixelRatio:3,system:`Android 14`,statusBarHeight:66,safeAreaInsets:{top:66},safeAreaInsetsLandscape:{right:66},cutout:{shape:`circle`,width:32,height:32,top:17},userAgent:`Mozilla/5.0 (Linux; Android 14; Pixel 9 Pro XL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 10`,os:`android`,screen:{width:412,height:924},pixelRatio:2.625,system:`Android 16`,statusBarHeight:58,safeAreaInsets:{top:58},safeAreaInsetsLandscape:{right:58},cutout:{shape:`circle`,width:28,height:28,top:15},userAgent:`Mozilla/5.0 (Linux; Android 16; Pixel 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Samsung Galaxy S8+`,os:`android`,screen:{width:360,height:740},pixelRatio:4,system:`Android 7.0`,userAgent:`Mozilla/5.0 (Linux; Android 7.0; SM-G955U Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Samsung Galaxy S20 Ultra`,os:`android`,screen:{width:412,height:915},pixelRatio:3.5,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 10; SM-G981B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Mobile Safari/537.36`},{name:`Surface Duo`,os:`android`,screen:{width:540,height:720},pixelRatio:2.5,system:`Android 11.0`},{name:`Surface Duo (inner)`,os:`android`,screen:{width:720,height:1114},pixelRatio:2.5,system:`Android 11.0`},{name:`Samsung Galaxy A55`,os:`android`,screen:{width:360,height:800},pixelRatio:2.25,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; SM-A556B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 9 Pro Fold`,os:`android`,screen:{width:412,height:922},pixelRatio:2.625,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 15; Pixel 9 Pro Fold) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36`},{name:`Pixel 9 Pro Fold (inner)`,os:`android`,screen:{width:836,height:842},pixelRatio:2.625,system:`Android 14`},{name:`Galaxy Z Fold 6`,os:`android`,screen:{width:412,height:968},pixelRatio:2.625,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; SM-F956U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Galaxy Z Fold 6 (inner)`,os:`android`,screen:{width:707,height:823},pixelRatio:2.625,system:`Android 14`},{name:`Galaxy Z Fold 5`,os:`android`,screen:{width:344,height:882},pixelRatio:2.625,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; SM-F946B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.131 Mobile Safari/537.36`},{name:`Galaxy Z Fold 5 (inner)`,os:`android`,screen:{width:690,height:829},pixelRatio:2.625,system:`Android 13`},{name:`Samsung Galaxy A51/71`,os:`android`,screen:{width:412,height:914},pixelRatio:2.625,system:`Android 10`,userAgent:`Mozilla/5.0 (Linux; Android 10; SM-A515F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Mobile Safari/537.36`},{name:`Galaxy Tab S4`,os:`android`,formFactor:`tablet`,screen:{width:712,height:1138},pixelRatio:2.25,system:`Android 8.1`,userAgent:`Mozilla/5.0 (Linux; Android 8.1.0; SM-T837A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Safari/537.36`},{name:`Moto G4`,os:`android`,screen:{width:360,height:640},pixelRatio:3,system:`Android 6.0`,userAgent:`Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Moto G Power`,os:`android`,screen:{width:412,height:823},pixelRatio:1.75,system:`Android 11`},{name:`Nexus 5`,os:`android`,screen:{width:360,height:640},pixelRatio:3,system:`Android 6.0`,shell:{screenRadius:2},userAgent:`Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Mobile Safari/537.36`},{name:`Nexus 5X`,os:`android`,screen:{width:411,height:731},pixelRatio:2.625,system:`Android 8.0`,shell:{screenRadius:2},userAgent:`Mozilla/5.0 (Linux; Android 8.0.0; Nexus 5X Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Mobile Safari/537.36`},{name:`Nexus 6`,os:`android`,screen:{width:412,height:732},pixelRatio:3.5,system:`Android 7.1`,shell:{screenRadius:2},userAgent:`Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6F26U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Mobile Safari/537.36`},{name:`Galaxy Note 3`,os:`android`,screen:{width:360,height:640},pixelRatio:3,system:`Android 4.3`,userAgent:`Mozilla/5.0 (Linux; U; Android 4.3; en-us; SM-N900T Build/JSS15J) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30`},{name:`Galaxy Note II`,os:`android`,screen:{width:360,height:640},pixelRatio:2,system:`Android 4.1`,userAgent:`Mozilla/5.0 (Linux; U; Android 4.1; en-us; GT-N7100 Build/JRO03C) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30`},{name:`Galaxy S III`,os:`android`,screen:{width:360,height:640},pixelRatio:2,system:`Android 4.0`,userAgent:`Mozilla/5.0 (Linux; U; Android 4.0; en-us; GT-I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30`},{name:`Galaxy S5`,os:`android`,screen:{width:360,height:640},pixelRatio:3,system:`Android 5.0`,userAgent:`Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Galaxy S9+`,os:`android`,screen:{width:320,height:658},pixelRatio:4.5,system:`Android 8.0`,userAgent:`Mozilla/5.0 (Linux; Android 8.0.0; SM-G965U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Galaxy S24`,os:`android`,screen:{width:360,height:780},pixelRatio:3,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; SM-S921U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Galaxy Tab S9`,os:`android`,formFactor:`tablet`,screen:{width:640,height:1024},pixelRatio:2.5,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; SM-X710) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Safari/537.36`},{name:`Galaxy Z Fold 6 Cover`,os:`android`,screen:{width:484,height:1188},pixelRatio:2,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; SM-F956U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Galaxy Z Fold 7`,os:`android`,screen:{width:984,height:1092},pixelRatio:2,system:`Android 16`,userAgent:`Mozilla/5.0 (Linux; Android 16; SM-F966U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Galaxy Z Fold 7 Cover`,os:`android`,screen:{width:360,height:840},pixelRatio:3,system:`Android 16`,userAgent:`Mozilla/5.0 (Linux; Android 16; SM-F966U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Galaxy Z Flip 6`,os:`android`,screen:{width:360,height:880},pixelRatio:3,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; SM-F741U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Galaxy Z Flip 6 Cover`,os:`android`,screen:{width:360,height:374},pixelRatio:2,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; SM-F741U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Galaxy Z Flip 7`,os:`android`,screen:{width:360,height:840},pixelRatio:3,system:`Android 16`,userAgent:`Mozilla/5.0 (Linux; Android 16; SM-F761U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Galaxy Z Flip 7 Cover`,os:`android`,screen:{width:474,height:524},pixelRatio:2,system:`Android 16`,userAgent:`Mozilla/5.0 (Linux; Android 16; SM-F761U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`LG Optimus L70`,os:`android`,screen:{width:384,height:640},pixelRatio:1.25,system:`Android 4.4`,userAgent:`Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Nexus 10`,os:`android`,formFactor:`tablet`,screen:{width:800,height:1280},pixelRatio:2,system:`Android 5.1`,userAgent:`Mozilla/5.0 (Linux; Android 5.1; Nexus 10 Build/MOB31T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Safari/537.36`},{name:`Nexus 4`,os:`android`,screen:{width:384,height:640},pixelRatio:2,system:`Android 4.4`,userAgent:`Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Nexus 6P`,os:`android`,screen:{width:412,height:732},pixelRatio:3.5,system:`Android 8.0`,userAgent:`Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Nexus 7`,os:`android`,formFactor:`tablet`,screen:{width:600,height:960},pixelRatio:2,system:`Android 6.0`,userAgent:`Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7 Build/MOB30X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Safari/537.36`},{name:`Pixel 2`,os:`android`,screen:{width:411,height:731},pixelRatio:2.625,system:`Android 8.0`,userAgent:`Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 2 XL`,os:`android`,screen:{width:411,height:823},pixelRatio:3.5,system:`Android 8.0`,userAgent:`Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 3`,os:`android`,screen:{width:393,height:786},pixelRatio:2.75,system:`Android 9`,userAgent:`Mozilla/5.0 (Linux; Android 9; Pixel 3 Build/PQ1A.181105.017.A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 4`,os:`android`,screen:{width:353,height:745},pixelRatio:3,system:`Android 10`,userAgent:`Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 4a (5G)`,os:`android`,screen:{width:412,height:892},pixelRatio:2.63,system:`Android 11`,userAgent:`Mozilla/5.0 (Linux; Android 11; Pixel 4a (5G)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 5`,os:`android`,screen:{width:393,height:851},pixelRatio:2.75,system:`Android 11`,userAgent:`Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 6`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 12`,userAgent:`Mozilla/5.0 (Linux; Android 12; Pixel 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 6 Pro`,os:`android`,screen:{width:412,height:892},pixelRatio:3.5,system:`Android 12`,userAgent:`Mozilla/5.0 (Linux; Android 12; Pixel 6 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 6a`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 12`,userAgent:`Mozilla/5.0 (Linux; Android 12; Pixel 6a) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 7 Pro`,os:`android`,screen:{width:412,height:892},pixelRatio:3.5,system:`Android 13`,statusBarHeight:41,cutout:{shape:`circle`,width:25,height:25,top:8},userAgent:`Mozilla/5.0 (Linux; Android 13; Pixel 7 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 7a`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; Pixel 7a) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 10 Pro`,os:`android`,screen:{width:427,height:952},pixelRatio:3,system:`Android 16`,statusBarHeight:68,safeAreaInsets:{top:68},safeAreaInsetsLandscape:{right:68},cutout:{shape:`circle`,width:32,height:32,top:18},userAgent:`Mozilla/5.0 (Linux; Android 16; Pixel 10 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 10 Pro XL`,os:`android`,screen:{width:448,height:997},pixelRatio:3,system:`Android 16`,userAgent:`Mozilla/5.0 (Linux; Android 16; Pixel 10 Pro XL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.7827.55 Mobile Safari/537.36`},{name:`Pixel 3 XL`,os:`android`,screen:{width:393,height:786},pixelRatio:2.75,system:`Android 11`,userAgent:`Mozilla/5.0 (Linux; Android 11; Pixel 3 XL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.181 Mobile Safari/537.36`},{name:`Pixel Fold`,os:`android`,screen:{width:734,height:1014},pixelRatio:2.8,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; Pixel Fold) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Mobile Safari/537.36`},{name:`Pixel Tablet`,os:`android`,formFactor:`tablet`,screen:{width:800,height:1280},pixelRatio:2,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; Pixel Tablet) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36`},{name:`Pixel 9a`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 15`,userAgent:`Mozilla/5.0 (Linux; Android 15; Pixel 9a) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36`},{name:`Galaxy Fold`,os:`android`,screen:{width:280,height:653},pixelRatio:3,system:`Android 9.0`},{name:`Galaxy S21`,os:`android`,screen:{width:360,height:800},pixelRatio:3,system:`Android 11`},{name:`Galaxy S21 Plus`,os:`android`,screen:{width:384,height:854},pixelRatio:2.8125,system:`Android 11`},{name:`Galaxy S21 Ultra`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 11`},{name:`Galaxy S20`,os:`android`,screen:{width:360,height:800},pixelRatio:3,system:`Android 10`},{name:`Galaxy S20 Plus`,os:`android`,screen:{width:384,height:854},pixelRatio:3,system:`Android 10`},{name:`Samsung S21 FE`,os:`android`,screen:{width:360,height:800},pixelRatio:3,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; SAMSUNG SM-G990B) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/20.0 Chrome/106.0.5249.126 Mobile Safari/537.36`},{name:`Galaxy Fold3 (Folded)`,os:`android`,screen:{width:320,height:872},pixelRatio:3,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; SM-F926U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.131 Mobile Safari/537.36`},{name:`Galaxy Fold3 (Unfolded)`,os:`android`,screen:{width:590,height:736},pixelRatio:3,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; SM-F926U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.131 Mobile Safari/537.36`},{name:`Galaxy S22`,os:`android`,screen:{width:360,height:800},pixelRatio:3,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; SM-S901B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36`},{name:`Galaxy S22 Plus`,os:`android`,screen:{width:384,height:854},pixelRatio:3,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; SM-S906B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36`},{name:`Galaxy S22 Ultra`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; SM-S908B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36`},{name:`Galaxy S23`,os:`android`,screen:{width:360,height:800},pixelRatio:3,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; SM-S911B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36`},{name:`Galaxy S23 Plus`,os:`android`,screen:{width:384,height:854},pixelRatio:3,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; SM-S916B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36`},{name:`Galaxy S23 Ultra`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; SM-S918B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36`},{name:`Galaxy S24 Plus`,os:`android`,screen:{width:384,height:854},pixelRatio:3,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; SM-S926B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36`},{name:`Galaxy S24 Ultra`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; SM-S928B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36`},{name:`Galaxy Z Flip 5`,os:`android`,screen:{width:264,height:844},pixelRatio:2.8,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; SM-F731B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.131 Mobile Safari/537.36`},{name:`Galaxy Z Fold 4`,os:`android`,screen:{width:344,height:882},pixelRatio:2.8,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; SM-F936B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.131 Mobile Safari/537.36`},{name:`OnePlus 12`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; CPH2581) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36`},{name:`Nothing Phone 2`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; A065) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36`},{name:`Xiaomi 14`,os:`android`,screen:{width:412,height:915},pixelRatio:2.625,system:`Android 14`,userAgent:`Mozilla/5.0 (Linux; Android 14; 23127PN0CC) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36`},{name:`Motorola Razr+`,os:`android`,screen:{width:264,height:844},pixelRatio:2.8,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; XT2321-1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.131 Mobile Safari/537.36`},{name:`OnePlus Open`,os:`android`,screen:{width:734,height:1014},pixelRatio:2.8,system:`Android 13`,userAgent:`Mozilla/5.0 (Linux; Android 13; CPH2551) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.131 Mobile Safari/537.36`}],t=[{name:`HUAWEI Mate 80`,os:`harmony`,screen:{width:366,height:809},pixelRatio:3.5,system:`HarmonyOS 5.0`,statusBarHeight:39,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:39}},{name:`HUAWEI Mate 70`,os:`harmony`,screen:{width:374,height:827},pixelRatio:3.25,system:`HarmonyOS 5.0`,statusBarHeight:34,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:34}},{name:`HUAWEI Mate 70 Pro`,os:`harmony`,screen:{width:376,height:809},pixelRatio:3.5,system:`HarmonyOS 5.0`,statusBarHeight:39,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:39}},{name:`HUAWEI Mate 60`,os:`harmony`,screen:{width:374,height:827},pixelRatio:3.25,system:`HarmonyOS 5.0`,statusBarHeight:33,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:33}},{name:`HUAWEI Mate 60 Pro`,os:`harmony`,screen:{width:388,height:837},pixelRatio:3.25,system:`HarmonyOS 5.0`,statusBarHeight:38,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:38}},{name:`HUAWEI Pura 80 Pro`,os:`harmony`,screen:{width:365,height:814},pixelRatio:3.5,system:`HarmonyOS 5.0`,statusBarHeight:38,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:38}},{name:`HUAWEI nova 14 Ultra`,os:`harmony`,screen:{width:363,height:817},pixelRatio:3.5,system:`HarmonyOS 5.0`,statusBarHeight:48,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:48}},{name:`HUAWEI Pura X (inner)`,os:`harmony`,screen:{width:440,height:707},pixelRatio:3,system:`HarmonyOS 5.0`,statusBarHeight:39,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:39}},{name:`HUAWEI Pura X (outer)`,os:`harmony`,screen:{width:327,height:327},pixelRatio:3,system:`HarmonyOS 5.0`,statusBarHeight:0,navigationBarHeight:0,navigationBarHeightLandscape:0},{name:`HUAWEI Mate X6 (inner)`,os:`harmony`,screen:{width:717,height:781},pixelRatio:3.125,system:`HarmonyOS 5.0`,statusBarHeight:39,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:39}},{name:`HUAWEI Mate X6 (outer)`,os:`harmony`,screen:{width:346,height:781},pixelRatio:3.125,system:`HarmonyOS 5.0`,statusBarHeight:39,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:39}},{name:`HUAWEI Pura 70`,os:`harmony`,screen:{width:372,height:818},pixelRatio:3.375,system:`HarmonyOS 5.0`,statusBarHeight:36,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:36}},{name:`HUAWEI Pura 70 Pro`,os:`harmony`,screen:{width:373,height:843},pixelRatio:3.375,system:`HarmonyOS 5.0`,statusBarHeight:38,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:38}},{name:`HUAWEI Mate X5 (inner)`,os:`harmony`,screen:{width:712,height:799},pixelRatio:3.125,system:`HarmonyOS 5.0`,statusBarHeight:36,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:36}},{name:`HUAWEI Mate X5 (outer)`,os:`harmony`,screen:{width:346,height:801},pixelRatio:3.125,system:`HarmonyOS 5.0`,statusBarHeight:36,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:36}},{name:`HUAWEI Pocket 2`,os:`harmony`,screen:{width:364,height:861},pixelRatio:3.125,system:`HarmonyOS 5.0`,statusBarHeight:34,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:34}},{name:`HUAWEI nova 13`,os:`harmony`,screen:{width:361,height:804},pixelRatio:3,system:`HarmonyOS 5.0`,statusBarHeight:35,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:35}},{name:`HUAWEI nova 13 Pro`,os:`harmony`,screen:{width:363,height:823},pixelRatio:3.375,system:`HarmonyOS 5.0`,statusBarHeight:44,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:44}},{name:`HUAWEI nova 12`,os:`harmony`,screen:{width:361,height:804},pixelRatio:3,system:`HarmonyOS 5.0`,statusBarHeight:35,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:35}},{name:`HUAWEI nova 12 Pro`,os:`harmony`,screen:{width:363,height:823},pixelRatio:3.375,system:`HarmonyOS 5.0`,statusBarHeight:44,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:44}},{name:`HUAWEI Pura X Max (outer)`,os:`harmony`,screen:{width:460,height:672},pixelRatio:2.75,system:`HarmonyOS 5.0`,statusBarHeight:66,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:66}},{name:`HUAWEI Pura X Max (inner)`,os:`harmony`,screen:{width:665,height:940},pixelRatio:2.75,system:`HarmonyOS 5.0`,statusBarHeight:72,navigationBarHeight:28,navigationBarHeightLandscape:28,safeAreaInsets:{top:72}}],n=[...[{name:`iPhone SE`,os:`ios`,screen:{width:375,height:667},pixelRatio:2,system:`iOS 15.0`,statusBarHeight:20,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:20},shell:{screenRadius:0,bodyRadius:38}},{name:`iPhone XR`,os:`ios`,screen:{width:414,height:896},pixelRatio:2,system:`iOS 18.5`,statusBarHeight:48,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:48,bottom:34},safeAreaInsetsLandscape:{left:48,right:48,bottom:21},cutout:{shape:`notch`,width:231,height:33,top:0}},{name:`iPhone 12 Pro`,os:`ios`,screen:{width:390,height:844},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:47,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:47,bottom:34},safeAreaInsetsLandscape:{left:47,right:47,bottom:21},cutout:{shape:`notch`,width:210,height:32,top:0}},{name:`iPhone 14`,os:`ios`,screen:{width:390,height:844},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:47,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:47,bottom:34},safeAreaInsetsLandscape:{left:47,right:47,bottom:21},cutout:{shape:`notch`,width:162,height:34,top:0},shell:{screenRadius:47}},{name:`iPhone 14 Plus`,os:`ios`,screen:{width:428,height:926},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:47,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:47,bottom:34},safeAreaInsetsLandscape:{left:47,right:47,bottom:21},cutout:{shape:`notch`,width:161,height:34,top:0}},{name:`iPhone 14 Pro`,os:`ios`,screen:{width:393,height:852},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:54,safeAreaInsets:{top:59,bottom:34},safeAreaInsetsLandscape:{left:59,right:59,bottom:21},cutout:{shape:`pill`,width:125,height:37,top:11},shell:{screenRadius:55}},{name:`iPhone 14 Pro Max`,os:`ios`,screen:{width:430,height:932},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:54,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:59,bottom:34},safeAreaInsetsLandscape:{left:59,right:59,bottom:21},cutout:{shape:`pill`,width:125,height:37,top:11}},{name:`iPhone 15`,os:`ios`,screen:{width:393,height:852},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:54,safeAreaInsets:{top:59,bottom:34},safeAreaInsetsLandscape:{left:59,right:59,bottom:21},cutout:{shape:`pill`,width:125,height:37,top:11}},{name:`iPhone 15 Plus`,os:`ios`,screen:{width:430,height:932},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:54,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:59,bottom:34},safeAreaInsetsLandscape:{left:59,right:59,bottom:21},cutout:{shape:`pill`,width:125,height:37,top:11}},{name:`iPhone 15 Pro`,os:`ios`,screen:{width:393,height:852},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:54,safeAreaInsets:{top:59,bottom:34},safeAreaInsetsLandscape:{left:59,right:59,bottom:21},cutout:{shape:`pill`,width:125,height:37,top:11}},{name:`iPhone 15 Pro Max`,os:`ios`,screen:{width:430,height:932},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:54,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:59,bottom:34},safeAreaInsetsLandscape:{left:59,right:59,bottom:21},cutout:{shape:`pill`,width:125,height:37,top:11}},{name:`iPhone 16e`,os:`ios`,screen:{width:390,height:844},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:47,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:47,bottom:34},safeAreaInsetsLandscape:{left:47,right:47,bottom:21},cutout:{shape:`notch`,width:162,height:34,top:0}},{name:`iPhone 16`,os:`ios`,screen:{width:393,height:852},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:54,safeAreaInsets:{top:59,bottom:34},safeAreaInsetsLandscape:{left:59,right:59,bottom:21},cutout:{shape:`pill`,width:125,height:37,top:11}},{name:`iPhone 16 Plus`,os:`ios`,screen:{width:430,height:932},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:54,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:59,bottom:34},safeAreaInsetsLandscape:{left:59,right:59,bottom:21},cutout:{shape:`pill`,width:125,height:37,top:11}},{name:`iPhone 16 Pro`,os:`ios`,screen:{width:402,height:874},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:54,safeAreaInsets:{top:62,bottom:34},safeAreaInsetsLandscape:{left:62,right:62,bottom:21},cutout:{shape:`pill`,width:125,height:37,top:14},shell:{screenRadius:62}},{name:`iPhone 16 Pro Max`,os:`ios`,screen:{width:440,height:956},pixelRatio:3,system:`iOS 18.5`,statusBarHeight:54,safeAreaInsets:{top:62,bottom:34},safeAreaInsetsLandscape:{left:62,right:62,bottom:21},cutout:{shape:`pill`,width:125,height:37,top:14},shell:{screenRadius:62}},{name:`iPad Mini`,os:`ios`,formFactor:`tablet`,screen:{width:744,height:1133},pixelRatio:2,system:`iOS 18.5`,statusBarHeight:24,statusBarHeightLandscape:24,safeAreaInsets:{top:24,bottom:25},safeAreaInsetsLandscape:{top:24,bottom:25},shell:{screenRadius:18}},{name:`iPad Pro 13`,os:`ios`,formFactor:`tablet`,screen:{width:1032,height:1376},pixelRatio:2,system:`iPadOS 18.5`,statusBarHeight:24,statusBarHeightLandscape:24,safeAreaInsets:{top:24,bottom:25},safeAreaInsetsLandscape:{top:24,bottom:25},shell:{screenRadius:18}},{name:`iPhone 5`,os:`ios`,screen:{width:320,height:568},pixelRatio:2,system:`iOS 10.3`,statusBarHeight:20,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:20},shell:{screenRadius:0,bodyRadius:38}},{name:`iPhone 6/7/8`,os:`ios`,screen:{width:375,height:667},pixelRatio:2,system:`iOS 11.0`,statusBarHeight:20,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:20},shell:{screenRadius:0,bodyRadius:38}},{name:`iPhone 6/7/8 Plus`,os:`ios`,screen:{width:414,height:736},pixelRatio:3,system:`iOS 11.0`,statusBarHeight:20,navigationBarHeight:44,navigationBarHeightLandscape:44,safeAreaInsets:{top:20},shell:{screenRadius:0,bodyRadius:38}},{name:`iPhone X`,os:`ios`,screen:{width:375,height:812},pixelRatio:3,system:`iOS 16.0`,statusBarHeight:44,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:44,bottom:34},safeAreaInsetsLandscape:{left:44,right:44,bottom:21},cutout:{shape:`notch`,width:209,height:30,top:0},shell:{screenRadius:39}},{name:`iPhone XS Max`,os:`ios`,screen:{width:414,height:896},pixelRatio:3,system:`iOS 11.0`,statusBarHeight:44,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:44,bottom:34},safeAreaInsetsLandscape:{left:44,right:44,bottom:21},cutout:{shape:`notch`,width:209,height:30,top:0}},{name:`iPhone 12/13 mini`,os:`ios`,screen:{width:375,height:812},pixelRatio:3,system:`iOS 15.0`,statusBarHeight:50,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:50,bottom:34},safeAreaInsetsLandscape:{left:50,right:50,bottom:21},cutout:{shape:`notch`,width:192,height:30,top:0}},{name:`iPhone 12/13 (Pro)`,os:`ios`,screen:{width:390,height:844},pixelRatio:3,system:`iOS 15.0`,statusBarHeight:47,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:47,bottom:34},safeAreaInsetsLandscape:{left:47,right:47,bottom:21},cutout:{shape:`notch`,width:162,height:34,top:0}},{name:`iPhone 12/13 Pro Max`,os:`ios`,screen:{width:428,height:926},pixelRatio:3,system:`iOS 15.0`,statusBarHeight:47,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:47,bottom:34},safeAreaInsetsLandscape:{left:47,right:47,bottom:21},cutout:{shape:`notch`,width:161,height:34,top:0}},{name:`iPad`,os:`ios`,formFactor:`tablet`,screen:{width:768,height:1024},pixelRatio:2,system:`iOS 11.0`,statusBarHeight:20,statusBarHeightLandscape:20,safeAreaInsets:{top:20},safeAreaInsetsLandscape:{top:20},shell:{screenRadius:0}},{name:`iPad Pro 10.5-inch`,os:`ios`,formFactor:`tablet`,screen:{width:834,height:1112},pixelRatio:2,system:`iOS 11.0`,statusBarHeight:20,statusBarHeightLandscape:20,safeAreaInsets:{top:20},safeAreaInsetsLandscape:{top:20},shell:{screenRadius:0}},{name:`iPad Pro 12.9-inch`,os:`ios`,formFactor:`tablet`,screen:{width:1024,height:1366},pixelRatio:2,system:`iOS 11.0`,statusBarHeight:24,statusBarHeightLandscape:24,safeAreaInsets:{top:24,bottom:25},safeAreaInsetsLandscape:{top:24,bottom:25},shell:{screenRadius:18}},{name:`iPad (gen 5)`,os:`ios`,formFactor:`tablet`,screen:{width:768,height:1024},pixelRatio:2,system:`iOS 12.2`,statusBarHeight:20,statusBarHeightLandscape:20,safeAreaInsets:{top:20},safeAreaInsetsLandscape:{top:20},shell:{screenRadius:0}},{name:`iPad (gen 6)`,os:`ios`,formFactor:`tablet`,screen:{width:768,height:1024},pixelRatio:2,system:`iOS 12.2`,statusBarHeight:20,statusBarHeightLandscape:20,safeAreaInsets:{top:20},safeAreaInsetsLandscape:{top:20},shell:{screenRadius:0}},{name:`iPad (gen 7)`,os:`ios`,formFactor:`tablet`,screen:{width:810,height:1080},pixelRatio:2,system:`iOS 12.2`,statusBarHeight:20,statusBarHeightLandscape:20,safeAreaInsets:{top:20},safeAreaInsetsLandscape:{top:20},shell:{screenRadius:0}},{name:`iPad (gen 11)`,os:`ios`,formFactor:`tablet`,screen:{width:820,height:1180},pixelRatio:2,system:`iOS 18.5`,statusBarHeight:24,statusBarHeightLandscape:24,safeAreaInsets:{top:24,bottom:25},safeAreaInsetsLandscape:{top:24,bottom:25},shell:{screenRadius:18}},{name:`iPad Pro 11`,os:`ios`,formFactor:`tablet`,screen:{width:834,height:1194},pixelRatio:2,system:`iOS 12.2`,statusBarHeight:24,statusBarHeightLandscape:24,safeAreaInsets:{top:24,bottom:25},safeAreaInsetsLandscape:{top:24,bottom:25},shell:{screenRadius:18}},{name:`iPhone 6`,os:`ios`,screen:{width:375,height:667},pixelRatio:2,system:`iOS 11.0`,statusBarHeight:20,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:20},shell:{screenRadius:0,bodyRadius:38}},{name:`iPhone 6 Plus`,os:`ios`,screen:{width:414,height:736},pixelRatio:3,system:`iOS 11.0`,statusBarHeight:20,navigationBarHeight:44,navigationBarHeightLandscape:44,safeAreaInsets:{top:20},shell:{screenRadius:0,bodyRadius:38}},{name:`iPhone 7`,os:`ios`,screen:{width:375,height:667},pixelRatio:2,system:`iOS 11.0`,statusBarHeight:20,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:20},shell:{screenRadius:0,bodyRadius:38}},{name:`iPhone 7 Plus`,os:`ios`,screen:{width:414,height:736},pixelRatio:3,system:`iOS 11.0`,statusBarHeight:20,navigationBarHeight:44,navigationBarHeightLandscape:44,safeAreaInsets:{top:20},shell:{screenRadius:0,bodyRadius:38}},{name:`iPhone 8`,os:`ios`,screen:{width:375,height:667},pixelRatio:2,system:`iOS 11.0`,statusBarHeight:20,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:20},shell:{screenRadius:0,bodyRadius:38}},{name:`iPhone 8 Plus`,os:`ios`,screen:{width:414,height:736},pixelRatio:3,system:`iOS 11.0`,statusBarHeight:20,navigationBarHeight:44,navigationBarHeightLandscape:44,safeAreaInsets:{top:20},shell:{screenRadius:0,bodyRadius:38}},{name:`iPhone SE (3rd gen)`,os:`ios`,screen:{width:375,height:667},pixelRatio:2,system:`iOS 18.5`,statusBarHeight:20,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:20},shell:{screenRadius:0,bodyRadius:38}},{name:`iPhone 11`,os:`ios`,screen:{width:414,height:896},pixelRatio:2,system:`iOS 12.2`,statusBarHeight:48,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:48,bottom:34},safeAreaInsetsLandscape:{left:48,right:48,bottom:21},cutout:{shape:`notch`,width:231,height:33,top:0}},{name:`iPhone 11 Pro`,os:`ios`,screen:{width:375,height:812},pixelRatio:3,system:`iOS 12.2`,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:44,bottom:34},safeAreaInsetsLandscape:{left:44,right:44,bottom:21},cutout:{shape:`notch`,width:209,height:30,top:0}},{name:`iPhone 11 Pro Max`,os:`ios`,screen:{width:414,height:896},pixelRatio:3,system:`iOS 12.2`,statusBarHeight:44,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:44,bottom:34},safeAreaInsetsLandscape:{left:44,right:44,bottom:21},cutout:{shape:`notch`,width:209,height:30,top:0}},{name:`iPhone 12`,os:`ios`,screen:{width:390,height:844},pixelRatio:3,system:`iOS 14.4`,statusBarHeight:47,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:47,bottom:34},safeAreaInsetsLandscape:{left:47,right:47,bottom:21},cutout:{shape:`notch`,width:210,height:32,top:0}},{name:`iPhone 12 Pro Max`,os:`ios`,screen:{width:428,height:926},pixelRatio:3,system:`iOS 14.4`,statusBarHeight:47,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:47,bottom:34},safeAreaInsetsLandscape:{left:47,right:47,bottom:21},cutout:{shape:`notch`,width:210,height:32,top:0}},{name:`iPhone 12 Mini`,os:`ios`,screen:{width:375,height:812},pixelRatio:3,system:`iOS 14.4`,statusBarHeight:50,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:50,bottom:34},safeAreaInsetsLandscape:{left:50,right:50,bottom:21},cutout:{shape:`notch`,width:192,height:30,top:0}},{name:`iPhone 13`,os:`ios`,screen:{width:390,height:844},pixelRatio:3,system:`iOS 15.0`,statusBarHeight:47,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:47,bottom:34},safeAreaInsetsLandscape:{left:47,right:47,bottom:21},cutout:{shape:`notch`,width:162,height:34,top:0}},{name:`iPhone 13 Pro`,os:`ios`,screen:{width:390,height:844},pixelRatio:3,system:`iOS 15.0`,statusBarHeight:47,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:47,bottom:34},safeAreaInsetsLandscape:{left:47,right:47,bottom:21},cutout:{shape:`notch`,width:162,height:34,top:0}},{name:`iPhone 13 Pro Max`,os:`ios`,screen:{width:428,height:926},pixelRatio:3,system:`iOS 15.0`,statusBarHeight:47,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:47,bottom:34},safeAreaInsetsLandscape:{left:47,right:47,bottom:21},cutout:{shape:`notch`,width:161,height:34,top:0}},{name:`iPhone 13 Mini`,os:`ios`,screen:{width:375,height:812},pixelRatio:3,system:`iOS 15.0`,statusBarHeight:50,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:50,bottom:34},safeAreaInsetsLandscape:{left:50,right:50,bottom:21},cutout:{shape:`notch`,width:192,height:30,top:0}},{name:`iPhone 17`,os:`ios`,screen:{width:402,height:874},pixelRatio:3,system:`iOS 18.7`,statusBarHeight:54,safeAreaInsets:{top:62,bottom:34},safeAreaInsetsLandscape:{left:62,right:62,bottom:20},cutout:{shape:`pill`,width:125,height:37,top:14}},{name:`iPhone Air`,os:`ios`,screen:{width:420,height:912},pixelRatio:3,system:`iOS 18.7`,statusBarHeight:54,safeAreaInsets:{top:68,bottom:34},safeAreaInsetsLandscape:{left:68,right:68,bottom:20},cutout:{shape:`pill`,width:125,height:37,top:20}},{name:`iPhone 17 Pro`,os:`ios`,screen:{width:402,height:874},pixelRatio:3,system:`iOS 26.0`,statusBarHeight:54,safeAreaInsets:{top:62,bottom:34},safeAreaInsetsLandscape:{top:0,left:62,right:62,bottom:20},cutout:{shape:`pill`,width:125,height:37,top:14},shell:{screenRadius:62}},{name:`iPhone 17 Pro Max`,os:`ios`,screen:{width:440,height:956},pixelRatio:3,system:`iOS 18.7`,statusBarHeight:54,safeAreaInsets:{top:62,bottom:34},safeAreaInsetsLandscape:{left:62,right:62,bottom:20},cutout:{shape:`pill`,width:125,height:37,top:14}},{name:`iPhone 17e`,os:`ios`,screen:{width:390,height:844},pixelRatio:3,system:`iOS 18.7`,statusBarHeight:47,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:47,bottom:34},safeAreaInsetsLandscape:{left:47,right:47,bottom:20},cutout:{shape:`notch`,width:162,height:34,top:0}},{name:`iPhone 4`,os:`ios`,screen:{width:320,height:480},pixelRatio:2,system:`iOS 7.1`,statusBarHeight:20,safeAreaInsets:{top:20},shell:{screenRadius:0,bodyRadius:38}},{name:`iPhone 5/SE`,os:`ios`,screen:{width:320,height:568},pixelRatio:2,system:`iOS 10.3`,statusBarHeight:20,navigationBarHeight:44,navigationBarHeightLandscape:32,safeAreaInsets:{top:20},shell:{screenRadius:0,bodyRadius:38}},{name:`iPad Air`,os:`ios`,formFactor:`tablet`,screen:{width:820,height:1180},pixelRatio:2,system:`iOS 13.3`,statusBarHeight:24,statusBarHeightLandscape:24,safeAreaInsets:{top:24,bottom:25},safeAreaInsetsLandscape:{top:24,bottom:25},shell:{screenRadius:18}},{name:`iPad Pro`,os:`ios`,formFactor:`tablet`,screen:{width:1024,height:1366},pixelRatio:2,system:`iOS 11.0`,statusBarHeight:24,statusBarHeightLandscape:24,safeAreaInsets:{top:24,bottom:25},safeAreaInsetsLandscape:{top:24,bottom:25},shell:{screenRadius:18}},{name:`iPhone 17 Air`,os:`ios`,screen:{width:420,height:912},pixelRatio:3,system:`iOS 18.0`,statusBarHeight:54,safeAreaInsets:{top:68,bottom:34},safeAreaInsetsLandscape:{left:68,right:68,bottom:20},cutout:{shape:`pill`,width:125,height:37,top:20}},{name:`iPad Pro M4`,os:`ios`,formFactor:`tablet`,screen:{width:834,height:1210},pixelRatio:2,system:`iOS 17.5`,statusBarHeight:24,statusBarHeightLandscape:24,safeAreaInsets:{top:24,bottom:25},safeAreaInsetsLandscape:{top:24,bottom:25},shell:{screenRadius:18}},{name:`iPad Air M2`,os:`ios`,formFactor:`tablet`,screen:{width:820,height:1180},pixelRatio:2,system:`iOS 17.4`,statusBarHeight:24,statusBarHeightLandscape:24,safeAreaInsets:{top:24,bottom:25},safeAreaInsetsLandscape:{top:24,bottom:25},shell:{screenRadius:18}}],...e,...t],r=new Map(n.map(e=>[e.name,e])),i=r.get(`iPhone X`);function a(e){if(e)return r.get(e)}export{n,a as r,i as t};
|
|
2
|
+
//# sourceMappingURL=presets-DMZOb9ay.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as e,d as t,g as n,l as r,m as i,u as a,v as o}from"./ipc-channels-overlays-gIPUFnqc.js";function s(){return a(e.List)}function c(){return r(i.OpenDirectory)}function l(t){return a(e.Add,t)}function u(t){return r(e.Remove,t)}function d(t,n){return a(e.Update,t,n)}function f(e){return a(n.Open,e)}function p(e){return a(n.GetPages,e)}function m(e){return a(n.GetCompileModeState,e)}function h(){return a(n.Rebuild)}function g(e){return t(n.Status,t=>e(t))}function _(e){return t(n.CompileLog,t=>e(t))}function v(e){return t(o.RuntimeStatus,t=>e(t))}function y(e){return r(n.CaptureThumbnail,e)}function b(e){return r(n.GetThumbnail,e)}function x(){return a(e.ListTemplates)}function S(){return r(e.OpenCreateDialog)}function C(t){return r(e.OpenEditDialog,t)}function w(t){return a(e.Create,t)}function T(){return a(e.GetCreateDefaults)}export{h as _,m as a,b as c,_ as d,g as f,f as g,C as h,w as i,s as l,S as m,y as n,T as o,v as p,c as r,p as s,l as t,x as u,u as v,d as y};
|
|
2
|
+
//# sourceMappingURL=project-api-YTOr_Yvo.js.map
|
package/dist/renderer/assets/{projectCreateDialog-Bbjz75bP.js → projectCreateDialog-BmLqiYxn.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e,i as t,n,t as r}from"./jsx-runtime-
|
|
2
|
-
//# sourceMappingURL=projectCreateDialog-
|
|
1
|
+
import{a as e,i as t,n,t as r}from"./jsx-runtime-DIw5wnYl.js";import{r as i}from"./project-api-YTOr_Yvo.js";import{I as a,i as o,l as s,y as c}from"./view-api-B-2zPBR5.js";import{t as l}from"./button-CB2MWjHY.js";import{t as u}from"./input-CAObw95L.js";import{a as d,i as f,n as p,o as m,t as h}from"./dialog-pHzEA8Vx.js";var g=e(n(),1),_=e(t(),1),v=r();function y(e){return e.trim().replace(/[\\/:*?"<>|]+/g,`-`).replace(/\s+/g,`-`).replace(/-{2,}/g,`-`).replace(/^[-.]+|[-.]+$/g,``)}function b(e,t){return t?e?e.endsWith(`/`)?`${e}${t}`:`${e}/${t}`:t:``}function x(e){let{open:t,templates:n,defaultBaseDir:r,onSubmit:i,onCancel:a,onBrowse:o}=e,[s,c]=(0,_.useState)(``),[g,x]=(0,_.useState)(``),[S,C]=(0,_.useState)(n[0]?.id??`blank`),w=(0,_.useRef)(!1);(0,_.useEffect)(()=>{n.find(e=>e.id===S)||C(n[0]?.id??`blank`)},[n,S]),(0,_.useEffect)(()=>{t&&(c(``),x(``),w.current=!1)},[t]);let T=s.trim().length>0&&g.trim().length>0;function E(e){if(c(e),!w.current){let t=y(e);x(t?b(r??``,t):``)}}function D(e){w.current=!0,x(e)}async function O(){let e=await o();e&&(w.current=!0,x(e))}function k(){T&&i({name:s.trim(),path:g.trim(),templateId:S})}return(0,v.jsx)(h,{open:t,onOpenChange:e=>{e||a()},children:(0,v.jsxs)(p,{className:`w-[560px] max-w-[90vw]`,children:[(0,v.jsx)(d,{children:(0,v.jsx)(m,{children:`新建小程序`})}),(0,v.jsxs)(`div`,{className:`flex flex-col gap-[29px]`,children:[(0,v.jsxs)(`label`,{className:`flex flex-col gap-2 text-[13px]`,children:[(0,v.jsx)(`span`,{className:`font-medium text-text`,children:`项目名`}),(0,v.jsx)(u,{"aria-label":`项目名`,value:s,onChange:e=>E(e.target.value),placeholder:`My App`,className:`h-8`})]}),(0,v.jsxs)(`label`,{className:`flex flex-col gap-2 text-[13px]`,children:[(0,v.jsx)(`span`,{className:`font-medium text-text`,children:`目录`}),(0,v.jsxs)(`div`,{className:`flex gap-2`,children:[(0,v.jsx)(u,{"aria-label":`目录`,value:g,onChange:e=>D(e.target.value),placeholder:`/absolute/path/to/dir`,className:`flex-1 h-8`}),(0,v.jsx)(l,{type:`button`,variant:`outline`,onClick:O,className:`h-8 px-2.5 text-[13px]`,children:`浏览`})]})]}),(0,v.jsxs)(`div`,{className:`flex flex-col gap-2 text-[13px]`,children:[(0,v.jsx)(`span`,{className:`font-medium text-text`,children:`模板`}),(0,v.jsx)(`div`,{className:`grid gap-3`,style:{gridTemplateColumns:`repeat(auto-fill, minmax(160px, 1fr))`},children:n.map(e=>{let t=e.id===S;return(0,v.jsxs)(`button`,{type:`button`,onClick:()=>C(e.id),className:[`text-left px-3 py-4 rounded-[var(--qd-radius-md)] border flex flex-col gap-2`,t?`border-[var(--qd-primary)] bg-[var(--qd-primary-soft)]`:`border-border bg-surface hover:border-[var(--qd-primary)]`].join(` `),"aria-pressed":t,children:[(0,v.jsx)(`div`,{className:`text-[13px] font-medium text-text`,children:e.name}),e.description?(0,v.jsx)(`div`,{className:`text-[12px] leading-4 text-text-secondary`,children:e.description}):null]},e.id)})})]})]}),(0,v.jsxs)(f,{children:[(0,v.jsx)(l,{type:`button`,variant:`outline`,onClick:a,className:`h-9 px-2.5 text-[15px]`,children:`取消`}),(0,v.jsx)(l,{type:`button`,variant:`default`,onClick:k,disabled:!T,className:`h-9 px-2.5 text-[15px]`,children:`创建并打开`})]})]})})}function S(){let[e,t]=(0,_.useState)(null);if((0,_.useEffect)(()=>{let e=c(t);return s(),e},[]),!e)return null;function n(){t(null),o()}function r(e){t(null),a(e)}return(0,v.jsx)(x,{open:!0,templates:e.templates,defaultBaseDir:e.defaultBaseDir,onSubmit:r,onCancel:n,onBrowse:i})}g.createRoot(document.getElementById(`root`)).render((0,v.jsx)(S,{}));
|
|
2
|
+
//# sourceMappingURL=projectCreateDialog-BmLqiYxn.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e,i as t,t as n}from"./jsx-runtime-DIw5wnYl.js";import{n as r}from"./utils-sEB5OZEQ.js";import{n as i}from"./constants-CkoGPQTS.js";var a=`普通编译`,o=`未命名模式`;function s(e){let t=[];for(let n of e.split(`&`)){if(!n)continue;let e=n.indexOf(`=`),r=e>=0?n.slice(0,e):n,i=e>=0?n.slice(e+1):``;r&&t.push({key:f(r),value:f(i)})}return t}function c(e){return e.filter(e=>e.key).map(e=>`${encodeURIComponent(e.key)}=${encodeURIComponent(e.value)}`).join(`&`)}function l(e){return e?{startPage:e.pathName,scene:e.scene??1001,queryParams:s(e.query)}:{startPage:``,scene:i,queryParams:[]}}function u(e){return e?e.name||e.pathName||`未命名模式`:a}function d(e,t){let n=e.indexOf(`?`);return{name:t,pathName:n>=0?e.slice(0,n):e,query:n>=0?e.slice(n+1):``,scene:null}}function f(e){try{return decodeURIComponent(e)}catch{return e}}function p(){return{selectedId:null,entries:[]}}function m(e){return e.selectedId===null?null:e.entries.find(t=>t.id===e.selectedId)?.mode??null}var h=e(t(),1),g=n(),_=h.forwardRef(({className:e,children:t,...n},i)=>(0,g.jsx)(`select`,{ref:i,className:r(`bg-surface border border-border text-text-secondary`,`h-7 px-2 rounded-[var(--qd-radius-md)] text-[13px] font-medium cursor-pointer`,`focus:outline-none focus:border-accent`,e),...n,children:t}));_.displayName=`Select`;export{l as a,d as c,o as i,c as l,p as n,u as o,m as r,s,_ as t};
|
|
2
|
+
//# sourceMappingURL=select-nFP95TxM.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e,i as t,n,t as r}from"./jsx-runtime-DIw5wnYl.js";import{l as i}from"./view-api-B-2zPBR5.js";import{a,l as o,t as s}from"./settings-api-Ccsf-Nsj.js";import{n as c,t as l}from"./settings-tab-bar-CAzrv32m.js";var u=e(n(),1),d=e(t(),1),f=r(),p=[{id:`local`,label:`本地设置`},{id:`project`,label:`项目配置`}];function m(){let[e,t]=(0,d.useState)(`local`),[n,r]=(0,d.useState)(``),[u,m]=(0,d.useState)({uploadWithSourceMap:!1});(0,d.useEffect)(()=>{let e=a(e=>{r(e.projectPath),m({uploadWithSourceMap:!!e.projectSettings?.uploadWithSourceMap})});return i(),e},[]);function h(e){let t={...u,...e};m(t),s(t)}function g(e,t,n){return(0,f.jsxs)(`label`,{className:`w-full flex items-center justify-between gap-3 px-3 py-2.5 rounded-[var(--qd-radius-md)] border border-border bg-bg cursor-pointer`,children:[(0,f.jsx)(`span`,{className:`text-[12px] text-text`,children:e}),(0,f.jsx)(c,{checked:t,onCheckedChange:n})]})}return(0,f.jsx)(`div`,{"data-testid":`settings-backdrop`,className:`fixed inset-0`,onClick:()=>void o(!1),children:(0,f.jsxs)(`div`,{"data-testid":`settings-panel`,className:`fixed top-0 right-0 h-full w-[320px] flex flex-col bg-surface text-text border-l border-border shadow-[0_8px_24px_var(--color-overlay-heavy)]`,onClick:e=>e.stopPropagation(),children:[(0,f.jsx)(l,{tabs:p,activeTab:e,onTabChange:t}),(0,f.jsxs)(`div`,{className:`flex-1 overflow-y-auto p-4`,children:[e===`local`&&(0,f.jsxs)(`div`,{className:`space-y-3`,children:[(0,f.jsx)(`div`,{className:`text-[12px] text-text-secondary`,children:`本地设置`}),g(`上传时启用 Sourcemap`,u.uploadWithSourceMap,e=>h({uploadWithSourceMap:e}))]}),e===`project`&&(0,f.jsx)(`div`,{className:`space-y-4`,children:(0,f.jsxs)(`div`,{className:`flex items-center justify-between py-2 border-b border-border`,children:[(0,f.jsx)(`span`,{className:`text-[12px] text-text-secondary`,children:`本地目录`}),(0,f.jsx)(`span`,{className:`text-[12px] text-text truncate ml-4 max-w-[180px]`,title:n,children:n})]})})]})]})})}u.createRoot(document.getElementById(`root`)).render((0,f.jsx)(m,{}));
|
|
2
|
+
//# sourceMappingURL=settings-CnpVfSWt.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{T as e,a as t,d as n,f as r,l as i,u as a}from"./ipc-channels-overlays-gIPUFnqc.js";function o(e){return i(t.SetVisible,e)}function s(e){r(t.ProjectSettingsChanged,e)}function c(e){return n(t.Init,t=>e(t))}function l(){return a(e.Get)}function u(t){return i(e.Save,t)}function d(t){return i(e.SetTheme,t)}function f(){return i(e.Restart)}function p(){return a(e.GetCdpStatus)}function m(){return a(e.GetMcpStatus)}function h(t){return n(e.Init,e=>t(e))}export{c as a,u as c,l as i,o as l,p as n,h as o,m as r,f as s,s as t,d as u};
|
|
2
|
+
//# sourceMappingURL=settings-api-Ccsf-Nsj.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e,i as t,t as n}from"./jsx-runtime-DIw5wnYl.js";import{n as r}from"./utils-sEB5OZEQ.js";import{c as i,f as a,o,p as s,r as c,u as l}from"./dist-DIFlRMKe.js";import{i as u,r as d,t as f}from"./tabs-CPKN3Mmq.js";var p=e(t(),1);function m(e){let t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function h(e){let[t,n]=p.useState(void 0);return i(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var g=n(),_=`Switch`,[v,y]=l(_),[b,x]=v(_),S=p.forwardRef((e,t)=>{let{__scopeSwitch:n,name:r,checked:i,defaultChecked:l,required:u,disabled:d,value:f=`on`,onCheckedChange:m,form:h,...v}=e,[y,x]=p.useState(null),S=a(t,e=>x(e)),C=p.useRef(!1),w=y?h||!!y.closest(`form`):!0,[T,O]=o({prop:i,defaultProp:l??!1,onChange:m,caller:_});return(0,g.jsxs)(b,{scope:n,checked:T,disabled:d,children:[(0,g.jsx)(c.button,{type:`button`,role:`switch`,"aria-checked":T,"aria-required":u,"data-state":D(T),"data-disabled":d?``:void 0,disabled:d,value:f,...v,ref:S,onClick:s(e.onClick,e=>{O(e=>!e),w&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),w&&(0,g.jsx)(E,{control:y,bubbles:!C.current,name:r,value:f,checked:T,required:u,disabled:d,form:h,style:{transform:`translateX(-100%)`}})]})});S.displayName=_;var C=`SwitchThumb`,w=p.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=x(C,n);return(0,g.jsx)(c.span,{"data-state":D(i.checked),"data-disabled":i.disabled?``:void 0,...r,ref:t})});w.displayName=C;var T=`SwitchBubbleInput`,E=p.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},o)=>{let s=p.useRef(null),c=a(s,o),l=m(n),u=h(t);return p.useEffect(()=>{let e=s.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(l!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[l,n,r]),(0,g.jsx)(`input`,{type:`checkbox`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:c,style:{...i.style,...u,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});E.displayName=T;function D(e){return e?`checked`:`unchecked`}var O=S,k=w,A=p.forwardRef(({className:e,...t},n)=>(0,g.jsx)(O,{className:r(`peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-solid border-[var(--qd-border)] bg-[var(--qd-muted)] p-0 transition-colors`,`focus-visible:outline-none focus-visible:border-[var(--qd-primary)]`,`disabled:cursor-not-allowed disabled:opacity-50`,`data-[state=checked]:border-[var(--qd-primary)] data-[state=checked]:bg-[var(--qd-primary)]`,e),...t,ref:n,children:(0,g.jsx)(k,{className:r(`pointer-events-none block size-4 rounded-full bg-[var(--qd-background)] shadow-sm transition-transform`,`data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0`)})}));A.displayName=O.displayName;function j({tabs:e,activeTab:t,onTabChange:n}){return(0,g.jsx)(f,{value:t,onValueChange:e=>n(e),className:`shrink-0 gap-0`,children:(0,g.jsx)(d,{className:`w-full`,children:e.map(e=>(0,g.jsx)(u,{value:e.id,className:`flex-1 justify-center`,children:e.label},e.id))})})}export{A as n,j as t};
|
|
2
|
+
//# sourceMappingURL=settings-tab-bar-CAzrv32m.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e,i as t,t as n}from"./jsx-runtime-DIw5wnYl.js";import{n as r}from"./utils-sEB5OZEQ.js";import{a as i,f as a,n as o,o as s,p as c,r as l,s as u,t as d,u as f}from"./dist-DIFlRMKe.js";var p=e(t(),1),m=n(),h=p.createContext(void 0);function g(e){let t=p.useContext(h);return e||t||`ltr`}function _(e){let t=e+`CollectionProvider`,[n,r]=f(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:n}=e,r=p.useRef(null),i=p.useRef(new Map).current;return(0,m.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};c.displayName=t;let l=e+`CollectionSlot`,u=i(l),d=p.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,m.jsx)(u,{ref:a(t,s(l,n).collectionRef),children:r})});d.displayName=l;let h=e+`CollectionItemSlot`,g=`data-radix-collection-item`,_=i(h),v=p.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=p.useRef(null),c=a(t,o),l=s(h,n);return p.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,m.jsx)(_,{[g]:``,ref:c,children:r})});v.displayName=h;function y(t){let n=s(e+`CollectionConsumer`,t);return p.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:c,Slot:d,ItemSlot:v},y,r]}var v=`rovingFocusGroup.onEntryFocus`,y={bubbles:!1,cancelable:!0},b=`RovingFocusGroup`,[x,S,C]=_(b),[w,T]=f(b,[C]),[ee,E]=w(b),D=p.forwardRef((e,t)=>(0,m.jsx)(x.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(x.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(O,{...e,ref:t})})}));D.displayName=b;var O=p.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:u,currentTabStopId:d,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:h,onEntryFocus:_,preventScrollOnEntryFocus:x=!1,...C}=e,w=p.useRef(null),T=a(t,w),E=g(u),[D,O]=s({prop:d,defaultProp:f??null,onChange:h,caller:b}),[k,A]=p.useState(!1),j=o(_),M=S(n),N=p.useRef(!1),[F,I]=p.useState(0);return p.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(v,j),()=>e.removeEventListener(v,j)},[j]),(0,m.jsx)(ee,{scope:n,orientation:r,dir:E,loop:i,currentTabStopId:D,onItemFocus:p.useCallback(e=>O(e),[O]),onItemShiftTab:p.useCallback(()=>A(!0),[]),onFocusableItemAdd:p.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:p.useCallback(()=>I(e=>e-1),[]),children:(0,m.jsx)(l.div,{tabIndex:k||F===0?-1:0,"data-orientation":r,...C,ref:T,style:{outline:`none`,...e.style},onMouseDown:c(e.onMouseDown,()=>{N.current=!0}),onFocus:c(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(v,y);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);P([e.find(e=>e.active),e.find(e=>e.id===D),...e].filter(Boolean).map(e=>e.ref.current),x)}}N.current=!1}),onBlur:c(e.onBlur,()=>A(!1))})})}),k=`RovingFocusGroupItem`,A=p.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,d=u(),f=a||d,h=E(k,n),g=h.currentTabStopId===f,_=S(n),{onFocusableItemAdd:v,onFocusableItemRemove:y,currentTabStopId:b}=h;return p.useEffect(()=>{if(r)return v(),()=>y()},[r,v,y]),(0,m.jsx)(x.ItemSlot,{scope:n,id:f,focusable:r,active:i,children:(0,m.jsx)(l.span,{tabIndex:g?0:-1,"data-orientation":h.orientation,...s,ref:t,onMouseDown:c(e.onMouseDown,e=>{r?h.onItemFocus(f):e.preventDefault()}),onFocus:c(e.onFocus,()=>h.onItemFocus(f)),onKeyDown:c(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){h.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=N(e,h.orientation,h.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=_().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=h.loop?F(n,r+1):n.slice(r+1)}setTimeout(()=>P(n))}}),children:typeof o==`function`?o({isCurrentTabStop:g,hasTabStop:b!=null}):o})})});A.displayName=k;var j={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function M(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function N(e,t,n){let r=M(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return j[r]}function P(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function F(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var I=D,L=A,R=`Tabs`,[te,ne]=f(R,[T]),z=T(),[B,V]=te(R),H=p.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:c,activationMode:d=`automatic`,...f}=e,p=g(c),[h,_]=s({prop:r,onChange:i,defaultProp:a??``,caller:R});return(0,m.jsx)(B,{scope:n,baseId:u(),value:h,onValueChange:_,orientation:o,dir:p,activationMode:d,children:(0,m.jsx)(l.div,{dir:p,"data-orientation":o,...f,ref:t})})});H.displayName=R;var U=`TabsList`,W=p.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=V(U,n),o=z(n);return(0,m.jsx)(I,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,m.jsx)(l.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});W.displayName=U;var G=`TabsTrigger`,K=p.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=V(G,n),s=z(n),u=Y(o.baseId,r),d=X(o.baseId,r),f=r===o.value;return(0,m.jsx)(L,{asChild:!0,...s,focusable:!i,active:f,children:(0,m.jsx)(l.button,{type:`button`,role:`tab`,"aria-selected":f,"aria-controls":d,"data-state":f?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:u,...a,ref:t,onMouseDown:c(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:c(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:c(e.onFocus,()=>{let e=o.activationMode!==`manual`;!f&&!i&&e&&o.onValueChange(r)})})})});K.displayName=G;var q=`TabsContent`,J=p.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=V(q,n),c=Y(s.baseId,r),u=X(s.baseId,r),f=r===s.value,h=p.useRef(f);return p.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,m.jsx)(d,{present:i||f,children:({present:n})=>(0,m.jsx)(l.div,{"data-state":f?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:h.current?`0s`:void 0},children:n&&a})})});J.displayName=q;function Y(e,t){return`${e}-trigger-${t}`}function X(e,t){return`${e}-content-${t}`}var Z=H,re=W,Q=K,ie=J,$=p.createContext(`underline`),ae={underline:`inline-flex items-center gap-4 border-b border-solid border-[var(--qd-border)]`,segment:`inline-flex h-[var(--qd-chip-h)] w-fit items-center justify-center rounded-lg bg-[var(--qd-muted)] p-[3px] text-text-secondary`},oe={underline:`relative -mb-px inline-flex h-[var(--qd-chip-h)] appearance-none items-center justify-center gap-1.5 whitespace-nowrap border-b-2 border-solid border-transparent bg-transparent px-1 text-sm font-medium text-text-secondary transition-colors outline-none focus-visible:text-text disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-[var(--qd-primary)] data-[state=active]:text-text`,segment:`inline-flex h-[calc(100%-1px)] flex-1 appearance-none items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-solid border-transparent bg-transparent px-3 py-1 text-sm font-medium text-text-secondary transition-colors outline-none focus-visible:border-[var(--qd-primary)] disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-text data-[state=active]:bg-[var(--qd-background)] data-[state=active]:shadow-sm`};function se({className:e,variant:t=`underline`,...n}){return(0,m.jsx)($.Provider,{value:t,children:(0,m.jsx)(Z,{className:r(`flex flex-col gap-2`,e),...n})})}function ce({className:e,...t}){let n=p.useContext($);return(0,m.jsx)(re,{className:r(ae[n],e),...t})}function le({className:e,...t}){let n=p.useContext($);return(0,m.jsx)(Q,{className:r(oe[n],e),...t})}function ue({className:e,...t}){return(0,m.jsx)(ie,{className:r(`flex-1 outline-none`,e),...t})}export{g as a,le as i,ue as n,ce as r,se as t};
|
|
2
|
+
//# sourceMappingURL=tabs-CPKN3Mmq.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e,i as t,n,t as r}from"./jsx-runtime-
|
|
2
|
-
//# sourceMappingURL=tooltip-
|
|
1
|
+
import{a as e,i as t,n,t as r}from"./jsx-runtime-DIw5wnYl.js";import{O as i,S as a,l as o}from"./view-api-B-2zPBR5.js";var s=e(n(),1),c=e(t(),1),l=r();function u(){let[e,t]=(0,c.useState)(null),n=(0,c.useRef)(null);return(0,c.useEffect)(()=>{let e=a(t);return o(),e},[]),(0,c.useLayoutEffect)(()=>{let t=n.current;if(!t||!e)return;let r=t.getBoundingClientRect();r.width<=0||r.height<=0||i({requestId:e.requestId,width:Math.ceil(r.width),height:Math.ceil(r.height)})},[e]),(0,l.jsx)(`div`,{ref:n,className:`inline-flex w-max p-1`,style:{maxWidth:e?.maxWidth},children:(0,l.jsx)(`div`,{className:`max-w-full whitespace-normal break-words rounded-[var(--qd-radius-md)] bg-[var(--qd-foreground)] px-3 py-1.5 text-xs text-[color:var(--qd-background)] shadow-[var(--qd-shadow-md)]`,children:e?.text??``})})}s.createRoot(document.getElementById(`root`)).render((0,l.jsx)(u,{}));
|
|
2
|
+
//# sourceMappingURL=tooltip-D6AxXRk5.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e,i as t,n,t as r}from"./jsx-runtime-DIw5wnYl.js";import{d as i,f as a,s as o,u as s}from"./ipc-channels-overlays-gIPUFnqc.js";import{l as c}from"./view-api-B-2zPBR5.js";import{t as l}from"./button-CB2MWjHY.js";import{a as u,i as d,n as f,o as p,r as m,t as h}from"./dialog-pHzEA8Vx.js";var g=e(n(),1),_=e(t(),1),v=r();function y(){let[e,t]=(0,_.useState)(!1),[n,r]=(0,_.useState)(null),[g,y]=(0,_.useState)(`prompt`),[b,x]=(0,_.useState)(0),[S,C]=(0,_.useState)(``),[w,T]=(0,_.useState)(`download`);(0,_.useEffect)(()=>i(o.Available,e=>{r(e),y(`prompt`),x(0),C(``),t(!0)}),[]),(0,_.useEffect)(()=>i(o.DownloadProgress,e=>{x(Math.round(e.percent))}),[]),(0,_.useEffect)(()=>{c()},[]);let E=(0,_.useCallback)(async()=>{y(`downloading`),x(0);try{let e=await s(o.Download);e.success?y(`ready`):(C(e.error||`Download failed`),T(`download`),y(`error`))}catch(e){C(e instanceof Error?e.message:String(e)),T(`download`),y(`error`)}},[]),D=(0,_.useCallback)(async()=>{try{let e=await s(o.Install);e.success||(C(e.error||`Install failed`),T(`install`),y(`error`))}catch(e){C(e instanceof Error?e.message:String(e)),T(`install`),y(`error`)}},[]),O=(0,_.useCallback)(()=>{n?.mandatory&&g!==`ready`||(t(!1),a(o.Close))},[n,g]);return n?(0,v.jsx)(h,{open:e,onOpenChange:e=>{!e&&n?.mandatory&&g!==`ready`||(t(e),e||a(o.Close))},children:(0,v.jsxs)(f,{className:`max-w-md`,children:[(0,v.jsxs)(u,{children:[(0,v.jsx)(p,{children:g===`ready`?`Ready to Install`:`Update Available`}),(0,v.jsxs)(m,{children:[g===`prompt`&&`New version ${n.version} is available.`,g===`downloading`&&`Downloading... ${b}%`,g===`ready`&&`Download complete. Click install to restart and apply the update.`,g===`error`&&`${w===`install`?`Install`:`Download`} failed: ${S}`]})]}),n.releaseNotes&&g===`prompt`&&(0,v.jsx)(`div`,{className:`max-h-40 overflow-y-auto rounded border border-border bg-surface-2 p-3 text-xs text-text-secondary whitespace-pre-wrap`,children:n.releaseNotes}),g===`downloading`&&(0,v.jsx)(`div`,{className:`h-2 w-full overflow-hidden rounded-full bg-surface-3`,children:(0,v.jsx)(`div`,{className:`h-full bg-accent transition-all duration-300`,style:{width:`${b}%`}})}),(0,v.jsxs)(d,{children:[g===`prompt`&&(0,v.jsxs)(v.Fragment,{children:[!n.mandatory&&(0,v.jsx)(l,{variant:`outline`,onClick:O,children:`Later`}),(0,v.jsx)(l,{onClick:E,children:`Download`})]}),g===`ready`&&(0,v.jsx)(l,{onClick:D,children:`Install & Restart`}),g===`error`&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(l,{variant:`outline`,onClick:O,children:`Close`}),(0,v.jsx)(l,{onClick:w===`install`?D:E,children:`Retry`})]})]})]})}):null}g.createRoot(document.getElementById(`root`)).render((0,v.jsx)(y,{}));
|
|
2
|
+
//# sourceMappingURL=updateDialog-CwndJ0Bl.js.map
|