vue-stack-tabs 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +119 -52
- package/README.md +104 -41
- package/README.ru.md +125 -54
- package/dist/{src/lib/StackTabs.vue.d.ts → StackTabs.vue.d.ts} +5 -5
- package/dist/{src/lib/components → components}/ContextMenu/index.vue.d.ts +1 -1
- package/dist/components/StackKeepAlive/emptyPlaceholder.d.ts +3 -0
- package/dist/{src/lib/components → components}/TabHeader/TabHeaderItem.vue.d.ts +9 -0
- package/dist/{src/lib/components → components}/TabHeader/index.vue.d.ts +3 -3
- package/dist/{src/lib/hooks → hooks}/stackTabsContext.d.ts +5 -2
- package/dist/hooks/tabPanel/pageComponentFactory.d.ts +20 -0
- package/dist/{src/lib/hooks → hooks}/tabPanel/scroll.d.ts +2 -0
- package/dist/hooks/useScrollShadow.d.ts +20 -0
- package/dist/{src/lib/hooks → hooks}/useTabActions.d.ts +7 -2
- package/dist/{src/lib/hooks → hooks}/useTabEventBus.d.ts +2 -1
- package/dist/{src/lib/hooks → hooks}/useTabPanel.d.ts +3 -1
- package/dist/iframe-bridge.mjs +1 -1
- package/dist/index.d.ts +22 -6
- package/dist/{src/lib/model → model}/TabModel.d.ts +21 -0
- package/dist/nuxt/module.mjs +10 -6
- package/dist/nuxt/runtime/plugin.mjs +1600 -4
- package/dist/style.css +1 -1
- package/dist/utils/iframeBridge.d.ts +7 -1
- package/dist/{src/lib/utils → utils}/scrollUtils.d.ts +7 -1
- package/dist/{src/lib/versionLogger.d.ts → versionLogger.d.ts} +1 -1
- package/dist/vue-stack-tabs.css +1 -1
- package/dist/vue-stack-tabs.es.js +1 -1
- package/package.json +83 -59
- package/src/lib/StackTabs.vue +16 -3
- package/src/lib/assets/style/common/var.scss +2 -0
- package/src/lib/assets/style/stackTab.scss +43 -4
- package/src/lib/components/ContextMenu/index.vue +12 -3
- package/src/lib/components/PageLoading.vue +10 -2
- package/src/lib/components/StackKeepAlive/StackCacheRenderer.vue +3 -9
- package/src/lib/components/StackKeepAlive/emptyPlaceholder.tsx +18 -0
- package/src/lib/components/TabHeader/TabHeaderItem.vue +30 -2
- package/src/lib/components/TabHeader/index.vue +76 -4
- package/src/lib/hooks/stackTabsContext.ts +23 -18
- package/src/lib/hooks/tabPanel/pageComponentFactory.tsx +142 -0
- package/src/lib/hooks/tabPanel/refresh.ts +3 -0
- package/src/lib/hooks/tabPanel/scroll.ts +110 -7
- package/src/lib/hooks/tabPanel/session.ts +29 -3
- package/src/lib/hooks/useContextMenu.ts +57 -11
- package/src/lib/hooks/useIframeManager.ts +18 -2
- package/src/lib/hooks/useScrollShadow.ts +124 -0
- package/src/lib/hooks/useTabActions.ts +20 -8
- package/src/lib/hooks/useTabEventBus.ts +5 -3
- package/src/lib/hooks/useTabPanel.tsx +132 -180
- package/src/lib/hooks/useTabRouter.ts +11 -2
- package/src/lib/i18n/index.ts +3 -3
- package/src/lib/model/TabModel.ts +40 -1
- package/src/lib/nuxt/module.ts +10 -3
- package/src/lib/nuxt/runtime/plugin.ts +13 -2
- package/src/lib/utils/iframeBridge.ts +9 -1
- package/src/lib/utils/scrollUtils.ts +35 -2
- package/src/lib/utils/tabInfoEncoder.ts +21 -8
- package/src/lib/utils/urlParser.ts +3 -1
- package/src/lib/versionLogger.ts +6 -2
- package/dist/favicon.svg +0 -10
- package/dist/iframe-bridge.html +0 -77
- package/dist/iframe-child.html +0 -88
- package/dist/nuxt/favicon.svg +0 -10
- package/dist/nuxt/iframe-bridge.html +0 -77
- package/dist/nuxt/iframe-child.html +0 -88
- package/dist/nuxt/plugin.mjs +0 -9
- package/dist/src/lib/iframe-bridge.d.ts +0 -8
- package/dist/src/lib/index.d.ts +0 -22
- package/dist/src/lib/nuxt/module.d.ts +0 -6
- package/dist/src/lib/nuxt/runtime/plugin.client.d.ts +0 -2
- package/dist/src/lib/nuxt/runtime/plugin.d.ts +0 -2
- package/dist/src/lib/utils/iframeBridge.d.ts +0 -39
- package/src/lib/nuxt/runtime/plugin.client.ts +0 -10
- /package/dist/{src/lib/components → components}/ContextMenu/ContextMenuItem.vue.d.ts +0 -0
- /package/dist/{src/lib/components → components}/PageLoading.vue.d.ts +0 -0
- /package/dist/{src/lib/components → components}/StackKeepAlive/StackCacheRenderer.vue.d.ts +0 -0
- /package/dist/{src/lib/components → components}/StackKeepAlive/StackKeepAlive.vue.d.ts +0 -0
- /package/dist/{src/lib/components → components}/TabHeader/TabHeaderButton.vue.d.ts +0 -0
- /package/dist/{src/lib/components → components}/TabHeader/TabHeaderScroll.vue.d.ts +0 -0
- /package/dist/{src/lib/hooks → hooks}/tabPanel/evict.d.ts +0 -0
- /package/dist/{src/lib/hooks → hooks}/tabPanel/navigationTransaction.d.ts +0 -0
- /package/dist/{src/lib/hooks → hooks}/tabPanel/refresh.d.ts +0 -0
- /package/dist/{src/lib/hooks → hooks}/tabPanel/session.d.ts +0 -0
- /package/dist/{src/lib/hooks → hooks}/tabPanel/state.d.ts +0 -0
- /package/dist/{src/lib/hooks → hooks}/useContextMenu.d.ts +0 -0
- /package/dist/{src/lib/hooks → hooks}/useIframeManager.d.ts +0 -0
- /package/dist/{src/lib/hooks → hooks}/useTabLoading.d.ts +0 -0
- /package/dist/{src/lib/hooks → hooks}/useTabRouter.d.ts +0 -0
- /package/dist/{src/lib/i18n → i18n}/index.d.ts +0 -0
- /package/dist/{src/lib/i18n → i18n}/lang/en.d.ts +0 -0
- /package/dist/{src/lib/i18n → i18n}/lang/zh-CN.d.ts +0 -0
- /package/dist/{src/lib/i18n → i18n}/stackTabsLocale.d.ts +0 -0
- /package/dist/{src/lib/iframe.vue.d.ts → iframe.vue.d.ts} +0 -0
- /package/dist/{src/lib/utils → utils}/stackTabsA11y.d.ts +0 -0
- /package/dist/{src/lib/utils → utils}/stackTabsMessage.d.ts +0 -0
- /package/dist/{src/lib/utils → utils}/tabInfoEncoder.d.ts +0 -0
- /package/dist/{src/lib/utils → utils}/typeGuards.d.ts +0 -0
- /package/dist/{src/lib/utils → utils}/urlParser.d.ts +0 -0
package/dist/vue-stack-tabs.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.stack-tab__contextmenu-title[data-v-3d616fa0]{margin-left:8px}.divider[data-v-f6a9b3bf]{height:1px;margin:5px 0;position:relative}.div-transparent[data-v-f6a9b3bf]:before{content:"";background-image:linear-gradient(90deg,#0000,#a9a9a9,#0000);width:100%;height:1px;position:absolute;top:0;left:0;right:0}.stack-tab{grid-gap:5px;background-color:#fff;flex-direction:column;min-height:300px;display:flex}.stack-tab__container{flex:1 1 0;position:relative;overflow:hidden}.stack-tab__keep-alive-panel{width:100%;height:100%;position:absolute;top:0;left:0}.stack-tab .cache-page-wrapper{width:100%;height:100%}.stack-tab__maximum{position:fixed;top:0;left:0;width:100vw!important;height:100vh!important}.stack-tab__mask-button{background-color:#4d4d4d;width:20px;height:100%;margin:0 5px;transition:all .15s ease-in-out}.stack-tab__header-button[disabled] .stack-tab__mask-button{cursor:not-allowed;background-color:#aaa;transition:none}.stack-tab__mask-button:hover{background-color:#409eff}.stack-tab__mask-button:active{background-color:#337ecc}.stack-tab__button{width:20px;height:20px;margin:0 5px}.stack-tab__header{box-sizing:border-box;border-bottom:1px solid #f0f0f0;width:100%;height:40px;display:flex;position:relative}.stack-tab__header-button{z-index:2;cursor:pointer;width:fit-content;height:40px;color:inherit;font:inherit;text-align:inherit;appearance:none;background-color:#fff;border:0;align-items:center;padding:0;display:flex;overflow:hidden}.stack-tab__header-button[disabled]{box-shadow:none;cursor:not-allowed;background-color:#fafafa}.stack-tab__scroll{flex:1 1 0;height:40px;position:relative;overflow:hidden}.stack-tab__scroll-container{width:100%;height:100%;overflow:hidden}.stack-tab__scroll-container.is-mobile{overflow:auto hidden}.stack-tab__scrollbar{opacity:0;background-color:#0000001a;border-radius:6px;height:6px;transition:all .15s ease-in-out;position:absolute;bottom:0;left:0;right:0}.stack-tab__scroll:hover .stack-tab__scrollbar,.stack-tab__scrollbar.is-dragging{opacity:1}.stack-tab__scrollbar-thumb{background-color:#0000001a;border-radius:6px;height:100%;transition:background-color .3s ease-in-out;position:absolute;top:0;left:0}.stack-tab__scrollbar-thumb:hover{cursor:grab}.stack-tab__scrollbar-thumb:hover:active{cursor:grabbing}.stack-tab__scrollbar.is-dragging .stack-tab__scrollbar-thumb,.stack-tab__scrollbar-thumb:hover{background-color:#409eff!important}.stack-tab__nav{content-visibility:auto;flex-wrap:nowrap;height:100%;margin:0;padding:0;list-style:none;display:inline-flex;position:relative}.stack-tab__item{color:#4d4d4d;cursor:pointer;-webkit-user-select:none;user-select:none;transform-origin:0 100%;content-visibility:auto;background-color:#fafafa;border:1px solid #f0f0f0;border-left:none;border-radius:8px 8px 0 0;flex:none;align-items:center;margin-top:5px;padding:0 24px;font-size:14px;transition:all .15s ease-in-out;display:flex;position:relative}.stack-tab__item:first-child{border-left:1px solid #f0f0f0}.stack-tab__item.is-contextmenu{color:#000}.stack-tab__item.is-active{z-index:1;margin-top:unset;background-color:#fff;border-bottom-color:#fff;box-shadow:-5px 0 5px -5px #0009,5px 0 5px -5px #0009}.stack-tab__item:hover,.stack-tab__item.is-active{color:#409eff}.stack-tab__item:hover.is-icon,.stack-tab__item.is-active.is-icon{padding:0 12px}.stack-tab__item:hover.is-icon .stack-tab__item-button,.stack-tab__item.is-active.is-icon .stack-tab__item-button{width:20px;margin-left:4px}.stack-tab__item-tab{min-width:0;height:100%;color:inherit;cursor:inherit;font:inherit;text-align:inherit;appearance:none;background:0 0;border:0;flex:auto;align-items:center;padding:0;display:flex}.stack-tab__item-title{flex:1 1 0;display:flex}.stack-tab__item-title-content{text-overflow:ellipsis;white-space:nowrap;min-width:30px;max-width:100px;overflow:hidden}.stack-tab__item-icon{margin-right:5px;font-size:16px}.stack-tab__item-button{width:0;height:100%;font:inherit;appearance:none;background-color:#4d4d4d;border:0;padding:0;transition:all .15s ease-in-out}.stack-tab__item-button:hover{background-color:#409eff}.stack-tab__item-button:active{background-color:#337ecc}.stack-tab__badge{display:inline-block;position:relative}.stack-tab__badge-content{color:#fff;text-align:center;box-sizing:border-box;border:1px solid #fff;border-radius:.5rem;min-width:.5rem;min-height:.5rem;padding:.3rem;font-size:.5rem;line-height:.4rem;position:absolute;top:.1rem;right:.1rem;transform:translate(100%)translateY(-50%)}.stack-tab__badge-content.default{background:#ef4f4f}.stack-tab__badge-content.primary{background:#409eff}.stack-tab__iframes{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0}.stack-tab__iframe-wrapper{pointer-events:auto;width:100%;height:100%;position:absolute;top:0;left:0}.stack-tab__iframe{border:0;width:100%;height:100%;position:absolute;top:0;left:0}.stack-tab__iframe-loading{z-index:1;background:var(--stack-tab-iframe-loading-bg,#f5f5f5);justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.stack-tab__iframe-loading-text{color:var(--stack-tab-iframe-loading-color,#999);font-size:var(--stack-tab-font-size,14px)}.stack-tab__iframe-error{z-index:2;pointer-events:auto;background:var(--stack-tab-iframe-error-bg,#ffffffeb);box-sizing:border-box;justify-content:center;align-items:center;gap:8px;width:100%;height:100%;padding:16px;display:flex;position:absolute;top:0;left:0}.stack-tab__iframe-error-text{color:var(--stack-tab-iframe-error-color,#666);font-size:var(--stack-tab-font-size,14px)}.stack-tab__iframe-error-retry,.stack-tab__iframe-error-open{color:#4d4d4d;cursor:pointer;font:inherit;background:#fff;border:1px solid #f0f0f0;border-radius:6px;padding:4px 10px}.stack-tab__contextmenu{z-index:999;transform-origin:0 0;background:#fff;border:1px solid #f0f0f0;border-radius:10px 0;min-width:120px;padding:8px;font-size:14px;transition:all .25s ease-in;position:fixed;box-shadow:5px 5px 5px #0000001a}.stack-tab__contextmenu-item{width:100%;min-height:30px;line-height:30px;font:inherit;text-align:inherit;appearance:none;box-sizing:border-box;color:#4d4d4d;cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border:0;border-radius:10px 0;justify-content:flex-start;align-items:center;margin:0;padding:0 10px;transition:all .2s ease-in-out;display:flex;position:relative}.stack-tab__contextmenu-item:hover,.stack-tab__contextmenu-item:active,.stack-tab__contextmenu-item:focus-visible{color:#fff;background-color:#409eff}.stack-tab__contextmenu-item:hover .svg-mask,.stack-tab__contextmenu-item:active .svg-mask,.stack-tab__contextmenu-item:focus-visible .svg-mask{background-color:#fff}.stack-tab__contextmenu-item:focus{outline:none}.stack-tab__contextmenu-item[disabled]{color:#aaa;pointer-events:none;cursor:default;background:0 0}.stack-tab__contextmenu-item[disabled] .svg-mask{background-color:#aaa}.stack-tab__contextmenu-icon{width:14px;height:14px;transition:all .2s ease-in-out}.stack-tab__contextmenu-icon.svg-mask{background-color:#4d4d4d;width:14px;height:14px}.stack-tab__shadow-left{box-shadow:-5px 0 5px -5px #0009}.stack-tab__shadow-right{box-shadow:5px 0 5px -5px #0009}.stack-tab__shadow-inset-left:after{content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset 5px 0 5px -5px #0009}.stack-tab__shadow-inset-right:after{content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset -5px 0 5px -5px #0009}.stack-tab__shadow-inset-all:after{content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset 5px 0 5px -5px #0009,inset -5px 0 5px -5px #0009}.stack-tab__icon-fullscreen{-webkit-mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850629232'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8369'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M358.4%20768H426.666667v85.333333H213.333333v-213.333333h85.333334v68.266667l128-128%2059.733333%2059.733333-128%20128z%20m345.6%200l-128-128%2059.733333-59.733333%20132.266667%20132.266666V640h85.333333v213.333333h-213.333333v-85.333333h64zM358.4%20298.666667l128%20128-59.733333%2059.733333-128-128V426.666667H213.333333V213.333333h213.333334v85.333334H358.4z%20m345.6%200H640V213.333333h213.333333v213.333334h-85.333333V354.133333l-132.266667%20132.266667-59.733333-59.733333%20128-128z'%20fill='%23444444'%20p-id='8370'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850629232'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8369'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M358.4%20768H426.666667v85.333333H213.333333v-213.333333h85.333334v68.266667l128-128%2059.733333%2059.733333-128%20128z%20m345.6%200l-128-128%2059.733333-59.733333%20132.266667%20132.266666V640h85.333333v213.333333h-213.333333v-85.333333h64zM358.4%20298.666667l128%20128-59.733333%2059.733333-128-128V426.666667H213.333333V213.333333h213.333334v85.333334H358.4z%20m345.6%200H640V213.333333h213.333333v213.333334h-85.333333V354.133333l-132.266667%20132.266667-59.733333-59.733333%20128-128z'%20fill='%23444444'%20p-id='8370'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-restore{-webkit-mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850610341'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8217'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M298.666667%20631.466667H226.133333v-81.066667h217.6v204.8h-85.333333v-68.266667l-128%20128L170.666667%20759.466667l128-128z%20m422.4%200l128%20128-59.733334%2059.733333-128-128v68.266667h-85.333333V554.666667h217.6v81.066666h-72.533333zM298.666667%20341.333333L187.733333%20230.4%20243.2%20170.666667l115.2%20115.2V217.6h85.333333v204.8H226.133333V341.333333H298.666667z%20m430.933333%200h64v81.066667h-217.6V217.6h85.333333v72.533333L780.8%20170.666667l59.733333%2059.733333L729.6%20341.333333z'%20fill='%23444444'%20p-id='8218'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850610341'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8217'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M298.666667%20631.466667H226.133333v-81.066667h217.6v204.8h-85.333333v-68.266667l-128%20128L170.666667%20759.466667l128-128z%20m422.4%200l128%20128-59.733334%2059.733333-128-128v68.266667h-85.333333V554.666667h217.6v81.066666h-72.533333zM298.666667%20341.333333L187.733333%20230.4%20243.2%20170.666667l115.2%20115.2V217.6h85.333333v204.8H226.133333V341.333333H298.666667z%20m430.933333%200h64v81.066667h-217.6V217.6h85.333333v72.533333L780.8%20170.666667l59.733333%2059.733333L729.6%20341.333333z'%20fill='%23444444'%20p-id='8218'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-close{-webkit-mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='1922'%20t='1660030183477'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cstyle%20type='text/css'/%3e%3c/defs%3e%3cpath%20d='m235.52%20204.8c-7.6799%200-15.362%203.0703-21.506%209.2143-12.288%2012.288-12.288%2030.724%200%2043.013l254.97%20254.97-254.97%20254.97c-12.288%2012.288-12.288%2030.724%200%2043.013%206.1439%206.1441%2013.826%209.2143%2021.506%209.2143%207.68%200%2015.362-3.0703%2021.506-9.2143l254.97-254.97%20254.97%20254.97c6.1439%206.1441%2013.826%209.2143%2021.506%209.2143%207.6799%200%2015.362-3.0703%2021.506-9.2143%2012.288-12.288%2012.288-30.724%200-43.013l-254.97-254.97%20254.97-254.97c12.288-12.288%2012.288-30.724%200-43.013-6.1439-6.1441-13.826-9.2143-21.506-9.2143-7.68%200-15.362%203.0703-21.506%209.2143l-254.97%20254.97-254.97-254.97c-6.1439-6.1441-13.826-9.2143-21.506-9.2143z'%20stroke-width='.96001'/%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='1922'%20t='1660030183477'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cstyle%20type='text/css'/%3e%3c/defs%3e%3cpath%20d='m235.52%20204.8c-7.6799%200-15.362%203.0703-21.506%209.2143-12.288%2012.288-12.288%2030.724%200%2043.013l254.97%20254.97-254.97%20254.97c-12.288%2012.288-12.288%2030.724%200%2043.013%206.1439%206.1441%2013.826%209.2143%2021.506%209.2143%207.68%200%2015.362-3.0703%2021.506-9.2143l254.97-254.97%20254.97%20254.97c6.1439%206.1441%2013.826%209.2143%2021.506%209.2143%207.6799%200%2015.362-3.0703%2021.506-9.2143%2012.288-12.288%2012.288-30.724%200-43.013l-254.97-254.97%20254.97-254.97c12.288-12.288%2012.288-30.724%200-43.013-6.1439-6.1441-13.826-9.2143-21.506-9.2143-7.68%200-15.362%203.0703-21.506%209.2143l-254.97%20254.97-254.97-254.97c-6.1439-6.1441-13.826-9.2143-21.506-9.2143z'%20stroke-width='.96001'/%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-close-fill{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1676454450456'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4689'%20width='200'%20height='200'%3e%3cpath%20d='M512%20451.669333L421.504%20361.130667A42.666667%2042.666667%200%200%200%20361.130667%20421.546667L451.669333%20512l-90.538666%2090.496a42.666667%2042.666667%200%200%200%2060.373333%2060.373333L512%20572.330667l90.496%2090.538666a42.666667%2042.666667%200%200%200%2060.373333-60.373333L572.330667%20512l90.538666-90.496a42.666667%2042.666667%200%201%200-60.373333-60.373333L512%20451.669333z%20m-271.530667%20331.861334A384%20384%200%201%201%20783.530667%20240.469333%20384%20384%200%200%201%20240.469333%20783.530667z'%20fill='%23000000'%20p-id='4690'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1676454450456'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4689'%20width='200'%20height='200'%3e%3cpath%20d='M512%20451.669333L421.504%20361.130667A42.666667%2042.666667%200%200%200%20361.130667%20421.546667L451.669333%20512l-90.538666%2090.496a42.666667%2042.666667%200%200%200%2060.373333%2060.373333L512%20572.330667l90.496%2090.538666a42.666667%2042.666667%200%200%200%2060.373333-60.373333L572.330667%20512l90.538666-90.496a42.666667%2042.666667%200%201%200-60.373333-60.373333L512%20451.669333z%20m-271.530667%20331.861334A384%20384%200%201%201%20783.530667%20240.469333%20384%20384%200%200%201%20240.469333%20783.530667z'%20fill='%23000000'%20p-id='4690'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-close-lefts{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1676511927584'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='18731'%20width='200'%20height='200'%3e%3cpath%20d='M156%20219H92a4%204%200%200%200-4%204v634a4%204%200%200%200%204%204h64a4%204%200%200%200%204-4V223a4%204%200%200%200-4-4z%20m756.7%20128.4h-368V172.8a16%2016%200%200%200-16.2-16%2015.4%2015.4%200%200%200-12.2%205.9L238.9%20501.9a16%2016%200%200%200%200%2020.2l277.4%20339.2a15.4%2015.4%200%200%200%2012.2%205.9%2016%2016%200%200%200%2016.2-16V676.6h368a16%2016%200%200%200%2016-16V363.4a16%2016%200%200%200-16-16z%20m-56%20257.2h-384v89.6L323.7%20512l149-182.2v89.6h384z'%20p-id='18732'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1676511927584'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='18731'%20width='200'%20height='200'%3e%3cpath%20d='M156%20219H92a4%204%200%200%200-4%204v634a4%204%200%200%200%204%204h64a4%204%200%200%200%204-4V223a4%204%200%200%200-4-4z%20m756.7%20128.4h-368V172.8a16%2016%200%200%200-16.2-16%2015.4%2015.4%200%200%200-12.2%205.9L238.9%20501.9a16%2016%200%200%200%200%2020.2l277.4%20339.2a15.4%2015.4%200%200%200%2012.2%205.9%2016%2016%200%200%200%2016.2-16V676.6h368a16%2016%200%200%200%2016-16V363.4a16%2016%200%200%200-16-16z%20m-56%20257.2h-384v89.6L323.7%20512l149-182.2v89.6h384z'%20p-id='18732'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-close-rights{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1676511848479'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='18577'%20width='200'%20height='200'%3e%3cpath%20d='M924%20191h-64a4%204%200%200%200-4%204v634a4%204%200%200%200%204%204h64a4%204%200%200%200%204-4V195a4%204%200%200%200-4-4z%20m-416.3-28.3a15.4%2015.4%200%200%200-12.2-5.9%2016%2016%200%200%200-16.2%2016v174.6h-368a16%2016%200%200%200-16%2016v297.2a16%2016%200%200%200%2016%2016h368v174.6a16%2016%200%200%200%2016.2%2016%2015.4%2015.4%200%200%200%2012.2-5.9l277.4-339.2a16%2016%200%200%200%200-20.2z%20m43.6%20531.5v-89.6h-384V419.4h384v-89.6l149%20182.2z'%20p-id='18578'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1676511848479'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='18577'%20width='200'%20height='200'%3e%3cpath%20d='M924%20191h-64a4%204%200%200%200-4%204v634a4%204%200%200%200%204%204h64a4%204%200%200%200%204-4V195a4%204%200%200%200-4-4z%20m-416.3-28.3a15.4%2015.4%200%200%200-12.2-5.9%2016%2016%200%200%200-16.2%2016v174.6h-368a16%2016%200%200%200-16%2016v297.2a16%2016%200%200%200%2016%2016h368v174.6a16%2016%200%200%200%2016.2%2016%2015.4%2015.4%200%200%200%2012.2-5.9l277.4-339.2a16%2016%200%200%200%200-20.2z%20m43.6%20531.5v-89.6h-384V419.4h384v-89.6l149%20182.2z'%20p-id='18578'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-close-others{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1695280793106'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9167'%20width='200'%20height='200'%3e%3cpath%20d='M388.266667%20512L290.133333%20413.866667l29.866667-29.866667%20149.333333%20149.333333L320%20682.666667l-29.866667-29.866667L388.266667%20554.666667H128v-42.666667h260.266667z%20m290.133333%200H938.666667v42.666667h-260.266667l98.133333%2098.133333-29.866666%2029.866667-149.333334-149.333334L746.666667%20384l29.866666%2029.866667-98.133333%2098.133333z'%20fill='%23444444'%20p-id='9168'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1695280793106'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9167'%20width='200'%20height='200'%3e%3cpath%20d='M388.266667%20512L290.133333%20413.866667l29.866667-29.866667%20149.333333%20149.333333L320%20682.666667l-29.866667-29.866667L388.266667%20554.666667H128v-42.666667h260.266667z%20m290.133333%200H938.666667v42.666667h-260.266667l98.133333%2098.133333-29.866666%2029.866667-149.333334-149.333334L746.666667%20384l29.866666%2029.866667-98.133333%2098.133333z'%20fill='%23444444'%20p-id='9168'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-close-all{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1660395177016'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2947'%20width='200'%20height='200'%3e%3cpath%20d='M354%20671h58.9c4.7%200%209.2-2.1%2012.3-5.7L512%20561.8l86.8%20103.5c3%203.6%207.5%205.7%2012.3%205.7H670c6.8%200%2010.5-7.9%206.1-13.1L553.8%20512l122.4-145.9c4.4-5.2%200.7-13.1-6.1-13.1h-58.9c-4.7%200-9.2%202.1-12.3%205.7L512%20462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8%200-10.5%207.9-6.1%2013.1L470.2%20512%20347.9%20657.9c-4.4%205.2-0.7%2013.1%206.1%2013.1z'%20p-id='2948'%3e%3c/path%3e%3cpath%20d='M880%20112H144c-17.7%200-32%2014.3-32%2032v736c0%2017.7%2014.3%2032%2032%2032h736c17.7%200%2032-14.3%2032-32V144c0-17.7-14.3-32-32-32z%20m-40%20728H184V184h656v656z'%20p-id='2949'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1660395177016'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2947'%20width='200'%20height='200'%3e%3cpath%20d='M354%20671h58.9c4.7%200%209.2-2.1%2012.3-5.7L512%20561.8l86.8%20103.5c3%203.6%207.5%205.7%2012.3%205.7H670c6.8%200%2010.5-7.9%206.1-13.1L553.8%20512l122.4-145.9c4.4-5.2%200.7-13.1-6.1-13.1h-58.9c-4.7%200-9.2%202.1-12.3%205.7L512%20462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8%200-10.5%207.9-6.1%2013.1L470.2%20512%20347.9%20657.9c-4.4%205.2-0.7%2013.1%206.1%2013.1z'%20p-id='2948'%3e%3c/path%3e%3cpath%20d='M880%20112H144c-17.7%200-32%2014.3-32%2032v736c0%2017.7%2014.3%2032%2032%2032h736c17.7%200%2032-14.3%2032-32V144c0-17.7-14.3-32-32-32z%20m-40%20728H184V184h656v656z'%20p-id='2949'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-reload{-webkit-mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='6183'%20t='1660269579969'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cstyle%20type='text/css'/%3e%3c/defs%3e%3cpath%20d='m512%2015.756c-273.37%200-494.99%20222.17-494.99%20496.24s221.61%20496.24%20494.99%20496.24%20494.99-222.17%20494.99-496.24c0-274.07-221.58-496.24-494.99-496.24zm0%20942.84c-246.06%200-445.51-199.94-445.51-446.63%200-246.68%20199.45-446.63%20445.51-446.63s445.51%20199.94%20445.51%20446.63-199.45%20446.63-445.51%20446.63z'%20p-id='6184'/%3e%3cpath%20d='m512.05%20308.72c-51.167%200-102.23%2019.852-141.25%2059.557-38.945%2039.672-58.5%2091.731-58.5%20143.72s19.522%20104.05%2058.5%20143.72c39.011%2039.705%2090.079%2059.557%20141.25%2059.557%2051.101%200%20102.17-19.852%20141.18-59.557%2038.945-39.672%2058.467-91.731%2058.467-143.72s-19.522-104.05-58.467-143.72c-39.011-39.705-90.079-59.557-141.18-59.557zm14.336%2047.599c3.3363-12.618%2016.153-20.183%2028.606-16.78%2012.486%203.4023%2019.819%2016.417%2016.483%2029.068-3.3363%2012.684-16.087%2020.249-28.54%2016.846-12.486-3.4023-19.885-16.417-16.549-29.134zm-155.85%20217.05c-12.387%203.4354-25.204-4.063-28.54-16.747-3.3362-12.684%203.9969-25.732%2016.483-29.134%2012.486-3.3693%2025.27%204.129%2028.606%2016.846%203.3362%2012.651-4.063%2025.633-16.549%2029.035zm16.417-154.33c-9.1169-9.2821-9.1169-24.312%200-33.594%209.1499-9.2821%2023.882-9.2821%2032.999%200%209.0839%209.2821%209.0839%2024.312%200%2033.594-9.1169%209.3151-23.882%209.3151-32.999%200zm106.69%20245.99c-3.3363%2012.618-16.153%2020.183-28.54%2016.78-12.486-3.4023-19.885-16.417-16.549-29.068%203.3363-12.684%2016.153-20.249%2028.606-16.846%2012.42%203.4023%2019.819%2016.417%2016.483%2029.134zm-52.224-84.463c-37.888-38.648-37.888-101.14%200-139.73%2037.888-38.549%2099.361-38.549%20137.25%200%2037.888%2038.582%2037.888%20101.11%200%20139.73-37.888%2038.549-99.361%2038.549-137.25%200zm191.75%2055.329c-9.1499%209.249-23.948%209.249-32.999%200-9.1169-9.2821-9.1169-24.345%200-33.594%209.0839-9.3151%2023.882-9.3151%2032.999%200%209.0508%209.249%209.0508%2024.279%200%2033.594zm44.924-171.17c3.3363%2012.717-4.063%2025.732-16.549%2029.134-12.387%203.3693-25.204-4.129-28.54-16.846-3.3363-12.651%204.063-25.699%2016.483-29.101%2012.486-3.3363%2025.27%204.129%2028.606%2016.813z'%20p-id='6185'/%3e%3cg%20transform='translate(.47897%2028.177)'%3e%3cpath%20d='m210.09%20197.4%2021.669%20142.01%2036.6-5.6816-21.669-142.04z'%20p-id='6186'/%3e%3cpath%20d='m398.01%20863.79%2023.222%2029.432%20109.24-89.484-23.222-29.432z'%20p-id='6187'/%3e%3cpath%20d='m777.55%20308.98-13.411%2035.179%20129.98%2051.266%2013.411-35.179z'%20p-id='6188'/%3e%3cpath%20d='m115.51%20606.64%20131.3%2051.795%2013.411-35.179-131.3-51.795z'%20p-id='6189'/%3e%3cpath%20d='m627.61%20103.85-23.189-29.432-105.77%2086.644%2023.189%2029.399z'%20p-id='6190'/%3e%3cpath%20d='m756.93%20636.2%2021.273%20139.92%2036.699-5.7806-21.306-139.96z'%20p-id='6191'/%3e%3c/g%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='6183'%20t='1660269579969'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cstyle%20type='text/css'/%3e%3c/defs%3e%3cpath%20d='m512%2015.756c-273.37%200-494.99%20222.17-494.99%20496.24s221.61%20496.24%20494.99%20496.24%20494.99-222.17%20494.99-496.24c0-274.07-221.58-496.24-494.99-496.24zm0%20942.84c-246.06%200-445.51-199.94-445.51-446.63%200-246.68%20199.45-446.63%20445.51-446.63s445.51%20199.94%20445.51%20446.63-199.45%20446.63-445.51%20446.63z'%20p-id='6184'/%3e%3cpath%20d='m512.05%20308.72c-51.167%200-102.23%2019.852-141.25%2059.557-38.945%2039.672-58.5%2091.731-58.5%20143.72s19.522%20104.05%2058.5%20143.72c39.011%2039.705%2090.079%2059.557%20141.25%2059.557%2051.101%200%20102.17-19.852%20141.18-59.557%2038.945-39.672%2058.467-91.731%2058.467-143.72s-19.522-104.05-58.467-143.72c-39.011-39.705-90.079-59.557-141.18-59.557zm14.336%2047.599c3.3363-12.618%2016.153-20.183%2028.606-16.78%2012.486%203.4023%2019.819%2016.417%2016.483%2029.068-3.3363%2012.684-16.087%2020.249-28.54%2016.846-12.486-3.4023-19.885-16.417-16.549-29.134zm-155.85%20217.05c-12.387%203.4354-25.204-4.063-28.54-16.747-3.3362-12.684%203.9969-25.732%2016.483-29.134%2012.486-3.3693%2025.27%204.129%2028.606%2016.846%203.3362%2012.651-4.063%2025.633-16.549%2029.035zm16.417-154.33c-9.1169-9.2821-9.1169-24.312%200-33.594%209.1499-9.2821%2023.882-9.2821%2032.999%200%209.0839%209.2821%209.0839%2024.312%200%2033.594-9.1169%209.3151-23.882%209.3151-32.999%200zm106.69%20245.99c-3.3363%2012.618-16.153%2020.183-28.54%2016.78-12.486-3.4023-19.885-16.417-16.549-29.068%203.3363-12.684%2016.153-20.249%2028.606-16.846%2012.42%203.4023%2019.819%2016.417%2016.483%2029.134zm-52.224-84.463c-37.888-38.648-37.888-101.14%200-139.73%2037.888-38.549%2099.361-38.549%20137.25%200%2037.888%2038.582%2037.888%20101.11%200%20139.73-37.888%2038.549-99.361%2038.549-137.25%200zm191.75%2055.329c-9.1499%209.249-23.948%209.249-32.999%200-9.1169-9.2821-9.1169-24.345%200-33.594%209.0839-9.3151%2023.882-9.3151%2032.999%200%209.0508%209.249%209.0508%2024.279%200%2033.594zm44.924-171.17c3.3363%2012.717-4.063%2025.732-16.549%2029.134-12.387%203.3693-25.204-4.129-28.54-16.846-3.3363-12.651%204.063-25.699%2016.483-29.101%2012.486-3.3363%2025.27%204.129%2028.606%2016.813z'%20p-id='6185'/%3e%3cg%20transform='translate(.47897%2028.177)'%3e%3cpath%20d='m210.09%20197.4%2021.669%20142.01%2036.6-5.6816-21.669-142.04z'%20p-id='6186'/%3e%3cpath%20d='m398.01%20863.79%2023.222%2029.432%20109.24-89.484-23.222-29.432z'%20p-id='6187'/%3e%3cpath%20d='m777.55%20308.98-13.411%2035.179%20129.98%2051.266%2013.411-35.179z'%20p-id='6188'/%3e%3cpath%20d='m115.51%20606.64%20131.3%2051.795%2013.411-35.179-131.3-51.795z'%20p-id='6189'/%3e%3cpath%20d='m627.61%20103.85-23.189-29.432-105.77%2086.644%2023.189%2029.399z'%20p-id='6190'/%3e%3cpath%20d='m756.93%20636.2%2021.273%20139.92%2036.699-5.7806-21.306-139.96z'%20p-id='6191'/%3e%3c/g%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-reload-lefts{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1660395291415'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7049'%20width='200'%20height='200'%3e%3cpath%20d='M266.666667%20523.093333a241.152%20241.152%200%200%201%2041.386666-136.106666%2032%2032%200%200%201%2053.333334%2035.413333%20181.504%20181.504%200%201%200%20151.04-80.64%20214.826667%20214.826667%200%200%200-61.866667%208.96%2032.384%2032.384%200%200%201-40.106667-21.333333%2032.042667%2032.042667%200%200%201%2021.333334-40.106667%20269.44%20269.44%200%200%201%2080.64-11.946667%20245.546667%20245.546667%200%201%201-245.76%20245.76z'%20fill='%23292D32'%20p-id='7050'%3e%3c/path%3e%3cpath%20d='M389.504%20350.72a32.256%2032.256%200%200%201-2.986667-45.226667l71.253334-81.493333a31.872%2031.872%200%200%201%2045.226666-2.986667%2032.256%2032.256%200%200%201%202.986667%2045.226667l-71.253333%2081.493333a34.389333%2034.389333%200%200%201-24.32%2010.666667%2032.469333%2032.469333%200%200%201-20.906667-7.68z'%20fill='%23292D32'%20p-id='7051'%3e%3c/path%3e%3cpath%20d='M474.453333%20413.013333L391.68%20352.426667a32.085333%2032.085333%200%200%201%2038.101333-51.626667l82.773334%2060.586667a31.957333%2031.957333%200%200%201%206.826666%2044.8%2032.725333%2032.725333%200%200%201-44.8%206.826666z'%20fill='%23292D32'%20p-id='7052'%3e%3c/path%3e%3cpath%20d='M640%20970.666667H384c-231.765333%200-330.666667-98.901333-330.666667-330.666667V384c0-231.765333%2098.901333-330.666667%20330.666667-330.666667h256c231.765333%200%20330.666667%2098.901333%20330.666667%20330.666667v256c0%20231.765333-98.901333%20330.666667-330.666667%20330.666667z%20m-256-853.333334C187.136%20117.333333%20117.333333%20187.136%20117.333333%20384v256c0%20196.864%2069.802667%20266.666667%20266.666667%20266.666667h256c196.864%200%20266.666667-69.802667%20266.666667-266.666667V384c0-196.864-69.76-266.666667-266.666667-266.666667z'%20fill='%23292D32'%20p-id='7053'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1660395291415'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7049'%20width='200'%20height='200'%3e%3cpath%20d='M266.666667%20523.093333a241.152%20241.152%200%200%201%2041.386666-136.106666%2032%2032%200%200%201%2053.333334%2035.413333%20181.504%20181.504%200%201%200%20151.04-80.64%20214.826667%20214.826667%200%200%200-61.866667%208.96%2032.384%2032.384%200%200%201-40.106667-21.333333%2032.042667%2032.042667%200%200%201%2021.333334-40.106667%20269.44%20269.44%200%200%201%2080.64-11.946667%20245.546667%20245.546667%200%201%201-245.76%20245.76z'%20fill='%23292D32'%20p-id='7050'%3e%3c/path%3e%3cpath%20d='M389.504%20350.72a32.256%2032.256%200%200%201-2.986667-45.226667l71.253334-81.493333a31.872%2031.872%200%200%201%2045.226666-2.986667%2032.256%2032.256%200%200%201%202.986667%2045.226667l-71.253333%2081.493333a34.389333%2034.389333%200%200%201-24.32%2010.666667%2032.469333%2032.469333%200%200%201-20.906667-7.68z'%20fill='%23292D32'%20p-id='7051'%3e%3c/path%3e%3cpath%20d='M474.453333%20413.013333L391.68%20352.426667a32.085333%2032.085333%200%200%201%2038.101333-51.626667l82.773334%2060.586667a31.957333%2031.957333%200%200%201%206.826666%2044.8%2032.725333%2032.725333%200%200%201-44.8%206.826666z'%20fill='%23292D32'%20p-id='7052'%3e%3c/path%3e%3cpath%20d='M640%20970.666667H384c-231.765333%200-330.666667-98.901333-330.666667-330.666667V384c0-231.765333%2098.901333-330.666667%20330.666667-330.666667h256c231.765333%200%20330.666667%2098.901333%20330.666667%20330.666667v256c0%20231.765333-98.901333%20330.666667-330.666667%20330.666667z%20m-256-853.333334C187.136%20117.333333%20117.333333%20187.136%20117.333333%20384v256c0%20196.864%2069.802667%20266.666667%20266.666667%20266.666667h256c196.864%200%20266.666667-69.802667%20266.666667-266.666667V384c0-196.864-69.76-266.666667-266.666667-266.666667z'%20fill='%23292D32'%20p-id='7053'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-reload-rights{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1660395328256'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7284'%20width='200'%20height='200'%3e%3cpath%20d='M640%20970.666667H384c-231.765333%200-330.666667-98.901333-330.666667-330.666667V384c0-231.765333%2098.901333-330.666667%20330.666667-330.666667h256c231.765333%200%20330.666667%2098.901333%20330.666667%20330.666667v256c0%20231.765333-98.901333%20330.666667-330.666667%20330.666667z%20m-256-853.333334C187.136%20117.333333%20117.333333%20187.136%20117.333333%20384v256c0%20196.864%2069.802667%20266.666667%20266.666667%20266.666667h256c196.864%200%20266.666667-69.802667%20266.666667-266.666667V384c0-196.864-69.76-266.666667-266.666667-266.666667z'%20fill='%23292D32'%20p-id='7285'%3e%3c/path%3e%3cpath%20d='M266.666667%20523.093333A245.632%20245.632%200%200%201%20512%20277.76a271.445333%20271.445333%200%200%201%2080.64%2011.946667%2032.128%2032.128%200%200%201-18.773333%2061.44A212.736%20212.736%200%200%200%20512%20342.186667a180.821333%20180.821333%200%201%200%20151.04%2080.64%2032%2032%200%200%201%2053.333333-35.413334%20245.333333%20245.333333%200%201%201-449.706666%20135.68z'%20fill='%23292D32'%20p-id='7286'%3e%3c/path%3e%3cpath%20d='M589.269333%20347.306667l-71.253333-81.493334a32.042667%2032.042667%200%200%201%2048.213333-42.24l71.253334%2081.493334a32.256%2032.256%200%200%201-2.986667%2045.226666%2029.866667%2029.866667%200%200%201-20.906667%208.106667%2032.512%2032.512%200%200%201-24.32-11.093333z'%20fill='%23292D32'%20p-id='7287'%3e%3c/path%3e%3cpath%20d='M504.746667%20405.717333a32.469333%2032.469333%200%200%201%206.741333-44.8l82.858667-60.586666a32.469333%2032.469333%200%200%201%2044.8%206.741333%2032.469333%2032.469333%200%200%201-6.826667%2044.8l-82.773333%2060.586667a31.189333%2031.189333%200%200%201-18.773334%206.4%2032.725333%2032.725333%200%200%201-26.026666-13.141334z'%20fill='%23292D32'%20p-id='7288'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1660395328256'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7284'%20width='200'%20height='200'%3e%3cpath%20d='M640%20970.666667H384c-231.765333%200-330.666667-98.901333-330.666667-330.666667V384c0-231.765333%2098.901333-330.666667%20330.666667-330.666667h256c231.765333%200%20330.666667%2098.901333%20330.666667%20330.666667v256c0%20231.765333-98.901333%20330.666667-330.666667%20330.666667z%20m-256-853.333334C187.136%20117.333333%20117.333333%20187.136%20117.333333%20384v256c0%20196.864%2069.802667%20266.666667%20266.666667%20266.666667h256c196.864%200%20266.666667-69.802667%20266.666667-266.666667V384c0-196.864-69.76-266.666667-266.666667-266.666667z'%20fill='%23292D32'%20p-id='7285'%3e%3c/path%3e%3cpath%20d='M266.666667%20523.093333A245.632%20245.632%200%200%201%20512%20277.76a271.445333%20271.445333%200%200%201%2080.64%2011.946667%2032.128%2032.128%200%200%201-18.773333%2061.44A212.736%20212.736%200%200%200%20512%20342.186667a180.821333%20180.821333%200%201%200%20151.04%2080.64%2032%2032%200%200%201%2053.333333-35.413334%20245.333333%20245.333333%200%201%201-449.706666%20135.68z'%20fill='%23292D32'%20p-id='7286'%3e%3c/path%3e%3cpath%20d='M589.269333%20347.306667l-71.253333-81.493334a32.042667%2032.042667%200%200%201%2048.213333-42.24l71.253334%2081.493334a32.256%2032.256%200%200%201-2.986667%2045.226666%2029.866667%2029.866667%200%200%201-20.906667%208.106667%2032.512%2032.512%200%200%201-24.32-11.093333z'%20fill='%23292D32'%20p-id='7287'%3e%3c/path%3e%3cpath%20d='M504.746667%20405.717333a32.469333%2032.469333%200%200%201%206.741333-44.8l82.858667-60.586666a32.469333%2032.469333%200%200%201%2044.8%206.741333%2032.469333%2032.469333%200%200%201-6.826667%2044.8l-82.773333%2060.586667a31.189333%2031.189333%200%200%201-18.773334%206.4%2032.725333%2032.725333%200%200%201-26.026666-13.141334z'%20fill='%23292D32'%20p-id='7288'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-reload-all{-webkit-mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='2129'%20t='1660034441839'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m861.68%20670.07c-42.264%2093.421-118.37%20164.79-214.29%20200.94a383.74%20383.74%200%200%201-135.56%2024.888c-53.832%200-107.52-11.472-158.03-34.332a384.83%20384.83%200%200%201-85.645-53.484c2.088%2019.248%202.688%2039.252-0.144%2056.82a24.072%2024.072%200%200%201-47.52-7.6801c5.868-36.372-8.784-95.785-14.928-115.62a23.88%2023.88%200%200%201%200.144-14.172c0.312-1.128%200.744-2.232%201.236-3.312%200.168-0.34803%200.264-0.72003%200.444-1.056%201.548-3.072%203.708-5.88%206.6-8.148a24.024%2024.024%200%200%201%2024.888-2.808c23.496%205.028%2064.98%2010.98%20108.61%203.264a24.069%2024.069%200%201%201%208.4001%2047.4%20306.12%20306.12%200%200%201-61.848%204.2601%20336.12%20336.12%200%200%200%2079.597%2050.688c81.673%2036.948%20172.87%2039.888%20256.78%208.2561%2083.893-31.632%20150.44-94.033%20187.41-175.73%2036.948-81.673%2039.9-172.85%208.28-256.77a24.072%2024.072%200%201%201%2045.036-16.968c36.144%2095.941%2032.784%20200.2-9.4561%20293.56zm-99.589-269.61a16.044%2016.044%200%200%201%2020.664%209.36c27.252%2072.348%2024.72%20150.95-7.1161%20221.34-47.652%20105.3-153.3%20170.07-264.45%20170.07-26.556%200-53.424-3.6961-79.884-11.412a16.043%2016.043%200%201%201%208.9761-30.804c122.05%2035.556%20253.62-25.08%20306.11-141.08%2028.332-62.58%2030.564-132.47%206.336-196.79a16.044%2016.044%200%200%201%209.3601-20.676zm-500.14%20222.9a16.068%2016.068%200%200%201-20.676-9.3601c-27.3-72.312-24.78-150.94%207.08-221.37%2058.896-130.15%20201.54-197.47%20339.17-160.11a16.044%2016.044%200%200%201-8.4121%2030.96c-122.3-33.204-249.17%2026.652-301.53%20142.38a255.59%20255.59%200%200%200-6.3%20196.81%2016.056%2016.056%200%200%201-9.336%2020.676zm554.39-332.09c-0.108%200.552-0.204%201.092-0.348%201.644a23.112%2023.112%200%200%201-1.74%204.704c-0.084%200.192-0.132%200.372-0.22807%200.54-0.876%201.68-2.016%203.228-3.3%204.68-0.12%200.132-0.192%200.288-0.312%200.432-0.372%200.396-0.816%200.684-1.212%201.068-0.468%200.432-0.876%200.924-1.38%201.332-0.192%200.168-0.432%200.276-0.636%200.42-0.612%200.456-1.248%200.84-1.884%201.224-0.792%200.48-1.572%200.96-2.4%201.344-0.576%200.264-1.1761%200.46802-1.7761%200.70802a33.924%2033.924%200%200%201-2.784%200.876c-0.612%200.144-1.212%200.228-1.836%200.324-0.96%200.156-1.908%200.276-2.892%200.3-0.288%200.0125-0.54%200.084-0.828%200.084-0.324%200-0.648-0.096-0.984-0.108a22.14%2022.14%200%200%201-3.4321-0.408c-0.336-0.048-0.684-0.024-1.044-0.108-22.296-5.184-66.696-12.648-113.51-4.356a24.072%2024.072%200%200%201-8.388-47.4%20305.64%20305.64%200%200%201%2061.8-4.284%20334.87%20334.87%200%200%200-76.896-48.24c-168.6-76.26-367.87-1.14-444.16%20167.49-36.96%2081.709-39.9%20172.91-8.256%20256.81a24.062%2024.062%200%201%201-45.024%2016.992c-36.18-95.929-32.832-200.22%209.42-293.64%2087.241-192.81%20315.06-278.71%20507.88-191.5a382.86%20382.86%200%200%201%2083.004%2051.144c-2.1-19.272-2.712-39.312%200.144-56.892a24.063%2024.063%200%201%201%2047.508%207.692c-5.916%2036.492%208.7721%2095.809%2014.904%20115.6l0.048%200.22801c0.552%201.848%200.852%203.708%200.948%205.604%200.036%200.48-0.0127%200.936-0.0127%201.416-0.0127%201.44-0.132%202.868-0.396%204.284z'%20stroke-width='.7501'%20p-id='2130'/%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='2129'%20t='1660034441839'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m861.68%20670.07c-42.264%2093.421-118.37%20164.79-214.29%20200.94a383.74%20383.74%200%200%201-135.56%2024.888c-53.832%200-107.52-11.472-158.03-34.332a384.83%20384.83%200%200%201-85.645-53.484c2.088%2019.248%202.688%2039.252-0.144%2056.82a24.072%2024.072%200%200%201-47.52-7.6801c5.868-36.372-8.784-95.785-14.928-115.62a23.88%2023.88%200%200%201%200.144-14.172c0.312-1.128%200.744-2.232%201.236-3.312%200.168-0.34803%200.264-0.72003%200.444-1.056%201.548-3.072%203.708-5.88%206.6-8.148a24.024%2024.024%200%200%201%2024.888-2.808c23.496%205.028%2064.98%2010.98%20108.61%203.264a24.069%2024.069%200%201%201%208.4001%2047.4%20306.12%20306.12%200%200%201-61.848%204.2601%20336.12%20336.12%200%200%200%2079.597%2050.688c81.673%2036.948%20172.87%2039.888%20256.78%208.2561%2083.893-31.632%20150.44-94.033%20187.41-175.73%2036.948-81.673%2039.9-172.85%208.28-256.77a24.072%2024.072%200%201%201%2045.036-16.968c36.144%2095.941%2032.784%20200.2-9.4561%20293.56zm-99.589-269.61a16.044%2016.044%200%200%201%2020.664%209.36c27.252%2072.348%2024.72%20150.95-7.1161%20221.34-47.652%20105.3-153.3%20170.07-264.45%20170.07-26.556%200-53.424-3.6961-79.884-11.412a16.043%2016.043%200%201%201%208.9761-30.804c122.05%2035.556%20253.62-25.08%20306.11-141.08%2028.332-62.58%2030.564-132.47%206.336-196.79a16.044%2016.044%200%200%201%209.3601-20.676zm-500.14%20222.9a16.068%2016.068%200%200%201-20.676-9.3601c-27.3-72.312-24.78-150.94%207.08-221.37%2058.896-130.15%20201.54-197.47%20339.17-160.11a16.044%2016.044%200%200%201-8.4121%2030.96c-122.3-33.204-249.17%2026.652-301.53%20142.38a255.59%20255.59%200%200%200-6.3%20196.81%2016.056%2016.056%200%200%201-9.336%2020.676zm554.39-332.09c-0.108%200.552-0.204%201.092-0.348%201.644a23.112%2023.112%200%200%201-1.74%204.704c-0.084%200.192-0.132%200.372-0.22807%200.54-0.876%201.68-2.016%203.228-3.3%204.68-0.12%200.132-0.192%200.288-0.312%200.432-0.372%200.396-0.816%200.684-1.212%201.068-0.468%200.432-0.876%200.924-1.38%201.332-0.192%200.168-0.432%200.276-0.636%200.42-0.612%200.456-1.248%200.84-1.884%201.224-0.792%200.48-1.572%200.96-2.4%201.344-0.576%200.264-1.1761%200.46802-1.7761%200.70802a33.924%2033.924%200%200%201-2.784%200.876c-0.612%200.144-1.212%200.228-1.836%200.324-0.96%200.156-1.908%200.276-2.892%200.3-0.288%200.0125-0.54%200.084-0.828%200.084-0.324%200-0.648-0.096-0.984-0.108a22.14%2022.14%200%200%201-3.4321-0.408c-0.336-0.048-0.684-0.024-1.044-0.108-22.296-5.184-66.696-12.648-113.51-4.356a24.072%2024.072%200%200%201-8.388-47.4%20305.64%20305.64%200%200%201%2061.8-4.284%20334.87%20334.87%200%200%200-76.896-48.24c-168.6-76.26-367.87-1.14-444.16%20167.49-36.96%2081.709-39.9%20172.91-8.256%20256.81a24.062%2024.062%200%201%201-45.024%2016.992c-36.18-95.929-32.832-200.22%209.42-293.64%2087.241-192.81%20315.06-278.71%20507.88-191.5a382.86%20382.86%200%200%201%2083.004%2051.144c-2.1-19.272-2.712-39.312%200.144-56.892a24.063%2024.063%200%201%201%2047.508%207.692c-5.916%2036.492%208.7721%2095.809%2014.904%20115.6l0.048%200.22801c0.552%201.848%200.852%203.708%200.948%205.604%200.036%200.48-0.0127%200.936-0.0127%201.416-0.0127%201.44-0.132%202.868-0.396%204.284z'%20stroke-width='.7501'%20p-id='2130'/%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-left-arrow{-webkit-mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850602902'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8065'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M635.733333%20490.666667l174.933334%20174.933333-64%2059.733333-234.666667-234.666666L746.666667%20256%20810.666667%20315.733333l-174.933334%20174.933334z%20m-260.266666%200l174.933333%20174.933333-59.733333%2059.733333L256%20490.666667%20490.666667%20256l59.733333%2059.733333-174.933333%20174.933334z'%20fill='%23444444'%20p-id='8066'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850602902'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8065'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M635.733333%20490.666667l174.933334%20174.933333-64%2059.733333-234.666667-234.666666L746.666667%20256%20810.666667%20315.733333l-174.933334%20174.933334z%20m-260.266666%200l174.933333%20174.933333-59.733333%2059.733333L256%20490.666667%20490.666667%20256l59.733333%2059.733333-174.933333%20174.933334z'%20fill='%23444444'%20p-id='8066'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-right-arrow{-webkit-mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850594120'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7913'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M430.933333%20490.666667L256%20665.6%20315.733333%20725.333333l234.666667-234.666666L315.733333%20256%20256%20315.733333l174.933333%20174.933334z%20m256%200L512%20665.6l59.733333%2059.733333%20234.666667-234.666666L576%20256%20512%20315.733333l174.933333%20174.933334z'%20fill='%23444444'%20p-id='7914'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850594120'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7913'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M430.933333%20490.666667L256%20665.6%20315.733333%20725.333333l234.666667-234.666666L315.733333%20256%20256%20315.733333l174.933333%20174.933334z%20m256%200L512%20665.6l59.733333%2059.733333%20234.666667-234.666666L576%20256%20512%20315.733333l174.933333%20174.933334z'%20fill='%23444444'%20p-id='7914'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-open{-webkit-mask:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201024%201024'%20width='200'%20height='200'%3e%3cpath%20d='M640%20384v-85.333H213.333v597.334h597.334V384H640zm0-128h128v128h128V256H128v640h85.333V384H640V256z'%20fill='%23444444'/%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201024%201024'%20width='200'%20height='200'%3e%3cpath%20d='M640%20384v-85.333H213.333v597.334h597.334V384H640zm0-128h128v128h128V256H128v640h85.333V384H640V256z'%20fill='%23444444'/%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab-zoom-enter-active,.stack-tab-zoom-leave-active{transition:all .3s ease-in-out}.stack-tab-zoom-enter-from,.stack-tab-zoom-leave-to{opacity:0;transform:scale(0)}.stack-tab-swap-move,.stack-tab-swap-enter-active,.stack-tab-swap-leave-active{transition:all .3s ease-in-out}.stack-tab-swap-enter-from,.stack-tab-swap-leave-to{opacity:0}.stack-tab-swap-enter-from{transform:translate(30px)}.stack-tab-swap-leave-to{transform:translate(-30px)}.stack-tab-swap-back-enter-active,.stack-tab-swap-back-leave-active{transition:all .3s ease-in-out}.stack-tab-swap-back-enter-from,.stack-tab-swap-back-leave-to{opacity:0}.stack-tab-swap-back-enter-from{transform:translate(-30px)}.stack-tab-swap-back-leave-to{transform:translate(30px)}.stack-tab-loading-mask{opacity:.8;background:#fff;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.stack-tab-loading--spin{z-index:auto;background-color:#007bff;align-self:center;width:60px;height:60px;animation:1.5s linear infinite turn;-webkit-mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='6183'%20t='1660269579969'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cstyle%20type='text/css'/%3e%3c/defs%3e%3cpath%20d='m512%2015.756c-273.37%200-494.99%20222.17-494.99%20496.24s221.61%20496.24%20494.99%20496.24%20494.99-222.17%20494.99-496.24c0-274.07-221.58-496.24-494.99-496.24zm0%20942.84c-246.06%200-445.51-199.94-445.51-446.63%200-246.68%20199.45-446.63%20445.51-446.63s445.51%20199.94%20445.51%20446.63-199.45%20446.63-445.51%20446.63z'%20p-id='6184'/%3e%3cpath%20d='m512.05%20308.72c-51.167%200-102.23%2019.852-141.25%2059.557-38.945%2039.672-58.5%2091.731-58.5%20143.72s19.522%20104.05%2058.5%20143.72c39.011%2039.705%2090.079%2059.557%20141.25%2059.557%2051.101%200%20102.17-19.852%20141.18-59.557%2038.945-39.672%2058.467-91.731%2058.467-143.72s-19.522-104.05-58.467-143.72c-39.011-39.705-90.079-59.557-141.18-59.557zm14.336%2047.599c3.3363-12.618%2016.153-20.183%2028.606-16.78%2012.486%203.4023%2019.819%2016.417%2016.483%2029.068-3.3363%2012.684-16.087%2020.249-28.54%2016.846-12.486-3.4023-19.885-16.417-16.549-29.134zm-155.85%20217.05c-12.387%203.4354-25.204-4.063-28.54-16.747-3.3362-12.684%203.9969-25.732%2016.483-29.134%2012.486-3.3693%2025.27%204.129%2028.606%2016.846%203.3362%2012.651-4.063%2025.633-16.549%2029.035zm16.417-154.33c-9.1169-9.2821-9.1169-24.312%200-33.594%209.1499-9.2821%2023.882-9.2821%2032.999%200%209.0839%209.2821%209.0839%2024.312%200%2033.594-9.1169%209.3151-23.882%209.3151-32.999%200zm106.69%20245.99c-3.3363%2012.618-16.153%2020.183-28.54%2016.78-12.486-3.4023-19.885-16.417-16.549-29.068%203.3363-12.684%2016.153-20.249%2028.606-16.846%2012.42%203.4023%2019.819%2016.417%2016.483%2029.134zm-52.224-84.463c-37.888-38.648-37.888-101.14%200-139.73%2037.888-38.549%2099.361-38.549%20137.25%200%2037.888%2038.582%2037.888%20101.11%200%20139.73-37.888%2038.549-99.361%2038.549-137.25%200zm191.75%2055.329c-9.1499%209.249-23.948%209.249-32.999%200-9.1169-9.2821-9.1169-24.345%200-33.594%209.0839-9.3151%2023.882-9.3151%2032.999%200%209.0508%209.249%209.0508%2024.279%200%2033.594zm44.924-171.17c3.3363%2012.717-4.063%2025.732-16.549%2029.134-12.387%203.3693-25.204-4.129-28.54-16.846-3.3363-12.651%204.063-25.699%2016.483-29.101%2012.486-3.3363%2025.27%204.129%2028.606%2016.813z'%20p-id='6185'/%3e%3cg%20transform='translate(.47897%2028.177)'%3e%3cpath%20d='m210.09%20197.4%2021.669%20142.01%2036.6-5.6816-21.669-142.04z'%20p-id='6186'/%3e%3cpath%20d='m398.01%20863.79%2023.222%2029.432%20109.24-89.484-23.222-29.432z'%20p-id='6187'/%3e%3cpath%20d='m777.55%20308.98-13.411%2035.179%20129.98%2051.266%2013.411-35.179z'%20p-id='6188'/%3e%3cpath%20d='m115.51%20606.64%20131.3%2051.795%2013.411-35.179-131.3-51.795z'%20p-id='6189'/%3e%3cpath%20d='m627.61%20103.85-23.189-29.432-105.77%2086.644%2023.189%2029.399z'%20p-id='6190'/%3e%3cpath%20d='m756.93%20636.2%2021.273%20139.92%2036.699-5.7806-21.306-139.96z'%20p-id='6191'/%3e%3c/g%3e%3c/svg%3e") 0 0/contain;mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='6183'%20t='1660269579969'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cstyle%20type='text/css'/%3e%3c/defs%3e%3cpath%20d='m512%2015.756c-273.37%200-494.99%20222.17-494.99%20496.24s221.61%20496.24%20494.99%20496.24%20494.99-222.17%20494.99-496.24c0-274.07-221.58-496.24-494.99-496.24zm0%20942.84c-246.06%200-445.51-199.94-445.51-446.63%200-246.68%20199.45-446.63%20445.51-446.63s445.51%20199.94%20445.51%20446.63-199.45%20446.63-445.51%20446.63z'%20p-id='6184'/%3e%3cpath%20d='m512.05%20308.72c-51.167%200-102.23%2019.852-141.25%2059.557-38.945%2039.672-58.5%2091.731-58.5%20143.72s19.522%20104.05%2058.5%20143.72c39.011%2039.705%2090.079%2059.557%20141.25%2059.557%2051.101%200%20102.17-19.852%20141.18-59.557%2038.945-39.672%2058.467-91.731%2058.467-143.72s-19.522-104.05-58.467-143.72c-39.011-39.705-90.079-59.557-141.18-59.557zm14.336%2047.599c3.3363-12.618%2016.153-20.183%2028.606-16.78%2012.486%203.4023%2019.819%2016.417%2016.483%2029.068-3.3363%2012.684-16.087%2020.249-28.54%2016.846-12.486-3.4023-19.885-16.417-16.549-29.134zm-155.85%20217.05c-12.387%203.4354-25.204-4.063-28.54-16.747-3.3362-12.684%203.9969-25.732%2016.483-29.134%2012.486-3.3693%2025.27%204.129%2028.606%2016.846%203.3362%2012.651-4.063%2025.633-16.549%2029.035zm16.417-154.33c-9.1169-9.2821-9.1169-24.312%200-33.594%209.1499-9.2821%2023.882-9.2821%2032.999%200%209.0839%209.2821%209.0839%2024.312%200%2033.594-9.1169%209.3151-23.882%209.3151-32.999%200zm106.69%20245.99c-3.3363%2012.618-16.153%2020.183-28.54%2016.78-12.486-3.4023-19.885-16.417-16.549-29.068%203.3363-12.684%2016.153-20.249%2028.606-16.846%2012.42%203.4023%2019.819%2016.417%2016.483%2029.134zm-52.224-84.463c-37.888-38.648-37.888-101.14%200-139.73%2037.888-38.549%2099.361-38.549%20137.25%200%2037.888%2038.582%2037.888%20101.11%200%20139.73-37.888%2038.549-99.361%2038.549-137.25%200zm191.75%2055.329c-9.1499%209.249-23.948%209.249-32.999%200-9.1169-9.2821-9.1169-24.345%200-33.594%209.0839-9.3151%2023.882-9.3151%2032.999%200%209.0508%209.249%209.0508%2024.279%200%2033.594zm44.924-171.17c3.3363%2012.717-4.063%2025.732-16.549%2029.134-12.387%203.3693-25.204-4.129-28.54-16.846-3.3363-12.651%204.063-25.699%2016.483-29.101%2012.486-3.3363%2025.27%204.129%2028.606%2016.813z'%20p-id='6185'/%3e%3cg%20transform='translate(.47897%2028.177)'%3e%3cpath%20d='m210.09%20197.4%2021.669%20142.01%2036.6-5.6816-21.669-142.04z'%20p-id='6186'/%3e%3cpath%20d='m398.01%20863.79%2023.222%2029.432%20109.24-89.484-23.222-29.432z'%20p-id='6187'/%3e%3cpath%20d='m777.55%20308.98-13.411%2035.179%20129.98%2051.266%2013.411-35.179z'%20p-id='6188'/%3e%3cpath%20d='m115.51%20606.64%20131.3%2051.795%2013.411-35.179-131.3-51.795z'%20p-id='6189'/%3e%3cpath%20d='m627.61%20103.85-23.189-29.432-105.77%2086.644%2023.189%2029.399z'%20p-id='6190'/%3e%3cpath%20d='m756.93%20636.2%2021.273%20139.92%2036.699-5.7806-21.306-139.96z'%20p-id='6191'/%3e%3c/g%3e%3c/svg%3e") 0 0/contain}@keyframes turn{0%{transform:rotate(0)}25%{transform:rotate(-90deg)}50%{transform:rotate(-180deg)}75%{transform:rotate(-270deg)}to{transform:rotate(-360deg)}}
|
|
1
|
+
.stack-tab__contextmenu-title[data-v-3d616fa0]{margin-left:8px}.divider[data-v-cfc33246]{height:1px;margin:5px 0;position:relative}.div-transparent[data-v-cfc33246]:before{content:"";background-image:linear-gradient(90deg,#0000,#a9a9a9,#0000);width:100%;height:1px;position:absolute;top:0;left:0;right:0}.stack-tab{grid-gap:5px;background-color:#fff;flex-direction:column;min-height:300px;display:flex}.stack-tab__container{flex:1 1 0;position:relative;overflow:hidden}.stack-tab__keep-alive-panel{width:100%;height:100%;position:absolute;top:0;left:0}.stack-tab .cache-page-wrapper{width:100%;height:100%}.stack-tab__maximum{position:fixed;top:0;left:0;width:100vw!important;height:100vh!important}.stack-tab__mask-button{background-color:#4d4d4d;width:20px;height:100%;margin:0 5px;transition:all .15s ease-in-out}.stack-tab__header-button[disabled] .stack-tab__mask-button{cursor:not-allowed;background-color:#aaa;transition:none}.stack-tab__mask-button:hover{background-color:#409eff}.stack-tab__mask-button:active{background-color:#337ecc}.stack-tab__button{width:20px;height:20px;margin:0 5px}.stack-tab__header{box-sizing:border-box;border-bottom:1px solid #f0f0f0;width:100%;height:40px;display:flex;position:relative}.stack-tab__header-button{z-index:2;cursor:pointer;width:fit-content;height:40px;color:inherit;font:inherit;text-align:inherit;appearance:none;background-color:#fff;border:0;align-items:center;padding:0;display:flex;overflow:hidden}.stack-tab__header-button[disabled]{box-shadow:none;cursor:not-allowed;background-color:#fafafa}.stack-tab__scroll{flex:1 1 0;height:40px;position:relative;overflow:hidden}.stack-tab__scroll-container{width:100%;height:100%;overflow:hidden}.stack-tab__scroll-container.is-mobile{overflow:auto hidden}.stack-tab__scrollbar{opacity:0;background-color:#0000001a;border-radius:6px;height:6px;transition:all .15s ease-in-out;position:absolute;bottom:0;left:0;right:0}.stack-tab__scroll:hover .stack-tab__scrollbar,.stack-tab__scrollbar.is-dragging{opacity:1}.stack-tab__scrollbar-thumb{background-color:#0000001a;border-radius:6px;height:100%;transition:background-color .3s ease-in-out;position:absolute;top:0;left:0}.stack-tab__scrollbar-thumb:hover{cursor:grab}.stack-tab__scrollbar-thumb:hover:active{cursor:grabbing}.stack-tab__scrollbar.is-dragging .stack-tab__scrollbar-thumb,.stack-tab__scrollbar-thumb:hover{background-color:#409eff!important}.stack-tab__nav{content-visibility:auto;flex-wrap:nowrap;height:100%;margin:0;padding:0 16px 0 0;list-style:none;display:inline-flex;position:relative}.stack-tab__item{color:#4d4d4d;cursor:pointer;-webkit-user-select:none;user-select:none;transform-origin:0 100%;content-visibility:auto;background-color:#fafafa;border:1px solid #f0f0f0;border-left:none;border-radius:8px 8px 0 0;flex:none;align-items:center;margin-top:5px;padding:0 24px;font-size:14px;transition:all .15s ease-in-out;display:flex;position:relative}.stack-tab__item:first-child{border-left:1px solid #f0f0f0}.stack-tab__item.is-dragging{opacity:.55}.stack-tab__item.is-drop-before:before,.stack-tab__item.is-drop-after:after{z-index:2;content:"";background:#409eff;border-radius:2px;width:5px;position:absolute;top:2px;bottom:2px;box-shadow:0 0 6px #409effcc}.stack-tab__item.is-drop-before:before{left:-3px}.stack-tab__item.is-drop-after:after{right:-3px}.stack-tab__item.is-contextmenu{color:#000}.stack-tab__item.is-active{z-index:1;margin-top:unset;background-color:#fff;border-bottom-color:#fff;box-shadow:-5px 0 5px -5px #0009,5px 0 5px -5px #0009}.stack-tab__item:hover,.stack-tab__item.is-active{color:#409eff}.stack-tab__item:hover.is-icon,.stack-tab__item.is-active.is-icon{padding:0 12px}.stack-tab__item:hover.is-icon .stack-tab__item-button,.stack-tab__item.is-active.is-icon .stack-tab__item-button{width:20px;margin-left:4px}.stack-tab__item-tab{min-width:0;height:100%;color:inherit;cursor:inherit;font:inherit;text-align:inherit;appearance:none;background:0 0;border:0;flex:auto;align-items:center;padding:0;display:flex}.stack-tab__item-title{flex:1 1 0;display:flex}.stack-tab__item-title-content{text-overflow:ellipsis;white-space:nowrap;min-width:30px;max-width:100px;overflow:hidden}.stack-tab__item-icon{margin-right:5px;font-size:16px}.stack-tab__item-button{width:0;height:100%;font:inherit;appearance:none;background-color:#4d4d4d;border:0;padding:0;transition:all .15s ease-in-out}.stack-tab__item-button:hover{background-color:#409eff}.stack-tab__item-button:active{background-color:#337ecc}.stack-tab__badge{display:inline-block;position:relative}.stack-tab__badge-content{color:#fff;text-align:center;box-sizing:border-box;border:1px solid #fff;border-radius:.5rem;min-width:.5rem;min-height:.5rem;padding:.3rem;font-size:.5rem;line-height:.4rem;position:absolute;top:.1rem;right:.1rem;transform:translate(100%)translateY(-50%)}.stack-tab__badge-content.default{background:#ef4f4f}.stack-tab__badge-content.primary{background:#409eff}.stack-tab__iframes{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0}.stack-tab__iframe-wrapper{pointer-events:auto;width:100%;height:100%;position:absolute;top:0;left:0}.stack-tab__iframe{border:0;width:100%;height:100%;position:absolute;top:0;left:0}.stack-tab__iframe-loading{z-index:1;background:var(--stack-tab-iframe-loading-bg,#f5f5f5);justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.stack-tab__iframe-loading-text{color:var(--stack-tab-iframe-loading-color,#999);font-size:var(--stack-tab-font-size,14px)}.stack-tab__iframe-error{z-index:2;pointer-events:auto;background:var(--stack-tab-iframe-error-bg,#ffffffeb);box-sizing:border-box;justify-content:center;align-items:center;gap:8px;width:100%;height:100%;padding:16px;display:flex;position:absolute;top:0;left:0}.stack-tab__iframe-error-text{color:var(--stack-tab-iframe-error-color,#666);font-size:var(--stack-tab-font-size,14px)}.stack-tab__iframe-error-retry,.stack-tab__iframe-error-open{color:#4d4d4d;cursor:pointer;font:inherit;background:#fff;border:1px solid #f0f0f0;border-radius:6px;padding:4px 10px}.stack-tab__contextmenu{z-index:999;transform-origin:0 0;background:#fff;border:1px solid #f0f0f0;border-radius:10px 0;min-width:120px;padding:8px;font-size:14px;position:fixed;box-shadow:5px 5px 5px #0000001a}.stack-tab__contextmenu-item{width:100%;min-height:30px;line-height:30px;font:inherit;text-align:inherit;appearance:none;box-sizing:border-box;color:#4d4d4d;cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border:0;border-radius:10px 0;justify-content:flex-start;align-items:center;margin:0;padding:0 10px;transition:color .2s ease-in-out,background-color .2s ease-in-out;display:flex;position:relative}.stack-tab__contextmenu-item:hover,.stack-tab__contextmenu-item:active,.stack-tab__contextmenu-item:focus-visible{color:#fff;background-color:#409eff}.stack-tab__contextmenu-item:hover .svg-mask,.stack-tab__contextmenu-item:active .svg-mask,.stack-tab__contextmenu-item:focus-visible .svg-mask{background-color:#fff}.stack-tab__contextmenu-item:focus{outline:none}.stack-tab__contextmenu-item[disabled]{color:#aaa;pointer-events:none;cursor:default;background:0 0}.stack-tab__contextmenu-item[disabled] .svg-mask{background-color:#aaa}.stack-tab__contextmenu-icon{width:14px;height:14px;transition:background-color .2s ease-in-out}.stack-tab__contextmenu-icon.svg-mask{background-color:#4d4d4d;width:14px;height:14px}.stack-tab__shadow-left{box-shadow:-5px 0 5px -5px #0009}.stack-tab__shadow-right{box-shadow:5px 0 5px -5px #0009}.stack-tab__shadow-inset-left:after{content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset 5px 0 5px -5px #0009}.stack-tab__shadow-inset-right:after{content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset -5px 0 5px -5px #0009}.stack-tab__shadow-inset-all:after{content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset 5px 0 5px -5px #0009,inset -5px 0 5px -5px #0009}.stack-tab__shadow-inset-top:after{content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 5px 5px -5px #0009}.stack-tab__shadow-inset-bottom:after{content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 -5px 5px -5px #0009}.stack-tab__shadow-inset-vertical:after{content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 5px 5px -5px #0009,inset 0 -5px 5px -5px #0009}.stack-tab__icon-fullscreen{-webkit-mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850629232'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8369'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M358.4%20768H426.666667v85.333333H213.333333v-213.333333h85.333334v68.266667l128-128%2059.733333%2059.733333-128%20128z%20m345.6%200l-128-128%2059.733333-59.733333%20132.266667%20132.266666V640h85.333333v213.333333h-213.333333v-85.333333h64zM358.4%20298.666667l128%20128-59.733333%2059.733333-128-128V426.666667H213.333333V213.333333h213.333334v85.333334H358.4z%20m345.6%200H640V213.333333h213.333333v213.333334h-85.333333V354.133333l-132.266667%20132.266667-59.733333-59.733333%20128-128z'%20fill='%23444444'%20p-id='8370'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850629232'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8369'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M358.4%20768H426.666667v85.333333H213.333333v-213.333333h85.333334v68.266667l128-128%2059.733333%2059.733333-128%20128z%20m345.6%200l-128-128%2059.733333-59.733333%20132.266667%20132.266666V640h85.333333v213.333333h-213.333333v-85.333333h64zM358.4%20298.666667l128%20128-59.733333%2059.733333-128-128V426.666667H213.333333V213.333333h213.333334v85.333334H358.4z%20m345.6%200H640V213.333333h213.333333v213.333334h-85.333333V354.133333l-132.266667%20132.266667-59.733333-59.733333%20128-128z'%20fill='%23444444'%20p-id='8370'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-restore{-webkit-mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850610341'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8217'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M298.666667%20631.466667H226.133333v-81.066667h217.6v204.8h-85.333333v-68.266667l-128%20128L170.666667%20759.466667l128-128z%20m422.4%200l128%20128-59.733334%2059.733333-128-128v68.266667h-85.333333V554.666667h217.6v81.066666h-72.533333zM298.666667%20341.333333L187.733333%20230.4%20243.2%20170.666667l115.2%20115.2V217.6h85.333333v204.8H226.133333V341.333333H298.666667z%20m430.933333%200h64v81.066667h-217.6V217.6h85.333333v72.533333L780.8%20170.666667l59.733333%2059.733333L729.6%20341.333333z'%20fill='%23444444'%20p-id='8218'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850610341'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8217'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M298.666667%20631.466667H226.133333v-81.066667h217.6v204.8h-85.333333v-68.266667l-128%20128L170.666667%20759.466667l128-128z%20m422.4%200l128%20128-59.733334%2059.733333-128-128v68.266667h-85.333333V554.666667h217.6v81.066666h-72.533333zM298.666667%20341.333333L187.733333%20230.4%20243.2%20170.666667l115.2%20115.2V217.6h85.333333v204.8H226.133333V341.333333H298.666667z%20m430.933333%200h64v81.066667h-217.6V217.6h85.333333v72.533333L780.8%20170.666667l59.733333%2059.733333L729.6%20341.333333z'%20fill='%23444444'%20p-id='8218'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-close{-webkit-mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='1922'%20t='1660030183477'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cstyle%20type='text/css'/%3e%3c/defs%3e%3cpath%20d='m235.52%20204.8c-7.6799%200-15.362%203.0703-21.506%209.2143-12.288%2012.288-12.288%2030.724%200%2043.013l254.97%20254.97-254.97%20254.97c-12.288%2012.288-12.288%2030.724%200%2043.013%206.1439%206.1441%2013.826%209.2143%2021.506%209.2143%207.68%200%2015.362-3.0703%2021.506-9.2143l254.97-254.97%20254.97%20254.97c6.1439%206.1441%2013.826%209.2143%2021.506%209.2143%207.6799%200%2015.362-3.0703%2021.506-9.2143%2012.288-12.288%2012.288-30.724%200-43.013l-254.97-254.97%20254.97-254.97c12.288-12.288%2012.288-30.724%200-43.013-6.1439-6.1441-13.826-9.2143-21.506-9.2143-7.68%200-15.362%203.0703-21.506%209.2143l-254.97%20254.97-254.97-254.97c-6.1439-6.1441-13.826-9.2143-21.506-9.2143z'%20stroke-width='.96001'/%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='1922'%20t='1660030183477'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cstyle%20type='text/css'/%3e%3c/defs%3e%3cpath%20d='m235.52%20204.8c-7.6799%200-15.362%203.0703-21.506%209.2143-12.288%2012.288-12.288%2030.724%200%2043.013l254.97%20254.97-254.97%20254.97c-12.288%2012.288-12.288%2030.724%200%2043.013%206.1439%206.1441%2013.826%209.2143%2021.506%209.2143%207.68%200%2015.362-3.0703%2021.506-9.2143l254.97-254.97%20254.97%20254.97c6.1439%206.1441%2013.826%209.2143%2021.506%209.2143%207.6799%200%2015.362-3.0703%2021.506-9.2143%2012.288-12.288%2012.288-30.724%200-43.013l-254.97-254.97%20254.97-254.97c12.288-12.288%2012.288-30.724%200-43.013-6.1439-6.1441-13.826-9.2143-21.506-9.2143-7.68%200-15.362%203.0703-21.506%209.2143l-254.97%20254.97-254.97-254.97c-6.1439-6.1441-13.826-9.2143-21.506-9.2143z'%20stroke-width='.96001'/%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-close-fill{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1676454450456'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4689'%20width='200'%20height='200'%3e%3cpath%20d='M512%20451.669333L421.504%20361.130667A42.666667%2042.666667%200%200%200%20361.130667%20421.546667L451.669333%20512l-90.538666%2090.496a42.666667%2042.666667%200%200%200%2060.373333%2060.373333L512%20572.330667l90.496%2090.538666a42.666667%2042.666667%200%200%200%2060.373333-60.373333L572.330667%20512l90.538666-90.496a42.666667%2042.666667%200%201%200-60.373333-60.373333L512%20451.669333z%20m-271.530667%20331.861334A384%20384%200%201%201%20783.530667%20240.469333%20384%20384%200%200%201%20240.469333%20783.530667z'%20fill='%23000000'%20p-id='4690'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1676454450456'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4689'%20width='200'%20height='200'%3e%3cpath%20d='M512%20451.669333L421.504%20361.130667A42.666667%2042.666667%200%200%200%20361.130667%20421.546667L451.669333%20512l-90.538666%2090.496a42.666667%2042.666667%200%200%200%2060.373333%2060.373333L512%20572.330667l90.496%2090.538666a42.666667%2042.666667%200%200%200%2060.373333-60.373333L572.330667%20512l90.538666-90.496a42.666667%2042.666667%200%201%200-60.373333-60.373333L512%20451.669333z%20m-271.530667%20331.861334A384%20384%200%201%201%20783.530667%20240.469333%20384%20384%200%200%201%20240.469333%20783.530667z'%20fill='%23000000'%20p-id='4690'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-close-lefts{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1676511927584'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='18731'%20width='200'%20height='200'%3e%3cpath%20d='M156%20219H92a4%204%200%200%200-4%204v634a4%204%200%200%200%204%204h64a4%204%200%200%200%204-4V223a4%204%200%200%200-4-4z%20m756.7%20128.4h-368V172.8a16%2016%200%200%200-16.2-16%2015.4%2015.4%200%200%200-12.2%205.9L238.9%20501.9a16%2016%200%200%200%200%2020.2l277.4%20339.2a15.4%2015.4%200%200%200%2012.2%205.9%2016%2016%200%200%200%2016.2-16V676.6h368a16%2016%200%200%200%2016-16V363.4a16%2016%200%200%200-16-16z%20m-56%20257.2h-384v89.6L323.7%20512l149-182.2v89.6h384z'%20p-id='18732'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1676511927584'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='18731'%20width='200'%20height='200'%3e%3cpath%20d='M156%20219H92a4%204%200%200%200-4%204v634a4%204%200%200%200%204%204h64a4%204%200%200%200%204-4V223a4%204%200%200%200-4-4z%20m756.7%20128.4h-368V172.8a16%2016%200%200%200-16.2-16%2015.4%2015.4%200%200%200-12.2%205.9L238.9%20501.9a16%2016%200%200%200%200%2020.2l277.4%20339.2a15.4%2015.4%200%200%200%2012.2%205.9%2016%2016%200%200%200%2016.2-16V676.6h368a16%2016%200%200%200%2016-16V363.4a16%2016%200%200%200-16-16z%20m-56%20257.2h-384v89.6L323.7%20512l149-182.2v89.6h384z'%20p-id='18732'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-close-rights{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1676511848479'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='18577'%20width='200'%20height='200'%3e%3cpath%20d='M924%20191h-64a4%204%200%200%200-4%204v634a4%204%200%200%200%204%204h64a4%204%200%200%200%204-4V195a4%204%200%200%200-4-4z%20m-416.3-28.3a15.4%2015.4%200%200%200-12.2-5.9%2016%2016%200%200%200-16.2%2016v174.6h-368a16%2016%200%200%200-16%2016v297.2a16%2016%200%200%200%2016%2016h368v174.6a16%2016%200%200%200%2016.2%2016%2015.4%2015.4%200%200%200%2012.2-5.9l277.4-339.2a16%2016%200%200%200%200-20.2z%20m43.6%20531.5v-89.6h-384V419.4h384v-89.6l149%20182.2z'%20p-id='18578'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1676511848479'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='18577'%20width='200'%20height='200'%3e%3cpath%20d='M924%20191h-64a4%204%200%200%200-4%204v634a4%204%200%200%200%204%204h64a4%204%200%200%200%204-4V195a4%204%200%200%200-4-4z%20m-416.3-28.3a15.4%2015.4%200%200%200-12.2-5.9%2016%2016%200%200%200-16.2%2016v174.6h-368a16%2016%200%200%200-16%2016v297.2a16%2016%200%200%200%2016%2016h368v174.6a16%2016%200%200%200%2016.2%2016%2015.4%2015.4%200%200%200%2012.2-5.9l277.4-339.2a16%2016%200%200%200%200-20.2z%20m43.6%20531.5v-89.6h-384V419.4h384v-89.6l149%20182.2z'%20p-id='18578'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-close-others{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1695280793106'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9167'%20width='200'%20height='200'%3e%3cpath%20d='M388.266667%20512L290.133333%20413.866667l29.866667-29.866667%20149.333333%20149.333333L320%20682.666667l-29.866667-29.866667L388.266667%20554.666667H128v-42.666667h260.266667z%20m290.133333%200H938.666667v42.666667h-260.266667l98.133333%2098.133333-29.866666%2029.866667-149.333334-149.333334L746.666667%20384l29.866666%2029.866667-98.133333%2098.133333z'%20fill='%23444444'%20p-id='9168'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1695280793106'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9167'%20width='200'%20height='200'%3e%3cpath%20d='M388.266667%20512L290.133333%20413.866667l29.866667-29.866667%20149.333333%20149.333333L320%20682.666667l-29.866667-29.866667L388.266667%20554.666667H128v-42.666667h260.266667z%20m290.133333%200H938.666667v42.666667h-260.266667l98.133333%2098.133333-29.866666%2029.866667-149.333334-149.333334L746.666667%20384l29.866666%2029.866667-98.133333%2098.133333z'%20fill='%23444444'%20p-id='9168'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-close-all{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1660395177016'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2947'%20width='200'%20height='200'%3e%3cpath%20d='M354%20671h58.9c4.7%200%209.2-2.1%2012.3-5.7L512%20561.8l86.8%20103.5c3%203.6%207.5%205.7%2012.3%205.7H670c6.8%200%2010.5-7.9%206.1-13.1L553.8%20512l122.4-145.9c4.4-5.2%200.7-13.1-6.1-13.1h-58.9c-4.7%200-9.2%202.1-12.3%205.7L512%20462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8%200-10.5%207.9-6.1%2013.1L470.2%20512%20347.9%20657.9c-4.4%205.2-0.7%2013.1%206.1%2013.1z'%20p-id='2948'%3e%3c/path%3e%3cpath%20d='M880%20112H144c-17.7%200-32%2014.3-32%2032v736c0%2017.7%2014.3%2032%2032%2032h736c17.7%200%2032-14.3%2032-32V144c0-17.7-14.3-32-32-32z%20m-40%20728H184V184h656v656z'%20p-id='2949'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1660395177016'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2947'%20width='200'%20height='200'%3e%3cpath%20d='M354%20671h58.9c4.7%200%209.2-2.1%2012.3-5.7L512%20561.8l86.8%20103.5c3%203.6%207.5%205.7%2012.3%205.7H670c6.8%200%2010.5-7.9%206.1-13.1L553.8%20512l122.4-145.9c4.4-5.2%200.7-13.1-6.1-13.1h-58.9c-4.7%200-9.2%202.1-12.3%205.7L512%20462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8%200-10.5%207.9-6.1%2013.1L470.2%20512%20347.9%20657.9c-4.4%205.2-0.7%2013.1%206.1%2013.1z'%20p-id='2948'%3e%3c/path%3e%3cpath%20d='M880%20112H144c-17.7%200-32%2014.3-32%2032v736c0%2017.7%2014.3%2032%2032%2032h736c17.7%200%2032-14.3%2032-32V144c0-17.7-14.3-32-32-32z%20m-40%20728H184V184h656v656z'%20p-id='2949'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-reload{-webkit-mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='6183'%20t='1660269579969'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cstyle%20type='text/css'/%3e%3c/defs%3e%3cpath%20d='m512%2015.756c-273.37%200-494.99%20222.17-494.99%20496.24s221.61%20496.24%20494.99%20496.24%20494.99-222.17%20494.99-496.24c0-274.07-221.58-496.24-494.99-496.24zm0%20942.84c-246.06%200-445.51-199.94-445.51-446.63%200-246.68%20199.45-446.63%20445.51-446.63s445.51%20199.94%20445.51%20446.63-199.45%20446.63-445.51%20446.63z'%20p-id='6184'/%3e%3cpath%20d='m512.05%20308.72c-51.167%200-102.23%2019.852-141.25%2059.557-38.945%2039.672-58.5%2091.731-58.5%20143.72s19.522%20104.05%2058.5%20143.72c39.011%2039.705%2090.079%2059.557%20141.25%2059.557%2051.101%200%20102.17-19.852%20141.18-59.557%2038.945-39.672%2058.467-91.731%2058.467-143.72s-19.522-104.05-58.467-143.72c-39.011-39.705-90.079-59.557-141.18-59.557zm14.336%2047.599c3.3363-12.618%2016.153-20.183%2028.606-16.78%2012.486%203.4023%2019.819%2016.417%2016.483%2029.068-3.3363%2012.684-16.087%2020.249-28.54%2016.846-12.486-3.4023-19.885-16.417-16.549-29.134zm-155.85%20217.05c-12.387%203.4354-25.204-4.063-28.54-16.747-3.3362-12.684%203.9969-25.732%2016.483-29.134%2012.486-3.3693%2025.27%204.129%2028.606%2016.846%203.3362%2012.651-4.063%2025.633-16.549%2029.035zm16.417-154.33c-9.1169-9.2821-9.1169-24.312%200-33.594%209.1499-9.2821%2023.882-9.2821%2032.999%200%209.0839%209.2821%209.0839%2024.312%200%2033.594-9.1169%209.3151-23.882%209.3151-32.999%200zm106.69%20245.99c-3.3363%2012.618-16.153%2020.183-28.54%2016.78-12.486-3.4023-19.885-16.417-16.549-29.068%203.3363-12.684%2016.153-20.249%2028.606-16.846%2012.42%203.4023%2019.819%2016.417%2016.483%2029.134zm-52.224-84.463c-37.888-38.648-37.888-101.14%200-139.73%2037.888-38.549%2099.361-38.549%20137.25%200%2037.888%2038.582%2037.888%20101.11%200%20139.73-37.888%2038.549-99.361%2038.549-137.25%200zm191.75%2055.329c-9.1499%209.249-23.948%209.249-32.999%200-9.1169-9.2821-9.1169-24.345%200-33.594%209.0839-9.3151%2023.882-9.3151%2032.999%200%209.0508%209.249%209.0508%2024.279%200%2033.594zm44.924-171.17c3.3363%2012.717-4.063%2025.732-16.549%2029.134-12.387%203.3693-25.204-4.129-28.54-16.846-3.3363-12.651%204.063-25.699%2016.483-29.101%2012.486-3.3363%2025.27%204.129%2028.606%2016.813z'%20p-id='6185'/%3e%3cg%20transform='translate(.47897%2028.177)'%3e%3cpath%20d='m210.09%20197.4%2021.669%20142.01%2036.6-5.6816-21.669-142.04z'%20p-id='6186'/%3e%3cpath%20d='m398.01%20863.79%2023.222%2029.432%20109.24-89.484-23.222-29.432z'%20p-id='6187'/%3e%3cpath%20d='m777.55%20308.98-13.411%2035.179%20129.98%2051.266%2013.411-35.179z'%20p-id='6188'/%3e%3cpath%20d='m115.51%20606.64%20131.3%2051.795%2013.411-35.179-131.3-51.795z'%20p-id='6189'/%3e%3cpath%20d='m627.61%20103.85-23.189-29.432-105.77%2086.644%2023.189%2029.399z'%20p-id='6190'/%3e%3cpath%20d='m756.93%20636.2%2021.273%20139.92%2036.699-5.7806-21.306-139.96z'%20p-id='6191'/%3e%3c/g%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='6183'%20t='1660269579969'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cstyle%20type='text/css'/%3e%3c/defs%3e%3cpath%20d='m512%2015.756c-273.37%200-494.99%20222.17-494.99%20496.24s221.61%20496.24%20494.99%20496.24%20494.99-222.17%20494.99-496.24c0-274.07-221.58-496.24-494.99-496.24zm0%20942.84c-246.06%200-445.51-199.94-445.51-446.63%200-246.68%20199.45-446.63%20445.51-446.63s445.51%20199.94%20445.51%20446.63-199.45%20446.63-445.51%20446.63z'%20p-id='6184'/%3e%3cpath%20d='m512.05%20308.72c-51.167%200-102.23%2019.852-141.25%2059.557-38.945%2039.672-58.5%2091.731-58.5%20143.72s19.522%20104.05%2058.5%20143.72c39.011%2039.705%2090.079%2059.557%20141.25%2059.557%2051.101%200%20102.17-19.852%20141.18-59.557%2038.945-39.672%2058.467-91.731%2058.467-143.72s-19.522-104.05-58.467-143.72c-39.011-39.705-90.079-59.557-141.18-59.557zm14.336%2047.599c3.3363-12.618%2016.153-20.183%2028.606-16.78%2012.486%203.4023%2019.819%2016.417%2016.483%2029.068-3.3363%2012.684-16.087%2020.249-28.54%2016.846-12.486-3.4023-19.885-16.417-16.549-29.134zm-155.85%20217.05c-12.387%203.4354-25.204-4.063-28.54-16.747-3.3362-12.684%203.9969-25.732%2016.483-29.134%2012.486-3.3693%2025.27%204.129%2028.606%2016.846%203.3362%2012.651-4.063%2025.633-16.549%2029.035zm16.417-154.33c-9.1169-9.2821-9.1169-24.312%200-33.594%209.1499-9.2821%2023.882-9.2821%2032.999%200%209.0839%209.2821%209.0839%2024.312%200%2033.594-9.1169%209.3151-23.882%209.3151-32.999%200zm106.69%20245.99c-3.3363%2012.618-16.153%2020.183-28.54%2016.78-12.486-3.4023-19.885-16.417-16.549-29.068%203.3363-12.684%2016.153-20.249%2028.606-16.846%2012.42%203.4023%2019.819%2016.417%2016.483%2029.134zm-52.224-84.463c-37.888-38.648-37.888-101.14%200-139.73%2037.888-38.549%2099.361-38.549%20137.25%200%2037.888%2038.582%2037.888%20101.11%200%20139.73-37.888%2038.549-99.361%2038.549-137.25%200zm191.75%2055.329c-9.1499%209.249-23.948%209.249-32.999%200-9.1169-9.2821-9.1169-24.345%200-33.594%209.0839-9.3151%2023.882-9.3151%2032.999%200%209.0508%209.249%209.0508%2024.279%200%2033.594zm44.924-171.17c3.3363%2012.717-4.063%2025.732-16.549%2029.134-12.387%203.3693-25.204-4.129-28.54-16.846-3.3363-12.651%204.063-25.699%2016.483-29.101%2012.486-3.3363%2025.27%204.129%2028.606%2016.813z'%20p-id='6185'/%3e%3cg%20transform='translate(.47897%2028.177)'%3e%3cpath%20d='m210.09%20197.4%2021.669%20142.01%2036.6-5.6816-21.669-142.04z'%20p-id='6186'/%3e%3cpath%20d='m398.01%20863.79%2023.222%2029.432%20109.24-89.484-23.222-29.432z'%20p-id='6187'/%3e%3cpath%20d='m777.55%20308.98-13.411%2035.179%20129.98%2051.266%2013.411-35.179z'%20p-id='6188'/%3e%3cpath%20d='m115.51%20606.64%20131.3%2051.795%2013.411-35.179-131.3-51.795z'%20p-id='6189'/%3e%3cpath%20d='m627.61%20103.85-23.189-29.432-105.77%2086.644%2023.189%2029.399z'%20p-id='6190'/%3e%3cpath%20d='m756.93%20636.2%2021.273%20139.92%2036.699-5.7806-21.306-139.96z'%20p-id='6191'/%3e%3c/g%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-reload-lefts{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1660395291415'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7049'%20width='200'%20height='200'%3e%3cpath%20d='M266.666667%20523.093333a241.152%20241.152%200%200%201%2041.386666-136.106666%2032%2032%200%200%201%2053.333334%2035.413333%20181.504%20181.504%200%201%200%20151.04-80.64%20214.826667%20214.826667%200%200%200-61.866667%208.96%2032.384%2032.384%200%200%201-40.106667-21.333333%2032.042667%2032.042667%200%200%201%2021.333334-40.106667%20269.44%20269.44%200%200%201%2080.64-11.946667%20245.546667%20245.546667%200%201%201-245.76%20245.76z'%20fill='%23292D32'%20p-id='7050'%3e%3c/path%3e%3cpath%20d='M389.504%20350.72a32.256%2032.256%200%200%201-2.986667-45.226667l71.253334-81.493333a31.872%2031.872%200%200%201%2045.226666-2.986667%2032.256%2032.256%200%200%201%202.986667%2045.226667l-71.253333%2081.493333a34.389333%2034.389333%200%200%201-24.32%2010.666667%2032.469333%2032.469333%200%200%201-20.906667-7.68z'%20fill='%23292D32'%20p-id='7051'%3e%3c/path%3e%3cpath%20d='M474.453333%20413.013333L391.68%20352.426667a32.085333%2032.085333%200%200%201%2038.101333-51.626667l82.773334%2060.586667a31.957333%2031.957333%200%200%201%206.826666%2044.8%2032.725333%2032.725333%200%200%201-44.8%206.826666z'%20fill='%23292D32'%20p-id='7052'%3e%3c/path%3e%3cpath%20d='M640%20970.666667H384c-231.765333%200-330.666667-98.901333-330.666667-330.666667V384c0-231.765333%2098.901333-330.666667%20330.666667-330.666667h256c231.765333%200%20330.666667%2098.901333%20330.666667%20330.666667v256c0%20231.765333-98.901333%20330.666667-330.666667%20330.666667z%20m-256-853.333334C187.136%20117.333333%20117.333333%20187.136%20117.333333%20384v256c0%20196.864%2069.802667%20266.666667%20266.666667%20266.666667h256c196.864%200%20266.666667-69.802667%20266.666667-266.666667V384c0-196.864-69.76-266.666667-266.666667-266.666667z'%20fill='%23292D32'%20p-id='7053'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1660395291415'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7049'%20width='200'%20height='200'%3e%3cpath%20d='M266.666667%20523.093333a241.152%20241.152%200%200%201%2041.386666-136.106666%2032%2032%200%200%201%2053.333334%2035.413333%20181.504%20181.504%200%201%200%20151.04-80.64%20214.826667%20214.826667%200%200%200-61.866667%208.96%2032.384%2032.384%200%200%201-40.106667-21.333333%2032.042667%2032.042667%200%200%201%2021.333334-40.106667%20269.44%20269.44%200%200%201%2080.64-11.946667%20245.546667%20245.546667%200%201%201-245.76%20245.76z'%20fill='%23292D32'%20p-id='7050'%3e%3c/path%3e%3cpath%20d='M389.504%20350.72a32.256%2032.256%200%200%201-2.986667-45.226667l71.253334-81.493333a31.872%2031.872%200%200%201%2045.226666-2.986667%2032.256%2032.256%200%200%201%202.986667%2045.226667l-71.253333%2081.493333a34.389333%2034.389333%200%200%201-24.32%2010.666667%2032.469333%2032.469333%200%200%201-20.906667-7.68z'%20fill='%23292D32'%20p-id='7051'%3e%3c/path%3e%3cpath%20d='M474.453333%20413.013333L391.68%20352.426667a32.085333%2032.085333%200%200%201%2038.101333-51.626667l82.773334%2060.586667a31.957333%2031.957333%200%200%201%206.826666%2044.8%2032.725333%2032.725333%200%200%201-44.8%206.826666z'%20fill='%23292D32'%20p-id='7052'%3e%3c/path%3e%3cpath%20d='M640%20970.666667H384c-231.765333%200-330.666667-98.901333-330.666667-330.666667V384c0-231.765333%2098.901333-330.666667%20330.666667-330.666667h256c231.765333%200%20330.666667%2098.901333%20330.666667%20330.666667v256c0%20231.765333-98.901333%20330.666667-330.666667%20330.666667z%20m-256-853.333334C187.136%20117.333333%20117.333333%20187.136%20117.333333%20384v256c0%20196.864%2069.802667%20266.666667%20266.666667%20266.666667h256c196.864%200%20266.666667-69.802667%20266.666667-266.666667V384c0-196.864-69.76-266.666667-266.666667-266.666667z'%20fill='%23292D32'%20p-id='7053'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-reload-rights{-webkit-mask:url("data:image/svg+xml,%3csvg%20t='1660395328256'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7284'%20width='200'%20height='200'%3e%3cpath%20d='M640%20970.666667H384c-231.765333%200-330.666667-98.901333-330.666667-330.666667V384c0-231.765333%2098.901333-330.666667%20330.666667-330.666667h256c231.765333%200%20330.666667%2098.901333%20330.666667%20330.666667v256c0%20231.765333-98.901333%20330.666667-330.666667%20330.666667z%20m-256-853.333334C187.136%20117.333333%20117.333333%20187.136%20117.333333%20384v256c0%20196.864%2069.802667%20266.666667%20266.666667%20266.666667h256c196.864%200%20266.666667-69.802667%20266.666667-266.666667V384c0-196.864-69.76-266.666667-266.666667-266.666667z'%20fill='%23292D32'%20p-id='7285'%3e%3c/path%3e%3cpath%20d='M266.666667%20523.093333A245.632%20245.632%200%200%201%20512%20277.76a271.445333%20271.445333%200%200%201%2080.64%2011.946667%2032.128%2032.128%200%200%201-18.773333%2061.44A212.736%20212.736%200%200%200%20512%20342.186667a180.821333%20180.821333%200%201%200%20151.04%2080.64%2032%2032%200%200%201%2053.333333-35.413334%20245.333333%20245.333333%200%201%201-449.706666%20135.68z'%20fill='%23292D32'%20p-id='7286'%3e%3c/path%3e%3cpath%20d='M589.269333%20347.306667l-71.253333-81.493334a32.042667%2032.042667%200%200%201%2048.213333-42.24l71.253334%2081.493334a32.256%2032.256%200%200%201-2.986667%2045.226666%2029.866667%2029.866667%200%200%201-20.906667%208.106667%2032.512%2032.512%200%200%201-24.32-11.093333z'%20fill='%23292D32'%20p-id='7287'%3e%3c/path%3e%3cpath%20d='M504.746667%20405.717333a32.469333%2032.469333%200%200%201%206.741333-44.8l82.858667-60.586666a32.469333%2032.469333%200%200%201%2044.8%206.741333%2032.469333%2032.469333%200%200%201-6.826667%2044.8l-82.773333%2060.586667a31.189333%2031.189333%200%200%201-18.773334%206.4%2032.725333%2032.725333%200%200%201-26.026666-13.141334z'%20fill='%23292D32'%20p-id='7288'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20t='1660395328256'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7284'%20width='200'%20height='200'%3e%3cpath%20d='M640%20970.666667H384c-231.765333%200-330.666667-98.901333-330.666667-330.666667V384c0-231.765333%2098.901333-330.666667%20330.666667-330.666667h256c231.765333%200%20330.666667%2098.901333%20330.666667%20330.666667v256c0%20231.765333-98.901333%20330.666667-330.666667%20330.666667z%20m-256-853.333334C187.136%20117.333333%20117.333333%20187.136%20117.333333%20384v256c0%20196.864%2069.802667%20266.666667%20266.666667%20266.666667h256c196.864%200%20266.666667-69.802667%20266.666667-266.666667V384c0-196.864-69.76-266.666667-266.666667-266.666667z'%20fill='%23292D32'%20p-id='7285'%3e%3c/path%3e%3cpath%20d='M266.666667%20523.093333A245.632%20245.632%200%200%201%20512%20277.76a271.445333%20271.445333%200%200%201%2080.64%2011.946667%2032.128%2032.128%200%200%201-18.773333%2061.44A212.736%20212.736%200%200%200%20512%20342.186667a180.821333%20180.821333%200%201%200%20151.04%2080.64%2032%2032%200%200%201%2053.333333-35.413334%20245.333333%20245.333333%200%201%201-449.706666%20135.68z'%20fill='%23292D32'%20p-id='7286'%3e%3c/path%3e%3cpath%20d='M589.269333%20347.306667l-71.253333-81.493334a32.042667%2032.042667%200%200%201%2048.213333-42.24l71.253334%2081.493334a32.256%2032.256%200%200%201-2.986667%2045.226666%2029.866667%2029.866667%200%200%201-20.906667%208.106667%2032.512%2032.512%200%200%201-24.32-11.093333z'%20fill='%23292D32'%20p-id='7287'%3e%3c/path%3e%3cpath%20d='M504.746667%20405.717333a32.469333%2032.469333%200%200%201%206.741333-44.8l82.858667-60.586666a32.469333%2032.469333%200%200%201%2044.8%206.741333%2032.469333%2032.469333%200%200%201-6.826667%2044.8l-82.773333%2060.586667a31.189333%2031.189333%200%200%201-18.773334%206.4%2032.725333%2032.725333%200%200%201-26.026666-13.141334z'%20fill='%23292D32'%20p-id='7288'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-reload-all{-webkit-mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='2129'%20t='1660034441839'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m861.68%20670.07c-42.264%2093.421-118.37%20164.79-214.29%20200.94a383.74%20383.74%200%200%201-135.56%2024.888c-53.832%200-107.52-11.472-158.03-34.332a384.83%20384.83%200%200%201-85.645-53.484c2.088%2019.248%202.688%2039.252-0.144%2056.82a24.072%2024.072%200%200%201-47.52-7.6801c5.868-36.372-8.784-95.785-14.928-115.62a23.88%2023.88%200%200%201%200.144-14.172c0.312-1.128%200.744-2.232%201.236-3.312%200.168-0.34803%200.264-0.72003%200.444-1.056%201.548-3.072%203.708-5.88%206.6-8.148a24.024%2024.024%200%200%201%2024.888-2.808c23.496%205.028%2064.98%2010.98%20108.61%203.264a24.069%2024.069%200%201%201%208.4001%2047.4%20306.12%20306.12%200%200%201-61.848%204.2601%20336.12%20336.12%200%200%200%2079.597%2050.688c81.673%2036.948%20172.87%2039.888%20256.78%208.2561%2083.893-31.632%20150.44-94.033%20187.41-175.73%2036.948-81.673%2039.9-172.85%208.28-256.77a24.072%2024.072%200%201%201%2045.036-16.968c36.144%2095.941%2032.784%20200.2-9.4561%20293.56zm-99.589-269.61a16.044%2016.044%200%200%201%2020.664%209.36c27.252%2072.348%2024.72%20150.95-7.1161%20221.34-47.652%20105.3-153.3%20170.07-264.45%20170.07-26.556%200-53.424-3.6961-79.884-11.412a16.043%2016.043%200%201%201%208.9761-30.804c122.05%2035.556%20253.62-25.08%20306.11-141.08%2028.332-62.58%2030.564-132.47%206.336-196.79a16.044%2016.044%200%200%201%209.3601-20.676zm-500.14%20222.9a16.068%2016.068%200%200%201-20.676-9.3601c-27.3-72.312-24.78-150.94%207.08-221.37%2058.896-130.15%20201.54-197.47%20339.17-160.11a16.044%2016.044%200%200%201-8.4121%2030.96c-122.3-33.204-249.17%2026.652-301.53%20142.38a255.59%20255.59%200%200%200-6.3%20196.81%2016.056%2016.056%200%200%201-9.336%2020.676zm554.39-332.09c-0.108%200.552-0.204%201.092-0.348%201.644a23.112%2023.112%200%200%201-1.74%204.704c-0.084%200.192-0.132%200.372-0.22807%200.54-0.876%201.68-2.016%203.228-3.3%204.68-0.12%200.132-0.192%200.288-0.312%200.432-0.372%200.396-0.816%200.684-1.212%201.068-0.468%200.432-0.876%200.924-1.38%201.332-0.192%200.168-0.432%200.276-0.636%200.42-0.612%200.456-1.248%200.84-1.884%201.224-0.792%200.48-1.572%200.96-2.4%201.344-0.576%200.264-1.1761%200.46802-1.7761%200.70802a33.924%2033.924%200%200%201-2.784%200.876c-0.612%200.144-1.212%200.228-1.836%200.324-0.96%200.156-1.908%200.276-2.892%200.3-0.288%200.0125-0.54%200.084-0.828%200.084-0.324%200-0.648-0.096-0.984-0.108a22.14%2022.14%200%200%201-3.4321-0.408c-0.336-0.048-0.684-0.024-1.044-0.108-22.296-5.184-66.696-12.648-113.51-4.356a24.072%2024.072%200%200%201-8.388-47.4%20305.64%20305.64%200%200%201%2061.8-4.284%20334.87%20334.87%200%200%200-76.896-48.24c-168.6-76.26-367.87-1.14-444.16%20167.49-36.96%2081.709-39.9%20172.91-8.256%20256.81a24.062%2024.062%200%201%201-45.024%2016.992c-36.18-95.929-32.832-200.22%209.42-293.64%2087.241-192.81%20315.06-278.71%20507.88-191.5a382.86%20382.86%200%200%201%2083.004%2051.144c-2.1-19.272-2.712-39.312%200.144-56.892a24.063%2024.063%200%201%201%2047.508%207.692c-5.916%2036.492%208.7721%2095.809%2014.904%20115.6l0.048%200.22801c0.552%201.848%200.852%203.708%200.948%205.604%200.036%200.48-0.0127%200.936-0.0127%201.416-0.0127%201.44-0.132%202.868-0.396%204.284z'%20stroke-width='.7501'%20p-id='2130'/%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='2129'%20t='1660034441839'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m861.68%20670.07c-42.264%2093.421-118.37%20164.79-214.29%20200.94a383.74%20383.74%200%200%201-135.56%2024.888c-53.832%200-107.52-11.472-158.03-34.332a384.83%20384.83%200%200%201-85.645-53.484c2.088%2019.248%202.688%2039.252-0.144%2056.82a24.072%2024.072%200%200%201-47.52-7.6801c5.868-36.372-8.784-95.785-14.928-115.62a23.88%2023.88%200%200%201%200.144-14.172c0.312-1.128%200.744-2.232%201.236-3.312%200.168-0.34803%200.264-0.72003%200.444-1.056%201.548-3.072%203.708-5.88%206.6-8.148a24.024%2024.024%200%200%201%2024.888-2.808c23.496%205.028%2064.98%2010.98%20108.61%203.264a24.069%2024.069%200%201%201%208.4001%2047.4%20306.12%20306.12%200%200%201-61.848%204.2601%20336.12%20336.12%200%200%200%2079.597%2050.688c81.673%2036.948%20172.87%2039.888%20256.78%208.2561%2083.893-31.632%20150.44-94.033%20187.41-175.73%2036.948-81.673%2039.9-172.85%208.28-256.77a24.072%2024.072%200%201%201%2045.036-16.968c36.144%2095.941%2032.784%20200.2-9.4561%20293.56zm-99.589-269.61a16.044%2016.044%200%200%201%2020.664%209.36c27.252%2072.348%2024.72%20150.95-7.1161%20221.34-47.652%20105.3-153.3%20170.07-264.45%20170.07-26.556%200-53.424-3.6961-79.884-11.412a16.043%2016.043%200%201%201%208.9761-30.804c122.05%2035.556%20253.62-25.08%20306.11-141.08%2028.332-62.58%2030.564-132.47%206.336-196.79a16.044%2016.044%200%200%201%209.3601-20.676zm-500.14%20222.9a16.068%2016.068%200%200%201-20.676-9.3601c-27.3-72.312-24.78-150.94%207.08-221.37%2058.896-130.15%20201.54-197.47%20339.17-160.11a16.044%2016.044%200%200%201-8.4121%2030.96c-122.3-33.204-249.17%2026.652-301.53%20142.38a255.59%20255.59%200%200%200-6.3%20196.81%2016.056%2016.056%200%200%201-9.336%2020.676zm554.39-332.09c-0.108%200.552-0.204%201.092-0.348%201.644a23.112%2023.112%200%200%201-1.74%204.704c-0.084%200.192-0.132%200.372-0.22807%200.54-0.876%201.68-2.016%203.228-3.3%204.68-0.12%200.132-0.192%200.288-0.312%200.432-0.372%200.396-0.816%200.684-1.212%201.068-0.468%200.432-0.876%200.924-1.38%201.332-0.192%200.168-0.432%200.276-0.636%200.42-0.612%200.456-1.248%200.84-1.884%201.224-0.792%200.48-1.572%200.96-2.4%201.344-0.576%200.264-1.1761%200.46802-1.7761%200.70802a33.924%2033.924%200%200%201-2.784%200.876c-0.612%200.144-1.212%200.228-1.836%200.324-0.96%200.156-1.908%200.276-2.892%200.3-0.288%200.0125-0.54%200.084-0.828%200.084-0.324%200-0.648-0.096-0.984-0.108a22.14%2022.14%200%200%201-3.4321-0.408c-0.336-0.048-0.684-0.024-1.044-0.108-22.296-5.184-66.696-12.648-113.51-4.356a24.072%2024.072%200%200%201-8.388-47.4%20305.64%20305.64%200%200%201%2061.8-4.284%20334.87%20334.87%200%200%200-76.896-48.24c-168.6-76.26-367.87-1.14-444.16%20167.49-36.96%2081.709-39.9%20172.91-8.256%20256.81a24.062%2024.062%200%201%201-45.024%2016.992c-36.18-95.929-32.832-200.22%209.42-293.64%2087.241-192.81%20315.06-278.71%20507.88-191.5a382.86%20382.86%200%200%201%2083.004%2051.144c-2.1-19.272-2.712-39.312%200.144-56.892a24.063%2024.063%200%201%201%2047.508%207.692c-5.916%2036.492%208.7721%2095.809%2014.904%20115.6l0.048%200.22801c0.552%201.848%200.852%203.708%200.948%205.604%200.036%200.48-0.0127%200.936-0.0127%201.416-0.0127%201.44-0.132%202.868-0.396%204.284z'%20stroke-width='.7501'%20p-id='2130'/%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-left-arrow{-webkit-mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850602902'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8065'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M635.733333%20490.666667l174.933334%20174.933333-64%2059.733333-234.666667-234.666666L746.666667%20256%20810.666667%20315.733333l-174.933334%20174.933334z%20m-260.266666%200l174.933333%20174.933333-59.733333%2059.733333L256%20490.666667%20490.666667%20256l59.733333%2059.733333-174.933333%20174.933334z'%20fill='%23444444'%20p-id='8066'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850602902'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8065'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M635.733333%20490.666667l174.933334%20174.933333-64%2059.733333-234.666667-234.666666L746.666667%20256%20810.666667%20315.733333l-174.933334%20174.933334z%20m-260.266666%200l174.933333%20174.933333-59.733333%2059.733333L256%20490.666667%20490.666667%20256l59.733333%2059.733333-174.933333%20174.933334z'%20fill='%23444444'%20p-id='8066'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-right-arrow{-webkit-mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850594120'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7913'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M430.933333%20490.666667L256%20665.6%20315.733333%20725.333333l234.666667-234.666666L315.733333%20256%20256%20315.733333l174.933333%20174.933334z%20m256%200L512%20665.6l59.733333%2059.733333%20234.666667-234.666666L576%20256%20512%20315.733333l174.933333%20174.933334z'%20fill='%23444444'%20p-id='7914'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1659850594120'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7913'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M430.933333%20490.666667L256%20665.6%20315.733333%20725.333333l234.666667-234.666666L315.733333%20256%20256%20315.733333l174.933333%20174.933334z%20m256%200L512%20665.6l59.733333%2059.733333%20234.666667-234.666666L576%20256%20512%20315.733333l174.933333%20174.933334z'%20fill='%23444444'%20p-id='7914'%3e%3c/path%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab__icon-open{-webkit-mask:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201024%201024'%20width='200'%20height='200'%3e%3cpath%20d='M640%20384v-85.333H213.333v597.334h597.334V384H640zm0-128h128v128h128V256H128v640h85.333V384H640V256z'%20fill='%23444444'/%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201024%201024'%20width='200'%20height='200'%3e%3cpath%20d='M640%20384v-85.333H213.333v597.334h597.334V384H640zm0-128h128v128h128V256H128v640h85.333V384H640V256z'%20fill='%23444444'/%3e%3c/svg%3e") 50%/contain no-repeat}.stack-tab-zoom-enter-active,.stack-tab-zoom-leave-active{transition:all .3s ease-in-out}.stack-tab-zoom-enter-from,.stack-tab-zoom-leave-to{opacity:0;transform:scale(0)}.stack-tab-swap-move,.stack-tab-swap-enter-active,.stack-tab-swap-leave-active{transition:all .3s ease-in-out}.stack-tab-swap-enter-from,.stack-tab-swap-leave-to{opacity:0}.stack-tab-swap-enter-from{transform:translate(30px)}.stack-tab-swap-leave-to{transform:translate(-30px)}.stack-tab-swap-back-enter-active,.stack-tab-swap-back-leave-active{transition:all .3s ease-in-out}.stack-tab-swap-back-enter-from,.stack-tab-swap-back-leave-to{opacity:0}.stack-tab-swap-back-enter-from{transform:translate(-30px)}.stack-tab-swap-back-leave-to{transform:translate(30px)}.stack-tab-loading-mask{opacity:.8;background:#fff;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.stack-tab-loading--spin{z-index:auto;background-color:#007bff;align-self:center;width:60px;height:60px;animation:1.5s linear infinite turn;-webkit-mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='6183'%20t='1660269579969'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cstyle%20type='text/css'/%3e%3c/defs%3e%3cpath%20d='m512%2015.756c-273.37%200-494.99%20222.17-494.99%20496.24s221.61%20496.24%20494.99%20496.24%20494.99-222.17%20494.99-496.24c0-274.07-221.58-496.24-494.99-496.24zm0%20942.84c-246.06%200-445.51-199.94-445.51-446.63%200-246.68%20199.45-446.63%20445.51-446.63s445.51%20199.94%20445.51%20446.63-199.45%20446.63-445.51%20446.63z'%20p-id='6184'/%3e%3cpath%20d='m512.05%20308.72c-51.167%200-102.23%2019.852-141.25%2059.557-38.945%2039.672-58.5%2091.731-58.5%20143.72s19.522%20104.05%2058.5%20143.72c39.011%2039.705%2090.079%2059.557%20141.25%2059.557%2051.101%200%20102.17-19.852%20141.18-59.557%2038.945-39.672%2058.467-91.731%2058.467-143.72s-19.522-104.05-58.467-143.72c-39.011-39.705-90.079-59.557-141.18-59.557zm14.336%2047.599c3.3363-12.618%2016.153-20.183%2028.606-16.78%2012.486%203.4023%2019.819%2016.417%2016.483%2029.068-3.3363%2012.684-16.087%2020.249-28.54%2016.846-12.486-3.4023-19.885-16.417-16.549-29.134zm-155.85%20217.05c-12.387%203.4354-25.204-4.063-28.54-16.747-3.3362-12.684%203.9969-25.732%2016.483-29.134%2012.486-3.3693%2025.27%204.129%2028.606%2016.846%203.3362%2012.651-4.063%2025.633-16.549%2029.035zm16.417-154.33c-9.1169-9.2821-9.1169-24.312%200-33.594%209.1499-9.2821%2023.882-9.2821%2032.999%200%209.0839%209.2821%209.0839%2024.312%200%2033.594-9.1169%209.3151-23.882%209.3151-32.999%200zm106.69%20245.99c-3.3363%2012.618-16.153%2020.183-28.54%2016.78-12.486-3.4023-19.885-16.417-16.549-29.068%203.3363-12.684%2016.153-20.249%2028.606-16.846%2012.42%203.4023%2019.819%2016.417%2016.483%2029.134zm-52.224-84.463c-37.888-38.648-37.888-101.14%200-139.73%2037.888-38.549%2099.361-38.549%20137.25%200%2037.888%2038.582%2037.888%20101.11%200%20139.73-37.888%2038.549-99.361%2038.549-137.25%200zm191.75%2055.329c-9.1499%209.249-23.948%209.249-32.999%200-9.1169-9.2821-9.1169-24.345%200-33.594%209.0839-9.3151%2023.882-9.3151%2032.999%200%209.0508%209.249%209.0508%2024.279%200%2033.594zm44.924-171.17c3.3363%2012.717-4.063%2025.732-16.549%2029.134-12.387%203.3693-25.204-4.129-28.54-16.846-3.3363-12.651%204.063-25.699%2016.483-29.101%2012.486-3.3363%2025.27%204.129%2028.606%2016.813z'%20p-id='6185'/%3e%3cg%20transform='translate(.47897%2028.177)'%3e%3cpath%20d='m210.09%20197.4%2021.669%20142.01%2036.6-5.6816-21.669-142.04z'%20p-id='6186'/%3e%3cpath%20d='m398.01%20863.79%2023.222%2029.432%20109.24-89.484-23.222-29.432z'%20p-id='6187'/%3e%3cpath%20d='m777.55%20308.98-13.411%2035.179%20129.98%2051.266%2013.411-35.179z'%20p-id='6188'/%3e%3cpath%20d='m115.51%20606.64%20131.3%2051.795%2013.411-35.179-131.3-51.795z'%20p-id='6189'/%3e%3cpath%20d='m627.61%20103.85-23.189-29.432-105.77%2086.644%2023.189%2029.399z'%20p-id='6190'/%3e%3cpath%20d='m756.93%20636.2%2021.273%20139.92%2036.699-5.7806-21.306-139.96z'%20p-id='6191'/%3e%3c/g%3e%3c/svg%3e") 0 0/contain;mask:url("data:image/svg+xml,%3csvg%20class='icon'%20width='200'%20height='200'%20p-id='6183'%20t='1660269579969'%20version='1.1'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cstyle%20type='text/css'/%3e%3c/defs%3e%3cpath%20d='m512%2015.756c-273.37%200-494.99%20222.17-494.99%20496.24s221.61%20496.24%20494.99%20496.24%20494.99-222.17%20494.99-496.24c0-274.07-221.58-496.24-494.99-496.24zm0%20942.84c-246.06%200-445.51-199.94-445.51-446.63%200-246.68%20199.45-446.63%20445.51-446.63s445.51%20199.94%20445.51%20446.63-199.45%20446.63-445.51%20446.63z'%20p-id='6184'/%3e%3cpath%20d='m512.05%20308.72c-51.167%200-102.23%2019.852-141.25%2059.557-38.945%2039.672-58.5%2091.731-58.5%20143.72s19.522%20104.05%2058.5%20143.72c39.011%2039.705%2090.079%2059.557%20141.25%2059.557%2051.101%200%20102.17-19.852%20141.18-59.557%2038.945-39.672%2058.467-91.731%2058.467-143.72s-19.522-104.05-58.467-143.72c-39.011-39.705-90.079-59.557-141.18-59.557zm14.336%2047.599c3.3363-12.618%2016.153-20.183%2028.606-16.78%2012.486%203.4023%2019.819%2016.417%2016.483%2029.068-3.3363%2012.684-16.087%2020.249-28.54%2016.846-12.486-3.4023-19.885-16.417-16.549-29.134zm-155.85%20217.05c-12.387%203.4354-25.204-4.063-28.54-16.747-3.3362-12.684%203.9969-25.732%2016.483-29.134%2012.486-3.3693%2025.27%204.129%2028.606%2016.846%203.3362%2012.651-4.063%2025.633-16.549%2029.035zm16.417-154.33c-9.1169-9.2821-9.1169-24.312%200-33.594%209.1499-9.2821%2023.882-9.2821%2032.999%200%209.0839%209.2821%209.0839%2024.312%200%2033.594-9.1169%209.3151-23.882%209.3151-32.999%200zm106.69%20245.99c-3.3363%2012.618-16.153%2020.183-28.54%2016.78-12.486-3.4023-19.885-16.417-16.549-29.068%203.3363-12.684%2016.153-20.249%2028.606-16.846%2012.42%203.4023%2019.819%2016.417%2016.483%2029.134zm-52.224-84.463c-37.888-38.648-37.888-101.14%200-139.73%2037.888-38.549%2099.361-38.549%20137.25%200%2037.888%2038.582%2037.888%20101.11%200%20139.73-37.888%2038.549-99.361%2038.549-137.25%200zm191.75%2055.329c-9.1499%209.249-23.948%209.249-32.999%200-9.1169-9.2821-9.1169-24.345%200-33.594%209.0839-9.3151%2023.882-9.3151%2032.999%200%209.0508%209.249%209.0508%2024.279%200%2033.594zm44.924-171.17c3.3363%2012.717-4.063%2025.732-16.549%2029.134-12.387%203.3693-25.204-4.129-28.54-16.846-3.3363-12.651%204.063-25.699%2016.483-29.101%2012.486-3.3363%2025.27%204.129%2028.606%2016.813z'%20p-id='6185'/%3e%3cg%20transform='translate(.47897%2028.177)'%3e%3cpath%20d='m210.09%20197.4%2021.669%20142.01%2036.6-5.6816-21.669-142.04z'%20p-id='6186'/%3e%3cpath%20d='m398.01%20863.79%2023.222%2029.432%20109.24-89.484-23.222-29.432z'%20p-id='6187'/%3e%3cpath%20d='m777.55%20308.98-13.411%2035.179%20129.98%2051.266%2013.411-35.179z'%20p-id='6188'/%3e%3cpath%20d='m115.51%20606.64%20131.3%2051.795%2013.411-35.179-131.3-51.795z'%20p-id='6189'/%3e%3cpath%20d='m627.61%20103.85-23.189-29.432-105.77%2086.644%2023.189%2029.399z'%20p-id='6190'/%3e%3cpath%20d='m756.93%20636.2%2021.273%20139.92%2036.699-5.7806-21.306-139.96z'%20p-id='6191'/%3e%3c/g%3e%3c/svg%3e") 0 0/contain}@keyframes turn{0%{transform:rotate(0)}25%{transform:rotate(-90deg)}50%{transform:rotate(-180deg)}75%{transform:rotate(-270deg)}to{transform:rotate(-360deg)}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as e,KeepAlive as t,Transition as a,TransitionGroup as r,cloneVNode as o,computed as n,createBlock as l,createCommentVNode as s,createElementBlock as i,createElementVNode as c,createVNode as u,defineComponent as d,getCurrentInstance as f,hasInjectionContext as b,inject as m,mergeProps as p,nextTick as v,normalizeClass as h,normalizeStyle as g,onActivated as y,onBeforeMount as k,onBeforeUnmount as _,onDeactivated as T,onMounted as w,onUnmounted as S,openBlock as I,provide as A,reactive as x,readonly as R,ref as C,renderList as P,renderSlot as E,resolveComponent as L,resolveDynamicComponent as M,shallowRef as O,toDisplayString as V,toRaw as W,triggerRef as B,unref as q,vShow as F,watch as j,withCtx as D,withDirectives as N,withModifiers as K}from"vue";import{isNavigationFailure as $,useRoute as z,useRouter as G}from"vue-router";var U=Object.defineProperty,H=(e,t)=>{let a={};for(var r in e)U(a,r,{get:e[r],enumerable:!0});return t||U(a,Symbol.toStringTag,{value:"Module"}),a},X=/* @__PURE__ */H({default:()=>J}),J={VueStackTab:{close:"close",closeLeft:"close left",closeRight:"close right",closeOthers:"close others",closeAll:"close all",reload:"reload",reloadAll:"reload all",maximum:"maximum",restore:"restore",undefined:"undefined",loading:"loading",iframeTitle:"Embedded tab page",iframeLoadTimeout:"IFrame loading timed out",retry:"Retry",openInNewWindow:"Open in new window",scrollLeft:"Scroll left",scrollRight:"Scroll right"}},Y=/* @__PURE__ */H({default:()=>Q}),Q={VueStackTab:{close:"关闭",closeLeft:"关闭左侧",closeRight:"关闭右侧",closeOthers:"关闭其他",closeAll:"关闭所有",reload:"刷新",reloadAll:"刷新所有",maximum:"最大化",restore:"还原",undefined:"未命名",loading:"加载中",iframeTitle:"标签页内嵌页面",iframeLoadTimeout:"iframe 加载超时",retry:"重试",openInNewWindow:"在新窗口打开",scrollLeft:"向左滚动",scrollRight:"向右滚动"}},Z=["__proto__","prototype","constructor"];function ee(e){const t=e.split("."),a=[];for(let r=0;r<t.length;r++){let e=t[r];for(;"\\"===e[e.length-1]&&void 0!==t[r+1];)e=e.slice(0,-1)+".",e+=t[++r];a.push(e)}return a.some(e=>-1!==Z.indexOf(e))?[]:a}function te(e,t){if(!function(e){const t=typeof e;return null!==e&&("object"===t||"function"===t)}(e))return"";const a=ee(t);if(0===a.length)return"";let r=Object.assign({},e);for(let o=0;o<a.length;o++){if("string"==typeof r[a[o]])return r[a[o]];if(r=r[a[o]],null==r){if(o!==a.length-1)return"";break}}return""}function ae(e,t){return Object.keys(t).forEach(a=>{t[a]instanceof Object&&a in e&&(t[a]={...t[a],...ae(e[a],t[a])})}),{...e||{},...t}}var re="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,oe=/* @__PURE__ */(e=>re?Symbol(e):"_vt_"+e)("i18n");function ne(){return m(oe)}function le(e){const t=Object.assign({locale:"en",fallbackLocale:"en",messages:{}},e),a=C(t.locale),r=x({});return Object.entries(t.messages).forEach(([e,t])=>{r[e]=t}),{t(e,o){if(!e)return"";let n=te(r["string"==typeof o&&o?o:a.value],e)||te(r[t.fallbackLocale],e);if(o&&"string"!=typeof o){const e=function(e,t){if(Array.isArray(t)){const a={},r=[...e.matchAll(/{(.+?)}/g)];return r&&r.forEach((e,r)=>{t[r]&&(a[e[1]]=t[r])}),a}return t}(n,o);l=e,(Array.isArray(l)?l.length:Object.keys(l).length)&&(n=function(e,t){for(const a in t)e=e.replace(`{${a}}`,String(t[a]));return e}(n,e))}var l;return n||e},current:R(a),options:R(e||{}),install(e){e.config.globalProperties.$t=this.t,e.provide(oe,this)},changeLocale(e){a.value=e},setLocaleMessage(e,t){r[e]=ae(W(r[e]||{}),t)},getLocaleMessage:e=>r[e]||{}}}var se=new Set(["__proto__","constructor","prototype"]),ie=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),ce=(e,t)=>{const a={...e};for(const[r,o]of Object.entries(t)){if(se.has(r))continue;const e=a[r];a[r]=ie(e)&&ie(o)?ce(e,o):o}return a},ue=()=>{const e=/* @__PURE__ */Object.assign({"./lang/en.ts":X,"./lang/zh-CN.ts":Y});return{getI18n:t=>{const a=((e,t)=>{const a={...e};if(!t)return a;for(const r of t)r.messages&&!se.has(r.locale)&&(a[r.locale]=ce(a[r.locale]??{},r.messages));return a})((()=>{const t={};return function(e,t){for(const a in e){const r=e[a];if(r?.default){const e=a.substring(a.lastIndexOf("/")+1,a.lastIndexOf(".")),o=t[e];t[e]=o?{...o,...r.default}:r.default}}}(e,t),t})(),t);return le({locale:t?.[0]?.locale??"zh-CN",fallbackLocale:"en",messages:a})}}},de=({wrap:e,left:t=0,top:a=0,smooth:r=!0})=>{e&&(e.scrollTo?e.scrollTo({left:t,top:a,behavior:r?"smooth":"auto"}):(e.scrollLeft=t,e.scrollTop=a))};!function(){let e=null}();var fe=(e=".stack-tab__container *")=>{const t=document.querySelectorAll(e);let a=0;for(let r=0;r<t.length;r++){const e=+window.getComputedStyle(t[r]).zIndex||0;e<89999&&e>a&&(a=e)}return a+1},be=new Set(["about:blank"]),me=new Set(["__tab","__src"]);function pe(e){const t=e.trim();if(!t)return!0;if((e=>{for(const t of e){const e=t.charCodeAt(0);if(e<=31||127===e||e>=128&&e<=159||8203===e||8204===e||8205===e||8288===e||65279===e||e>=8234&&e<=8238||e>=8294&&e<=8297)return!0}return!1})(t))return!1;if(be.has(t.toLowerCase()))return!0;if(t.toLowerCase().startsWith("about:"))return!1;try{const e=new URL(t,"undefined"!=typeof window?window.location.origin:"http://localhost");return"http:"===e.protocol||"https:"===e.protocol}catch{return!1}}function ve(e){return pe(e)?e:"about:blank"}function he(e){if("string"!=typeof e)return"about:blank";try{return ve(decodeURIComponent(e))}catch{return"about:blank"}}function ge(e){if(!e||!/^https?:\/\//i.test(e))return!1;try{const t="undefined"!=typeof window?window.location:{origin:"http://localhost"};return new URL(e,t.origin).origin!==t.origin}catch{return!0}}function ye(e){const[t="",a]=e.split("?");if(void 0===a)return{path:t,query:{}};const r=new URLSearchParams(a),o={};for(const[n,l]of r.entries()){const e=o[n];void 0!==e?o[n]=Array.isArray(e)?[...e,l]:[e,l]:o[n]=l}return{path:t,query:o}}function ke(e={}){const t={};for(const[a,r]of Object.entries(e))t[a]=Array.isArray(r)?[...r]:r;return t}function _e(e){return{...e,query:e.query?ke(e.query):void 0,_backParams:e._backParams?{...e._backParams}:void 0}}function Te(e={},t={}){const a=e=>{const t={};for(const[a,r]of Object.entries(e))me.has(a)||"_back"===a||(t[a]=Array.isArray(r)?r.map(e=>String(e??"")):String(r??""));return t},r=a(e),o=a(t),n=Object.keys(r),l=Object.keys(o);return n.length===l.length&&n.every(e=>{const t=r[e],a=o[e];return Array.isArray(t)||Array.isArray(a)?Array.isArray(t)&&Array.isArray(a)&&t.length===a.length&&t.every((e,t)=>e===a[t]):t===a})}function we(e={}){const t={};for(const[a,r]of Object.entries(e))me.has(a)||(t[a]=Array.isArray(r)?[...r]:r);return t}var Se=/* @__PURE__ */function(e){return e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e}({}),Ie=class{items;constructor(e){this.items=e?[...e]:[]}push(e){this.items.push(e)}pop(){return this.items.pop()}peek(){return this.items.length>0?this.items[this.items.length-1]:void 0}at(e){return this.items[e]}isEmpty(){return 0===this.items.length}size(){return this.items.length}clear(){this.items.length=0}list(){return[...this.items]}readonlyList(){return this.items}toJSON(){return this.list()}toString(){return this.items.toString()}};function Ae(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&(!(Symbol.iterator in e)&&(!(Symbol.toStringTag in e)||"[object Module]"===Object.prototype.toString.call(e)))}function xe(e,t,a=".",r){if(!Ae(t))return xe(e,{},a,r);const o={...t};for(const n of Object.keys(e)){if("__proto__"===n||"constructor"===n)continue;const t=e[n];null!=t&&(r&&r(o,n,t,a)||(Array.isArray(t)&&Array.isArray(o[n])?o[n]=[...t,...o[n]]:Ae(t)&&Ae(o[n])?o[n]=xe(t,o[n],(a?`${a}.`:"")+n.toString(),r):o[n]=t))}return o}function Re(e){return(...t)=>t.reduce((t,a)=>xe(t,a,"",e),{})}var Ce=Re(),Pe=(Re((e,t,a)=>{if(void 0!==e[t]&&"function"==typeof a)return e[t]=a(e[t]),!0}),Re((e,t,a)=>{if(Array.isArray(e[t])&&"function"==typeof a)return e[t]=a(e[t]),!0}),e=>"object"==typeof e&&null!==e&&!Array.isArray(e)),Ee={id:"",title:"",iframe:!1,closable:!0,refreshable:!0,iframeRefreshMode:"postMessage"},Le=e=>{const t={version:1,id:e.id,title:e.title,iframe:e.iframe,closable:e.closable,refreshable:e.refreshable,iframeRefreshMode:"reload"===e.iframeRefreshMode?"reload":"postMessage"};return a=JSON.stringify(t),encodeURIComponent(btoa(encodeURIComponent(a)));var a},Me=e=>{if(e.length>4096)return{...Ee};try{const a=(e=>decodeURIComponent(atob(decodeURIComponent(e))))(e);return a.length>2048?{...Ee}:a.trim().startsWith("{")?(t=JSON.parse(a),Pe(t)?{id:"string"==typeof t.id?t.id:Ee.id,title:"string"==typeof t.title?t.title:Ee.title,iframe:"boolean"==typeof t.iframe?t.iframe:Ee.iframe,closable:"boolean"==typeof t.closable?t.closable:Ee.closable,refreshable:"boolean"==typeof t.refreshable?t.refreshable:Ee.refreshable,iframeRefreshMode:"reload"===t.iframeRefreshMode?"reload":"postMessage"}:{...Ee}):(e=>{const t=e.split("|"),a="R"===t[5]?"reload":"postMessage";return{id:t[0]??"",title:t[1]??"",iframe:"Y"===t[2],closable:"Y"===t[3],refreshable:"Y"===t[4],iframeRefreshMode:a}})(a)}catch{return{...Ee}}var t},Oe=()=>crypto.randomUUID();var Ve=Symbol("stackTabsContext"),We=Symbol("stackTabsMaximum"),Be=null,qe=!1,Fe=/* @__PURE__ */new WeakSet,je=(e={})=>{const t={tabs:C([]),defaultTabs:C([]),caches:O([]),components:/* @__PURE__ */new Map,cacheIdsToEvict:/* @__PURE__ */new Set,tabIdsToEvict:/* @__PURE__ */new Set,refreshKey:C(0),scrollPositionsByPageId:/* @__PURE__ */new Map,isInitialized:C(!1),iframeRefreshKeys:C({}),maxTabCount:C(0),useGlobalScroll:C(!1),sessionPrefix:C("")};return{...t,maxTabCount:C(e.maxTabCount??t.maxTabCount.value),useGlobalScroll:C(e.useGlobalScroll??t.useGlobalScroll.value),sessionPrefix:C(e.sessionPrefix??t.sessionPrefix.value),iframePath:C(e.iframePath??""),eventBus:{all:a=a||/* @__PURE__ */new Map,on:function(e,t){var r=a.get(e);r?r.push(t):a.set(e,[t])},off:function(e,t){var r=a.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):a.set(e,[]))},emit:function(e,t){var r=a.get(e);r&&r.slice().map(function(e){e(t)}),(r=a.get("*"))&&r.slice().map(function(a){a(e,t)})}}};var a},De=()=>{const e=(b()?m(Ve,null):null)??Be;if(!e)throw new Error("VueStackTabs runtime context is not available. Render <VueStackTabs> before using vue-stack-tabs composables.");return e},Ne=/* @__PURE__ */function(e){return e.PAGE_LOADING="PAGE_LOADING",e.TAB_ACTIVE="TAB_ACTIVE",e.FORWARD="FORWARD",e.BACKWARD="BACKWARD",e.REFRESH_IFRAME_POSTMESSAGE="REFRESH_IFRAME_POSTMESSAGE",e}({}),Ke=Symbol("tabEmitter"),$e=()=>(b()?m(Ke,null):null)??De().eventBus,ze=["aria-label"],Ge=/* @__PURE__ */d({__name:"PageLoading",props:{tabId:{}},setup(e){const t=e,{t:a}=ne(),r=$e(),o=C(!1),n=e=>{e.tId===t.tabId&&(o.value=e.value)};return r.on(Ne.PAGE_LOADING,n),S(()=>{r.off(Ne.PAGE_LOADING,n)}),(e,t)=>o.value?(I(),i("div",{key:0,class:"stack-tab-loading-mask",role:"status","aria-live":"polite","aria-label":q(a)("VueStackTab.loading"),style:g({zIndex:q(fe)(".cache-page-wrapper *")})},[...t[0]||(t[0]=[c("div",{class:"stack-tab-loading--spin turn","aria-hidden":"true"},null,-1)])],12,ze)):s("",!0)}}),Ue=async e=>{const t=e.apply();try{const a=await e.navigate();if(e.isFailureResult?.(a)){if(e.isCurrent?.()??1?e.rollback(t):e.cleanupStale?.(),e.rejectFailureResult)throw a;return a}return(e.isCurrent?.()??1)&&e.commit?.(),a}catch(a){throw e.isCurrent?.()??1?e.rollback(t):e.cleanupStale?.(),a}},He=e=>e.startsWith("#")?document.getElementById(e.slice(1)):document.querySelector(e),Xe=e=>{const t=()=>e.sessionPrefix.value+"stacktab-active-tab";let a=null,r=0,o=!1;const n=()=>{o=!1;const e=a;a=null,e&&e.version===r&&window.sessionStorage.setItem(t(),JSON.stringify(e.tab))},l=()=>{r++,a=null},s=()=>{l(),window.sessionStorage.removeItem(t())};return{getSessionKey:t,saveActiveTabToSession:e=>{e.id&&(a={tab:e,version:++r},o||(o=!0,queueMicrotask(n)))},clearSession:s,restoreActiveTabSession:e=>{null!==e?(l(),window.sessionStorage.setItem(t(),e)):s()},restoreTabFromSession:e=>{if(null==e)return null;try{const a=JSON.parse(e,(e,t)=>"pages"===e&&Array.isArray(t)?new Ie(t):t);return Pe(t=a)&&"string"==typeof t.id&&"string"==typeof t.title&&"boolean"==typeof t.closable&&"boolean"==typeof t.refreshable&&"boolean"==typeof t.iframe&&"boolean"==typeof t.active&&t.pages instanceof Ie?a:(s(),null)}catch{return s(),null}var t}}},Je=e=>{const{tabs:t,iframeRefreshKeys:a,getTab:r,createPageId:o,addCache:n,evictPageCache:l,replacePageCaches:s,refreshIframeByPostMessage:i}=e,c=(e,t,a)=>{const r=e.pages.peek();if(!r)return;if(e.active)return void(r.refreshVersion=(r.refreshVersion??0)+1);const s=r.id;if(r.id=o(),r.refreshVersion=0,t&&a)return t.push(s),void a.push(r.id);l(s),n(r.id)};return{refreshTab:e=>{const t=r(e);t?.refreshable&&(t.iframe?(e=>{"reload"!==e.iframeRefreshMode?i(e.id):a.value={...a.value,[e.id]:(a.value[e.id]??0)+1}})(t):c(t))},refreshAllTabs:()=>{const e=[],r=[],o={...a.value};let n=!1;for(const a of t.value)a.refreshable&&(a.iframe?"reload"===a.iframeRefreshMode?(o[a.id]=(o[a.id]??0)+1,n=!0):i(a.id):c(a,e,r));n&&(a.value=o),s(e,r)}}},Ye=/* @__PURE__ */d({name:"StackTabEmptyPlaceholder",setup:()=>()=>null}),Qe=(e,t)=>({...ke(e.query),__tab:e.query.__tab??Le(t)}),Ze=e=>{const t=e.matched[e.matched.length-1]?.path??e.path,a=e.path.endsWith("/")?e.path.slice(0,-1):e.path;return t===a?a:e.path},et=()=>{const e=G(),t=$e(),{t:a}=ne(),r=De(),{tabs:l,defaultTabs:s,caches:i,components:c,tabIdsToEvict:f,refreshKey:b,iframeRefreshKeys:m,isInitialized:p,cacheIdsToEvict:v}=r,{markCacheForEviction:h,markTabPagesForEviction:g,markTabPagesForEvictionOnly:k,addCache:_,removeCache:I,evictMarkedCaches:A,evictPageCache:x,replacePageCaches:R}=(e=>{const{caches:t,components:a,cacheIdsToEvict:r,tabIdsToEvict:o}=e,n=new Set(t.value);let l=t.value;const s=()=>{if(l!==t.value){l=t.value,n.clear();for(const e of l)n.add(e)}},i=e=>{r.add(e)},c=e=>{if(s(),n.has(e)){n.delete(e);const a=l.indexOf(e);a>=0&&l.splice(a,1),B(t)}};return{markCacheForEviction:i,markTabPagesForEviction:e=>{for(const t of e.pages.list())i(t.id);o.add(e.id)},markTabPagesForEvictionOnly:e=>{for(const t of e.pages.list())i(t.id)},addCache:e=>{s(),n.has(e)||(n.add(e),l.push(e),B(t))},removeCache:c,evictPageCache:e=>{e&&(r.delete(e),c(e),a.delete(e))},replacePageCaches:(e,o)=>{s();const i=new Set(e);let c=!1;if(i.size>0){for(let e=l.length-1;e>=0;e--){const t=l[e];t&&i.has(t)&&(l.splice(e,1),c=!0)}for(const e of i)n.delete(e),r.delete(e),a.delete(e)}for(const t of o)n.has(t)||(n.add(t),l.push(t),c=!0);c&&B(t)},evictMarkedCaches:()=>{if(r.size<=0)return;s();const e=new Set(r);for(let t=l.length-1;t>=0;t--){const a=l[t];a&&e.has(a)&&l.splice(t,1)}for(const t of e)n.delete(t),a.delete(t);B(t),r.clear()}}})(r),{restoreScroller:P,saveScroller:E,removeScroller:L,addPageScroller:M}=(e=>{const{scrollPositionsByPageId:t}=e;return{restoreScroller:e=>{const a=t.get(e);if(a)for(const[t,r]of a){const e=He(t);e&&(e.scrollTop=r.top,e.scrollLeft=r.left)}},saveScroller:e=>{const a=t.get(e);if(a)for(const t of a.keys()){const e=He(t);a.set(t,{top:e?.scrollTop??0,left:e?.scrollLeft??0})}},removeScroller:e=>{const a=t.get(e);a&&(a.clear(),t.delete(e))},addPageScroller:(e,...a)=>{t.has(e)||t.set(e,/* @__PURE__ */new Map);const r=t.get(e);for(const t of a)r.set(t,{top:0,left:0})}}})(r),{saveActiveTabToSession:V,clearSession:W,restoreTabFromSession:q,restoreActiveTabSession:F,getSessionKey:j}=Xe(r),D=e=>{l.value=[...l.value,e]},N=e=>l.value.find(t=>t.id===e)??null,K=e=>{const r=(e=>{if("string"==typeof e.query.__tab){const t=Me(e.query.__tab);if(t.id)return t}const t=Ze(e),r=l.value.find(e=>e.active),o=r?.pages.peek();return r&&o?.path===t?{id:r.id,title:r.title,closable:r.closable,refreshable:r.refreshable,iframe:r.iframe,iframeRefreshMode:r.iframeRefreshMode}:{id:crypto.randomUUID(),title:a("VueStackTab.undefined"),closable:!0,refreshable:!0,iframe:!1}})(e);if(f.has(r.id))return{empty:!0};const o=Ze(e);let n,s=r.id?N(r.id):null,i=null;if(s&&!s.pages.isEmpty()){const t=s.pages.peek();if(!t)throw new Error("[vue-stack-tabs] Stack is not empty but peek() returned undefined");if(t.path===o)n=t.id;else{const t=s.pages.readonlyList();let a=-1;for(let e=t.length-2;e>=0;e--){const r=t[e];if(r&&r.path===o){a=e;break}}if(-1!==a){const o=t.length-1-a;for(let e=0;e<o;e++){const e=s.pages.pop();e&&x(e.id)}const l=s.pages.peek();n=l?l.id:Oe(),l||(i={id:n,tabId:r.id,path:e.path,query:Qe(e,r)})}else n=Oe(),i={id:n,tabId:r.id,path:e.path,query:Qe(e,r)}}}else n=Oe(),i={id:n,tabId:r.id,path:e.path,query:Qe(e,r)};if(v.has(n)){v.delete(n);const e=c.get(n);if(e)return{recovered:e,cacheName:n}}if(i)s=((e,a,r,o)=>{let n=null;for(const t of l.value)t.active=!1,t.id===e.id&&(n=t);if(null===n){const r=new Ie;r.push(o);const l=a.query.__src;n={id:e.id,title:e.title,closable:e.closable,refreshable:e.refreshable,iframe:e.iframe,iframeRefreshMode:e.iframeRefreshMode??"postMessage",url:he(l),active:!0,pages:r},D(n),t.emit(Ne.TAB_ACTIVE,{id:e.id,isRoute:!1})}else n.active=!0,(n.pages.isEmpty()||n.pages.peek().id!==o.id)&&n.pages.push(o);return n})(r,e,0,i);else{for(const e of l.value)e.active=!1;s.active=!0}return V(s),{cacheName:n,tabInfo:r,targetTab:s}},z=C(""),U=n(()=>l.value.find(e=>e.active)?.pages.peek()?.refreshVersion??0);let H="",X=null;const J=e=>{const t=l.value;for(let a=t.length-1;a>=0;a--){const r=t[a];r&&r.closable&&e(r,a)&&(g(r),r.pages.clear(),t.splice(a,1))}},Y=()=>{const e=l.value;if(J(()=>!0),e.some(e=>e.active))return A(),void f.clear();const a=e[e.length-1];a&&t.emit(Ne.TAB_ACTIVE,{id:a.id})},{refreshTab:Q,refreshAllTabs:Z}=Je({tabs:l,iframeRefreshKeys:m,getTab:N,createPageId:Oe,addCache:_,evictPageCache:x,replacePageCaches:R,refreshIframeByPostMessage:e=>t.emit(Ne.REFRESH_IFRAME_POSTMESSAGE,e)});return{tabs:l,caches:i,refreshKey:b,activeCacheKey:z,activePageRefreshVersion:U,isInitialized:p,setMaxSize:e=>{r.maxTabCount.value=e},canAddTab:()=>r.maxTabCount.value<=0||r.maxTabCount.value>0&&r.maxTabCount.value>l.value.length,initialize:e=>{const t=[],a=[];for(const o of e){const e=Ce(o,{id:crypto.randomUUID(),refreshable:!0,closable:!0,iframe:!1}),r=e.id??crypto.randomUUID();e.id=r;const n=ye(e.path),l=Oe(),s={id:l,tabId:r,path:n.path,query:Ce(we(n.query),{__tab:Le(e)})},i=new Ie;i.push(s);const c={id:r,title:e.title??"",closable:e.closable,refreshable:e.refreshable,iframe:e.iframe,iframeRefreshMode:"reload"===e.iframeRefreshMode?"reload":"postMessage",active:!1,pages:i};_(l),t.push(c),a.push({...c})}s.value=[...s.value,...t],l.value=[...l.value,...a];const r=q(sessionStorage.getItem(j()));r&&!l.value.some(e=>e.id===r.id)&&(r.url&&(r.url=ve(r.url)),r.iframe&&r.url&&void 0===r.iframeRefreshMode&&(r.iframeRefreshMode=ge(r.url)?"reload":"postMessage"),r.pages&&"function"==typeof r.pages.list&&r.pages.list().forEach(e=>{e&&e.id&&_(e.id)}),l.value=[...l.value,r]),p.value=!0},size:()=>l.value.length,active:(a,r=!0)=>{t.emit(Ne.FORWARD);const o=N(a);if(!o)return Promise.resolve();if(o.active)return Promise.resolve();const n=o.pages.peek(),s=()=>{for(const e of l.value)e.active=e.id===a;V(o),l.value=l.value.slice()};if(!r)return s(),Promise.resolve();if(!n)return s(),Promise.resolve();const i=Ce({__tab:Le({id:o.id,title:o.title,closable:o.closable,refreshable:o.refreshable,iframe:o.iframe})},n.query||{});return Ue({apply:()=>{const e=l.value.find(e=>e.active)?.id,t=window.sessionStorage.getItem(j());return s(),{prevActiveId:e,sessionSnapshot:t}},navigate:()=>e.push({path:n.path,query:i}),rollback:e=>{for(const t of l.value)t.active=t.id===e.prevActiveId;l.value=l.value.slice(),F(e.sessionSnapshot)},isFailureResult:$,rejectFailureResult:!0})},getCacheName:()=>Oe(),destroy:()=>{l.value=[],s.value=[],v.clear(),f.clear(),m.value={},i.value=[],c.clear(),r.scrollPositionsByPageId.clear(),r.isInitialized.value=!1,r.refreshKey.value=0,W()},reset:()=>Y(),addCache:_,removeCache:I,getTab:N,addTab:D,removeTab:e=>{let a="";const r=N(e),o=l.value,n=o.findIndex(t=>t?.id===e);if(n<0)return"";const s=o[n];return s.closable?(g(s),s.pages.clear(),o.length>1&&s.active&&(a=(0===n?o[1]:o[n-1])?.id??""),o.splice(n,1),a&&t.emit(Ne.TAB_ACTIVE,{id:a}),r?.active||(A(),f.clear()),a):e},removeAllTabs:Y,removeLeftTabs:e=>{const a=l.value,r=a.findIndex(t=>t?.id===e);if(r<=0)return;if(J((e,t)=>t<r),a.some(e=>e.active))return A(),void f.clear();const o=a[0];o&&t.emit(Ne.TAB_ACTIVE,{id:o.id})},removeRightTabs:e=>{const a=l.value,r=a.findIndex(t=>t?.id===e);if(r<0||r>=a.length-1)return;if(J((e,t)=>t>r),a.some(e=>e.active))return A(),void f.clear();const o=a[a.length-1];o&&t.emit(Ne.TAB_ACTIVE,{id:o.id})},removeOtherTabs:e=>{const a=l.value.find(t=>t.id===e);J(t=>t.id!==e),a&&!a.active?t.emit(Ne.TAB_ACTIVE,{id:e}):(A(),f.clear())},hasTab:e=>l.value.some(t=>t.id===e),renewTab:e=>{const t=N(e.id);if(!t)return;const a=t.pages.list().map(e=>_e(e)),r=[...i.value],o=new Map(c);return k(t),A(),t.pages.clear(),()=>{t.pages.clear();for(const e of a)t.pages.push(_e(e));i.value=[...r],c.clear();for(const[e,t]of o)c.set(e,t)}},addPage:(e,t)=>{if(!t)return Ye;const a=e.fullPath+(e.query.__tab||"");if(a===H&&X)return X;const n=K(e);if("empty"in n)return Ye;if("recovered"in n)return _(n.cacheName),z.value=n.cacheName,H=a,X=n.recovered,n.recovered;z.value=n.cacheName;const l=(e=>{const{cacheName:t,tabInfo:a}=e;if(c.has(t))return _(t),c.get(t);const n=/* @__PURE__ */d({name:t,props:{vnode:{type:Object,required:!1,default:void 0}},emits:["onLoaded"],setup(e,n){const l=C(null),s=O(null),i=O(null),c=O(null),d=()=>{try{const e=N(a.id)?.pages.peek();e&&e.id===t&&e._backParams?(l.value={...e._backParams},delete e._backParams):l.value=null}catch{l.value=null}};return w(()=>{n.emit("onLoaded"),M(t,`#W-${t}`),d()}),T(()=>E(t)),y(()=>{n.emit("onLoaded"),P(t),A(),f.clear(),d()}),S(()=>L(t)),()=>{const n=e.vnode,d=l.value;if(n!==s.value||d!==c.value){const e=d?{_back:d}:{};i.value=n?o(n,{tId:a.id,pId:t,...e}):null,s.value=n,c.value=d}return u("div",{class:"cache-page-wrapper",id:`W-${t}`,style:[r.useGlobalScroll.value?"overflow:auto":"overflow:hidden","height: 100%"]},[i.value,u(Ge,{tabId:a.id},null)])}}});return c.set(t,n),_(t),n})(n);return H=a,X=l,l},addComponent:(e,t)=>c.set(e,t),getComponent:e=>c.get(e),removeComponent:e=>c.delete(e),markCacheForEviction:h,evictMarkedCaches:A,evictPageCache:x,refreshTab:Q,refreshAllTabs:Z,iframeRefreshKeys:m,addPageScroller:M,setGlobalScroll:e=>{r.useGlobalScroll.value=e},clearSession:W,setSessionPrefix:e=>{r.sessionPrefix.value=e}}};function tt(){const e=G(),t=De(),{active:a,hasTab:r,refreshKey:o,reset:n,canAddTab:l,renewTab:s,getTab:i,tabs:c,removeTab:u,removeAllTabs:d,refreshTab:f,refreshAllTabs:b}=et(),m=(a,r)=>{const o=Le(r);let n,l=Ce(we(a.query),{__tab:o});if(a.iframe)l={...l,__src:encodeURIComponent(a.path),__tab:o},n=t.iframePath.value;else{const e=ye(a.path);n=e.path,l=Ce(we(e.query),l,{__tab:o}),l={...l,__tab:o}}return pe(a.path)?Ue({apply:()=>{},navigate:()=>e.push({path:n,query:l}),rollback:()=>{},isFailureResult:$,rejectFailureResult:!0}):Promise.reject(/* @__PURE__ */new Error("Invalid tab URL"))};return{openTab:(e,t=!1)=>new Promise((n,c)=>{const u=(e=>{const t={refreshable:!0,closable:!0,iframe:!1};e.iframe&&void 0===e.iframeRefreshMode?t.iframeRefreshMode=ge(e.path??"")?"reload":"postMessage":e.iframe&&(t.iframeRefreshMode=e.iframeRefreshMode??"postMessage");const a=Ce(e,t);return a.id||(a.id=crypto.randomUUID()),a})(e),d=Boolean(u.id&&r(u.id));if(d&&!t)return void Promise.resolve(a(u.id)).then(()=>n(u.id),c);let f,b;if(u.id&&t&&d){const t=i(e.id);f=s(e),t?.active&&(b=o.value,o.value++)}d||l()?m(e,u).then(()=>n(u.id),e=>{f?.(),void 0!==b&&(o.value=b),c(e)}):c(/* @__PURE__ */new Error("Max Size"))}),closeTab:u,closeAllTabs:d,refreshTab:f,refreshAllTabs:b,activeTab:a,reset:n,tabs:c,setIFramePath:e=>{t.iframePath.value=e},getWrapper:()=>document.getElementsByClassName("cache-page-wrapper")[0],openInNewWindow:e=>{const t=i(e);t?.iframe&&t.url&&pe(t.url)&&window.open(t.url,"_blank","noopener,noreferrer")}}}var at=["disabled"],rt=(e,t)=>{const a=e.__vccOpts||e;for(const[r,o]of t)a[r]=o;return a},ot=/* @__PURE__ */rt(/* @__PURE__ */d({__name:"ContextMenuItem",props:{icon:{default:""},title:{},disabled:{type:Boolean,default:!1}},setup:e=>(t,a)=>(I(),i("button",{type:"button",role:"menuitem",class:"stack-tab__contextmenu-item",disabled:e.disabled},[c("span",{class:h(["stack-tab__contextmenu-icon",e.icon]),"aria-hidden":"true"},null,2),c("span",{class:"stack-tab__contextmenu-title",onContextmenu:a[0]||(a[0]=K(()=>{},["prevent"]))},V(e.title),33)],8,at))}),[["__scopeId","data-v-3d616fa0"]]),nt={key:1,class:"divider div-transparent",role:"separator","aria-orientation":"horizontal"},lt=/* @__PURE__ */rt(/* @__PURE__ */d({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{default:()=>[]},restoreFocusElement:{default:null},tabItem:{},max:{}},emits:["close"],setup(t,{emit:a}){const r=t,o=a,{t:n}=ne(),c=C(),d=x({left:r.left,top:r.top}),{closeTab:f,closeAllTabs:b,refreshTab:m,refreshAllTabs:p,openInNewWindow:h}=tt(),{removeLeftTabs:y,removeRightTabs:k,removeOtherTabs:_}=et(),T=()=>{r.restoreFocusElement&&document.contains(r.restoreFocusElement)?r.restoreFocusElement.focus():document.querySelector('[role="tab"][aria-selected="true"]')?.focus()},S=()=>{o("close"),v(T)},A=e=>{e?.(),S()},R=()=>{const e=c.value;return e?Array.from(e.querySelectorAll('[role="menuitem"]')).filter(e=>!e.disabled):[]},E=e=>{const t=R();t.length<=0||t[(e+t.length)%t.length]?.focus()},L=()=>R().findIndex(e=>e===document.activeElement),M=e=>{if("Escape"===e.key)return e.preventDefault(),void S();if("ArrowDown"===e.key){e.preventDefault();const t=L();return void E(-1===t?0:t+1)}if("ArrowUp"===e.key){e.preventDefault();const t=L();return void E(-1===t?-1:t-1)}if("Home"===e.key)return e.preventDefault(),void E(0);"End"===e.key&&(e.preventDefault(),E(R().length-1))},O=e=>e.key??`${e.title}-${e.icon??""}`;return w(()=>{const e=c.value?.clientWidth??0;d.left+e>window.innerWidth&&(d.left=window.innerWidth-e-5),E(0)}),(a,r)=>(I(),i("div",{ref_key:"menuElementRef",ref:c,class:"stack-tab__contextmenu",role:"menu",tabindex:"-1",style:g({left:`${d.left}px`,top:`${d.top}px`,"z-index":q(fe)(".stack-tab,.stack-tab *")}),onKeydown:M},[u(ot,{icon:"stack-tab__icon-reload svg-mask",title:q(n)("VueStackTab.reload"),disabled:!t.tabItem.refreshable,onClick:r[0]||(r[0]=e=>A(()=>q(m)(t.tabItem.id)))},null,8,["title","disabled"]),u(ot,{icon:"stack-tab__icon-reload-all svg-mask",title:q(n)("VueStackTab.reloadAll"),onClick:r[1]||(r[1]=e=>A(q(p)))},null,8,["title"]),u(ot,{icon:"stack-tab__icon-close svg-mask",title:q(n)("VueStackTab.close"),disabled:!t.tabItem.closable,onClick:r[2]||(r[2]=e=>A(()=>q(f)(t.tabItem.id)))},null,8,["title","disabled"]),u(ot,{icon:"stack-tab__icon-close-lefts svg-mask",title:q(n)("VueStackTab.closeLeft"),disabled:t.index<=0,onClick:r[3]||(r[3]=e=>A(()=>q(y)(t.tabItem.id)))},null,8,["title","disabled"]),u(ot,{icon:"stack-tab__icon-close-rights svg-mask",title:q(n)("VueStackTab.closeRight"),disabled:t.index>=t.max-1,onClick:r[4]||(r[4]=e=>A(()=>q(k)(t.tabItem.id)))},null,8,["title","disabled"]),u(ot,{icon:"stack-tab__icon-close-others svg-mask",title:q(n)("VueStackTab.closeOthers"),onClick:r[5]||(r[5]=e=>A(()=>q(_)(t.tabItem.id)))},null,8,["title"]),u(ot,{icon:"stack-tab__icon-close-all svg-mask",title:q(n)("VueStackTab.closeAll"),onClick:r[6]||(r[6]=e=>A(q(b)))},null,8,["title"]),t.tabItem.iframe&&t.tabItem.url?(I(),l(ot,{key:0,icon:"stack-tab__icon-open svg-mask",title:q(n)("VueStackTab.openInNewWindow"),onClick:r[7]||(r[7]=e=>A(()=>q(h)(t.tabItem.id)))},null,8,["title"])):s("",!0),void 0!==t.contextMenu&&t.contextMenu.length>0?(I(),i("div",nt)):s("",!0),(I(!0),i(e,null,P(t.contextMenu,e=>(I(),l(ot,{key:O(e),"data-menu-key":O(e),icon:e.icon,title:e.title,disabled:e.disabled(t.tabItem),onClick:a=>A(()=>!e.disabled(t.tabItem)&&e.callback(t.tabItem.id))},null,8,["data-menu-key","icon","title","disabled","onClick"]))),128))],36))}}),[["__scopeId","data-v-f6a9b3bf"]]),st=e=>`stack-tab-tab-${encodeURIComponent(e)}`,it=e=>`stack-tab-panel-${encodeURIComponent(e)}`,ct=["id","data-tab-id","aria-controls","aria-selected","tabindex","title"],ut={class:"stack-tab__item-title"},dt={class:"stack-tab__item-title-content"},ft=["title","aria-label","tabindex"],bt=/* @__PURE__ */d({__name:"TabHeaderItem",props:{item:{}},emits:["close","active","contextmenu"],setup(e,{emit:t}){const a=t,r=$e(),{t:o}=ne(),l=C(),u=e,d=e=>{u.item.id===e.id&&m(e.isRoute??!0)};r.on(Ne.TAB_ACTIVE,d),S(()=>{r.off(Ne.TAB_ACTIVE,d)});const f=n(()=>u.item.title||o("VueStackTab.undefined")),b=()=>{a("close",u.item)},m=(e=!0)=>{a("active",u.item,l.value,e)},p=e=>{if("Enter"===e.key||" "===e.key)return e.preventDefault(),void m(!0);"Delete"!==e.key&&"Backspace"!==e.key||!u.item.closable||(e.preventDefault(),b())};return(t,a)=>(I(),i("li",{ref_key:"tabElementRef",ref:l,role:"presentation",class:h(["stack-tab__item",{"is-active":e.item.active,"is-icon":e.item.closable}]),onClick:a[1]||(a[1]=K(e=>m(!0),["self"])),onContextmenu:a[2]||(a[2]=e=>t.$emit("contextmenu",e))},[c("button",{id:q(st)(e.item.id),type:"button",role:"tab",class:"stack-tab__item-tab","data-tab-id":e.item.id,"aria-controls":q(it)(e.item.id),"aria-selected":e.item.active?"true":"false",tabindex:e.item.active?0:-1,title:f.value,onClick:a[0]||(a[0]=e=>m(!0)),onKeydown:p},[c("span",ut,[c("span",dt,V(f.value),1)])],40,ct),e.item.closable?(I(),i("button",{key:0,type:"button",class:"stack-tab__icon-close-fill stack-tab__item-button",title:q(o)("VueStackTab.close"),"aria-label":`${q(o)("VueStackTab.close")} ${f.value}`,tabindex:e.item.active?0:-1,onClick:K(b,["stop"])},null,8,ft)):s("",!0)],34))}}),mt=["disabled","title","aria-label"],pt={key:1,class:"stack-tab__button"},vt=/* @__PURE__ */d({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{default:""},ariaLabel:{default:""}},setup(e){const t=e,a=n(()=>t.ariaLabel||t.title);return(t,r)=>(I(),i("button",{type:"button",class:h(["stack-tab__header-button",{"stack-tab__shadow-right":"right"===e.shadow,"stack-tab__shadow-left":"left"===e.shadow}]),disabled:e.disabled,title:e.title,"aria-label":a.value},["icon"in t.$slots?s("",!0):(I(),i("span",{key:0,class:h(["stack-tab__mask-button",e.iconClass])},null,2)),"icon"in t.$slots?(I(),i("span",pt,[E(t.$slots,"icon")])):s("",!0)],10,mt))}}),ht=/* @__PURE__ */d({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(t,{expose:a}){const{t:r}=ne(),o=C(null),u=C(null),d=C(null),f=C(!1),b=C(!1),m=C(!1),p=C(!1),v=C(),y=t,k=x({clientWidth:0,scrollWidth:0,scrollLeft:0}),_=x({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});j(k,e=>{T(e)}),j(()=>y.isScrollButton,()=>T(k));const T=e=>{const t=e.scrollWidth>e.clientWidth;b.value=e.scrollLeft<=10,m.value=e.clientWidth+e.scrollLeft-e.scrollWidth>=-10,p.value=y.isScrollButton&&t},A=n(()=>k.scrollWidth>k.clientWidth),R=n(()=>{if(!A.value)return 0;const{clientWidth:e,scrollWidth:t}=k;return e/t*e}),P=n(()=>{if(!A.value)return 0;const{clientWidth:e,scrollWidth:t,scrollLeft:a}=k;return(e-R.value)*(a/(t-e))}),L=()=>{if(!o.value)return;const{clientWidth:e,scrollWidth:t,scrollLeft:a}=o.value;Object.assign(k,{clientWidth:e,scrollWidth:t,scrollLeft:a})},M=()=>{const e=o.value?.querySelector(".stack-tab__item.is-active");e&&!H(e)&&U(e)};let O=null,V=null;const W=(e,t=!0)=>{de({wrap:o.value,left:e,top:0,smooth:t})},B=e=>{W(o.value.scrollLeft+e)},D=e=>{if(!y.isScrollWheel||!o.value)return;const t=e.deltaY<0;W(o.value.scrollLeft+(t?-y.space:y.space))},$=e=>{Object.assign(_,{startPageX:e.pageX,startScrollLeft:o.value?.scrollLeft,startThumbLeft:P.value,thumbLeft:P.value}),f.value=!0,document.addEventListener("mousemove",z),document.addEventListener("mouseup",G)},z=e=>{const{clientWidth:t,scrollWidth:a}=k;let r=_.startThumbLeft+e.pageX-_.startPageX;const o=t-R.value;r<0?r=0:r>o&&(r=o),_.thumbLeft=r,W(r*(a-t)/(t-R.value),!1),e.preventDefault()},G=()=>{f.value=!1,document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",G)};w(()=>{if("undefined"==typeof ResizeObserver)return;O=new ResizeObserver(()=>{L(),M()}),V=new ResizeObserver(()=>{A.value||M(),L()}),v.value&&O.observe(v.value);const e=o.value?.querySelector(".stack-tab__nav");e&&V.observe(e)}),S(()=>{O?.disconnect(),V?.disconnect(),O=null,V=null});const U=e=>{!function({el:e,wrap:t,block:a="start",inline:r="nearest"}){const o=t&&"object"==typeof t&&"value"in t?t.value:t;if(e&&o)if(e.scrollIntoView)e.scrollIntoView({behavior:"smooth",block:a,inline:r});else{const{offsetLeft:t,offsetTop:n}=e;let l,s;s="center"===a?n+(e.clientHeight-o.clientHeight)/2:n,l="center"===r?t+(e.clientWidth-o.clientWidth)/2:t,de({wrap:o,left:l,top:s})}}({el:e,wrap:o.value,block:"end",inline:"center"})},H=e=>{if(!A.value)return!0;const t=e.offsetLeft,a=o.value.scrollLeft;return!(t<a||t+e.clientWidth>a+o.value.clientWidth)};return a({scrollIntoView:U,isInView:H}),(a,n)=>(I(),i(e,null,[p.value?(I(),l(vt,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:b.value,title:q(r)("VueStackTab.scrollLeft"),"aria-label":q(r)("VueStackTab.scrollLeft"),onClick:n[0]||(n[0]=e=>!b.value&&B(-1*t.space))},null,8,["disabled","title","aria-label"])):s("",!0),c("div",{ref_key:"headerScroll",ref:v,class:"stack-tab__scroll",onWheelPassive:D},[c("div",{ref_key:"container",ref:o,class:h(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!b.value&&m.value,"stack-tab__shadow-inset-right":!m.value&&b.value,"stack-tab__shadow-inset-all":!b.value&&!m.value}]),onScrollPassive:L},[E(a.$slots,"default")],34),N(c("div",{ref_key:"bar",ref:u,class:h(["stack-tab__scrollbar",{"is-dragging":f.value}])},[c("div",{ref_key:"thumb",ref:d,class:h(["stack-tab__scrollbar-thumb",{"is-dragging":f.value}]),style:g({width:`${R.value}px`,transform:`translateX(${P.value}px)`}),onMousedown:K($,["prevent"])},null,38)],2),[[F,A.value]])],544),p.value?(I(),l(vt,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:m.value,title:q(r)("VueStackTab.scrollRight"),"aria-label":q(r)("VueStackTab.scrollRight"),onClick:n[1]||(n[1]=e=>!m.value&&B(t.space))},null,8,["disabled","title","aria-label"])):s("",!0)],64))}}),gt=/* @__PURE__ */d({__name:"index",props:{space:{},tabScrollMode:{default:Se.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(t,{emit:o}){const{t:c}=ne(),d=m(We,C(!1)),f=o,b=C(),h=C(),{shown:g,contextMenuData:y,showContextMenu:k}=(()=>{const e=x({item:{},index:-1,left:0,top:0,max:0}),t=C(!1),a=e=>{e.target.closest?.(".stack-tab__contextmenu")||(t.value=!1,document.removeEventListener("click",a))};return S(()=>{document.removeEventListener("click",a)}),{shown:t,contextMenuData:e,showContextMenu:async(r,o,n,l)=>{t.value=!1,document.removeEventListener("click",a),await v(()=>{const{clientY:s,clientX:i}=r;t.value=!0,Object.assign(e,{item:o,index:n,top:s,left:i,max:l}),v(()=>document.addEventListener("click",a))})}}})(),_=C(null),T=()=>{g.value=!1},w=t,{closeTab:A,activeTab:R,tabs:L}=tt(),M=n(()=>!1!==w.contextmenu),O=n(()=>Array.isArray(w.contextmenu)?w.contextmenu:[]),V=(e,t,a,r)=>{M.value&&(e.preventDefault(),_.value=(e=>{const t=(e.target instanceof Element?e.target:null)?.closest('[role="tab"]');return t||((e.currentTarget instanceof HTMLElement?e.currentTarget:null)?.querySelector('[role="tab"]')??null)})(e),k(e,t,a,r))},W=n(()=>"string"==typeof w.tabTransition?{name:w.tabTransition}:w.tabTransition),B=e=>{const t=L.value[e];var a;t&&(z(t,void 0,!0),a=String(t.id),v(()=>{const e=h.value?.querySelector(`.stack-tab__nav [role="tab"][data-tab-id="${CSS.escape(a)}"]`);e&&(e.focus(),b.value&&!b.value.isInView(e)&&b.value.scrollIntoView(e))}))},F=e=>{const t=L.value.length;if(t<=0)return;const a=L.value.findIndex(e=>e.active),r=a>=0?a:0;return"ArrowRight"===e.key?(e.preventDefault(),void B((r+1)%t)):"ArrowLeft"===e.key?(e.preventDefault(),void B((r-1+t)%t)):"Home"===e.key?(e.preventDefault(),void B(0)):void("End"===e.key&&(e.preventDefault(),B(t-1)))},j=n(()=>w.tabScrollMode===Se.BOTH||w.tabScrollMode===Se.BUTTON),N=n(()=>w.tabScrollMode===Se.BOTH||w.tabScrollMode===Se.WHEEL),$=e=>{e.closable&&A(e.id),g.value=!1},z=(e,t,a)=>{b.value&&t&&v(()=>{b.value.isInView(t)||b.value.scrollIntoView(t)}),Promise.resolve(R(e.id,a)).then(()=>f("active",e.id)).catch(e=>{})};return(o,n)=>(I(),i("div",{ref_key:"headerRef",ref:h,class:"stack-tab__header"},[E(o.$slots,"leftButton"),u(ht,{ref_key:"scrollContainerRef",ref:b,space:t.space,"is-scroll-wheel":N.value,"is-scroll-button":j.value},{default:D(()=>[u(r,p({key:"tab-list-transition",tag:"ul",class:"stack-tab__nav",role:"tablist","aria-orientation":"horizontal"},W.value,{appear:"",onKeydown:F}),{default:D(()=>[(I(!0),i(e,null,P(q(L),(e,t)=>(I(),l(bt,{key:e.id,item:e,onContextmenu:a=>V(a,e,t,q(L).length),onMouseup:K(t=>$(e),["middle","prevent"]),onClose:$,onActive:z},null,8,["item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),E(o.$slots,"rightButton"),u(vt,{"icon-class":q(d)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:q(d)?q(c)("VueStackTab.restore"):q(c)("VueStackTab.maximum"),"aria-label":q(d)?q(c)("VueStackTab.restore"):q(c)("VueStackTab.maximum"),onClick:n[0]||(n[0]=e=>d.value=!q(d))},null,8,["icon-class","title","aria-label"]),u(a,{name:"stack-tab-zoom",appear:""},{default:D(()=>[q(g)?(I(),l(lt,{key:"context-menu-transition",left:q(y).left,top:q(y).top,"tab-item":q(y).item,max:q(y).max,index:q(y).index,"context-menu":O.value,"restore-focus-element":_.value,onClose:T},null,8,["left","top","tab-item","max","index","context-menu","restore-focus-element"])):s("",!0)]),_:1})],512))}}),yt=/* @__PURE__ */d({__name:"StackCacheRenderer",props:{route:{},component:{}},setup(e){const t=e,{refreshKey:a,activeCacheKey:r,activePageRefreshVersion:o,addPage:n}=et(),l=O(d({name:"StackCacheRendererEmpty",setup:()=>()=>null}));return j([()=>t.route.fullPath,()=>{return e=t.component,e?.type??e;var e},()=>a.value],()=>{l.value=n(t.route,t.component)},{immediate:!0}),(t,n)=>E(t.$slots,"default",{wrappedComponent:l.value,activeCacheKey:q(r),refreshKey:q(a),activePageRefreshVersion:q(o),component:e.component})}}),kt=/* @__PURE__ */d({__name:"StackKeepAlive",props:{transitionName:{default:"stack-tab-swap"}},emits:["loaded"],setup(e,{emit:r}){const o=r,{caches:n}=et(),s=()=>{o("loaded")};return(r,o)=>{const i=L("router-view");return I(),l(i,null,{default:D(({Component:r,route:o})=>[u(yt,{route:o,component:r},{default:D(({wrappedComponent:r,activeCacheKey:o,activePageRefreshVersion:i,component:c})=>[u(a,{name:e.transitionName,appear:"",mode:"out-in"},{default:D(()=>[(I(),l(t,{include:q(n)},[(I(),l(M(r),{key:`${o}-${i}`,vnode:c,onOnLoaded:s},null,40,["vnode"]))],1032,["include"]))]),_:2},1032,["name"])]),_:1},8,["route","component"])]),_:1})}}}),_t=new Set(["vue-stack-tabs:openTab","openTab"]),Tt=e=>"string"==typeof e||"number"==typeof e||null==e,wt=e=>"boolean"==typeof e?e:void 0,St=e=>{if(!Pe(e))return null;const{id:t,title:a,path:r,query:o,iframe:n,closable:l,refreshable:s,iframeRefreshMode:i}=e;if("string"!=typeof a||""===a.trim())return null;if("string"!=typeof r||""===r.trim()||!pe(r))return null;const c=(e=>{if(!Pe(e))return;const t={};for(const[a,r]of Object.entries(e))(Tt(r)||Array.isArray(r)&&r.every(Tt))&&(t[a]=r);return Object.keys(t).length>0?t:void 0})(o),u=wt(n),d=wt(l),f=wt(s),b=(e=>{if("reload"===e||"postMessage"===e)return e})(i);return{..."string"==typeof t&&t?{id:t}:{},title:a,path:r,...c?{query:c}:{},...void 0!==u?{iframe:u}:{},...void 0!==d?{closable:d}:{},...void 0!==f?{refreshable:f}:{},...b?{iframeRefreshMode:b}:{}}};function It(e){const{tabs:t,iframeRefreshKeys:a,iframeLoadTimeout:r,t:o}=e,l=n(()=>t.value.filter(e=>e.iframe)),s=n(()=>t.value.find(e=>e.active&&!e.iframe)),i=n(()=>Boolean(s.value)),c=x({}),u=e=>a.value[e]??0,d=(e,t=u(e.id))=>{const a=ve(e.url??"");return((e,t)=>{if(t<=0||"about:blank"===e)return e;const a=e.indexOf("#"),r=a>=0?e.slice(0,a):e,o=a>=0?e.slice(a):"",n=r.indexOf("?"),l=n>=0?r.slice(0,n):r,s=n>=0?r.slice(n+1):"",i=new URLSearchParams(s);return i.set("__stack_tabs_refresh",String(t)),`${l}?${i.toString()}${o}`})(c[e.id]?a:"about:blank",t)},f=n(()=>{const e={};for(const t of l.value){const a=u(t.id);e[t.id]=d(t,a)}return e}),b=x({}),m=e=>b[e]??{status:"idle"},p=/* @__PURE__ */new Map,v=e=>{const t=p.get(e);t&&(clearTimeout(t),p.delete(e))},h=(e,t={})=>{("loaded"!==m(e).status||t.force)&&(v(e),b[e]={status:"loading"},p.set(e,setTimeout(()=>{p.delete(e),"loading"===m(e).status&&(b[e]={status:"timeout",message:o("VueStackTab.iframeLoadTimeout")})},r)))},g=x({});j(()=>l.value.map(e=>({id:e.id,active:e.active})),e=>{for(const a of e)a.active&&(c[a.id]=!0,h(a.id));const t=new Set(e.map(e=>e.id));for(const a of Object.keys(b))t.has(a)||(v(a),delete b[a],delete c[a],delete g[a])},{immediate:!0}),j(a,(e,t={})=>{for(const a of l.value)a.active&&(e[a.id]??0)!==(t[a.id]??0)&&h(a.id,{force:!0})},{deep:!0});return _(()=>{for(const e of p.values())clearTimeout(e);p.clear()}),{iframeTabs:l,activeNonIframeTab:s,hasActiveNonIframeTab:i,iframeSrcMap:f,getIframeRefreshKey:u,getIframeKey:e=>`${e.id}-${u(e.id)}`,getIframeLoadState:m,shouldShowIframeLoading:e=>"loading"===m(e).status,shouldShowIframeError:e=>"timeout"===m(e).status,retryIframe:e=>{b[e]={status:"idle"},a.value={...a.value,[e]:(a.value[e]??0)+1},h(e,{force:!0})},setIframeRef:(e,t)=>{t?g[e]=t:delete g[e]},handleIframeLoad:(e,t)=>{const a=t.currentTarget,r=Number(a?.dataset.refreshKey??0);var o;c[e.id]&&("about:blank"!==d(e,r)&&r===u(e.id)&&a===g[e.id]&&(o=e.id,v(o),b[o]={status:"loaded"}))},handleRefreshIframePostMessage:e=>{const a=g[e],r=t.value.find(t=>t.id===e);if(a?.contentWindow)try{const e=((e,t)=>{if(!e||!pe(e))return null;try{const a=t??("undefined"!=typeof window?window.location.origin:void 0);if(!a&&!/^https?:\/\//i.test(e))return null;const r=new URL(e,a);if("http:"===r.protocol||"https:"===r.protocol)return r.origin}catch{return null}return null})(r?.url??"");if(!e)return;a.contentWindow.postMessage({type:"vue-stack-tabs:refresh"},e)}catch(o){}},createMessageHandler:(e,t)=>{const a=e=>Object.values(g).some(t=>t?.contentWindow===e);return r=>{if(!e.value.includes(r.origin))return;const o=((e,t)=>{if(!t(e.source))return null;if(!Pe(e.data))return null;const a=e.data;return"string"==typeof a.type&&_t.has(a.type)?St(a.payload):null})(r,a);o&&t(o).catch(e=>{})}}}}var At={class:"stack-tab__container"},xt=["id","role","aria-labelledby","aria-hidden","hidden"],Rt={class:"stack-tab__iframes"},Ct=["id","aria-labelledby"],Pt=["aria-label"],Et={class:"stack-tab__iframe-loading-text"},Lt={key:1,class:"stack-tab__iframe-error",role:"alert"},Mt={class:"stack-tab__iframe-error-text"},Ot=["onClick"],Vt=["onClick"],Wt=["src","data-refresh-key","title","sandbox","referrerpolicy","allow","onLoad"],Bt=/* @__PURE__ */d({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},pageTransitionBack:{default:"stack-tab-swap-back"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:Se.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:void 0},space:{default:300},globalScroll:{type:Boolean,default:!1},iframePath:{},sessionPrefix:{default:""},iframeAllowedOrigins:{default:()=>[]},iframeSandbox:{default:"allow-scripts allow-forms allow-popups allow-downloads allow-same-origin"},iframeReferrerPolicy:{default:"strict-origin-when-cross-origin"},iframeAllow:{default:""},iframeLoadTimeout:{default:15e3}},emits:["onActive","onPageLoaded"],setup(t,{emit:r}){const o=r,d=t,{changeLocale:b,t:p}=ne(),v=m(Ve,null)??je({iframePath:d.iframePath,maxTabCount:d.max,useGlobalScroll:d.globalScroll,sessionPrefix:d.sessionPrefix}),y=f()?.appContext.app,T=((e,t={})=>{if(Be||(Be=e),t.app&&!Fe.has(t.app))return Fe.add(t.app),!0;if(!t.app&&Be===e&&!qe)return qe=!0,!0;if(t.isProduction??1)return!1;throw new Error("VueStackTabs only supports one <VueStackTabs> instance per Vue app.")})(v,y?{app:y}:void 0);T&&(A(Ve,v),A(Ke,v.eventBus));const w=C(!1),S=C();T&&A(We,w),j(w,e=>{S.value=e?fe("body *:not(.stack-tab,.stack-tab *)"):void 0});const{tabs:x,iframeRefreshKeys:R,destroy:L,initialize:M,setMaxSize:O,setGlobalScroll:W,setSessionPrefix:B}=T?et():{tabs:v.tabs,iframeRefreshKeys:v.iframeRefreshKeys,destroy:()=>{},initialize:()=>{},setMaxSize:()=>{},setGlobalScroll:()=>{},setSessionPrefix:()=>{}},{setIFramePath:K,openTab:$,openInNewWindow:z}=T?tt():{setIFramePath:()=>{},openTab:()=>Promise.resolve(void 0),openInNewWindow:()=>{}};T&&(K(d.iframePath),W(d.globalScroll),O(d.max),((e,t)=>{t&&e(t)})(b,d.i18n));const G=e=>{o("onActive",e)},U=()=>{o("onPageLoaded")},H=C(d.pageTransition),X=v.eventBus,J=()=>{H.value=d.pageTransition},Y=()=>{H.value=d.pageTransitionBack};T&&(X.on(Ne.FORWARD,J),X.on(Ne.BACKWARD,Y));const{iframeTabs:Q,activeNonIframeTab:Z,hasActiveNonIframeTab:ee,iframeSrcMap:te,getIframeRefreshKey:ae,getIframeKey:re,getIframeLoadState:oe,shouldShowIframeLoading:le,shouldShowIframeError:se,retryIframe:ie,setIframeRef:ce,handleIframeLoad:ue,handleRefreshIframePostMessage:de,createMessageHandler:be}=It({tabs:x,iframeRefreshKeys:R,iframeLoadTimeout:d.iframeLoadTimeout,t:p}),me=be(n(()=>["undefined"!=typeof window?window.location.origin:"",...d.iframeAllowedOrigins??[]].filter(Boolean)),$);return T&&X.on(Ne.REFRESH_IFRAME_POSTMESSAGE,de),k(()=>{T&&(B(d.sessionPrefix),M(d.defaultTabs),window.addEventListener("message",me))}),_(()=>{T&&(window.removeEventListener("message",me),X.off(Ne.REFRESH_IFRAME_POSTMESSAGE,de),X.off(Ne.FORWARD,J),X.off(Ne.BACKWARD,Y),L(),((e,t={})=>{t.app&&Fe.delete(t.app),t.app||Be!==e||(qe=!1),Be===e&&(Be=null)})(v,y?{app:y}:void 0))}),(r,o)=>q(T)?(I(),i("div",{key:0,class:h(["stack-tab",{"stack-tab__maximum":w.value}]),style:g({width:t.width,height:t.height,"z-index":S.value})},[u(gt,{space:t.space,"tab-transition":t.tabTransition,"tab-scroll-mode":t.tabScrollMode,contextmenu:t.contextmenu,max:t.max,onActive:G},{leftButton:D(()=>[E(r.$slots,"leftButton")]),rightButton:D(()=>[E(r.$slots,"rightButton")]),_:3},8,["space","tab-transition","tab-scroll-mode","contextmenu","max"]),c("div",At,[u(a,{name:H.value,appear:""},{default:D(()=>[N((I(),i("div",{id:q(Z)?q(it)(q(Z).id):void 0,key:"keep-alive",class:"stack-tab__keep-alive-panel",role:q(Z)?"tabpanel":void 0,"aria-labelledby":q(Z)?q(st)(q(Z).id):void 0,"aria-hidden":q(Z)?void 0:"true",hidden:!q(ee)},[u(kt,{"transition-name":H.value,onLoaded:U},null,8,["transition-name"])],8,xt)),[[F,q(ee)]])]),_:1},8,["name"]),c("div",Rt,[(I(!0),i(e,null,P(q(Q),e=>(I(),l(a,{key:q(re)(e),name:H.value,appear:""},{default:D(()=>[N((I(),i("div",{id:q(it)(e.id),key:q(re)(e),class:"stack-tab__iframe-wrapper",role:"tabpanel","aria-labelledby":q(st)(e.id)},[q(le)(e.id)?(I(),i("div",{key:0,class:"stack-tab__iframe-loading",role:"status","aria-live":"polite","aria-label":q(p)("VueStackTab.loading")},[E(r.$slots,"iframeLoading",{tab:e},()=>[c("span",Et,V(q(p)("VueStackTab.loading")),1)])],8,Pt)):s("",!0),q(se)(e.id)?(I(),i("div",Lt,[E(r.$slots,"iframeError",{tab:e,retry:q(ie)},()=>[c("span",Mt,V(q(oe)(e.id).message??q(p)("VueStackTab.iframeLoadTimeout")),1),c("button",{type:"button",class:"stack-tab__iframe-error-retry",onClick:t=>q(ie)(e.id)},V(q(p)("VueStackTab.retry")),9,Ot),e.url&&q(pe)(e.url)?(I(),i("button",{key:0,type:"button",class:"stack-tab__iframe-error-open",onClick:t=>q(z)(e.id)},V(q(p)("VueStackTab.openInNewWindow")),9,Vt)):s("",!0)])])):s("",!0),c("iframe",{ref_for:!0,ref:t=>q(ce)(e.id,t),class:"stack-tab__iframe",src:q(te)[e.id]||"about:blank","data-refresh-key":q(ae)(e.id),title:e.title||q(p)("VueStackTab.iframeTitle")||"Stack tab iframe",sandbox:t.iframeSandbox||void 0,referrerpolicy:t.iframeReferrerPolicy,allow:t.iframeAllow||void 0,frameborder:"0",onLoad:t=>q(ue)(e,t)},null,40,Wt)],8,Ct)),[[F,e.active]])]),_:2},1032,["name"]))),128))])])],6)):s("",!0)}}),qt=(e,t)=>{e.clear();for(const a of t)e.push(_e(a))};function Ft(){const{attrs:e,props:t}=f(),a=e.tId??t.tId,r=e.pId??t.pId,o=z(),n=G(),l=$e(),{getTab:s,evictPageCache:i,addPageScroller:c,active:u}=et(),d=o.query.__tab;let b=0;return{forward:e=>{const t=s(a),r=e.query||{};if(t){const a=t.pages.peek();if(a&&a.path===e.path&&Te(r,a.query||{}))return void(t.active||u(t.id))}const o=Ce({__tab:d},e.query),i=++b;l.emit(Ne.FORWARD);let c="";Ue({apply:()=>{const a=t?t.pages.readonlyList().map(e=>_e(e)):[];return t&&(c=Oe(),t.pages.push({id:c,tabId:t.id,path:e.path,query:ke(r)})),a},navigate:()=>n.push({path:e.path,query:o}),rollback:e=>{t&&qt(t.pages,e)},isFailureResult:$,isCurrent:()=>b===i,cleanupStale:()=>{if(!t||!c)return;const e=t.pages.list().filter(e=>e.id!==c);qt(t.pages,e)}}).catch(e=>{})},backward:(e,t)=>{const r=s(a);if(!r)return!1;const o=r.pages;let c=0;if("number"==typeof e)c=Math.abs(e);else{const t=ye(e),a=t.query||{},r=o.readonlyList();let n=!1;for(let e=o.size()-2;e>=0;e--){c++;const o=r[e];if(o?.path===t.path&&Te(a,o?.query||{})){n=!0;break}}if(!n)return!1}if(c<=0)return!1;if(o.size()<=c&&(c=o.size()-1),c<=0)return!1;const u=o.readonlyList().map(e=>_e(e)),f=[];for(let a=0;a<c;a++){const e=o.pop();e&&f.push(e.id)}const m=o.peek();if(!m)return qt(o,u),!1;t&&(m._backParams=t),l.emit(Ne.BACKWARD);const p=Ce({__tab:d},m.query||{}),v=++b;return Ue({apply:()=>u,navigate:()=>n.push({path:m.path,query:p}),rollback:e=>qt(o,e),isFailureResult:$,isCurrent:()=>b===v,commit:()=>{for(const e of f)i(e)},cleanupStale:()=>{const e=new Set(o.list().map(e=>e.id));for(const t of f)e.has(t)||i(t)}}).catch(e=>{}),!0},addScrollTarget:(...e)=>{c(r,...e)}}}var jt=/* @__PURE__ */d({__name:"iframe",setup:e=>(Ft(),()=>{})}),Dt=()=>{const e=$e(),{attrs:t}=f(),a=()=>String(t.tId??"");S(()=>{r()});const r=()=>{e.emit(Ne.PAGE_LOADING,{tId:a(),value:!1})};return{openTabLoading:()=>{e.emit(Ne.PAGE_LOADING,{tId:a(),value:!0})},closeTabLoading:r}},Nt="vue-stack-tabs:refresh",Kt="vue-stack-tabs:openTab";function $t(e,t={}){"undefined"!=typeof window&&window.parent&&window.parent.postMessage({type:Kt,payload:e},t.targetOrigin??window.location.origin)}function zt(e=()=>window.location.reload(),t={}){if("undefined"==typeof window)return()=>{};const a=t.allowedOrigins??[],r=t=>{t.source===window.parent&&(a.length>0&&!a.includes(t.origin)||"vue-stack-tabs:refresh"===t.data?.type&&e())};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)}var Gt={install(e,t){var a;a="1.3.0","undefined"!=typeof window&&window.console.log("%c vue-stack-tabs %c v"+a+" %c","background:#306fff; padding:2px 8px; border-radius:3px 0 0 3px; color:#fff;","background:#00d797; padding:2px 8px; border-radius:0 3px 3px 0; color:#fff;","background:transparent");const r=je();e.provide(Ve,r),e.provide(Ke,r.eventBus),e.component("VueStackTabs",Bt).use(ue().getI18n(t))}};export{jt as IFrame,Kt as MSG_OPEN_TAB,Nt as MSG_REFRESH,Ie as Stack,Bt as StackTab,Bt as VueStackTabs,vt as TabHeaderButton,Se as TabScrollMode,Gt as default,zt as onRefreshRequest,$t as postOpenTab,tt as useTabActions,Dt as useTabLoading,Ft as useTabRouter};
|
|
1
|
+
import{Fragment as e,KeepAlive as t,Transition as a,TransitionGroup as r,cloneVNode as o,computed as n,createBlock as l,createCommentVNode as s,createElementBlock as i,createElementVNode as c,createVNode as u,defineComponent as d,getCurrentInstance as f,hasInjectionContext as m,inject as b,mergeProps as p,nextTick as v,normalizeClass as h,normalizeStyle as g,onActivated as y,onBeforeMount as k,onBeforeUnmount as _,onDeactivated as T,onMounted as w,onScopeDispose as S,onUnmounted as I,openBlock as A,provide as x,reactive as R,readonly as C,ref as E,renderList as L,renderSlot as P,resolveComponent as M,resolveDynamicComponent as O,shallowRef as W,toDisplayString as V,toRaw as B,triggerRef as D,unref as q,vShow as F,watch as j,withCtx as $,withDirectives as N,withModifiers as K}from"vue";import{isNavigationFailure as z,useRoute as H,useRouter as G}from"vue-router";var U=Object.defineProperty,X=(e,t)=>{let a={};for(var r in e)U(a,r,{get:e[r],enumerable:!0});return t||U(a,Symbol.toStringTag,{value:"Module"}),a},J=/* @__PURE__ */X({default:()=>Y}),Y={VueStackTab:{close:"close",closeLeft:"close left",closeRight:"close right",closeOthers:"close others",closeAll:"close all",reload:"reload",reloadAll:"reload all",maximum:"maximum",restore:"restore",undefined:"undefined",loading:"loading",iframeTitle:"Embedded tab page",iframeLoadTimeout:"IFrame loading timed out",retry:"Retry",openInNewWindow:"Open in new window",scrollLeft:"Scroll left",scrollRight:"Scroll right"}},Q=/* @__PURE__ */X({default:()=>Z}),Z={VueStackTab:{close:"关闭",closeLeft:"关闭左侧",closeRight:"关闭右侧",closeOthers:"关闭其他",closeAll:"关闭所有",reload:"刷新",reloadAll:"刷新所有",maximum:"最大化",restore:"还原",undefined:"未命名",loading:"加载中",iframeTitle:"标签页内嵌页面",iframeLoadTimeout:"iframe 加载超时",retry:"重试",openInNewWindow:"在新窗口打开",scrollLeft:"向左滚动",scrollRight:"向右滚动"}},ee=["__proto__","prototype","constructor"];function te(e){const t=e.split("."),a=[];for(let r=0;r<t.length;r++){let e=t[r];for(;"\\"===e[e.length-1]&&void 0!==t[r+1];)e=e.slice(0,-1)+".",e+=t[++r];a.push(e)}return a.some(e=>-1!==ee.indexOf(e))?[]:a}function ae(e,t){if(!function(e){const t=typeof e;return null!==e&&("object"===t||"function"===t)}(e))return"";const a=te(t);if(0===a.length)return"";let r=Object.assign({},e);for(let o=0;o<a.length;o++){if("string"==typeof r[a[o]])return r[a[o]];if(r=r[a[o]],null==r){if(o!==a.length-1)return"";break}}return""}function re(e,t){return Object.keys(t).forEach(a=>{t[a]instanceof Object&&a in e&&(t[a]={...t[a],...re(e[a],t[a])})}),{...e||{},...t}}var oe="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,ne=/*#__PURE__*/(e=>oe?Symbol(e):"_vt_"+e)("i18n");function le(){return b(ne)}function se(e){const t=Object.assign({locale:"en",fallbackLocale:"en",messages:{}},e),a=E(t.locale),r=R({});return Object.entries(t.messages).forEach(([e,t])=>{r[e]=t}),{t(e,o){if(!e)return"";const n="string"==typeof o&&o?o:a.value;let l=ae(r[n],e)||ae(r[t.fallbackLocale],e);if(o&&"string"!=typeof o){const e=function(e,t){if(Array.isArray(t)){const a={},r=[...e.matchAll(/{(.+?)}/g)];return r&&r.forEach((e,r)=>{t[r]&&(a[e[1]]=t[r])}),a}return t}(l,o);s=e,(Array.isArray(s)?s.length:Object.keys(s).length)&&(l=function(e,t){for(const a in t)e=e.replace(`{${a}}`,String(t[a]));return e}(l,e))}var s;return l||e},current:C(a),options:C(e||{}),install(e){e.config.globalProperties.$t=this.t,e.provide(ne,this)},changeLocale(e){a.value=e},setLocaleMessage(e,t){r[e]=re(B(r[e]||{}),t)},getLocaleMessage:e=>r[e]||{}}}var ie=/* @__PURE__ */new Set(["__proto__","constructor","prototype"]),ce=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),ue=(e,t)=>{const a={...e};for(const[r,o]of Object.entries(t)){if(ie.has(r))continue;const e=a[r];a[r]=ce(e)&&ce(o)?ue(e,o):o}return a},de=()=>{const e=/* #__PURE__ */Object.assign({"./lang/en.ts":J,"./lang/zh-CN.ts":Q});const t=()=>{const t={};return function(e,t){for(const a of Object.keys(e)){const r=e[a];if(r?.default){const e=a.substring(a.lastIndexOf("/")+1,a.lastIndexOf(".")),o=t[e];t[e]=o?{...o,...r.default}:r.default}}}(e,t),t};return{getI18n:e=>{const a=((e,t)=>{const a={...e};if(!t)return a;for(const r of t)r.messages&&!ie.has(r.locale)&&(a[r.locale]=ue(a[r.locale]??{},r.messages));return a})(t(),e);return se({locale:e?.[0]?.locale??"zh-CN",fallbackLocale:"en",messages:a})}}},fe=({wrap:e,left:t=0,top:a=0,smooth:r=!0})=>{e&&(e.scrollTo?e.scrollTo({left:t,top:a,behavior:r?"smooth":"auto"}):(e.scrollLeft=t,e.scrollTop=a))};var me=/* @__PURE__ */new Map,be=e=>{void 0!==e?me.delete(e):me.clear()},pe=(e=".stack-tab__container *")=>{const t=Date.now(),a=me.get(e);if(a&&t-a.timestamp<100)return a.value;const r=document.querySelectorAll(e);let o=0;for(let l=0;l<r.length;l++){const e=+window.getComputedStyle(r[l]).zIndex||0;e<89999&&e>o&&(o=e)}const n=o+1;return me.set(e,{value:n,timestamp:t}),n},ve=/* @__PURE__ */new Set(["about:blank"]),he=/* @__PURE__ */new Set(["__tab","__src"]);function ge(e){const t=e.trim();if(!t)return!0;if((e=>{for(const t of e){const e=t.charCodeAt(0);if(e<=31||127===e||e>=128&&e<=159||8203===e||8204===e||8205===e||8288===e||65279===e||e>=8234&&e<=8238||e>=8294&&e<=8297)return!0}return!1})(t))return!1;if(ve.has(t.toLowerCase()))return!0;if(t.toLowerCase().startsWith("about:"))return!1;try{const e=new URL(t,"undefined"!=typeof window?window.location.origin:"http://localhost");return"http:"===e.protocol||"https:"===e.protocol}catch{return!1}}function ye(e){return ge(e)?e:"about:blank"}function ke(e){if("string"!=typeof e)return"about:blank";try{return ye(decodeURIComponent(e))}catch{return"about:blank"}}function _e(e){if(!e||!/^https?:\/\//i.test(e))return!1;try{const t="undefined"!=typeof window?window.location:{origin:"http://localhost"};return new URL(e,t.origin).origin!==t.origin}catch{return!0}}function Te(e){const[t="",a]=e.split("?");if(void 0===a)return{path:t,query:{}};const r=new URLSearchParams(a),o={};for(const[n,l]of r.entries()){const e=o[n];void 0!==e?o[n]=Array.isArray(e)?[...e,l]:[e,l]:o[n]=l}return{path:t,query:o}}function we(e={}){const t={};for(const[a,r]of Object.entries(e))t[a]=Array.isArray(r)?[...r]:r;return t}function Se(e){return{...e,query:e.query?we(e.query):void 0,_backParams:e._backParams?{...e._backParams}:void 0}}function Ie(e={},t={}){const a=e=>{const t={};for(const[a,r]of Object.entries(e))he.has(a)||"_back"===a||(t[a]=Array.isArray(r)?r.map(e=>String(e??"")):String(r??""));return t},r=a(e),o=a(t),n=Object.keys(r),l=Object.keys(o);return n.length===l.length&&n.every(e=>{const t=r[e],a=o[e];return Array.isArray(t)||Array.isArray(a)?Array.isArray(t)&&Array.isArray(a)&&t.length===a.length&&t.every((e,t)=>e===a[t]):t===a})}function Ae(e={}){const t={};for(const[a,r]of Object.entries(e))he.has(a)||(t[a]=Array.isArray(r)?[...r]:r);return t}var xe=/* @__PURE__ */function(e){return e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e}({}),Re=class{items;constructor(e){this.items=e?[...e]:[]}push(e){this.items.push(e)}pop(){return this.items.pop()}peek(){return this.items.length>0?this.items[this.items.length-1]:void 0}at(e){return this.items[e]}isEmpty(){return 0===this.items.length}size(){return this.items.length}clear(){this.items.length=0}list(){return[...this.items]}readonlyList(){return[...this.items]}find(e){return this.items.find(e)}findIndex(e){return this.items.findIndex(e)}filter(e){return this.items.filter(e)}some(e){return this.items.some(e)}forEachTopDown(e){for(let t=this.items.length-1;t>=0;t--)e(this.items[t],t)}toJSON(){return this.list()}toString(){return this.items.toString()}};function Ce(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&(!(Symbol.iterator in e)&&(!(Symbol.toStringTag in e)||"[object Module]"===Object.prototype.toString.call(e)))}function Ee(e,t,a=".",r){if(!Ce(t))return Ee(e,{},a,r);const o={...t};for(const n of Object.keys(e)){if("__proto__"===n||"constructor"===n)continue;const t=e[n];null!=t&&(r&&r(o,n,t,a)||(Array.isArray(t)&&Array.isArray(o[n])?o[n]=[...t,...o[n]]:Ce(t)&&Ce(o[n])?o[n]=Ee(t,o[n],(a?`${a}.`:"")+n.toString(),r):o[n]=t))}return o}function Le(e){return(...t)=>t.reduce((t,a)=>Ee(t,a,"",e),{})}var Pe=Le(),Me=(Le((e,t,a)=>{if(void 0!==e[t]&&"function"==typeof a)return e[t]=a(e[t]),!0}),Le((e,t,a)=>{if(Array.isArray(e[t])&&"function"==typeof a)return e[t]=a(e[t]),!0}),e=>"object"==typeof e&&null!==e&&!Array.isArray(e)),Oe={id:"",title:"",iframe:!1,closable:!0,refreshable:!0,iframeRefreshMode:"postMessage"},We=e=>{const t={version:1,id:e.id,title:e.title,iframe:e.iframe,closable:e.closable,refreshable:e.refreshable,iframeRefreshMode:"reload"===e.iframeRefreshMode?"reload":"postMessage"};return a=JSON.stringify(t),btoa(unescape(encodeURIComponent(a)));var a},Ve=e=>{if("string"!=typeof e||e.length>4096)return{...Oe};let t;try{t=(e=>decodeURIComponent(escape(atob(e))))(e)}catch{return{...Oe}}if(t.length>2048)return{...Oe};if(!t.trim().startsWith("{"))return(e=>{const t=e.split("|"),a="R"===t[5]?"reload":"postMessage";return{id:t[0]??"",title:t[1]??"",iframe:"Y"===t[2],closable:"Y"===t[3],refreshable:"Y"===t[4],iframeRefreshMode:a}})(t);try{return a=JSON.parse(t),Me(a)?{id:"string"==typeof a.id?a.id:void 0,title:"string"==typeof a.title?a.title:Oe.title,iframe:"boolean"==typeof a.iframe?a.iframe:Oe.iframe,closable:"boolean"==typeof a.closable?a.closable:Oe.closable,refreshable:"boolean"==typeof a.refreshable?a.refreshable:Oe.refreshable,iframeRefreshMode:"reload"===a.iframeRefreshMode?"reload":"postMessage"}:{...Oe}}catch{return{...Oe}}var a},Be=()=>crypto.randomUUID();var De=Symbol("stackTabsContext"),qe=Symbol("stackTabsMaximum"),Fe=null,je=!1,$e=/* @__PURE__ */new WeakSet,Ne=(e={})=>{const t={tabs:E([]),defaultTabs:E([]),caches:W([]),components:/* @__PURE__ */new Map,cacheIdsToEvict:/* @__PURE__ */new Set,tabIdsToEvict:/* @__PURE__ */new Set,refreshKey:E(0),scrollPositionsByPageId:/* @__PURE__ */new Map,isInitialized:E(!1),iframeRefreshKeys:E({}),maxTabCount:E(0),useGlobalScroll:E(!1),sessionPrefix:E("")};return{...t,maxTabCount:E(e.maxTabCount??t.maxTabCount.value),useGlobalScroll:E(e.useGlobalScroll??t.useGlobalScroll.value),sessionPrefix:E(e.sessionPrefix??t.sessionPrefix.value),iframePath:E(e.iframePath??""),eventBus:{all:a=a||/* @__PURE__ */new Map,on:function(e,t){var r=a.get(e);r?r.push(t):a.set(e,[t])},off:function(e,t){var r=a.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):a.set(e,[]))},emit:function(e,t){var r=a.get(e);r&&r.slice().map(function(e){e(t)}),(r=a.get("*"))&&r.slice().map(function(a){a(e,t)})}}};var a},Ke=()=>{const e=(m()?b(De,null):null)??Fe;if(!e)throw new Error("VueStackTabs runtime context is not available. Render <VueStackTabs> before using vue-stack-tabs composables.");return e},ze=/* @__PURE__ */function(e){return e.PAGE_LOADING="PAGE_LOADING",e.TAB_ACTIVE="TAB_ACTIVE",e.FORWARD="FORWARD",e.BACKWARD="BACKWARD",e.REFRESH_IFRAME_POSTMESSAGE="REFRESH_IFRAME_POSTMESSAGE",e}({}),He=Symbol("tabEmitter"),Ge=e=>(m()?b(He,null):null)??e?.eventBus??Ke().eventBus,Ue=async e=>{const t=e.apply();try{const a=await e.navigate();if(e.isFailureResult?.(a)){if(e.isCurrent?.()??!0?e.rollback(t):e.cleanupStale?.(),e.rejectFailureResult)throw a;return a}return(e.isCurrent?.()??!0)&&e.commit?.(),a}catch(a){throw e.isCurrent?.()??!0?e.rollback(t):e.cleanupStale?.(),a}},Xe=e=>e.startsWith("#")?document.getElementById(e.slice(1)):document.querySelector(e),Je="__stack-tab-auto-scroll__:",Ye=/* @__PURE__ */new Map,Qe=e=>{const t=document.getElementById(`W-${e}`);if(!t)return Ye.delete(e),null;let a=Ye.get(e);return a?0===a.elements.length&&a.observer&&(a.elements=Array.from(t.querySelectorAll("[data-stack-tab-scroll]"))):(a=(e=>{const t=()=>Array.from(e.querySelectorAll("[data-stack-tab-scroll]")),a={elements:t(),observer:null};return"undefined"!=typeof MutationObserver&&(a.observer=new MutationObserver(()=>{a.elements=t()}),a.observer.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-stack-tab-scroll"]})),a})(t),Ye.set(e,a)),a},Ze=(e,t)=>{const a=Number(t.slice(26));return Number.isInteger(a)?Qe(e)?.elements[a]??null:null},et=e=>{const{scrollPositionsByPageId:t}=e;return{restoreScroller:e=>{const a=t.get(e);if(a)for(const[t,r]of a){const a=t.startsWith(Je)?Ze(e,t):Xe(t);a&&(a.scrollTop=r.top,a.scrollLeft=r.left)}},saveScroller:e=>{const a=t.get(e);if(a){for(const e of a.keys())e.startsWith(Je)&&a.delete(e);(Qe(e)?.elements??[]).forEach((e,t)=>{a.set((e=>`${Je}${e}`)(t),{top:e.scrollTop,left:e.scrollLeft})});for(const t of a.keys()){const r=t.startsWith(Je)?Ze(e,t):Xe(t);a.set(t,{top:r?.scrollTop??0,left:r?.scrollLeft??0})}}},removeScroller:e=>{const a=t.get(e);a&&(a.clear(),t.delete(e));const r=Ye.get(e);r&&(r.observer?.disconnect(),Ye.delete(e))},addPageScroller:(e,...a)=>{t.has(e)||t.set(e,/* @__PURE__ */new Map);const r=t.get(e);for(const t of a)r.set(t,{top:0,left:0})},invalidateAutoScrollCache:e=>{const t=Ye.get(e);t&&(t.elements=[],t.observer?.disconnect(),Ye.delete(e))}}},tt=e=>{const t=()=>e.sessionPrefix.value+"stacktab-active-tab";let a=null,r=0,o=!1;const n=(e,t)=>{if("undefined"!=typeof window)try{window.sessionStorage.setItem(e,t)}catch(a){}},l=()=>{o=!1;const e=a;a=null,e&&e.version===r&&n(t(),JSON.stringify(e.tab))},s=()=>{r++,a=null},i=()=>{s(),(e=>{if("undefined"!=typeof window)try{window.sessionStorage.removeItem(e)}catch(t){}})(t())};return{getSessionKey:t,saveActiveTabToSession:e=>{e.id&&(a={tab:e,version:++r},o||(o=!0,queueMicrotask(l)))},clearSession:i,restoreActiveTabSession:e=>{null!==e?(s(),n(t(),e)):i()},restoreTabFromSession:e=>{if(null==e)return null;try{const a=JSON.parse(e,(e,t)=>"pages"===e&&Array.isArray(t)?new Re(t):t);return Me(t=a)&&"string"==typeof t.id&&"string"==typeof t.title&&"boolean"==typeof t.closable&&"boolean"==typeof t.refreshable&&"boolean"==typeof t.iframe&&"boolean"==typeof t.active&&t.pages instanceof Re?a:(i(),null)}catch{return i(),null}var t}}},at=e=>{const{tabs:t,iframeRefreshKeys:a,getTab:r,createPageId:o,addCache:n,evictPageCache:l,replacePageCaches:s,refreshIframeByPostMessage:i}=e,c=(e,a,r)=>{const s=e.pages.peek();if(!s)return;if(e.active)return s.refreshVersion=(s.refreshVersion??0)+1,void D(t);const i=s.id;if(s.id=o(),s.refreshVersion=0,a&&r)return a.push(i),void r.push(s.id);l(i),n(s.id)};return{refreshTab:e=>{const t=r(e);t?.refreshable&&(t.iframe?(e=>{"reload"!==e.iframeRefreshMode?i(e.id):a.value={...a.value,[e.id]:(a.value[e.id]??0)+1}})(t):c(t))},refreshAllTabs:()=>{const e=[],r=[],o={...a.value};let n=!1;for(const a of t.value)a.refreshable&&(a.iframe?"reload"===a.iframeRefreshMode?(o[a.id]=(o[a.id]??0)+1,n=!0):i(a.id):c(a,e,r));n&&(a.value=o),s(e,r)}}},rt=["aria-label"],ot=/*@__PURE__*/d({__name:"PageLoading",props:{tabId:{}},setup(e){const t=e,{t:a}=le(),r=Ge(),o=E(!1),n=e=>{e.tId===t.tabId&&(o.value=e.value)};return r.on(ze.PAGE_LOADING,n),I(()=>{r.off(ze.PAGE_LOADING,n)}),(e,t)=>o.value?(A(),i("div",{key:0,class:"stack-tab-loading-mask",role:"status","aria-live":"polite","aria-label":q(a)("VueStackTab.loading"),style:g({zIndex:(be(".cache-page-wrapper *"),pe(".cache-page-wrapper *"))})},[...t[0]||(t[0]=[c("div",{class:"stack-tab-loading--spin turn","aria-hidden":"true"},null,-1)])],12,rt)):s("",!0)}}),nt="stack-tab__shadow-inset-top",lt="stack-tab__shadow-inset-bottom",st="stack-tab__shadow-inset-vertical",it=e=>{if("undefined"==typeof document)return{sync:()=>{}};const t=!1!==e.watchResize,a=Math.max(0,e.edgeThreshold??5);let r=null,o=null,n=null;const l=()=>{null===r&&(r=requestAnimationFrame(()=>{r=null,(()=>{if(!o)return;const e=o,{scrollTop:t,scrollHeight:r,clientHeight:n}=e,l=t>a,s=r-n-t>a;e.classList.toggle(st,l&&s),e.classList.toggle(nt,l&&!s),e.classList.toggle(lt,!l&&s)})()}))};return queueMicrotask(()=>{const a="function"==typeof(r=e.target)?r():r.value;var r;a&&a!==o&&(o&&(o.removeEventListener("scroll",l),n?.disconnect(),n=null),o=a,a.addEventListener("scroll",l,{passive:!0}),t&&"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>l()),n.observe(a)),l())}),S(()=>{o&&(o.removeEventListener("scroll",l),o.classList.remove(nt,lt,st),o=null),n?.disconnect(),n=null,null!==r&&(cancelAnimationFrame(r),r=null)}),{sync:()=>l()}},ct=/* @__PURE__ */d({name:"StackTabEmptyPlaceholder",setup:()=>()=>null}),ut=()=>ct,dt=(e,t)=>({...we(e.query),__tab:e.query.__tab??We(t)}),ft=e=>{const t=e.matched[e.matched.length-1]?.path??e.path,a=e.path.endsWith("/")?e.path.slice(0,-1):e.path;return t===a?a:e.path},mt=e=>{const t=G(),a=e??Ke(),r=Ge(a),{t:l}=le(),{tabs:s,defaultTabs:i,caches:c,components:f,tabIdsToEvict:m,refreshKey:b,iframeRefreshKeys:p,isInitialized:v,cacheIdsToEvict:h}=a,{markCacheForEviction:g,markTabPagesForEviction:k,markTabPagesForEvictionOnly:_,addCache:S,removeCache:A,evictMarkedCaches:x,evictPageCache:R,replacePageCaches:C}=(e=>{const{caches:t,components:a,cacheIdsToEvict:r,tabIdsToEvict:o}=e,n=new Set(t.value);let l=t.value;const s=()=>{if(l!==t.value){l=t.value,n.clear();for(const e of l)n.add(e)}},i=e=>{r.add(e)},c=e=>{if(s(),n.has(e)){n.delete(e);const a=l.indexOf(e);a>=0&&l.splice(a,1),D(t)}};return{markCacheForEviction:i,markTabPagesForEviction:e=>{for(const t of e.pages.list())i(t.id);o.add(e.id)},markTabPagesForEvictionOnly:e=>{for(const t of e.pages.list())i(t.id)},addCache:e=>{s(),n.has(e)||(n.add(e),l.push(e),D(t))},removeCache:c,evictPageCache:e=>{e&&(r.delete(e),c(e),a.delete(e))},replacePageCaches:(e,o)=>{s();const i=new Set(e);let c=!1;if(i.size>0){for(let e=l.length-1;e>=0;e--){const t=l[e];t&&i.has(t)&&(l.splice(e,1),c=!0)}for(const e of i)n.delete(e),r.delete(e),a.delete(e)}for(const t of o)n.has(t)||(n.add(t),l.push(t),c=!0);c&&D(t)},evictMarkedCaches:()=>{if(r.size<=0)return;s();const e=new Set(r);for(let t=l.length-1;t>=0;t--){const a=l[t];a&&e.has(a)&&l.splice(t,1)}for(const t of e)n.delete(t),a.delete(t);D(t),r.clear()}}})(a),{restoreScroller:L,saveScroller:P,removeScroller:M,addPageScroller:O}=et(a),{saveActiveTabToSession:V,clearSession:B,restoreTabFromSession:q,restoreActiveTabSession:F,getSessionKey:j}=tt(a),$=e=>{s.value=[...s.value,e]},N=e=>s.value.find(t=>t.id===e)??null,K=e=>{let t=null;return s.value=s.value.map(a=>(a.active=a.id===e,a.active&&(t=a),a)),t},{resolvePageComponent:H}=(e=>{const{runtimeContext:t,getTab:a,addCache:r,evictMarkedCaches:n,addPageScroller:l,saveScroller:s,restoreScroller:i,removeScroller:c}=e,{components:f,tabIdsToEvict:m}=t;return{resolvePageComponent:e=>{const{cacheName:b,tabInfo:p}=e,v=f.get(b);if(v)return r(b),v;const h=/* @__PURE__ */d({name:b,props:{vnode:{type:Object,required:!1,default:void 0}},emits:["onLoaded"],setup(e,r){const d=E(null),f=W(null),v=W(null),h=W(null),g=E(null),k=()=>{try{const e=a(p.id)?.pages.peek();e&&e.id===b&&e._backParams?(d.value={...e._backParams},delete e._backParams):d.value=null}catch{d.value=null}};return w(()=>{r.emit("onLoaded"),l(b,`#W-${b}`),k()}),T(()=>s(b)),y(()=>{r.emit("onLoaded"),i(b),n(),m.clear(),k()}),I(()=>c(b)),it({target:g}),()=>{const a=e.vnode,r=d.value;return a===f.value&&r===h.value||(v.value=a?o(a,{tId:p.id,pId:b,...r?{_back:r}:{}}):null,f.value=a,h.value=r),u("div",{ref:g,class:"cache-page-wrapper",id:`W-${b}`,style:[t.useGlobalScroll.value?"overflow:auto":"overflow:hidden","height: 100%"]},[v.value,u(ot,{tabId:p.id},null)])}}});return f.set(b,h),r(b),h}}})({runtimeContext:a,getTab:N,addCache:S,evictMarkedCaches:x,addPageScroller:O,saveScroller:P,restoreScroller:L,removeScroller:M}),U=e=>({id:e.id,title:e.title,closable:e.closable,refreshable:e.refreshable,iframe:e.iframe,iframeRefreshMode:e.iframeRefreshMode}),X=e=>{const a=(e=>{if("string"==typeof e.query.__tab){const t=Ve(e.query.__tab);if(t.id)return t}const t=ft(e),a=s.value.find(e=>e.active),r=a?.pages.peek();if(a&&r?.path===t)return U(a);const o=s.value.find(e=>e.pages.peek()?.path===t);return o?U(o):{id:crypto.randomUUID(),title:l("VueStackTab.undefined"),closable:!0,refreshable:!0,iframe:!1}})(e);if(m.has(a.id))return{empty:!0};const o=ft(e);let n,i=a.id?N(a.id):null,c=null;if(i&&!i.pages.isEmpty()){const t=i.pages.peek();if(!t)throw new Error("[vue-stack-tabs] Stack is not empty but peek() returned undefined");if(t.path===o)n=t.id;else{const t=i.pages.readonlyList();let r=-1;for(let e=t.length-2;e>=0;e--){const a=t[e];if(a&&a.path===o){r=e;break}}if(-1!==r){const o=t.length-1-r;for(let e=0;e<o;e++){const e=i.pages.pop();e&&g(e.id)}const l=i.pages.peek();n=l?l.id:Be(),l||(c={id:n,tabId:a.id,path:e.path,query:dt(e,a)})}else n=Be(),c={id:n,tabId:a.id,path:e.path,query:dt(e,a)}}}else n=Be(),c={id:n,tabId:a.id,path:e.path,query:dt(e,a)};if(h.has(n)){h.delete(n);const e=f.get(n);if(e)return{recovered:e,cacheName:n}}return c?i=((e,t,a,o)=>{let n=e.id?N(e.id):null;if(null===n){const a=new Re;a.push(o);const l=t.query.__src;n={id:e.id,title:e.title,closable:e.closable,refreshable:e.refreshable,iframe:e.iframe,iframeRefreshMode:e.iframeRefreshMode??"postMessage",url:ke(l),active:!0,pages:a},K(""),$(n),r.emit(ze.TAB_ACTIVE,{id:e.id,isRoute:!1})}else K(n.id),(n.pages.isEmpty()||n.pages.peek().id!==o.id)&&n.pages.push(o);return n})(a,e,0,c):K(i.id),"string"!=typeof e.query.__tab&&t.replace({path:e.path,query:{...we(e.query),__tab:We(a)},hash:e.hash}),V(i),{cacheName:n,tabInfo:a,targetTab:i}},J=E(""),Y=n(()=>s.value.find(e=>e.active)?.pages.peek()?.refreshVersion??0);let Q="",Z=null;const ee=e=>{const t=[],a=s.value.filter((a,r)=>!a.closable||!e(a,r)||(k(a),a.pages.clear(),t.push(a),!1));return s.value=a,t},te=()=>{if(ee(()=>!0),s.value.some(e=>e.active))return x(),void m.clear();const e=s.value.at(-1);e&&r.emit(ze.TAB_ACTIVE,{id:e.id})},{refreshTab:ae,refreshAllTabs:re}=at({tabs:s,iframeRefreshKeys:p,getTab:N,createPageId:Be,addCache:S,evictPageCache:R,replacePageCaches:C,refreshIframeByPostMessage:e=>r.emit(ze.REFRESH_IFRAME_POSTMESSAGE,e)});return{tabs:s,caches:c,refreshKey:b,activeCacheKey:J,activePageRefreshVersion:Y,isInitialized:v,setMaxSize:e=>{a.maxTabCount.value=e},canAddTab:()=>a.maxTabCount.value<=0||a.maxTabCount.value>0&&a.maxTabCount.value>s.value.length,initialize:e=>{const t=[],a=[];for(const n of e){const e=Pe(n,{refreshable:!0,closable:!0,iframe:!1});e.id=n.id??crypto.randomUUID();const r=e.id,o=Te(e.path),l=Be(),s={id:l,tabId:r,path:o.path,query:Pe(Ae(o.query),{__tab:We(e)})},i=new Re;i.push(s);const c={id:r,title:e.title??"",closable:e.closable,refreshable:e.refreshable,iframe:e.iframe,iframeRefreshMode:"reload"===e.iframeRefreshMode?"reload":"postMessage",active:!1,pages:i};S(l),t.push(c),a.push({...c})}i.value=[...i.value,...t],s.value=[...s.value,...a];const r="undefined"!=typeof window?sessionStorage.getItem(j()):null,o=q(r);o&&!s.value.some(e=>e.id===o.id)&&(o.url&&(o.url=ye(o.url)),o.iframe&&o.url&&void 0===o.iframeRefreshMode&&(o.iframeRefreshMode=_e(o.url)?"reload":"postMessage"),o.pages&&"function"==typeof o.pages.list&&o.pages.list().forEach(e=>{e&&e.id&&S(e.id)}),s.value=[...s.value,o]),v.value=!0},size:()=>s.value.length,active:(e,a=!0)=>{r.emit(ze.FORWARD);const o=N(e);if(!o)return Promise.resolve();if(o.active)return Promise.resolve();const n=o.pages.peek(),l=()=>{const t=K(e);t&&V(t)};if(!a)return l(),Promise.resolve();if(!n)return l(),Promise.resolve();const i=We({id:o.id,title:o.title,closable:o.closable,refreshable:o.refreshable,iframe:o.iframe}),c=Pe(n.query||{},{__tab:i});return Ue({apply:()=>{const e=s.value.find(e=>e.active)?.id,t="undefined"!=typeof window?window.sessionStorage.getItem(j()):null;return l(),{prevActiveId:e,sessionSnapshot:t}},navigate:()=>t.push({path:n.path,query:c}),rollback:e=>{K(e.prevActiveId??""),F(e.sessionSnapshot)},isFailureResult:z,rejectFailureResult:!0})},getCacheName:()=>Be(),destroy:()=>{s.value=[],i.value=[],h.clear(),m.clear(),p.value={},c.value=[],f.clear(),a.scrollPositionsByPageId.clear(),a.isInitialized.value=!1,a.refreshKey.value=0,B()},reset:()=>te(),addCache:S,removeCache:A,getTab:N,moveTab:(e,t)=>{const a=s.value.findIndex(t=>t.id===e);if(a<0||t<0||t>=s.value.length||a===t)return!1;const r=s.value.slice(),[o]=r.splice(a,1);return!!o&&(r.splice(t,0,o),s.value=r,!0)},addTab:$,removeTab:e=>{let t="";const a=N(e),o=s.value,n=o.findIndex(t=>t?.id===e);if(n<0)return"";const l=o[n];return l.closable?(k(l),l.pages.clear(),o.length>1&&l.active&&(t=(0===n?o[1]:o[n-1])?.id??""),s.value=[...o.slice(0,n),...o.slice(n+1)],t&&r.emit(ze.TAB_ACTIVE,{id:t}),a?.active||(x(),m.clear()),t):e},removeAllTabs:te,removeLeftTabs:e=>{const t=s.value.findIndex(t=>t?.id===e);if(t<=0)return;if(ee((e,a)=>a<t),s.value.some(e=>e.active))return x(),void m.clear();const a=s.value[0];a&&r.emit(ze.TAB_ACTIVE,{id:a.id})},removeRightTabs:e=>{const t=s.value.findIndex(t=>t?.id===e);if(t<0||t>=s.value.length-1)return;if(ee((e,a)=>a>t),s.value.some(e=>e.active))return x(),void m.clear();const a=s.value.at(-1);a&&r.emit(ze.TAB_ACTIVE,{id:a.id})},removeOtherTabs:e=>{const t=N(e);ee(t=>t.id!==e),t&&!t.active?r.emit(ze.TAB_ACTIVE,{id:e}):(x(),m.clear())},hasTab:e=>s.value.some(t=>t.id===e),renewTab:e=>{const t=N(e.id);if(!t)return;const a=t.pages.list().map(e=>Se(e)),r=[...c.value],o=new Map(f);return _(t),x(),t.pages.clear(),()=>{t.pages.clear();for(const e of a)t.pages.push(Se(e));c.value=[...r],f.clear();for(const[e,t]of o)f.set(e,t)}},addPage:(e,t)=>{if(!t)return ut();const a=e.fullPath+(e.query.__tab||"");if(a===Q&&Z)return Z;const r=X(e);if("empty"in r)return ut();if("recovered"in r)return S(r.cacheName),J.value=r.cacheName,Q=a,Z=r.recovered,r.recovered;J.value=r.cacheName;const o=H(r);return Q=a,Z=o,o},addComponent:(e,t)=>f.set(e,t),getComponent:e=>f.get(e),removeComponent:e=>f.delete(e),markCacheForEviction:g,evictMarkedCaches:x,evictPageCache:R,refreshTab:ae,refreshAllTabs:re,iframeRefreshKeys:p,addPageScroller:O,setGlobalScroll:e=>{a.useGlobalScroll.value=e},clearSession:B,setSessionPrefix:e=>{a.sessionPrefix.value=e}}};function bt(e){const t=G(),a=e??Ke(),{active:r,hasTab:o,refreshKey:n,reset:l,canAddTab:s,renewTab:i,getTab:c,tabs:u,moveTab:d,removeTab:f,removeAllTabs:m,refreshTab:b,refreshAllTabs:p}=mt(a),v=(e,r)=>{const o=We(r),n=Ae(e.query);let l,s=Pe(n,{__tab:o});if(e.iframe)s={...s,__src:encodeURIComponent(e.path),__tab:o},l=a.iframePath.value;else{const t=Te(e.path);l=t.path,s=Pe(Ae(t.query),s,{__tab:o}),s={...s,__tab:o}}return ge(e.path)?Ue({apply:()=>{},navigate:()=>t.push({path:l,query:s}),rollback:()=>{},isFailureResult:z,rejectFailureResult:!0}):Promise.reject(/* @__PURE__ */new Error("Invalid tab URL"))};return{openTab:(e,t=!1)=>new Promise((a,l)=>{const u=(e=>{const t={refreshable:!0,closable:!0,iframe:!1};e.iframe&&void 0===e.iframeRefreshMode?t.iframeRefreshMode=_e(e.path??"")?"reload":"postMessage":e.iframe&&(t.iframeRefreshMode=e.iframeRefreshMode??"postMessage");const a=Pe(e,t);return a.id||(a.id=crypto.randomUUID()),a})(e),d=Boolean(u.id&&o(u.id));if(d&&!t)return void Promise.resolve(r(u.id)).then(()=>a(u.id),l);let f,m;if(u.id&&t&&d){const t=c(u.id);f=i(e),t?.active&&(m=n.value,n.value++)}d||s()?v(e,u).then(()=>a(u.id),e=>{f?.(),void 0!==m&&(n.value=m),l(e)}):l(/* @__PURE__ */new Error("Max Size"))}),closeTab:f,closeAllTabs:m,refreshTab:b,refreshAllTabs:p,activeTab:r,moveTab:d,reset:l,tabs:u,setIFramePath:e=>{a.iframePath.value=e},getWrapper:(e={})=>{if("undefined"==typeof document)return;const t=e.pageId??(e.tabId?c(e.tabId)?.pages.peek()?.id:void 0);return t?document.getElementById(`W-${t}`)??void 0:document.querySelector(".cache-page-wrapper")??void 0},openInNewWindow:e=>{const t=c(e);t?.iframe&&t.url&&ge(t.url)&&window.open(t.url,"_blank","noopener,noreferrer")}}}var pt=["disabled"],vt=(e,t)=>{const a=e.__vccOpts||e;for(const[r,o]of t)a[r]=o;return a},ht=/*#__PURE__*/vt(/*@__PURE__*/d({__name:"ContextMenuItem",props:{icon:{default:""},title:{},disabled:{type:Boolean,default:!1}},setup:e=>(t,a)=>(A(),i("button",{type:"button",role:"menuitem",class:"stack-tab__contextmenu-item",disabled:e.disabled},[c("span",{class:h(["stack-tab__contextmenu-icon",e.icon]),"aria-hidden":"true"},null,2),c("span",{class:"stack-tab__contextmenu-title",onContextmenu:a[0]||(a[0]=K(()=>{},["prevent"]))},V(e.title),33)],8,pt))}),[["__scopeId","data-v-3d616fa0"]]),gt={key:1,class:"divider div-transparent",role:"separator","aria-orientation":"horizontal"},yt=/*#__PURE__*/vt(/*@__PURE__*/d({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{default:()=>[]},restoreFocusElement:{default:null},tabItem:{},max:{}},emits:["close"],setup(t,{emit:a}){const r=t,o=a,{t:n}=le(),c=E(),d=R({left:r.left,top:r.top}),{closeTab:f,closeAllTabs:m,refreshTab:b,refreshAllTabs:p,openInNewWindow:h}=bt(),{removeLeftTabs:y,removeRightTabs:k,removeOtherTabs:_}=mt(),T=()=>{r.restoreFocusElement&&document.contains(r.restoreFocusElement)?r.restoreFocusElement.focus():document.querySelector('[role="tab"][aria-selected="true"]')?.focus()},S=()=>{o("close"),v(T)},I=e=>{e?.(),S()},x=()=>{const e=c.value;return e?Array.from(e.querySelectorAll('[role="menuitem"]')).filter(e=>!e.disabled):[]},C=e=>{const t=x();t.length<=0||t[(e+t.length)%t.length]?.focus()},P=()=>x().findIndex(e=>e===document.activeElement),M=e=>{if("Escape"===e.key)return e.preventDefault(),void S();if("ArrowDown"===e.key){e.preventDefault();const t=P();return void C(-1===t?0:t+1)}if("ArrowUp"===e.key){e.preventDefault();const t=P();return void C(-1===t?-1:t-1)}if("Home"===e.key)return e.preventDefault(),void C(0);"End"===e.key&&(e.preventDefault(),C(x().length-1))},O=e=>e.key??`${e.title}-${e.icon??""}`;return w(()=>{const e=c.value?.clientWidth??0;d.left+e>window.innerWidth&&(d.left=window.innerWidth-e-5),C(0)}),(a,r)=>(A(),i("div",{ref_key:"menuElementRef",ref:c,class:"stack-tab__contextmenu",role:"menu",tabindex:"-1",style:g({left:`${d.left}px`,top:`${d.top}px`,"z-index":(be(".stack-tab,.stack-tab *"),pe(".stack-tab,.stack-tab *"))}),onKeydown:M},[u(ht,{icon:"stack-tab__icon-reload svg-mask",title:q(n)("VueStackTab.reload"),disabled:!t.tabItem.refreshable,onClick:r[0]||(r[0]=e=>I(()=>q(b)(t.tabItem.id)))},null,8,["title","disabled"]),u(ht,{icon:"stack-tab__icon-reload-all svg-mask",title:q(n)("VueStackTab.reloadAll"),onClick:r[1]||(r[1]=e=>I(q(p)))},null,8,["title"]),u(ht,{icon:"stack-tab__icon-close svg-mask",title:q(n)("VueStackTab.close"),disabled:!t.tabItem.closable,onClick:r[2]||(r[2]=e=>I(()=>q(f)(t.tabItem.id)))},null,8,["title","disabled"]),u(ht,{icon:"stack-tab__icon-close-lefts svg-mask",title:q(n)("VueStackTab.closeLeft"),disabled:t.index<=0,onClick:r[3]||(r[3]=e=>I(()=>q(y)(t.tabItem.id)))},null,8,["title","disabled"]),u(ht,{icon:"stack-tab__icon-close-rights svg-mask",title:q(n)("VueStackTab.closeRight"),disabled:t.index>=t.max-1,onClick:r[4]||(r[4]=e=>I(()=>q(k)(t.tabItem.id)))},null,8,["title","disabled"]),u(ht,{icon:"stack-tab__icon-close-others svg-mask",title:q(n)("VueStackTab.closeOthers"),onClick:r[5]||(r[5]=e=>I(()=>q(_)(t.tabItem.id)))},null,8,["title"]),u(ht,{icon:"stack-tab__icon-close-all svg-mask",title:q(n)("VueStackTab.closeAll"),onClick:r[6]||(r[6]=e=>I(q(m)))},null,8,["title"]),t.tabItem.iframe&&t.tabItem.url?(A(),l(ht,{key:0,icon:"stack-tab__icon-open svg-mask",title:q(n)("VueStackTab.openInNewWindow"),onClick:r[7]||(r[7]=e=>I(()=>q(h)(t.tabItem.id)))},null,8,["title"])):s("",!0),void 0!==t.contextMenu&&t.contextMenu.length>0?(A(),i("div",gt)):s("",!0),(A(!0),i(e,null,L(t.contextMenu,e=>(A(),l(ht,{key:O(e),"data-menu-key":O(e),icon:e.icon,title:e.title,disabled:e.disabled(t.tabItem),onClick:a=>I(()=>!e.disabled(t.tabItem)&&e.callback(t.tabItem.id))},null,8,["data-menu-key","icon","title","disabled","onClick"]))),128))],36))}}),[["__scopeId","data-v-cfc33246"]]),kt=e=>`stack-tab-tab-${encodeURIComponent(e)}`,_t=e=>`stack-tab-panel-${encodeURIComponent(e)}`,Tt=["id","data-tab-id","aria-controls","aria-selected","tabindex","title"],wt={class:"stack-tab__item-title"},St={class:"stack-tab__item-title-content"},It=["title","aria-label","tabindex"],At=/*@__PURE__*/d({__name:"TabHeaderItem",props:{item:{},dropPosition:{}},emits:["close","active","contextmenu","dragstart","dragover","drop","dragend"],setup(e,{emit:t}){const a=t,r=Ge(),{t:o}=le(),l=E(),u=E(!1),d=e,f=e=>{d.item.id===e.id&&g(e.isRoute??!0)};r.on(ze.TAB_ACTIVE,f),I(()=>{r.off(ze.TAB_ACTIVE,f)});const m=n(()=>d.item.title||o("VueStackTab.undefined")),b=()=>{a("close",d.item)},p=e=>{u.value=!0,e.dataTransfer?.setData("text/plain",d.item.id),e.dataTransfer&&(e.dataTransfer.effectAllowed="move"),a("dragstart",d.item,e)},v=e=>{u.value=!1,a("dragend",d.item,e)},g=(e=!0)=>{a("active",d.item,l.value,e)},y=e=>{if("Enter"===e.key||" "===e.key)return e.preventDefault(),void g(!0);"Delete"!==e.key&&"Backspace"!==e.key||!d.item.closable||(e.preventDefault(),b())};return(t,a)=>(A(),i("li",{ref_key:"tabElementRef",ref:l,role:"presentation",class:h(["stack-tab__item",{"is-active":e.item.active,"is-icon":e.item.closable,"is-dragging":u.value,"is-drop-before":"before"===e.dropPosition,"is-drop-after":"after"===e.dropPosition}]),draggable:!0,onClick:a[1]||(a[1]=K(e=>g(!0),["self"])),onContextmenu:a[2]||(a[2]=e=>t.$emit("contextmenu",e)),onDragstart:p,onDragend:v,onDragover:a[3]||(a[3]=K(a=>t.$emit("dragover",e.item,a),["prevent"])),onDrop:a[4]||(a[4]=K(a=>t.$emit("drop",e.item,a),["prevent"]))},[c("button",{id:q(kt)(e.item.id),type:"button",role:"tab",class:"stack-tab__item-tab","data-tab-id":e.item.id,"aria-controls":q(_t)(e.item.id),"aria-selected":e.item.active?"true":"false",tabindex:e.item.active?0:-1,title:m.value,onClick:a[0]||(a[0]=e=>g(!0)),onKeydown:y},[c("span",wt,[c("span",St,V(m.value),1)])],40,Tt),e.item.closable?(A(),i("button",{key:0,type:"button",class:"stack-tab__icon-close-fill stack-tab__item-button",title:q(o)("VueStackTab.close"),"aria-label":`${q(o)("VueStackTab.close")} ${m.value}`,tabindex:e.item.active?0:-1,onClick:K(b,["stop"])},null,8,It)):s("",!0)],34))}}),xt=["disabled","title","aria-label"],Rt={key:1,class:"stack-tab__button"},Ct=/*@__PURE__*/d({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{default:""},ariaLabel:{default:""}},setup(e){const t=e,a=n(()=>t.ariaLabel||t.title);return(t,r)=>(A(),i("button",{type:"button",class:h(["stack-tab__header-button",{"stack-tab__shadow-right":"right"===e.shadow,"stack-tab__shadow-left":"left"===e.shadow}]),disabled:e.disabled,title:e.title,"aria-label":a.value},["icon"in t.$slots?s("",!0):(A(),i("span",{key:0,class:h(["stack-tab__mask-button",e.iconClass])},null,2)),"icon"in t.$slots?(A(),i("span",Rt,[P(t.$slots,"icon")])):s("",!0)],10,xt))}}),Et=/*@__PURE__*/d({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(t,{expose:a}){const{t:r}=le(),o=E(null),u=E(null),d=E(null),f=E(!1),m=E(!1),b=E(!1),p=E(!1),v=E(),y=t,k=R({clientWidth:0,scrollWidth:0,scrollLeft:0}),_=R({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});j(k,e=>{T(e)}),j(()=>y.isScrollButton,()=>T(k));const T=e=>{const t=e.scrollWidth>e.clientWidth;m.value=e.scrollLeft<=10,b.value=e.clientWidth+e.scrollLeft-e.scrollWidth>=-10,p.value=y.isScrollButton&&t},S=n(()=>k.scrollWidth>k.clientWidth),x=n(()=>{if(!S.value)return 0;const{clientWidth:e,scrollWidth:t}=k;return e/t*e}),C=n(()=>{if(!S.value)return 0;const{clientWidth:e,scrollWidth:t,scrollLeft:a}=k;return(e-x.value)*(a/(t-e))}),L=()=>{if(!o.value)return;const{clientWidth:e,scrollWidth:t,scrollLeft:a}=o.value;Object.assign(k,{clientWidth:e,scrollWidth:t,scrollLeft:a})},M=()=>{const e=o.value?.querySelector(".stack-tab__item.is-active");e&&!U(e)&&G(e)};let O=null,W=null;const V=(e,t=!0)=>{fe({wrap:o.value,left:e,top:0,smooth:t})},B=e=>{V(o.value.scrollLeft+e)},D=e=>{if(!y.isScrollWheel||!o.value)return;const t=e.deltaY<0;V(o.value.scrollLeft+(t?-y.space:y.space))},$=e=>{Object.assign(_,{startPageX:e.pageX,startScrollLeft:o.value?.scrollLeft,startThumbLeft:C.value,thumbLeft:C.value}),f.value=!0,document.addEventListener("mousemove",z),document.addEventListener("mouseup",H)},z=e=>{const{clientWidth:t,scrollWidth:a}=k;let r=_.startThumbLeft+e.pageX-_.startPageX;const o=t-x.value;r<0?r=0:r>o&&(r=o),_.thumbLeft=r,V(r*(a-t)/(t-x.value),!1),e.preventDefault()},H=()=>{f.value=!1,document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",H)};w(()=>{if("undefined"==typeof ResizeObserver)return;O=new ResizeObserver(()=>{L(),M()}),W=new ResizeObserver(()=>{S.value||M(),L()}),v.value&&O.observe(v.value);const e=o.value?.querySelector(".stack-tab__nav");e&&W.observe(e)}),I(()=>{O?.disconnect(),W?.disconnect(),O=null,W=null});const G=e=>{!function({el:e,wrap:t,block:a="start",inline:r="nearest"}){const o=t&&"object"==typeof t&&"value"in t?t.value:t;if(e&&o)if(e.scrollIntoView)e.scrollIntoView({behavior:"smooth",block:a,inline:r});else{const{offsetLeft:t,offsetTop:n}=e;let l,s;s="center"===a?n+(e.clientHeight-o.clientHeight)/2:n,l="center"===r?t+(e.clientWidth-o.clientWidth)/2:t,fe({wrap:o,left:l,top:s})}}({el:e,wrap:o.value,block:"end",inline:"center"})},U=e=>{if(!S.value)return!0;const t=e.offsetLeft,a=o.value.scrollLeft;return!(t<a||t+e.clientWidth>a+o.value.clientWidth)};return a({scrollIntoView:G,isInView:U}),(a,n)=>(A(),i(e,null,[p.value?(A(),l(Ct,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:m.value,title:q(r)("VueStackTab.scrollLeft"),"aria-label":q(r)("VueStackTab.scrollLeft"),onClick:n[0]||(n[0]=e=>!m.value&&B(-1*t.space))},null,8,["disabled","title","aria-label"])):s("",!0),c("div",{ref_key:"headerScroll",ref:v,class:"stack-tab__scroll",onWheelPassive:D},[c("div",{ref_key:"container",ref:o,class:h(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!m.value&&b.value,"stack-tab__shadow-inset-right":!b.value&&m.value,"stack-tab__shadow-inset-all":!m.value&&!b.value}]),onScrollPassive:L},[P(a.$slots,"default")],34),N(c("div",{ref_key:"bar",ref:u,class:h(["stack-tab__scrollbar",{"is-dragging":f.value}])},[c("div",{ref_key:"thumb",ref:d,class:h(["stack-tab__scrollbar-thumb",{"is-dragging":f.value}]),style:g({width:`${x.value}px`,transform:`translateX(${C.value}px)`}),onMousedown:K($,["prevent"])},null,38)],2),[[F,S.value]])],544),p.value?(A(),l(Ct,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:b.value,title:q(r)("VueStackTab.scrollRight"),"aria-label":q(r)("VueStackTab.scrollRight"),onClick:n[1]||(n[1]=e=>!b.value&&B(t.space))},null,8,["disabled","title","aria-label"])):s("",!0)],64))}}),Lt=/*@__PURE__*/d({__name:"index",props:{space:{},tabScrollMode:{default:xe.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(t,{emit:o}){const{t:c}=le(),d=b(qe,E(!1)),f=o,m=E(),h=E(),{shown:g,contextMenuData:y,showContextMenu:k}=(()=>{const e=R({item:{},index:-1,left:0,top:0,max:0}),t=E(!1),a=()=>{t.value=!1,document.removeEventListener("click",o),document.removeEventListener("focusin",n,!0),window.removeEventListener("blur",l)};let r=0;const o=e=>{e.target.closest?.(".stack-tab__contextmenu")||Date.now()-r<250||a()},n=e=>{e.target instanceof HTMLIFrameElement&&a()},l=()=>{window.requestAnimationFrame(()=>{document.activeElement instanceof HTMLIFrameElement&&a()})};return I(()=>{a()}),{shown:t,contextMenuData:e,showContextMenu:async(a,s,i,c)=>{r=Date.now(),t.value=!1,document.removeEventListener("click",o),document.removeEventListener("focusin",n,!0),window.removeEventListener("blur",l),await v();const{clientY:u,clientX:d}=a;t.value=!0,Object.assign(e,{item:s,index:i,top:u,left:d,max:c}),await v(),document.addEventListener("click",o),document.addEventListener("focusin",n,!0),window.addEventListener("blur",l)}}})(),_=E(null),T=()=>{g.value=!1},w=t,{closeTab:S,activeTab:x,moveTab:C,tabs:M}=bt(),O=E(null),W=E(null),V=n(()=>!1!==w.contextmenu),B=n(()=>Array.isArray(w.contextmenu)?w.contextmenu:[]),D=(e,t,a,r)=>{V.value&&(e.preventDefault(),_.value=(e=>{const t=(e.target instanceof Element?e.target:null)?.closest('[role="tab"]');return t||((e.currentTarget instanceof HTMLElement?e.currentTarget:null)?.querySelector('[role="tab"]')??null)})(e),k(e,t,a,r))},F=e=>{O.value=e.id},j=(e,t)=>{if(!O.value||O.value===e.id)return void(W.value=null);const a=t.currentTarget instanceof HTMLElement?t.currentTarget:null;if(!a)return;const{left:r,width:o}=a.getBoundingClientRect();W.value={tabId:e.id,position:t.clientX<r+o/2?"before":"after"},t.dataTransfer&&(t.dataTransfer.dropEffect="move")},N=e=>{const t=O.value,a=W.value;if(O.value=null,W.value=null,!t||t===e.id||a?.tabId!==e.id)return;const r=M.value.findIndex(e=>e.id===t),o=M.value.findIndex(t=>t.id===e.id);if(r<0||o<0)return;let n=o;"before"===a.position&&r<o&&n--,"after"===a.position&&r>o&&n++,C(t,n)},z=()=>{O.value=null,W.value=null},H=e=>e.target instanceof Element&&Boolean(e.target.closest(".stack-tab__item")),G=e=>{if(!O.value||H(e))return;const t=M.value[M.value.length-1];t&&t.id!==O.value&&(W.value={tabId:t.id,position:"after"},e.dataTransfer&&(e.dataTransfer.dropEffect="move"))},U=e=>{if(H(e))return;const t=M.value[M.value.length-1];t&&N(t)},X=n(()=>"string"==typeof w.tabTransition?{name:w.tabTransition}:w.tabTransition),J=e=>{const t=M.value[e];var a;t&&(te(t,void 0,!0),a=String(t.id),v(()=>{const e=h.value?.querySelector(`.stack-tab__nav [role="tab"][data-tab-id="${CSS.escape(a)}"]`);e&&(e.focus(),m.value&&!m.value.isInView(e)&&m.value.scrollIntoView(e))}))},Y=e=>{const t=M.value.length;if(t<=0)return;const a=M.value.findIndex(e=>e.active);return"ArrowRight"===e.key?(e.preventDefault(),void J(-1===a?0:(a+1)%t)):"ArrowLeft"===e.key?(e.preventDefault(),void J(-1===a?t-1:(a-1+t)%t)):"Home"===e.key?(e.preventDefault(),void J(0)):void("End"===e.key&&(e.preventDefault(),J(t-1)))},Q=n(()=>w.tabScrollMode===xe.BOTH||w.tabScrollMode===xe.BUTTON),Z=n(()=>w.tabScrollMode===xe.BOTH||w.tabScrollMode===xe.WHEEL),ee=e=>{e.closable&&S(e.id),g.value=!1},te=(e,t,a)=>{m.value&&t&&v(()=>{m.value.isInView(t)||m.value.scrollIntoView(t)}),Promise.resolve(x(e.id,a)).then(()=>f("active",e.id)).catch(e=>{})};return(o,n)=>(A(),i("div",{ref_key:"headerRef",ref:h,class:"stack-tab__header"},[P(o.$slots,"leftButton"),u(Et,{ref_key:"scrollContainerRef",ref:m,space:t.space,"is-scroll-wheel":Z.value,"is-scroll-button":Q.value},{default:$(()=>[u(r,p({key:"tab-list-transition",tag:"ul",class:"stack-tab__nav",role:"tablist","aria-orientation":"horizontal"},X.value,{appear:"",onKeydown:Y,onDragover:K(G,["prevent"]),onDrop:K(U,["prevent"])}),{default:$(()=>[(A(!0),i(e,null,L(q(M),(e,t)=>(A(),l(At,{key:e.id,item:e,"drop-position":W.value?.tabId===e.id?W.value.position:void 0,onContextmenu:a=>D(a,e,t,q(M).length),onMouseup:K(t=>ee(e),["middle","prevent"]),onClose:ee,onActive:te,onDragstart:F,onDragover:j,onDrop:N,onDragend:z},null,8,["item","drop-position","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),P(o.$slots,"rightButton"),u(Ct,{"icon-class":q(d)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:q(d)?q(c)("VueStackTab.restore"):q(c)("VueStackTab.maximum"),"aria-label":q(d)?q(c)("VueStackTab.restore"):q(c)("VueStackTab.maximum"),onClick:n[0]||(n[0]=e=>d.value=!q(d))},null,8,["icon-class","title","aria-label"]),u(a,{name:"stack-tab-zoom",appear:""},{default:$(()=>[q(g)?(A(),l(yt,{key:"context-menu-transition",left:q(y).left,top:q(y).top,"tab-item":q(y).item,max:q(y).max,index:q(y).index,"context-menu":B.value,"restore-focus-element":_.value,onClose:T},null,8,["left","top","tab-item","max","index","context-menu","restore-focus-element"])):s("",!0)]),_:1})],512))}}),Pt=/*@__PURE__*/d({__name:"StackCacheRenderer",props:{route:{},component:{}},setup(e){const t=e,{refreshKey:a,activeCacheKey:r,activePageRefreshVersion:o,addPage:n}=mt(),l=W(ut());return j([()=>t.route.fullPath,()=>{return e=t.component,e?.type??e;var e},()=>a.value],()=>{l.value=n(t.route,t.component)},{immediate:!0}),(t,n)=>P(t.$slots,"default",{wrappedComponent:l.value,activeCacheKey:q(r),refreshKey:q(a),activePageRefreshVersion:q(o),component:e.component})}}),Mt=/*@__PURE__*/d({__name:"StackKeepAlive",props:{transitionName:{default:"stack-tab-swap"}},emits:["loaded"],setup(e,{emit:r}){const o=r,{caches:n}=mt(),s=()=>{o("loaded")};return(r,o)=>{const i=M("router-view");return A(),l(i,null,{default:$(({Component:r,route:o})=>[u(Pt,{route:o,component:r},{default:$(({wrappedComponent:r,activeCacheKey:o,activePageRefreshVersion:i,component:c})=>[u(a,{name:e.transitionName,appear:"",mode:"out-in"},{default:$(()=>[(A(),l(t,{include:q(n)},[(A(),l(O(r),{key:`${o}-${i}`,vnode:c,onOnLoaded:s},null,40,["vnode"]))],1032,["include"]))]),_:2},1032,["name"])]),_:1},8,["route","component"])]),_:1})}}}),Ot=/* @__PURE__ */new Set(["vue-stack-tabs:openTab","openTab"]),Wt=e=>"string"==typeof e||"number"==typeof e||null==e,Vt=e=>"boolean"==typeof e?e:void 0,Bt=e=>{if(!Me(e))return null;const{id:t,title:a,path:r,query:o,iframe:n,closable:l,refreshable:s,iframeRefreshMode:i}=e;if("string"!=typeof a||""===a.trim())return null;if("string"!=typeof r||""===r.trim()||!ge(r))return null;const c=(e=>{if(!Me(e))return;const t={};for(const[a,r]of Object.entries(e))(Wt(r)||Array.isArray(r)&&r.every(Wt))&&(t[a]=r);return Object.keys(t).length>0?t:void 0})(o),u=Vt(n),d=Vt(l),f=Vt(s),m=(e=>{if("reload"===e||"postMessage"===e)return e})(i);return{..."string"==typeof t&&t?{id:t}:{},title:a,path:r,...c?{query:c}:{},...void 0!==u?{iframe:u}:{},...void 0!==d?{closable:d}:{},...void 0!==f?{refreshable:f}:{},...m?{iframeRefreshMode:m}:{}}};function Dt(e){const{tabs:t,iframeRefreshKeys:a,iframeLoadTimeout:r,t:o}=e,l=n(()=>t.value.filter(e=>e.iframe)),s=n(()=>t.value.find(e=>e.active&&!e.iframe)),i=n(()=>Boolean(s.value)),c=R({}),u=e=>a.value[e]??0,d=(e,t=u(e.id))=>{const a=ye(e.url??"");return((e,t)=>{if(t<=0||"about:blank"===e)return e;const a=e.indexOf("#"),r=a>=0?e.slice(0,a):e,o=a>=0?e.slice(a):"",n=r.indexOf("?"),l=n>=0?r.slice(0,n):r,s=n>=0?r.slice(n+1):"",i=new URLSearchParams(s);return i.set("__stack_tabs_refresh",String(t)),`${l}?${i.toString()}${o}`})(c[e.id]?a:"about:blank",t)},f=n(()=>{const e={};for(const t of l.value){const a=u(t.id);e[t.id]=d(t,a)}return e}),m=R({}),b=e=>m[e]??{status:"idle"},p=/* @__PURE__ */new Map,h=e=>{const t=p.get(e);t&&(clearTimeout(t),p.delete(e))},g=(e,t={})=>{("loaded"!==b(e).status||t.force)&&(h(e),m[e]={status:"loading"},p.set(e,setTimeout(()=>{p.delete(e),"loading"===b(e).status&&(m[e]={status:"timeout",message:o("VueStackTab.iframeLoadTimeout")})},r)))},y=R({});j(()=>l.value.map(e=>({id:e.id,active:e.active})),e=>{for(const a of e)a.active&&(c[a.id]=!0,g(a.id));const t=new Set(e.map(e=>e.id));for(const a of Object.keys(m))t.has(a)||(h(a),delete m[a],delete c[a],delete y[a]);if(t.size<Object.keys(a.value).length){const e={};for(const r of t){const t=a.value[r];"number"==typeof t&&(e[r]=t)}a.value=e}},{immediate:!0}),j(a,(e,t={})=>{for(const a of l.value)a.active&&(e[a.id]??0)!==(t[a.id]??0)&&g(a.id,{force:!0})},{deep:!0});return _(()=>{for(const e of p.values())clearTimeout(e);p.clear()}),{iframeTabs:l,activeNonIframeTab:s,hasActiveNonIframeTab:i,iframeSrcMap:f,getIframeRefreshKey:u,getIframeKey:e=>`${e.id}-${u(e.id)}`,getIframeLoadState:b,shouldShowIframeLoading:e=>"loading"===b(e).status,shouldShowIframeError:e=>"timeout"===b(e).status,retryIframe:e=>{m[e]={status:"idle"},a.value={...a.value,[e]:(a.value[e]??0)+1},v(()=>{g(e,{force:!0})})},setIframeRef:(e,t)=>{t?y[e]=t:delete y[e]},handleIframeLoad:(e,t)=>{const a=t.currentTarget,r=Number(a?.dataset.refreshKey??0);var o;c[e.id]&&("about:blank"!==d(e,r)&&r===u(e.id)&&a===y[e.id]&&(o=e.id,h(o),m[o]={status:"loaded"}))},handleRefreshIframePostMessage:e=>{const a=y[e],r=t.value.find(t=>t.id===e);if(a?.contentWindow)try{const e=((e,t)=>{if(!e||!ge(e))return null;try{const a=t??("undefined"!=typeof window?window.location.origin:void 0);if(!a&&!/^https?:\/\//i.test(e))return null;const r=new URL(e,a);if("http:"===r.protocol||"https:"===r.protocol)return r.origin}catch{return null}return null})(r?.url??"");if(!e)return;a.contentWindow.postMessage({type:"vue-stack-tabs:refresh"},e)}catch(o){}},createMessageHandler:(e,t)=>{const a=e=>Object.values(y).some(t=>t?.contentWindow===e);return r=>{if(!e.value.includes(r.origin))return;const o=((e,t)=>{if(!t(e.source))return null;if(!Me(e.data))return null;const a=e.data;return"string"==typeof a.type&&Ot.has(a.type)?Bt(a.payload):null})(r,a);o&&t(o).catch(e=>{})}}}}var qt={class:"stack-tab__container"},Ft=["id","role","aria-labelledby","aria-hidden","hidden"],jt={class:"stack-tab__iframes"},$t=["id","aria-labelledby"],Nt=["aria-label"],Kt={class:"stack-tab__iframe-loading-text"},zt={key:1,class:"stack-tab__iframe-error",role:"alert"},Ht={class:"stack-tab__iframe-error-text"},Gt=["onClick"],Ut=["onClick"],Xt=["src","data-refresh-key","title","sandbox","referrerpolicy","allow","onLoad"],Jt=/*@__PURE__*/d({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},pageTransitionBack:{default:"stack-tab-swap-back"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:xe.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:void 0},space:{default:300},globalScroll:{type:Boolean,default:!1},iframePath:{},sessionPrefix:{default:""},iframeAllowedOrigins:{default:()=>[]},iframeSandbox:{default:"allow-scripts allow-forms allow-popups allow-downloads allow-same-origin"},iframeReferrerPolicy:{default:"strict-origin-when-cross-origin"},iframeAllow:{default:""},iframeLoadTimeout:{default:15e3}},emits:["onActive","onPageLoaded"],setup(t,{emit:r}){const o=r,d=t;"string"!=typeof d.iframePath||d.iframePath.trim();const{changeLocale:m,t:p}=le(),v=b(De,null)??Ne({iframePath:d.iframePath,maxTabCount:d.max,useGlobalScroll:d.globalScroll,sessionPrefix:d.sessionPrefix}),y=f()?.appContext.app,T=((e,t={})=>{if(t.app&&!$e.has(t.app))return $e.add(t.app),!0;if(!t.app){if(!Fe)return Fe=e,je=!0,!0;if(Fe===e&&!je)return je=!0,!0}if(t.isProduction??!0)return!1;throw new Error("VueStackTabs only supports one <VueStackTabs> instance per Vue app.")})(v,y?{app:y}:void 0);T&&(x(De,v),x(He,v.eventBus));const w=E(!1),S=E();T&&x(qe,w),j(w,e=>{be(),S.value=e?pe("body *:not(.stack-tab,.stack-tab *)"):void 0});const{tabs:I,iframeRefreshKeys:R,destroy:C,initialize:M,setMaxSize:O,setGlobalScroll:W,setSessionPrefix:B}=T?mt(v):{tabs:v.tabs,iframeRefreshKeys:v.iframeRefreshKeys,destroy:()=>{},initialize:()=>{},setMaxSize:()=>{},setGlobalScroll:()=>{},setSessionPrefix:()=>{}},{setIFramePath:D,openTab:K,openInNewWindow:z}=T?bt(v):{setIFramePath:()=>{},openTab:()=>Promise.resolve(void 0),openInNewWindow:()=>{}};T&&(D(d.iframePath),W(d.globalScroll),O(d.max),((e,t)=>{t&&e(t)})(m,d.i18n));const H=e=>{o("onActive",e)},G=()=>{o("onPageLoaded")},U=E(d.pageTransition),X=v.eventBus,J=()=>{U.value=d.pageTransition},Y=()=>{U.value=d.pageTransitionBack};T&&(X.on(ze.FORWARD,J),X.on(ze.BACKWARD,Y));const{iframeTabs:Q,activeNonIframeTab:Z,hasActiveNonIframeTab:ee,iframeSrcMap:te,getIframeRefreshKey:ae,getIframeKey:re,getIframeLoadState:oe,shouldShowIframeLoading:ne,shouldShowIframeError:se,retryIframe:ie,setIframeRef:ce,handleIframeLoad:ue,handleRefreshIframePostMessage:de,createMessageHandler:fe}=Dt({tabs:I,iframeRefreshKeys:R,iframeLoadTimeout:d.iframeLoadTimeout,t:p}),me=fe(n(()=>["undefined"!=typeof window?window.location.origin:"",...d.iframeAllowedOrigins??[]].filter(Boolean)),K);return T&&X.on(ze.REFRESH_IFRAME_POSTMESSAGE,de),k(()=>{T&&(B(d.sessionPrefix),M(d.defaultTabs),window.addEventListener("message",me))}),_(()=>{T&&(window.removeEventListener("message",me),X.off(ze.REFRESH_IFRAME_POSTMESSAGE,de),X.off(ze.FORWARD,J),X.off(ze.BACKWARD,Y),C(),((e,t={})=>{t.app?$e.delete(t.app):(Fe===e&&(je=!1),Fe===e&&(Fe=null))})(v,y?{app:y}:void 0))}),(r,o)=>q(T)?(A(),i("div",{key:0,class:h(["stack-tab",{"stack-tab__maximum":w.value}]),style:g({width:t.width,height:t.height,"z-index":S.value})},[u(Lt,{space:t.space,"tab-transition":t.tabTransition,"tab-scroll-mode":t.tabScrollMode,contextmenu:t.contextmenu,max:t.max,onActive:H},{leftButton:$(()=>[P(r.$slots,"leftButton")]),rightButton:$(()=>[P(r.$slots,"rightButton")]),_:3},8,["space","tab-transition","tab-scroll-mode","contextmenu","max"]),c("div",qt,[u(a,{name:U.value,appear:""},{default:$(()=>[N((A(),i("div",{id:q(Z)?q(_t)(q(Z).id):void 0,key:"keep-alive",class:"stack-tab__keep-alive-panel",role:q(Z)?"tabpanel":void 0,"aria-labelledby":q(Z)?q(kt)(q(Z).id):void 0,"aria-hidden":q(Z)?void 0:"true",hidden:!q(ee)},[u(Mt,{"transition-name":U.value,onLoaded:G},null,8,["transition-name"])],8,Ft)),[[F,q(ee)]])]),_:1},8,["name"]),c("div",jt,[(A(!0),i(e,null,L(q(Q),e=>(A(),l(a,{key:q(re)(e),name:U.value,appear:""},{default:$(()=>[N((A(),i("div",{id:q(_t)(e.id),key:q(re)(e),class:"stack-tab__iframe-wrapper",role:"tabpanel","aria-labelledby":q(kt)(e.id)},[q(ne)(e.id)?(A(),i("div",{key:0,class:"stack-tab__iframe-loading",role:"status","aria-live":"polite","aria-label":q(p)("VueStackTab.loading")},[P(r.$slots,"iframeLoading",{tab:e},()=>[c("span",Kt,V(q(p)("VueStackTab.loading")),1)])],8,Nt)):s("",!0),q(se)(e.id)?(A(),i("div",zt,[P(r.$slots,"iframeError",{tab:e,retry:q(ie)},()=>[c("span",Ht,V(q(oe)(e.id).message??q(p)("VueStackTab.iframeLoadTimeout")),1),c("button",{type:"button",class:"stack-tab__iframe-error-retry",onClick:t=>q(ie)(e.id)},V(q(p)("VueStackTab.retry")),9,Gt),e.url&&q(ge)(e.url)?(A(),i("button",{key:0,type:"button",class:"stack-tab__iframe-error-open",onClick:t=>q(z)(e.id)},V(q(p)("VueStackTab.openInNewWindow")),9,Ut)):s("",!0)])])):s("",!0),c("iframe",{ref_for:!0,ref:t=>q(ce)(e.id,t),class:"stack-tab__iframe",src:q(te)[e.id]||"about:blank","data-refresh-key":q(ae)(e.id),title:e.title||q(p)("VueStackTab.iframeTitle")||"Stack tab iframe",sandbox:t.iframeSandbox||void 0,referrerpolicy:t.iframeReferrerPolicy,allow:t.iframeAllow||void 0,frameborder:"0",onLoad:t=>q(ue)(e,t)},null,40,Xt)],8,$t)),[[F,e.active]])]),_:2},1032,["name"]))),128))])])],6)):s("",!0)}}),Yt=(e,t)=>{e.clear();for(const a of t)e.push(Se(a))};function Qt(){const{attrs:e,props:t}=f(),a=e.tId??t.tId,r=e.pId??t.pId,o=H(),n=G(),l=Ge(),{getTab:s,evictPageCache:i,addPageScroller:c,active:u}=mt(),d=o.query.__tab;let m=0;return{forward:e=>{const t=s(a),r=e.query||{};if(t){const a=t.pages.peek();if(a&&a.path===e.path&&Ie(r,a.query||{}))return void(t.active||u(t.id))}const o=Pe(e.query,{__tab:d}),i=++m;l.emit(ze.FORWARD);let c="";Ue({apply:()=>{const a=t?t.pages.readonlyList().map(e=>Se(e)):[];return t&&(c=Be(),t.pages.push({id:c,tabId:t.id,path:e.path,query:we(r)})),a},navigate:()=>n.push({path:e.path,query:o}),rollback:e=>{t&&Yt(t.pages,e)},isFailureResult:z,isCurrent:()=>m===i,cleanupStale:()=>{if(!t||!c)return;const e=t.pages.list().filter(e=>e.id!==c);Yt(t.pages,e)}}).catch(e=>{})},backward:(e,t)=>{const r=s(a);if(!r)return!1;const o=r.pages;let c=0;if("number"==typeof e)c=Math.abs(e);else{const t=Te(e),a=t.query||{},r=o.readonlyList();let n=!1;for(let e=o.size()-2;e>=0;e--){c++;const o=r[e];if(o?.path===t.path&&Ie(a,o?.query||{})){n=!0;break}}if(!n)return!1}if(c<=0)return!1;if(o.size()<=c&&(c=o.size()-1),c<=0)return!1;const u=o.readonlyList().map(e=>Se(e)),f=[];for(let a=0;a<c;a++){const e=o.pop();e&&f.push(e.id)}const b=o.peek();if(!b)return Yt(o,u),!1;t&&(b._backParams=t),l.emit(ze.BACKWARD);const p=Pe(b.query||{},{__tab:d}),v=++m;return Ue({apply:()=>u,navigate:()=>n.push({path:b.path,query:p}),rollback:e=>Yt(o,e),isFailureResult:z,isCurrent:()=>m===v,commit:()=>{for(const e of f)i(e)},cleanupStale:()=>{const e=new Set(o.list().map(e=>e.id));for(const t of f)e.has(t)||i(t)}}).catch(e=>{}),!0},addScrollTarget:(...e)=>{c(r,...e)}}}var Zt=/*@__PURE__*/d({__name:"iframe",setup:e=>(Qt(),()=>{})}),ea=()=>{const e=Ge(),{attrs:t}=f(),a=()=>String(t.tId??"");I(()=>{r()});const r=()=>{e.emit(ze.PAGE_LOADING,{tId:a(),value:!1})};return{openTabLoading:()=>{e.emit(ze.PAGE_LOADING,{tId:a(),value:!0})},closeTabLoading:r}},ta="vue-stack-tabs:refresh",aa="vue-stack-tabs:openTab";function ra(e,t={}){"undefined"!=typeof window&&window.parent&&window.parent.postMessage({type:aa,payload:e},t.targetOrigin??window.location.origin)}function oa(e=()=>window.location.reload(),t={}){if("undefined"==typeof window)return()=>{};const a=t.allowedOrigins??[],r=t=>{t.source===window.parent&&(a.length>0&&!a.includes(t.origin)||"vue-stack-tabs:refresh"===t.data?.type&&e())};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)}var na={install(e,t){(e=>{if("undefined"==typeof window)return;const t="string"==typeof e&&e.length>0?e:"dev";window.console.log("%c vue-stack-tabs %c v"+t+" %c","background:#306fff; padding:2px 8px; border-radius:3px 0 0 3px; color:#fff;","background:#00d797; padding:2px 8px; border-radius:0 3px 3px 0; color:#fff;","background:transparent")})("1.4.1");const a=Ne();e.provide(De,a),e.provide(He,a.eventBus),e.component("VueStackTabs",Jt).use(de().getI18n(t))}};export{Zt as IFrame,aa as MSG_OPEN_TAB,ta as MSG_REFRESH,Re as Stack,Jt as StackTab,Jt as VueStackTabs,Ct as TabHeaderButton,xe as TabScrollMode,na as default,oa as onRefreshRequest,ra as postOpenTab,bt as useTabActions,ea as useTabLoading,Qt as useTabRouter};
|