vibe64 0.1.78 → 0.1.79
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/bin/run.js +195 -193
- package/bin/server.js +11 -9
- package/bin/upgrade-state.js +2568 -2588
- package/dist/assets/{GithubBrowserTabs-B2r19V0U.js → GithubBrowserTabs-CXjft59b.js} +1 -1
- package/dist/assets/GithubBrowserTabs-CXjft59b.js.br +0 -0
- package/dist/assets/GithubBrowserTabs-CXjft59b.js.gz +0 -0
- package/dist/assets/{LocalDatabaseServer-Ck9nZrGW.js → LocalDatabaseServer-BFzbm_N5.js} +1 -1
- package/dist/assets/LocalDatabaseServer-BFzbm_N5.js.br +0 -0
- package/dist/assets/LocalDatabaseServer-BFzbm_N5.js.gz +0 -0
- package/dist/assets/{Vibe64DashboardPageHeader-C4iTKeE0.js → Vibe64DashboardPageHeader-PKaMTKQo.js} +1 -1
- package/dist/assets/Vibe64DashboardPageHeader-PKaMTKQo.js.br +0 -0
- package/dist/assets/Vibe64DashboardPageHeader-PKaMTKQo.js.gz +0 -0
- package/dist/assets/{Vibe64DatabaseWorkspace-ChA-2QPU.js → Vibe64DatabaseWorkspace-6d4O_5R5.js} +1 -1
- package/dist/assets/Vibe64DatabaseWorkspace-6d4O_5R5.js.br +0 -0
- package/dist/assets/Vibe64DatabaseWorkspace-6d4O_5R5.js.gz +0 -0
- package/dist/assets/{Vibe64FileArea-DBEJsJSq.js → Vibe64FileArea-C18bdRqO.js} +1 -1
- package/dist/assets/Vibe64FileArea-C18bdRqO.js.br +0 -0
- package/dist/assets/Vibe64FileArea-C18bdRqO.js.gz +0 -0
- package/dist/assets/Vibe64OutputControls-OgqYYbq7.js +8 -0
- package/dist/assets/Vibe64OutputControls-OgqYYbq7.js.br +0 -0
- package/dist/assets/Vibe64OutputControls-OgqYYbq7.js.gz +0 -0
- package/dist/assets/{Vibe64OutputControls-aQCEvUL2.css → Vibe64OutputControls-gSUdkqME.css} +1 -1
- package/dist/assets/Vibe64OutputControls-gSUdkqME.css.br +0 -0
- package/dist/assets/Vibe64OutputControls-gSUdkqME.css.gz +0 -0
- package/dist/assets/{Vibe64RepositoryWorkspace-sT07hHPs.js → Vibe64RepositoryWorkspace-Cpb9aDYs.js} +1 -1
- package/dist/assets/Vibe64RepositoryWorkspace-Cpb9aDYs.js.br +0 -0
- package/dist/assets/Vibe64RepositoryWorkspace-Cpb9aDYs.js.gz +0 -0
- package/dist/assets/{Vibe64SessionFiles-Djef01EV.js → Vibe64SessionFiles-DJadIknz.js} +1 -1
- package/dist/assets/Vibe64SessionFiles-DJadIknz.js.br +0 -0
- package/dist/assets/Vibe64SessionFiles-DJadIknz.js.gz +0 -0
- package/dist/assets/{Vibe64SessionSourceEditor-CIGBLYYN.js → Vibe64SessionSourceEditor-C8XuUkUH.js} +1 -1
- package/dist/assets/Vibe64SessionSourceEditor-C8XuUkUH.js.br +0 -0
- package/dist/assets/Vibe64SessionSourceEditor-C8XuUkUH.js.gz +0 -0
- package/dist/assets/{Vibe64UiStoryboardView-CjkWoB8b.js → Vibe64UiStoryboardView-KzCGAvty.js} +1 -1
- package/dist/assets/Vibe64UiStoryboardView-KzCGAvty.js.br +0 -0
- package/dist/assets/Vibe64UiStoryboardView-KzCGAvty.js.gz +0 -0
- package/dist/assets/{_pageId_-BTjeqgTN.js → _pageId_-Dz7wuvcV.js} +1 -1
- package/dist/assets/{_sessionId_-C7Jh2bL4.js → _sessionId_-UOSJikRr.js} +1 -1
- package/dist/assets/_sessionId_-UOSJikRr.js.br +0 -0
- package/dist/assets/_sessionId_-UOSJikRr.js.gz +0 -0
- package/dist/assets/{_sessionTool_-DITdXCS4.js → _sessionTool_-SN6SNAQM.js} +1 -1
- package/dist/assets/{access-DIaPNdxr.js → access-Ba7aprTh.js} +1 -1
- package/dist/assets/access-Ba7aprTh.js.br +0 -0
- package/dist/assets/access-Ba7aprTh.js.gz +0 -0
- package/dist/assets/{app-mELSmS67.js → app-nvpa3ah6.js} +1 -1
- package/dist/assets/app-nvpa3ah6.js.br +0 -0
- package/dist/assets/app-nvpa3ah6.js.gz +0 -0
- package/dist/assets/{changes-DlxKdjdP.js → changes-WQZLBU3x.js} +1 -1
- package/dist/assets/{client-CLpGzGwX.js → client-B5r45NvF.js} +2 -2
- package/dist/assets/client-B5r45NvF.js.br +0 -0
- package/dist/assets/client-B5r45NvF.js.gz +0 -0
- package/dist/assets/{client-CL02nP02.js → client-EaJLXb4V.js} +2 -2
- package/dist/assets/client-EaJLXb4V.js.br +0 -0
- package/dist/assets/client-EaJLXb4V.js.gz +0 -0
- package/dist/assets/{dashboard-km-kuDid.js → dashboard-S0qg7Ai6.js} +1 -1
- package/dist/assets/{english-definitions-CMICWgdF.js → english-definitions-B9nc8s8Y.js} +1 -1
- package/dist/assets/english-definitions-B9nc8s8Y.js.br +0 -0
- package/dist/assets/english-definitions-B9nc8s8Y.js.gz +0 -0
- package/dist/assets/{env-DjkxkxdX.js → env-Dqyw_NCv.js} +1 -1
- package/dist/assets/env-Dqyw_NCv.js.br +0 -0
- package/dist/assets/env-Dqyw_NCv.js.gz +0 -0
- package/dist/assets/{error-C7q1-2bC.js → error-DkUVRs7I.js} +1 -1
- package/dist/assets/error-DkUVRs7I.js.br +0 -0
- package/dist/assets/error-DkUVRs7I.js.gz +0 -0
- package/dist/assets/{fileTypes-Dbn0qwKS.js → fileTypes-Dp5WZ-_A.js} +1 -1
- package/dist/assets/fileTypes-Dp5WZ-_A.js.br +0 -0
- package/dist/assets/fileTypes-Dp5WZ-_A.js.gz +0 -0
- package/dist/assets/{health-BwJ6Z251.js → health-BkO5CcRR.js} +1 -1
- package/dist/assets/health-BkO5CcRR.js.br +0 -0
- package/dist/assets/health-BkO5CcRR.js.gz +0 -0
- package/dist/assets/{history-D2TywQVv.js → history-DanS1uI3.js} +1 -1
- package/dist/assets/history-DanS1uI3.js.br +0 -0
- package/dist/assets/history-DanS1uI3.js.gz +0 -0
- package/dist/assets/{index-D14nUmm7.js → index-CeCIadYg.js} +4 -4
- package/dist/assets/index-CeCIadYg.js.br +0 -0
- package/dist/assets/index-CeCIadYg.js.gz +0 -0
- package/dist/assets/{integrations-BZFXW2Cp.js → integrations-Dh4ViP8t.js} +96 -10
- package/dist/assets/integrations-Dh4ViP8t.js.br +0 -0
- package/dist/assets/integrations-Dh4ViP8t.js.gz +0 -0
- package/dist/assets/{issues-CLvbBTek.js → issues-D3ZjHBeZ.js} +1 -1
- package/dist/assets/issues-D3ZjHBeZ.js.br +0 -0
- package/dist/assets/issues-D3ZjHBeZ.js.gz +0 -0
- package/dist/assets/{learning-DwytxEXC.js → learning-C_3lMmYJ.js} +1 -1
- package/dist/assets/{packages-BeiF8W7l.js → packages-CPSq4jBh.js} +1 -1
- package/dist/assets/packages-CPSq4jBh.js.br +0 -0
- package/dist/assets/packages-CPSq4jBh.js.gz +0 -0
- package/dist/assets/{pages-BIRQk4b8.js → pages-C-c5itHs.js} +1 -1
- package/dist/assets/{pages-BnAyUdL4.js → pages-D91yb6IJ.js} +1 -1
- package/dist/assets/pages-D91yb6IJ.js.br +0 -0
- package/dist/assets/pages-D91yb6IJ.js.gz +0 -0
- package/dist/assets/{project-GnljGud1.js → project-DTIrUrUg.js} +11 -11
- package/dist/assets/project-DTIrUrUg.js.br +0 -0
- package/dist/assets/project-DTIrUrUg.js.gz +0 -0
- package/dist/assets/{project-files-e4-Q65vT.js → project-files-Djr-58SN.js} +1 -1
- package/dist/assets/project-files-Djr-58SN.js.br +0 -0
- package/dist/assets/project-files-Djr-58SN.js.gz +0 -0
- package/dist/assets/{project-W_VltXAt.css → project-fwVeri07.css} +1 -1
- package/dist/assets/project-fwVeri07.css.br +0 -0
- package/dist/assets/project-fwVeri07.css.gz +0 -0
- package/dist/assets/{project-shared-ShellOutlet-DKYDipmC.js → project-shared-ShellOutlet-Pj_fRyAX.js} +1 -1
- package/dist/assets/project-shared-ShellOutlet-Pj_fRyAX.js.br +0 -0
- package/dist/assets/project-shared-ShellOutlet-Pj_fRyAX.js.gz +0 -0
- package/dist/assets/{project-shared-VBottomSheet-BSE28ENQ.js → project-shared-VBottomSheet-BSLhkh3o.js} +1 -1
- package/dist/assets/project-shared-VBottomSheet-BSLhkh3o.js.br +0 -0
- package/dist/assets/project-shared-VBottomSheet-BSLhkh3o.js.gz +0 -0
- package/dist/assets/{project-shared-VToolbar-CrezJP9z.js → project-shared-VToolbar-BYx2aRBU.js} +1 -1
- package/dist/assets/project-shared-VToolbar-BYx2aRBU.js.br +0 -0
- package/dist/assets/project-shared-VToolbar-BYx2aRBU.js.gz +0 -0
- package/dist/assets/{project-shared-pageNames-6Jz0BfbS.js → project-shared-pageNames-D7IBGzQh.js} +1 -1
- package/dist/assets/project-shared-pageNames-D7IBGzQh.js.br +0 -0
- package/dist/assets/project-shared-pageNames-D7IBGzQh.js.gz +0 -0
- package/dist/assets/{pull-requests-DH9gWw10.js → pull-requests-DWmXOwB8.js} +1 -1
- package/dist/assets/pull-requests-DWmXOwB8.js.br +0 -0
- package/dist/assets/pull-requests-DWmXOwB8.js.gz +0 -0
- package/dist/assets/{repository-BNltUuvb.js → repository-CNSRmrFd.js} +1 -1
- package/dist/assets/{session-Ck9aH4Yl.js → session-BITnnyzW.js} +1 -1
- package/dist/assets/session-BITnnyzW.js.br +0 -0
- package/dist/assets/session-BITnnyzW.js.gz +0 -0
- package/dist/assets/{settings-D8Ofbk56.js → settings-CkoP7vBl.js} +1 -1
- package/dist/assets/settings-CkoP7vBl.js.br +0 -0
- package/dist/assets/settings-CkoP7vBl.js.gz +0 -0
- package/dist/assets/{useArchivedVibe64Sessions-LIZjeLbd.js → useArchivedVibe64Sessions-CDKBzS4q.js} +1 -1
- package/dist/assets/useArchivedVibe64Sessions-CDKBzS4q.js.br +0 -0
- package/dist/assets/useArchivedVibe64Sessions-CDKBzS4q.js.gz +0 -0
- package/dist/assets/{vibe64AttachmentDownload-1_XfvfYp.js → vibe64AttachmentDownload-BPNgZodV.js} +1 -1
- package/dist/assets/{vibe64SavedEnvValues-Bs7r4xWE.js → vibe64SavedEnvValues-BDBfgAh7.js} +1 -1
- package/dist/assets/{vue-flow-core-iwGljzru.js → vue-flow-core-S4cIQeQZ.js} +1 -1
- package/dist/assets/vue-flow-core-S4cIQeQZ.js.br +0 -0
- package/dist/assets/vue-flow-core-S4cIQeQZ.js.gz +0 -0
- package/dist/index.html +2 -2
- package/docs/colleague-usage/auto-workflow.md +3 -2
- package/docs/colleague-usage/development-env.md +2 -2
- package/docs/colleague-usage/plans.md +35 -13
- package/docs/colleague-usage/preview-starting-application.md +6 -0
- package/docs/colleague-usage/preview-stop-and-restart.md +51 -0
- package/docs/colleague-usage/preview.md +10 -37
- package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-runtime/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-voice/package.json +1 -1
- package/node_modules/@jskit-ai/connectors-catalog/package.json +1 -1
- package/node_modules/@jskit-ai/payments-core/CHANGELOG.md +5 -0
- package/node_modules/@jskit-ai/payments-core/README.md +72 -8
- package/node_modules/@jskit-ai/payments-core/contracts/configuration.schema.json +56 -1
- package/node_modules/@jskit-ai/payments-core/contracts/conformance.json +484 -0
- package/node_modules/@jskit-ai/payments-core/locales/en.json +17 -5
- package/node_modules/@jskit-ai/payments-core/package.json +2 -1
- package/node_modules/@local/vibe64-genesis/README.md +12 -0
- package/node_modules/@local/vibe64-genesis/package.json +2 -1
- package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +54 -54
- package/node_modules/@local/vibe64-genesis/src/server/index.js +313 -311
- package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +18 -16
- package/package.json +6 -6
- package/server.bundle.mjs +33421 -33441
- package/dist/assets/GithubBrowserTabs-B2r19V0U.js.br +0 -0
- package/dist/assets/GithubBrowserTabs-B2r19V0U.js.gz +0 -0
- package/dist/assets/LocalDatabaseServer-Ck9nZrGW.js.br +0 -0
- package/dist/assets/LocalDatabaseServer-Ck9nZrGW.js.gz +0 -0
- package/dist/assets/Vibe64DashboardPageHeader-C4iTKeE0.js.br +0 -0
- package/dist/assets/Vibe64DashboardPageHeader-C4iTKeE0.js.gz +0 -0
- package/dist/assets/Vibe64DatabaseWorkspace-ChA-2QPU.js.br +0 -0
- package/dist/assets/Vibe64DatabaseWorkspace-ChA-2QPU.js.gz +0 -0
- package/dist/assets/Vibe64FileArea-DBEJsJSq.js.br +0 -0
- package/dist/assets/Vibe64FileArea-DBEJsJSq.js.gz +0 -0
- package/dist/assets/Vibe64OutputControls-DpFdKIO2.js +0 -8
- package/dist/assets/Vibe64OutputControls-DpFdKIO2.js.br +0 -0
- package/dist/assets/Vibe64OutputControls-DpFdKIO2.js.gz +0 -0
- package/dist/assets/Vibe64OutputControls-aQCEvUL2.css.br +0 -0
- package/dist/assets/Vibe64OutputControls-aQCEvUL2.css.gz +0 -0
- package/dist/assets/Vibe64RepositoryWorkspace-sT07hHPs.js.br +0 -0
- package/dist/assets/Vibe64RepositoryWorkspace-sT07hHPs.js.gz +0 -0
- package/dist/assets/Vibe64SessionFiles-Djef01EV.js.br +0 -0
- package/dist/assets/Vibe64SessionFiles-Djef01EV.js.gz +0 -0
- package/dist/assets/Vibe64SessionSourceEditor-CIGBLYYN.js.br +0 -0
- package/dist/assets/Vibe64SessionSourceEditor-CIGBLYYN.js.gz +0 -0
- package/dist/assets/Vibe64UiStoryboardView-CjkWoB8b.js.br +0 -0
- package/dist/assets/Vibe64UiStoryboardView-CjkWoB8b.js.gz +0 -0
- package/dist/assets/_sessionId_-C7Jh2bL4.js.br +0 -0
- package/dist/assets/_sessionId_-C7Jh2bL4.js.gz +0 -0
- package/dist/assets/access-DIaPNdxr.js.br +0 -0
- package/dist/assets/access-DIaPNdxr.js.gz +0 -0
- package/dist/assets/app-mELSmS67.js.br +0 -0
- package/dist/assets/app-mELSmS67.js.gz +0 -0
- package/dist/assets/client-CL02nP02.js.br +0 -0
- package/dist/assets/client-CL02nP02.js.gz +0 -0
- package/dist/assets/client-CLpGzGwX.js.br +0 -0
- package/dist/assets/client-CLpGzGwX.js.gz +0 -0
- package/dist/assets/english-definitions-CMICWgdF.js.br +0 -0
- package/dist/assets/english-definitions-CMICWgdF.js.gz +0 -0
- package/dist/assets/env-DjkxkxdX.js.br +0 -0
- package/dist/assets/env-DjkxkxdX.js.gz +0 -0
- package/dist/assets/error-C7q1-2bC.js.br +0 -0
- package/dist/assets/error-C7q1-2bC.js.gz +0 -0
- package/dist/assets/fileTypes-Dbn0qwKS.js.br +0 -0
- package/dist/assets/fileTypes-Dbn0qwKS.js.gz +0 -0
- package/dist/assets/health-BwJ6Z251.js.br +0 -0
- package/dist/assets/health-BwJ6Z251.js.gz +0 -0
- package/dist/assets/history-D2TywQVv.js.br +0 -0
- package/dist/assets/history-D2TywQVv.js.gz +0 -0
- package/dist/assets/index-D14nUmm7.js.br +0 -0
- package/dist/assets/index-D14nUmm7.js.gz +0 -0
- package/dist/assets/integrations-BZFXW2Cp.js.br +0 -0
- package/dist/assets/integrations-BZFXW2Cp.js.gz +0 -0
- package/dist/assets/issues-CLvbBTek.js.br +0 -0
- package/dist/assets/issues-CLvbBTek.js.gz +0 -0
- package/dist/assets/packages-BeiF8W7l.js.br +0 -0
- package/dist/assets/packages-BeiF8W7l.js.gz +0 -0
- package/dist/assets/pages-BnAyUdL4.js.br +0 -3
- package/dist/assets/pages-BnAyUdL4.js.gz +0 -0
- package/dist/assets/project-GnljGud1.js.br +0 -0
- package/dist/assets/project-GnljGud1.js.gz +0 -0
- package/dist/assets/project-W_VltXAt.css.br +0 -0
- package/dist/assets/project-W_VltXAt.css.gz +0 -0
- package/dist/assets/project-files-e4-Q65vT.js.br +0 -0
- package/dist/assets/project-files-e4-Q65vT.js.gz +0 -0
- package/dist/assets/project-shared-ShellOutlet-DKYDipmC.js.br +0 -0
- package/dist/assets/project-shared-ShellOutlet-DKYDipmC.js.gz +0 -0
- package/dist/assets/project-shared-VBottomSheet-BSE28ENQ.js.br +0 -0
- package/dist/assets/project-shared-VBottomSheet-BSE28ENQ.js.gz +0 -0
- package/dist/assets/project-shared-VToolbar-CrezJP9z.js.br +0 -0
- package/dist/assets/project-shared-VToolbar-CrezJP9z.js.gz +0 -0
- package/dist/assets/project-shared-pageNames-6Jz0BfbS.js.br +0 -0
- package/dist/assets/project-shared-pageNames-6Jz0BfbS.js.gz +0 -0
- package/dist/assets/pull-requests-DH9gWw10.js.br +0 -0
- package/dist/assets/pull-requests-DH9gWw10.js.gz +0 -0
- package/dist/assets/session-Ck9aH4Yl.js.br +0 -0
- package/dist/assets/session-Ck9aH4Yl.js.gz +0 -0
- package/dist/assets/settings-D8Ofbk56.js.br +0 -0
- package/dist/assets/settings-D8Ofbk56.js.gz +0 -0
- package/dist/assets/useArchivedVibe64Sessions-LIZjeLbd.js.br +0 -0
- package/dist/assets/useArchivedVibe64Sessions-LIZjeLbd.js.gz +0 -0
- package/dist/assets/vue-flow-core-iwGljzru.js.br +0 -0
- package/dist/assets/vue-flow-core-iwGljzru.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$c as inject,Al as reactive,Bc as createCommentVNode,Cl as customRef,Dl as markRaw,El as isRef,Fc as Fragment,Fl as toRef,Gc as createTextVNode,Hc as createPropsRestProxy,Hl as toDisplayString,Il as toRefs$1,Jc as defineComponent,Kc as createVNode,Lc as computed,Ll as toValue$1,Ml as ref,Nl as shallowRef,Ol as onScopeDispose,Rc as createBaseVNode,Rl as unref,Tl as getCurrentScope,Vc as createElementBlock,Vl as normalizeStyle,Yc as getCurrentInstance,Zc as h,al as onBeforeUnmount,cl as openBlock,dl as renderSlot,el as isMemoSame,fl as resolveComponent,hl as useAttrs,il as onBeforeMount,jl as readonly,ll as provide,nl as mergeProps,ol as onMounted,pl as resolveDynamicComponent,rl as nextTick,sl as onUnmounted,ul as renderList,vl as useSlots,wl as effectScope,xl as withCtx,yl as watch,zc as createBlock,zl as normalizeClass}from"./index-D14nUmm7.js";function tryOnScopeDispose(fn){if(getCurrentScope()){onScopeDispose(fn);return true}return false}function toValue(r){return typeof r===`function`?r():unref(r)}var isClient=typeof window!==`undefined`&&typeof document!==`undefined`;var isDef$1=val=>typeof val!==`undefined`;var toString=Object.prototype.toString;var isObject=val=>toString.call(val)===`[object Object]`;var noop$3=()=>{};function createFilterWrapper(filter2,fn){function wrapper(...args){return new Promise((resolve,reject)=>{Promise.resolve(filter2(()=>fn.apply(this,args),{fn,thisArg:this,args})).then(resolve).catch(reject)})}return wrapper}var bypassFilter=invoke=>{return invoke()};function pausableFilter(extendFilter=bypassFilter){const isActive=ref(true);function pause(){isActive.value=false}function resume(){isActive.value=true}const eventFilter=(...args)=>{if(isActive.value)extendFilter(...args)};return{isActive:readonly(isActive),pause,resume,eventFilter}}function promiseTimeout(ms,throwOnTimeout=false,reason=`Timeout`){return new Promise((resolve,reject)=>{if(throwOnTimeout)setTimeout(()=>reject(reason),ms);else setTimeout(resolve,ms)})}function watchWithFilter(source,cb,options={}){const{eventFilter=bypassFilter,...watchOptions}=options;return watch(source,createFilterWrapper(eventFilter,cb),watchOptions)}function watchPausable(source,cb,options={}){const{eventFilter:filter2,...watchOptions}=options;const{eventFilter,pause,resume,isActive}=pausableFilter(filter2);return{stop:watchWithFilter(source,cb,{...watchOptions,eventFilter}),pause,resume,isActive}}function toRefs(objectRef,options={}){if(!isRef(objectRef))return toRefs$1(objectRef);const result=Array.isArray(objectRef.value)?Array.from({length:objectRef.value.length}):{};for(const key in objectRef.value)result[key]=customRef(()=>({get(){return objectRef.value[key]},set(v){var _a;if((_a=toValue(options.replaceRef))!=null?_a:true){if(Array.isArray(objectRef.value)){const copy=[...objectRef.value];copy[key]=v;objectRef.value=copy}else{const newObject={...objectRef.value,[key]:v};Object.setPrototypeOf(newObject,Object.getPrototypeOf(objectRef.value));objectRef.value=newObject}}else objectRef.value[key]=v}}));return result}function createUntil(r,isNot=false){function toMatch(condition,{flush=`sync`,deep=false,timeout:timeout2,throwOnTimeout}={}){let stop=null;const promises=[new Promise(resolve=>{stop=watch(r,v=>{if(condition(v)!==isNot){stop?.();resolve(v)}},{flush,deep,immediate:true})})];if(timeout2!=null)promises.push(promiseTimeout(timeout2,throwOnTimeout).then(()=>toValue(r)).finally(()=>stop==null?void 0:stop()));return Promise.race(promises)}function toBe(value,options){if(!isRef(value))return toMatch(v=>v===value,options);const{flush=`sync`,deep=false,timeout:timeout2,throwOnTimeout}=options!=null?options:{};let stop=null;const promises=[new Promise(resolve=>{stop=watch([r,value],([v1,v2])=>{if(isNot!==(v1===v2)){stop?.();resolve(v1)}},{flush,deep,immediate:true})})];if(timeout2!=null)promises.push(promiseTimeout(timeout2,throwOnTimeout).then(()=>toValue(r)).finally(()=>{stop?.();return toValue(r)}));return Promise.race(promises)}function toBeTruthy(options){return toMatch(v=>Boolean(v),options)}function toBeNull(options){return toBe(null,options)}function toBeUndefined(options){return toBe(void 0,options)}function toBeNaN(options){return toMatch(Number.isNaN,options)}function toContains(value,options){return toMatch(v=>{const array2=Array.from(v);return array2.includes(value)||array2.includes(toValue(value))},options)}function changed(options){return changedTimes(1,options)}function changedTimes(n=1,options){let count=-1;return toMatch(()=>{count+=1;return count>=n},options)}if(Array.isArray(toValue(r)))return{toMatch,toContains,changed,changedTimes,get not(){return createUntil(r,!isNot)}};else return{toMatch,toBe,toBeTruthy,toBeNull,toBeNaN,toBeUndefined,changed,changedTimes,get not(){return createUntil(r,!isNot)}}}function until(r){return createUntil(r)}function unrefElement(elRef){var _a;const plain=toValue(elRef);return(_a=plain==null?void 0:plain.$el)!=null?_a:plain}var defaultWindow=isClient?window:void 0;function useEventListener(...args){let target;let events;let listeners;let options;if(typeof args[0]===`string`||Array.isArray(args[0])){[events,listeners,options]=args;target=defaultWindow}else[target,events,listeners,options]=args;if(!target)return noop$3;if(!Array.isArray(events))events=[events];if(!Array.isArray(listeners))listeners=[listeners];const cleanups=[];const cleanup=()=>{cleanups.forEach(fn=>fn());cleanups.length=0};const register=(el,event,listener,options2)=>{el.addEventListener(event,listener,options2);return()=>el.removeEventListener(event,listener,options2)};const stopWatch=watch(()=>[unrefElement(target),toValue(options)],([el,options2])=>{cleanup();if(!el)return;const optionsClone=isObject(options2)?{...options2}:options2;cleanups.push(...events.flatMap(event=>{return listeners.map(listener=>register(el,event,listener,optionsClone))}))},{immediate:true,flush:`post`});const stop=()=>{stopWatch();cleanup()};tryOnScopeDispose(stop);return stop}function createKeyPredicate$1(keyFilter){if(typeof keyFilter===`function`)return keyFilter;else if(typeof keyFilter===`string`)return event=>event.key===keyFilter;else if(Array.isArray(keyFilter))return event=>keyFilter.includes(event.key);return()=>true}function onKeyStroke(...args){let key;let handler;let options={};if(args.length===3){key=args[0];handler=args[1];options=args[2]}else if(args.length===2){if(typeof args[1]===`object`){key=true;handler=args[0];options=args[1]}else{key=args[0];handler=args[1]}}else{key=true;handler=args[0]}const{target=defaultWindow,eventName=`keydown`,passive=false,dedupe=false}=options;const predicate=createKeyPredicate$1(key);const listener=e=>{if(e.repeat&&toValue(dedupe))return;if(predicate(e))handler(e)};return useEventListener(target,eventName,listener,passive)}function cloneFnJSON(source){return JSON.parse(JSON.stringify(source))}function useVModel(props,key,emit,options={}){var _a,_b,_c;const{clone=false,passive=false,eventName,deep=false,defaultValue,shouldEmit}=options;const vm=getCurrentInstance();const _emit=emit||(vm==null?void 0:vm.emit)||((_a=vm==null?void 0:vm.$emit)==null?void 0:_a.bind(vm))||((_c=(_b=vm==null?void 0:vm.proxy)==null?void 0:_b.$emit)==null?void 0:_c.bind(vm==null?void 0:vm.proxy));let event=eventName;if(!key)key=`modelValue`;event=event||`update:${key.toString()}`;const cloneFn=val=>!clone?val:typeof clone===`function`?clone(val):cloneFnJSON(val);const getValue=()=>isDef$1(props[key])?cloneFn(props[key]):defaultValue;const triggerEmit=value=>{if(shouldEmit){if(shouldEmit(value))_emit(event,value)}else _emit(event,value)};if(passive){const initialValue=getValue();const proxy=ref(initialValue);let isUpdating=false;watch(()=>props[key],v=>{if(!isUpdating){isUpdating=true;proxy.value=cloneFn(v);nextTick(()=>isUpdating=false)}});watch(proxy,v=>{if(!isUpdating&&(v!==props[key]||deep))triggerEmit(v)},{deep});return proxy}else return computed({get(){return getValue()},set(value){triggerEmit(value)}})}var noop$2={value:()=>{}};function dispatch(){for(var i=0,n=arguments.length,_={},t;i<n;++i){if(!(t=arguments[i]+``)||t in _||/[\s.]/.test(t))throw new Error(`illegal type: `+t);_[t]=[]}return new Dispatch(_)}function Dispatch(_){this._=_}function parseTypenames$1(typenames,types){return typenames.trim().split(/^|\s+/).map(function(t){var name=``,i=t.indexOf(`.`);if(i>=0)name=t.slice(i+1),t=t.slice(0,i);if(t&&!types.hasOwnProperty(t))throw new Error(`unknown type: `+t);return{type:t,name}})}Dispatch.prototype=dispatch.prototype={constructor:Dispatch,on:function(typename,callback){var _=this._,T=parseTypenames$1(typename+``,_),t,i=-1,n=T.length;if(arguments.length<2){while(++i<n)if((t=(typename=T[i]).type)&&(t=get$1(_[t],typename.name)))return t;return}if(callback!=null&&typeof callback!==`function`)throw new Error(`invalid callback: `+callback);while(++i<n)if(t=(typename=T[i]).type)_[t]=set$1(_[t],typename.name,callback);else if(callback==null)for(t in _)_[t]=set$1(_[t],typename.name,null);return this},copy:function(){var copy={},_=this._;for(var t in _)copy[t]=_[t].slice();return new Dispatch(copy)},call:function(type,that){if((n=arguments.length-2)>0)for(var args=new Array(n),i=0,n,t;i<n;++i)args[i]=arguments[i+2];if(!this._.hasOwnProperty(type))throw new Error(`unknown type: `+type);for(t=this._[type],i=0,n=t.length;i<n;++i)t[i].value.apply(that,args)},apply:function(type,that,args){if(!this._.hasOwnProperty(type))throw new Error(`unknown type: `+type);for(var t=this._[type],i=0,n=t.length;i<n;++i)t[i].value.apply(that,args)}};function get$1(type,name){for(var i=0,n=type.length,c;i<n;++i)if((c=type[i]).name===name)return c.value}function set$1(type,name,callback){for(var i=0,n=type.length;i<n;++i)if(type[i].name===name){type[i]=noop$2,type=type.slice(0,i).concat(type.slice(i+1));break}if(callback!=null)type.push({name,value:callback});return type}var xhtml=`http://www.w3.org/1999/xhtml`;var namespaces={svg:`http://www.w3.org/2000/svg`,xhtml,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function namespace(name){var prefix=name+=``,i=prefix.indexOf(`:`);if(i>=0&&(prefix=name.slice(0,i))!==`xmlns`)name=name.slice(i+1);return namespaces.hasOwnProperty(prefix)?{space:namespaces[prefix],local:name}:name}function creatorInherit(name){return function(){var document2=this.ownerDocument,uri=this.namespaceURI;return uri===xhtml&&document2.documentElement.namespaceURI===xhtml?document2.createElement(name):document2.createElementNS(uri,name)}}function creatorFixed(fullname){return function(){return this.ownerDocument.createElementNS(fullname.space,fullname.local)}}function creator(name){var fullname=namespace(name);return(fullname.local?creatorFixed:creatorInherit)(fullname)}function none(){}function selector(selector2){return selector2==null?none:function(){return this.querySelector(selector2)}}function selection_select(select2){if(typeof select2!==`function`)select2=selector(select2);for(var groups=this._groups,m=groups.length,subgroups=new Array(m),j=0;j<m;++j)for(var group=groups[j],n=group.length,subgroup=subgroups[j]=new Array(n),node,subnode,i=0;i<n;++i)if((node=group[i])&&(subnode=select2.call(node,node.__data__,i,group))){if(`__data__`in node)subnode.__data__=node.__data__;subgroup[i]=subnode}return new Selection$1(subgroups,this._parents)}function array(x){return x==null?[]:Array.isArray(x)?x:Array.from(x)}function empty(){return[]}function selectorAll(selector2){return selector2==null?empty:function(){return this.querySelectorAll(selector2)}}function arrayAll(select2){return function(){return array(select2.apply(this,arguments))}}function selection_selectAll(select2){if(typeof select2===`function`)select2=arrayAll(select2);else select2=selectorAll(select2);for(var groups=this._groups,m=groups.length,subgroups=[],parents=[],j=0;j<m;++j)for(var group=groups[j],n=group.length,node,i=0;i<n;++i)if(node=group[i]){subgroups.push(select2.call(node,node.__data__,i,group));parents.push(node)}return new Selection$1(subgroups,parents)}function matcher(selector2){return function(){return this.matches(selector2)}}function childMatcher(selector2){return function(node){return node.matches(selector2)}}var find=Array.prototype.find;function childFind(match){return function(){return find.call(this.children,match)}}function childFirst(){return this.firstElementChild}function selection_selectChild(match){return this.select(match==null?childFirst:childFind(typeof match===`function`?match:childMatcher(match)))}var filter=Array.prototype.filter;function children(){return Array.from(this.children)}function childrenFilter(match){return function(){return filter.call(this.children,match)}}function selection_selectChildren(match){return this.selectAll(match==null?children:childrenFilter(typeof match===`function`?match:childMatcher(match)))}function selection_filter(match){if(typeof match!==`function`)match=matcher(match);for(var groups=this._groups,m=groups.length,subgroups=new Array(m),j=0;j<m;++j)for(var group=groups[j],n=group.length,subgroup=subgroups[j]=[],node,i=0;i<n;++i)if((node=group[i])&&match.call(node,node.__data__,i,group))subgroup.push(node);return new Selection$1(subgroups,this._parents)}function sparse(update){return new Array(update.length)}function selection_enter(){return new Selection$1(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(parent,datum2){this.ownerDocument=parent.ownerDocument;this.namespaceURI=parent.namespaceURI;this._next=null;this._parent=parent;this.__data__=datum2}EnterNode.prototype={constructor:EnterNode,appendChild:function(child){return this._parent.insertBefore(child,this._next)},insertBefore:function(child,next){return this._parent.insertBefore(child,next)},querySelector:function(selector2){return this._parent.querySelector(selector2)},querySelectorAll:function(selector2){return this._parent.querySelectorAll(selector2)}};function constant$3(x){return function(){return x}}function bindIndex(parent,group,enter,update,exit,data){var i=0,node,groupLength=group.length,dataLength=data.length;for(;i<dataLength;++i)if(node=group[i]){node.__data__=data[i];update[i]=node}else enter[i]=new EnterNode(parent,data[i]);for(;i<groupLength;++i)if(node=group[i])exit[i]=node}function bindKey(parent,group,enter,update,exit,data,key){var i,node,nodeByKeyValue=new Map,groupLength=group.length,dataLength=data.length,keyValues=new Array(groupLength),keyValue;for(i=0;i<groupLength;++i)if(node=group[i]){keyValues[i]=keyValue=key.call(node,node.__data__,i,group)+``;if(nodeByKeyValue.has(keyValue))exit[i]=node;else nodeByKeyValue.set(keyValue,node)}for(i=0;i<dataLength;++i){keyValue=key.call(parent,data[i],i,data)+``;if(node=nodeByKeyValue.get(keyValue)){update[i]=node;node.__data__=data[i];nodeByKeyValue.delete(keyValue)}else enter[i]=new EnterNode(parent,data[i])}for(i=0;i<groupLength;++i)if((node=group[i])&&nodeByKeyValue.get(keyValues[i])===node)exit[i]=node}function datum(node){return node.__data__}function selection_data(value,key){if(!arguments.length)return Array.from(this,datum);var bind=key?bindKey:bindIndex,parents=this._parents,groups=this._groups;if(typeof value!==`function`)value=constant$3(value);for(var m=groups.length,update=new Array(m),enter=new Array(m),exit=new Array(m),j=0;j<m;++j){var parent=parents[j],group=groups[j],groupLength=group.length,data=arraylike(value.call(parent,parent&&parent.__data__,j,parents)),dataLength=data.length,enterGroup=enter[j]=new Array(dataLength),updateGroup=update[j]=new Array(dataLength);bind(parent,group,enterGroup,updateGroup,exit[j]=new Array(groupLength),data,key);for(var i0=0,i1=0,previous,next;i0<dataLength;++i0)if(previous=enterGroup[i0]){if(i0>=i1)i1=i0+1;while(!(next=updateGroup[i1])&&++i1<dataLength);previous._next=next||null}}update=new Selection$1(update,parents);update._enter=enter;update._exit=exit;return update}function arraylike(data){return typeof data===`object`&&`length`in data?data:Array.from(data)}function selection_exit(){return new Selection$1(this._exit||this._groups.map(sparse),this._parents)}function selection_join(onenter,onupdate,onexit){var enter=this.enter(),update=this,exit=this.exit();if(typeof onenter===`function`){enter=onenter(enter);if(enter)enter=enter.selection()}else enter=enter.append(onenter+``);if(onupdate!=null){update=onupdate(update);if(update)update=update.selection()}if(onexit==null)exit.remove();else onexit(exit);return enter&&update?enter.merge(update).order():update}function selection_merge(context){var selection2=context.selection?context.selection():context;for(var groups0=this._groups,groups1=selection2._groups,m0=groups0.length,m1=groups1.length,m=Math.min(m0,m1),merges=new Array(m0),j=0;j<m;++j)for(var group0=groups0[j],group1=groups1[j],n=group0.length,merge=merges[j]=new Array(n),node,i=0;i<n;++i)if(node=group0[i]||group1[i])merge[i]=node;for(;j<m0;++j)merges[j]=groups0[j];return new Selection$1(merges,this._parents)}function selection_order(){for(var groups=this._groups,j=-1,m=groups.length;++j<m;)for(var group=groups[j],i=group.length-1,next=group[i],node;--i>=0;)if(node=group[i]){if(next&&node.compareDocumentPosition(next)^4)next.parentNode.insertBefore(node,next);next=node}return this}function selection_sort(compare){if(!compare)compare=ascending;function compareNode(a,b){return a&&b?compare(a.__data__,b.__data__):!a-!b}for(var groups=this._groups,m=groups.length,sortgroups=new Array(m),j=0;j<m;++j){for(var group=groups[j],n=group.length,sortgroup=sortgroups[j]=new Array(n),node,i=0;i<n;++i)if(node=group[i])sortgroup[i]=node;sortgroup.sort(compareNode)}return new Selection$1(sortgroups,this._parents).order()}function ascending(a,b){return a<b?-1:a>b?1:a>=b?0:NaN}function selection_call(){var callback=arguments[0];arguments[0]=this;callback.apply(null,arguments);return this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var groups=this._groups,j=0,m=groups.length;j<m;++j)for(var group=groups[j],i=0,n=group.length;i<n;++i){var node=group[i];if(node)return node}return null}function selection_size(){let size=0;for(const node of this)++size;return size}function selection_empty(){return!this.node()}function selection_each(callback){for(var groups=this._groups,j=0,m=groups.length;j<m;++j)for(var group=groups[j],i=0,n=group.length,node;i<n;++i)if(node=group[i])callback.call(node,node.__data__,i,group);return this}function attrRemove$1(name){return function(){this.removeAttribute(name)}}function attrRemoveNS$1(fullname){return function(){this.removeAttributeNS(fullname.space,fullname.local)}}function attrConstant$1(name,value){return function(){this.setAttribute(name,value)}}function attrConstantNS$1(fullname,value){return function(){this.setAttributeNS(fullname.space,fullname.local,value)}}function attrFunction$1(name,value){return function(){var v=value.apply(this,arguments);if(v==null)this.removeAttribute(name);else this.setAttribute(name,v)}}function attrFunctionNS$1(fullname,value){return function(){var v=value.apply(this,arguments);if(v==null)this.removeAttributeNS(fullname.space,fullname.local);else this.setAttributeNS(fullname.space,fullname.local,v)}}function selection_attr(name,value){var fullname=namespace(name);if(arguments.length<2){var node=this.node();return fullname.local?node.getAttributeNS(fullname.space,fullname.local):node.getAttribute(fullname)}return this.each((value==null?fullname.local?attrRemoveNS$1:attrRemove$1:typeof value===`function`?fullname.local?attrFunctionNS$1:attrFunction$1:fullname.local?attrConstantNS$1:attrConstant$1)(fullname,value))}function defaultView(node){return node.ownerDocument&&node.ownerDocument.defaultView||node.document&&node||node.defaultView}function styleRemove$1(name){return function(){this.style.removeProperty(name)}}function styleConstant$1(name,value,priority){return function(){this.style.setProperty(name,value,priority)}}function styleFunction$1(name,value,priority){return function(){var v=value.apply(this,arguments);if(v==null)this.style.removeProperty(name);else this.style.setProperty(name,v,priority)}}function selection_style(name,value,priority){return arguments.length>1?this.each((value==null?styleRemove$1:typeof value===`function`?styleFunction$1:styleConstant$1)(name,value,priority==null?``:priority)):styleValue(this.node(),name)}function styleValue(node,name){return node.style.getPropertyValue(name)||defaultView(node).getComputedStyle(node,null).getPropertyValue(name)}function propertyRemove(name){return function(){delete this[name]}}function propertyConstant(name,value){return function(){this[name]=value}}function propertyFunction(name,value){return function(){var v=value.apply(this,arguments);if(v==null)delete this[name];else this[name]=v}}function selection_property(name,value){return arguments.length>1?this.each((value==null?propertyRemove:typeof value===`function`?propertyFunction:propertyConstant)(name,value)):this.node()[name]}function classArray(string){return string.trim().split(/^|\s+/)}function classList(node){return node.classList||new ClassList(node)}function ClassList(node){this._node=node;this._names=classArray(node.getAttribute(`class`)||``)}ClassList.prototype={add:function(name){if(this._names.indexOf(name)<0){this._names.push(name);this._node.setAttribute(`class`,this._names.join(` `))}},remove:function(name){var i=this._names.indexOf(name);if(i>=0){this._names.splice(i,1);this._node.setAttribute(`class`,this._names.join(` `))}},contains:function(name){return this._names.indexOf(name)>=0}};function classedAdd(node,names){var list=classList(node),i=-1,n=names.length;while(++i<n)list.add(names[i])}function classedRemove(node,names){var list=classList(node),i=-1,n=names.length;while(++i<n)list.remove(names[i])}function classedTrue(names){return function(){classedAdd(this,names)}}function classedFalse(names){return function(){classedRemove(this,names)}}function classedFunction(names,value){return function(){(value.apply(this,arguments)?classedAdd:classedRemove)(this,names)}}function selection_classed(name,value){var names=classArray(name+``);if(arguments.length<2){var list=classList(this.node()),i=-1,n=names.length;while(++i<n)if(!list.contains(names[i]))return false;return true}return this.each((typeof value===`function`?classedFunction:value?classedTrue:classedFalse)(names,value))}function textRemove(){this.textContent=``}function textConstant$1(value){return function(){this.textContent=value}}function textFunction$1(value){return function(){var v=value.apply(this,arguments);this.textContent=v==null?``:v}}function selection_text(value){return arguments.length?this.each(value==null?textRemove:(typeof value===`function`?textFunction$1:textConstant$1)(value)):this.node().textContent}function htmlRemove(){this.innerHTML=``}function htmlConstant(value){return function(){this.innerHTML=value}}function htmlFunction(value){return function(){var v=value.apply(this,arguments);this.innerHTML=v==null?``:v}}function selection_html(value){return arguments.length?this.each(value==null?htmlRemove:(typeof value===`function`?htmlFunction:htmlConstant)(value)):this.node().innerHTML}function raise(){if(this.nextSibling)this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(name){var create2=typeof name===`function`?name:creator(name);return this.select(function(){return this.appendChild(create2.apply(this,arguments))})}function constantNull(){return null}function selection_insert(name,before){var create2=typeof name===`function`?name:creator(name),select2=before==null?constantNull:typeof before===`function`?before:selector(before);return this.select(function(){return this.insertBefore(create2.apply(this,arguments),select2.apply(this,arguments)||null)})}function remove(){var parent=this.parentNode;if(parent)parent.removeChild(this)}function selection_remove(){return this.each(remove)}function selection_cloneShallow(){var clone=this.cloneNode(false),parent=this.parentNode;return parent?parent.insertBefore(clone,this.nextSibling):clone}function selection_cloneDeep(){var clone=this.cloneNode(true),parent=this.parentNode;return parent?parent.insertBefore(clone,this.nextSibling):clone}function selection_clone(deep){return this.select(deep?selection_cloneDeep:selection_cloneShallow)}function selection_datum(value){return arguments.length?this.property(`__data__`,value):this.node().__data__}function contextListener(listener){return function(event){listener.call(this,event,this.__data__)}}function parseTypenames(typenames){return typenames.trim().split(/^|\s+/).map(function(t){var name=``,i=t.indexOf(`.`);if(i>=0)name=t.slice(i+1),t=t.slice(0,i);return{type:t,name}})}function onRemove(typename){return function(){var on=this.__on;if(!on)return;for(var j=0,i=-1,m=on.length,o;j<m;++j)if(o=on[j],(!typename.type||o.type===typename.type)&&o.name===typename.name)this.removeEventListener(o.type,o.listener,o.options);else on[++i]=o;if(++i)on.length=i;else delete this.__on}}function onAdd(typename,value,options){return function(){var on=this.__on,o,listener=contextListener(value);if(on){for(var j=0,m=on.length;j<m;++j)if((o=on[j]).type===typename.type&&o.name===typename.name){this.removeEventListener(o.type,o.listener,o.options);this.addEventListener(o.type,o.listener=listener,o.options=options);o.value=value;return}}this.addEventListener(typename.type,listener,options);o={type:typename.type,name:typename.name,value,listener,options};if(!on)this.__on=[o];else on.push(o)}}function selection_on(typename,value,options){var typenames=parseTypenames(typename+``),i,n=typenames.length,t;if(arguments.length<2){var on=this.node().__on;if(on){for(var j=0,m=on.length,o;j<m;++j)for(i=0,o=on[j];i<n;++i)if((t=typenames[i]).type===o.type&&t.name===o.name)return o.value}return}on=value?onAdd:onRemove;for(i=0;i<n;++i)this.each(on(typenames[i],value,options));return this}function dispatchEvent(node,type,params){var window2=defaultView(node),event=window2.CustomEvent;if(typeof event===`function`)event=new event(type,params);else{event=window2.document.createEvent(`Event`);if(params)event.initEvent(type,params.bubbles,params.cancelable),event.detail=params.detail;else event.initEvent(type,false,false)}node.dispatchEvent(event)}function dispatchConstant(type,params){return function(){return dispatchEvent(this,type,params)}}function dispatchFunction(type,params){return function(){return dispatchEvent(this,type,params.apply(this,arguments))}}function selection_dispatch(type,params){return this.each((typeof params===`function`?dispatchFunction:dispatchConstant)(type,params))}function*selection_iterator(){for(var groups=this._groups,j=0,m=groups.length;j<m;++j)for(var group=groups[j],i=0,n=group.length,node;i<n;++i)if(node=group[i])yield node}var root=[null];function Selection$1(groups,parents){this._groups=groups;this._parents=parents}function selection(){return new Selection$1([[document.documentElement]],root)}function selection_selection(){return this}Selection$1.prototype=selection.prototype={constructor:Selection$1,select:selection_select,selectAll:selection_selectAll,selectChild:selection_selectChild,selectChildren:selection_selectChildren,filter:selection_filter,data:selection_data,enter:selection_enter,exit:selection_exit,join:selection_join,merge:selection_merge,selection:selection_selection,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch,[Symbol.iterator]:selection_iterator};function select(selector2){return typeof selector2===`string`?new Selection$1([[document.querySelector(selector2)]],[document.documentElement]):new Selection$1([[selector2]],root)}function sourceEvent(event){let sourceEvent2;while(sourceEvent2=event.sourceEvent)event=sourceEvent2;return event}function pointer(event,node){event=sourceEvent(event);if(node===void 0)node=event.currentTarget;if(node){var svg=node.ownerSVGElement||node;if(svg.createSVGPoint){var point=svg.createSVGPoint();point.x=event.clientX,point.y=event.clientY;point=point.matrixTransform(node.getScreenCTM().inverse());return[point.x,point.y]}if(node.getBoundingClientRect){var rect=node.getBoundingClientRect();return[event.clientX-rect.left-node.clientLeft,event.clientY-rect.top-node.clientTop]}}return[event.pageX,event.pageY]}var nonpassive={passive:false};var nonpassivecapture={capture:true,passive:false};function nopropagation$1(event){event.stopImmediatePropagation()}function noevent$1(event){event.preventDefault();event.stopImmediatePropagation()}function dragDisable(view){var root2=view.document.documentElement,selection2=select(view).on(`dragstart.drag`,noevent$1,nonpassivecapture);if(`onselectstart`in root2)selection2.on(`selectstart.drag`,noevent$1,nonpassivecapture);else{root2.__noselect=root2.style.MozUserSelect;root2.style.MozUserSelect=`none`}}function yesdrag(view,noclick){var root2=view.document.documentElement,selection2=select(view).on(`dragstart.drag`,null);if(noclick){selection2.on(`click.drag`,noevent$1,nonpassivecapture);setTimeout(function(){selection2.on(`click.drag`,null)},0)}if(`onselectstart`in root2)selection2.on(`selectstart.drag`,null);else{root2.style.MozUserSelect=root2.__noselect;delete root2.__noselect}}var constant$2=x=>()=>x;function DragEvent(type,{sourceEvent:sourceEvent2,subject,target,identifier,active,x,y,dx,dy,dispatch:dispatch2}){Object.defineProperties(this,{type:{value:type,enumerable:true,configurable:true},sourceEvent:{value:sourceEvent2,enumerable:true,configurable:true},subject:{value:subject,enumerable:true,configurable:true},target:{value:target,enumerable:true,configurable:true},identifier:{value:identifier,enumerable:true,configurable:true},active:{value:active,enumerable:true,configurable:true},x:{value:x,enumerable:true,configurable:true},y:{value:y,enumerable:true,configurable:true},dx:{value:dx,enumerable:true,configurable:true},dy:{value:dy,enumerable:true,configurable:true},_:{value:dispatch2}})}DragEvent.prototype.on=function(){var value=this._.on.apply(this._,arguments);return value===this._?this:value};function defaultFilter$1(event){return!event.ctrlKey&&!event.button}function defaultContainer(){return this.parentNode}function defaultSubject(event,d){return d==null?{x:event.x,y:event.y}:d}function defaultTouchable$1(){return navigator.maxTouchPoints||`ontouchstart`in this}function drag(){var filter2=defaultFilter$1,container=defaultContainer,subject=defaultSubject,touchable=defaultTouchable$1,gestures={},listeners=dispatch(`start`,`drag`,`end`),active=0,mousedownx,mousedowny,mousemoving,touchending,clickDistance2=0;function drag2(selection2){selection2.on(`mousedown.drag`,mousedowned).filter(touchable).on(`touchstart.drag`,touchstarted).on(`touchmove.drag`,touchmoved,nonpassive).on(`touchend.drag touchcancel.drag`,touchended).style(`touch-action`,`none`).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}function mousedowned(event,d){if(touchending||!filter2.call(this,event,d))return;var gesture=beforestart(this,container.call(this,event,d),event,d,`mouse`);if(!gesture)return;select(event.view).on(`mousemove.drag`,mousemoved,nonpassivecapture).on(`mouseup.drag`,mouseupped,nonpassivecapture);dragDisable(event.view);nopropagation$1(event);mousemoving=false;mousedownx=event.clientX;mousedowny=event.clientY;gesture(`start`,event)}function mousemoved(event){noevent$1(event);if(!mousemoving){var dx=event.clientX-mousedownx,dy=event.clientY-mousedowny;mousemoving=dx*dx+dy*dy>clickDistance2}gestures.mouse(`drag`,event)}function mouseupped(event){select(event.view).on(`mousemove.drag mouseup.drag`,null);yesdrag(event.view,mousemoving);noevent$1(event);gestures.mouse(`end`,event)}function touchstarted(event,d){if(!filter2.call(this,event,d))return;var touches=event.changedTouches,c=container.call(this,event,d),n=touches.length,i=0,gesture;for(;i<n;++i)if(gesture=beforestart(this,c,event,d,touches[i].identifier,touches[i])){nopropagation$1(event);gesture(`start`,event,touches[i])}}function touchmoved(event){var touches=event.changedTouches,n=touches.length,i=0,gesture;for(;i<n;++i)if(gesture=gestures[touches[i].identifier]){noevent$1(event);gesture(`drag`,event,touches[i])}}function touchended(event){var touches=event.changedTouches,n=touches.length,i,gesture;if(touchending)clearTimeout(touchending);touchending=setTimeout(function(){touchending=null},500);for(i=0;i<n;++i)if(gesture=gestures[touches[i].identifier]){nopropagation$1(event);gesture(`end`,event,touches[i])}}function beforestart(that,container2,event,d,identifier,touch){var dispatch2=listeners.copy(),p=pointer(touch||event,container2),dx,dy,s;if((s=subject.call(that,new DragEvent(`beforestart`,{sourceEvent:event,target:drag2,identifier,active,x:p[0],y:p[1],dx:0,dy:0,dispatch:dispatch2}),d))==null)return;dx=s.x-p[0]||0;dy=s.y-p[1]||0;return function gesture(type,event2,touch2){var p0=p,n;switch(type){case`start`:gestures[identifier]=gesture,n=active++;break;case`end`:delete gestures[identifier],--active;case`drag`:p=pointer(touch2||event2,container2),n=active}dispatch2.call(type,that,new DragEvent(type,{sourceEvent:event2,subject:s,target:drag2,identifier,active:n,x:p[0]+dx,y:p[1]+dy,dx:p[0]-p0[0],dy:p[1]-p0[1],dispatch:dispatch2}),d)}}drag2.filter=function(_){return arguments.length?(filter2=typeof _===`function`?_:constant$2(!!_),drag2):filter2};drag2.container=function(_){return arguments.length?(container=typeof _===`function`?_:constant$2(_),drag2):container};drag2.subject=function(_){return arguments.length?(subject=typeof _===`function`?_:constant$2(_),drag2):subject};drag2.touchable=function(_){return arguments.length?(touchable=typeof _===`function`?_:constant$2(!!_),drag2):touchable};drag2.on=function(){var value=listeners.on.apply(listeners,arguments);return value===listeners?drag2:value};drag2.clickDistance=function(_){return arguments.length?(clickDistance2=(_=+_)*_,drag2):Math.sqrt(clickDistance2)};return drag2}function define(constructor,factory,prototype){constructor.prototype=factory.prototype=prototype;prototype.constructor=constructor}function extend(parent,definition){var prototype=Object.create(parent.prototype);for(var key in definition)prototype[key]=definition[key];return prototype}function Color(){}var darker=.7;var brighter=1/darker;var reI=`\\s*([+-]?\\d+)\\s*`;var reN=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`;var reP=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`;var reHex=/^#([0-9a-f]{3,8})$/;var reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`);var reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`);var reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`);var reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`);var reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`);var reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);var named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};define(Color,color,{copy(channels){return Object.assign(new this.constructor,this,channels)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:color_formatHex8,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb});function color_formatHex(){return this.rgb().formatHex()}function color_formatHex8(){return this.rgb().formatHex8()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(format){var m,l;format=(format+``).trim().toLowerCase();return(m=reHex.exec(format))?(l=m[1].length,m=parseInt(m[1],16),l===6?rgbn(m):l===3?new Rgb(m>>8&15|m>>4&240,m>>4&15|m&240,(m&15)<<4|m&15,1):l===8?rgba(m>>24&255,m>>16&255,m>>8&255,(m&255)/255):l===4?rgba(m>>12&15|m>>8&240,m>>8&15|m>>4&240,m>>4&15|m&240,((m&15)<<4|m&15)/255):null):(m=reRgbInteger.exec(format))?new Rgb(m[1],m[2],m[3],1):(m=reRgbPercent.exec(format))?new Rgb(m[1]*255/100,m[2]*255/100,m[3]*255/100,1):(m=reRgbaInteger.exec(format))?rgba(m[1],m[2],m[3],m[4]):(m=reRgbaPercent.exec(format))?rgba(m[1]*255/100,m[2]*255/100,m[3]*255/100,m[4]):(m=reHslPercent.exec(format))?hsla(m[1],m[2]/100,m[3]/100,1):(m=reHslaPercent.exec(format))?hsla(m[1],m[2]/100,m[3]/100,m[4]):named.hasOwnProperty(format)?rgbn(named[format]):format===`transparent`?new Rgb(NaN,NaN,NaN,0):null}function rgbn(n){return new Rgb(n>>16&255,n>>8&255,n&255,1)}function rgba(r,g,b,a){if(a<=0)r=g=b=NaN;return new Rgb(r,g,b,a)}function rgbConvert(o){if(!(o instanceof Color))o=color(o);if(!o)return new Rgb;o=o.rgb();return new Rgb(o.r,o.g,o.b,o.opacity)}function rgb(r,g,b,opacity){return arguments.length===1?rgbConvert(r):new Rgb(r,g,b,opacity==null?1:opacity)}function Rgb(r,g,b,opacity){this.r=+r;this.g=+g;this.b=+b;this.opacity=+opacity}define(Rgb,rgb,extend(Color,{brighter(k){k=k==null?brighter:Math.pow(brighter,k);return new Rgb(this.r*k,this.g*k,this.b*k,this.opacity)},darker(k){k=k==null?darker:Math.pow(darker,k);return new Rgb(this.r*k,this.g*k,this.b*k,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const a=clampa(this.opacity);return`${a===1?`rgb(`:`rgba(`}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a===1?`)`:`, ${a})`}`}function clampa(opacity){return isNaN(opacity)?1:Math.max(0,Math.min(1,opacity))}function clampi(value){return Math.max(0,Math.min(255,Math.round(value)||0))}function hex(value){value=clampi(value);return(value<16?`0`:``)+value.toString(16)}function hsla(h2,s,l,a){if(a<=0)h2=s=l=NaN;else if(l<=0||l>=1)h2=s=NaN;else if(s<=0)h2=NaN;return new Hsl(h2,s,l,a)}function hslConvert(o){if(o instanceof Hsl)return new Hsl(o.h,o.s,o.l,o.opacity);if(!(o instanceof Color))o=color(o);if(!o)return new Hsl;if(o instanceof Hsl)return o;o=o.rgb();var r=o.r/255,g=o.g/255,b=o.b/255,min=Math.min(r,g,b),max=Math.max(r,g,b),h2=NaN,s=max-min,l=(max+min)/2;if(s){if(r===max)h2=(g-b)/s+(g<b)*6;else if(g===max)h2=(b-r)/s+2;else h2=(r-g)/s+4;s/=l<.5?max+min:2-max-min;h2*=60}else s=l>0&&l<1?0:h2;return new Hsl(h2,s,l,o.opacity)}function hsl(h2,s,l,opacity){return arguments.length===1?hslConvert(h2):new Hsl(h2,s,l,opacity==null?1:opacity)}function Hsl(h2,s,l,opacity){this.h=+h2;this.s=+s;this.l=+l;this.opacity=+opacity}define(Hsl,hsl,extend(Color,{brighter(k){k=k==null?brighter:Math.pow(brighter,k);return new Hsl(this.h,this.s,this.l*k,this.opacity)},darker(k){k=k==null?darker:Math.pow(darker,k);return new Hsl(this.h,this.s,this.l*k,this.opacity)},rgb(){var h2=this.h%360+(this.h<0)*360,s=isNaN(h2)||isNaN(this.s)?0:this.s,l=this.l,m2=l+(l<.5?l:1-l)*s,m1=2*l-m2;return new Rgb(hsl2rgb(h2>=240?h2-240:h2+120,m1,m2),hsl2rgb(h2,m1,m2),hsl2rgb(h2<120?h2+240:h2-120,m1,m2),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const a=clampa(this.opacity);return`${a===1?`hsl(`:`hsla(`}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${a===1?`)`:`, ${a})`}`}}));function clamph(value){value=(value||0)%360;return value<0?value+360:value}function clampt(value){return Math.max(0,Math.min(1,value||0))}function hsl2rgb(h2,m1,m2){return(h2<60?m1+(m2-m1)*h2/60:h2<180?m2:h2<240?m1+(m2-m1)*(240-h2)/60:m1)*255}var constant$1=x=>()=>x;function linear(a,d){return function(t){return a+t*d}}function exponential(a,b,y){return a=Math.pow(a,y),b=Math.pow(b,y)-a,y=1/y,function(t){return Math.pow(a+t*b,y)}}function gamma(y){return(y=+y)===1?nogamma:function(a,b){return b-a?exponential(a,b,y):constant$1(isNaN(a)?b:a)}}function nogamma(a,b){var d=b-a;return d?linear(a,d):constant$1(isNaN(a)?b:a)}var interpolateRgb=function rgbGamma(y){var color2=gamma(y);function rgb$1(start2,end){var r=color2((start2=rgb(start2)).r,(end=rgb(end)).r),g=color2(start2.g,end.g),b=color2(start2.b,end.b),opacity=nogamma(start2.opacity,end.opacity);return function(t){start2.r=r(t);start2.g=g(t);start2.b=b(t);start2.opacity=opacity(t);return start2+``}}rgb$1.gamma=rgbGamma;return rgb$1}(1);function numberArray(a,b){if(!b)b=[];var n=a?Math.min(b.length,a.length):0,c=b.slice(),i;return function(t){for(i=0;i<n;++i)c[i]=a[i]*(1-t)+b[i]*t;return c}}function isNumberArray(x){return ArrayBuffer.isView(x)&&!(x instanceof DataView)}function genericArray(a,b){var nb=b?b.length:0,na=a?Math.min(nb,a.length):0,x=new Array(na),c=new Array(nb),i=0;for(;i<na;++i)x[i]=interpolate$1(a[i],b[i]);for(;i<nb;++i)c[i]=b[i];return function(t){for(i=0;i<na;++i)c[i]=x[i](t);return c}}function date(a,b){var d=new Date;return a=+a,b=+b,function(t){return d.setTime(a*(1-t)+b*t),d}}function interpolateNumber(a,b){return a=+a,b=+b,function(t){return a*(1-t)+b*t}}function object(a,b){var i={},c={},k;if(a===null||typeof a!==`object`)a={};if(b===null||typeof b!==`object`)b={};for(k in b)if(k in a)i[k]=interpolate$1(a[k],b[k]);else c[k]=b[k];return function(t){for(k in i)c[k]=i[k](t);return c}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;var reB=new RegExp(reA.source,`g`);function zero(b){return function(){return b}}function one(b){return function(t){return b(t)+``}}function interpolateString(a,b){var bi=reA.lastIndex=reB.lastIndex=0,am,bm,bs,i=-1,s=[],q=[];a=a+``,b=b+``;while((am=reA.exec(a))&&(bm=reB.exec(b))){if((bs=bm.index)>bi){bs=b.slice(bi,bs);if(s[i])s[i]+=bs;else s[++i]=bs}if((am=am[0])===(bm=bm[0])){if(s[i])s[i]+=bm;else s[++i]=bm}else{s[++i]=null;q.push({i,x:interpolateNumber(am,bm)})}bi=reB.lastIndex}if(bi<b.length){bs=b.slice(bi);if(s[i])s[i]+=bs;else s[++i]=bs}return s.length<2?q[0]?one(q[0].x):zero(b):(b=q.length,function(t){for(var i2=0,o;i2<b;++i2)s[(o=q[i2]).i]=o.x(t);return s.join(``)})}function interpolate$1(a,b){var t=typeof b,c;return b==null||t===`boolean`?constant$1(b):(t===`number`?interpolateNumber:t===`string`?(c=color(b))?(b=c,interpolateRgb):interpolateString:b instanceof color?interpolateRgb:b instanceof Date?date:isNumberArray(b)?numberArray:Array.isArray(b)?genericArray:typeof b.valueOf!==`function`&&typeof b.toString!==`function`||isNaN(b)?object:interpolateNumber)(a,b)}var degrees=180/Math.PI;var identity$1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function decompose(a,b,c,d,e,f){var scaleX,scaleY,skewX;if(scaleX=Math.sqrt(a*a+b*b))a/=scaleX,b/=scaleX;if(skewX=a*c+b*d)c-=a*skewX,d-=b*skewX;if(scaleY=Math.sqrt(c*c+d*d))c/=scaleY,d/=scaleY,skewX/=scaleY;if(a*d<b*c)a=-a,b=-b,skewX=-skewX,scaleX=-scaleX;return{translateX:e,translateY:f,rotate:Math.atan2(b,a)*degrees,skewX:Math.atan(skewX)*degrees,scaleX,scaleY}}var svgNode;function parseCss(value){const m=new(typeof DOMMatrix===`function`?DOMMatrix:WebKitCSSMatrix)(value+``);return m.isIdentity?identity$1:decompose(m.a,m.b,m.c,m.d,m.e,m.f)}function parseSvg(value){if(value==null)return identity$1;if(!svgNode)svgNode=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);svgNode.setAttribute(`transform`,value);if(!(value=svgNode.transform.baseVal.consolidate()))return identity$1;value=value.matrix;return decompose(value.a,value.b,value.c,value.d,value.e,value.f)}function interpolateTransform(parse,pxComma,pxParen,degParen){function pop(s){return s.length?s.pop()+` `:``}function translate(xa,ya,xb,yb,s,q){if(xa!==xb||ya!==yb){var i=s.push(`translate(`,null,pxComma,null,pxParen);q.push({i:i-4,x:interpolateNumber(xa,xb)},{i:i-2,x:interpolateNumber(ya,yb)})}else if(xb||yb)s.push(`translate(`+xb+pxComma+yb+pxParen)}function rotate(a,b,s,q){if(a!==b){if(a-b>180)b+=360;else if(b-a>180)a+=360;q.push({i:s.push(pop(s)+`rotate(`,null,degParen)-2,x:interpolateNumber(a,b)})}else if(b)s.push(pop(s)+`rotate(`+b+degParen)}function skewX(a,b,s,q){if(a!==b)q.push({i:s.push(pop(s)+`skewX(`,null,degParen)-2,x:interpolateNumber(a,b)});else if(b)s.push(pop(s)+`skewX(`+b+degParen)}function scale(xa,ya,xb,yb,s,q){if(xa!==xb||ya!==yb){var i=s.push(pop(s)+`scale(`,null,`,`,null,`)`);q.push({i:i-4,x:interpolateNumber(xa,xb)},{i:i-2,x:interpolateNumber(ya,yb)})}else if(xb!==1||yb!==1)s.push(pop(s)+`scale(`+xb+`,`+yb+`)`)}return function(a,b){var s=[],q=[];a=parse(a),b=parse(b);translate(a.translateX,a.translateY,b.translateX,b.translateY,s,q);rotate(a.rotate,b.rotate,s,q);skewX(a.skewX,b.skewX,s,q);scale(a.scaleX,a.scaleY,b.scaleX,b.scaleY,s,q);a=b=null;return function(t){var i=-1,n=q.length,o;while(++i<n)s[(o=q[i]).i]=o.x(t);return s.join(``)}}}var interpolateTransformCss=interpolateTransform(parseCss,`px, `,`px)`,`deg)`);var interpolateTransformSvg=interpolateTransform(parseSvg,`, `,`)`,`)`);var epsilon2=1e-12;function cosh(x){return((x=Math.exp(x))+1/x)/2}function sinh(x){return((x=Math.exp(x))-1/x)/2}function tanh(x){return((x=Math.exp(2*x))-1)/(x+1)}var interpolateZoom=function zoomRho(rho,rho2,rho4){function zoom2(p0,p1){var ux0=p0[0],uy0=p0[1],w0=p0[2],ux1=p1[0],uy1=p1[1],w1=p1[2],dx=ux1-ux0,dy=uy1-uy0,d2=dx*dx+dy*dy,i,S;if(d2<epsilon2){S=Math.log(w1/w0)/rho;i=function(t){return[ux0+t*dx,uy0+t*dy,w0*Math.exp(rho*t*S)]}}else{var d1=Math.sqrt(d2),b0=(w1*w1-w0*w0+rho4*d2)/(2*w0*rho2*d1),b1=(w1*w1-w0*w0-rho4*d2)/(2*w1*rho2*d1),r0=Math.log(Math.sqrt(b0*b0+1)-b0);S=(Math.log(Math.sqrt(b1*b1+1)-b1)-r0)/rho;i=function(t){var s=t*S,coshr0=cosh(r0),u=w0/(rho2*d1)*(coshr0*tanh(rho*s+r0)-sinh(r0));return[ux0+u*dx,uy0+u*dy,w0*coshr0/cosh(rho*s+r0)]}}i.duration=S*1e3*rho/Math.SQRT2;return i}zoom2.rho=function(_){var _1=Math.max(.001,+_),_2=_1*_1;return zoomRho(_1,_2,_2*_2)};return zoom2}(Math.SQRT2,2,4);var frame=0;var timeout$1=0;var interval=0;var pokeDelay=1e3;var taskHead;var taskTail;var clockLast=0;var clockNow=0;var clockSkew=0;var clock=typeof performance===`object`&&performance.now?performance:Date;var setFrame=typeof window===`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(f){setTimeout(f,17)};function now(){return clockNow||(setFrame(clearNow),clockNow=clock.now()+clockSkew)}function clearNow(){clockNow=0}function Timer(){this._call=this._time=this._next=null}Timer.prototype=timer.prototype={constructor:Timer,restart:function(callback,delay,time){if(typeof callback!==`function`)throw new TypeError(`callback is not a function`);time=(time==null?now():+time)+(delay==null?0:+delay);if(!this._next&&taskTail!==this){if(taskTail)taskTail._next=this;else taskHead=this;taskTail=this}this._call=callback;this._time=time;sleep()},stop:function(){if(this._call){this._call=null;this._time=Infinity;sleep()}}};function timer(callback,delay,time){var t=new Timer;t.restart(callback,delay,time);return t}function timerFlush(){now();++frame;var t=taskHead,e;while(t){if((e=clockNow-t._time)>=0)t._call.call(void 0,e);t=t._next}--frame}function wake(){clockNow=(clockLast=clock.now())+clockSkew;frame=timeout$1=0;try{timerFlush()}finally{frame=0;nap();clockNow=0}}function poke(){var now2=clock.now(),delay=now2-clockLast;if(delay>pokeDelay)clockSkew-=delay,clockLast=now2}function nap(){var t0,t1=taskHead,t2,time=Infinity;while(t1)if(t1._call){if(time>t1._time)time=t1._time;t0=t1,t1=t1._next}else{t2=t1._next,t1._next=null;t1=t0?t0._next=t2:taskHead=t2}taskTail=t0;sleep(time)}function sleep(time){if(frame)return;if(timeout$1)timeout$1=clearTimeout(timeout$1);if(time-clockNow>24){if(time<Infinity)timeout$1=setTimeout(wake,time-clock.now()-clockSkew);if(interval)interval=clearInterval(interval)}else{if(!interval)clockLast=clock.now(),interval=setInterval(poke,pokeDelay);frame=1,setFrame(wake)}}function timeout(callback,delay,time){var t=new Timer;delay=delay==null?0:+delay;t.restart(elapsed=>{t.stop();callback(elapsed+delay)},delay,time);return t}var emptyOn=dispatch(`start`,`end`,`cancel`,`interrupt`);var emptyTween=[];var CREATED=0;var SCHEDULED=1;var STARTING=2;var STARTED=3;var RUNNING=4;var ENDING=5;var ENDED=6;function schedule(node,name,id2,index,group,timing){var schedules=node.__transition;if(!schedules)node.__transition={};else if(id2 in schedules)return;create(node,id2,{name,index,group,on:emptyOn,tween:emptyTween,time:timing.time,delay:timing.delay,duration:timing.duration,ease:timing.ease,timer:null,state:CREATED})}function init(node,id2){var schedule2=get(node,id2);if(schedule2.state>CREATED)throw new Error(`too late; already scheduled`);return schedule2}function set(node,id2){var schedule2=get(node,id2);if(schedule2.state>STARTED)throw new Error(`too late; already running`);return schedule2}function get(node,id2){var schedule2=node.__transition;if(!schedule2||!(schedule2=schedule2[id2]))throw new Error(`transition not found`);return schedule2}function create(node,id2,self){var schedules=node.__transition,tween;schedules[id2]=self;self.timer=timer(schedule2,0,self.time);function schedule2(elapsed){self.state=SCHEDULED;self.timer.restart(start2,self.delay,self.time);if(self.delay<=elapsed)start2(elapsed-self.delay)}function start2(elapsed){var i,j,n,o;if(self.state!==SCHEDULED)return stop();for(i in schedules){o=schedules[i];if(o.name!==self.name)continue;if(o.state===STARTED)return timeout(start2);if(o.state===RUNNING){o.state=ENDED;o.timer.stop();o.on.call(`interrupt`,node,node.__data__,o.index,o.group);delete schedules[i]}else if(+i<id2){o.state=ENDED;o.timer.stop();o.on.call(`cancel`,node,node.__data__,o.index,o.group);delete schedules[i]}}timeout(function(){if(self.state===STARTED){self.state=RUNNING;self.timer.restart(tick,self.delay,self.time);tick(elapsed)}});self.state=STARTING;self.on.call(`start`,node,node.__data__,self.index,self.group);if(self.state!==STARTING)return;self.state=STARTED;tween=new Array(n=self.tween.length);for(i=0,j=-1;i<n;++i)if(o=self.tween[i].value.call(node,node.__data__,self.index,self.group))tween[++j]=o;tween.length=j+1}function tick(elapsed){var t=elapsed<self.duration?self.ease.call(null,elapsed/self.duration):(self.timer.restart(stop),self.state=ENDING,1),i=-1,n=tween.length;while(++i<n)tween[i].call(node,t);if(self.state===ENDING){self.on.call(`end`,node,node.__data__,self.index,self.group);stop()}}function stop(){self.state=ENDED;self.timer.stop();delete schedules[id2];for(var i in schedules)return;delete node.__transition}}function interrupt(node,name){var schedules=node.__transition,schedule2,active,empty2=true,i;if(!schedules)return;name=name==null?null:name+``;for(i in schedules){if((schedule2=schedules[i]).name!==name){empty2=false;continue}active=schedule2.state>STARTING&&schedule2.state<ENDING;schedule2.state=ENDED;schedule2.timer.stop();schedule2.on.call(active?`interrupt`:`cancel`,node,node.__data__,schedule2.index,schedule2.group);delete schedules[i]}if(empty2)delete node.__transition}function selection_interrupt(name){return this.each(function(){interrupt(this,name)})}function tweenRemove(id2,name){var tween0,tween1;return function(){var schedule2=set(this,id2),tween=schedule2.tween;if(tween!==tween0){tween1=tween0=tween;for(var i=0,n=tween1.length;i<n;++i)if(tween1[i].name===name){tween1=tween1.slice();tween1.splice(i,1);break}}schedule2.tween=tween1}}function tweenFunction(id2,name,value){var tween0,tween1;if(typeof value!==`function`)throw new Error;return function(){var schedule2=set(this,id2),tween=schedule2.tween;if(tween!==tween0){tween1=(tween0=tween).slice();for(var t={name,value},i=0,n=tween1.length;i<n;++i)if(tween1[i].name===name){tween1[i]=t;break}if(i===n)tween1.push(t)}schedule2.tween=tween1}}function transition_tween(name,value){var id2=this._id;name+=``;if(arguments.length<2){var tween=get(this.node(),id2).tween;for(var i=0,n=tween.length,t;i<n;++i)if((t=tween[i]).name===name)return t.value;return null}return this.each((value==null?tweenRemove:tweenFunction)(id2,name,value))}function tweenValue(transition,name,value){var id2=transition._id;transition.each(function(){var schedule2=set(this,id2);(schedule2.value||(schedule2.value={}))[name]=value.apply(this,arguments)});return function(node){return get(node,id2).value[name]}}function interpolate(a,b){var c;return(typeof b===`number`?interpolateNumber:b instanceof color?interpolateRgb:(c=color(b))?(b=c,interpolateRgb):interpolateString)(a,b)}function attrRemove(name){return function(){this.removeAttribute(name)}}function attrRemoveNS(fullname){return function(){this.removeAttributeNS(fullname.space,fullname.local)}}function attrConstant(name,interpolate2,value1){var string00,string1=value1+``,interpolate0;return function(){var string0=this.getAttribute(name);return string0===string1?null:string0===string00?interpolate0:interpolate0=interpolate2(string00=string0,value1)}}function attrConstantNS(fullname,interpolate2,value1){var string00,string1=value1+``,interpolate0;return function(){var string0=this.getAttributeNS(fullname.space,fullname.local);return string0===string1?null:string0===string00?interpolate0:interpolate0=interpolate2(string00=string0,value1)}}function attrFunction(name,interpolate2,value){var string00,string10,interpolate0;return function(){var string0,value1=value(this),string1;if(value1==null)return void this.removeAttribute(name);string0=this.getAttribute(name);string1=value1+``;return string0===string1?null:string0===string00&&string1===string10?interpolate0:(string10=string1,interpolate0=interpolate2(string00=string0,value1))}}function attrFunctionNS(fullname,interpolate2,value){var string00,string10,interpolate0;return function(){var string0,value1=value(this),string1;if(value1==null)return void this.removeAttributeNS(fullname.space,fullname.local);string0=this.getAttributeNS(fullname.space,fullname.local);string1=value1+``;return string0===string1?null:string0===string00&&string1===string10?interpolate0:(string10=string1,interpolate0=interpolate2(string00=string0,value1))}}function transition_attr(name,value){var fullname=namespace(name),i=fullname===`transform`?interpolateTransformSvg:interpolate;return this.attrTween(name,typeof value===`function`?(fullname.local?attrFunctionNS:attrFunction)(fullname,i,tweenValue(this,`attr.`+name,value)):value==null?(fullname.local?attrRemoveNS:attrRemove)(fullname):(fullname.local?attrConstantNS:attrConstant)(fullname,i,value))}function attrInterpolate(name,i){return function(t){this.setAttribute(name,i.call(this,t))}}function attrInterpolateNS(fullname,i){return function(t){this.setAttributeNS(fullname.space,fullname.local,i.call(this,t))}}function attrTweenNS(fullname,value){var t0,i0;function tween(){var i=value.apply(this,arguments);if(i!==i0)t0=(i0=i)&&attrInterpolateNS(fullname,i);return t0}tween._value=value;return tween}function attrTween(name,value){var t0,i0;function tween(){var i=value.apply(this,arguments);if(i!==i0)t0=(i0=i)&&attrInterpolate(name,i);return t0}tween._value=value;return tween}function transition_attrTween(name,value){var key=`attr.`+name;if(arguments.length<2)return(key=this.tween(key))&&key._value;if(value==null)return this.tween(key,null);if(typeof value!==`function`)throw new Error;var fullname=namespace(name);return this.tween(key,(fullname.local?attrTweenNS:attrTween)(fullname,value))}function delayFunction(id2,value){return function(){init(this,id2).delay=+value.apply(this,arguments)}}function delayConstant(id2,value){return value=+value,function(){init(this,id2).delay=value}}function transition_delay(value){var id2=this._id;return arguments.length?this.each((typeof value===`function`?delayFunction:delayConstant)(id2,value)):get(this.node(),id2).delay}function durationFunction(id2,value){return function(){set(this,id2).duration=+value.apply(this,arguments)}}function durationConstant(id2,value){return value=+value,function(){set(this,id2).duration=value}}function transition_duration(value){var id2=this._id;return arguments.length?this.each((typeof value===`function`?durationFunction:durationConstant)(id2,value)):get(this.node(),id2).duration}function easeConstant(id2,value){if(typeof value!==`function`)throw new Error;return function(){set(this,id2).ease=value}}function transition_ease(value){var id2=this._id;return arguments.length?this.each(easeConstant(id2,value)):get(this.node(),id2).ease}function easeVarying(id2,value){return function(){var v=value.apply(this,arguments);if(typeof v!==`function`)throw new Error;set(this,id2).ease=v}}function transition_easeVarying(value){if(typeof value!==`function`)throw new Error;return this.each(easeVarying(this._id,value))}function transition_filter(match){if(typeof match!==`function`)match=matcher(match);for(var groups=this._groups,m=groups.length,subgroups=new Array(m),j=0;j<m;++j)for(var group=groups[j],n=group.length,subgroup=subgroups[j]=[],node,i=0;i<n;++i)if((node=group[i])&&match.call(node,node.__data__,i,group))subgroup.push(node);return new Transition(subgroups,this._parents,this._name,this._id)}function transition_merge(transition){if(transition._id!==this._id)throw new Error;for(var groups0=this._groups,groups1=transition._groups,m0=groups0.length,m1=groups1.length,m=Math.min(m0,m1),merges=new Array(m0),j=0;j<m;++j)for(var group0=groups0[j],group1=groups1[j],n=group0.length,merge=merges[j]=new Array(n),node,i=0;i<n;++i)if(node=group0[i]||group1[i])merge[i]=node;for(;j<m0;++j)merges[j]=groups0[j];return new Transition(merges,this._parents,this._name,this._id)}function start(name){return(name+``).trim().split(/^|\s+/).every(function(t){var i=t.indexOf(`.`);if(i>=0)t=t.slice(0,i);return!t||t===`start`})}function onFunction(id2,name,listener){var on0,on1,sit=start(name)?init:set;return function(){var schedule2=sit(this,id2),on=schedule2.on;if(on!==on0)(on1=(on0=on).copy()).on(name,listener);schedule2.on=on1}}function transition_on(name,listener){var id2=this._id;return arguments.length<2?get(this.node(),id2).on.on(name):this.each(onFunction(id2,name,listener))}function removeFunction(id2){return function(){var parent=this.parentNode;for(var i in this.__transition)if(+i!==id2)return;if(parent)parent.removeChild(this)}}function transition_remove(){return this.on(`end.remove`,removeFunction(this._id))}function transition_select(select2){var name=this._name,id2=this._id;if(typeof select2!==`function`)select2=selector(select2);for(var groups=this._groups,m=groups.length,subgroups=new Array(m),j=0;j<m;++j)for(var group=groups[j],n=group.length,subgroup=subgroups[j]=new Array(n),node,subnode,i=0;i<n;++i)if((node=group[i])&&(subnode=select2.call(node,node.__data__,i,group))){if(`__data__`in node)subnode.__data__=node.__data__;subgroup[i]=subnode;schedule(subgroup[i],name,id2,i,subgroup,get(node,id2))}return new Transition(subgroups,this._parents,name,id2)}function transition_selectAll(select2){var name=this._name,id2=this._id;if(typeof select2!==`function`)select2=selectorAll(select2);for(var groups=this._groups,m=groups.length,subgroups=[],parents=[],j=0;j<m;++j)for(var group=groups[j],n=group.length,node,i=0;i<n;++i)if(node=group[i]){for(var children2=select2.call(node,node.__data__,i,group),child,inherit2=get(node,id2),k=0,l=children2.length;k<l;++k)if(child=children2[k])schedule(child,name,id2,k,children2,inherit2);subgroups.push(children2);parents.push(node)}return new Transition(subgroups,parents,name,id2)}var Selection=selection.prototype.constructor;function transition_selection(){return new Selection(this._groups,this._parents)}function styleNull(name,interpolate2){var string00,string10,interpolate0;return function(){var string0=styleValue(this,name),string1=(this.style.removeProperty(name),styleValue(this,name));return string0===string1?null:string0===string00&&string1===string10?interpolate0:interpolate0=interpolate2(string00=string0,string10=string1)}}function styleRemove(name){return function(){this.style.removeProperty(name)}}function styleConstant(name,interpolate2,value1){var string00,string1=value1+``,interpolate0;return function(){var string0=styleValue(this,name);return string0===string1?null:string0===string00?interpolate0:interpolate0=interpolate2(string00=string0,value1)}}function styleFunction(name,interpolate2,value){var string00,string10,interpolate0;return function(){var string0=styleValue(this,name),value1=value(this),string1=value1+``;if(value1==null)string1=value1=(this.style.removeProperty(name),styleValue(this,name));return string0===string1?null:string0===string00&&string1===string10?interpolate0:(string10=string1,interpolate0=interpolate2(string00=string0,value1))}}function styleMaybeRemove(id2,name){var on0,on1,listener0,key=`style.`+name,event=`end.`+key,remove2;return function(){var schedule2=set(this,id2),on=schedule2.on,listener=schedule2.value[key]==null?remove2||(remove2=styleRemove(name)):void 0;if(on!==on0||listener0!==listener)(on1=(on0=on).copy()).on(event,listener0=listener);schedule2.on=on1}}function transition_style(name,value,priority){var i=(name+=``)===`transform`?interpolateTransformCss:interpolate;return value==null?this.styleTween(name,styleNull(name,i)).on(`end.style.`+name,styleRemove(name)):typeof value===`function`?this.styleTween(name,styleFunction(name,i,tweenValue(this,`style.`+name,value))).each(styleMaybeRemove(this._id,name)):this.styleTween(name,styleConstant(name,i,value),priority).on(`end.style.`+name,null)}function styleInterpolate(name,i,priority){return function(t){this.style.setProperty(name,i.call(this,t),priority)}}function styleTween(name,value,priority){var t,i0;function tween(){var i=value.apply(this,arguments);if(i!==i0)t=(i0=i)&&styleInterpolate(name,i,priority);return t}tween._value=value;return tween}function transition_styleTween(name,value,priority){var key=`style.`+(name+=``);if(arguments.length<2)return(key=this.tween(key))&&key._value;if(value==null)return this.tween(key,null);if(typeof value!==`function`)throw new Error;return this.tween(key,styleTween(name,value,priority==null?``:priority))}function textConstant(value){return function(){this.textContent=value}}function textFunction(value){return function(){var value1=value(this);this.textContent=value1==null?``:value1}}function transition_text(value){return this.tween(`text`,typeof value===`function`?textFunction(tweenValue(this,`text`,value)):textConstant(value==null?``:value+``))}function textInterpolate(i){return function(t){this.textContent=i.call(this,t)}}function textTween(value){var t0,i0;function tween(){var i=value.apply(this,arguments);if(i!==i0)t0=(i0=i)&&textInterpolate(i);return t0}tween._value=value;return tween}function transition_textTween(value){var key=`text`;if(arguments.length<1)return(key=this.tween(key))&&key._value;if(value==null)return this.tween(key,null);if(typeof value!==`function`)throw new Error;return this.tween(key,textTween(value))}function transition_transition(){var name=this._name,id0=this._id,id1=newId();for(var groups=this._groups,m=groups.length,j=0;j<m;++j)for(var group=groups[j],n=group.length,node,i=0;i<n;++i)if(node=group[i]){var inherit2=get(node,id0);schedule(node,name,id1,i,group,{time:inherit2.time+inherit2.delay+inherit2.duration,delay:0,duration:inherit2.duration,ease:inherit2.ease})}return new Transition(groups,this._parents,name,id1)}function transition_end(){var on0,on1,that=this,id2=that._id,size=that.size();return new Promise(function(resolve,reject){var cancel={value:reject},end={value:function(){if(--size===0)resolve()}};that.each(function(){var schedule2=set(this,id2),on=schedule2.on;if(on!==on0){on1=(on0=on).copy();on1._.cancel.push(cancel);on1._.interrupt.push(cancel);on1._.end.push(end)}schedule2.on=on1});if(size===0)resolve()})}var id=0;function Transition(groups,parents,name,id2){this._groups=groups;this._parents=parents;this._name=name;this._id=id2}function newId(){return++id}var selection_prototype=selection.prototype;Transition.prototype={constructor:Transition,select:transition_select,selectAll:transition_selectAll,selectChild:selection_prototype.selectChild,selectChildren:selection_prototype.selectChildren,filter:transition_filter,merge:transition_merge,selection:transition_selection,transition:transition_transition,call:selection_prototype.call,nodes:selection_prototype.nodes,node:selection_prototype.node,size:selection_prototype.size,empty:selection_prototype.empty,each:selection_prototype.each,on:transition_on,attr:transition_attr,attrTween:transition_attrTween,style:transition_style,styleTween:transition_styleTween,text:transition_text,textTween:transition_textTween,remove:transition_remove,tween:transition_tween,delay:transition_delay,duration:transition_duration,ease:transition_ease,easeVarying:transition_easeVarying,end:transition_end,[Symbol.iterator]:selection_prototype[Symbol.iterator]};function cubicInOut(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var defaultTiming={time:null,delay:0,duration:250,ease:cubicInOut};function inherit(node,id2){var timing;while(!(timing=node.__transition)||!(timing=timing[id2]))if(!(node=node.parentNode))throw new Error(`transition ${id2} not found`);return timing}function selection_transition(name){var id2,timing;if(name instanceof Transition)id2=name._id,name=name._name;else id2=newId(),(timing=defaultTiming).time=now(),name=name==null?null:name+``;for(var groups=this._groups,m=groups.length,j=0;j<m;++j)for(var group=groups[j],n=group.length,node,i=0;i<n;++i)if(node=group[i])schedule(node,name,id2,i,group,timing||inherit(node,id2));return new Transition(groups,this._parents,name,id2)}selection.prototype.interrupt=selection_interrupt;selection.prototype.transition=selection_transition;var constant=x=>()=>x;function ZoomEvent(type,{sourceEvent:sourceEvent2,target,transform,dispatch:dispatch2}){Object.defineProperties(this,{type:{value:type,enumerable:true,configurable:true},sourceEvent:{value:sourceEvent2,enumerable:true,configurable:true},target:{value:target,enumerable:true,configurable:true},transform:{value:transform,enumerable:true,configurable:true},_:{value:dispatch2}})}function Transform(k,x,y){this.k=k;this.x=x;this.y=y}Transform.prototype={constructor:Transform,scale:function(k){return k===1?this:new Transform(this.k*k,this.x,this.y)},translate:function(x,y){return x===0&y===0?this:new Transform(this.k,this.x+this.k*x,this.y+this.k*y)},apply:function(point){return[point[0]*this.k+this.x,point[1]*this.k+this.y]},applyX:function(x){return x*this.k+this.x},applyY:function(y){return y*this.k+this.y},invert:function(location){return[(location[0]-this.x)/this.k,(location[1]-this.y)/this.k]},invertX:function(x){return(x-this.x)/this.k},invertY:function(y){return(y-this.y)/this.k},rescaleX:function(x){return x.copy().domain(x.range().map(this.invertX,this).map(x.invert,x))},rescaleY:function(y){return y.copy().domain(y.range().map(this.invertY,this).map(y.invert,y))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var identity=new Transform(1,0,0);Transform.prototype;function nopropagation(event){event.stopImmediatePropagation()}function noevent(event){event.preventDefault();event.stopImmediatePropagation()}function defaultFilter(event){return(!event.ctrlKey||event.type===`wheel`)&&!event.button}function defaultExtent(){var e=this;if(e instanceof SVGElement){e=e.ownerSVGElement||e;if(e.hasAttribute(`viewBox`)){e=e.viewBox.baseVal;return[[e.x,e.y],[e.x+e.width,e.y+e.height]]}return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}return[[0,0],[e.clientWidth,e.clientHeight]]}function defaultTransform(){return this.__zoom||identity}function defaultWheelDelta(event){return-event.deltaY*(event.deltaMode===1?.05:event.deltaMode?1:.002)*(event.ctrlKey?10:1)}function defaultTouchable(){return navigator.maxTouchPoints||`ontouchstart`in this}function defaultConstrain(transform,extent,translateExtent){var dx0=transform.invertX(extent[0][0])-translateExtent[0][0],dx1=transform.invertX(extent[1][0])-translateExtent[1][0],dy0=transform.invertY(extent[0][1])-translateExtent[0][1],dy1=transform.invertY(extent[1][1])-translateExtent[1][1];return transform.translate(dx1>dx0?(dx0+dx1)/2:Math.min(0,dx0)||Math.max(0,dx1),dy1>dy0?(dy0+dy1)/2:Math.min(0,dy0)||Math.max(0,dy1))}function zoom(){var filter2=defaultFilter,extent=defaultExtent,constrain=defaultConstrain,wheelDelta2=defaultWheelDelta,touchable=defaultTouchable,scaleExtent=[0,Infinity],translateExtent=[[-Infinity,-Infinity],[Infinity,Infinity]],duration=250,interpolate2=interpolateZoom,listeners=dispatch(`start`,`zoom`,`end`),touchstarting,touchfirst,touchending,touchDelay=500,wheelDelay=150,clickDistance2=0,tapDistance=10;function zoom2(selection2){selection2.property(`__zoom`,defaultTransform).on(`wheel.zoom`,wheeled,{passive:false}).on(`mousedown.zoom`,mousedowned).on(`dblclick.zoom`,dblclicked).filter(touchable).on(`touchstart.zoom`,touchstarted).on(`touchmove.zoom`,touchmoved).on(`touchend.zoom touchcancel.zoom`,touchended).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}zoom2.transform=function(collection,transform,point,event){var selection2=collection.selection?collection.selection():collection;selection2.property(`__zoom`,defaultTransform);if(collection!==selection2)schedule2(collection,transform,point,event);else selection2.interrupt().each(function(){gesture(this,arguments).event(event).start().zoom(null,typeof transform===`function`?transform.apply(this,arguments):transform).end()})};zoom2.scaleBy=function(selection2,k,p,event){zoom2.scaleTo(selection2,function(){return this.__zoom.k*(typeof k===`function`?k.apply(this,arguments):k)},p,event)};zoom2.scaleTo=function(selection2,k,p,event){zoom2.transform(selection2,function(){var e=extent.apply(this,arguments),t0=this.__zoom,p0=p==null?centroid(e):typeof p===`function`?p.apply(this,arguments):p,p1=t0.invert(p0),k1=typeof k===`function`?k.apply(this,arguments):k;return constrain(translate(scale(t0,k1),p0,p1),e,translateExtent)},p,event)};zoom2.translateBy=function(selection2,x,y,event){zoom2.transform(selection2,function(){return constrain(this.__zoom.translate(typeof x===`function`?x.apply(this,arguments):x,typeof y===`function`?y.apply(this,arguments):y),extent.apply(this,arguments),translateExtent)},null,event)};zoom2.translateTo=function(selection2,x,y,p,event){zoom2.transform(selection2,function(){var e=extent.apply(this,arguments),t=this.__zoom,p0=p==null?centroid(e):typeof p===`function`?p.apply(this,arguments):p;return constrain(identity.translate(p0[0],p0[1]).scale(t.k).translate(typeof x===`function`?-x.apply(this,arguments):-x,typeof y===`function`?-y.apply(this,arguments):-y),e,translateExtent)},p,event)};function scale(transform,k){k=Math.max(scaleExtent[0],Math.min(scaleExtent[1],k));return k===transform.k?transform:new Transform(k,transform.x,transform.y)}function translate(transform,p0,p1){var x=p0[0]-p1[0]*transform.k,y=p0[1]-p1[1]*transform.k;return x===transform.x&&y===transform.y?transform:new Transform(transform.k,x,y)}function centroid(extent2){return[(+extent2[0][0]+ +extent2[1][0])/2,(+extent2[0][1]+ +extent2[1][1])/2]}function schedule2(transition,transform,point,event){transition.on(`start.zoom`,function(){gesture(this,arguments).event(event).start()}).on(`interrupt.zoom end.zoom`,function(){gesture(this,arguments).event(event).end()}).tween(`zoom`,function(){var that=this,args=arguments,g=gesture(that,args).event(event),e=extent.apply(that,args),p=point==null?centroid(e):typeof point===`function`?point.apply(that,args):point,w=Math.max(e[1][0]-e[0][0],e[1][1]-e[0][1]),a=that.__zoom,b=typeof transform===`function`?transform.apply(that,args):transform,i=interpolate2(a.invert(p).concat(w/a.k),b.invert(p).concat(w/b.k));return function(t){if(t===1)t=b;else{var l=i(t),k=w/l[2];t=new Transform(k,p[0]-l[0]*k,p[1]-l[1]*k)}g.zoom(null,t)}})}function gesture(that,args,clean){return!clean&&that.__zooming||new Gesture(that,args)}function Gesture(that,args){this.that=that;this.args=args;this.active=0;this.sourceEvent=null;this.extent=extent.apply(that,args);this.taps=0}Gesture.prototype={event:function(event){if(event)this.sourceEvent=event;return this},start:function(){if(++this.active===1){this.that.__zooming=this;this.emit(`start`)}return this},zoom:function(key,transform){if(this.mouse&&key!==`mouse`)this.mouse[1]=transform.invert(this.mouse[0]);if(this.touch0&&key!==`touch`)this.touch0[1]=transform.invert(this.touch0[0]);if(this.touch1&&key!==`touch`)this.touch1[1]=transform.invert(this.touch1[0]);this.that.__zoom=transform;this.emit(`zoom`);return this},end:function(){if(--this.active===0){delete this.that.__zooming;this.emit(`end`)}return this},emit:function(type){var d=select(this.that).datum();listeners.call(type,this.that,new ZoomEvent(type,{sourceEvent:this.sourceEvent,target:zoom2,type,transform:this.that.__zoom,dispatch:listeners}),d)}};function wheeled(event,...args){if(!filter2.apply(this,arguments))return;var g=gesture(this,args).event(event),t=this.__zoom,k=Math.max(scaleExtent[0],Math.min(scaleExtent[1],t.k*Math.pow(2,wheelDelta2.apply(this,arguments)))),p=pointer(event);if(g.wheel){if(g.mouse[0][0]!==p[0]||g.mouse[0][1]!==p[1])g.mouse[1]=t.invert(g.mouse[0]=p);clearTimeout(g.wheel)}else if(t.k===k)return;else{g.mouse=[p,t.invert(p)];interrupt(this);g.start()}noevent(event);g.wheel=setTimeout(wheelidled,wheelDelay);g.zoom(`mouse`,constrain(translate(scale(t,k),g.mouse[0],g.mouse[1]),g.extent,translateExtent));function wheelidled(){g.wheel=null;g.end()}}function mousedowned(event,...args){if(touchending||!filter2.apply(this,arguments))return;var currentTarget=event.currentTarget,g=gesture(this,args,true).event(event),v=select(event.view).on(`mousemove.zoom`,mousemoved,true).on(`mouseup.zoom`,mouseupped,true),p=pointer(event,currentTarget),x0=event.clientX,y0=event.clientY;dragDisable(event.view);nopropagation(event);g.mouse=[p,this.__zoom.invert(p)];interrupt(this);g.start();function mousemoved(event2){noevent(event2);if(!g.moved){var dx=event2.clientX-x0,dy=event2.clientY-y0;g.moved=dx*dx+dy*dy>clickDistance2}g.event(event2).zoom(`mouse`,constrain(translate(g.that.__zoom,g.mouse[0]=pointer(event2,currentTarget),g.mouse[1]),g.extent,translateExtent))}function mouseupped(event2){v.on(`mousemove.zoom mouseup.zoom`,null);yesdrag(event2.view,g.moved);noevent(event2);g.event(event2).end()}}function dblclicked(event,...args){if(!filter2.apply(this,arguments))return;var t0=this.__zoom,p0=pointer(event.changedTouches?event.changedTouches[0]:event,this),p1=t0.invert(p0),k1=t0.k*(event.shiftKey?.5:2),t1=constrain(translate(scale(t0,k1),p0,p1),extent.apply(this,args),translateExtent);noevent(event);if(duration>0)select(this).transition().duration(duration).call(schedule2,t1,p0,event);else select(this).call(zoom2.transform,t1,p0,event)}function touchstarted(event,...args){if(!filter2.apply(this,arguments))return;var touches=event.touches,n=touches.length,g=gesture(this,args,event.changedTouches.length===n).event(event),started,i,t,p;nopropagation(event);for(i=0;i<n;++i){t=touches[i],p=pointer(t,this);p=[p,this.__zoom.invert(p),t.identifier];if(!g.touch0)g.touch0=p,started=true,g.taps=1+!!touchstarting;else if(!g.touch1&&g.touch0[2]!==p[2])g.touch1=p,g.taps=0}if(touchstarting)touchstarting=clearTimeout(touchstarting);if(started){if(g.taps<2)touchfirst=p[0],touchstarting=setTimeout(function(){touchstarting=null},touchDelay);interrupt(this);g.start()}}function touchmoved(event,...args){if(!this.__zooming)return;var g=gesture(this,args).event(event),touches=event.changedTouches,n=touches.length,i,t,p,l;noevent(event);for(i=0;i<n;++i){t=touches[i],p=pointer(t,this);if(g.touch0&&g.touch0[2]===t.identifier)g.touch0[0]=p;else if(g.touch1&&g.touch1[2]===t.identifier)g.touch1[0]=p}t=g.that.__zoom;if(g.touch1){var p0=g.touch0[0],l0=g.touch0[1],p1=g.touch1[0],l1=g.touch1[1],dp=(dp=p1[0]-p0[0])*dp+(dp=p1[1]-p0[1])*dp,dl=(dl=l1[0]-l0[0])*dl+(dl=l1[1]-l0[1])*dl;t=scale(t,Math.sqrt(dp/dl));p=[(p0[0]+p1[0])/2,(p0[1]+p1[1])/2];l=[(l0[0]+l1[0])/2,(l0[1]+l1[1])/2]}else if(g.touch0)p=g.touch0[0],l=g.touch0[1];else return;g.zoom(`touch`,constrain(translate(t,p,l),g.extent,translateExtent))}function touchended(event,...args){if(!this.__zooming)return;var g=gesture(this,args).event(event),touches=event.changedTouches,n=touches.length,i,t;nopropagation(event);if(touchending)clearTimeout(touchending);touchending=setTimeout(function(){touchending=null},touchDelay);for(i=0;i<n;++i){t=touches[i];if(g.touch0&&g.touch0[2]===t.identifier)delete g.touch0;else if(g.touch1&&g.touch1[2]===t.identifier)delete g.touch1}if(g.touch1&&!g.touch0)g.touch0=g.touch1,delete g.touch1;if(g.touch0)g.touch0[1]=this.__zoom.invert(g.touch0[0]);else{g.end();if(g.taps===2){t=pointer(t,this);if(Math.hypot(touchfirst[0]-t[0],touchfirst[1]-t[1])<tapDistance){var p=select(this).on(`dblclick.zoom`);if(p)p.apply(this,arguments)}}}}zoom2.wheelDelta=function(_){return arguments.length?(wheelDelta2=typeof _===`function`?_:constant(+_),zoom2):wheelDelta2};zoom2.filter=function(_){return arguments.length?(filter2=typeof _===`function`?_:constant(!!_),zoom2):filter2};zoom2.touchable=function(_){return arguments.length?(touchable=typeof _===`function`?_:constant(!!_),zoom2):touchable};zoom2.extent=function(_){return arguments.length?(extent=typeof _===`function`?_:constant([[+_[0][0],+_[0][1]],[+_[1][0],+_[1][1]]]),zoom2):extent};zoom2.scaleExtent=function(_){return arguments.length?(scaleExtent[0]=+_[0],scaleExtent[1]=+_[1],zoom2):[scaleExtent[0],scaleExtent[1]]};zoom2.translateExtent=function(_){return arguments.length?(translateExtent[0][0]=+_[0][0],translateExtent[1][0]=+_[1][0],translateExtent[0][1]=+_[0][1],translateExtent[1][1]=+_[1][1],zoom2):[[translateExtent[0][0],translateExtent[0][1]],[translateExtent[1][0],translateExtent[1][1]]]};zoom2.constrain=function(_){return arguments.length?(constrain=_,zoom2):constrain};zoom2.duration=function(_){return arguments.length?(duration=+_,zoom2):duration};zoom2.interpolate=function(_){return arguments.length?(interpolate2=_,zoom2):interpolate2};zoom2.on=function(){var value=listeners.on.apply(listeners,arguments);return value===listeners?zoom2:value};zoom2.clickDistance=function(_){return arguments.length?(clickDistance2=(_=+_)*_,zoom2):Math.sqrt(clickDistance2)};zoom2.tapDistance=function(_){return arguments.length?(tapDistance=+_,zoom2):tapDistance};return zoom2}var Position=(Position2=>{Position2[`Left`]=`left`;Position2[`Top`]=`top`;Position2[`Right`]=`right`;Position2[`Bottom`]=`bottom`;return Position2})(Position||{});var SelectionMode=(SelectionMode2=>{SelectionMode2[`Partial`]=`partial`;SelectionMode2[`Full`]=`full`;return SelectionMode2})(SelectionMode||{});var ConnectionLineType=(ConnectionLineType2=>{ConnectionLineType2[`Bezier`]=`default`;ConnectionLineType2[`SimpleBezier`]=`simple-bezier`;ConnectionLineType2[`Straight`]=`straight`;ConnectionLineType2[`Step`]=`step`;ConnectionLineType2[`SmoothStep`]=`smoothstep`;return ConnectionLineType2})(ConnectionLineType||{});var ConnectionMode=(ConnectionMode2=>{ConnectionMode2[`Strict`]=`strict`;ConnectionMode2[`Loose`]=`loose`;return ConnectionMode2})(ConnectionMode||{});var MarkerType=(MarkerType2=>{MarkerType2[`Arrow`]=`arrow`;MarkerType2[`ArrowClosed`]=`arrowclosed`;return MarkerType2})(MarkerType||{});var PanOnScrollMode=(PanOnScrollMode2=>{PanOnScrollMode2[`Free`]=`free`;PanOnScrollMode2[`Vertical`]=`vertical`;PanOnScrollMode2[`Horizontal`]=`horizontal`;return PanOnScrollMode2})(PanOnScrollMode||{});var inputTags=[`INPUT`,`SELECT`,`TEXTAREA`];var defaultDoc=typeof document!==`undefined`?document:null;function isInputDOMNode(event){var _a,_b;const target=((_b=(_a=event.composedPath)==null?void 0:_a.call(event))==null?void 0:_b[0])||event.target;const hasAttribute=typeof(target==null?void 0:target.hasAttribute)===`function`?target.hasAttribute(`contenteditable`):false;const closest=typeof(target==null?void 0:target.closest)===`function`?target.closest(`.nokey`):null;return inputTags.includes(target==null?void 0:target.nodeName)||hasAttribute||!!closest}function wasModifierPressed(event){return event.ctrlKey||event.metaKey||event.shiftKey||event.altKey}function isKeyMatch(pressedKey,keyToMatch,pressedKeys,isKeyUp){const keyCombination=keyToMatch.replace(`+`,`
|
|
1
|
+
import{$c as inject,Al as reactive,Bc as createCommentVNode,Cl as customRef,Dl as markRaw,El as isRef,Fc as Fragment,Fl as toRef,Gc as createTextVNode,Hc as createPropsRestProxy,Hl as toDisplayString,Il as toRefs$1,Jc as defineComponent,Kc as createVNode,Lc as computed,Ll as toValue$1,Ml as ref,Nl as shallowRef,Ol as onScopeDispose,Rc as createBaseVNode,Rl as unref,Tl as getCurrentScope,Vc as createElementBlock,Vl as normalizeStyle,Yc as getCurrentInstance,Zc as h,al as onBeforeUnmount,cl as openBlock,dl as renderSlot,el as isMemoSame,fl as resolveComponent,hl as useAttrs,il as onBeforeMount,jl as readonly,ll as provide,nl as mergeProps,ol as onMounted,pl as resolveDynamicComponent,rl as nextTick,sl as onUnmounted,ul as renderList,vl as useSlots,wl as effectScope,xl as withCtx,yl as watch,zc as createBlock,zl as normalizeClass}from"./index-CeCIadYg.js";function tryOnScopeDispose(fn){if(getCurrentScope()){onScopeDispose(fn);return true}return false}function toValue(r){return typeof r===`function`?r():unref(r)}var isClient=typeof window!==`undefined`&&typeof document!==`undefined`;var isDef$1=val=>typeof val!==`undefined`;var toString=Object.prototype.toString;var isObject=val=>toString.call(val)===`[object Object]`;var noop$3=()=>{};function createFilterWrapper(filter2,fn){function wrapper(...args){return new Promise((resolve,reject)=>{Promise.resolve(filter2(()=>fn.apply(this,args),{fn,thisArg:this,args})).then(resolve).catch(reject)})}return wrapper}var bypassFilter=invoke=>{return invoke()};function pausableFilter(extendFilter=bypassFilter){const isActive=ref(true);function pause(){isActive.value=false}function resume(){isActive.value=true}const eventFilter=(...args)=>{if(isActive.value)extendFilter(...args)};return{isActive:readonly(isActive),pause,resume,eventFilter}}function promiseTimeout(ms,throwOnTimeout=false,reason=`Timeout`){return new Promise((resolve,reject)=>{if(throwOnTimeout)setTimeout(()=>reject(reason),ms);else setTimeout(resolve,ms)})}function watchWithFilter(source,cb,options={}){const{eventFilter=bypassFilter,...watchOptions}=options;return watch(source,createFilterWrapper(eventFilter,cb),watchOptions)}function watchPausable(source,cb,options={}){const{eventFilter:filter2,...watchOptions}=options;const{eventFilter,pause,resume,isActive}=pausableFilter(filter2);return{stop:watchWithFilter(source,cb,{...watchOptions,eventFilter}),pause,resume,isActive}}function toRefs(objectRef,options={}){if(!isRef(objectRef))return toRefs$1(objectRef);const result=Array.isArray(objectRef.value)?Array.from({length:objectRef.value.length}):{};for(const key in objectRef.value)result[key]=customRef(()=>({get(){return objectRef.value[key]},set(v){var _a;if((_a=toValue(options.replaceRef))!=null?_a:true){if(Array.isArray(objectRef.value)){const copy=[...objectRef.value];copy[key]=v;objectRef.value=copy}else{const newObject={...objectRef.value,[key]:v};Object.setPrototypeOf(newObject,Object.getPrototypeOf(objectRef.value));objectRef.value=newObject}}else objectRef.value[key]=v}}));return result}function createUntil(r,isNot=false){function toMatch(condition,{flush=`sync`,deep=false,timeout:timeout2,throwOnTimeout}={}){let stop=null;const promises=[new Promise(resolve=>{stop=watch(r,v=>{if(condition(v)!==isNot){stop?.();resolve(v)}},{flush,deep,immediate:true})})];if(timeout2!=null)promises.push(promiseTimeout(timeout2,throwOnTimeout).then(()=>toValue(r)).finally(()=>stop==null?void 0:stop()));return Promise.race(promises)}function toBe(value,options){if(!isRef(value))return toMatch(v=>v===value,options);const{flush=`sync`,deep=false,timeout:timeout2,throwOnTimeout}=options!=null?options:{};let stop=null;const promises=[new Promise(resolve=>{stop=watch([r,value],([v1,v2])=>{if(isNot!==(v1===v2)){stop?.();resolve(v1)}},{flush,deep,immediate:true})})];if(timeout2!=null)promises.push(promiseTimeout(timeout2,throwOnTimeout).then(()=>toValue(r)).finally(()=>{stop?.();return toValue(r)}));return Promise.race(promises)}function toBeTruthy(options){return toMatch(v=>Boolean(v),options)}function toBeNull(options){return toBe(null,options)}function toBeUndefined(options){return toBe(void 0,options)}function toBeNaN(options){return toMatch(Number.isNaN,options)}function toContains(value,options){return toMatch(v=>{const array2=Array.from(v);return array2.includes(value)||array2.includes(toValue(value))},options)}function changed(options){return changedTimes(1,options)}function changedTimes(n=1,options){let count=-1;return toMatch(()=>{count+=1;return count>=n},options)}if(Array.isArray(toValue(r)))return{toMatch,toContains,changed,changedTimes,get not(){return createUntil(r,!isNot)}};else return{toMatch,toBe,toBeTruthy,toBeNull,toBeNaN,toBeUndefined,changed,changedTimes,get not(){return createUntil(r,!isNot)}}}function until(r){return createUntil(r)}function unrefElement(elRef){var _a;const plain=toValue(elRef);return(_a=plain==null?void 0:plain.$el)!=null?_a:plain}var defaultWindow=isClient?window:void 0;function useEventListener(...args){let target;let events;let listeners;let options;if(typeof args[0]===`string`||Array.isArray(args[0])){[events,listeners,options]=args;target=defaultWindow}else[target,events,listeners,options]=args;if(!target)return noop$3;if(!Array.isArray(events))events=[events];if(!Array.isArray(listeners))listeners=[listeners];const cleanups=[];const cleanup=()=>{cleanups.forEach(fn=>fn());cleanups.length=0};const register=(el,event,listener,options2)=>{el.addEventListener(event,listener,options2);return()=>el.removeEventListener(event,listener,options2)};const stopWatch=watch(()=>[unrefElement(target),toValue(options)],([el,options2])=>{cleanup();if(!el)return;const optionsClone=isObject(options2)?{...options2}:options2;cleanups.push(...events.flatMap(event=>{return listeners.map(listener=>register(el,event,listener,optionsClone))}))},{immediate:true,flush:`post`});const stop=()=>{stopWatch();cleanup()};tryOnScopeDispose(stop);return stop}function createKeyPredicate$1(keyFilter){if(typeof keyFilter===`function`)return keyFilter;else if(typeof keyFilter===`string`)return event=>event.key===keyFilter;else if(Array.isArray(keyFilter))return event=>keyFilter.includes(event.key);return()=>true}function onKeyStroke(...args){let key;let handler;let options={};if(args.length===3){key=args[0];handler=args[1];options=args[2]}else if(args.length===2){if(typeof args[1]===`object`){key=true;handler=args[0];options=args[1]}else{key=args[0];handler=args[1]}}else{key=true;handler=args[0]}const{target=defaultWindow,eventName=`keydown`,passive=false,dedupe=false}=options;const predicate=createKeyPredicate$1(key);const listener=e=>{if(e.repeat&&toValue(dedupe))return;if(predicate(e))handler(e)};return useEventListener(target,eventName,listener,passive)}function cloneFnJSON(source){return JSON.parse(JSON.stringify(source))}function useVModel(props,key,emit,options={}){var _a,_b,_c;const{clone=false,passive=false,eventName,deep=false,defaultValue,shouldEmit}=options;const vm=getCurrentInstance();const _emit=emit||(vm==null?void 0:vm.emit)||((_a=vm==null?void 0:vm.$emit)==null?void 0:_a.bind(vm))||((_c=(_b=vm==null?void 0:vm.proxy)==null?void 0:_b.$emit)==null?void 0:_c.bind(vm==null?void 0:vm.proxy));let event=eventName;if(!key)key=`modelValue`;event=event||`update:${key.toString()}`;const cloneFn=val=>!clone?val:typeof clone===`function`?clone(val):cloneFnJSON(val);const getValue=()=>isDef$1(props[key])?cloneFn(props[key]):defaultValue;const triggerEmit=value=>{if(shouldEmit){if(shouldEmit(value))_emit(event,value)}else _emit(event,value)};if(passive){const initialValue=getValue();const proxy=ref(initialValue);let isUpdating=false;watch(()=>props[key],v=>{if(!isUpdating){isUpdating=true;proxy.value=cloneFn(v);nextTick(()=>isUpdating=false)}});watch(proxy,v=>{if(!isUpdating&&(v!==props[key]||deep))triggerEmit(v)},{deep});return proxy}else return computed({get(){return getValue()},set(value){triggerEmit(value)}})}var noop$2={value:()=>{}};function dispatch(){for(var i=0,n=arguments.length,_={},t;i<n;++i){if(!(t=arguments[i]+``)||t in _||/[\s.]/.test(t))throw new Error(`illegal type: `+t);_[t]=[]}return new Dispatch(_)}function Dispatch(_){this._=_}function parseTypenames$1(typenames,types){return typenames.trim().split(/^|\s+/).map(function(t){var name=``,i=t.indexOf(`.`);if(i>=0)name=t.slice(i+1),t=t.slice(0,i);if(t&&!types.hasOwnProperty(t))throw new Error(`unknown type: `+t);return{type:t,name}})}Dispatch.prototype=dispatch.prototype={constructor:Dispatch,on:function(typename,callback){var _=this._,T=parseTypenames$1(typename+``,_),t,i=-1,n=T.length;if(arguments.length<2){while(++i<n)if((t=(typename=T[i]).type)&&(t=get$1(_[t],typename.name)))return t;return}if(callback!=null&&typeof callback!==`function`)throw new Error(`invalid callback: `+callback);while(++i<n)if(t=(typename=T[i]).type)_[t]=set$1(_[t],typename.name,callback);else if(callback==null)for(t in _)_[t]=set$1(_[t],typename.name,null);return this},copy:function(){var copy={},_=this._;for(var t in _)copy[t]=_[t].slice();return new Dispatch(copy)},call:function(type,that){if((n=arguments.length-2)>0)for(var args=new Array(n),i=0,n,t;i<n;++i)args[i]=arguments[i+2];if(!this._.hasOwnProperty(type))throw new Error(`unknown type: `+type);for(t=this._[type],i=0,n=t.length;i<n;++i)t[i].value.apply(that,args)},apply:function(type,that,args){if(!this._.hasOwnProperty(type))throw new Error(`unknown type: `+type);for(var t=this._[type],i=0,n=t.length;i<n;++i)t[i].value.apply(that,args)}};function get$1(type,name){for(var i=0,n=type.length,c;i<n;++i)if((c=type[i]).name===name)return c.value}function set$1(type,name,callback){for(var i=0,n=type.length;i<n;++i)if(type[i].name===name){type[i]=noop$2,type=type.slice(0,i).concat(type.slice(i+1));break}if(callback!=null)type.push({name,value:callback});return type}var xhtml=`http://www.w3.org/1999/xhtml`;var namespaces={svg:`http://www.w3.org/2000/svg`,xhtml,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function namespace(name){var prefix=name+=``,i=prefix.indexOf(`:`);if(i>=0&&(prefix=name.slice(0,i))!==`xmlns`)name=name.slice(i+1);return namespaces.hasOwnProperty(prefix)?{space:namespaces[prefix],local:name}:name}function creatorInherit(name){return function(){var document2=this.ownerDocument,uri=this.namespaceURI;return uri===xhtml&&document2.documentElement.namespaceURI===xhtml?document2.createElement(name):document2.createElementNS(uri,name)}}function creatorFixed(fullname){return function(){return this.ownerDocument.createElementNS(fullname.space,fullname.local)}}function creator(name){var fullname=namespace(name);return(fullname.local?creatorFixed:creatorInherit)(fullname)}function none(){}function selector(selector2){return selector2==null?none:function(){return this.querySelector(selector2)}}function selection_select(select2){if(typeof select2!==`function`)select2=selector(select2);for(var groups=this._groups,m=groups.length,subgroups=new Array(m),j=0;j<m;++j)for(var group=groups[j],n=group.length,subgroup=subgroups[j]=new Array(n),node,subnode,i=0;i<n;++i)if((node=group[i])&&(subnode=select2.call(node,node.__data__,i,group))){if(`__data__`in node)subnode.__data__=node.__data__;subgroup[i]=subnode}return new Selection$1(subgroups,this._parents)}function array(x){return x==null?[]:Array.isArray(x)?x:Array.from(x)}function empty(){return[]}function selectorAll(selector2){return selector2==null?empty:function(){return this.querySelectorAll(selector2)}}function arrayAll(select2){return function(){return array(select2.apply(this,arguments))}}function selection_selectAll(select2){if(typeof select2===`function`)select2=arrayAll(select2);else select2=selectorAll(select2);for(var groups=this._groups,m=groups.length,subgroups=[],parents=[],j=0;j<m;++j)for(var group=groups[j],n=group.length,node,i=0;i<n;++i)if(node=group[i]){subgroups.push(select2.call(node,node.__data__,i,group));parents.push(node)}return new Selection$1(subgroups,parents)}function matcher(selector2){return function(){return this.matches(selector2)}}function childMatcher(selector2){return function(node){return node.matches(selector2)}}var find=Array.prototype.find;function childFind(match){return function(){return find.call(this.children,match)}}function childFirst(){return this.firstElementChild}function selection_selectChild(match){return this.select(match==null?childFirst:childFind(typeof match===`function`?match:childMatcher(match)))}var filter=Array.prototype.filter;function children(){return Array.from(this.children)}function childrenFilter(match){return function(){return filter.call(this.children,match)}}function selection_selectChildren(match){return this.selectAll(match==null?children:childrenFilter(typeof match===`function`?match:childMatcher(match)))}function selection_filter(match){if(typeof match!==`function`)match=matcher(match);for(var groups=this._groups,m=groups.length,subgroups=new Array(m),j=0;j<m;++j)for(var group=groups[j],n=group.length,subgroup=subgroups[j]=[],node,i=0;i<n;++i)if((node=group[i])&&match.call(node,node.__data__,i,group))subgroup.push(node);return new Selection$1(subgroups,this._parents)}function sparse(update){return new Array(update.length)}function selection_enter(){return new Selection$1(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(parent,datum2){this.ownerDocument=parent.ownerDocument;this.namespaceURI=parent.namespaceURI;this._next=null;this._parent=parent;this.__data__=datum2}EnterNode.prototype={constructor:EnterNode,appendChild:function(child){return this._parent.insertBefore(child,this._next)},insertBefore:function(child,next){return this._parent.insertBefore(child,next)},querySelector:function(selector2){return this._parent.querySelector(selector2)},querySelectorAll:function(selector2){return this._parent.querySelectorAll(selector2)}};function constant$3(x){return function(){return x}}function bindIndex(parent,group,enter,update,exit,data){var i=0,node,groupLength=group.length,dataLength=data.length;for(;i<dataLength;++i)if(node=group[i]){node.__data__=data[i];update[i]=node}else enter[i]=new EnterNode(parent,data[i]);for(;i<groupLength;++i)if(node=group[i])exit[i]=node}function bindKey(parent,group,enter,update,exit,data,key){var i,node,nodeByKeyValue=new Map,groupLength=group.length,dataLength=data.length,keyValues=new Array(groupLength),keyValue;for(i=0;i<groupLength;++i)if(node=group[i]){keyValues[i]=keyValue=key.call(node,node.__data__,i,group)+``;if(nodeByKeyValue.has(keyValue))exit[i]=node;else nodeByKeyValue.set(keyValue,node)}for(i=0;i<dataLength;++i){keyValue=key.call(parent,data[i],i,data)+``;if(node=nodeByKeyValue.get(keyValue)){update[i]=node;node.__data__=data[i];nodeByKeyValue.delete(keyValue)}else enter[i]=new EnterNode(parent,data[i])}for(i=0;i<groupLength;++i)if((node=group[i])&&nodeByKeyValue.get(keyValues[i])===node)exit[i]=node}function datum(node){return node.__data__}function selection_data(value,key){if(!arguments.length)return Array.from(this,datum);var bind=key?bindKey:bindIndex,parents=this._parents,groups=this._groups;if(typeof value!==`function`)value=constant$3(value);for(var m=groups.length,update=new Array(m),enter=new Array(m),exit=new Array(m),j=0;j<m;++j){var parent=parents[j],group=groups[j],groupLength=group.length,data=arraylike(value.call(parent,parent&&parent.__data__,j,parents)),dataLength=data.length,enterGroup=enter[j]=new Array(dataLength),updateGroup=update[j]=new Array(dataLength);bind(parent,group,enterGroup,updateGroup,exit[j]=new Array(groupLength),data,key);for(var i0=0,i1=0,previous,next;i0<dataLength;++i0)if(previous=enterGroup[i0]){if(i0>=i1)i1=i0+1;while(!(next=updateGroup[i1])&&++i1<dataLength);previous._next=next||null}}update=new Selection$1(update,parents);update._enter=enter;update._exit=exit;return update}function arraylike(data){return typeof data===`object`&&`length`in data?data:Array.from(data)}function selection_exit(){return new Selection$1(this._exit||this._groups.map(sparse),this._parents)}function selection_join(onenter,onupdate,onexit){var enter=this.enter(),update=this,exit=this.exit();if(typeof onenter===`function`){enter=onenter(enter);if(enter)enter=enter.selection()}else enter=enter.append(onenter+``);if(onupdate!=null){update=onupdate(update);if(update)update=update.selection()}if(onexit==null)exit.remove();else onexit(exit);return enter&&update?enter.merge(update).order():update}function selection_merge(context){var selection2=context.selection?context.selection():context;for(var groups0=this._groups,groups1=selection2._groups,m0=groups0.length,m1=groups1.length,m=Math.min(m0,m1),merges=new Array(m0),j=0;j<m;++j)for(var group0=groups0[j],group1=groups1[j],n=group0.length,merge=merges[j]=new Array(n),node,i=0;i<n;++i)if(node=group0[i]||group1[i])merge[i]=node;for(;j<m0;++j)merges[j]=groups0[j];return new Selection$1(merges,this._parents)}function selection_order(){for(var groups=this._groups,j=-1,m=groups.length;++j<m;)for(var group=groups[j],i=group.length-1,next=group[i],node;--i>=0;)if(node=group[i]){if(next&&node.compareDocumentPosition(next)^4)next.parentNode.insertBefore(node,next);next=node}return this}function selection_sort(compare){if(!compare)compare=ascending;function compareNode(a,b){return a&&b?compare(a.__data__,b.__data__):!a-!b}for(var groups=this._groups,m=groups.length,sortgroups=new Array(m),j=0;j<m;++j){for(var group=groups[j],n=group.length,sortgroup=sortgroups[j]=new Array(n),node,i=0;i<n;++i)if(node=group[i])sortgroup[i]=node;sortgroup.sort(compareNode)}return new Selection$1(sortgroups,this._parents).order()}function ascending(a,b){return a<b?-1:a>b?1:a>=b?0:NaN}function selection_call(){var callback=arguments[0];arguments[0]=this;callback.apply(null,arguments);return this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var groups=this._groups,j=0,m=groups.length;j<m;++j)for(var group=groups[j],i=0,n=group.length;i<n;++i){var node=group[i];if(node)return node}return null}function selection_size(){let size=0;for(const node of this)++size;return size}function selection_empty(){return!this.node()}function selection_each(callback){for(var groups=this._groups,j=0,m=groups.length;j<m;++j)for(var group=groups[j],i=0,n=group.length,node;i<n;++i)if(node=group[i])callback.call(node,node.__data__,i,group);return this}function attrRemove$1(name){return function(){this.removeAttribute(name)}}function attrRemoveNS$1(fullname){return function(){this.removeAttributeNS(fullname.space,fullname.local)}}function attrConstant$1(name,value){return function(){this.setAttribute(name,value)}}function attrConstantNS$1(fullname,value){return function(){this.setAttributeNS(fullname.space,fullname.local,value)}}function attrFunction$1(name,value){return function(){var v=value.apply(this,arguments);if(v==null)this.removeAttribute(name);else this.setAttribute(name,v)}}function attrFunctionNS$1(fullname,value){return function(){var v=value.apply(this,arguments);if(v==null)this.removeAttributeNS(fullname.space,fullname.local);else this.setAttributeNS(fullname.space,fullname.local,v)}}function selection_attr(name,value){var fullname=namespace(name);if(arguments.length<2){var node=this.node();return fullname.local?node.getAttributeNS(fullname.space,fullname.local):node.getAttribute(fullname)}return this.each((value==null?fullname.local?attrRemoveNS$1:attrRemove$1:typeof value===`function`?fullname.local?attrFunctionNS$1:attrFunction$1:fullname.local?attrConstantNS$1:attrConstant$1)(fullname,value))}function defaultView(node){return node.ownerDocument&&node.ownerDocument.defaultView||node.document&&node||node.defaultView}function styleRemove$1(name){return function(){this.style.removeProperty(name)}}function styleConstant$1(name,value,priority){return function(){this.style.setProperty(name,value,priority)}}function styleFunction$1(name,value,priority){return function(){var v=value.apply(this,arguments);if(v==null)this.style.removeProperty(name);else this.style.setProperty(name,v,priority)}}function selection_style(name,value,priority){return arguments.length>1?this.each((value==null?styleRemove$1:typeof value===`function`?styleFunction$1:styleConstant$1)(name,value,priority==null?``:priority)):styleValue(this.node(),name)}function styleValue(node,name){return node.style.getPropertyValue(name)||defaultView(node).getComputedStyle(node,null).getPropertyValue(name)}function propertyRemove(name){return function(){delete this[name]}}function propertyConstant(name,value){return function(){this[name]=value}}function propertyFunction(name,value){return function(){var v=value.apply(this,arguments);if(v==null)delete this[name];else this[name]=v}}function selection_property(name,value){return arguments.length>1?this.each((value==null?propertyRemove:typeof value===`function`?propertyFunction:propertyConstant)(name,value)):this.node()[name]}function classArray(string){return string.trim().split(/^|\s+/)}function classList(node){return node.classList||new ClassList(node)}function ClassList(node){this._node=node;this._names=classArray(node.getAttribute(`class`)||``)}ClassList.prototype={add:function(name){if(this._names.indexOf(name)<0){this._names.push(name);this._node.setAttribute(`class`,this._names.join(` `))}},remove:function(name){var i=this._names.indexOf(name);if(i>=0){this._names.splice(i,1);this._node.setAttribute(`class`,this._names.join(` `))}},contains:function(name){return this._names.indexOf(name)>=0}};function classedAdd(node,names){var list=classList(node),i=-1,n=names.length;while(++i<n)list.add(names[i])}function classedRemove(node,names){var list=classList(node),i=-1,n=names.length;while(++i<n)list.remove(names[i])}function classedTrue(names){return function(){classedAdd(this,names)}}function classedFalse(names){return function(){classedRemove(this,names)}}function classedFunction(names,value){return function(){(value.apply(this,arguments)?classedAdd:classedRemove)(this,names)}}function selection_classed(name,value){var names=classArray(name+``);if(arguments.length<2){var list=classList(this.node()),i=-1,n=names.length;while(++i<n)if(!list.contains(names[i]))return false;return true}return this.each((typeof value===`function`?classedFunction:value?classedTrue:classedFalse)(names,value))}function textRemove(){this.textContent=``}function textConstant$1(value){return function(){this.textContent=value}}function textFunction$1(value){return function(){var v=value.apply(this,arguments);this.textContent=v==null?``:v}}function selection_text(value){return arguments.length?this.each(value==null?textRemove:(typeof value===`function`?textFunction$1:textConstant$1)(value)):this.node().textContent}function htmlRemove(){this.innerHTML=``}function htmlConstant(value){return function(){this.innerHTML=value}}function htmlFunction(value){return function(){var v=value.apply(this,arguments);this.innerHTML=v==null?``:v}}function selection_html(value){return arguments.length?this.each(value==null?htmlRemove:(typeof value===`function`?htmlFunction:htmlConstant)(value)):this.node().innerHTML}function raise(){if(this.nextSibling)this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(name){var create2=typeof name===`function`?name:creator(name);return this.select(function(){return this.appendChild(create2.apply(this,arguments))})}function constantNull(){return null}function selection_insert(name,before){var create2=typeof name===`function`?name:creator(name),select2=before==null?constantNull:typeof before===`function`?before:selector(before);return this.select(function(){return this.insertBefore(create2.apply(this,arguments),select2.apply(this,arguments)||null)})}function remove(){var parent=this.parentNode;if(parent)parent.removeChild(this)}function selection_remove(){return this.each(remove)}function selection_cloneShallow(){var clone=this.cloneNode(false),parent=this.parentNode;return parent?parent.insertBefore(clone,this.nextSibling):clone}function selection_cloneDeep(){var clone=this.cloneNode(true),parent=this.parentNode;return parent?parent.insertBefore(clone,this.nextSibling):clone}function selection_clone(deep){return this.select(deep?selection_cloneDeep:selection_cloneShallow)}function selection_datum(value){return arguments.length?this.property(`__data__`,value):this.node().__data__}function contextListener(listener){return function(event){listener.call(this,event,this.__data__)}}function parseTypenames(typenames){return typenames.trim().split(/^|\s+/).map(function(t){var name=``,i=t.indexOf(`.`);if(i>=0)name=t.slice(i+1),t=t.slice(0,i);return{type:t,name}})}function onRemove(typename){return function(){var on=this.__on;if(!on)return;for(var j=0,i=-1,m=on.length,o;j<m;++j)if(o=on[j],(!typename.type||o.type===typename.type)&&o.name===typename.name)this.removeEventListener(o.type,o.listener,o.options);else on[++i]=o;if(++i)on.length=i;else delete this.__on}}function onAdd(typename,value,options){return function(){var on=this.__on,o,listener=contextListener(value);if(on){for(var j=0,m=on.length;j<m;++j)if((o=on[j]).type===typename.type&&o.name===typename.name){this.removeEventListener(o.type,o.listener,o.options);this.addEventListener(o.type,o.listener=listener,o.options=options);o.value=value;return}}this.addEventListener(typename.type,listener,options);o={type:typename.type,name:typename.name,value,listener,options};if(!on)this.__on=[o];else on.push(o)}}function selection_on(typename,value,options){var typenames=parseTypenames(typename+``),i,n=typenames.length,t;if(arguments.length<2){var on=this.node().__on;if(on){for(var j=0,m=on.length,o;j<m;++j)for(i=0,o=on[j];i<n;++i)if((t=typenames[i]).type===o.type&&t.name===o.name)return o.value}return}on=value?onAdd:onRemove;for(i=0;i<n;++i)this.each(on(typenames[i],value,options));return this}function dispatchEvent(node,type,params){var window2=defaultView(node),event=window2.CustomEvent;if(typeof event===`function`)event=new event(type,params);else{event=window2.document.createEvent(`Event`);if(params)event.initEvent(type,params.bubbles,params.cancelable),event.detail=params.detail;else event.initEvent(type,false,false)}node.dispatchEvent(event)}function dispatchConstant(type,params){return function(){return dispatchEvent(this,type,params)}}function dispatchFunction(type,params){return function(){return dispatchEvent(this,type,params.apply(this,arguments))}}function selection_dispatch(type,params){return this.each((typeof params===`function`?dispatchFunction:dispatchConstant)(type,params))}function*selection_iterator(){for(var groups=this._groups,j=0,m=groups.length;j<m;++j)for(var group=groups[j],i=0,n=group.length,node;i<n;++i)if(node=group[i])yield node}var root=[null];function Selection$1(groups,parents){this._groups=groups;this._parents=parents}function selection(){return new Selection$1([[document.documentElement]],root)}function selection_selection(){return this}Selection$1.prototype=selection.prototype={constructor:Selection$1,select:selection_select,selectAll:selection_selectAll,selectChild:selection_selectChild,selectChildren:selection_selectChildren,filter:selection_filter,data:selection_data,enter:selection_enter,exit:selection_exit,join:selection_join,merge:selection_merge,selection:selection_selection,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch,[Symbol.iterator]:selection_iterator};function select(selector2){return typeof selector2===`string`?new Selection$1([[document.querySelector(selector2)]],[document.documentElement]):new Selection$1([[selector2]],root)}function sourceEvent(event){let sourceEvent2;while(sourceEvent2=event.sourceEvent)event=sourceEvent2;return event}function pointer(event,node){event=sourceEvent(event);if(node===void 0)node=event.currentTarget;if(node){var svg=node.ownerSVGElement||node;if(svg.createSVGPoint){var point=svg.createSVGPoint();point.x=event.clientX,point.y=event.clientY;point=point.matrixTransform(node.getScreenCTM().inverse());return[point.x,point.y]}if(node.getBoundingClientRect){var rect=node.getBoundingClientRect();return[event.clientX-rect.left-node.clientLeft,event.clientY-rect.top-node.clientTop]}}return[event.pageX,event.pageY]}var nonpassive={passive:false};var nonpassivecapture={capture:true,passive:false};function nopropagation$1(event){event.stopImmediatePropagation()}function noevent$1(event){event.preventDefault();event.stopImmediatePropagation()}function dragDisable(view){var root2=view.document.documentElement,selection2=select(view).on(`dragstart.drag`,noevent$1,nonpassivecapture);if(`onselectstart`in root2)selection2.on(`selectstart.drag`,noevent$1,nonpassivecapture);else{root2.__noselect=root2.style.MozUserSelect;root2.style.MozUserSelect=`none`}}function yesdrag(view,noclick){var root2=view.document.documentElement,selection2=select(view).on(`dragstart.drag`,null);if(noclick){selection2.on(`click.drag`,noevent$1,nonpassivecapture);setTimeout(function(){selection2.on(`click.drag`,null)},0)}if(`onselectstart`in root2)selection2.on(`selectstart.drag`,null);else{root2.style.MozUserSelect=root2.__noselect;delete root2.__noselect}}var constant$2=x=>()=>x;function DragEvent(type,{sourceEvent:sourceEvent2,subject,target,identifier,active,x,y,dx,dy,dispatch:dispatch2}){Object.defineProperties(this,{type:{value:type,enumerable:true,configurable:true},sourceEvent:{value:sourceEvent2,enumerable:true,configurable:true},subject:{value:subject,enumerable:true,configurable:true},target:{value:target,enumerable:true,configurable:true},identifier:{value:identifier,enumerable:true,configurable:true},active:{value:active,enumerable:true,configurable:true},x:{value:x,enumerable:true,configurable:true},y:{value:y,enumerable:true,configurable:true},dx:{value:dx,enumerable:true,configurable:true},dy:{value:dy,enumerable:true,configurable:true},_:{value:dispatch2}})}DragEvent.prototype.on=function(){var value=this._.on.apply(this._,arguments);return value===this._?this:value};function defaultFilter$1(event){return!event.ctrlKey&&!event.button}function defaultContainer(){return this.parentNode}function defaultSubject(event,d){return d==null?{x:event.x,y:event.y}:d}function defaultTouchable$1(){return navigator.maxTouchPoints||`ontouchstart`in this}function drag(){var filter2=defaultFilter$1,container=defaultContainer,subject=defaultSubject,touchable=defaultTouchable$1,gestures={},listeners=dispatch(`start`,`drag`,`end`),active=0,mousedownx,mousedowny,mousemoving,touchending,clickDistance2=0;function drag2(selection2){selection2.on(`mousedown.drag`,mousedowned).filter(touchable).on(`touchstart.drag`,touchstarted).on(`touchmove.drag`,touchmoved,nonpassive).on(`touchend.drag touchcancel.drag`,touchended).style(`touch-action`,`none`).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}function mousedowned(event,d){if(touchending||!filter2.call(this,event,d))return;var gesture=beforestart(this,container.call(this,event,d),event,d,`mouse`);if(!gesture)return;select(event.view).on(`mousemove.drag`,mousemoved,nonpassivecapture).on(`mouseup.drag`,mouseupped,nonpassivecapture);dragDisable(event.view);nopropagation$1(event);mousemoving=false;mousedownx=event.clientX;mousedowny=event.clientY;gesture(`start`,event)}function mousemoved(event){noevent$1(event);if(!mousemoving){var dx=event.clientX-mousedownx,dy=event.clientY-mousedowny;mousemoving=dx*dx+dy*dy>clickDistance2}gestures.mouse(`drag`,event)}function mouseupped(event){select(event.view).on(`mousemove.drag mouseup.drag`,null);yesdrag(event.view,mousemoving);noevent$1(event);gestures.mouse(`end`,event)}function touchstarted(event,d){if(!filter2.call(this,event,d))return;var touches=event.changedTouches,c=container.call(this,event,d),n=touches.length,i=0,gesture;for(;i<n;++i)if(gesture=beforestart(this,c,event,d,touches[i].identifier,touches[i])){nopropagation$1(event);gesture(`start`,event,touches[i])}}function touchmoved(event){var touches=event.changedTouches,n=touches.length,i=0,gesture;for(;i<n;++i)if(gesture=gestures[touches[i].identifier]){noevent$1(event);gesture(`drag`,event,touches[i])}}function touchended(event){var touches=event.changedTouches,n=touches.length,i,gesture;if(touchending)clearTimeout(touchending);touchending=setTimeout(function(){touchending=null},500);for(i=0;i<n;++i)if(gesture=gestures[touches[i].identifier]){nopropagation$1(event);gesture(`end`,event,touches[i])}}function beforestart(that,container2,event,d,identifier,touch){var dispatch2=listeners.copy(),p=pointer(touch||event,container2),dx,dy,s;if((s=subject.call(that,new DragEvent(`beforestart`,{sourceEvent:event,target:drag2,identifier,active,x:p[0],y:p[1],dx:0,dy:0,dispatch:dispatch2}),d))==null)return;dx=s.x-p[0]||0;dy=s.y-p[1]||0;return function gesture(type,event2,touch2){var p0=p,n;switch(type){case`start`:gestures[identifier]=gesture,n=active++;break;case`end`:delete gestures[identifier],--active;case`drag`:p=pointer(touch2||event2,container2),n=active}dispatch2.call(type,that,new DragEvent(type,{sourceEvent:event2,subject:s,target:drag2,identifier,active:n,x:p[0]+dx,y:p[1]+dy,dx:p[0]-p0[0],dy:p[1]-p0[1],dispatch:dispatch2}),d)}}drag2.filter=function(_){return arguments.length?(filter2=typeof _===`function`?_:constant$2(!!_),drag2):filter2};drag2.container=function(_){return arguments.length?(container=typeof _===`function`?_:constant$2(_),drag2):container};drag2.subject=function(_){return arguments.length?(subject=typeof _===`function`?_:constant$2(_),drag2):subject};drag2.touchable=function(_){return arguments.length?(touchable=typeof _===`function`?_:constant$2(!!_),drag2):touchable};drag2.on=function(){var value=listeners.on.apply(listeners,arguments);return value===listeners?drag2:value};drag2.clickDistance=function(_){return arguments.length?(clickDistance2=(_=+_)*_,drag2):Math.sqrt(clickDistance2)};return drag2}function define(constructor,factory,prototype){constructor.prototype=factory.prototype=prototype;prototype.constructor=constructor}function extend(parent,definition){var prototype=Object.create(parent.prototype);for(var key in definition)prototype[key]=definition[key];return prototype}function Color(){}var darker=.7;var brighter=1/darker;var reI=`\\s*([+-]?\\d+)\\s*`;var reN=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`;var reP=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`;var reHex=/^#([0-9a-f]{3,8})$/;var reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`);var reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`);var reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`);var reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`);var reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`);var reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);var named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};define(Color,color,{copy(channels){return Object.assign(new this.constructor,this,channels)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:color_formatHex8,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb});function color_formatHex(){return this.rgb().formatHex()}function color_formatHex8(){return this.rgb().formatHex8()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(format){var m,l;format=(format+``).trim().toLowerCase();return(m=reHex.exec(format))?(l=m[1].length,m=parseInt(m[1],16),l===6?rgbn(m):l===3?new Rgb(m>>8&15|m>>4&240,m>>4&15|m&240,(m&15)<<4|m&15,1):l===8?rgba(m>>24&255,m>>16&255,m>>8&255,(m&255)/255):l===4?rgba(m>>12&15|m>>8&240,m>>8&15|m>>4&240,m>>4&15|m&240,((m&15)<<4|m&15)/255):null):(m=reRgbInteger.exec(format))?new Rgb(m[1],m[2],m[3],1):(m=reRgbPercent.exec(format))?new Rgb(m[1]*255/100,m[2]*255/100,m[3]*255/100,1):(m=reRgbaInteger.exec(format))?rgba(m[1],m[2],m[3],m[4]):(m=reRgbaPercent.exec(format))?rgba(m[1]*255/100,m[2]*255/100,m[3]*255/100,m[4]):(m=reHslPercent.exec(format))?hsla(m[1],m[2]/100,m[3]/100,1):(m=reHslaPercent.exec(format))?hsla(m[1],m[2]/100,m[3]/100,m[4]):named.hasOwnProperty(format)?rgbn(named[format]):format===`transparent`?new Rgb(NaN,NaN,NaN,0):null}function rgbn(n){return new Rgb(n>>16&255,n>>8&255,n&255,1)}function rgba(r,g,b,a){if(a<=0)r=g=b=NaN;return new Rgb(r,g,b,a)}function rgbConvert(o){if(!(o instanceof Color))o=color(o);if(!o)return new Rgb;o=o.rgb();return new Rgb(o.r,o.g,o.b,o.opacity)}function rgb(r,g,b,opacity){return arguments.length===1?rgbConvert(r):new Rgb(r,g,b,opacity==null?1:opacity)}function Rgb(r,g,b,opacity){this.r=+r;this.g=+g;this.b=+b;this.opacity=+opacity}define(Rgb,rgb,extend(Color,{brighter(k){k=k==null?brighter:Math.pow(brighter,k);return new Rgb(this.r*k,this.g*k,this.b*k,this.opacity)},darker(k){k=k==null?darker:Math.pow(darker,k);return new Rgb(this.r*k,this.g*k,this.b*k,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const a=clampa(this.opacity);return`${a===1?`rgb(`:`rgba(`}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a===1?`)`:`, ${a})`}`}function clampa(opacity){return isNaN(opacity)?1:Math.max(0,Math.min(1,opacity))}function clampi(value){return Math.max(0,Math.min(255,Math.round(value)||0))}function hex(value){value=clampi(value);return(value<16?`0`:``)+value.toString(16)}function hsla(h2,s,l,a){if(a<=0)h2=s=l=NaN;else if(l<=0||l>=1)h2=s=NaN;else if(s<=0)h2=NaN;return new Hsl(h2,s,l,a)}function hslConvert(o){if(o instanceof Hsl)return new Hsl(o.h,o.s,o.l,o.opacity);if(!(o instanceof Color))o=color(o);if(!o)return new Hsl;if(o instanceof Hsl)return o;o=o.rgb();var r=o.r/255,g=o.g/255,b=o.b/255,min=Math.min(r,g,b),max=Math.max(r,g,b),h2=NaN,s=max-min,l=(max+min)/2;if(s){if(r===max)h2=(g-b)/s+(g<b)*6;else if(g===max)h2=(b-r)/s+2;else h2=(r-g)/s+4;s/=l<.5?max+min:2-max-min;h2*=60}else s=l>0&&l<1?0:h2;return new Hsl(h2,s,l,o.opacity)}function hsl(h2,s,l,opacity){return arguments.length===1?hslConvert(h2):new Hsl(h2,s,l,opacity==null?1:opacity)}function Hsl(h2,s,l,opacity){this.h=+h2;this.s=+s;this.l=+l;this.opacity=+opacity}define(Hsl,hsl,extend(Color,{brighter(k){k=k==null?brighter:Math.pow(brighter,k);return new Hsl(this.h,this.s,this.l*k,this.opacity)},darker(k){k=k==null?darker:Math.pow(darker,k);return new Hsl(this.h,this.s,this.l*k,this.opacity)},rgb(){var h2=this.h%360+(this.h<0)*360,s=isNaN(h2)||isNaN(this.s)?0:this.s,l=this.l,m2=l+(l<.5?l:1-l)*s,m1=2*l-m2;return new Rgb(hsl2rgb(h2>=240?h2-240:h2+120,m1,m2),hsl2rgb(h2,m1,m2),hsl2rgb(h2<120?h2+240:h2-120,m1,m2),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const a=clampa(this.opacity);return`${a===1?`hsl(`:`hsla(`}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${a===1?`)`:`, ${a})`}`}}));function clamph(value){value=(value||0)%360;return value<0?value+360:value}function clampt(value){return Math.max(0,Math.min(1,value||0))}function hsl2rgb(h2,m1,m2){return(h2<60?m1+(m2-m1)*h2/60:h2<180?m2:h2<240?m1+(m2-m1)*(240-h2)/60:m1)*255}var constant$1=x=>()=>x;function linear(a,d){return function(t){return a+t*d}}function exponential(a,b,y){return a=Math.pow(a,y),b=Math.pow(b,y)-a,y=1/y,function(t){return Math.pow(a+t*b,y)}}function gamma(y){return(y=+y)===1?nogamma:function(a,b){return b-a?exponential(a,b,y):constant$1(isNaN(a)?b:a)}}function nogamma(a,b){var d=b-a;return d?linear(a,d):constant$1(isNaN(a)?b:a)}var interpolateRgb=function rgbGamma(y){var color2=gamma(y);function rgb$1(start2,end){var r=color2((start2=rgb(start2)).r,(end=rgb(end)).r),g=color2(start2.g,end.g),b=color2(start2.b,end.b),opacity=nogamma(start2.opacity,end.opacity);return function(t){start2.r=r(t);start2.g=g(t);start2.b=b(t);start2.opacity=opacity(t);return start2+``}}rgb$1.gamma=rgbGamma;return rgb$1}(1);function numberArray(a,b){if(!b)b=[];var n=a?Math.min(b.length,a.length):0,c=b.slice(),i;return function(t){for(i=0;i<n;++i)c[i]=a[i]*(1-t)+b[i]*t;return c}}function isNumberArray(x){return ArrayBuffer.isView(x)&&!(x instanceof DataView)}function genericArray(a,b){var nb=b?b.length:0,na=a?Math.min(nb,a.length):0,x=new Array(na),c=new Array(nb),i=0;for(;i<na;++i)x[i]=interpolate$1(a[i],b[i]);for(;i<nb;++i)c[i]=b[i];return function(t){for(i=0;i<na;++i)c[i]=x[i](t);return c}}function date(a,b){var d=new Date;return a=+a,b=+b,function(t){return d.setTime(a*(1-t)+b*t),d}}function interpolateNumber(a,b){return a=+a,b=+b,function(t){return a*(1-t)+b*t}}function object(a,b){var i={},c={},k;if(a===null||typeof a!==`object`)a={};if(b===null||typeof b!==`object`)b={};for(k in b)if(k in a)i[k]=interpolate$1(a[k],b[k]);else c[k]=b[k];return function(t){for(k in i)c[k]=i[k](t);return c}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;var reB=new RegExp(reA.source,`g`);function zero(b){return function(){return b}}function one(b){return function(t){return b(t)+``}}function interpolateString(a,b){var bi=reA.lastIndex=reB.lastIndex=0,am,bm,bs,i=-1,s=[],q=[];a=a+``,b=b+``;while((am=reA.exec(a))&&(bm=reB.exec(b))){if((bs=bm.index)>bi){bs=b.slice(bi,bs);if(s[i])s[i]+=bs;else s[++i]=bs}if((am=am[0])===(bm=bm[0])){if(s[i])s[i]+=bm;else s[++i]=bm}else{s[++i]=null;q.push({i,x:interpolateNumber(am,bm)})}bi=reB.lastIndex}if(bi<b.length){bs=b.slice(bi);if(s[i])s[i]+=bs;else s[++i]=bs}return s.length<2?q[0]?one(q[0].x):zero(b):(b=q.length,function(t){for(var i2=0,o;i2<b;++i2)s[(o=q[i2]).i]=o.x(t);return s.join(``)})}function interpolate$1(a,b){var t=typeof b,c;return b==null||t===`boolean`?constant$1(b):(t===`number`?interpolateNumber:t===`string`?(c=color(b))?(b=c,interpolateRgb):interpolateString:b instanceof color?interpolateRgb:b instanceof Date?date:isNumberArray(b)?numberArray:Array.isArray(b)?genericArray:typeof b.valueOf!==`function`&&typeof b.toString!==`function`||isNaN(b)?object:interpolateNumber)(a,b)}var degrees=180/Math.PI;var identity$1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function decompose(a,b,c,d,e,f){var scaleX,scaleY,skewX;if(scaleX=Math.sqrt(a*a+b*b))a/=scaleX,b/=scaleX;if(skewX=a*c+b*d)c-=a*skewX,d-=b*skewX;if(scaleY=Math.sqrt(c*c+d*d))c/=scaleY,d/=scaleY,skewX/=scaleY;if(a*d<b*c)a=-a,b=-b,skewX=-skewX,scaleX=-scaleX;return{translateX:e,translateY:f,rotate:Math.atan2(b,a)*degrees,skewX:Math.atan(skewX)*degrees,scaleX,scaleY}}var svgNode;function parseCss(value){const m=new(typeof DOMMatrix===`function`?DOMMatrix:WebKitCSSMatrix)(value+``);return m.isIdentity?identity$1:decompose(m.a,m.b,m.c,m.d,m.e,m.f)}function parseSvg(value){if(value==null)return identity$1;if(!svgNode)svgNode=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);svgNode.setAttribute(`transform`,value);if(!(value=svgNode.transform.baseVal.consolidate()))return identity$1;value=value.matrix;return decompose(value.a,value.b,value.c,value.d,value.e,value.f)}function interpolateTransform(parse,pxComma,pxParen,degParen){function pop(s){return s.length?s.pop()+` `:``}function translate(xa,ya,xb,yb,s,q){if(xa!==xb||ya!==yb){var i=s.push(`translate(`,null,pxComma,null,pxParen);q.push({i:i-4,x:interpolateNumber(xa,xb)},{i:i-2,x:interpolateNumber(ya,yb)})}else if(xb||yb)s.push(`translate(`+xb+pxComma+yb+pxParen)}function rotate(a,b,s,q){if(a!==b){if(a-b>180)b+=360;else if(b-a>180)a+=360;q.push({i:s.push(pop(s)+`rotate(`,null,degParen)-2,x:interpolateNumber(a,b)})}else if(b)s.push(pop(s)+`rotate(`+b+degParen)}function skewX(a,b,s,q){if(a!==b)q.push({i:s.push(pop(s)+`skewX(`,null,degParen)-2,x:interpolateNumber(a,b)});else if(b)s.push(pop(s)+`skewX(`+b+degParen)}function scale(xa,ya,xb,yb,s,q){if(xa!==xb||ya!==yb){var i=s.push(pop(s)+`scale(`,null,`,`,null,`)`);q.push({i:i-4,x:interpolateNumber(xa,xb)},{i:i-2,x:interpolateNumber(ya,yb)})}else if(xb!==1||yb!==1)s.push(pop(s)+`scale(`+xb+`,`+yb+`)`)}return function(a,b){var s=[],q=[];a=parse(a),b=parse(b);translate(a.translateX,a.translateY,b.translateX,b.translateY,s,q);rotate(a.rotate,b.rotate,s,q);skewX(a.skewX,b.skewX,s,q);scale(a.scaleX,a.scaleY,b.scaleX,b.scaleY,s,q);a=b=null;return function(t){var i=-1,n=q.length,o;while(++i<n)s[(o=q[i]).i]=o.x(t);return s.join(``)}}}var interpolateTransformCss=interpolateTransform(parseCss,`px, `,`px)`,`deg)`);var interpolateTransformSvg=interpolateTransform(parseSvg,`, `,`)`,`)`);var epsilon2=1e-12;function cosh(x){return((x=Math.exp(x))+1/x)/2}function sinh(x){return((x=Math.exp(x))-1/x)/2}function tanh(x){return((x=Math.exp(2*x))-1)/(x+1)}var interpolateZoom=function zoomRho(rho,rho2,rho4){function zoom2(p0,p1){var ux0=p0[0],uy0=p0[1],w0=p0[2],ux1=p1[0],uy1=p1[1],w1=p1[2],dx=ux1-ux0,dy=uy1-uy0,d2=dx*dx+dy*dy,i,S;if(d2<epsilon2){S=Math.log(w1/w0)/rho;i=function(t){return[ux0+t*dx,uy0+t*dy,w0*Math.exp(rho*t*S)]}}else{var d1=Math.sqrt(d2),b0=(w1*w1-w0*w0+rho4*d2)/(2*w0*rho2*d1),b1=(w1*w1-w0*w0-rho4*d2)/(2*w1*rho2*d1),r0=Math.log(Math.sqrt(b0*b0+1)-b0);S=(Math.log(Math.sqrt(b1*b1+1)-b1)-r0)/rho;i=function(t){var s=t*S,coshr0=cosh(r0),u=w0/(rho2*d1)*(coshr0*tanh(rho*s+r0)-sinh(r0));return[ux0+u*dx,uy0+u*dy,w0*coshr0/cosh(rho*s+r0)]}}i.duration=S*1e3*rho/Math.SQRT2;return i}zoom2.rho=function(_){var _1=Math.max(.001,+_),_2=_1*_1;return zoomRho(_1,_2,_2*_2)};return zoom2}(Math.SQRT2,2,4);var frame=0;var timeout$1=0;var interval=0;var pokeDelay=1e3;var taskHead;var taskTail;var clockLast=0;var clockNow=0;var clockSkew=0;var clock=typeof performance===`object`&&performance.now?performance:Date;var setFrame=typeof window===`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(f){setTimeout(f,17)};function now(){return clockNow||(setFrame(clearNow),clockNow=clock.now()+clockSkew)}function clearNow(){clockNow=0}function Timer(){this._call=this._time=this._next=null}Timer.prototype=timer.prototype={constructor:Timer,restart:function(callback,delay,time){if(typeof callback!==`function`)throw new TypeError(`callback is not a function`);time=(time==null?now():+time)+(delay==null?0:+delay);if(!this._next&&taskTail!==this){if(taskTail)taskTail._next=this;else taskHead=this;taskTail=this}this._call=callback;this._time=time;sleep()},stop:function(){if(this._call){this._call=null;this._time=Infinity;sleep()}}};function timer(callback,delay,time){var t=new Timer;t.restart(callback,delay,time);return t}function timerFlush(){now();++frame;var t=taskHead,e;while(t){if((e=clockNow-t._time)>=0)t._call.call(void 0,e);t=t._next}--frame}function wake(){clockNow=(clockLast=clock.now())+clockSkew;frame=timeout$1=0;try{timerFlush()}finally{frame=0;nap();clockNow=0}}function poke(){var now2=clock.now(),delay=now2-clockLast;if(delay>pokeDelay)clockSkew-=delay,clockLast=now2}function nap(){var t0,t1=taskHead,t2,time=Infinity;while(t1)if(t1._call){if(time>t1._time)time=t1._time;t0=t1,t1=t1._next}else{t2=t1._next,t1._next=null;t1=t0?t0._next=t2:taskHead=t2}taskTail=t0;sleep(time)}function sleep(time){if(frame)return;if(timeout$1)timeout$1=clearTimeout(timeout$1);if(time-clockNow>24){if(time<Infinity)timeout$1=setTimeout(wake,time-clock.now()-clockSkew);if(interval)interval=clearInterval(interval)}else{if(!interval)clockLast=clock.now(),interval=setInterval(poke,pokeDelay);frame=1,setFrame(wake)}}function timeout(callback,delay,time){var t=new Timer;delay=delay==null?0:+delay;t.restart(elapsed=>{t.stop();callback(elapsed+delay)},delay,time);return t}var emptyOn=dispatch(`start`,`end`,`cancel`,`interrupt`);var emptyTween=[];var CREATED=0;var SCHEDULED=1;var STARTING=2;var STARTED=3;var RUNNING=4;var ENDING=5;var ENDED=6;function schedule(node,name,id2,index,group,timing){var schedules=node.__transition;if(!schedules)node.__transition={};else if(id2 in schedules)return;create(node,id2,{name,index,group,on:emptyOn,tween:emptyTween,time:timing.time,delay:timing.delay,duration:timing.duration,ease:timing.ease,timer:null,state:CREATED})}function init(node,id2){var schedule2=get(node,id2);if(schedule2.state>CREATED)throw new Error(`too late; already scheduled`);return schedule2}function set(node,id2){var schedule2=get(node,id2);if(schedule2.state>STARTED)throw new Error(`too late; already running`);return schedule2}function get(node,id2){var schedule2=node.__transition;if(!schedule2||!(schedule2=schedule2[id2]))throw new Error(`transition not found`);return schedule2}function create(node,id2,self){var schedules=node.__transition,tween;schedules[id2]=self;self.timer=timer(schedule2,0,self.time);function schedule2(elapsed){self.state=SCHEDULED;self.timer.restart(start2,self.delay,self.time);if(self.delay<=elapsed)start2(elapsed-self.delay)}function start2(elapsed){var i,j,n,o;if(self.state!==SCHEDULED)return stop();for(i in schedules){o=schedules[i];if(o.name!==self.name)continue;if(o.state===STARTED)return timeout(start2);if(o.state===RUNNING){o.state=ENDED;o.timer.stop();o.on.call(`interrupt`,node,node.__data__,o.index,o.group);delete schedules[i]}else if(+i<id2){o.state=ENDED;o.timer.stop();o.on.call(`cancel`,node,node.__data__,o.index,o.group);delete schedules[i]}}timeout(function(){if(self.state===STARTED){self.state=RUNNING;self.timer.restart(tick,self.delay,self.time);tick(elapsed)}});self.state=STARTING;self.on.call(`start`,node,node.__data__,self.index,self.group);if(self.state!==STARTING)return;self.state=STARTED;tween=new Array(n=self.tween.length);for(i=0,j=-1;i<n;++i)if(o=self.tween[i].value.call(node,node.__data__,self.index,self.group))tween[++j]=o;tween.length=j+1}function tick(elapsed){var t=elapsed<self.duration?self.ease.call(null,elapsed/self.duration):(self.timer.restart(stop),self.state=ENDING,1),i=-1,n=tween.length;while(++i<n)tween[i].call(node,t);if(self.state===ENDING){self.on.call(`end`,node,node.__data__,self.index,self.group);stop()}}function stop(){self.state=ENDED;self.timer.stop();delete schedules[id2];for(var i in schedules)return;delete node.__transition}}function interrupt(node,name){var schedules=node.__transition,schedule2,active,empty2=true,i;if(!schedules)return;name=name==null?null:name+``;for(i in schedules){if((schedule2=schedules[i]).name!==name){empty2=false;continue}active=schedule2.state>STARTING&&schedule2.state<ENDING;schedule2.state=ENDED;schedule2.timer.stop();schedule2.on.call(active?`interrupt`:`cancel`,node,node.__data__,schedule2.index,schedule2.group);delete schedules[i]}if(empty2)delete node.__transition}function selection_interrupt(name){return this.each(function(){interrupt(this,name)})}function tweenRemove(id2,name){var tween0,tween1;return function(){var schedule2=set(this,id2),tween=schedule2.tween;if(tween!==tween0){tween1=tween0=tween;for(var i=0,n=tween1.length;i<n;++i)if(tween1[i].name===name){tween1=tween1.slice();tween1.splice(i,1);break}}schedule2.tween=tween1}}function tweenFunction(id2,name,value){var tween0,tween1;if(typeof value!==`function`)throw new Error;return function(){var schedule2=set(this,id2),tween=schedule2.tween;if(tween!==tween0){tween1=(tween0=tween).slice();for(var t={name,value},i=0,n=tween1.length;i<n;++i)if(tween1[i].name===name){tween1[i]=t;break}if(i===n)tween1.push(t)}schedule2.tween=tween1}}function transition_tween(name,value){var id2=this._id;name+=``;if(arguments.length<2){var tween=get(this.node(),id2).tween;for(var i=0,n=tween.length,t;i<n;++i)if((t=tween[i]).name===name)return t.value;return null}return this.each((value==null?tweenRemove:tweenFunction)(id2,name,value))}function tweenValue(transition,name,value){var id2=transition._id;transition.each(function(){var schedule2=set(this,id2);(schedule2.value||(schedule2.value={}))[name]=value.apply(this,arguments)});return function(node){return get(node,id2).value[name]}}function interpolate(a,b){var c;return(typeof b===`number`?interpolateNumber:b instanceof color?interpolateRgb:(c=color(b))?(b=c,interpolateRgb):interpolateString)(a,b)}function attrRemove(name){return function(){this.removeAttribute(name)}}function attrRemoveNS(fullname){return function(){this.removeAttributeNS(fullname.space,fullname.local)}}function attrConstant(name,interpolate2,value1){var string00,string1=value1+``,interpolate0;return function(){var string0=this.getAttribute(name);return string0===string1?null:string0===string00?interpolate0:interpolate0=interpolate2(string00=string0,value1)}}function attrConstantNS(fullname,interpolate2,value1){var string00,string1=value1+``,interpolate0;return function(){var string0=this.getAttributeNS(fullname.space,fullname.local);return string0===string1?null:string0===string00?interpolate0:interpolate0=interpolate2(string00=string0,value1)}}function attrFunction(name,interpolate2,value){var string00,string10,interpolate0;return function(){var string0,value1=value(this),string1;if(value1==null)return void this.removeAttribute(name);string0=this.getAttribute(name);string1=value1+``;return string0===string1?null:string0===string00&&string1===string10?interpolate0:(string10=string1,interpolate0=interpolate2(string00=string0,value1))}}function attrFunctionNS(fullname,interpolate2,value){var string00,string10,interpolate0;return function(){var string0,value1=value(this),string1;if(value1==null)return void this.removeAttributeNS(fullname.space,fullname.local);string0=this.getAttributeNS(fullname.space,fullname.local);string1=value1+``;return string0===string1?null:string0===string00&&string1===string10?interpolate0:(string10=string1,interpolate0=interpolate2(string00=string0,value1))}}function transition_attr(name,value){var fullname=namespace(name),i=fullname===`transform`?interpolateTransformSvg:interpolate;return this.attrTween(name,typeof value===`function`?(fullname.local?attrFunctionNS:attrFunction)(fullname,i,tweenValue(this,`attr.`+name,value)):value==null?(fullname.local?attrRemoveNS:attrRemove)(fullname):(fullname.local?attrConstantNS:attrConstant)(fullname,i,value))}function attrInterpolate(name,i){return function(t){this.setAttribute(name,i.call(this,t))}}function attrInterpolateNS(fullname,i){return function(t){this.setAttributeNS(fullname.space,fullname.local,i.call(this,t))}}function attrTweenNS(fullname,value){var t0,i0;function tween(){var i=value.apply(this,arguments);if(i!==i0)t0=(i0=i)&&attrInterpolateNS(fullname,i);return t0}tween._value=value;return tween}function attrTween(name,value){var t0,i0;function tween(){var i=value.apply(this,arguments);if(i!==i0)t0=(i0=i)&&attrInterpolate(name,i);return t0}tween._value=value;return tween}function transition_attrTween(name,value){var key=`attr.`+name;if(arguments.length<2)return(key=this.tween(key))&&key._value;if(value==null)return this.tween(key,null);if(typeof value!==`function`)throw new Error;var fullname=namespace(name);return this.tween(key,(fullname.local?attrTweenNS:attrTween)(fullname,value))}function delayFunction(id2,value){return function(){init(this,id2).delay=+value.apply(this,arguments)}}function delayConstant(id2,value){return value=+value,function(){init(this,id2).delay=value}}function transition_delay(value){var id2=this._id;return arguments.length?this.each((typeof value===`function`?delayFunction:delayConstant)(id2,value)):get(this.node(),id2).delay}function durationFunction(id2,value){return function(){set(this,id2).duration=+value.apply(this,arguments)}}function durationConstant(id2,value){return value=+value,function(){set(this,id2).duration=value}}function transition_duration(value){var id2=this._id;return arguments.length?this.each((typeof value===`function`?durationFunction:durationConstant)(id2,value)):get(this.node(),id2).duration}function easeConstant(id2,value){if(typeof value!==`function`)throw new Error;return function(){set(this,id2).ease=value}}function transition_ease(value){var id2=this._id;return arguments.length?this.each(easeConstant(id2,value)):get(this.node(),id2).ease}function easeVarying(id2,value){return function(){var v=value.apply(this,arguments);if(typeof v!==`function`)throw new Error;set(this,id2).ease=v}}function transition_easeVarying(value){if(typeof value!==`function`)throw new Error;return this.each(easeVarying(this._id,value))}function transition_filter(match){if(typeof match!==`function`)match=matcher(match);for(var groups=this._groups,m=groups.length,subgroups=new Array(m),j=0;j<m;++j)for(var group=groups[j],n=group.length,subgroup=subgroups[j]=[],node,i=0;i<n;++i)if((node=group[i])&&match.call(node,node.__data__,i,group))subgroup.push(node);return new Transition(subgroups,this._parents,this._name,this._id)}function transition_merge(transition){if(transition._id!==this._id)throw new Error;for(var groups0=this._groups,groups1=transition._groups,m0=groups0.length,m1=groups1.length,m=Math.min(m0,m1),merges=new Array(m0),j=0;j<m;++j)for(var group0=groups0[j],group1=groups1[j],n=group0.length,merge=merges[j]=new Array(n),node,i=0;i<n;++i)if(node=group0[i]||group1[i])merge[i]=node;for(;j<m0;++j)merges[j]=groups0[j];return new Transition(merges,this._parents,this._name,this._id)}function start(name){return(name+``).trim().split(/^|\s+/).every(function(t){var i=t.indexOf(`.`);if(i>=0)t=t.slice(0,i);return!t||t===`start`})}function onFunction(id2,name,listener){var on0,on1,sit=start(name)?init:set;return function(){var schedule2=sit(this,id2),on=schedule2.on;if(on!==on0)(on1=(on0=on).copy()).on(name,listener);schedule2.on=on1}}function transition_on(name,listener){var id2=this._id;return arguments.length<2?get(this.node(),id2).on.on(name):this.each(onFunction(id2,name,listener))}function removeFunction(id2){return function(){var parent=this.parentNode;for(var i in this.__transition)if(+i!==id2)return;if(parent)parent.removeChild(this)}}function transition_remove(){return this.on(`end.remove`,removeFunction(this._id))}function transition_select(select2){var name=this._name,id2=this._id;if(typeof select2!==`function`)select2=selector(select2);for(var groups=this._groups,m=groups.length,subgroups=new Array(m),j=0;j<m;++j)for(var group=groups[j],n=group.length,subgroup=subgroups[j]=new Array(n),node,subnode,i=0;i<n;++i)if((node=group[i])&&(subnode=select2.call(node,node.__data__,i,group))){if(`__data__`in node)subnode.__data__=node.__data__;subgroup[i]=subnode;schedule(subgroup[i],name,id2,i,subgroup,get(node,id2))}return new Transition(subgroups,this._parents,name,id2)}function transition_selectAll(select2){var name=this._name,id2=this._id;if(typeof select2!==`function`)select2=selectorAll(select2);for(var groups=this._groups,m=groups.length,subgroups=[],parents=[],j=0;j<m;++j)for(var group=groups[j],n=group.length,node,i=0;i<n;++i)if(node=group[i]){for(var children2=select2.call(node,node.__data__,i,group),child,inherit2=get(node,id2),k=0,l=children2.length;k<l;++k)if(child=children2[k])schedule(child,name,id2,k,children2,inherit2);subgroups.push(children2);parents.push(node)}return new Transition(subgroups,parents,name,id2)}var Selection=selection.prototype.constructor;function transition_selection(){return new Selection(this._groups,this._parents)}function styleNull(name,interpolate2){var string00,string10,interpolate0;return function(){var string0=styleValue(this,name),string1=(this.style.removeProperty(name),styleValue(this,name));return string0===string1?null:string0===string00&&string1===string10?interpolate0:interpolate0=interpolate2(string00=string0,string10=string1)}}function styleRemove(name){return function(){this.style.removeProperty(name)}}function styleConstant(name,interpolate2,value1){var string00,string1=value1+``,interpolate0;return function(){var string0=styleValue(this,name);return string0===string1?null:string0===string00?interpolate0:interpolate0=interpolate2(string00=string0,value1)}}function styleFunction(name,interpolate2,value){var string00,string10,interpolate0;return function(){var string0=styleValue(this,name),value1=value(this),string1=value1+``;if(value1==null)string1=value1=(this.style.removeProperty(name),styleValue(this,name));return string0===string1?null:string0===string00&&string1===string10?interpolate0:(string10=string1,interpolate0=interpolate2(string00=string0,value1))}}function styleMaybeRemove(id2,name){var on0,on1,listener0,key=`style.`+name,event=`end.`+key,remove2;return function(){var schedule2=set(this,id2),on=schedule2.on,listener=schedule2.value[key]==null?remove2||(remove2=styleRemove(name)):void 0;if(on!==on0||listener0!==listener)(on1=(on0=on).copy()).on(event,listener0=listener);schedule2.on=on1}}function transition_style(name,value,priority){var i=(name+=``)===`transform`?interpolateTransformCss:interpolate;return value==null?this.styleTween(name,styleNull(name,i)).on(`end.style.`+name,styleRemove(name)):typeof value===`function`?this.styleTween(name,styleFunction(name,i,tweenValue(this,`style.`+name,value))).each(styleMaybeRemove(this._id,name)):this.styleTween(name,styleConstant(name,i,value),priority).on(`end.style.`+name,null)}function styleInterpolate(name,i,priority){return function(t){this.style.setProperty(name,i.call(this,t),priority)}}function styleTween(name,value,priority){var t,i0;function tween(){var i=value.apply(this,arguments);if(i!==i0)t=(i0=i)&&styleInterpolate(name,i,priority);return t}tween._value=value;return tween}function transition_styleTween(name,value,priority){var key=`style.`+(name+=``);if(arguments.length<2)return(key=this.tween(key))&&key._value;if(value==null)return this.tween(key,null);if(typeof value!==`function`)throw new Error;return this.tween(key,styleTween(name,value,priority==null?``:priority))}function textConstant(value){return function(){this.textContent=value}}function textFunction(value){return function(){var value1=value(this);this.textContent=value1==null?``:value1}}function transition_text(value){return this.tween(`text`,typeof value===`function`?textFunction(tweenValue(this,`text`,value)):textConstant(value==null?``:value+``))}function textInterpolate(i){return function(t){this.textContent=i.call(this,t)}}function textTween(value){var t0,i0;function tween(){var i=value.apply(this,arguments);if(i!==i0)t0=(i0=i)&&textInterpolate(i);return t0}tween._value=value;return tween}function transition_textTween(value){var key=`text`;if(arguments.length<1)return(key=this.tween(key))&&key._value;if(value==null)return this.tween(key,null);if(typeof value!==`function`)throw new Error;return this.tween(key,textTween(value))}function transition_transition(){var name=this._name,id0=this._id,id1=newId();for(var groups=this._groups,m=groups.length,j=0;j<m;++j)for(var group=groups[j],n=group.length,node,i=0;i<n;++i)if(node=group[i]){var inherit2=get(node,id0);schedule(node,name,id1,i,group,{time:inherit2.time+inherit2.delay+inherit2.duration,delay:0,duration:inherit2.duration,ease:inherit2.ease})}return new Transition(groups,this._parents,name,id1)}function transition_end(){var on0,on1,that=this,id2=that._id,size=that.size();return new Promise(function(resolve,reject){var cancel={value:reject},end={value:function(){if(--size===0)resolve()}};that.each(function(){var schedule2=set(this,id2),on=schedule2.on;if(on!==on0){on1=(on0=on).copy();on1._.cancel.push(cancel);on1._.interrupt.push(cancel);on1._.end.push(end)}schedule2.on=on1});if(size===0)resolve()})}var id=0;function Transition(groups,parents,name,id2){this._groups=groups;this._parents=parents;this._name=name;this._id=id2}function newId(){return++id}var selection_prototype=selection.prototype;Transition.prototype={constructor:Transition,select:transition_select,selectAll:transition_selectAll,selectChild:selection_prototype.selectChild,selectChildren:selection_prototype.selectChildren,filter:transition_filter,merge:transition_merge,selection:transition_selection,transition:transition_transition,call:selection_prototype.call,nodes:selection_prototype.nodes,node:selection_prototype.node,size:selection_prototype.size,empty:selection_prototype.empty,each:selection_prototype.each,on:transition_on,attr:transition_attr,attrTween:transition_attrTween,style:transition_style,styleTween:transition_styleTween,text:transition_text,textTween:transition_textTween,remove:transition_remove,tween:transition_tween,delay:transition_delay,duration:transition_duration,ease:transition_ease,easeVarying:transition_easeVarying,end:transition_end,[Symbol.iterator]:selection_prototype[Symbol.iterator]};function cubicInOut(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var defaultTiming={time:null,delay:0,duration:250,ease:cubicInOut};function inherit(node,id2){var timing;while(!(timing=node.__transition)||!(timing=timing[id2]))if(!(node=node.parentNode))throw new Error(`transition ${id2} not found`);return timing}function selection_transition(name){var id2,timing;if(name instanceof Transition)id2=name._id,name=name._name;else id2=newId(),(timing=defaultTiming).time=now(),name=name==null?null:name+``;for(var groups=this._groups,m=groups.length,j=0;j<m;++j)for(var group=groups[j],n=group.length,node,i=0;i<n;++i)if(node=group[i])schedule(node,name,id2,i,group,timing||inherit(node,id2));return new Transition(groups,this._parents,name,id2)}selection.prototype.interrupt=selection_interrupt;selection.prototype.transition=selection_transition;var constant=x=>()=>x;function ZoomEvent(type,{sourceEvent:sourceEvent2,target,transform,dispatch:dispatch2}){Object.defineProperties(this,{type:{value:type,enumerable:true,configurable:true},sourceEvent:{value:sourceEvent2,enumerable:true,configurable:true},target:{value:target,enumerable:true,configurable:true},transform:{value:transform,enumerable:true,configurable:true},_:{value:dispatch2}})}function Transform(k,x,y){this.k=k;this.x=x;this.y=y}Transform.prototype={constructor:Transform,scale:function(k){return k===1?this:new Transform(this.k*k,this.x,this.y)},translate:function(x,y){return x===0&y===0?this:new Transform(this.k,this.x+this.k*x,this.y+this.k*y)},apply:function(point){return[point[0]*this.k+this.x,point[1]*this.k+this.y]},applyX:function(x){return x*this.k+this.x},applyY:function(y){return y*this.k+this.y},invert:function(location){return[(location[0]-this.x)/this.k,(location[1]-this.y)/this.k]},invertX:function(x){return(x-this.x)/this.k},invertY:function(y){return(y-this.y)/this.k},rescaleX:function(x){return x.copy().domain(x.range().map(this.invertX,this).map(x.invert,x))},rescaleY:function(y){return y.copy().domain(y.range().map(this.invertY,this).map(y.invert,y))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var identity=new Transform(1,0,0);Transform.prototype;function nopropagation(event){event.stopImmediatePropagation()}function noevent(event){event.preventDefault();event.stopImmediatePropagation()}function defaultFilter(event){return(!event.ctrlKey||event.type===`wheel`)&&!event.button}function defaultExtent(){var e=this;if(e instanceof SVGElement){e=e.ownerSVGElement||e;if(e.hasAttribute(`viewBox`)){e=e.viewBox.baseVal;return[[e.x,e.y],[e.x+e.width,e.y+e.height]]}return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}return[[0,0],[e.clientWidth,e.clientHeight]]}function defaultTransform(){return this.__zoom||identity}function defaultWheelDelta(event){return-event.deltaY*(event.deltaMode===1?.05:event.deltaMode?1:.002)*(event.ctrlKey?10:1)}function defaultTouchable(){return navigator.maxTouchPoints||`ontouchstart`in this}function defaultConstrain(transform,extent,translateExtent){var dx0=transform.invertX(extent[0][0])-translateExtent[0][0],dx1=transform.invertX(extent[1][0])-translateExtent[1][0],dy0=transform.invertY(extent[0][1])-translateExtent[0][1],dy1=transform.invertY(extent[1][1])-translateExtent[1][1];return transform.translate(dx1>dx0?(dx0+dx1)/2:Math.min(0,dx0)||Math.max(0,dx1),dy1>dy0?(dy0+dy1)/2:Math.min(0,dy0)||Math.max(0,dy1))}function zoom(){var filter2=defaultFilter,extent=defaultExtent,constrain=defaultConstrain,wheelDelta2=defaultWheelDelta,touchable=defaultTouchable,scaleExtent=[0,Infinity],translateExtent=[[-Infinity,-Infinity],[Infinity,Infinity]],duration=250,interpolate2=interpolateZoom,listeners=dispatch(`start`,`zoom`,`end`),touchstarting,touchfirst,touchending,touchDelay=500,wheelDelay=150,clickDistance2=0,tapDistance=10;function zoom2(selection2){selection2.property(`__zoom`,defaultTransform).on(`wheel.zoom`,wheeled,{passive:false}).on(`mousedown.zoom`,mousedowned).on(`dblclick.zoom`,dblclicked).filter(touchable).on(`touchstart.zoom`,touchstarted).on(`touchmove.zoom`,touchmoved).on(`touchend.zoom touchcancel.zoom`,touchended).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}zoom2.transform=function(collection,transform,point,event){var selection2=collection.selection?collection.selection():collection;selection2.property(`__zoom`,defaultTransform);if(collection!==selection2)schedule2(collection,transform,point,event);else selection2.interrupt().each(function(){gesture(this,arguments).event(event).start().zoom(null,typeof transform===`function`?transform.apply(this,arguments):transform).end()})};zoom2.scaleBy=function(selection2,k,p,event){zoom2.scaleTo(selection2,function(){return this.__zoom.k*(typeof k===`function`?k.apply(this,arguments):k)},p,event)};zoom2.scaleTo=function(selection2,k,p,event){zoom2.transform(selection2,function(){var e=extent.apply(this,arguments),t0=this.__zoom,p0=p==null?centroid(e):typeof p===`function`?p.apply(this,arguments):p,p1=t0.invert(p0),k1=typeof k===`function`?k.apply(this,arguments):k;return constrain(translate(scale(t0,k1),p0,p1),e,translateExtent)},p,event)};zoom2.translateBy=function(selection2,x,y,event){zoom2.transform(selection2,function(){return constrain(this.__zoom.translate(typeof x===`function`?x.apply(this,arguments):x,typeof y===`function`?y.apply(this,arguments):y),extent.apply(this,arguments),translateExtent)},null,event)};zoom2.translateTo=function(selection2,x,y,p,event){zoom2.transform(selection2,function(){var e=extent.apply(this,arguments),t=this.__zoom,p0=p==null?centroid(e):typeof p===`function`?p.apply(this,arguments):p;return constrain(identity.translate(p0[0],p0[1]).scale(t.k).translate(typeof x===`function`?-x.apply(this,arguments):-x,typeof y===`function`?-y.apply(this,arguments):-y),e,translateExtent)},p,event)};function scale(transform,k){k=Math.max(scaleExtent[0],Math.min(scaleExtent[1],k));return k===transform.k?transform:new Transform(k,transform.x,transform.y)}function translate(transform,p0,p1){var x=p0[0]-p1[0]*transform.k,y=p0[1]-p1[1]*transform.k;return x===transform.x&&y===transform.y?transform:new Transform(transform.k,x,y)}function centroid(extent2){return[(+extent2[0][0]+ +extent2[1][0])/2,(+extent2[0][1]+ +extent2[1][1])/2]}function schedule2(transition,transform,point,event){transition.on(`start.zoom`,function(){gesture(this,arguments).event(event).start()}).on(`interrupt.zoom end.zoom`,function(){gesture(this,arguments).event(event).end()}).tween(`zoom`,function(){var that=this,args=arguments,g=gesture(that,args).event(event),e=extent.apply(that,args),p=point==null?centroid(e):typeof point===`function`?point.apply(that,args):point,w=Math.max(e[1][0]-e[0][0],e[1][1]-e[0][1]),a=that.__zoom,b=typeof transform===`function`?transform.apply(that,args):transform,i=interpolate2(a.invert(p).concat(w/a.k),b.invert(p).concat(w/b.k));return function(t){if(t===1)t=b;else{var l=i(t),k=w/l[2];t=new Transform(k,p[0]-l[0]*k,p[1]-l[1]*k)}g.zoom(null,t)}})}function gesture(that,args,clean){return!clean&&that.__zooming||new Gesture(that,args)}function Gesture(that,args){this.that=that;this.args=args;this.active=0;this.sourceEvent=null;this.extent=extent.apply(that,args);this.taps=0}Gesture.prototype={event:function(event){if(event)this.sourceEvent=event;return this},start:function(){if(++this.active===1){this.that.__zooming=this;this.emit(`start`)}return this},zoom:function(key,transform){if(this.mouse&&key!==`mouse`)this.mouse[1]=transform.invert(this.mouse[0]);if(this.touch0&&key!==`touch`)this.touch0[1]=transform.invert(this.touch0[0]);if(this.touch1&&key!==`touch`)this.touch1[1]=transform.invert(this.touch1[0]);this.that.__zoom=transform;this.emit(`zoom`);return this},end:function(){if(--this.active===0){delete this.that.__zooming;this.emit(`end`)}return this},emit:function(type){var d=select(this.that).datum();listeners.call(type,this.that,new ZoomEvent(type,{sourceEvent:this.sourceEvent,target:zoom2,type,transform:this.that.__zoom,dispatch:listeners}),d)}};function wheeled(event,...args){if(!filter2.apply(this,arguments))return;var g=gesture(this,args).event(event),t=this.__zoom,k=Math.max(scaleExtent[0],Math.min(scaleExtent[1],t.k*Math.pow(2,wheelDelta2.apply(this,arguments)))),p=pointer(event);if(g.wheel){if(g.mouse[0][0]!==p[0]||g.mouse[0][1]!==p[1])g.mouse[1]=t.invert(g.mouse[0]=p);clearTimeout(g.wheel)}else if(t.k===k)return;else{g.mouse=[p,t.invert(p)];interrupt(this);g.start()}noevent(event);g.wheel=setTimeout(wheelidled,wheelDelay);g.zoom(`mouse`,constrain(translate(scale(t,k),g.mouse[0],g.mouse[1]),g.extent,translateExtent));function wheelidled(){g.wheel=null;g.end()}}function mousedowned(event,...args){if(touchending||!filter2.apply(this,arguments))return;var currentTarget=event.currentTarget,g=gesture(this,args,true).event(event),v=select(event.view).on(`mousemove.zoom`,mousemoved,true).on(`mouseup.zoom`,mouseupped,true),p=pointer(event,currentTarget),x0=event.clientX,y0=event.clientY;dragDisable(event.view);nopropagation(event);g.mouse=[p,this.__zoom.invert(p)];interrupt(this);g.start();function mousemoved(event2){noevent(event2);if(!g.moved){var dx=event2.clientX-x0,dy=event2.clientY-y0;g.moved=dx*dx+dy*dy>clickDistance2}g.event(event2).zoom(`mouse`,constrain(translate(g.that.__zoom,g.mouse[0]=pointer(event2,currentTarget),g.mouse[1]),g.extent,translateExtent))}function mouseupped(event2){v.on(`mousemove.zoom mouseup.zoom`,null);yesdrag(event2.view,g.moved);noevent(event2);g.event(event2).end()}}function dblclicked(event,...args){if(!filter2.apply(this,arguments))return;var t0=this.__zoom,p0=pointer(event.changedTouches?event.changedTouches[0]:event,this),p1=t0.invert(p0),k1=t0.k*(event.shiftKey?.5:2),t1=constrain(translate(scale(t0,k1),p0,p1),extent.apply(this,args),translateExtent);noevent(event);if(duration>0)select(this).transition().duration(duration).call(schedule2,t1,p0,event);else select(this).call(zoom2.transform,t1,p0,event)}function touchstarted(event,...args){if(!filter2.apply(this,arguments))return;var touches=event.touches,n=touches.length,g=gesture(this,args,event.changedTouches.length===n).event(event),started,i,t,p;nopropagation(event);for(i=0;i<n;++i){t=touches[i],p=pointer(t,this);p=[p,this.__zoom.invert(p),t.identifier];if(!g.touch0)g.touch0=p,started=true,g.taps=1+!!touchstarting;else if(!g.touch1&&g.touch0[2]!==p[2])g.touch1=p,g.taps=0}if(touchstarting)touchstarting=clearTimeout(touchstarting);if(started){if(g.taps<2)touchfirst=p[0],touchstarting=setTimeout(function(){touchstarting=null},touchDelay);interrupt(this);g.start()}}function touchmoved(event,...args){if(!this.__zooming)return;var g=gesture(this,args).event(event),touches=event.changedTouches,n=touches.length,i,t,p,l;noevent(event);for(i=0;i<n;++i){t=touches[i],p=pointer(t,this);if(g.touch0&&g.touch0[2]===t.identifier)g.touch0[0]=p;else if(g.touch1&&g.touch1[2]===t.identifier)g.touch1[0]=p}t=g.that.__zoom;if(g.touch1){var p0=g.touch0[0],l0=g.touch0[1],p1=g.touch1[0],l1=g.touch1[1],dp=(dp=p1[0]-p0[0])*dp+(dp=p1[1]-p0[1])*dp,dl=(dl=l1[0]-l0[0])*dl+(dl=l1[1]-l0[1])*dl;t=scale(t,Math.sqrt(dp/dl));p=[(p0[0]+p1[0])/2,(p0[1]+p1[1])/2];l=[(l0[0]+l1[0])/2,(l0[1]+l1[1])/2]}else if(g.touch0)p=g.touch0[0],l=g.touch0[1];else return;g.zoom(`touch`,constrain(translate(t,p,l),g.extent,translateExtent))}function touchended(event,...args){if(!this.__zooming)return;var g=gesture(this,args).event(event),touches=event.changedTouches,n=touches.length,i,t;nopropagation(event);if(touchending)clearTimeout(touchending);touchending=setTimeout(function(){touchending=null},touchDelay);for(i=0;i<n;++i){t=touches[i];if(g.touch0&&g.touch0[2]===t.identifier)delete g.touch0;else if(g.touch1&&g.touch1[2]===t.identifier)delete g.touch1}if(g.touch1&&!g.touch0)g.touch0=g.touch1,delete g.touch1;if(g.touch0)g.touch0[1]=this.__zoom.invert(g.touch0[0]);else{g.end();if(g.taps===2){t=pointer(t,this);if(Math.hypot(touchfirst[0]-t[0],touchfirst[1]-t[1])<tapDistance){var p=select(this).on(`dblclick.zoom`);if(p)p.apply(this,arguments)}}}}zoom2.wheelDelta=function(_){return arguments.length?(wheelDelta2=typeof _===`function`?_:constant(+_),zoom2):wheelDelta2};zoom2.filter=function(_){return arguments.length?(filter2=typeof _===`function`?_:constant(!!_),zoom2):filter2};zoom2.touchable=function(_){return arguments.length?(touchable=typeof _===`function`?_:constant(!!_),zoom2):touchable};zoom2.extent=function(_){return arguments.length?(extent=typeof _===`function`?_:constant([[+_[0][0],+_[0][1]],[+_[1][0],+_[1][1]]]),zoom2):extent};zoom2.scaleExtent=function(_){return arguments.length?(scaleExtent[0]=+_[0],scaleExtent[1]=+_[1],zoom2):[scaleExtent[0],scaleExtent[1]]};zoom2.translateExtent=function(_){return arguments.length?(translateExtent[0][0]=+_[0][0],translateExtent[1][0]=+_[1][0],translateExtent[0][1]=+_[0][1],translateExtent[1][1]=+_[1][1],zoom2):[[translateExtent[0][0],translateExtent[0][1]],[translateExtent[1][0],translateExtent[1][1]]]};zoom2.constrain=function(_){return arguments.length?(constrain=_,zoom2):constrain};zoom2.duration=function(_){return arguments.length?(duration=+_,zoom2):duration};zoom2.interpolate=function(_){return arguments.length?(interpolate2=_,zoom2):interpolate2};zoom2.on=function(){var value=listeners.on.apply(listeners,arguments);return value===listeners?zoom2:value};zoom2.clickDistance=function(_){return arguments.length?(clickDistance2=(_=+_)*_,zoom2):Math.sqrt(clickDistance2)};zoom2.tapDistance=function(_){return arguments.length?(tapDistance=+_,zoom2):tapDistance};return zoom2}var Position=(Position2=>{Position2[`Left`]=`left`;Position2[`Top`]=`top`;Position2[`Right`]=`right`;Position2[`Bottom`]=`bottom`;return Position2})(Position||{});var SelectionMode=(SelectionMode2=>{SelectionMode2[`Partial`]=`partial`;SelectionMode2[`Full`]=`full`;return SelectionMode2})(SelectionMode||{});var ConnectionLineType=(ConnectionLineType2=>{ConnectionLineType2[`Bezier`]=`default`;ConnectionLineType2[`SimpleBezier`]=`simple-bezier`;ConnectionLineType2[`Straight`]=`straight`;ConnectionLineType2[`Step`]=`step`;ConnectionLineType2[`SmoothStep`]=`smoothstep`;return ConnectionLineType2})(ConnectionLineType||{});var ConnectionMode=(ConnectionMode2=>{ConnectionMode2[`Strict`]=`strict`;ConnectionMode2[`Loose`]=`loose`;return ConnectionMode2})(ConnectionMode||{});var MarkerType=(MarkerType2=>{MarkerType2[`Arrow`]=`arrow`;MarkerType2[`ArrowClosed`]=`arrowclosed`;return MarkerType2})(MarkerType||{});var PanOnScrollMode=(PanOnScrollMode2=>{PanOnScrollMode2[`Free`]=`free`;PanOnScrollMode2[`Vertical`]=`vertical`;PanOnScrollMode2[`Horizontal`]=`horizontal`;return PanOnScrollMode2})(PanOnScrollMode||{});var inputTags=[`INPUT`,`SELECT`,`TEXTAREA`];var defaultDoc=typeof document!==`undefined`?document:null;function isInputDOMNode(event){var _a,_b;const target=((_b=(_a=event.composedPath)==null?void 0:_a.call(event))==null?void 0:_b[0])||event.target;const hasAttribute=typeof(target==null?void 0:target.hasAttribute)===`function`?target.hasAttribute(`contenteditable`):false;const closest=typeof(target==null?void 0:target.closest)===`function`?target.closest(`.nokey`):null;return inputTags.includes(target==null?void 0:target.nodeName)||hasAttribute||!!closest}function wasModifierPressed(event){return event.ctrlKey||event.metaKey||event.shiftKey||event.altKey}function isKeyMatch(pressedKey,keyToMatch,pressedKeys,isKeyUp){const keyCombination=keyToMatch.replace(`+`,`
|
|
2
2
|
`).replace(`
|
|
3
3
|
|
|
4
4
|
`,`
|
|
Binary file
|
|
Binary file
|
package/dist/index.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<style>@layer vuetify-core.reset, vuetify-core.base, vuetify-components, vuetify-overrides, vuetify-utilities.theme-base, vuetify-utilities.typography, vuetify-utilities.helpers, vuetify-utilities.theme-background, vuetify-utilities.theme-foreground, vuetify-final.transitions, vuetify-final.trumps;</style>
|
|
5
|
-
<meta name="jskit-client-build" content="
|
|
5
|
+
<meta name="jskit-client-build" content="123fc9b554f66505">
|
|
6
6
|
|
|
7
7
|
<meta charset="UTF-8" />
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</script>
|
|
35
35
|
<style>#startup-shell{--startup-background:#f9f9ff;--startup-on-surface:#191c20;--startup-on-surface-variant:#43474e;--startup-surface-container-highest:#e2e2e9;--startup-primary:#3f5f90;box-sizing:border-box;background:var(--startup-background);color:var(--startup-on-surface-variant);letter-spacing:.01em;text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:24px 16px;font:14px/20px system-ui,-apple-system,Segoe UI,Roboto,sans-serif;display:flex;position:fixed;inset:0}@media (prefers-color-scheme:dark){#startup-shell:not([data-appearance=light]){--startup-background:#111318;--startup-on-surface:#e2e2e9;--startup-on-surface-variant:#c4c6cf;--startup-surface-container-highest:#33353a;--startup-primary:#a8c8ff}}#startup-shell[data-appearance=dark]{--startup-background:#111318;--startup-on-surface:#e2e2e9;--startup-on-surface-variant:#c4c6cf;--startup-surface-container-highest:#33353a;--startup-primary:#a8c8ff}#startup-shell p{margin:0}#startup-shell .startup-mark{border-radius:15px;width:64px;height:64px;display:block;box-shadow:0 1px 2px #0000001f,0 4px 16px #00000014}#startup-shell .startup-wordmark{color:var(--startup-on-surface);letter-spacing:0;margin-top:16px;font-size:22px;font-weight:500;line-height:28px}#startup-shell .startup-progress{background:var(--startup-surface-container-highest);border-radius:2px;width:128px;height:3px;margin:28px 0 16px;position:relative;overflow:hidden}#startup-shell .startup-progress span{border-radius:inherit;background:var(--startup-primary);opacity:.6;position:absolute;inset:0}#startup-shell noscript{margin-top:28px}#startup-shell .startup-reload{visibility:hidden;opacity:0;flex-wrap:wrap;justify-content:center;align-items:center;column-gap:4px;margin-top:4px;display:flex}#startup-shell[data-startup] .startup-reload{visibility:visible;opacity:1}#startup-shell[data-startup=failed] .startup-progress{visibility:hidden}#startup-shell[data-startup=failed] .startup-slow{display:none}#startup-shell[data-startup=failed] #startup-status{color:var(--startup-on-surface)}#startup-shell a{min-height:48px;color:var(--startup-primary);text-underline-offset:3px;border-radius:4px;align-items:center;padding:0 4px;font-weight:500;text-decoration:underline;text-decoration-thickness:1px;display:inline-flex}#startup-shell a:focus-visible{outline:2px solid var(--startup-primary);outline-offset:2px}@media (prefers-reduced-motion:no-preference){#startup-shell .startup-progress span{opacity:1;width:40%;animation:1.4s cubic-bezier(.4,0,.2,1) infinite startup-slide;right:auto}#startup-shell .startup-reload{transition:opacity .2s ease-out}}@media (prefers-reduced-motion:reduce){#startup-shell .startup-progress span{animation:1.6s ease-in-out infinite alternate startup-pulse!important}}@keyframes startup-slide{0%{transform:translate(-100%)}to{transform:translate(250%)}}@keyframes startup-pulse{0%{opacity:.25}to{opacity:.8}}</style>
|
|
36
36
|
<noscript><style>#startup-shell .startup-progress,#startup-status{display:none}</style></noscript>
|
|
37
|
-
<script type="module" crossorigin src="/assets/index-
|
|
37
|
+
<script type="module" crossorigin src="/assets/index-CeCIadYg.js"></script>
|
|
38
38
|
</head>
|
|
39
39
|
<body>
|
|
40
40
|
<div id="app">
|
|
@@ -183,8 +183,9 @@ a plan completed.
|
|
|
183
183
|
|
|
184
184
|
Executing the current plan requires it to be Active. A missing or Completed plan
|
|
185
185
|
is explained without reviving an old task. Independent work does not need a plan.
|
|
186
|
-
Junior updates Progress and existing checklist
|
|
187
|
-
|
|
186
|
+
Junior updates Progress and existing checklist marks as work goes: a half tick once an item is built, a full tick once
|
|
187
|
+
the plan's final checks prove it (see [Checklist marks](plans.md#checklist-marks)). Only Senior can manage the plan’s
|
|
188
|
+
lifecycle and explicitly mark it Completed after verifying the evidence, and only once every item is proven.
|
|
188
189
|
|
|
189
190
|
If an automatic handoff failed before its message was sent, you can type a new
|
|
190
191
|
request and use the ordinary **Send** button (or speak a new request). Sending
|
|
@@ -27,8 +27,8 @@ yourself, such as Valkey, and enter its address in that row, just as for a
|
|
|
27
27
|
database. A **bucket** (kind `bucket`) is
|
|
28
28
|
object storage you hold with an S3-compatible provider. Development never asks
|
|
29
29
|
for a bucket's settings: no rows appear for it, the setup message does not list
|
|
30
|
-
them, and the app keeps its files in its own
|
|
31
|
-
disk. To try your real bucket in development, add the same names yourself (for
|
|
30
|
+
them, Preview starts without them, and the app keeps its files in its own
|
|
31
|
+
default storage, usually its own disk. To try your real bucket in development, add the same names yourself (for
|
|
32
32
|
a JSKIT app `JSKIT_STORAGE_DRIVER` set to `s3`, plus `JSKIT_STORAGE_S3_BUCKET`,
|
|
33
33
|
`JSKIT_STORAGE_S3_REGION`, `JSKIT_STORAGE_S3_ENDPOINT`,
|
|
34
34
|
`JSKIT_STORAGE_S3_ACCESS_KEY_ID` and `JSKIT_STORAGE_S3_SECRET_ACCESS_KEY`, the
|
|
@@ -22,8 +22,10 @@ Senior confirms creation or updates after the plan helper has saved the result.
|
|
|
22
22
|
Both direct Senior and Junior receive the plan format and command instructions.
|
|
23
23
|
Both roles must read the full Plan, including its technical details, and Progress
|
|
24
24
|
before implementing or reviewing. Collapsing details in the viewer does not hide
|
|
25
|
-
them from the agent. Junior updates Progress and
|
|
26
|
-
as
|
|
25
|
+
them from the agent. Junior updates Progress and the marks of existing checklist
|
|
26
|
+
items as the work goes: a half tick once an item is built, a full tick once the
|
|
27
|
+
plan's final checks prove it (see [Checklist marks](#checklist-marks)); Senior
|
|
28
|
+
owns agreed Plan scope changes. Creating,
|
|
27
29
|
reopening, archiving and completing a plan still require Senior. An unsuccessful
|
|
28
30
|
save must be reported, and a chat outline alone is not a saved plan.
|
|
29
31
|
|
|
@@ -33,7 +35,9 @@ save must be reported, and a chat outline alone is not a saved plan.
|
|
|
33
35
|
It is highlighted in muted yellow while the current plan is active. Its label
|
|
34
36
|
is **View active plan** or **View plan and history**.
|
|
35
37
|
2. Select **Current plan**. The selected tab has a coloured underline.
|
|
36
|
-
3. Read the **Active** or **Completed** status and
|
|
38
|
+
3. Read the **Active** or **Completed** status and the plan's progress, such as
|
|
39
|
+
**6 built · 2 proven of 9 requirements**: built counts every item that is
|
|
40
|
+
built or proven, proven only the proven ones. Select
|
|
37
41
|
**Plan** for the stable summary, checklist and implementation instructions or **Progress** for work, evidence and
|
|
38
42
|
blockers. Both tabs belong to the same current or archived artifact.
|
|
39
43
|
4. Select **Technical details** below the summary and checklist to expand the
|
|
@@ -51,18 +55,34 @@ The icon remains available after completion and when only archived plans remain.
|
|
|
51
55
|
When there is no current plan, the icon opens **History** directly.
|
|
52
56
|
There is no icon when the session has neither a current plan nor history.
|
|
53
57
|
|
|
54
|
-
Checklist
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
### Checklist marks
|
|
59
|
+
|
|
60
|
+
Each checklist item shows one of three boxes, so you can watch the plan fill in
|
|
61
|
+
as items get built instead of waiting for the final checks:
|
|
62
|
+
|
|
63
|
+
| Box | In the plan text | Meaning | When the AI sets it |
|
|
64
|
+
|---|---|---|---|
|
|
65
|
+
| Empty (**Not done yet**) | `- [ ]` | Not done yet | — |
|
|
66
|
+
| A dash in a filled box, the indeterminate checkbox (**Built, not yet proven**) | `- [~]` | Built: implemented, and its own focused checks pass | As soon as that item is implemented |
|
|
67
|
+
| Ticked (**Proven**) | `- [x]` | Proven by the plan's final checks | When the whole run, the review or the proof the plan states covers it |
|
|
68
|
+
|
|
69
|
+
A screen reader reads each box's label, shown in bold above.
|
|
70
|
+
|
|
71
|
+
Checklist wording stays stable while the marks update during development. The AI
|
|
72
|
+
never leaves a built item empty, and a partly done item stays empty. Review moves
|
|
73
|
+
an item back to built or to not done yet when its evidence is missing or it
|
|
74
|
+
regressed. Junior records supporting evidence and blockers in Progress. Senior
|
|
75
|
+
checks the marks against that evidence and explicitly completes the artifact only
|
|
76
|
+
after verifying every agreed acceptance requirement. Vibe64 refuses to complete
|
|
77
|
+
a plan while any item is not done yet or only built, and the refusal names each
|
|
78
|
+
such item and its mark, so Senior proves it or leaves the plan active with the gap in
|
|
79
|
+
Progress. A finished turn or a fully ticked checklist alone does not complete a
|
|
80
|
+
plan. Updates appear while the viewer is open.
|
|
61
81
|
|
|
62
82
|
## Automatic completion and archival
|
|
63
83
|
|
|
64
84
|
Only Senior marks a plan Completed, once it has verified every agreed
|
|
65
|
-
requirement: in Auto, in the turn in which Senior checks the plan Junior
|
|
85
|
+
requirement and every checklist item is ticked as proven: in Auto, in the turn in which Senior checks the plan Junior
|
|
66
86
|
implemented; in a Senior chat, or when Senior implemented it, in Senior's own
|
|
67
87
|
work on it. A Junior or Custom
|
|
68
88
|
chat leaves the plan active for Senior to complete, and its work is saved as
|
|
@@ -114,7 +134,8 @@ the problem. If the plan changed, refresh the viewer before trying again.
|
|
|
114
134
|
## Read an archived plan and progress
|
|
115
135
|
|
|
116
136
|
1. Select **History**. Each entry shows its title, archive date, **Completed** or
|
|
117
|
-
**Unfinished** status, and
|
|
137
|
+
**Unfinished** status, and its progress, such as **4 built · 4 proven of 4
|
|
138
|
+
requirements**. An empty list says
|
|
118
139
|
**No archived plans**.
|
|
119
140
|
2. Select an entry. **History** stays selected, and **Archived · read-only** plus
|
|
120
141
|
the archive date remain above the document while you scroll.
|
|
@@ -144,7 +165,8 @@ A loading placeholder means the selected document has not arrived yet. A load
|
|
|
144
165
|
error includes **Retry**. Do not treat a partially loaded plan as the whole record.
|
|
145
166
|
|
|
146
167
|
Colleague can explain these steps and, when its plan-reading action is available
|
|
147
|
-
for the session, offer to read the plan or summarize the recorded work and blockers from both documents
|
|
168
|
+
for the session, offer to read the plan or summarize the recorded work and blockers from both documents, including
|
|
169
|
+
how many requirements are built and how many proven. It can
|
|
148
170
|
read an archive by its history identity without starting a coding turn. It must
|
|
149
171
|
finish all pages of both documents before claiming to have reviewed the complete artifact.
|
|
150
172
|
You can also ask **“Show me this session's plan”**, or name another accessible
|
|
@@ -27,6 +27,12 @@ DB_DATABASE in Env (in Dash, under Development)": open **Dash → Env**, choose
|
|
|
27
27
|
**Development**, add the value (see [Development Env](development-env.md)) and
|
|
28
28
|
press **Check again**.
|
|
29
29
|
|
|
30
|
+
A files bucket never holds Preview back. Without its settings the app keeps its
|
|
31
|
+
files in its own default storage, usually its own disk; when something else is
|
|
32
|
+
missing too, such as the database, Preview names only that. To try your own
|
|
33
|
+
bucket in development, add its settings in Development Env yourself (see
|
|
34
|
+
[Development Env](development-env.md)).
|
|
35
|
+
|
|
30
36
|
For recurring **Preview could not load an application resource** errors, enable
|
|
31
37
|
Preview diagnostics in the affected Studio browser before reproducing: add
|
|
32
38
|
`vibe64_preview_debug=1` to the page URL, or set
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Stopping and restarting Preview
|
|
2
|
+
|
|
3
|
+
This continues [Previewing a web application](preview.md). It covers **Stop
|
|
4
|
+
preview**, what Preview shows after a stop or a platform restart, and what
|
|
5
|
+
**Start preview** and **Restart preview** do while another run is starting or
|
|
6
|
+
running.
|
|
7
|
+
|
|
8
|
+
The top Preview toolbar shows **Stop preview** while the application is running.
|
|
9
|
+
Stop waits for the application's owned work and managed browser to close; it
|
|
10
|
+
does not close the coding session, chat, source checkout or shared services.
|
|
11
|
+
On managed hosts, service cleanup runs before remaining processes are terminated.
|
|
12
|
+
Wait for Stop to finish; a cleanup failure is not a successful stop.
|
|
13
|
+
Stopping Preview closes its browser process but keeps the coding assistant's
|
|
14
|
+
managed-browser registration. The same assistant can run another managed browser
|
|
15
|
+
check or test suite afterward without reopening its conversation.
|
|
16
|
+
It stays stopped after navigation, reload or reopening the session. The pane
|
|
17
|
+
then shows **Preview stopped**, and both its button and the toolbar's read
|
|
18
|
+
**Start preview**; use either to run it again deliberately.
|
|
19
|
+
|
|
20
|
+
A Preview also stops when the platform restarts, for example during an update.
|
|
21
|
+
The pane then removes the old page instead of leaving it looking alive. It shows
|
|
22
|
+
**Preview state was lost after a server restart** with **Restart preview**, or,
|
|
23
|
+
once that has been seen, **Preview is not running** with a **Start preview**
|
|
24
|
+
button in the middle of the pane. Starting it runs the session's current code.
|
|
25
|
+
A Preview tab opened before the platform restart needs opening again from the
|
|
26
|
+
editor; its old access no longer works.
|
|
27
|
+
If Stop reports incomplete cleanup, retry Stop before starting. Browser tests
|
|
28
|
+
may temporarily run an isolated target, then restore the prior stopped choice.
|
|
29
|
+
Managed suites without `--target` also restore the previous running or stopped
|
|
30
|
+
Preview state, including after an assertion failure or cancellation. An explicitly
|
|
31
|
+
supplied external `PLAYWRIGHT_BASE_URL` does not start or stop managed Preview.
|
|
32
|
+
The selected target and its parameter values remain saved while stopped, including
|
|
33
|
+
after browser tests or an editor restart, for the next explicit Start.
|
|
34
|
+
If Preview reports an invalid saved stop state, use the explicit Stop action
|
|
35
|
+
before retrying Start; automatic recovery does not overwrite that state.
|
|
36
|
+
Colleague can offer the existing authorized stop/start actions, but a how-to
|
|
37
|
+
question alone does not authorize either action.
|
|
38
|
+
Retrying the same output reuses its running application when its settings and
|
|
39
|
+
environment still match. It does not start another process merely because a
|
|
40
|
+
new Preview address could be allocated. Use **Restart preview** when you intend
|
|
41
|
+
to replace that run.
|
|
42
|
+
When the coding agent starts the Preview, open tabs update to show it starting.
|
|
43
|
+
If a tab still shows an older state, such as **Preview stopped** while the
|
|
44
|
+
agent's start is booting the app, pressing **Start preview** or **Restart
|
|
45
|
+
preview** there shows the run that is starting or running instead of replacing
|
|
46
|
+
it; the tab's own automatic start and recovery do the same. Press **Restart
|
|
47
|
+
preview** again on that run to restart it.
|
|
48
|
+
Stopping or restarting a Preview includes processes in its child groups,
|
|
49
|
+
that are owned by that output. Wait for cleanup to finish before starting
|
|
50
|
+
another run. If cleanup fails, open **Resources** for the reported operation
|
|
51
|
+
and retry only after its running work has been stopped.
|