@xwiki/cristal-electron-renderer 0.8.0 → 0.9.0
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/CHANGELOG.md +18 -0
- package/dist/chunk.2FB5TK5H-DmNP_ew6.js +2 -0
- package/dist/chunk.2FB5TK5H-DmNP_ew6.js.map +1 -0
- package/dist/{chunk.2Y62WHSU-C8i5cHiy.js → chunk.2Y62WHSU-CtjxXyaN.js} +2 -2
- package/dist/chunk.2Y62WHSU-CtjxXyaN.js.map +1 -0
- package/dist/{chunk.6DH62NIS-CVBVc-bX.js → chunk.6DH62NIS-Dm8zuX7H.js} +2 -2
- package/dist/chunk.6DH62NIS-Dm8zuX7H.js.map +1 -0
- package/dist/chunk.CFNN54QE-CwH9z8le.js +22 -0
- package/dist/chunk.CFNN54QE-CwH9z8le.js.map +1 -0
- package/dist/chunk.DBG7W4GS-C1gixj8b.js +75 -0
- package/dist/chunk.DBG7W4GS-C1gixj8b.js.map +1 -0
- package/dist/chunk.F5JVBNK3-BFrgaGDl.js +2 -0
- package/dist/chunk.F5JVBNK3-BFrgaGDl.js.map +1 -0
- package/dist/{chunk.XX4STEEY-COEpspdZ.js → chunk.FX2KPKHF-DRH3dcmv.js} +9 -9
- package/dist/chunk.FX2KPKHF-DRH3dcmv.js.map +1 -0
- package/dist/{chunk.GAND2OKP-lICOl7JF.js → chunk.GAND2OKP-ByJceoyz.js} +3 -3
- package/dist/chunk.GAND2OKP-ByJceoyz.js.map +1 -0
- package/dist/chunk.GQSSKPMO-XeEX4TdL.js +273 -0
- package/dist/chunk.GQSSKPMO-XeEX4TdL.js.map +1 -0
- package/dist/{chunk.I6OQK3N3-BBclK2fM.js → chunk.I6OQK3N3-XuvDDN4C.js} +7 -7
- package/dist/chunk.I6OQK3N3-XuvDDN4C.js.map +1 -0
- package/dist/chunk.KWPBDQ6I-Bf3dc1GJ.js.map +1 -1
- package/dist/chunk.LHI6QEL2-DjjW-g1e.js +2 -0
- package/dist/chunk.LHI6QEL2-DjjW-g1e.js.map +1 -0
- package/dist/chunk.MGEAXYVX-o-WC3ZVc.js.map +1 -1
- package/dist/chunk.NYIIDP5N-AHr3eTN0.js.map +1 -1
- package/dist/chunk.TUZSOS6C-DxyWSdpL.js.map +1 -1
- package/dist/chunk.WJBFYL4X-Cbeo_gEa.js.map +1 -1
- package/dist/chunk.WYDJ5QAQ-BaRtgVmq.js +163 -0
- package/dist/chunk.WYDJ5QAQ-BaRtgVmq.js.map +1 -0
- package/dist/chunk.XX4STEEY-CnZz31HY.js +2 -0
- package/dist/chunk.XX4STEEY-CnZz31HY.js.map +1 -0
- package/dist/chunk.Z2C7OFLH-DXpTuERC.js +90 -0
- package/dist/chunk.Z2C7OFLH-DXpTuERC.js.map +1 -0
- package/dist/{chunk.Z6CYCANS-DF0ctyRp.js → chunk.Z6CYCANS-3ZX6gaKw.js} +2 -2
- package/dist/chunk.Z6CYCANS-3ZX6gaKw.js.map +1 -0
- package/dist/class-map-C3Xk0adH.js.map +1 -1
- package/dist/if-defined-DAvNwoU5.js.map +1 -1
- package/dist/index-BwWdPCLg.js +109 -0
- package/dist/index-BwWdPCLg.js.map +1 -0
- package/dist/{index-ScDkqPqn.css → index-Cqiv3gUG.css} +2 -25
- package/dist/index.html +2 -2
- package/dist/query-D1pSaKds.js.map +1 -1
- package/dist/static-CdL8EPVS.js.map +1 -1
- package/dist/staticBuild-DaVk8OhA.js +443 -0
- package/dist/staticBuild-DaVk8OhA.js.map +1 -0
- package/dist/staticBuild-ttxynnc3.css +1 -0
- package/dist/translations-LzwkxwEW.js +2 -0
- package/dist/translations-LzwkxwEW.js.map +1 -0
- package/dist/worker-CeXgpy1V.js +27 -0
- package/dist/worker-CeXgpy1V.js.map +1 -0
- package/dist/x-alert-BXrMLl_z.js +2 -0
- package/dist/x-alert-BXrMLl_z.js.map +1 -0
- package/dist/x-alert-BoZBHJTw.js +2 -0
- package/dist/x-alert-BoZBHJTw.js.map +1 -0
- package/dist/x-alert-DMLsu2fN.js +2 -0
- package/dist/x-alert-DMLsu2fN.js.map +1 -0
- package/dist/x-avatar-5PJmmbmb.js +2 -0
- package/dist/x-avatar-5PJmmbmb.js.map +1 -0
- package/dist/x-avatar-DMZRLeU4.css +1 -0
- package/dist/x-avatar-DXrOfuv4.js +2 -0
- package/dist/x-avatar-DXrOfuv4.js.map +1 -0
- package/dist/{x-avatar-rzw6K8Wc.js → x-avatar-bHnylPsU.js} +2 -2
- package/dist/x-avatar-bHnylPsU.js.map +1 -0
- package/dist/x-breadcrumb-ByeHAMZ3.js +2 -0
- package/dist/x-breadcrumb-ByeHAMZ3.js.map +1 -0
- package/dist/x-breadcrumb-UzKzkWEm.js +2 -0
- package/dist/x-breadcrumb-UzKzkWEm.js.map +1 -0
- package/dist/x-btn-BIQ8eFJy.js +2 -0
- package/dist/x-btn-BIQ8eFJy.js.map +1 -0
- package/dist/x-btn-Ek7j5MQJ.js +2 -0
- package/dist/x-btn-Ek7j5MQJ.js.map +1 -0
- package/dist/x-btn-Jy05lUMC.css +1 -0
- package/dist/x-btn-XPAPreXz.js +2 -0
- package/dist/x-btn-XPAPreXz.js.map +1 -0
- package/dist/x-card-CqrrEOda.js +2 -0
- package/dist/x-card-CqrrEOda.js.map +1 -0
- package/dist/x-card-DkMCK51C.js +2 -0
- package/dist/x-card-DkMCK51C.js.map +1 -0
- package/dist/x-card-mVVPCuVs.js +2 -0
- package/dist/x-card-mVVPCuVs.js.map +1 -0
- package/dist/x-col-BKCtabUF.js +2 -0
- package/dist/x-col-BKCtabUF.js.map +1 -0
- package/dist/x-col-CPix5n9C.js +2 -0
- package/dist/x-col-CPix5n9C.js.map +1 -0
- package/dist/x-container-B8usqdAt.js +2 -0
- package/dist/x-container-B8usqdAt.js.map +1 -0
- package/dist/x-container-C3VJF8Cs.js +2 -0
- package/dist/x-container-C3VJF8Cs.js.map +1 -0
- package/dist/x-dialog-DTbBEomU.js +2 -0
- package/dist/x-dialog-DTbBEomU.js.map +1 -0
- package/dist/x-dialog-Dmk1mNNm.js +2 -0
- package/dist/x-dialog-Dmk1mNNm.js.map +1 -0
- package/dist/x-dialog-Y6y28F7b.js +2 -0
- package/dist/x-dialog-Y6y28F7b.js.map +1 -0
- package/dist/x-divider-1De0d0_h.js +2 -0
- package/dist/x-divider-1De0d0_h.js.map +1 -0
- package/dist/x-divider-BOo7N7TG.js +2 -0
- package/dist/x-divider-BOo7N7TG.js.map +1 -0
- package/dist/{x-divider-BCwuNKpo.js → x-divider-DAdnWMFB.js} +2 -2
- package/dist/x-divider-DAdnWMFB.js.map +1 -0
- package/dist/x-file-input-CQcXcoHB.css +1 -0
- package/dist/x-file-input-D5fZFrts.js +2 -0
- package/dist/x-file-input-D5fZFrts.js.map +1 -0
- package/dist/x-file-input-Vq6SbhIt.js +2 -0
- package/dist/x-file-input-Vq6SbhIt.js.map +1 -0
- package/dist/x-form-2etnPUmf.js +2 -0
- package/dist/x-form-2etnPUmf.js.map +1 -0
- package/dist/x-form-6WjFitVZ.js +2 -0
- package/dist/x-form-6WjFitVZ.js.map +1 -0
- package/dist/x-img-C0VJnfz2.js +2 -0
- package/dist/x-img-C0VJnfz2.js.map +1 -0
- package/dist/x-img-CI94figY.js +2 -0
- package/dist/x-img-CI94figY.js.map +1 -0
- package/dist/x-img-ep-9amoQ.js +2 -0
- package/dist/x-img-ep-9amoQ.js.map +1 -0
- package/dist/x-load-5_-B9I0p.js +2 -0
- package/dist/x-load-5_-B9I0p.js.map +1 -0
- package/dist/x-load-BRJNFFsQ.js +2 -0
- package/dist/x-load-BRJNFFsQ.js.map +1 -0
- package/dist/x-load-CXyz5AZH.js +2 -0
- package/dist/x-load-CXyz5AZH.js.map +1 -0
- package/dist/x-load-CwU5Pjl2.css +5 -0
- package/dist/{x-load-DYuGRQQC.css → x-load-DLCnwiCB.css} +1 -1
- package/dist/{x-menu-BKquCdsX.js → x-menu-BPTY2_Pm.js} +164 -543
- package/dist/x-menu-BPTY2_Pm.js.map +1 -0
- package/dist/x-menu-CinyzodZ.js +2 -0
- package/dist/x-menu-CinyzodZ.js.map +1 -0
- package/dist/x-menu-MDCUArVg.js +2 -0
- package/dist/x-menu-MDCUArVg.js.map +1 -0
- package/dist/x-menu-item-DlEPAuVr.js +2 -0
- package/dist/x-menu-item-DlEPAuVr.js.map +1 -0
- package/dist/{x-menuitem-CVO0asxe.js → x-menuitem-C7L7TT_M.js} +2 -2
- package/dist/x-menuitem-C7L7TT_M.js.map +1 -0
- package/dist/x-menuitem-ChQ-MEzP.js +2 -0
- package/dist/x-menuitem-ChQ-MEzP.js.map +1 -0
- package/dist/x-row-BKCtabUF.js +2 -0
- package/dist/x-row-BKCtabUF.js.map +1 -0
- package/dist/x-row-CPix5n9C.js +2 -0
- package/dist/x-row-CPix5n9C.js.map +1 -0
- package/dist/x-search-BwzR-lic.js +2 -0
- package/dist/x-search-BwzR-lic.js.map +1 -0
- package/dist/{x-search-D_rjUBBL.js → x-search-DgB3g9qY.js} +2 -2
- package/dist/x-search-DgB3g9qY.js.map +1 -0
- package/dist/x-tab-D0Vw_ond.js +2 -0
- package/dist/x-tab-D0Vw_ond.js.map +1 -0
- package/dist/x-tab-DbIZPX0N.js +2 -0
- package/dist/x-tab-DbIZPX0N.js.map +1 -0
- package/dist/x-tab-group-C9tgQAMN.js +2 -0
- package/dist/x-tab-group-C9tgQAMN.js.map +1 -0
- package/dist/x-tab-group-D1vbKY6D.js +2 -0
- package/dist/x-tab-group-D1vbKY6D.js.map +1 -0
- package/dist/x-tab-panel--v10F4gh.js +2 -0
- package/dist/x-tab-panel--v10F4gh.js.map +1 -0
- package/dist/x-tab-panel-CbJsU5r0.js +2 -0
- package/dist/x-tab-panel-CbJsU5r0.js.map +1 -0
- package/dist/x-text-field-DcPqej4l.js +2 -0
- package/dist/x-text-field-DcPqej4l.js.map +1 -0
- package/dist/x-text-field-DpPHmzsd.js +2 -0
- package/dist/x-text-field-DpPHmzsd.js.map +1 -0
- package/dist/x-textfield-DM2JTrO7.js +2 -0
- package/dist/x-textfield-DM2JTrO7.js.map +1 -0
- package/dist/x-textfield-lI6PveRP.js +2 -0
- package/dist/x-textfield-lI6PveRP.js.map +1 -0
- package/package.json +13 -10
- package/src/index.ts +12 -9
- package/src/vite-env.d.ts +5 -10
- package/src/vue.d.ts +4 -9
- package/vite.config.js +4 -9
- package/dist/chunk.2Y62WHSU-C8i5cHiy.js.map +0 -1
- package/dist/chunk.6DH62NIS-CVBVc-bX.js.map +0 -1
- package/dist/chunk.GAND2OKP-lICOl7JF.js.map +0 -1
- package/dist/chunk.I6OQK3N3-BBclK2fM.js.map +0 -1
- package/dist/chunk.LHI6QEL2-DbpPiPxS.js +0 -75
- package/dist/chunk.LHI6QEL2-DbpPiPxS.js.map +0 -1
- package/dist/chunk.WYDJ5QAQ-C81Elw3D.js +0 -163
- package/dist/chunk.WYDJ5QAQ-C81Elw3D.js.map +0 -1
- package/dist/chunk.XX4STEEY-COEpspdZ.js.map +0 -1
- package/dist/chunk.Z6CYCANS-DF0ctyRp.js.map +0 -1
- package/dist/index-DK0YwuAW.js +0 -411
- package/dist/index-DK0YwuAW.js.map +0 -1
- package/dist/staticBuild-BlyaXHUF.css +0 -1
- package/dist/staticBuild-BoKVadnu.js +0 -1063
- package/dist/staticBuild-BoKVadnu.js.map +0 -1
- package/dist/worker-CybHddrE.js +0 -211
- package/dist/worker-CybHddrE.js.map +0 -1
- package/dist/x-alert-7r5rx0d7.js +0 -2
- package/dist/x-alert-7r5rx0d7.js.map +0 -1
- package/dist/x-alert-l0oP9PUN.js +0 -2
- package/dist/x-alert-l0oP9PUN.js.map +0 -1
- package/dist/x-alert-uqeGd1IW.js +0 -2
- package/dist/x-alert-uqeGd1IW.js.map +0 -1
- package/dist/x-avatar-BARZZcgr.js +0 -2
- package/dist/x-avatar-BARZZcgr.js.map +0 -1
- package/dist/x-avatar-CfnVd4CE.css +0 -1
- package/dist/x-avatar-DnbaVGNC.js +0 -2
- package/dist/x-avatar-DnbaVGNC.js.map +0 -1
- package/dist/x-avatar-rzw6K8Wc.js.map +0 -1
- package/dist/x-breadcrumb-CzKs24Jh.js +0 -2
- package/dist/x-breadcrumb-CzKs24Jh.js.map +0 -1
- package/dist/x-breadcrumb-VokcqVrB.js +0 -2
- package/dist/x-breadcrumb-VokcqVrB.js.map +0 -1
- package/dist/x-btn-BNO2Vh9q.js +0 -2
- package/dist/x-btn-BNO2Vh9q.js.map +0 -1
- package/dist/x-btn-BeE4ChBm.js +0 -2
- package/dist/x-btn-BeE4ChBm.js.map +0 -1
- package/dist/x-btn-D2HJcK1C.css +0 -1
- package/dist/x-btn-DOkDF37q.js +0 -2
- package/dist/x-btn-DOkDF37q.js.map +0 -1
- package/dist/x-card-BzquGj3n.js +0 -2
- package/dist/x-card-BzquGj3n.js.map +0 -1
- package/dist/x-card-D6loY5Bx.js +0 -2
- package/dist/x-card-D6loY5Bx.js.map +0 -1
- package/dist/x-card-D_W5kTzv.js +0 -2
- package/dist/x-card-D_W5kTzv.js.map +0 -1
- package/dist/x-col-B5OPXPr8.js +0 -2
- package/dist/x-col-B5OPXPr8.js.map +0 -1
- package/dist/x-col-KJDQojCc.js +0 -2
- package/dist/x-col-KJDQojCc.js.map +0 -1
- package/dist/x-container-e-eRQnv6.js +0 -2
- package/dist/x-container-e-eRQnv6.js.map +0 -1
- package/dist/x-container-e4wjA5VY.js +0 -2
- package/dist/x-container-e4wjA5VY.js.map +0 -1
- package/dist/x-dialog-D6r8mi6-.js +0 -2
- package/dist/x-dialog-D6r8mi6-.js.map +0 -1
- package/dist/x-dialog-DYWxApRD.js +0 -2
- package/dist/x-dialog-DYWxApRD.js.map +0 -1
- package/dist/x-dialog-oAn88o9T.js +0 -2
- package/dist/x-dialog-oAn88o9T.js.map +0 -1
- package/dist/x-divider-BCwuNKpo.js.map +0 -1
- package/dist/x-divider-BnEfygqi.js +0 -2
- package/dist/x-divider-BnEfygqi.js.map +0 -1
- package/dist/x-divider-rvXgbWfE.js +0 -2
- package/dist/x-divider-rvXgbWfE.js.map +0 -1
- package/dist/x-img-B2B5glWY.js +0 -2
- package/dist/x-img-B2B5glWY.js.map +0 -1
- package/dist/x-img-Bj_1ZxwL.js +0 -2
- package/dist/x-img-Bj_1ZxwL.js.map +0 -1
- package/dist/x-img-iz7nX54V.js +0 -2
- package/dist/x-img-iz7nX54V.js.map +0 -1
- package/dist/x-load-B-IMf3jW.js +0 -2
- package/dist/x-load-B-IMf3jW.js.map +0 -1
- package/dist/x-load-DKS8UJZy.js +0 -2
- package/dist/x-load-DKS8UJZy.js.map +0 -1
- package/dist/x-load-Diex9fJK.js +0 -2
- package/dist/x-load-Diex9fJK.js.map +0 -1
- package/dist/x-load-DyIF2nXd.css +0 -5
- package/dist/x-menu-BBb2QzOu.js +0 -2
- package/dist/x-menu-BBb2QzOu.js.map +0 -1
- package/dist/x-menu-BKquCdsX.js.map +0 -1
- package/dist/x-menu-Ce37WOnf.js +0 -2
- package/dist/x-menu-Ce37WOnf.js.map +0 -1
- package/dist/x-menu-item-JuTN7QVh.js +0 -2
- package/dist/x-menu-item-JuTN7QVh.js.map +0 -1
- package/dist/x-menuitem-CNKTVGiE.js +0 -2
- package/dist/x-menuitem-CNKTVGiE.js.map +0 -1
- package/dist/x-menuitem-CVO0asxe.js.map +0 -1
- package/dist/x-row-B5OPXPr8.js +0 -2
- package/dist/x-row-B5OPXPr8.js.map +0 -1
- package/dist/x-row-KJDQojCc.js +0 -2
- package/dist/x-row-KJDQojCc.js.map +0 -1
- package/dist/x-search-B0oJfSre.js +0 -2
- package/dist/x-search-B0oJfSre.js.map +0 -1
- package/dist/x-search-D_rjUBBL.js.map +0 -1
- package/dist/x-textfield-CRySrmrj.js +0 -2
- package/dist/x-textfield-CRySrmrj.js.map +0 -1
- package/dist/x-textfield-GtnNDOX1.js +0 -2
- package/dist/x-textfield-GtnNDOX1.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{F as
|
|
1
|
+
import{F as Xt,c as Ki,a as Xi,v as ji}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import{i as I,c as M,_ as o,n,S as D,x as _,b as Gi,a as Qi,T as Ce,w as $i}from"./chunk.TUZSOS6C-DxyWSdpL.js";import{f as se,d as oe,l as ee,S as Zi}from"./chunk.FX2KPKHF-DRH3dcmv.js";import{S as gt,r as E,f as Ji}from"./chunk.I6OQK3N3-XuvDDN4C.js";import{w as k}from"./chunk.2FB5TK5H-DmNP_ew6.js";import{H as Rt,g as ts}from"./chunk.NYIIDP5N-AHr3eTN0.js";import{e as O,i as Qe,t as Ze,a as Je}from"./class-map-C3Xk0adH.js";import{o as H,L as N}from"./if-defined-DAvNwoU5.js";import{a as es,e as S}from"./query-D1pSaKds.js";import{S as ti,b as is,a as ss}from"./chunk.6DH62NIS-Dm8zuX7H.js";import{s as U,a as ht,g as et,b as ct,c as ze,p as di,w as zt,d as hi}from"./chunk.LHI6QEL2-DjjW-g1e.js";import"./chunk.CFNN54QE-CwH9z8le.js";import{S as ei}from"./chunk.DBG7W4GS-C1gixj8b.js";import"./chunk.GQSSKPMO-XeEX4TdL.js";import"./chunk.Z2C7OFLH-DXpTuERC.js";import{s as os,l as Pe,u as Re}from"./chunk.F5JVBNK3-BFrgaGDl.js";import{n as rs}from"./static-CdL8EPVS.js";import"./chunk.WJBFYL4X-Cbeo_gEa.js";import"./chunk.XX4STEEY-CnZz31HY.js";import{g as as,M as ns}from"./chunk.WYDJ5QAQ-BaRtgVmq.js";import"./chunk.MGEAXYVX-o-WC3ZVc.js";import"./chunk.GAND2OKP-ByJceoyz.js";import"./chunk.Z6CYCANS-3ZX6gaKw.js";import"./chunk.2Y62WHSU-CtjxXyaN.js";import{l as ls,a5 as Fe,a9 as cs,aa as ds,E as Zt,ad as Jt,$ as hs,af as Ve,F as us}from"./index-BwWdPCLg.js";/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2017 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/function
|
|
5
|
+
*/function Ee(t){return(e,i)=>{const s=typeof e=="function"?e:e[i];Object.assign(s,t)}}/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/function
|
|
9
|
+
*/function ps(t){return(e,i)=>es(e,i,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}var fs=I`
|
|
10
10
|
:host {
|
|
11
11
|
/*
|
|
12
12
|
* These are actually used by tree item, but we define them here so they can more easily be set and all tree items
|
|
@@ -26,7 +26,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
26
26
|
*/
|
|
27
27
|
font-size: 0;
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`,ms=I`
|
|
30
30
|
:host {
|
|
31
31
|
display: block;
|
|
32
32
|
outline: 0;
|
|
@@ -178,7 +178,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
178
178
|
outline: dashed 1px SelectedItem;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
`,
|
|
181
|
+
`,gs=I`
|
|
182
182
|
:host {
|
|
183
183
|
display: inline-block;
|
|
184
184
|
}
|
|
@@ -296,13 +296,13 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
296
296
|
color: var(--sl-input-required-content-color);
|
|
297
297
|
margin-inline-start: var(--sl-input-required-content-offset);
|
|
298
298
|
}
|
|
299
|
-
`,G=class extends
|
|
299
|
+
`,G=class extends D{constructor(){super(...arguments),this.formControlController=new Xt(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e}),this.hasSlotController=new Rt(this,"help-text"),this.hasFocus=!1,this.title="",this.name="",this.size="medium",this.disabled=!1,this.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form="",this.required=!1,this.helpText=""}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit("sl-change")}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleInput(){this.emit("sl-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("help-text"),e=this.helpText?!0:!!t;return _`
|
|
300
300
|
<div
|
|
301
|
-
class=${
|
|
301
|
+
class=${O({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-help-text":e})}
|
|
302
302
|
>
|
|
303
303
|
<label
|
|
304
304
|
part="base"
|
|
305
|
-
class=${
|
|
305
|
+
class=${O({checkbox:!0,"checkbox--checked":this.checked,"checkbox--disabled":this.disabled,"checkbox--focused":this.hasFocus,"checkbox--indeterminate":this.indeterminate,"checkbox--small":this.size==="small","checkbox--medium":this.size==="medium","checkbox--large":this.size==="large"})}
|
|
306
306
|
>
|
|
307
307
|
<input
|
|
308
308
|
class="checkbox__input"
|
|
@@ -310,8 +310,8 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
310
310
|
title=${this.title}
|
|
311
311
|
name=${this.name}
|
|
312
312
|
value=${H(this.value)}
|
|
313
|
-
.indeterminate=${
|
|
314
|
-
.checked=${
|
|
313
|
+
.indeterminate=${ee(this.indeterminate)}
|
|
314
|
+
.checked=${ee(this.checked)}
|
|
315
315
|
.disabled=${this.disabled}
|
|
316
316
|
.required=${this.required}
|
|
317
317
|
aria-checked=${this.checked?"true":"false"}
|
|
@@ -327,10 +327,10 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
327
327
|
part="control${this.checked?" control--checked":""}${this.indeterminate?" control--indeterminate":""}"
|
|
328
328
|
class="checkbox__control"
|
|
329
329
|
>
|
|
330
|
-
${this.checked?
|
|
330
|
+
${this.checked?_`
|
|
331
331
|
<sl-icon part="checked-icon" class="checkbox__checked-icon" library="system" name="check"></sl-icon>
|
|
332
332
|
`:""}
|
|
333
|
-
${!this.checked&&this.indeterminate?
|
|
333
|
+
${!this.checked&&this.indeterminate?_`
|
|
334
334
|
<sl-icon
|
|
335
335
|
part="indeterminate-icon"
|
|
336
336
|
class="checkbox__indeterminate-icon"
|
|
@@ -354,14 +354,14 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
354
354
|
<slot name="help-text">${this.helpText}</slot>
|
|
355
355
|
</div>
|
|
356
356
|
</div>
|
|
357
|
-
`}};G.styles=[
|
|
357
|
+
`}};G.styles=[M,se,gs];G.dependencies={"sl-icon":gt};o([S('input[type="checkbox"]')],G.prototype,"input",2);o([E()],G.prototype,"hasFocus",2);o([n()],G.prototype,"title",2);o([n()],G.prototype,"name",2);o([n()],G.prototype,"value",2);o([n({reflect:!0})],G.prototype,"size",2);o([n({type:Boolean,reflect:!0})],G.prototype,"disabled",2);o([n({type:Boolean,reflect:!0})],G.prototype,"checked",2);o([n({type:Boolean,reflect:!0})],G.prototype,"indeterminate",2);o([oe("checked")],G.prototype,"defaultChecked",2);o([n({reflect:!0})],G.prototype,"form",2);o([n({type:Boolean,reflect:!0})],G.prototype,"required",2);o([n({attribute:"help-text"})],G.prototype,"helpText",2);o([k("disabled",{waitUntilFirstUpdate:!0})],G.prototype,"handleDisabledChange",1);o([k(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],G.prototype,"handleStateChange",1);/**
|
|
358
358
|
* @license
|
|
359
359
|
* Copyright 2021 Google LLC
|
|
360
360
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
361
|
-
*/function
|
|
361
|
+
*/function ui(t,e,i){return t?e(t):i?.(t)}var K=class Ye extends D{constructor(){super(...arguments),this.localize=new N(this),this.indeterminate=!1,this.isLeaf=!1,this.loading=!1,this.selectable=!1,this.expanded=!1,this.selected=!1,this.disabled=!1,this.lazy=!1}static isTreeItem(e){return e instanceof Element&&e.getAttribute("role")==="treeitem"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","treeitem"),this.setAttribute("tabindex","-1"),this.isNestedItem()&&(this.slot="children")}firstUpdated(){this.childrenContainer.hidden=!this.expanded,this.childrenContainer.style.height=this.expanded?"auto":"0",this.isLeaf=!this.lazy&&this.getChildrenItems().length===0,this.handleExpandedChange()}async animateCollapse(){this.emit("sl-collapse"),await ht(this.childrenContainer);const{keyframes:e,options:i}=et(this,"tree-item.collapse",{dir:this.localize.dir()});await ct(this.childrenContainer,ze(e,this.childrenContainer.scrollHeight),i),this.childrenContainer.hidden=!0,this.emit("sl-after-collapse")}isNestedItem(){const e=this.parentElement;return!!e&&Ye.isTreeItem(e)}handleChildrenSlotChange(){this.loading=!1,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0}willUpdate(e){e.has("selected")&&!e.has("indeterminate")&&(this.indeterminate=!1)}async animateExpand(){this.emit("sl-expand"),await ht(this.childrenContainer),this.childrenContainer.hidden=!1;const{keyframes:e,options:i}=et(this,"tree-item.expand",{dir:this.localize.dir()});await ct(this.childrenContainer,ze(e,this.childrenContainer.scrollHeight),i),this.childrenContainer.style.height="auto",this.emit("sl-after-expand")}handleLoadingChange(){this.setAttribute("aria-busy",this.loading?"true":"false"),this.loading||this.animateExpand()}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleExpandedChange(){this.isLeaf?this.removeAttribute("aria-expanded"):this.setAttribute("aria-expanded",this.expanded?"true":"false")}handleExpandAnimation(){this.expanded?this.lazy?(this.loading=!0,this.emit("sl-lazy-load")):this.animateExpand():this.animateCollapse()}handleLazyChange(){this.emit("sl-lazy-change")}getChildrenItems({includeDisabled:e=!0}={}){return this.childrenSlot?[...this.childrenSlot.assignedElements({flatten:!0})].filter(i=>Ye.isTreeItem(i)&&(e||!i.disabled)):[]}render(){const e=this.localize.dir()==="rtl",i=!this.loading&&(!this.isLeaf||this.lazy);return _`
|
|
362
362
|
<div
|
|
363
363
|
part="base"
|
|
364
|
-
class="${
|
|
364
|
+
class="${O({"tree-item":!0,"tree-item--expanded":this.expanded,"tree-item--selected":this.selected,"tree-item--disabled":this.disabled,"tree-item--leaf":this.isLeaf,"tree-item--has-expand-button":i,"tree-item--rtl":this.localize.dir()==="rtl"})}"
|
|
365
365
|
>
|
|
366
366
|
<div
|
|
367
367
|
class="tree-item__item"
|
|
@@ -377,10 +377,10 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
377
377
|
|
|
378
378
|
<div
|
|
379
379
|
part="expand-button"
|
|
380
|
-
class=${
|
|
380
|
+
class=${O({"tree-item__expand-button":!0,"tree-item__expand-button--visible":i})}
|
|
381
381
|
aria-hidden="true"
|
|
382
382
|
>
|
|
383
|
-
${
|
|
383
|
+
${ui(this.loading,()=>_` <sl-spinner part="spinner" exportparts="base:spinner__base"></sl-spinner> `)}
|
|
384
384
|
<slot class="tree-item__expand-icon-slot" name="expand-icon">
|
|
385
385
|
<sl-icon library="system" name=${e?"chevron-left":"chevron-right"}></sl-icon>
|
|
386
386
|
</slot>
|
|
@@ -389,7 +389,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
389
389
|
</slot>
|
|
390
390
|
</div>
|
|
391
391
|
|
|
392
|
-
${
|
|
392
|
+
${ui(this.selectable,()=>_`
|
|
393
393
|
<sl-checkbox
|
|
394
394
|
part="checkbox"
|
|
395
395
|
exportparts="
|
|
@@ -403,7 +403,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
403
403
|
"
|
|
404
404
|
class="tree-item__checkbox"
|
|
405
405
|
?disabled="${this.disabled}"
|
|
406
|
-
?checked="${
|
|
406
|
+
?checked="${ee(this.selected)}"
|
|
407
407
|
?indeterminate="${this.indeterminate}"
|
|
408
408
|
tabindex="-1"
|
|
409
409
|
></sl-checkbox>
|
|
@@ -416,7 +416,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
416
416
|
<slot name="children" @slotchange="${this.handleChildrenSlotChange}"></slot>
|
|
417
417
|
</div>
|
|
418
418
|
</div>
|
|
419
|
-
`}};K.styles=[
|
|
419
|
+
`}};K.styles=[M,ms];K.dependencies={"sl-checkbox":G,"sl-icon":gt,"sl-spinner":ti};o([E()],K.prototype,"indeterminate",2);o([E()],K.prototype,"isLeaf",2);o([E()],K.prototype,"loading",2);o([E()],K.prototype,"selectable",2);o([n({type:Boolean,reflect:!0})],K.prototype,"expanded",2);o([n({type:Boolean,reflect:!0})],K.prototype,"selected",2);o([n({type:Boolean,reflect:!0})],K.prototype,"disabled",2);o([n({type:Boolean,reflect:!0})],K.prototype,"lazy",2);o([S("slot:not([name])")],K.prototype,"defaultSlot",2);o([S("slot[name=children]")],K.prototype,"childrenSlot",2);o([S(".tree-item__item")],K.prototype,"itemElement",2);o([S(".tree-item__children")],K.prototype,"childrenContainer",2);o([S(".tree-item__expand-button slot")],K.prototype,"expandButtonSlot",2);o([k("loading",{waitUntilFirstUpdate:!0})],K.prototype,"handleLoadingChange",1);o([k("disabled")],K.prototype,"handleDisabledChange",1);o([k("selected")],K.prototype,"handleSelectedChange",1);o([k("expanded",{waitUntilFirstUpdate:!0})],K.prototype,"handleExpandedChange",1);o([k("expanded",{waitUntilFirstUpdate:!0})],K.prototype,"handleExpandAnimation",1);o([k("lazy",{waitUntilFirstUpdate:!0})],K.prototype,"handleLazyChange",1);var de=K;U("tree-item.expand",{keyframes:[{height:"0",opacity:"0",overflow:"hidden"},{height:"auto",opacity:"1",overflow:"hidden"}],options:{duration:250,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)"}});U("tree-item.collapse",{keyframes:[{height:"auto",opacity:"1",overflow:"hidden"},{height:"0",opacity:"0",overflow:"hidden"}],options:{duration:200,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)"}});function j(t,e,i){const s=r=>Object.is(r,-0)?0:r;return t<e?s(e):t>i?s(i):s(t)}function pi(t,e=!1){function i(a){const l=a.getChildrenItems({includeDisabled:!1});if(l.length){const u=l.every(d=>d.selected),c=l.every(d=>!d.selected&&!d.indeterminate);a.selected=u,a.indeterminate=!u&&!c}}function s(a){const l=a.parentElement;de.isTreeItem(l)&&(i(l),s(l))}function r(a){for(const l of a.getChildrenItems())l.selected=e?a.selected||l.selected:!l.disabled&&a.selected,r(l);e&&i(a)}r(t),s(t)}var jt=class extends D{constructor(){super(),this.selection="single",this.localize=new N(this),this.clickTarget=null,this.initTreeItem=t=>{t.selectable=this.selection==="multiple",["expand","collapse"].filter(e=>!!this.querySelector(`[slot="${e}-icon"]`)).forEach(e=>{const i=t.querySelector(`[slot="${e}-icon"]`),s=this.getExpandButtonIcon(e);s&&(i===null?t.append(s):i.hasAttribute("data-default")&&i.replaceWith(s))})},this.handleTreeChanged=t=>{for(const e of t){const i=[...e.addedNodes].filter(de.isTreeItem),s=[...e.removedNodes].filter(de.isTreeItem);i.forEach(this.initTreeItem),this.lastFocusedItem&&s.includes(this.lastFocusedItem)&&(this.lastFocusedItem=null)}},this.handleFocusOut=t=>{const e=t.relatedTarget;(!e||!this.contains(e))&&(this.tabIndex=0)},this.handleFocusIn=t=>{const e=t.target;t.target===this&&this.focusItem(this.lastFocusedItem||this.getAllTreeItems()[0]),de.isTreeItem(e)&&!e.disabled&&(this.lastFocusedItem&&(this.lastFocusedItem.tabIndex=-1),this.lastFocusedItem=e,this.tabIndex=-1,e.tabIndex=0)},this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),this.addEventListener("sl-lazy-change",this.handleSlotChange)}async connectedCallback(){super.connectedCallback(),this.setAttribute("role","tree"),this.setAttribute("tabindex","0"),await this.updateComplete,this.mutationObserver=new MutationObserver(this.handleTreeChanged),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect()}getExpandButtonIcon(t){const i=(t==="expand"?this.expandedIconSlot:this.collapsedIconSlot).assignedElements({flatten:!0})[0];if(i){const s=i.cloneNode(!0);return[s,...s.querySelectorAll("[id]")].forEach(r=>r.removeAttribute("id")),s.setAttribute("data-default",""),s.slot=`${t}-icon`,s}return null}selectItem(t){const e=[...this.selectedItems];if(this.selection==="multiple")t.selected=!t.selected,t.lazy&&(t.expanded=!0),pi(t);else if(this.selection==="single"||t.isLeaf){const s=this.getAllTreeItems();for(const r of s)r.selected=r===t}else this.selection==="leaf"&&(t.expanded=!t.expanded);const i=this.selectedItems;(e.length!==i.length||i.some(s=>!e.includes(s)))&&Promise.all(i.map(s=>s.updateComplete)).then(()=>{this.emit("sl-selection-change",{detail:{selection:i}})})}getAllTreeItems(){return[...this.querySelectorAll("sl-tree-item")]}focusItem(t){t?.focus()}handleKeyDown(t){if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Home","End","Enter"," "].includes(t.key)||t.composedPath().some(r=>{var a;return["input","textarea"].includes((a=r?.tagName)==null?void 0:a.toLowerCase())}))return;const e=this.getFocusableItems(),i=this.localize.dir()==="ltr",s=this.localize.dir()==="rtl";if(e.length>0){t.preventDefault();const r=e.findIndex(c=>c.matches(":focus")),a=e[r],l=c=>{const d=e[j(c,0,e.length-1)];this.focusItem(d)},u=c=>{a.expanded=c};t.key==="ArrowDown"?l(r+1):t.key==="ArrowUp"?l(r-1):i&&t.key==="ArrowRight"||s&&t.key==="ArrowLeft"?!a||a.disabled||a.expanded||a.isLeaf&&!a.lazy?l(r+1):u(!0):i&&t.key==="ArrowLeft"||s&&t.key==="ArrowRight"?!a||a.disabled||a.isLeaf||!a.expanded?l(r-1):u(!1):t.key==="Home"?l(0):t.key==="End"?l(e.length-1):(t.key==="Enter"||t.key===" ")&&(a.disabled||this.selectItem(a))}}handleClick(t){const e=t.target,i=e.closest("sl-tree-item"),s=t.composedPath().some(r=>{var a;return(a=r?.classList)==null?void 0:a.contains("tree-item__expand-button")});!i||i.disabled||e!==this.clickTarget||(s?i.expanded=!i.expanded:this.selectItem(i))}handleMouseDown(t){this.clickTarget=t.target}handleSlotChange(){this.getAllTreeItems().forEach(this.initTreeItem)}async handleSelectionChange(){const t=this.selection==="multiple",e=this.getAllTreeItems();this.setAttribute("aria-multiselectable",t?"true":"false");for(const i of e)i.selectable=t;t&&(await this.updateComplete,[...this.querySelectorAll(":scope > sl-tree-item")].forEach(i=>pi(i,!0)))}get selectedItems(){const t=this.getAllTreeItems(),e=i=>i.selected;return t.filter(e)}getFocusableItems(){const t=this.getAllTreeItems(),e=new Set;return t.filter(i=>{var s;if(i.disabled)return!1;const r=(s=i.parentElement)==null?void 0:s.closest("[role=treeitem]");return r&&(!r.expanded||r.loading||e.has(r))&&e.add(i),!e.has(i)})}render(){return _`
|
|
420
420
|
<div
|
|
421
421
|
part="base"
|
|
422
422
|
class="tree"
|
|
@@ -428,7 +428,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
428
428
|
<span hidden aria-hidden="true"><slot name="expand-icon"></slot></span>
|
|
429
429
|
<span hidden aria-hidden="true"><slot name="collapse-icon"></slot></span>
|
|
430
430
|
</div>
|
|
431
|
-
`}};
|
|
431
|
+
`}};jt.styles=[M,fs];o([S("slot:not([name])")],jt.prototype,"defaultSlot",2);o([S("slot[name=expand-icon]")],jt.prototype,"expandedIconSlot",2);o([S("slot[name=collapse-icon]")],jt.prototype,"collapsedIconSlot",2);o([n()],jt.prototype,"selection",2);o([k("selection")],jt.prototype,"handleSelectionChange",1);jt.define("sl-tree");de.define("sl-tree-item");var bs=I`
|
|
432
432
|
:host {
|
|
433
433
|
display: block;
|
|
434
434
|
}
|
|
@@ -593,10 +593,10 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
593
593
|
resize: none;
|
|
594
594
|
overflow-y: hidden;
|
|
595
595
|
}
|
|
596
|
-
`,V=class extends
|
|
596
|
+
`,V=class extends D{constructor(){super(...arguments),this.formControlController=new Xt(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new Rt(this,"help-text","label"),this.hasFocus=!1,this.title="",this.name="",this.value="",this.size="medium",this.filled=!1,this.label="",this.helpText="",this.placeholder="",this.rows=4,this.resize="vertical",this.disabled=!1,this.readonly=!1,this.form="",this.required=!1,this.spellcheck=!0,this.defaultValue=""}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.setTextareaHeight()),this.updateComplete.then(()=>{this.setTextareaHeight(),this.resizeObserver.observe(this.input)})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback(),this.input&&this.resizeObserver.unobserve(this.input)}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleChange(){this.value=this.input.value,this.setTextareaHeight(),this.emit("sl-change")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleInput(){this.value=this.input.value,this.emit("sl-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}setTextareaHeight(){this.resize==="auto"?(this.input.style.height="auto",this.input.style.height=`${this.input.scrollHeight}px`):this.input.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}scrollPosition(t){if(t){typeof t.top=="number"&&(this.input.scrollTop=t.top),typeof t.left=="number"&&(this.input.scrollLeft=t.left);return}return{top:this.input.scrollTop,left:this.input.scrollTop}}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,s="preserve"){const r=e??this.input.selectionStart,a=i??this.input.selectionEnd;this.input.setRangeText(t,r,a,s),this.value!==this.input.value&&(this.value=this.input.value,this.setTextareaHeight())}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=this.label?!0:!!t,s=this.helpText?!0:!!e;return _`
|
|
597
597
|
<div
|
|
598
598
|
part="form-control"
|
|
599
|
-
class=${
|
|
599
|
+
class=${O({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":i,"form-control--has-help-text":s})}
|
|
600
600
|
>
|
|
601
601
|
<label
|
|
602
602
|
part="form-control-label"
|
|
@@ -610,7 +610,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
610
610
|
<div part="form-control-input" class="form-control-input">
|
|
611
611
|
<div
|
|
612
612
|
part="base"
|
|
613
|
-
class=${
|
|
613
|
+
class=${O({textarea:!0,"textarea--small":this.size==="small","textarea--medium":this.size==="medium","textarea--large":this.size==="large","textarea--standard":!this.filled,"textarea--filled":this.filled,"textarea--disabled":this.disabled,"textarea--focused":this.hasFocus,"textarea--empty":!this.value,"textarea--resize-none":this.resize==="none","textarea--resize-vertical":this.resize==="vertical","textarea--resize-auto":this.resize==="auto"})}
|
|
614
614
|
>
|
|
615
615
|
<textarea
|
|
616
616
|
part="textarea"
|
|
@@ -618,7 +618,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
618
618
|
class="textarea__control"
|
|
619
619
|
title=${this.title}
|
|
620
620
|
name=${H(this.name)}
|
|
621
|
-
.value=${
|
|
621
|
+
.value=${ee(this.value)}
|
|
622
622
|
?disabled=${this.disabled}
|
|
623
623
|
?readonly=${this.readonly}
|
|
624
624
|
?required=${this.required}
|
|
@@ -651,7 +651,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
651
651
|
<slot name="help-text">${this.helpText}</slot>
|
|
652
652
|
</div>
|
|
653
653
|
</div>
|
|
654
|
-
`}};V.styles=[
|
|
654
|
+
`}};V.styles=[M,se,bs];o([S(".textarea__control")],V.prototype,"input",2);o([E()],V.prototype,"hasFocus",2);o([n()],V.prototype,"title",2);o([n()],V.prototype,"name",2);o([n()],V.prototype,"value",2);o([n({reflect:!0})],V.prototype,"size",2);o([n({type:Boolean,reflect:!0})],V.prototype,"filled",2);o([n()],V.prototype,"label",2);o([n({attribute:"help-text"})],V.prototype,"helpText",2);o([n()],V.prototype,"placeholder",2);o([n({type:Number})],V.prototype,"rows",2);o([n()],V.prototype,"resize",2);o([n({type:Boolean,reflect:!0})],V.prototype,"disabled",2);o([n({type:Boolean,reflect:!0})],V.prototype,"readonly",2);o([n({reflect:!0})],V.prototype,"form",2);o([n({type:Boolean,reflect:!0})],V.prototype,"required",2);o([n({type:Number})],V.prototype,"minlength",2);o([n({type:Number})],V.prototype,"maxlength",2);o([n()],V.prototype,"autocapitalize",2);o([n()],V.prototype,"autocorrect",2);o([n()],V.prototype,"autocomplete",2);o([n({type:Boolean})],V.prototype,"autofocus",2);o([n()],V.prototype,"enterkeyhint",2);o([n({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],V.prototype,"spellcheck",2);o([n()],V.prototype,"inputmode",2);o([oe()],V.prototype,"defaultValue",2);o([k("disabled",{waitUntilFirstUpdate:!0})],V.prototype,"handleDisabledChange",1);o([k("rows",{waitUntilFirstUpdate:!0})],V.prototype,"handleRowsChange",1);o([k("value",{waitUntilFirstUpdate:!0})],V.prototype,"handleValueChange",1);V.define("sl-textarea");var vs=I`
|
|
655
655
|
:host(:not(:focus-within)) {
|
|
656
656
|
position: absolute !important;
|
|
657
657
|
width: 1px !important;
|
|
@@ -663,27 +663,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
663
663
|
white-space: nowrap !important;
|
|
664
664
|
padding: 0 !important;
|
|
665
665
|
}
|
|
666
|
-
`,
|
|
667
|
-
:host {
|
|
668
|
-
--padding: 0;
|
|
669
|
-
|
|
670
|
-
display: none;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
:host([active]) {
|
|
674
|
-
display: block;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
.tab-panel {
|
|
678
|
-
display: block;
|
|
679
|
-
padding: var(--padding);
|
|
680
|
-
}
|
|
681
|
-
`,ks=0,be=class extends E{constructor(){super(...arguments),this.attrId=++ks,this.componentId=`sl-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return x`
|
|
682
|
-
<slot
|
|
683
|
-
part="base"
|
|
684
|
-
class=${D({"tab-panel":!0,"tab-panel--active":this.active})}
|
|
685
|
-
></slot>
|
|
686
|
-
`}};be.styles=[O,_s];o([n({reflect:!0})],be.prototype,"name",2);o([n({type:Boolean,reflect:!0})],be.prototype,"active",2);o([k("active")],be.prototype,"handleActiveChange",1);be.define("sl-tab-panel");var Cs=I`
|
|
666
|
+
`,ii=class extends D{render(){return _` <slot></slot> `}};ii.styles=[M,vs];ii.define("sl-visually-hidden");var ys=I`
|
|
687
667
|
:host {
|
|
688
668
|
display: inline-block;
|
|
689
669
|
}
|
|
@@ -796,14 +776,14 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
796
776
|
.tag--pill {
|
|
797
777
|
border-radius: var(--sl-border-radius-pill);
|
|
798
778
|
}
|
|
799
|
-
`,
|
|
779
|
+
`,Wt=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.variant="neutral",this.size="medium",this.pill=!1,this.removable=!1}handleRemoveClick(){this.emit("sl-remove")}render(){return _`
|
|
800
780
|
<span
|
|
801
781
|
part="base"
|
|
802
|
-
class=${
|
|
782
|
+
class=${O({tag:!0,"tag--primary":this.variant==="primary","tag--success":this.variant==="success","tag--neutral":this.variant==="neutral","tag--warning":this.variant==="warning","tag--danger":this.variant==="danger","tag--text":this.variant==="text","tag--small":this.size==="small","tag--medium":this.size==="medium","tag--large":this.size==="large","tag--pill":this.pill,"tag--removable":this.removable})}
|
|
803
783
|
>
|
|
804
784
|
<slot part="content" class="tag__content"></slot>
|
|
805
785
|
|
|
806
|
-
${this.removable?
|
|
786
|
+
${this.removable?_`
|
|
807
787
|
<sl-icon-button
|
|
808
788
|
part="remove-button"
|
|
809
789
|
exportparts="base:remove-button__base"
|
|
@@ -816,7 +796,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
816
796
|
></sl-icon-button>
|
|
817
797
|
`:""}
|
|
818
798
|
</span>
|
|
819
|
-
`}};
|
|
799
|
+
`}};Wt.styles=[M,ys];Wt.dependencies={"sl-icon-button":ei};o([n({reflect:!0})],Wt.prototype,"variant",2);o([n({reflect:!0})],Wt.prototype,"size",2);o([n({type:Boolean,reflect:!0})],Wt.prototype,"pill",2);o([n({type:Boolean})],Wt.prototype,"removable",2);Wt.define("sl-tag");var ws=I`
|
|
820
800
|
:host {
|
|
821
801
|
--max-width: 20rem;
|
|
822
802
|
--hide-delay: 0ms;
|
|
@@ -868,7 +848,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
868
848
|
user-select: none;
|
|
869
849
|
-webkit-user-select: none;
|
|
870
850
|
}
|
|
871
|
-
|
|
851
|
+
`,xs=I`
|
|
872
852
|
:host {
|
|
873
853
|
--arrow-color: var(--sl-color-neutral-1000);
|
|
874
854
|
--arrow-size: 6px;
|
|
@@ -926,29 +906,29 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
926
906
|
var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)
|
|
927
907
|
);
|
|
928
908
|
}
|
|
929
|
-
`;const Nt=Math.min,ft=Math.max,Ee=Math.round,_e=Math.floor,Ut=t=>({x:t,y:t}),Ss={left:"right",right:"left",bottom:"top",top:"bottom"},As={start:"end",end:"start"};function Ze(t,e,i){return ft(t,Nt(e,i))}function ne(t,e){return typeof t=="function"?t(e):t}function Wt(t){return t.split("-")[0]}function le(t){return t.split("-")[1]}function Di(t){return t==="x"?"y":"x"}function ni(t){return t==="y"?"height":"width"}function ve(t){return["top","bottom"].includes(Wt(t))?"y":"x"}function li(t){return Di(ve(t))}function Ts(t,e,i){i===void 0&&(i=!1);const s=le(t),r=li(t),a=ni(r);let l=r==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(l=Le(l)),[l,Le(l)]}function Es(t){const e=Le(t);return[Je(t),e,Je(e)]}function Je(t){return t.replace(/start|end/g,e=>As[e])}function Ls(t,e,i){const s=["left","right"],r=["right","left"],a=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return i?e?r:s:e?s:r;case"left":case"right":return e?a:l;default:return[]}}function Ds(t,e,i,s){const r=le(t);let a=Ls(Wt(t),i==="start",s);return r&&(a=a.map(l=>l+"-"+r),e&&(a=a.concat(a.map(Je)))),a}function Le(t){return t.replace(/left|right|bottom|top/g,e=>Ss[e])}function Is(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ii(t){return typeof t!="number"?Is(t):{top:t,right:t,bottom:t,left:t}}function De(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function vi(t,e,i){let{reference:s,floating:r}=t;const a=ve(e),l=li(e),d=ni(l),c=Wt(e),h=a==="y",g=s.x+s.width/2-r.width/2,u=s.y+s.height/2-r.height/2,p=s[d]/2-r[d]/2;let f;switch(c){case"top":f={x:g,y:s.y-r.height};break;case"bottom":f={x:g,y:s.y+s.height};break;case"right":f={x:s.x+s.width,y:u};break;case"left":f={x:s.x-r.width,y:u};break;default:f={x:s.x,y:s.y}}switch(le(e)){case"start":f[l]-=p*(i&&h?-1:1);break;case"end":f[l]+=p*(i&&h?-1:1);break}return f}const Os=async(t,e,i)=>{const{placement:s="bottom",strategy:r="absolute",middleware:a=[],platform:l}=i,d=a.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(e));let h=await l.getElementRects({reference:t,floating:e,strategy:r}),{x:g,y:u}=vi(h,s,c),p=s,f={},m=0;for(let b=0;b<d.length;b++){const{name:C,fn:S}=d[b],{x:w,y:_,data:v,reset:y}=await S({x:g,y:u,initialPlacement:s,placement:p,strategy:r,middlewareData:f,rects:h,platform:l,elements:{reference:t,floating:e}});g=w??g,u=_??u,f={...f,[C]:{...f[C],...v}},y&&m<=50&&(m++,typeof y=="object"&&(y.placement&&(p=y.placement),y.rects&&(h=y.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:r}):y.rects),{x:g,y:u}=vi(h,p,c)),b=-1)}return{x:g,y:u,placement:p,strategy:r,middlewareData:f}};async function ci(t,e){var i;e===void 0&&(e={});const{x:s,y:r,platform:a,rects:l,elements:d,strategy:c}=t,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:u="floating",altBoundary:p=!1,padding:f=0}=ne(e,t),m=Ii(f),C=d[p?u==="floating"?"reference":"floating":u],S=De(await a.getClippingRect({element:(i=await(a.isElement==null?void 0:a.isElement(C)))==null||i?C:C.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:h,rootBoundary:g,strategy:c})),w=u==="floating"?{...l.floating,x:s,y:r}:l.reference,_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),v=await(a.isElement==null?void 0:a.isElement(_))?await(a.getScale==null?void 0:a.getScale(_))||{x:1,y:1}:{x:1,y:1},y=De(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:w,offsetParent:_,strategy:c}):w);return{top:(S.top-y.top+m.top)/v.y,bottom:(y.bottom-S.bottom+m.bottom)/v.y,left:(S.left-y.left+m.left)/v.x,right:(y.right-S.right+m.right)/v.x}}const Ps=t=>({name:"arrow",options:t,async fn(e){const{x:i,y:s,placement:r,rects:a,platform:l,elements:d,middlewareData:c}=e,{element:h,padding:g=0}=ne(t,e)||{};if(h==null)return{};const u=Ii(g),p={x:i,y:s},f=li(r),m=ni(f),b=await l.getDimensions(h),C=f==="y",S=C?"top":"left",w=C?"bottom":"right",_=C?"clientHeight":"clientWidth",v=a.reference[m]+a.reference[f]-p[f]-a.floating[m],y=p[f]-a.reference[f],$=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let P=$?$[_]:0;(!P||!await(l.isElement==null?void 0:l.isElement($)))&&(P=d.floating[_]||a.floating[m]);const M=v/2-y/2,T=P/2-b[m]/2-1,A=Nt(u[S],T),rt=Nt(u[w],T),q=A,ut=P-b[m]-rt,Q=P/2-b[m]/2+M,lt=Ze(q,Q,ut),Ct=!c.arrow&&le(r)!=null&&Q!==lt&&a.reference[m]/2-(Q<q?A:rt)-b[m]/2<0,Mt=Ct?Q<q?Q-q:Q-ut:0;return{[f]:p[f]+Mt,data:{[f]:lt,centerOffset:Q-lt-Mt,...Ct&&{alignmentOffset:Mt}},reset:Ct}}}),Ms=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var i,s;const{placement:r,middlewareData:a,rects:l,initialPlacement:d,platform:c,elements:h}=e,{mainAxis:g=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...C}=ne(t,e);if((i=a.arrow)!=null&&i.alignmentOffset)return{};const S=Wt(r),w=Wt(d)===d,_=await(c.isRTL==null?void 0:c.isRTL(h.floating)),v=p||(w||!b?[Le(d)]:Es(d));!p&&m!=="none"&&v.push(...Ds(d,b,m,_));const y=[d,...v],$=await ci(e,C),P=[];let M=((s=a.flip)==null?void 0:s.overflows)||[];if(g&&P.push($[S]),u){const q=Ts(r,l,_);P.push($[q[0]],$[q[1]])}if(M=[...M,{placement:r,overflows:P}],!P.every(q=>q<=0)){var T,A;const q=(((T=a.flip)==null?void 0:T.index)||0)+1,ut=y[q];if(ut)return{data:{index:q,overflows:M},reset:{placement:ut}};let Q=(A=M.filter(lt=>lt.overflows[0]<=0).sort((lt,Ct)=>lt.overflows[1]-Ct.overflows[1])[0])==null?void 0:A.placement;if(!Q)switch(f){case"bestFit":{var rt;const lt=(rt=M.map(Ct=>[Ct.placement,Ct.overflows.filter(Mt=>Mt>0).reduce((Mt,Qi)=>Mt+Qi,0)]).sort((Ct,Mt)=>Ct[1]-Mt[1])[0])==null?void 0:rt[0];lt&&(Q=lt);break}case"initialPlacement":Q=d;break}if(r!==Q)return{reset:{placement:Q}}}return{}}}};async function Rs(t,e){const{placement:i,platform:s,elements:r}=t,a=await(s.isRTL==null?void 0:s.isRTL(r.floating)),l=Wt(i),d=le(i),c=ve(i)==="y",h=["left","top"].includes(l)?-1:1,g=a&&c?-1:1,u=ne(e,t);let{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return d&&typeof m=="number"&&(f=d==="end"?m*-1:m),c?{x:f*g,y:p*h}:{x:p*h,y:f*g}}const Fs=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var i,s;const{x:r,y:a,placement:l,middlewareData:d}=e,c=await Rs(e,t);return l===((i=d.offset)==null?void 0:i.placement)&&(s=d.arrow)!=null&&s.alignmentOffset?{}:{x:r+c.x,y:a+c.y,data:{...c,placement:l}}}}},Vs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:s,placement:r}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:d={fn:C=>{let{x:S,y:w}=C;return{x:S,y:w}}},...c}=ne(t,e),h={x:i,y:s},g=await ci(e,c),u=ve(Wt(r)),p=Di(u);let f=h[p],m=h[u];if(a){const C=p==="y"?"top":"left",S=p==="y"?"bottom":"right",w=f+g[C],_=f-g[S];f=Ze(w,f,_)}if(l){const C=u==="y"?"top":"left",S=u==="y"?"bottom":"right",w=m+g[C],_=m-g[S];m=Ze(w,m,_)}const b=d.fn({...e,[p]:f,[u]:m});return{...b,data:{x:b.x-i,y:b.y-s}}}}},Bs=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:i,rects:s,platform:r,elements:a}=e,{apply:l=()=>{},...d}=ne(t,e),c=await ci(e,d),h=Wt(i),g=le(i),u=ve(i)==="y",{width:p,height:f}=s.floating;let m,b;h==="top"||h==="bottom"?(m=h,b=g===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(b=h,m=g==="end"?"top":"bottom");const C=f-c[m],S=p-c[b],w=!e.middlewareData.shift;let _=C,v=S;if(u){const $=p-c.left-c.right;v=g||w?Nt(S,$):$}else{const $=f-c.top-c.bottom;_=g||w?Nt(C,$):$}if(w&&!g){const $=ft(c.left,0),P=ft(c.right,0),M=ft(c.top,0),T=ft(c.bottom,0);u?v=p-2*($!==0||P!==0?$+P:ft(c.left,c.right)):_=f-2*(M!==0||T!==0?M+T:ft(c.top,c.bottom))}await l({...e,availableWidth:v,availableHeight:_});const y=await r.getDimensions(a.floating);return p!==y.width||f!==y.height?{reset:{rects:!0}}:{}}}};function qt(t){return Oi(t)?(t.nodeName||"").toLowerCase():"#document"}function mt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Bt(t){var e;return(e=(Oi(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Oi(t){return t instanceof Node||t instanceof mt(t).Node}function Ft(t){return t instanceof Element||t instanceof mt(t).Element}function Dt(t){return t instanceof HTMLElement||t instanceof mt(t).HTMLElement}function yi(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof mt(t).ShadowRoot}function ye(t){const{overflow:e,overflowX:i,overflowY:s,display:r}=_t(t);return/auto|scroll|overlay|hidden|clip/.test(e+s+i)&&!["inline","contents"].includes(r)}function Hs(t){return["table","td","th"].includes(qt(t))}function di(t){const e=hi(),i=_t(t);return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(i.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(i.contain||"").includes(s))}function Pi(t){let e=oe(t);for(;Dt(e)&&!Pe(e);){if(di(e))return e;e=oe(e)}return null}function hi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Pe(t){return["html","body","#document"].includes(qt(t))}function _t(t){return mt(t).getComputedStyle(t)}function Me(t){return Ft(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function oe(t){if(qt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||yi(t)&&t.host||Bt(t);return yi(e)?e.host:e}function Mi(t){const e=oe(t);return Pe(e)?t.ownerDocument?t.ownerDocument.body:t.body:Dt(e)&&ye(e)?e:Mi(e)}function me(t,e,i){var s;e===void 0&&(e=[]),i===void 0&&(i=!0);const r=Mi(t),a=r===((s=t.ownerDocument)==null?void 0:s.body),l=mt(r);return a?e.concat(l,l.visualViewport||[],ye(r)?r:[],l.frameElement&&i?me(l.frameElement):[]):e.concat(r,me(r,[],i))}function Ri(t){const e=_t(t);let i=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const r=Dt(t),a=r?t.offsetWidth:i,l=r?t.offsetHeight:s,d=Ee(i)!==a||Ee(s)!==l;return d&&(i=a,s=l),{width:i,height:s,$:d}}function ui(t){return Ft(t)?t:t.contextElement}function ie(t){const e=ui(t);if(!Dt(e))return Ut(1);const i=e.getBoundingClientRect(),{width:s,height:r,$:a}=Ri(e);let l=(a?Ee(i.width):i.width)/s,d=(a?Ee(i.height):i.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}const Ns=Ut(0);function Fi(t){const e=mt(t);return!hi()||!e.visualViewport?Ns:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Us(t,e,i){return e===void 0&&(e=!1),!i||e&&i!==mt(t)?!1:e}function jt(t,e,i,s){e===void 0&&(e=!1),i===void 0&&(i=!1);const r=t.getBoundingClientRect(),a=ui(t);let l=Ut(1);e&&(s?Ft(s)&&(l=ie(s)):l=ie(t));const d=Us(a,i,s)?Fi(a):Ut(0);let c=(r.left+d.x)/l.x,h=(r.top+d.y)/l.y,g=r.width/l.x,u=r.height/l.y;if(a){const p=mt(a),f=s&&Ft(s)?mt(s):s;let m=p.frameElement;for(;m&&s&&f!==p;){const b=ie(m),C=m.getBoundingClientRect(),S=_t(m),w=C.left+(m.clientLeft+parseFloat(S.paddingLeft))*b.x,_=C.top+(m.clientTop+parseFloat(S.paddingTop))*b.y;c*=b.x,h*=b.y,g*=b.x,u*=b.y,c+=w,h+=_,m=mt(m).frameElement}}return De({width:g,height:u,x:c,y:h})}const Ws=[":popover-open",":modal"];function Vi(t){let e=!1,i=0,s=0;function r(a){try{e=e||t.matches(a)}catch{}}if(Ws.forEach(a=>{r(a)}),e){const a=Pi(t);if(a){const l=a.getBoundingClientRect();i=l.x,s=l.y}}return[e,i,s]}function qs(t){let{elements:e,rect:i,offsetParent:s,strategy:r}=t;const a=Bt(s),[l]=e?Vi(e.floating):[!1];if(s===a||l)return i;let d={scrollLeft:0,scrollTop:0},c=Ut(1);const h=Ut(0),g=Dt(s);if((g||!g&&r!=="fixed")&&((qt(s)!=="body"||ye(a))&&(d=Me(s)),Dt(s))){const u=jt(s);c=ie(s),h.x=u.x+s.clientLeft,h.y=u.y+s.clientTop}return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-d.scrollLeft*c.x+h.x,y:i.y*c.y-d.scrollTop*c.y+h.y}}function Ys(t){return Array.from(t.getClientRects())}function Bi(t){return jt(Bt(t)).left+Me(t).scrollLeft}function Ks(t){const e=Bt(t),i=Me(t),s=t.ownerDocument.body,r=ft(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),a=ft(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let l=-i.scrollLeft+Bi(t);const d=-i.scrollTop;return _t(s).direction==="rtl"&&(l+=ft(e.clientWidth,s.clientWidth)-r),{width:r,height:a,x:l,y:d}}function Xs(t,e){const i=mt(t),s=Bt(t),r=i.visualViewport;let a=s.clientWidth,l=s.clientHeight,d=0,c=0;if(r){a=r.width,l=r.height;const h=hi();(!h||h&&e==="fixed")&&(d=r.offsetLeft,c=r.offsetTop)}return{width:a,height:l,x:d,y:c}}function js(t,e){const i=jt(t,!0,e==="fixed"),s=i.top+t.clientTop,r=i.left+t.clientLeft,a=Dt(t)?ie(t):Ut(1),l=t.clientWidth*a.x,d=t.clientHeight*a.y,c=r*a.x,h=s*a.y;return{width:l,height:d,x:c,y:h}}function wi(t,e,i){let s;if(e==="viewport")s=Xs(t,i);else if(e==="document")s=Ks(Bt(t));else if(Ft(e))s=js(e,i);else{const r=Fi(t);s={...e,x:e.x-r.x,y:e.y-r.y}}return De(s)}function Hi(t,e){const i=oe(t);return i===e||!Ft(i)||Pe(i)?!1:_t(i).position==="fixed"||Hi(i,e)}function Gs(t,e){const i=e.get(t);if(i)return i;let s=me(t,[],!1).filter(d=>Ft(d)&&qt(d)!=="body"),r=null;const a=_t(t).position==="fixed";let l=a?oe(t):t;for(;Ft(l)&&!Pe(l);){const d=_t(l),c=di(l);!c&&d.position==="fixed"&&(r=null),(a?!c&&!r:!c&&d.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ye(l)&&!c&&Hi(t,l))?s=s.filter(g=>g!==l):r=d,l=oe(l)}return e.set(t,s),s}function Qs(t){let{element:e,boundary:i,rootBoundary:s,strategy:r}=t;const l=[...i==="clippingAncestors"?Gs(e,this._c):[].concat(i),s],d=l[0],c=l.reduce((h,g)=>{const u=wi(e,g,r);return h.top=ft(u.top,h.top),h.right=Nt(u.right,h.right),h.bottom=Nt(u.bottom,h.bottom),h.left=ft(u.left,h.left),h},wi(e,d,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Zs(t){const{width:e,height:i}=Ri(t);return{width:e,height:i}}function Js(t,e,i,s){const r=Dt(e),a=Bt(e),l=i==="fixed",d=jt(t,!0,l,e);let c={scrollLeft:0,scrollTop:0};const h=Ut(0);if(r||!r&&!l)if((qt(e)!=="body"||ye(a))&&(c=Me(e)),r){const b=jt(e,!0,l,e);h.x=b.x+e.clientLeft,h.y=b.y+e.clientTop}else a&&(h.x=Bi(a));let g=d.left+c.scrollLeft-h.x,u=d.top+c.scrollTop-h.y;const[p,f,m]=Vi(s);return p&&(g+=f,u+=m,r&&(g+=e.clientLeft,u+=e.clientTop)),{x:g,y:u,width:d.width,height:d.height}}function xi(t,e){return!Dt(t)||_t(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ni(t,e){const i=mt(t);if(!Dt(t))return i;let s=xi(t,e);for(;s&&Hs(s)&&_t(s).position==="static";)s=xi(s,e);return s&&(qt(s)==="html"||qt(s)==="body"&&_t(s).position==="static"&&!di(s))?i:s||Pi(t)||i}const to=async function(t){const e=this.getOffsetParent||Ni,i=this.getDimensions;return{reference:Js(t.reference,await e(t.floating),t.strategy,t.floating),floating:{x:0,y:0,...await i(t.floating)}}};function eo(t){return _t(t).direction==="rtl"}const $e={convertOffsetParentRelativeRectToViewportRelativeRect:qs,getDocumentElement:Bt,getClippingRect:Qs,getOffsetParent:Ni,getElementRects:to,getClientRects:Ys,getDimensions:Zs,getScale:ie,isElement:Ft,isRTL:eo};function io(t,e){let i=null,s;const r=Bt(t);function a(){var d;clearTimeout(s),(d=i)==null||d.disconnect(),i=null}function l(d,c){d===void 0&&(d=!1),c===void 0&&(c=1),a();const{left:h,top:g,width:u,height:p}=t.getBoundingClientRect();if(d||e(),!u||!p)return;const f=_e(g),m=_e(r.clientWidth-(h+u)),b=_e(r.clientHeight-(g+p)),C=_e(h),w={rootMargin:-f+"px "+-m+"px "+-b+"px "+-C+"px",threshold:ft(0,Nt(1,c))||1};let _=!0;function v(y){const $=y[0].intersectionRatio;if($!==c){if(!_)return l();$?l(!1,$):s=setTimeout(()=>{l(!1,1e-7)},100)}_=!1}try{i=new IntersectionObserver(v,{...w,root:r.ownerDocument})}catch{i=new IntersectionObserver(v,w)}i.observe(t)}return l(!0),a}function so(t,e,i,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,h=ui(t),g=r||a?[...h?me(h):[],...me(e)]:[];g.forEach(S=>{r&&S.addEventListener("scroll",i,{passive:!0}),a&&S.addEventListener("resize",i)});const u=h&&d?io(h,i):null;let p=-1,f=null;l&&(f=new ResizeObserver(S=>{let[w]=S;w&&w.target===h&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=f)==null||_.observe(e)})),i()}),h&&!c&&f.observe(h),f.observe(e));let m,b=c?jt(t):null;c&&C();function C(){const S=jt(t);b&&(S.x!==b.x||S.y!==b.y||S.width!==b.width||S.height!==b.height)&&i(),b=S,m=requestAnimationFrame(C)}return i(),()=>{var S;g.forEach(w=>{r&&w.removeEventListener("scroll",i),a&&w.removeEventListener("resize",i)}),u?.(),(S=f)==null||S.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const oo=Vs,ro=Ms,_i=Bs,ao=Ps,no=(t,e,i)=>{const s=new Map,r={platform:$e,...i},a={...r.platform,_c:s};return Os(t,e,{...r,platform:a})};function lo(t){return co(t)}function We(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function co(t){for(let e=t;e;e=We(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=We(t);e;e=We(e)){if(!(e instanceof Element))continue;const i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||i.filter!=="none"||e.tagName==="BODY"))return e}return null}function ho(t){return t!==null&&typeof t=="object"&&"getBoundingClientRect"in t&&("contextElement"in t?t instanceof Element:!0)}var B=class extends E{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const t=this.anchorEl.getBoundingClientRect(),e=this.popup.getBoundingClientRect(),i=this.placement.includes("top")||this.placement.includes("bottom");let s=0,r=0,a=0,l=0,d=0,c=0,h=0,g=0;i?t.top<e.top?(s=t.left,r=t.bottom,a=t.right,l=t.bottom,d=e.left,c=e.top,h=e.right,g=e.top):(s=e.left,r=e.bottom,a=e.right,l=e.bottom,d=t.left,c=t.top,h=t.right,g=t.top):t.left<e.left?(s=t.right,r=t.top,a=e.left,l=e.top,d=t.right,c=t.bottom,h=e.left,g=e.bottom):(s=e.right,r=e.top,a=t.left,l=t.top,d=e.right,c=e.bottom,h=t.left,g=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${s}px`),this.style.setProperty("--hover-bridge-top-left-y",`${r}px`),this.style.setProperty("--hover-bridge-top-right-x",`${a}px`),this.style.setProperty("--hover-bridge-top-right-y",`${l}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${d}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${c}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${h}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${g}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||ho(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=so(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;const t=[Fs({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(_i({apply:({rects:i})=>{const s=this.sync==="width"||this.sync==="both",r=this.sync==="height"||this.sync==="both";this.popup.style.width=s?`${i.reference.width}px`:"",this.popup.style.height=r?`${i.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(ro({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(oo({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(_i({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:i,availableHeight:s})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${s}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${i}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(ao({element:this.arrowEl,padding:this.arrowPadding}));const e=this.strategy==="absolute"?i=>$e.getOffsetParent(i,lo):$e.getOffsetParent;no(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:es(Ei({},$e),{getOffsetParent:e})}).then(({x:i,y:s,middlewareData:r,placement:a})=>{const l=getComputedStyle(this).direction==="rtl",d={top:"bottom",right:"left",bottom:"top",left:"right"}[a.split("-")[0]];if(this.setAttribute("data-current-placement",a),Object.assign(this.popup.style,{left:`${i}px`,top:`${s}px`}),this.arrow){const c=r.arrow.x,h=r.arrow.y;let g="",u="",p="",f="";if(this.arrowPlacement==="start"){const m=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";g=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",u=l?m:"",f=l?"":m}else if(this.arrowPlacement==="end"){const m=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";u=l?"":m,f=l?m:"",p=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(f=typeof c=="number"?"calc(50% - var(--arrow-size-diagonal))":"",g=typeof h=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(f=typeof c=="number"?`${c}px`:"",g=typeof h=="number"?`${h}px`:"");Object.assign(this.arrowEl.style,{top:g,right:u,bottom:p,left:f,[d]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge()),this.emit("sl-reposition")}render(){return x`
|
|
909
|
+
`;const Bt=Math.min,ft=Math.max,$e=Math.round,ve=Math.floor,Ht=t=>({x:t,y:t}),_s={left:"right",right:"left",bottom:"top",top:"bottom"},ks={start:"end",end:"start"};function Ke(t,e,i){return ft(t,Bt(e,i))}function re(t,e){return typeof t=="function"?t(e):t}function Nt(t){return t.split("-")[0]}function ae(t){return t.split("-")[1]}function Si(t){return t==="x"?"y":"x"}function si(t){return t==="y"?"height":"width"}function fe(t){return["top","bottom"].includes(Nt(t))?"y":"x"}function oi(t){return Si(fe(t))}function Cs(t,e,i){i===void 0&&(i=!1);const s=ae(t),r=oi(t),a=si(r);let l=r==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(l=Se(l)),[l,Se(l)]}function zs(t){const e=Se(t);return[Xe(t),e,Xe(e)]}function Xe(t){return t.replace(/start|end/g,e=>ks[e])}function $s(t,e,i){const s=["left","right"],r=["right","left"],a=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return i?e?r:s:e?s:r;case"left":case"right":return e?a:l;default:return[]}}function Ss(t,e,i,s){const r=ae(t);let a=$s(Nt(t),i==="start",s);return r&&(a=a.map(l=>l+"-"+r),e&&(a=a.concat(a.map(Xe)))),a}function Se(t){return t.replace(/left|right|bottom|top/g,e=>_s[e])}function As(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ai(t){return typeof t!="number"?As(t):{top:t,right:t,bottom:t,left:t}}function Ae(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function fi(t,e,i){let{reference:s,floating:r}=t;const a=fe(e),l=oi(e),u=si(l),c=Nt(e),d=a==="y",g=s.x+s.width/2-r.width/2,h=s.y+s.height/2-r.height/2,p=s[u]/2-r[u]/2;let f;switch(c){case"top":f={x:g,y:s.y-r.height};break;case"bottom":f={x:g,y:s.y+s.height};break;case"right":f={x:s.x+s.width,y:h};break;case"left":f={x:s.x-r.width,y:h};break;default:f={x:s.x,y:s.y}}switch(ae(e)){case"start":f[l]-=p*(i&&d?-1:1);break;case"end":f[l]+=p*(i&&d?-1:1);break}return f}const Ts=async(t,e,i)=>{const{placement:s="bottom",strategy:r="absolute",middleware:a=[],platform:l}=i,u=a.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(e));let d=await l.getElementRects({reference:t,floating:e,strategy:r}),{x:g,y:h}=fi(d,s,c),p=s,f={},m=0;for(let b=0;b<u.length;b++){const{name:C,fn:$}=u[b],{x:w,y:x,data:v,reset:y}=await $({x:g,y:h,initialPlacement:s,placement:p,strategy:r,middlewareData:f,rects:d,platform:l,elements:{reference:t,floating:e}});g=w??g,h=x??h,f={...f,[C]:{...f[C],...v}},y&&m<=50&&(m++,typeof y=="object"&&(y.placement&&(p=y.placement),y.rects&&(d=y.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:r}):y.rects),{x:g,y:h}=fi(d,p,c)),b=-1)}return{x:g,y:h,placement:p,strategy:r,middlewareData:f}};async function ri(t,e){var i;e===void 0&&(e={});const{x:s,y:r,platform:a,rects:l,elements:u,strategy:c}=t,{boundary:d="clippingAncestors",rootBoundary:g="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=re(e,t),m=Ai(f),C=u[p?h==="floating"?"reference":"floating":h],$=Ae(await a.getClippingRect({element:(i=await(a.isElement==null?void 0:a.isElement(C)))==null||i?C:C.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:d,rootBoundary:g,strategy:c})),w=h==="floating"?{...l.floating,x:s,y:r}:l.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),v=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},y=Ae(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:w,offsetParent:x,strategy:c}):w);return{top:($.top-y.top+m.top)/v.y,bottom:(y.bottom-$.bottom+m.bottom)/v.y,left:($.left-y.left+m.left)/v.x,right:(y.right-$.right+m.right)/v.x}}const Es=t=>({name:"arrow",options:t,async fn(e){const{x:i,y:s,placement:r,rects:a,platform:l,elements:u,middlewareData:c}=e,{element:d,padding:g=0}=re(t,e)||{};if(d==null)return{};const h=Ai(g),p={x:i,y:s},f=oi(r),m=si(f),b=await l.getDimensions(d),C=f==="y",$=C?"top":"left",w=C?"bottom":"right",x=C?"clientHeight":"clientWidth",v=a.reference[m]+a.reference[f]-p[f]-a.floating[m],y=p[f]-a.reference[f],z=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let L=z?z[x]:0;(!L||!await(l.isElement==null?void 0:l.isElement(z)))&&(L=u.floating[x]||a.floating[m]);const P=v/2-y/2,T=L/2-b[m]/2-1,A=Bt(h[$],T),rt=Bt(h[w],T),q=A,ut=L-b[m]-rt,Q=L/2-b[m]/2+P,lt=Ke(q,Q,ut),kt=!c.arrow&&ae(r)!=null&&Q!==lt&&a.reference[m]/2-(Q<q?A:rt)-b[m]/2<0,It=kt?Q<q?Q-q:Q-ut:0;return{[f]:p[f]+It,data:{[f]:lt,centerOffset:Q-lt-It,...kt&&{alignmentOffset:It}},reset:kt}}}),Ds=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var i,s;const{placement:r,middlewareData:a,rects:l,initialPlacement:u,platform:c,elements:d}=e,{mainAxis:g=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...C}=re(t,e);if((i=a.arrow)!=null&&i.alignmentOffset)return{};const $=Nt(r),w=Nt(u)===u,x=await(c.isRTL==null?void 0:c.isRTL(d.floating)),v=p||(w||!b?[Se(u)]:zs(u));!p&&m!=="none"&&v.push(...Ss(u,b,m,x));const y=[u,...v],z=await ri(e,C),L=[];let P=((s=a.flip)==null?void 0:s.overflows)||[];if(g&&L.push(z[$]),h){const q=Cs(r,l,x);L.push(z[q[0]],z[q[1]])}if(P=[...P,{placement:r,overflows:L}],!L.every(q=>q<=0)){var T,A;const q=(((T=a.flip)==null?void 0:T.index)||0)+1,ut=y[q];if(ut)return{data:{index:q,overflows:P},reset:{placement:ut}};let Q=(A=P.filter(lt=>lt.overflows[0]<=0).sort((lt,kt)=>lt.overflows[1]-kt.overflows[1])[0])==null?void 0:A.placement;if(!Q)switch(f){case"bestFit":{var rt;const lt=(rt=P.map(kt=>[kt.placement,kt.overflows.filter(It=>It>0).reduce((It,Yi)=>It+Yi,0)]).sort((kt,It)=>kt[1]-It[1])[0])==null?void 0:rt[0];lt&&(Q=lt);break}case"initialPlacement":Q=u;break}if(r!==Q)return{reset:{placement:Q}}}return{}}}};async function Ls(t,e){const{placement:i,platform:s,elements:r}=t,a=await(s.isRTL==null?void 0:s.isRTL(r.floating)),l=Nt(i),u=ae(i),c=fe(i)==="y",d=["left","top"].includes(l)?-1:1,g=a&&c?-1:1,h=re(e,t);let{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return u&&typeof m=="number"&&(f=u==="end"?m*-1:m),c?{x:f*g,y:p*d}:{x:p*d,y:f*g}}const Os=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var i,s;const{x:r,y:a,placement:l,middlewareData:u}=e,c=await Ls(e,t);return l===((i=u.offset)==null?void 0:i.placement)&&(s=u.arrow)!=null&&s.alignmentOffset?{}:{x:r+c.x,y:a+c.y,data:{...c,placement:l}}}}},Is=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:s,placement:r}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:C=>{let{x:$,y:w}=C;return{x:$,y:w}}},...c}=re(t,e),d={x:i,y:s},g=await ri(e,c),h=fe(Nt(r)),p=Si(h);let f=d[p],m=d[h];if(a){const C=p==="y"?"top":"left",$=p==="y"?"bottom":"right",w=f+g[C],x=f-g[$];f=Ke(w,f,x)}if(l){const C=h==="y"?"top":"left",$=h==="y"?"bottom":"right",w=m+g[C],x=m-g[$];m=Ke(w,m,x)}const b=u.fn({...e,[p]:f,[h]:m});return{...b,data:{x:b.x-i,y:b.y-s}}}}},Ms=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:i,rects:s,platform:r,elements:a}=e,{apply:l=()=>{},...u}=re(t,e),c=await ri(e,u),d=Nt(i),g=ae(i),h=fe(i)==="y",{width:p,height:f}=s.floating;let m,b;d==="top"||d==="bottom"?(m=d,b=g===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(b=d,m=g==="end"?"top":"bottom");const C=f-c[m],$=p-c[b],w=!e.middlewareData.shift;let x=C,v=$;if(h){const z=p-c.left-c.right;v=g||w?Bt($,z):z}else{const z=f-c.top-c.bottom;x=g||w?Bt(C,z):z}if(w&&!g){const z=ft(c.left,0),L=ft(c.right,0),P=ft(c.top,0),T=ft(c.bottom,0);h?v=p-2*(z!==0||L!==0?z+L:ft(c.left,c.right)):x=f-2*(P!==0||T!==0?P+T:ft(c.top,c.bottom))}await l({...e,availableWidth:v,availableHeight:x});const y=await r.getDimensions(a.floating);return p!==y.width||f!==y.height?{reset:{rects:!0}}:{}}}};function Ut(t){return Ti(t)?(t.nodeName||"").toLowerCase():"#document"}function mt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ft(t){var e;return(e=(Ti(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ti(t){return t instanceof Node||t instanceof mt(t).Node}function Pt(t){return t instanceof Element||t instanceof mt(t).Element}function Dt(t){return t instanceof HTMLElement||t instanceof mt(t).HTMLElement}function mi(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof mt(t).ShadowRoot}function me(t){const{overflow:e,overflowX:i,overflowY:s,display:r}=xt(t);return/auto|scroll|overlay|hidden|clip/.test(e+s+i)&&!["inline","contents"].includes(r)}function Ps(t){return["table","td","th"].includes(Ut(t))}function ai(t){const e=ni(),i=xt(t);return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(i.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(i.contain||"").includes(s))}function Ei(t){let e=ie(t);for(;Dt(e)&&!De(e);){if(ai(e))return e;e=ie(e)}return null}function ni(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function De(t){return["html","body","#document"].includes(Ut(t))}function xt(t){return mt(t).getComputedStyle(t)}function Le(t){return Pt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ie(t){if(Ut(t)==="html")return t;const e=t.assignedSlot||t.parentNode||mi(t)&&t.host||Ft(t);return mi(e)?e.host:e}function Di(t){const e=ie(t);return De(e)?t.ownerDocument?t.ownerDocument.body:t.body:Dt(e)&&me(e)?e:Di(e)}function pe(t,e,i){var s;e===void 0&&(e=[]),i===void 0&&(i=!0);const r=Di(t),a=r===((s=t.ownerDocument)==null?void 0:s.body),l=mt(r);return a?e.concat(l,l.visualViewport||[],me(r)?r:[],l.frameElement&&i?pe(l.frameElement):[]):e.concat(r,pe(r,[],i))}function Li(t){const e=xt(t);let i=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const r=Dt(t),a=r?t.offsetWidth:i,l=r?t.offsetHeight:s,u=$e(i)!==a||$e(s)!==l;return u&&(i=a,s=l),{width:i,height:s,$:u}}function li(t){return Pt(t)?t:t.contextElement}function te(t){const e=li(t);if(!Dt(e))return Ht(1);const i=e.getBoundingClientRect(),{width:s,height:r,$:a}=Li(e);let l=(a?$e(i.width):i.width)/s,u=(a?$e(i.height):i.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const Rs=Ht(0);function Oi(t){const e=mt(t);return!ni()||!e.visualViewport?Rs:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Fs(t,e,i){return e===void 0&&(e=!1),!i||e&&i!==mt(t)?!1:e}function Kt(t,e,i,s){e===void 0&&(e=!1),i===void 0&&(i=!1);const r=t.getBoundingClientRect(),a=li(t);let l=Ht(1);e&&(s?Pt(s)&&(l=te(s)):l=te(t));const u=Fs(a,i,s)?Oi(a):Ht(0);let c=(r.left+u.x)/l.x,d=(r.top+u.y)/l.y,g=r.width/l.x,h=r.height/l.y;if(a){const p=mt(a),f=s&&Pt(s)?mt(s):s;let m=p.frameElement;for(;m&&s&&f!==p;){const b=te(m),C=m.getBoundingClientRect(),$=xt(m),w=C.left+(m.clientLeft+parseFloat($.paddingLeft))*b.x,x=C.top+(m.clientTop+parseFloat($.paddingTop))*b.y;c*=b.x,d*=b.y,g*=b.x,h*=b.y,c+=w,d+=x,m=mt(m).frameElement}}return Ae({width:g,height:h,x:c,y:d})}const Vs=[":popover-open",":modal"];function Ii(t){let e=!1,i=0,s=0;function r(a){try{e=e||t.matches(a)}catch{}}if(Vs.forEach(a=>{r(a)}),e){const a=Ei(t);if(a){const l=a.getBoundingClientRect();i=l.x,s=l.y}}return[e,i,s]}function Bs(t){let{elements:e,rect:i,offsetParent:s,strategy:r}=t;const a=Ft(s),[l]=e?Ii(e.floating):[!1];if(s===a||l)return i;let u={scrollLeft:0,scrollTop:0},c=Ht(1);const d=Ht(0),g=Dt(s);if((g||!g&&r!=="fixed")&&((Ut(s)!=="body"||me(a))&&(u=Le(s)),Dt(s))){const h=Kt(s);c=te(s),d.x=h.x+s.clientLeft,d.y=h.y+s.clientTop}return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-u.scrollLeft*c.x+d.x,y:i.y*c.y-u.scrollTop*c.y+d.y}}function Hs(t){return Array.from(t.getClientRects())}function Mi(t){return Kt(Ft(t)).left+Le(t).scrollLeft}function Ns(t){const e=Ft(t),i=Le(t),s=t.ownerDocument.body,r=ft(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),a=ft(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let l=-i.scrollLeft+Mi(t);const u=-i.scrollTop;return xt(s).direction==="rtl"&&(l+=ft(e.clientWidth,s.clientWidth)-r),{width:r,height:a,x:l,y:u}}function Us(t,e){const i=mt(t),s=Ft(t),r=i.visualViewport;let a=s.clientWidth,l=s.clientHeight,u=0,c=0;if(r){a=r.width,l=r.height;const d=ni();(!d||d&&e==="fixed")&&(u=r.offsetLeft,c=r.offsetTop)}return{width:a,height:l,x:u,y:c}}function Ws(t,e){const i=Kt(t,!0,e==="fixed"),s=i.top+t.clientTop,r=i.left+t.clientLeft,a=Dt(t)?te(t):Ht(1),l=t.clientWidth*a.x,u=t.clientHeight*a.y,c=r*a.x,d=s*a.y;return{width:l,height:u,x:c,y:d}}function gi(t,e,i){let s;if(e==="viewport")s=Us(t,i);else if(e==="document")s=Ns(Ft(t));else if(Pt(e))s=Ws(e,i);else{const r=Oi(t);s={...e,x:e.x-r.x,y:e.y-r.y}}return Ae(s)}function Pi(t,e){const i=ie(t);return i===e||!Pt(i)||De(i)?!1:xt(i).position==="fixed"||Pi(i,e)}function qs(t,e){const i=e.get(t);if(i)return i;let s=pe(t,[],!1).filter(u=>Pt(u)&&Ut(u)!=="body"),r=null;const a=xt(t).position==="fixed";let l=a?ie(t):t;for(;Pt(l)&&!De(l);){const u=xt(l),c=ai(l);!c&&u.position==="fixed"&&(r=null),(a?!c&&!r:!c&&u.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||me(l)&&!c&&Pi(t,l))?s=s.filter(g=>g!==l):r=u,l=ie(l)}return e.set(t,s),s}function Ys(t){let{element:e,boundary:i,rootBoundary:s,strategy:r}=t;const l=[...i==="clippingAncestors"?qs(e,this._c):[].concat(i),s],u=l[0],c=l.reduce((d,g)=>{const h=gi(e,g,r);return d.top=ft(h.top,d.top),d.right=Bt(h.right,d.right),d.bottom=Bt(h.bottom,d.bottom),d.left=ft(h.left,d.left),d},gi(e,u,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ks(t){const{width:e,height:i}=Li(t);return{width:e,height:i}}function Xs(t,e,i,s){const r=Dt(e),a=Ft(e),l=i==="fixed",u=Kt(t,!0,l,e);let c={scrollLeft:0,scrollTop:0};const d=Ht(0);if(r||!r&&!l)if((Ut(e)!=="body"||me(a))&&(c=Le(e)),r){const b=Kt(e,!0,l,e);d.x=b.x+e.clientLeft,d.y=b.y+e.clientTop}else a&&(d.x=Mi(a));let g=u.left+c.scrollLeft-d.x,h=u.top+c.scrollTop-d.y;const[p,f,m]=Ii(s);return p&&(g+=f,h+=m,r&&(g+=e.clientLeft,h+=e.clientTop)),{x:g,y:h,width:u.width,height:u.height}}function bi(t,e){return!Dt(t)||xt(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ri(t,e){const i=mt(t);if(!Dt(t))return i;let s=bi(t,e);for(;s&&Ps(s)&&xt(s).position==="static";)s=bi(s,e);return s&&(Ut(s)==="html"||Ut(s)==="body"&&xt(s).position==="static"&&!ai(s))?i:s||Ei(t)||i}const js=async function(t){const e=this.getOffsetParent||Ri,i=this.getDimensions;return{reference:Xs(t.reference,await e(t.floating),t.strategy,t.floating),floating:{x:0,y:0,...await i(t.floating)}}};function Gs(t){return xt(t).direction==="rtl"}const _e={convertOffsetParentRelativeRectToViewportRelativeRect:Bs,getDocumentElement:Ft,getClippingRect:Ys,getOffsetParent:Ri,getElementRects:js,getClientRects:Hs,getDimensions:Ks,getScale:te,isElement:Pt,isRTL:Gs};function Qs(t,e){let i=null,s;const r=Ft(t);function a(){var u;clearTimeout(s),(u=i)==null||u.disconnect(),i=null}function l(u,c){u===void 0&&(u=!1),c===void 0&&(c=1),a();const{left:d,top:g,width:h,height:p}=t.getBoundingClientRect();if(u||e(),!h||!p)return;const f=ve(g),m=ve(r.clientWidth-(d+h)),b=ve(r.clientHeight-(g+p)),C=ve(d),w={rootMargin:-f+"px "+-m+"px "+-b+"px "+-C+"px",threshold:ft(0,Bt(1,c))||1};let x=!0;function v(y){const z=y[0].intersectionRatio;if(z!==c){if(!x)return l();z?l(!1,z):s=setTimeout(()=>{l(!1,1e-7)},100)}x=!1}try{i=new IntersectionObserver(v,{...w,root:r.ownerDocument})}catch{i=new IntersectionObserver(v,w)}i.observe(t)}return l(!0),a}function Zs(t,e,i,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,d=li(t),g=r||a?[...d?pe(d):[],...pe(e)]:[];g.forEach($=>{r&&$.addEventListener("scroll",i,{passive:!0}),a&&$.addEventListener("resize",i)});const h=d&&u?Qs(d,i):null;let p=-1,f=null;l&&(f=new ResizeObserver($=>{let[w]=$;w&&w.target===d&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(e)})),i()}),d&&!c&&f.observe(d),f.observe(e));let m,b=c?Kt(t):null;c&&C();function C(){const $=Kt(t);b&&($.x!==b.x||$.y!==b.y||$.width!==b.width||$.height!==b.height)&&i(),b=$,m=requestAnimationFrame(C)}return i(),()=>{var $;g.forEach(w=>{r&&w.removeEventListener("scroll",i),a&&w.removeEventListener("resize",i)}),h?.(),($=f)==null||$.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const Js=Is,to=Ds,vi=Ms,eo=Es,io=(t,e,i)=>{const s=new Map,r={platform:_e,...i},a={...r.platform,_c:s};return Ts(t,e,{...r,platform:a})};function so(t){return oo(t)}function Be(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function oo(t){for(let e=t;e;e=Be(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Be(t);e;e=Be(e)){if(!(e instanceof Element))continue;const i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||i.filter!=="none"||e.tagName==="BODY"))return e}return null}function ro(t){return t!==null&&typeof t=="object"&&"getBoundingClientRect"in t&&("contextElement"in t?t instanceof Element:!0)}var B=class extends D{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const t=this.anchorEl.getBoundingClientRect(),e=this.popup.getBoundingClientRect(),i=this.placement.includes("top")||this.placement.includes("bottom");let s=0,r=0,a=0,l=0,u=0,c=0,d=0,g=0;i?t.top<e.top?(s=t.left,r=t.bottom,a=t.right,l=t.bottom,u=e.left,c=e.top,d=e.right,g=e.top):(s=e.left,r=e.bottom,a=e.right,l=e.bottom,u=t.left,c=t.top,d=t.right,g=t.top):t.left<e.left?(s=t.right,r=t.top,a=e.left,l=e.top,u=t.right,c=t.bottom,d=e.left,g=e.bottom):(s=e.right,r=e.top,a=t.left,l=t.top,u=e.right,c=e.bottom,d=t.left,g=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${s}px`),this.style.setProperty("--hover-bridge-top-left-y",`${r}px`),this.style.setProperty("--hover-bridge-top-right-x",`${a}px`),this.style.setProperty("--hover-bridge-top-right-y",`${l}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${u}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${c}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${d}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${g}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||ro(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=Zs(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;const t=[Os({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(vi({apply:({rects:i})=>{const s=this.sync==="width"||this.sync==="both",r=this.sync==="height"||this.sync==="both";this.popup.style.width=s?`${i.reference.width}px`:"",this.popup.style.height=r?`${i.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(to({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(Js({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(vi({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:i,availableHeight:s})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${s}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${i}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(eo({element:this.arrowEl,padding:this.arrowPadding}));const e=this.strategy==="absolute"?i=>_e.getOffsetParent(i,so):_e.getOffsetParent;io(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:Gi(Qi({},_e),{getOffsetParent:e})}).then(({x:i,y:s,middlewareData:r,placement:a})=>{const l=getComputedStyle(this).direction==="rtl",u={top:"bottom",right:"left",bottom:"top",left:"right"}[a.split("-")[0]];if(this.setAttribute("data-current-placement",a),Object.assign(this.popup.style,{left:`${i}px`,top:`${s}px`}),this.arrow){const c=r.arrow.x,d=r.arrow.y;let g="",h="",p="",f="";if(this.arrowPlacement==="start"){const m=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";g=typeof d=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",h=l?m:"",f=l?"":m}else if(this.arrowPlacement==="end"){const m=typeof c=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";h=l?"":m,f=l?m:"",p=typeof d=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(f=typeof c=="number"?"calc(50% - var(--arrow-size-diagonal))":"",g=typeof d=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(f=typeof c=="number"?`${c}px`:"",g=typeof d=="number"?`${d}px`:"");Object.assign(this.arrowEl.style,{top:g,right:h,bottom:p,left:f,[u]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge()),this.emit("sl-reposition")}render(){return _`
|
|
930
910
|
<slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
|
|
931
911
|
|
|
932
912
|
<span
|
|
933
913
|
part="hover-bridge"
|
|
934
|
-
class=${
|
|
914
|
+
class=${O({"popup-hover-bridge":!0,"popup-hover-bridge--visible":this.hoverBridge&&this.active})}
|
|
935
915
|
></span>
|
|
936
916
|
|
|
937
917
|
<div
|
|
938
918
|
part="popup"
|
|
939
|
-
class=${
|
|
919
|
+
class=${O({popup:!0,"popup--active":this.active,"popup--fixed":this.strategy==="fixed","popup--has-arrow":this.arrow})}
|
|
940
920
|
>
|
|
941
921
|
<slot></slot>
|
|
942
|
-
${this.arrow?
|
|
922
|
+
${this.arrow?_`<div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
|
|
943
923
|
</div>
|
|
944
|
-
`}};B.styles=[
|
|
924
|
+
`}};B.styles=[M,xs];o([S(".popup")],B.prototype,"popup",2);o([S(".popup__arrow")],B.prototype,"arrowEl",2);o([n()],B.prototype,"anchor",2);o([n({type:Boolean,reflect:!0})],B.prototype,"active",2);o([n({reflect:!0})],B.prototype,"placement",2);o([n({reflect:!0})],B.prototype,"strategy",2);o([n({type:Number})],B.prototype,"distance",2);o([n({type:Number})],B.prototype,"skidding",2);o([n({type:Boolean})],B.prototype,"arrow",2);o([n({attribute:"arrow-placement"})],B.prototype,"arrowPlacement",2);o([n({attribute:"arrow-padding",type:Number})],B.prototype,"arrowPadding",2);o([n({type:Boolean})],B.prototype,"flip",2);o([n({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],B.prototype,"flipFallbackPlacements",2);o([n({attribute:"flip-fallback-strategy"})],B.prototype,"flipFallbackStrategy",2);o([n({type:Object})],B.prototype,"flipBoundary",2);o([n({attribute:"flip-padding",type:Number})],B.prototype,"flipPadding",2);o([n({type:Boolean})],B.prototype,"shift",2);o([n({type:Object})],B.prototype,"shiftBoundary",2);o([n({attribute:"shift-padding",type:Number})],B.prototype,"shiftPadding",2);o([n({attribute:"auto-size"})],B.prototype,"autoSize",2);o([n()],B.prototype,"sync",2);o([n({type:Object})],B.prototype,"autoSizeBoundary",2);o([n({attribute:"auto-size-padding",type:Number})],B.prototype,"autoSizePadding",2);o([n({attribute:"hover-bridge",type:Boolean})],B.prototype,"hoverBridge",2);var Z=class extends D{constructor(){super(),this.localize=new N(this),this.content="",this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=t=>{t.key==="Escape"&&(t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){const t=di(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),t)}},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const t=di(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),t)}},this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){var t;(t=this.closeWatcher)==null||t.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){var t,e;if(this.open){if(this.disabled)return;this.emit("sl-show"),"CloseWatcher"in window?((t=this.closeWatcher)==null||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),await ht(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:i,options:s}=et(this,"tooltip.show",{dir:this.localize.dir()});await ct(this.popup.popup,i,s),this.popup.reposition(),this.emit("sl-after-show")}else{this.emit("sl-hide"),(e=this.closeWatcher)==null||e.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown),await ht(this.body);const{keyframes:i,options:s}=et(this,"tooltip.hide",{dir:this.localize.dir()});await ct(this.popup.popup,i,s),this.popup.active=!1,this.body.hidden=!0,this.emit("sl-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,zt(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,zt(this,"sl-after-hide")}render(){return _`
|
|
945
925
|
<sl-popup
|
|
946
926
|
part="base"
|
|
947
927
|
exportparts="
|
|
948
928
|
popup:base__popup,
|
|
949
929
|
arrow:base__arrow
|
|
950
930
|
"
|
|
951
|
-
class=${
|
|
931
|
+
class=${O({tooltip:!0,"tooltip--open":this.open})}
|
|
952
932
|
placement=${this.placement}
|
|
953
933
|
distance=${this.distance}
|
|
954
934
|
skidding=${this.skidding}
|
|
@@ -966,7 +946,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
966
946
|
<slot name="content">${this.content}</slot>
|
|
967
947
|
</div>
|
|
968
948
|
</sl-popup>
|
|
969
|
-
`}};Z.styles=[
|
|
949
|
+
`}};Z.styles=[M,ws];Z.dependencies={"sl-popup":B};o([S("slot:not([name])")],Z.prototype,"defaultSlot",2);o([S(".tooltip__body")],Z.prototype,"body",2);o([S("sl-popup")],Z.prototype,"popup",2);o([n()],Z.prototype,"content",2);o([n()],Z.prototype,"placement",2);o([n({type:Boolean,reflect:!0})],Z.prototype,"disabled",2);o([n({type:Number})],Z.prototype,"distance",2);o([n({type:Boolean,reflect:!0})],Z.prototype,"open",2);o([n({type:Number})],Z.prototype,"skidding",2);o([n()],Z.prototype,"trigger",2);o([n({type:Boolean})],Z.prototype,"hoist",2);o([k("open",{waitUntilFirstUpdate:!0})],Z.prototype,"handleOpenChange",1);o([k(["content","distance","hoist","placement","skidding"])],Z.prototype,"handleOptionsChange",1);o([k("disabled")],Z.prototype,"handleDisabledChange",1);U("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}});U("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});Z.define("sl-tooltip");var ao=I`
|
|
970
950
|
:host {
|
|
971
951
|
--border-radius: var(--sl-border-radius-pill);
|
|
972
952
|
--color: var(--sl-color-neutral-200);
|
|
@@ -1026,285 +1006,14 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
1026
1006
|
opacity: 1;
|
|
1027
1007
|
}
|
|
1028
1008
|
}
|
|
1029
|
-
`,
|
|
1009
|
+
`,ci=class extends D{constructor(){super(...arguments),this.effect="none"}render(){return _`
|
|
1030
1010
|
<div
|
|
1031
1011
|
part="base"
|
|
1032
|
-
class=${
|
|
1012
|
+
class=${O({skeleton:!0,"skeleton--pulse":this.effect==="pulse","skeleton--sheen":this.effect==="sheen"})}
|
|
1033
1013
|
>
|
|
1034
1014
|
<div part="indicator" class="skeleton__indicator"></div>
|
|
1035
1015
|
</div>
|
|
1036
|
-
`}};
|
|
1037
|
-
:host {
|
|
1038
|
-
--indicator-color: var(--sl-color-primary-600);
|
|
1039
|
-
--track-color: var(--sl-color-neutral-200);
|
|
1040
|
-
--track-width: 2px;
|
|
1041
|
-
|
|
1042
|
-
display: block;
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
.tab-group {
|
|
1046
|
-
display: flex;
|
|
1047
|
-
border-radius: 0;
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
.tab-group__tabs {
|
|
1051
|
-
display: flex;
|
|
1052
|
-
position: relative;
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
.tab-group__indicator {
|
|
1056
|
-
position: absolute;
|
|
1057
|
-
transition:
|
|
1058
|
-
var(--sl-transition-fast) translate ease,
|
|
1059
|
-
var(--sl-transition-fast) width ease;
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
.tab-group--has-scroll-controls .tab-group__nav-container {
|
|
1063
|
-
position: relative;
|
|
1064
|
-
padding: 0 var(--sl-spacing-x-large);
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
.tab-group__body {
|
|
1068
|
-
display: block;
|
|
1069
|
-
overflow: auto;
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
.tab-group__scroll-button {
|
|
1073
|
-
display: flex;
|
|
1074
|
-
align-items: center;
|
|
1075
|
-
justify-content: center;
|
|
1076
|
-
position: absolute;
|
|
1077
|
-
top: 0;
|
|
1078
|
-
bottom: 0;
|
|
1079
|
-
width: var(--sl-spacing-x-large);
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
.tab-group__scroll-button--start {
|
|
1083
|
-
left: 0;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
.tab-group__scroll-button--end {
|
|
1087
|
-
right: 0;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
.tab-group--rtl .tab-group__scroll-button--start {
|
|
1091
|
-
left: auto;
|
|
1092
|
-
right: 0;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
.tab-group--rtl .tab-group__scroll-button--end {
|
|
1096
|
-
left: 0;
|
|
1097
|
-
right: auto;
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
/*
|
|
1101
|
-
* Top
|
|
1102
|
-
*/
|
|
1103
|
-
|
|
1104
|
-
.tab-group--top {
|
|
1105
|
-
flex-direction: column;
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
.tab-group--top .tab-group__nav-container {
|
|
1109
|
-
order: 1;
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
.tab-group--top .tab-group__nav {
|
|
1113
|
-
display: flex;
|
|
1114
|
-
overflow-x: auto;
|
|
1115
|
-
|
|
1116
|
-
/* Hide scrollbar in Firefox */
|
|
1117
|
-
scrollbar-width: none;
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
/* Hide scrollbar in Chrome/Safari */
|
|
1121
|
-
.tab-group--top .tab-group__nav::-webkit-scrollbar {
|
|
1122
|
-
width: 0;
|
|
1123
|
-
height: 0;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
.tab-group--top .tab-group__tabs {
|
|
1127
|
-
flex: 1 1 auto;
|
|
1128
|
-
position: relative;
|
|
1129
|
-
flex-direction: row;
|
|
1130
|
-
border-bottom: solid var(--track-width) var(--track-color);
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
.tab-group--top .tab-group__indicator {
|
|
1134
|
-
bottom: calc(-1 * var(--track-width));
|
|
1135
|
-
border-bottom: solid var(--track-width) var(--indicator-color);
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
.tab-group--top .tab-group__body {
|
|
1139
|
-
order: 2;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
.tab-group--top ::slotted(sl-tab-panel) {
|
|
1143
|
-
--padding: var(--sl-spacing-medium) 0;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
/*
|
|
1147
|
-
* Bottom
|
|
1148
|
-
*/
|
|
1149
|
-
|
|
1150
|
-
.tab-group--bottom {
|
|
1151
|
-
flex-direction: column;
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
.tab-group--bottom .tab-group__nav-container {
|
|
1155
|
-
order: 2;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
.tab-group--bottom .tab-group__nav {
|
|
1159
|
-
display: flex;
|
|
1160
|
-
overflow-x: auto;
|
|
1161
|
-
|
|
1162
|
-
/* Hide scrollbar in Firefox */
|
|
1163
|
-
scrollbar-width: none;
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
/* Hide scrollbar in Chrome/Safari */
|
|
1167
|
-
.tab-group--bottom .tab-group__nav::-webkit-scrollbar {
|
|
1168
|
-
width: 0;
|
|
1169
|
-
height: 0;
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
.tab-group--bottom .tab-group__tabs {
|
|
1173
|
-
flex: 1 1 auto;
|
|
1174
|
-
position: relative;
|
|
1175
|
-
flex-direction: row;
|
|
1176
|
-
border-top: solid var(--track-width) var(--track-color);
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
.tab-group--bottom .tab-group__indicator {
|
|
1180
|
-
top: calc(-1 * var(--track-width));
|
|
1181
|
-
border-top: solid var(--track-width) var(--indicator-color);
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
.tab-group--bottom .tab-group__body {
|
|
1185
|
-
order: 1;
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
.tab-group--bottom ::slotted(sl-tab-panel) {
|
|
1189
|
-
--padding: var(--sl-spacing-medium) 0;
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
/*
|
|
1193
|
-
* Start
|
|
1194
|
-
*/
|
|
1195
|
-
|
|
1196
|
-
.tab-group--start {
|
|
1197
|
-
flex-direction: row;
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
.tab-group--start .tab-group__nav-container {
|
|
1201
|
-
order: 1;
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
.tab-group--start .tab-group__tabs {
|
|
1205
|
-
flex: 0 0 auto;
|
|
1206
|
-
flex-direction: column;
|
|
1207
|
-
border-inline-end: solid var(--track-width) var(--track-color);
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
.tab-group--start .tab-group__indicator {
|
|
1211
|
-
right: calc(-1 * var(--track-width));
|
|
1212
|
-
border-right: solid var(--track-width) var(--indicator-color);
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
.tab-group--start.tab-group--rtl .tab-group__indicator {
|
|
1216
|
-
right: auto;
|
|
1217
|
-
left: calc(-1 * var(--track-width));
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
.tab-group--start .tab-group__body {
|
|
1221
|
-
flex: 1 1 auto;
|
|
1222
|
-
order: 2;
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
.tab-group--start ::slotted(sl-tab-panel) {
|
|
1226
|
-
--padding: 0 var(--sl-spacing-medium);
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
/*
|
|
1230
|
-
* End
|
|
1231
|
-
*/
|
|
1232
|
-
|
|
1233
|
-
.tab-group--end {
|
|
1234
|
-
flex-direction: row;
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
.tab-group--end .tab-group__nav-container {
|
|
1238
|
-
order: 2;
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
.tab-group--end .tab-group__tabs {
|
|
1242
|
-
flex: 0 0 auto;
|
|
1243
|
-
flex-direction: column;
|
|
1244
|
-
border-left: solid var(--track-width) var(--track-color);
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
.tab-group--end .tab-group__indicator {
|
|
1248
|
-
left: calc(-1 * var(--track-width));
|
|
1249
|
-
border-inline-start: solid var(--track-width) var(--indicator-color);
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
.tab-group--end.tab-group--rtl .tab-group__indicator {
|
|
1253
|
-
right: calc(-1 * var(--track-width));
|
|
1254
|
-
left: auto;
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
.tab-group--end .tab-group__body {
|
|
1258
|
-
flex: 1 1 auto;
|
|
1259
|
-
order: 1;
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
.tab-group--end ::slotted(sl-tab-panel) {
|
|
1263
|
-
--padding: 0 var(--sl-spacing-medium);
|
|
1264
|
-
}
|
|
1265
|
-
`,bt=class extends E{constructor(){super(...arguments),this.localize=new N(this),this.tabs=[],this.panels=[],this.hasScrollControls=!1,this.placement="top",this.activation="auto",this.noScrollControls=!1}connectedCallback(){const t=Promise.all([customElements.whenDefined("sl-tab"),customElements.whenDefined("sl-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.repositionIndicator(),this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{e.some(i=>!["aria-labelledby","aria-controls"].includes(i.attributeName))&&setTimeout(()=>this.setAriaLabels()),e.some(i=>i.attributeName==="disabled")&&this.syncTabsAndPanels()}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then(()=>{new IntersectionObserver((i,s)=>{var r;i[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((r=this.getActiveTab())!=null?r:this.tabs[0],{emitEvents:!1}),s.unobserve(i[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect(),this.resizeObserver.unobserve(this.nav)}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter(i=>t.includeDisabled?i.tagName.toLowerCase()==="sl-tab":i.tagName.toLowerCase()==="sl-tab"&&!i.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sl-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.active)}handleClick(t){const i=t.target.closest("sl-tab");i?.closest("sl-tab-group")===this&&i!==null&&this.setActiveTab(i,{scrollBehavior:"smooth"})}handleKeyDown(t){const i=t.target.closest("sl-tab");if(i?.closest("sl-tab-group")===this&&(["Enter"," "].includes(t.key)&&i!==null&&(this.setActiveTab(i,{scrollBehavior:"smooth"}),t.preventDefault()),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key))){const r=this.tabs.find(l=>l.matches(":focus")),a=this.localize.dir()==="rtl";if(r?.tagName.toLowerCase()==="sl-tab"){let l=this.tabs.indexOf(r);t.key==="Home"?l=0:t.key==="End"?l=this.tabs.length-1:["top","bottom"].includes(this.placement)&&t.key===(a?"ArrowRight":"ArrowLeft")||["start","end"].includes(this.placement)&&t.key==="ArrowUp"?l--:(["top","bottom"].includes(this.placement)&&t.key===(a?"ArrowLeft":"ArrowRight")||["start","end"].includes(this.placement)&&t.key==="ArrowDown")&&l++,l<0&&(l=this.tabs.length-1),l>this.tabs.length-1&&(l=0),this.tabs[l].focus({preventScroll:!0}),this.activation==="auto"&&this.setActiveTab(this.tabs[l],{scrollBehavior:"smooth"}),["top","bottom"].includes(this.placement)&&Ge(this.tabs[l],this.nav,"horizontal"),t.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e=Ei({emitEvents:!0,scrollBehavior:"auto"},e),t!==this.activeTab&&!t.disabled){const i=this.activeTab;this.activeTab=t,this.tabs.forEach(s=>s.active=s===this.activeTab),this.panels.forEach(s=>{var r;return s.active=s.name===((r=this.activeTab)==null?void 0:r.panel)}),this.syncIndicator(),["top","bottom"].includes(this.placement)&&Ge(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(i&&this.emit("sl-tab-hide",{detail:{name:i.panel}}),this.emit("sl-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(t=>{const e=this.panels.find(i=>i.name===t.panel);e&&(t.setAttribute("aria-controls",e.getAttribute("id")),e.setAttribute("aria-labelledby",t.getAttribute("id")))})}repositionIndicator(){const t=this.getActiveTab();if(!t)return;const e=t.clientWidth,i=t.clientHeight,s=this.localize.dir()==="rtl",r=this.getAllTabs(),l=r.slice(0,r.indexOf(t)).reduce((d,c)=>({left:d.left+c.clientWidth,top:d.top+c.clientHeight}),{left:0,top:0});switch(this.placement){case"top":case"bottom":this.indicator.style.width=`${e}px`,this.indicator.style.height="auto",this.indicator.style.translate=s?`${-1*l.left}px`:`${l.left}px`;break;case"start":case"end":this.indicator.style.width="auto",this.indicator.style.height=`${i}px`,this.indicator.style.translate=`0 ${l.top}px`;break}}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then(()=>this.updateScrollControls())}updateScrollControls(){this.noScrollControls?this.hasScrollControls=!1:this.hasScrollControls=["top","bottom"].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth+1}syncIndicator(){this.getActiveTab()?(this.indicator.style.display="block",this.repositionIndicator()):this.indicator.style.display="none"}show(t){const e=this.tabs.find(i=>i.panel===t);e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){const t=this.localize.dir()==="rtl";return x`
|
|
1266
|
-
<div
|
|
1267
|
-
part="base"
|
|
1268
|
-
class=${D({"tab-group":!0,"tab-group--top":this.placement==="top","tab-group--bottom":this.placement==="bottom","tab-group--start":this.placement==="start","tab-group--end":this.placement==="end","tab-group--rtl":this.localize.dir()==="rtl","tab-group--has-scroll-controls":this.hasScrollControls})}
|
|
1269
|
-
@click=${this.handleClick}
|
|
1270
|
-
@keydown=${this.handleKeyDown}
|
|
1271
|
-
>
|
|
1272
|
-
<div class="tab-group__nav-container" part="nav">
|
|
1273
|
-
${this.hasScrollControls?x`
|
|
1274
|
-
<sl-icon-button
|
|
1275
|
-
part="scroll-button scroll-button--start"
|
|
1276
|
-
exportparts="base:scroll-button__base"
|
|
1277
|
-
class="tab-group__scroll-button tab-group__scroll-button--start"
|
|
1278
|
-
name=${t?"chevron-right":"chevron-left"}
|
|
1279
|
-
library="system"
|
|
1280
|
-
label=${this.localize.term("scrollToStart")}
|
|
1281
|
-
@click=${this.handleScrollToStart}
|
|
1282
|
-
></sl-icon-button>
|
|
1283
|
-
`:""}
|
|
1284
|
-
|
|
1285
|
-
<div class="tab-group__nav">
|
|
1286
|
-
<div part="tabs" class="tab-group__tabs" role="tablist">
|
|
1287
|
-
<div part="active-tab-indicator" class="tab-group__indicator"></div>
|
|
1288
|
-
<slot name="nav" @slotchange=${this.syncTabsAndPanels}></slot>
|
|
1289
|
-
</div>
|
|
1290
|
-
</div>
|
|
1291
|
-
|
|
1292
|
-
${this.hasScrollControls?x`
|
|
1293
|
-
<sl-icon-button
|
|
1294
|
-
part="scroll-button scroll-button--end"
|
|
1295
|
-
exportparts="base:scroll-button__base"
|
|
1296
|
-
class="tab-group__scroll-button tab-group__scroll-button--end"
|
|
1297
|
-
name=${t?"chevron-left":"chevron-right"}
|
|
1298
|
-
library="system"
|
|
1299
|
-
label=${this.localize.term("scrollToEnd")}
|
|
1300
|
-
@click=${this.handleScrollToEnd}
|
|
1301
|
-
></sl-icon-button>
|
|
1302
|
-
`:""}
|
|
1303
|
-
</div>
|
|
1304
|
-
|
|
1305
|
-
<slot part="body" class="tab-group__body" @slotchange=${this.syncTabsAndPanels}></slot>
|
|
1306
|
-
</div>
|
|
1307
|
-
`}};bt.styles=[O,po];bt.dependencies={"sl-icon-button":ge};o([z(".tab-group")],bt.prototype,"tabGroup",2);o([z(".tab-group__body")],bt.prototype,"body",2);o([z(".tab-group__nav")],bt.prototype,"nav",2);o([z(".tab-group__indicator")],bt.prototype,"indicator",2);o([L()],bt.prototype,"hasScrollControls",2);o([n()],bt.prototype,"placement",2);o([n()],bt.prototype,"activation",2);o([n({attribute:"no-scroll-controls",type:Boolean})],bt.prototype,"noScrollControls",2);o([k("noScrollControls",{waitUntilFirstUpdate:!0})],bt.prototype,"updateScrollControls",1);o([k("placement",{waitUntilFirstUpdate:!0})],bt.prototype,"syncIndicator",1);bt.define("sl-tab-group");var fo=I`
|
|
1016
|
+
`}};ci.styles=[M,ao];o([n()],ci.prototype,"effect",2);ci.define("sl-skeleton");var no=I`
|
|
1308
1017
|
:host {
|
|
1309
1018
|
--divider-width: 4px;
|
|
1310
1019
|
--divider-hit-area: 12px;
|
|
@@ -1379,7 +1088,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
1379
1088
|
outline: solid 1px transparent;
|
|
1380
1089
|
}
|
|
1381
1090
|
}
|
|
1382
|
-
`;function
|
|
1091
|
+
`;function he(t,e){function i(r){const a=t.getBoundingClientRect(),l=t.ownerDocument.defaultView,u=a.left+l.scrollX,c=a.top+l.scrollY,d=r.pageX-u,g=r.pageY-c;e?.onMove&&e.onMove(d,g)}function s(){document.removeEventListener("pointermove",i),document.removeEventListener("pointerup",s),e?.onStop&&e.onStop()}document.addEventListener("pointermove",i,{passive:!0}),document.addEventListener("pointerup",s),e?.initialEvent instanceof PointerEvent&&i(e.initialEvent)}var bt=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.position=50,this.vertical=!1,this.disabled=!1,this.snapThreshold=12}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(t=>this.handleResize(t)),this.updateComplete.then(()=>this.resizeObserver.observe(this)),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}detectSize(){const{width:t,height:e}=this.getBoundingClientRect();this.size=this.vertical?e:t}percentageToPixels(t){return this.size*(t/100)}pixelsToPercentage(t){return t/this.size*100}handleDrag(t){const e=this.localize.dir()==="rtl";this.disabled||(t.cancelable&&t.preventDefault(),he(this,{onMove:(i,s)=>{let r=this.vertical?s:i;this.primary==="end"&&(r=this.size-r),this.snap&&this.snap.split(" ").forEach(l=>{let u;l.endsWith("%")?u=this.size*(parseFloat(l)/100):u=parseFloat(l),e&&!this.vertical&&(u=this.size-u),r>=u-this.snapThreshold&&r<=u+this.snapThreshold&&(r=u)}),this.position=j(this.pixelsToPercentage(r),0,100)},initialEvent:t}))}handleKeyDown(t){if(!this.disabled&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let e=this.position;const i=(t.shiftKey?10:1)*(this.primary==="end"?-1:1);t.preventDefault(),(t.key==="ArrowLeft"&&!this.vertical||t.key==="ArrowUp"&&this.vertical)&&(e-=i),(t.key==="ArrowRight"&&!this.vertical||t.key==="ArrowDown"&&this.vertical)&&(e+=i),t.key==="Home"&&(e=this.primary==="end"?100:0),t.key==="End"&&(e=this.primary==="end"?0:100),this.position=j(e,0,100)}}handleResize(t){const{width:e,height:i}=t[0].contentRect;this.size=this.vertical?i:e,(isNaN(this.cachedPositionInPixels)||this.position===1/0)&&(this.cachedPositionInPixels=Number(this.getAttribute("position-in-pixels")),this.positionInPixels=Number(this.getAttribute("position-in-pixels")),this.position=this.pixelsToPercentage(this.positionInPixels)),this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels))}handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.positionInPixels=this.percentageToPixels(this.position),this.emit("sl-reposition")}handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels)}handleVerticalChange(){this.detectSize()}render(){const t=this.vertical?"gridTemplateRows":"gridTemplateColumns",e=this.vertical?"gridTemplateColumns":"gridTemplateRows",i=this.localize.dir()==="rtl",s=`
|
|
1383
1092
|
clamp(
|
|
1384
1093
|
0%,
|
|
1385
1094
|
clamp(
|
|
@@ -1389,7 +1098,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
1389
1098
|
),
|
|
1390
1099
|
calc(100% - var(--divider-width))
|
|
1391
1100
|
)
|
|
1392
|
-
`,r="auto";return this.primary==="end"?i&&!this.vertical?this.style[t]=`${s} var(--divider-width) ${r}`:this.style[t]=`${r} var(--divider-width) ${s}`:i&&!this.vertical?this.style[t]=`${r} var(--divider-width) ${s}`:this.style[t]=`${s} var(--divider-width) ${r}`,this.style[e]="",
|
|
1101
|
+
`,r="auto";return this.primary==="end"?i&&!this.vertical?this.style[t]=`${s} var(--divider-width) ${r}`:this.style[t]=`${r} var(--divider-width) ${s}`:i&&!this.vertical?this.style[t]=`${r} var(--divider-width) ${s}`:this.style[t]=`${s} var(--divider-width) ${r}`,this.style[e]="",_`
|
|
1393
1102
|
<slot name="start" part="panel start" class="start"></slot>
|
|
1394
1103
|
|
|
1395
1104
|
<div
|
|
@@ -1409,7 +1118,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
1409
1118
|
</div>
|
|
1410
1119
|
|
|
1411
1120
|
<slot name="end" part="panel end" class="end"></slot>
|
|
1412
|
-
`}};
|
|
1121
|
+
`}};bt.styles=[M,no];o([S(".divider")],bt.prototype,"divider",2);o([n({type:Number,reflect:!0})],bt.prototype,"position",2);o([n({attribute:"position-in-pixels",type:Number})],bt.prototype,"positionInPixels",2);o([n({type:Boolean,reflect:!0})],bt.prototype,"vertical",2);o([n({type:Boolean,reflect:!0})],bt.prototype,"disabled",2);o([n()],bt.prototype,"primary",2);o([n()],bt.prototype,"snap",2);o([n({type:Number,attribute:"snap-threshold"})],bt.prototype,"snapThreshold",2);o([k("position")],bt.prototype,"handlePositionChange",1);o([k("positionInPixels")],bt.prototype,"handlePositionInPixelsChange",1);o([k("vertical")],bt.prototype,"handleVerticalChange",1);bt.define("sl-split-panel");var lo=I`
|
|
1413
1122
|
:host {
|
|
1414
1123
|
display: inline-block;
|
|
1415
1124
|
}
|
|
@@ -1574,13 +1283,13 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
1574
1283
|
background-color: ButtonText;
|
|
1575
1284
|
}
|
|
1576
1285
|
}
|
|
1577
|
-
`,at=class extends
|
|
1286
|
+
`,at=class extends D{constructor(){super(...arguments),this.formControlController=new Xt(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e}),this.hasSlotController=new Rt(this,"help-text"),this.hasFocus=!1,this.title="",this.name="",this.size="medium",this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form="",this.required=!1,this.helpText=""}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleInput(){this.emit("sl-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleClick(){this.checked=!this.checked,this.emit("sl-change")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleKeyDown(t){t.key==="ArrowLeft"&&(t.preventDefault(),this.checked=!1,this.emit("sl-change"),this.emit("sl-input")),t.key==="ArrowRight"&&(t.preventDefault(),this.checked=!0,this.emit("sl-change"),this.emit("sl-input"))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("help-text"),e=this.helpText?!0:!!t;return _`
|
|
1578
1287
|
<div
|
|
1579
|
-
class=${
|
|
1288
|
+
class=${O({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-help-text":e})}
|
|
1580
1289
|
>
|
|
1581
1290
|
<label
|
|
1582
1291
|
part="base"
|
|
1583
|
-
class=${
|
|
1292
|
+
class=${O({switch:!0,"switch--checked":this.checked,"switch--disabled":this.disabled,"switch--focused":this.hasFocus,"switch--small":this.size==="small","switch--medium":this.size==="medium","switch--large":this.size==="large"})}
|
|
1584
1293
|
>
|
|
1585
1294
|
<input
|
|
1586
1295
|
class="switch__input"
|
|
@@ -1588,7 +1297,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
1588
1297
|
title=${this.title}
|
|
1589
1298
|
name=${this.name}
|
|
1590
1299
|
value=${H(this.value)}
|
|
1591
|
-
.checked=${
|
|
1300
|
+
.checked=${ee(this.checked)}
|
|
1592
1301
|
.disabled=${this.disabled}
|
|
1593
1302
|
.required=${this.required}
|
|
1594
1303
|
role="switch"
|
|
@@ -1620,95 +1329,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
1620
1329
|
<slot name="help-text">${this.helpText}</slot>
|
|
1621
1330
|
</div>
|
|
1622
1331
|
</div>
|
|
1623
|
-
`}};at.styles=[
|
|
1624
|
-
:host {
|
|
1625
|
-
display: inline-block;
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
.tab {
|
|
1629
|
-
display: inline-flex;
|
|
1630
|
-
align-items: center;
|
|
1631
|
-
font-family: var(--sl-font-sans);
|
|
1632
|
-
font-size: var(--sl-font-size-small);
|
|
1633
|
-
font-weight: var(--sl-font-weight-semibold);
|
|
1634
|
-
border-radius: var(--sl-border-radius-medium);
|
|
1635
|
-
color: var(--sl-color-neutral-600);
|
|
1636
|
-
padding: var(--sl-spacing-medium) var(--sl-spacing-large);
|
|
1637
|
-
white-space: nowrap;
|
|
1638
|
-
user-select: none;
|
|
1639
|
-
-webkit-user-select: none;
|
|
1640
|
-
cursor: pointer;
|
|
1641
|
-
transition:
|
|
1642
|
-
var(--transition-speed) box-shadow,
|
|
1643
|
-
var(--transition-speed) color;
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
.tab:hover:not(.tab--disabled) {
|
|
1647
|
-
color: var(--sl-color-primary-600);
|
|
1648
|
-
}
|
|
1649
|
-
|
|
1650
|
-
.tab:focus {
|
|
1651
|
-
outline: none;
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
.tab:focus-visible:not(.tab--disabled) {
|
|
1655
|
-
color: var(--sl-color-primary-600);
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
.tab:focus-visible {
|
|
1659
|
-
outline: var(--sl-focus-ring);
|
|
1660
|
-
outline-offset: calc(-1 * var(--sl-focus-ring-width) - var(--sl-focus-ring-offset));
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
|
-
.tab.tab--active:not(.tab--disabled) {
|
|
1664
|
-
color: var(--sl-color-primary-600);
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
.tab.tab--closable {
|
|
1668
|
-
padding-inline-end: var(--sl-spacing-small);
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
.tab.tab--disabled {
|
|
1672
|
-
opacity: 0.5;
|
|
1673
|
-
cursor: not-allowed;
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
.tab__close-button {
|
|
1677
|
-
font-size: var(--sl-font-size-small);
|
|
1678
|
-
margin-inline-start: var(--sl-spacing-small);
|
|
1679
|
-
}
|
|
1680
|
-
|
|
1681
|
-
.tab__close-button::part(base) {
|
|
1682
|
-
padding: var(--sl-spacing-3x-small);
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
@media (forced-colors: active) {
|
|
1686
|
-
.tab.tab--active:not(.tab--disabled) {
|
|
1687
|
-
outline: solid 1px transparent;
|
|
1688
|
-
outline-offset: -3px;
|
|
1689
|
-
}
|
|
1690
|
-
}
|
|
1691
|
-
`,bo=0,It=class extends E{constructor(){super(...arguments),this.localize=new N(this),this.attrId=++bo,this.componentId=`sl-tab-${this.attrId}`,this.panel="",this.active=!1,this.closable=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleCloseClick(t){t.stopPropagation(),this.emit("sl-close")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.tab.focus(t)}blur(){this.tab.blur()}render(){return this.id=this.id.length>0?this.id:this.componentId,x`
|
|
1692
|
-
<div
|
|
1693
|
-
part="base"
|
|
1694
|
-
class=${D({tab:!0,"tab--active":this.active,"tab--closable":this.closable,"tab--disabled":this.disabled})}
|
|
1695
|
-
tabindex=${this.disabled?"-1":"0"}
|
|
1696
|
-
>
|
|
1697
|
-
<slot></slot>
|
|
1698
|
-
${this.closable?x`
|
|
1699
|
-
<sl-icon-button
|
|
1700
|
-
part="close-button"
|
|
1701
|
-
exportparts="base:close-button__base"
|
|
1702
|
-
name="x-lg"
|
|
1703
|
-
library="system"
|
|
1704
|
-
label=${this.localize.term("close")}
|
|
1705
|
-
class="tab__close-button"
|
|
1706
|
-
@click=${this.handleCloseClick}
|
|
1707
|
-
tabindex="-1"
|
|
1708
|
-
></sl-icon-button>
|
|
1709
|
-
`:""}
|
|
1710
|
-
</div>
|
|
1711
|
-
`}};It.styles=[O,go];It.dependencies={"sl-icon-button":ge};o([z(".tab")],It.prototype,"tab",2);o([n({reflect:!0})],It.prototype,"panel",2);o([n({type:Boolean,reflect:!0})],It.prototype,"active",2);o([n({type:Boolean})],It.prototype,"closable",2);o([n({type:Boolean,reflect:!0})],It.prototype,"disabled",2);o([k("active")],It.prototype,"handleActiveChange",1);o([k("disabled")],It.prototype,"handleDisabledChange",1);It.define("sl-tab");var vo=[{max:276e4,value:6e4,unit:"minute"},{max:72e6,value:36e5,unit:"hour"},{max:5184e5,value:864e5,unit:"day"},{max:24192e5,value:6048e5,unit:"week"},{max:28512e6,value:2592e6,unit:"month"},{max:1/0,value:31536e6,unit:"year"}],Kt=class extends E{constructor(){super(...arguments),this.localize=new N(this),this.isoTime="",this.relativeTime="",this.titleTime="",this.date=new Date,this.format="long",this.numeric="auto",this.sync=!1}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.updateTimeout)}render(){const t=new Date,e=new Date(this.date);if(isNaN(e.getMilliseconds()))return this.relativeTime="",this.isoTime="","";const i=e.getTime()-t.getTime(),{unit:s,value:r}=vo.find(a=>Math.abs(i)<a.max);if(this.isoTime=e.toISOString(),this.titleTime=this.localize.date(e,{month:"long",year:"numeric",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"}),this.relativeTime=this.localize.relativeTime(Math.round(i/r),s,{numeric:this.numeric,style:this.format}),clearTimeout(this.updateTimeout),this.sync){let a;s==="minute"?a=ke("second"):s==="hour"?a=ke("minute"):s==="day"?a=ke("hour"):a=ke("day"),this.updateTimeout=window.setTimeout(()=>this.requestUpdate(),a)}return x` <time datetime=${this.isoTime} title=${this.titleTime}>${this.relativeTime}</time> `}};o([L()],Kt.prototype,"isoTime",2);o([L()],Kt.prototype,"relativeTime",2);o([L()],Kt.prototype,"titleTime",2);o([n()],Kt.prototype,"date",2);o([n()],Kt.prototype,"format",2);o([n()],Kt.prototype,"numeric",2);o([n({type:Boolean})],Kt.prototype,"sync",2);function ke(t){const i={second:1e3,minute:6e4,hour:36e5,day:864e5}[t];return i-Date.now()%i}Kt.define("sl-relative-time");var yo=I`
|
|
1332
|
+
`}};at.styles=[M,se,lo];o([S('input[type="checkbox"]')],at.prototype,"input",2);o([E()],at.prototype,"hasFocus",2);o([n()],at.prototype,"title",2);o([n()],at.prototype,"name",2);o([n()],at.prototype,"value",2);o([n({reflect:!0})],at.prototype,"size",2);o([n({type:Boolean,reflect:!0})],at.prototype,"disabled",2);o([n({type:Boolean,reflect:!0})],at.prototype,"checked",2);o([oe("checked")],at.prototype,"defaultChecked",2);o([n({reflect:!0})],at.prototype,"form",2);o([n({type:Boolean,reflect:!0})],at.prototype,"required",2);o([n({attribute:"help-text"})],at.prototype,"helpText",2);o([k("checked",{waitUntilFirstUpdate:!0})],at.prototype,"handleCheckedChange",1);o([k("disabled",{waitUntilFirstUpdate:!0})],at.prototype,"handleDisabledChange",1);at.define("sl-switch");var co=[{max:276e4,value:6e4,unit:"minute"},{max:72e6,value:36e5,unit:"hour"},{max:5184e5,value:864e5,unit:"day"},{max:24192e5,value:6048e5,unit:"week"},{max:28512e6,value:2592e6,unit:"month"},{max:1/0,value:31536e6,unit:"year"}],qt=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.isoTime="",this.relativeTime="",this.titleTime="",this.date=new Date,this.format="long",this.numeric="auto",this.sync=!1}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.updateTimeout)}render(){const t=new Date,e=new Date(this.date);if(isNaN(e.getMilliseconds()))return this.relativeTime="",this.isoTime="","";const i=e.getTime()-t.getTime(),{unit:s,value:r}=co.find(a=>Math.abs(i)<a.max);if(this.isoTime=e.toISOString(),this.titleTime=this.localize.date(e,{month:"long",year:"numeric",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"}),this.relativeTime=this.localize.relativeTime(Math.round(i/r),s,{numeric:this.numeric,style:this.format}),clearTimeout(this.updateTimeout),this.sync){let a;s==="minute"?a=ye("second"):s==="hour"?a=ye("minute"):s==="day"?a=ye("hour"):a=ye("day"),this.updateTimeout=window.setTimeout(()=>this.requestUpdate(),a)}return _` <time datetime=${this.isoTime} title=${this.titleTime}>${this.relativeTime}</time> `}};o([E()],qt.prototype,"isoTime",2);o([E()],qt.prototype,"relativeTime",2);o([E()],qt.prototype,"titleTime",2);o([n()],qt.prototype,"date",2);o([n()],qt.prototype,"format",2);o([n()],qt.prototype,"numeric",2);o([n({type:Boolean})],qt.prototype,"sync",2);function ye(t){const i={second:1e3,minute:6e4,hour:36e5,day:864e5}[t];return i-Date.now()%i}qt.define("sl-relative-time");var ho=I`
|
|
1712
1333
|
:host {
|
|
1713
1334
|
display: block;
|
|
1714
1335
|
}
|
|
@@ -2036,7 +1657,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2036
1657
|
* @license
|
|
2037
1658
|
* Copyright 2017 Google LLC
|
|
2038
1659
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2039
|
-
*/let
|
|
1660
|
+
*/let je=class extends Qe{constructor(e){if(super(e),this.it=Ce,e.type!==Ze.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Ce||e==null)return this._t=void 0,this.it=e;if(e===$i)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const i=[e];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};je.directiveName="unsafeHTML",je.resultType=1;const ke=Je(je);var F=class extends D{constructor(){super(...arguments),this.formControlController=new Xt(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new Rt(this,"help-text","label"),this.localize=new N(this),this.typeToSelectString="",this.hasFocus=!1,this.displayLabel="",this.selectedOptions=[],this.name="",this.value="",this.defaultValue="",this.size="medium",this.placeholder="",this.multiple=!1,this.maxOptionsVisible=3,this.disabled=!1,this.clearable=!1,this.open=!1,this.hoist=!1,this.filled=!1,this.pill=!1,this.label="",this.placement="bottom",this.helpText="",this.form="",this.required=!1,this.getTag=t=>_`
|
|
2040
1661
|
<sl-tag
|
|
2041
1662
|
part="tag"
|
|
2042
1663
|
exportparts="
|
|
@@ -2052,12 +1673,12 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2052
1673
|
>
|
|
2053
1674
|
${t.getTextLabel()}
|
|
2054
1675
|
</sl-tag>
|
|
2055
|
-
`,this.handleDocumentFocusIn=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()},this.handleDocumentKeyDown=t=>{const e=t.target,i=e.closest(".select__clear")!==null,s=e.closest("sl-icon-button")!==null;if(!(i||s)){if(t.key==="Escape"&&this.open&&!this.closeWatcher&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),t.key==="Enter"||t.key===" "&&this.typeToSelectString===""){if(t.preventDefault(),t.stopImmediatePropagation(),!this.open){this.show();return}this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("sl-input"),this.emit("sl-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})));return}if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const r=this.getAllOptions(),a=r.indexOf(this.currentOption);let l=Math.max(0,a);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;t.key==="ArrowDown"?(l=a+1,l>r.length-1&&(l=0)):t.key==="ArrowUp"?(l=a-1,l<0&&(l=r.length-1)):t.key==="Home"?l=0:t.key==="End"&&(l=r.length-1),this.setCurrentOption(r[l])}if(t.key.length===1||t.key==="Backspace"){const r=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if(t.key==="Backspace")return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout(()=>this.typeToSelectString="",1e3),t.key==="Backspace"?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(const a of r)if(a.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(a);break}}}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}addOpenListeners(){var t;document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn),"CloseWatcher"in window&&((t=this.closeWatcher)==null||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.open&&(this.hide(),this.displayInput.focus({preventScroll:!0}))})}removeOpenListeners(){var t;document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn),(t=this.closeWatcher)==null||t.destroy()}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sl-focus")}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(t){const i=t.composedPath().some(s=>s instanceof Element&&s.tagName.toLowerCase()==="sl-icon-button");this.disabled||i||(t.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(t){t.key!=="Tab"&&(t.stopPropagation(),this.handleDocumentKeyDown(t))}handleClearClick(t){t.stopPropagation(),this.value!==""&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sl-clear"),this.emit("sl-input"),this.emit("sl-change")}))}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){const i=t.target.closest("sl-option"),s=this.value;i&&!i.disabled&&(this.multiple?this.toggleOptionSelection(i):this.setSelectedOptions(i),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})),this.value!==s&&this.updateComplete.then(()=>{this.emit("sl-input"),this.emit("sl-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],i=[];customElements.get("sl-option")?(t.forEach(s=>i.push(s.value)),this.setSelectedOptions(t.filter(s=>e.includes(s.value)))):customElements.whenDefined("sl-option").then(()=>this.handleDefaultSlotChange())}handleTagRemove(t,e){t.stopPropagation(),this.disabled||(this.toggleOptionSelection(e,!1),this.updateComplete.then(()=>{this.emit("sl-input"),this.emit("sl-change")}))}getAllOptions(){return[...this.querySelectorAll("sl-option")]}getFirstOption(){return this.querySelector("sl-option")}setCurrentOption(t){this.getAllOptions().forEach(i=>{i.current=!1,i.tabIndex=-1}),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus())}setSelectedOptions(t){const e=this.getAllOptions(),i=Array.isArray(t)?t:[t];e.forEach(s=>s.selected=!1),i.length&&i.forEach(s=>s.selected=!0),this.selectionChanged()}toggleOptionSelection(t,e){e===!0||e===!1?t.selected=e:t.selected=!t.selected,this.selectionChanged()}selectionChanged(){var t,e,i,s;this.selectedOptions=this.getAllOptions().filter(r=>r.selected),this.multiple?(this.value=this.selectedOptions.map(r=>r.value),this.placeholder&&this.value.length===0?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(e=(t=this.selectedOptions[0])==null?void 0:t.value)!=null?e:"",this.displayLabel=(s=(i=this.selectedOptions[0])==null?void 0:i.getTextLabel())!=null?s:""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}get tags(){return this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){const i=this.getTag(t,e);return
|
|
2056
|
-
${typeof i=="string"?
|
|
2057
|
-
</div>`}else if(e===this.maxOptionsVisible)return
|
|
1676
|
+
`,this.handleDocumentFocusIn=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()},this.handleDocumentKeyDown=t=>{const e=t.target,i=e.closest(".select__clear")!==null,s=e.closest("sl-icon-button")!==null;if(!(i||s)){if(t.key==="Escape"&&this.open&&!this.closeWatcher&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),t.key==="Enter"||t.key===" "&&this.typeToSelectString===""){if(t.preventDefault(),t.stopImmediatePropagation(),!this.open){this.show();return}this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("sl-input"),this.emit("sl-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})));return}if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const r=this.getAllOptions(),a=r.indexOf(this.currentOption);let l=Math.max(0,a);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;t.key==="ArrowDown"?(l=a+1,l>r.length-1&&(l=0)):t.key==="ArrowUp"?(l=a-1,l<0&&(l=r.length-1)):t.key==="Home"?l=0:t.key==="End"&&(l=r.length-1),this.setCurrentOption(r[l])}if(t.key.length===1||t.key==="Backspace"){const r=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if(t.key==="Backspace")return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout(()=>this.typeToSelectString="",1e3),t.key==="Backspace"?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(const a of r)if(a.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(a);break}}}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}addOpenListeners(){var t;document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn),"CloseWatcher"in window&&((t=this.closeWatcher)==null||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.open&&(this.hide(),this.displayInput.focus({preventScroll:!0}))})}removeOpenListeners(){var t;document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn),(t=this.closeWatcher)==null||t.destroy()}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sl-focus")}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(t){const i=t.composedPath().some(s=>s instanceof Element&&s.tagName.toLowerCase()==="sl-icon-button");this.disabled||i||(t.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(t){t.key!=="Tab"&&(t.stopPropagation(),this.handleDocumentKeyDown(t))}handleClearClick(t){t.stopPropagation(),this.value!==""&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sl-clear"),this.emit("sl-input"),this.emit("sl-change")}))}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){const i=t.target.closest("sl-option"),s=this.value;i&&!i.disabled&&(this.multiple?this.toggleOptionSelection(i):this.setSelectedOptions(i),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})),this.value!==s&&this.updateComplete.then(()=>{this.emit("sl-input"),this.emit("sl-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],i=[];customElements.get("sl-option")?(t.forEach(s=>i.push(s.value)),this.setSelectedOptions(t.filter(s=>e.includes(s.value)))):customElements.whenDefined("sl-option").then(()=>this.handleDefaultSlotChange())}handleTagRemove(t,e){t.stopPropagation(),this.disabled||(this.toggleOptionSelection(e,!1),this.updateComplete.then(()=>{this.emit("sl-input"),this.emit("sl-change")}))}getAllOptions(){return[...this.querySelectorAll("sl-option")]}getFirstOption(){return this.querySelector("sl-option")}setCurrentOption(t){this.getAllOptions().forEach(i=>{i.current=!1,i.tabIndex=-1}),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus())}setSelectedOptions(t){const e=this.getAllOptions(),i=Array.isArray(t)?t:[t];e.forEach(s=>s.selected=!1),i.length&&i.forEach(s=>s.selected=!0),this.selectionChanged()}toggleOptionSelection(t,e){e===!0||e===!1?t.selected=e:t.selected=!t.selected,this.selectionChanged()}selectionChanged(){var t,e,i,s;this.selectedOptions=this.getAllOptions().filter(r=>r.selected),this.multiple?(this.value=this.selectedOptions.map(r=>r.value),this.placeholder&&this.value.length===0?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(e=(t=this.selectedOptions[0])==null?void 0:t.value)!=null?e:"",this.displayLabel=(s=(i=this.selectedOptions[0])==null?void 0:i.getTextLabel())!=null?s:""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}get tags(){return this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){const i=this.getTag(t,e);return _`<div @sl-remove=${s=>this.handleTagRemove(s,t)}>
|
|
1677
|
+
${typeof i=="string"?ke(i):i}
|
|
1678
|
+
</div>`}else if(e===this.maxOptionsVisible)return _`<sl-tag size=${this.size}>+${this.selectedOptions.length-e}</sl-tag>`;return _``})}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}handleValueChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter(i=>e.includes(i.value)))}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sl-show"),this.addOpenListeners(),await ht(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});const{keyframes:t,options:e}=et(this,"select.show",{dir:this.localize.dir()});await ct(this.popup.popup,t,e),this.currentOption&&os(this.currentOption,this.listbox,"vertical","auto"),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),await ht(this);const{keyframes:t,options:e}=et(this,"select.hide",{dir:this.localize.dir()});await ct(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sl-after-hide")}}async show(){if(this.open||this.disabled){this.open=!1;return}return this.open=!0,zt(this,"sl-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,zt(this,"sl-after-hide")}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=this.label?!0:!!t,s=this.helpText?!0:!!e,r=this.clearable&&!this.disabled&&this.value.length>0,a=this.placeholder&&this.value.length===0;return _`
|
|
2058
1679
|
<div
|
|
2059
1680
|
part="form-control"
|
|
2060
|
-
class=${
|
|
1681
|
+
class=${O({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":i,"form-control--has-help-text":s})}
|
|
2061
1682
|
>
|
|
2062
1683
|
<label
|
|
2063
1684
|
id="label"
|
|
@@ -2071,7 +1692,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2071
1692
|
|
|
2072
1693
|
<div part="form-control-input" class="form-control-input">
|
|
2073
1694
|
<sl-popup
|
|
2074
|
-
class=${
|
|
1695
|
+
class=${O({select:!0,"select--standard":!0,"select--filled":this.filled,"select--pill":this.pill,"select--open":this.open,"select--disabled":this.disabled,"select--multiple":this.multiple,"select--focused":this.hasFocus,"select--placeholder-visible":a,"select--top":this.placement==="top","select--bottom":this.placement==="bottom","select--small":this.size==="small","select--medium":this.size==="medium","select--large":this.size==="large"})}
|
|
2075
1696
|
placement=${this.placement}
|
|
2076
1697
|
strategy=${this.hoist?"fixed":"absolute"}
|
|
2077
1698
|
flip
|
|
@@ -2112,7 +1733,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2112
1733
|
@blur=${this.handleBlur}
|
|
2113
1734
|
/>
|
|
2114
1735
|
|
|
2115
|
-
${this.multiple?
|
|
1736
|
+
${this.multiple?_`<div part="tags" class="select__tags">${this.tags}</div>`:""}
|
|
2116
1737
|
|
|
2117
1738
|
<input
|
|
2118
1739
|
class="select__value-input"
|
|
@@ -2126,7 +1747,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2126
1747
|
@invalid=${this.handleInvalid}
|
|
2127
1748
|
/>
|
|
2128
1749
|
|
|
2129
|
-
${r?
|
|
1750
|
+
${r?_`
|
|
2130
1751
|
<button
|
|
2131
1752
|
part="clear-button"
|
|
2132
1753
|
class="select__clear"
|
|
@@ -2173,7 +1794,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2173
1794
|
<slot name="help-text">${this.helpText}</slot>
|
|
2174
1795
|
</div>
|
|
2175
1796
|
</div>
|
|
2176
|
-
`}};F.styles=[
|
|
1797
|
+
`}};F.styles=[M,se,ho];F.dependencies={"sl-icon":gt,"sl-popup":B,"sl-tag":Wt};o([S(".select")],F.prototype,"popup",2);o([S(".select__combobox")],F.prototype,"combobox",2);o([S(".select__display-input")],F.prototype,"displayInput",2);o([S(".select__value-input")],F.prototype,"valueInput",2);o([S(".select__listbox")],F.prototype,"listbox",2);o([E()],F.prototype,"hasFocus",2);o([E()],F.prototype,"displayLabel",2);o([E()],F.prototype,"currentOption",2);o([E()],F.prototype,"selectedOptions",2);o([n()],F.prototype,"name",2);o([n({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],F.prototype,"value",2);o([oe()],F.prototype,"defaultValue",2);o([n({reflect:!0})],F.prototype,"size",2);o([n()],F.prototype,"placeholder",2);o([n({type:Boolean,reflect:!0})],F.prototype,"multiple",2);o([n({attribute:"max-options-visible",type:Number})],F.prototype,"maxOptionsVisible",2);o([n({type:Boolean,reflect:!0})],F.prototype,"disabled",2);o([n({type:Boolean})],F.prototype,"clearable",2);o([n({type:Boolean,reflect:!0})],F.prototype,"open",2);o([n({type:Boolean})],F.prototype,"hoist",2);o([n({type:Boolean,reflect:!0})],F.prototype,"filled",2);o([n({type:Boolean,reflect:!0})],F.prototype,"pill",2);o([n()],F.prototype,"label",2);o([n({reflect:!0})],F.prototype,"placement",2);o([n({attribute:"help-text"})],F.prototype,"helpText",2);o([n({reflect:!0})],F.prototype,"form",2);o([n({type:Boolean,reflect:!0})],F.prototype,"required",2);o([n()],F.prototype,"getTag",2);o([k("disabled",{waitUntilFirstUpdate:!0})],F.prototype,"handleDisabledChange",1);o([k("value",{waitUntilFirstUpdate:!0})],F.prototype,"handleValueChange",1);o([k("open",{waitUntilFirstUpdate:!0})],F.prototype,"handleOpenChange",1);U("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});U("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});F.define("sl-select");ti.define("sl-spinner");var uo=I`
|
|
2177
1798
|
:host {
|
|
2178
1799
|
--symbol-color: var(--sl-color-neutral-300);
|
|
2179
1800
|
--symbol-color-active: var(--sl-color-amber-500);
|
|
@@ -2265,10 +1886,10 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2265
1886
|
* @license
|
|
2266
1887
|
* Copyright 2018 Google LLC
|
|
2267
1888
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2268
|
-
*/const
|
|
1889
|
+
*/const Fi="important",po=" !"+Fi,dt=Je(class extends Qe{constructor(t){if(super(t),t.type!==Ze.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,i)=>{const s=t[i];return s==null?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(t,[e]){const{style:i}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const s of this.ft)e[s]==null&&(this.ft.delete(s),s.includes("-")?i.removeProperty(s):i[s]=null);for(const s in e){const r=e[s];if(r!=null){this.ft.add(s);const a=typeof r=="string"&&r.endsWith(po);s.includes("-")||a?i.setProperty(s,a?r.slice(0,-11):r,a?Fi:""):i[s]=r}}return $i}});var nt=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.hoverValue=0,this.isHovering=!1,this.label="",this.value=0,this.max=5,this.precision=1,this.readonly=!1,this.disabled=!1,this.getSymbol=()=>'<sl-icon name="star-fill" library="system"></sl-icon>'}getValueFromMousePosition(t){return this.getValueFromXCoordinate(t.clientX)}getValueFromTouchPosition(t){return this.getValueFromXCoordinate(t.touches[0].clientX)}getValueFromXCoordinate(t){const e=this.localize.dir()==="rtl",{left:i,right:s,width:r}=this.rating.getBoundingClientRect(),a=e?this.roundToPrecision((s-t)/r*this.max,this.precision):this.roundToPrecision((t-i)/r*this.max,this.precision);return j(a,0,this.max)}handleClick(t){this.disabled||(this.setValue(this.getValueFromMousePosition(t)),this.emit("sl-change"))}setValue(t){this.disabled||this.readonly||(this.value=t===this.value?0:t,this.isHovering=!1)}handleKeyDown(t){const e=this.localize.dir()==="ltr",i=this.localize.dir()==="rtl",s=this.value;if(!(this.disabled||this.readonly)){if(t.key==="ArrowDown"||e&&t.key==="ArrowLeft"||i&&t.key==="ArrowRight"){const r=t.shiftKey?1:this.precision;this.value=Math.max(0,this.value-r),t.preventDefault()}if(t.key==="ArrowUp"||e&&t.key==="ArrowRight"||i&&t.key==="ArrowLeft"){const r=t.shiftKey?1:this.precision;this.value=Math.min(this.max,this.value+r),t.preventDefault()}t.key==="Home"&&(this.value=0,t.preventDefault()),t.key==="End"&&(this.value=this.max,t.preventDefault()),this.value!==s&&this.emit("sl-change")}}handleMouseEnter(t){this.isHovering=!0,this.hoverValue=this.getValueFromMousePosition(t)}handleMouseMove(t){this.hoverValue=this.getValueFromMousePosition(t)}handleMouseLeave(){this.isHovering=!1}handleTouchStart(t){this.isHovering=!0,this.hoverValue=this.getValueFromTouchPosition(t),t.preventDefault()}handleTouchMove(t){this.hoverValue=this.getValueFromTouchPosition(t)}handleTouchEnd(t){this.isHovering=!1,this.setValue(this.hoverValue),this.emit("sl-change"),t.preventDefault()}roundToPrecision(t,e=.5){const i=1/e;return Math.ceil(t*i)/i}handleHoverValueChange(){this.emit("sl-hover",{detail:{phase:"move",value:this.hoverValue}})}handleIsHoveringChange(){this.emit("sl-hover",{detail:{phase:this.isHovering?"start":"end",value:this.hoverValue}})}focus(t){this.rating.focus(t)}blur(){this.rating.blur()}render(){const t=this.localize.dir()==="rtl",e=Array.from(Array(this.max).keys());let i=0;return this.disabled||this.readonly?i=this.value:i=this.isHovering?this.hoverValue:this.value,_`
|
|
2269
1890
|
<div
|
|
2270
1891
|
part="base"
|
|
2271
|
-
class=${
|
|
1892
|
+
class=${O({rating:!0,"rating--readonly":this.readonly,"rating--disabled":this.disabled,"rating--rtl":t})}
|
|
2272
1893
|
role="slider"
|
|
2273
1894
|
aria-label=${this.label}
|
|
2274
1895
|
aria-disabled=${this.disabled?"true":"false"}
|
|
@@ -2287,35 +1908,35 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2287
1908
|
@touchmove=${this.handleTouchMove}
|
|
2288
1909
|
>
|
|
2289
1910
|
<span class="rating__symbols">
|
|
2290
|
-
${e.map(s=>i>s&&i<s+1?
|
|
1911
|
+
${e.map(s=>i>s&&i<s+1?_`
|
|
2291
1912
|
<span
|
|
2292
|
-
class=${
|
|
1913
|
+
class=${O({rating__symbol:!0,"rating__partial-symbol-container":!0,"rating__symbol--hover":this.isHovering&&Math.ceil(i)===s+1})}
|
|
2293
1914
|
role="presentation"
|
|
2294
1915
|
>
|
|
2295
1916
|
<div
|
|
2296
1917
|
style=${dt({clipPath:t?`inset(0 ${(i-s)*100}% 0 0)`:`inset(0 0 0 ${(i-s)*100}%)`})}
|
|
2297
1918
|
>
|
|
2298
|
-
${
|
|
1919
|
+
${ke(this.getSymbol(s+1))}
|
|
2299
1920
|
</div>
|
|
2300
1921
|
<div
|
|
2301
1922
|
class="rating__partial--filled"
|
|
2302
1923
|
style=${dt({clipPath:t?`inset(0 0 0 ${100-(i-s)*100}%)`:`inset(0 ${100-(i-s)*100}% 0 0)`})}
|
|
2303
1924
|
>
|
|
2304
|
-
${
|
|
1925
|
+
${ke(this.getSymbol(s+1))}
|
|
2305
1926
|
</div>
|
|
2306
1927
|
</span>
|
|
2307
|
-
`:
|
|
1928
|
+
`:_`
|
|
2308
1929
|
<span
|
|
2309
|
-
class=${
|
|
1930
|
+
class=${O({rating__symbol:!0,"rating__symbol--hover":this.isHovering&&Math.ceil(i)===s+1,"rating__symbol--active":i>=s+1})}
|
|
2310
1931
|
role="presentation"
|
|
2311
1932
|
>
|
|
2312
|
-
${
|
|
1933
|
+
${ke(this.getSymbol(s+1))}
|
|
2313
1934
|
</span>
|
|
2314
1935
|
`)}
|
|
2315
1936
|
</span>
|
|
2316
1937
|
</div>
|
|
2317
|
-
`}};nt.styles=[
|
|
2318
|
-
${
|
|
1938
|
+
`}};nt.styles=[M,uo];nt.dependencies={"sl-icon":gt};o([S(".rating")],nt.prototype,"rating",2);o([E()],nt.prototype,"hoverValue",2);o([E()],nt.prototype,"isHovering",2);o([n()],nt.prototype,"label",2);o([n({type:Number})],nt.prototype,"value",2);o([n({type:Number})],nt.prototype,"max",2);o([n({type:Number})],nt.prototype,"precision",2);o([n({type:Boolean,reflect:!0})],nt.prototype,"readonly",2);o([n({type:Boolean,reflect:!0})],nt.prototype,"disabled",2);o([n()],nt.prototype,"getSymbol",2);o([Ee({passive:!0})],nt.prototype,"handleTouchMove",1);o([k("hoverValue")],nt.prototype,"handleHoverValueChange",1);o([k("isHovering")],nt.prototype,"handleIsHoveringChange",1);nt.define("sl-rating");var fo=I`
|
|
1939
|
+
${is}
|
|
2319
1940
|
|
|
2320
1941
|
.button__prefix,
|
|
2321
1942
|
.button__suffix,
|
|
@@ -2338,13 +1959,13 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2338
1959
|
opacity: 0;
|
|
2339
1960
|
z-index: -1;
|
|
2340
1961
|
}
|
|
2341
|
-
|
|
1962
|
+
`,$t=class extends D{constructor(){super(...arguments),this.hasSlotController=new Rt(this,"[default]","prefix","suffix"),this.hasFocus=!1,this.checked=!1,this.disabled=!1,this.size="medium",this.pill=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleClick(t){if(this.disabled){t.preventDefault(),t.stopPropagation();return}this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){return rs`
|
|
2342
1963
|
<div part="base" role="presentation">
|
|
2343
1964
|
<button
|
|
2344
1965
|
part="${`button${this.checked?" button--checked":""}`}"
|
|
2345
1966
|
role="radio"
|
|
2346
1967
|
aria-checked="${this.checked}"
|
|
2347
|
-
class=${
|
|
1968
|
+
class=${O({button:!0,"button--default":!0,"button--small":this.size==="small","button--medium":this.size==="medium","button--large":this.size==="large","button--checked":this.checked,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--outline":!0,"button--pill":this.pill,"button--has-label":this.hasSlotController.test("[default]"),"button--has-prefix":this.hasSlotController.test("prefix"),"button--has-suffix":this.hasSlotController.test("suffix")})}
|
|
2348
1969
|
aria-disabled=${this.disabled}
|
|
2349
1970
|
type="button"
|
|
2350
1971
|
value=${H(this.value)}
|
|
@@ -2358,11 +1979,11 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2358
1979
|
<slot name="suffix" part="suffix" class="button__suffix"></slot>
|
|
2359
1980
|
</button>
|
|
2360
1981
|
</div>
|
|
2361
|
-
`}}
|
|
1982
|
+
`}};$t.styles=[M,fo];o([S(".button")],$t.prototype,"input",2);o([S(".hidden-input")],$t.prototype,"hiddenInput",2);o([E()],$t.prototype,"hasFocus",2);o([n({type:Boolean,reflect:!0})],$t.prototype,"checked",2);o([n()],$t.prototype,"value",2);o([n({type:Boolean,reflect:!0})],$t.prototype,"disabled",2);o([n({reflect:!0})],$t.prototype,"size",2);o([n({type:Boolean,reflect:!0})],$t.prototype,"pill",2);o([k("disabled",{waitUntilFirstUpdate:!0})],$t.prototype,"handleDisabledChange",1);$t.define("sl-radio-button");var mo=I`
|
|
2362
1983
|
:host {
|
|
2363
1984
|
display: contents;
|
|
2364
1985
|
}
|
|
2365
|
-
`,
|
|
1986
|
+
`,Oe=class extends D{constructor(){super(...arguments),this.observedElements=[],this.disabled=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(t=>{this.emit("sl-resize",{detail:{entries:t}})}),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}handleSlotChange(){this.disabled||this.startObserver()}startObserver(){const t=this.shadowRoot.querySelector("slot");if(t!==null){const e=t.assignedElements({flatten:!0});this.observedElements.forEach(i=>this.resizeObserver.unobserve(i)),this.observedElements=[],e.forEach(i=>{this.resizeObserver.observe(i),this.observedElements.push(i)})}}stopObserver(){this.resizeObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}render(){return _` <slot @slotchange=${this.handleSlotChange}></slot> `}};Oe.styles=[M,mo];o([n({type:Boolean,reflect:!0})],Oe.prototype,"disabled",2);o([k("disabled",{waitUntilFirstUpdate:!0})],Oe.prototype,"handleDisabledChange",1);Oe.define("sl-resize-observer");var go=I`
|
|
2366
1987
|
:host {
|
|
2367
1988
|
display: block;
|
|
2368
1989
|
}
|
|
@@ -2394,7 +2015,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2394
2015
|
white-space: nowrap;
|
|
2395
2016
|
border: 0;
|
|
2396
2017
|
}
|
|
2397
|
-
`,
|
|
2018
|
+
`,bo=I`
|
|
2398
2019
|
:host {
|
|
2399
2020
|
display: inline-block;
|
|
2400
2021
|
}
|
|
@@ -2403,7 +2024,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2403
2024
|
display: flex;
|
|
2404
2025
|
flex-wrap: nowrap;
|
|
2405
2026
|
}
|
|
2406
|
-
`,
|
|
2027
|
+
`,Gt=class extends D{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=ce(t.target);e?.toggleAttribute("data-sl-button-group__button--focus",!0)}handleBlur(t){const e=ce(t.target);e?.toggleAttribute("data-sl-button-group__button--focus",!1)}handleMouseOver(t){const e=ce(t.target);e?.toggleAttribute("data-sl-button-group__button--hover",!0)}handleMouseOut(t){const e=ce(t.target);e?.toggleAttribute("data-sl-button-group__button--hover",!1)}handleSlotChange(){const t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach(e=>{const i=t.indexOf(e),s=ce(e);s&&(s.toggleAttribute("data-sl-button-group__button",!0),s.toggleAttribute("data-sl-button-group__button--first",i===0),s.toggleAttribute("data-sl-button-group__button--inner",i>0&&i<t.length-1),s.toggleAttribute("data-sl-button-group__button--last",i===t.length-1),s.toggleAttribute("data-sl-button-group__button--radio",s.tagName.toLowerCase()==="sl-radio-button"))})}render(){return _`
|
|
2407
2028
|
<div
|
|
2408
2029
|
part="base"
|
|
2409
2030
|
class="button-group"
|
|
@@ -2416,12 +2037,12 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2416
2037
|
>
|
|
2417
2038
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
2418
2039
|
</div>
|
|
2419
|
-
`}};
|
|
2040
|
+
`}};Gt.styles=[M,bo];o([S("slot")],Gt.prototype,"defaultSlot",2);o([E()],Gt.prototype,"disableRole",2);o([n()],Gt.prototype,"label",2);function ce(t){var e;const i="sl-button, sl-radio-button";return(e=t.closest(i))!=null?e:t.querySelector(i)}var st=class extends D{constructor(){super(...arguments),this.formControlController=new Xt(this),this.hasSlotController=new Rt(this,"help-text","label"),this.customValidityMessage="",this.hasButtonGroup=!1,this.errorMessage="",this.defaultValue="",this.label="",this.helpText="",this.name="option",this.value="",this.size="medium",this.form="",this.required=!1}get validity(){const t=this.required&&!this.value;return this.customValidityMessage!==""?Ki:t?Xi:ji}get validationMessage(){const t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sl-radio, sl-radio-button")]}handleRadioClick(t){const e=t.target.closest("sl-radio, sl-radio-button"),i=this.getAllRadios(),s=this.value;!e||e.disabled||(this.value=e.value,i.forEach(r=>r.checked=r===e),this.value!==s&&(this.emit("sl-change"),this.emit("sl-input")))}handleKeyDown(t){var e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;const i=this.getAllRadios().filter(u=>!u.disabled),s=(e=i.find(u=>u.checked))!=null?e:i[0],r=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,a=this.value;let l=i.indexOf(s)+r;l<0&&(l=i.length-1),l>i.length-1&&(l=0),this.getAllRadios().forEach(u=>{u.checked=!1,this.hasButtonGroup||(u.tabIndex=-1)}),this.value=i[l].value,i[l].checked=!0,this.hasButtonGroup?i[l].shadowRoot.querySelector("button").focus():(i[l].tabIndex=0,i[l].focus()),this.value!==a&&(this.emit("sl-change"),this.emit("sl-input")),t.preventDefault()}handleLabelClick(){const t=this.getAllRadios(),i=t.find(s=>s.checked)||t[0];i&&i.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}async syncRadioElements(){var t,e;const i=this.getAllRadios();if(await Promise.all(i.map(async s=>{await s.updateComplete,s.checked=s.value===this.value,s.size=this.size})),this.hasButtonGroup=i.some(s=>s.tagName.toLowerCase()==="sl-radio-button"),i.length>0&&!i.some(s=>s.checked))if(this.hasButtonGroup){const s=(t=i[0].shadowRoot)==null?void 0:t.querySelector("button");s&&(s.tabIndex=0)}else i[0].tabIndex=0;if(this.hasButtonGroup){const s=(e=this.shadowRoot)==null?void 0:e.querySelector("sl-button-group");s&&(s.disableRole=!0)}}syncRadios(){if(customElements.get("sl-radio")&&customElements.get("sl-radio-button")){this.syncRadioElements();return}customElements.get("sl-radio")?this.syncRadioElements():customElements.whenDefined("sl-radio").then(()=>this.syncRadios()),customElements.get("sl-radio-button")?this.syncRadioElements():customElements.whenDefined("sl-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){const t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){const t=this.validity.valid;return this.errorMessage=this.customValidityMessage||t?"":this.validationInput.validationMessage,this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.errorMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=this.label?!0:!!t,s=this.helpText?!0:!!e,r=_`
|
|
2420
2041
|
<slot @slotchange=${this.syncRadios} @click=${this.handleRadioClick} @keydown=${this.handleKeyDown}></slot>
|
|
2421
|
-
`;return
|
|
2042
|
+
`;return _`
|
|
2422
2043
|
<fieldset
|
|
2423
2044
|
part="form-control"
|
|
2424
|
-
class=${
|
|
2045
|
+
class=${O({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--radio-group":!0,"form-control--has-label":i,"form-control--has-help-text":s})}
|
|
2425
2046
|
role="radiogroup"
|
|
2426
2047
|
aria-labelledby="label"
|
|
2427
2048
|
aria-describedby="help-text"
|
|
@@ -2452,7 +2073,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2452
2073
|
</label>
|
|
2453
2074
|
</div>
|
|
2454
2075
|
|
|
2455
|
-
${this.hasButtonGroup?
|
|
2076
|
+
${this.hasButtonGroup?_`
|
|
2456
2077
|
<sl-button-group part="button-group" exportparts="base:button-group__base" role="presentation">
|
|
2457
2078
|
${r}
|
|
2458
2079
|
</sl-button-group>
|
|
@@ -2468,7 +2089,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2468
2089
|
<slot name="help-text">${this.helpText}</slot>
|
|
2469
2090
|
</div>
|
|
2470
2091
|
</fieldset>
|
|
2471
|
-
`}};st.styles=[
|
|
2092
|
+
`}};st.styles=[M,se,go];st.dependencies={"sl-button-group":Gt};o([S("slot:not([name])")],st.prototype,"defaultSlot",2);o([S(".radio-group__validation-input")],st.prototype,"validationInput",2);o([E()],st.prototype,"hasButtonGroup",2);o([E()],st.prototype,"errorMessage",2);o([E()],st.prototype,"defaultValue",2);o([n()],st.prototype,"label",2);o([n({attribute:"help-text"})],st.prototype,"helpText",2);o([n()],st.prototype,"name",2);o([n({reflect:!0})],st.prototype,"value",2);o([n({reflect:!0})],st.prototype,"size",2);o([n({reflect:!0})],st.prototype,"form",2);o([n({type:Boolean,reflect:!0})],st.prototype,"required",2);o([k("size",{waitUntilFirstUpdate:!0})],st.prototype,"handleSizeChange",1);o([k("value")],st.prototype,"handleValueChange",1);st.define("sl-radio-group");var vo=I`
|
|
2472
2093
|
:host {
|
|
2473
2094
|
--thumb-size: 20px;
|
|
2474
2095
|
--tooltip-offset: 10px;
|
|
@@ -2694,10 +2315,10 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2694
2315
|
display: none;
|
|
2695
2316
|
}
|
|
2696
2317
|
}
|
|
2697
|
-
`,W=class extends
|
|
2318
|
+
`,W=class extends D{constructor(){super(...arguments),this.formControlController=new Xt(this),this.hasSlotController=new Rt(this,"help-text","label"),this.localize=new N(this),this.hasFocus=!1,this.hasTooltip=!1,this.title="",this.name="",this.value=0,this.label="",this.helpText="",this.disabled=!1,this.min=0,this.max=100,this.step=1,this.tooltip="top",this.tooltipFormatter=t=>t.toString(),this.form="",this.defaultValue=0}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.syncRange()),this.value<this.min&&(this.value=this.min),this.value>this.max&&(this.value=this.max),this.updateComplete.then(()=>{this.syncRange(),this.resizeObserver.observe(this.input)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.input)}handleChange(){this.emit("sl-change")}handleInput(){this.value=parseFloat(this.input.value),this.emit("sl-input"),this.syncRange()}handleBlur(){this.hasFocus=!1,this.hasTooltip=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.hasTooltip=!0,this.emit("sl-focus")}handleThumbDragStart(){this.hasTooltip=!0}handleThumbDragEnd(){this.hasTooltip=!1}syncProgress(t){this.input.style.setProperty("--percent",`${t*100}%`)}syncTooltip(t){if(this.output!==null){const e=this.input.offsetWidth,i=this.output.offsetWidth,s=getComputedStyle(this.input).getPropertyValue("--thumb-size"),r=this.localize.dir()==="rtl",a=e*t;if(r){const l=`${e-a}px + ${t} * ${s}`;this.output.style.translate=`calc((${l} - ${i/2}px - ${s} / 2))`}else{const l=`${a}px - ${t} * ${s}`;this.output.style.translate=`calc(${l} - ${i/2}px + ${s} / 2)`}}}handleValueChange(){this.formControlController.updateValidity(),this.input.value=this.value.toString(),this.value=parseFloat(this.input.value),this.syncRange()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}syncRange(){const t=Math.max(0,(this.value-this.min)/(this.max-this.min));this.syncProgress(t),this.tooltip!=="none"&&this.updateComplete.then(()=>this.syncTooltip(t))}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}focus(t){this.input.focus(t)}blur(){this.input.blur()}stepUp(){this.input.stepUp(),this.value!==Number(this.input.value)&&(this.value=Number(this.input.value))}stepDown(){this.input.stepDown(),this.value!==Number(this.input.value)&&(this.value=Number(this.input.value))}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=this.label?!0:!!t,s=this.helpText?!0:!!e;return _`
|
|
2698
2319
|
<div
|
|
2699
2320
|
part="form-control"
|
|
2700
|
-
class=${
|
|
2321
|
+
class=${O({"form-control":!0,"form-control--medium":!0,"form-control--has-label":i,"form-control--has-help-text":s})}
|
|
2701
2322
|
>
|
|
2702
2323
|
<label
|
|
2703
2324
|
part="form-control-label"
|
|
@@ -2711,7 +2332,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2711
2332
|
<div part="form-control-input" class="form-control-input">
|
|
2712
2333
|
<div
|
|
2713
2334
|
part="base"
|
|
2714
|
-
class=${
|
|
2335
|
+
class=${O({range:!0,"range--disabled":this.disabled,"range--focused":this.hasFocus,"range--rtl":this.localize.dir()==="rtl","range--tooltip-visible":this.hasTooltip,"range--tooltip-top":this.tooltip==="top","range--tooltip-bottom":this.tooltip==="bottom"})}
|
|
2715
2336
|
@mousedown=${this.handleThumbDragStart}
|
|
2716
2337
|
@mouseup=${this.handleThumbDragEnd}
|
|
2717
2338
|
@touchstart=${this.handleThumbDragStart}
|
|
@@ -2728,7 +2349,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2728
2349
|
min=${H(this.min)}
|
|
2729
2350
|
max=${H(this.max)}
|
|
2730
2351
|
step=${H(this.step)}
|
|
2731
|
-
.value=${
|
|
2352
|
+
.value=${ee(this.value.toString())}
|
|
2732
2353
|
aria-describedby="help-text"
|
|
2733
2354
|
@change=${this.handleChange}
|
|
2734
2355
|
@focus=${this.handleFocus}
|
|
@@ -2736,7 +2357,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2736
2357
|
@invalid=${this.handleInvalid}
|
|
2737
2358
|
@blur=${this.handleBlur}
|
|
2738
2359
|
/>
|
|
2739
|
-
${this.tooltip!=="none"&&!this.disabled?
|
|
2360
|
+
${this.tooltip!=="none"&&!this.disabled?_`
|
|
2740
2361
|
<output part="tooltip" class="range__tooltip">
|
|
2741
2362
|
${typeof this.tooltipFormatter=="function"?this.tooltipFormatter(this.value):this.value}
|
|
2742
2363
|
</output>
|
|
@@ -2753,7 +2374,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2753
2374
|
<slot name="help-text">${this.helpText}</slot>
|
|
2754
2375
|
</div>
|
|
2755
2376
|
</div>
|
|
2756
|
-
`}};W.styles=[
|
|
2377
|
+
`}};W.styles=[M,se,vo];o([S(".range__control")],W.prototype,"input",2);o([S(".range__tooltip")],W.prototype,"output",2);o([E()],W.prototype,"hasFocus",2);o([E()],W.prototype,"hasTooltip",2);o([n()],W.prototype,"title",2);o([n()],W.prototype,"name",2);o([n({type:Number})],W.prototype,"value",2);o([n()],W.prototype,"label",2);o([n({attribute:"help-text"})],W.prototype,"helpText",2);o([n({type:Boolean,reflect:!0})],W.prototype,"disabled",2);o([n({type:Number})],W.prototype,"min",2);o([n({type:Number})],W.prototype,"max",2);o([n({type:Number})],W.prototype,"step",2);o([n()],W.prototype,"tooltip",2);o([n({attribute:!1})],W.prototype,"tooltipFormatter",2);o([n({reflect:!0})],W.prototype,"form",2);o([oe()],W.prototype,"defaultValue",2);o([Ee({passive:!0})],W.prototype,"handleThumbDragStart",1);o([k("value",{waitUntilFirstUpdate:!0})],W.prototype,"handleValueChange",1);o([k("disabled",{waitUntilFirstUpdate:!0})],W.prototype,"handleDisabledChange",1);o([k("hasTooltip",{waitUntilFirstUpdate:!0})],W.prototype,"syncRange",1);W.define("sl-range");var yo=I`
|
|
2757
2378
|
:host {
|
|
2758
2379
|
--size: 128px;
|
|
2759
2380
|
--track-width: 4px;
|
|
@@ -2818,7 +2439,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2818
2439
|
user-select: none;
|
|
2819
2440
|
-webkit-user-select: none;
|
|
2820
2441
|
}
|
|
2821
|
-
`,
|
|
2442
|
+
`,ne=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.value=0,this.label=""}updated(t){if(super.updated(t),t.has("value")){const e=parseFloat(getComputedStyle(this.indicator).getPropertyValue("r")),i=2*Math.PI*e,s=i-this.value/100*i;this.indicatorOffset=`${s}px`}}render(){return _`
|
|
2822
2443
|
<div
|
|
2823
2444
|
part="base"
|
|
2824
2445
|
class="progress-ring"
|
|
@@ -2837,11 +2458,11 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2837
2458
|
|
|
2838
2459
|
<slot id="label" part="label" class="progress-ring__label"></slot>
|
|
2839
2460
|
</div>
|
|
2840
|
-
`}};
|
|
2461
|
+
`}};ne.styles=[M,yo];o([S(".progress-ring__indicator")],ne.prototype,"indicator",2);o([E()],ne.prototype,"indicatorOffset",2);o([n({type:Number,reflect:!0})],ne.prototype,"value",2);o([n()],ne.prototype,"label",2);ne.define("sl-progress-ring");var wo=I`
|
|
2841
2462
|
:host {
|
|
2842
2463
|
display: inline-block;
|
|
2843
2464
|
}
|
|
2844
|
-
`;let Wi=null;class qi{}qi.render=function(t,e){Wi(t,e)};self.QrCreator=qi;(function(t){function e(d,c,h,g){var u={},p=t(h,c);p.u(d),p.J(),g=g||0;var f=p.h(),m=p.h()+2*g;return u.text=d,u.level=c,u.version=h,u.O=m,u.a=function(b,C){return b-=g,C-=g,0>b||b>=f||0>C||C>=f?!1:p.a(b,C)},u}function i(d,c,h,g,u,p,f,m,b,C){function S(w,_,v,y,$,P,M){w?(d.lineTo(_+P,v+M),d.arcTo(_,v,y,$,p)):d.lineTo(_,v)}f?d.moveTo(c+p,h):d.moveTo(c,h),S(m,g,h,g,u,-p,0),S(b,g,u,c,u,0,-p),S(C,c,u,c,h,p,0),S(f,c,h,g,h,0,p)}function s(d,c,h,g,u,p,f,m,b,C){function S(w,_,v,y){d.moveTo(w+v,_),d.lineTo(w,_),d.lineTo(w,_+y),d.arcTo(w,_,w+v,_,p)}f&&S(c,h,p,p),m&&S(g,h,-p,p),b&&S(g,u,-p,-p),C&&S(c,u,p,-p)}function r(d,c){var h=c.fill;if(typeof h=="string")d.fillStyle=h;else{var g=h.type,u=h.colorStops;if(h=h.position.map(f=>Math.round(f*c.size)),g==="linear-gradient")var p=d.createLinearGradient.apply(d,h);else if(g==="radial-gradient")p=d.createRadialGradient.apply(d,h);else throw Error("Unsupported fill");u.forEach(([f,m])=>{p.addColorStop(f,m)}),d.fillStyle=p}}function a(d,c){t:{var h=c.text,g=c.v,u=c.N,p=c.K,f=c.P;for(u=Math.max(1,u||1),p=Math.min(40,p||40);u<=p;u+=1)try{var m=e(h,g,u,f);break t}catch{}m=void 0}if(!m)return null;for(h=d.getContext("2d"),c.background&&(h.fillStyle=c.background,h.fillRect(c.left,c.top,c.size,c.size)),g=m.O,p=c.size/g,h.beginPath(),f=0;f<g;f+=1)for(u=0;u<g;u+=1){var b=h,C=c.left+u*p,S=c.top+f*p,w=f,_=u,v=m.a,y=C+p,$=S+p,P=w-1,M=w+1,T=_-1,A=_+1,rt=Math.floor(Math.min(.5,Math.max(0,c.R))*p),q=v(w,_),ut=v(P,T),Q=v(P,_);P=v(P,A);var lt=v(w,A);A=v(M,A),_=v(M,_),M=v(M,T),w=v(w,T),C=Math.round(C),S=Math.round(S),y=Math.round(y),$=Math.round($),q?i(b,C,S,y,$,rt,!Q&&!w,!Q&&!lt,!_&&!lt,!_&&!w):s(b,C,S,y,$,rt,Q&&w&&ut,Q&<&&P,_&<&&A,_&&w&&M)}return r(h,c),h.fill(),d}var l={minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:.5,quiet:0};Wi=function(d,c){var h={};Object.assign(h,l,d),h.N=h.minVersion,h.K=h.maxVersion,h.v=h.ecLevel,h.left=h.left,h.top=h.top,h.size=h.size,h.fill=h.fill,h.background=h.background,h.text=h.text,h.R=h.radius,h.P=h.quiet,c instanceof HTMLCanvasElement?((c.width!==h.size||c.height!==h.size)&&(c.width=h.size,c.height=h.size),c.getContext("2d").clearRect(0,0,c.width,c.height),a(c,h)):(d=document.createElement("canvas"),d.width=h.size,d.height=h.size,h=a(d,h),c.appendChild(h))}})(function(){function t(c){var h=i.s(c);return{S:function(){return 4},b:function(){return h.length},write:function(g){for(var u=0;u<h.length;u+=1)g.put(h[u],8)}}}function e(){var c=[],h=0,g={B:function(){return c},c:function(u){return(c[Math.floor(u/8)]>>>7-u%8&1)==1},put:function(u,p){for(var f=0;f<p;f+=1)g.m((u>>>p-f-1&1)==1)},f:function(){return h},m:function(u){var p=Math.floor(h/8);c.length<=p&&c.push(0),u&&(c[p]|=128>>>h%8),h+=1}};return g}function i(c,h){function g(w,_){for(var v=-1;7>=v;v+=1)if(!(-1>=w+v||m<=w+v))for(var y=-1;7>=y;y+=1)-1>=_+y||m<=_+y||(f[w+v][_+y]=0<=v&&6>=v&&(y==0||y==6)||0<=y&&6>=y&&(v==0||v==6)||2<=v&&4>=v&&2<=y&&4>=y)}function u(w,_){for(var v=m=4*c+17,y=Array(v),$=0;$<v;$+=1){y[$]=Array(v);for(var P=0;P<v;P+=1)y[$][P]=null}for(f=y,g(0,0),g(m-7,0),g(0,m-7),v=a.G(c),y=0;y<v.length;y+=1)for($=0;$<v.length;$+=1){P=v[y];var M=v[$];if(f[P][M]==null)for(var T=-2;2>=T;T+=1)for(var A=-2;2>=A;A+=1)f[P+T][M+A]=T==-2||T==2||A==-2||A==2||T==0&&A==0}for(v=8;v<m-8;v+=1)f[v][6]==null&&(f[v][6]=v%2==0);for(v=8;v<m-8;v+=1)f[6][v]==null&&(f[6][v]=v%2==0);for(v=a.w(p<<3|_),y=0;15>y;y+=1)$=!w&&(v>>y&1)==1,f[6>y?y:8>y?y+1:m-15+y][8]=$,f[8][8>y?m-y-1:9>y?15-y:14-y]=$;if(f[m-8][8]=!w,7<=c){for(v=a.A(c),y=0;18>y;y+=1)$=!w&&(v>>y&1)==1,f[Math.floor(y/3)][y%3+m-8-3]=$;for(y=0;18>y;y+=1)$=!w&&(v>>y&1)==1,f[y%3+m-8-3][Math.floor(y/3)]=$}if(b==null){for(w=d.I(c,p),v=e(),y=0;y<C.length;y+=1)$=C[y],v.put(4,4),v.put($.b(),a.f(4,c)),$.write(v);for(y=$=0;y<w.length;y+=1)$+=w[y].j;if(v.f()>8*$)throw Error("code length overflow. ("+v.f()+">"+8*$+")");for(v.f()+4<=8*$&&v.put(0,4);v.f()%8!=0;)v.m(!1);for(;!(v.f()>=8*$)&&(v.put(236,8),!(v.f()>=8*$));)v.put(17,8);var rt=0;for($=y=0,P=Array(w.length),M=Array(w.length),T=0;T<w.length;T+=1){var q=w[T].j,ut=w[T].o-q;for(y=Math.max(y,q),$=Math.max($,ut),P[T]=Array(q),A=0;A<P[T].length;A+=1)P[T][A]=255&v.B()[A+rt];for(rt+=q,A=a.C(ut),q=s(P[T],A.b()-1).l(A),M[T]=Array(A.b()-1),A=0;A<M[T].length;A+=1)ut=A+q.b()-M[T].length,M[T][A]=0<=ut?q.c(ut):0}for(A=v=0;A<w.length;A+=1)v+=w[A].o;for(v=Array(v),A=rt=0;A<y;A+=1)for(T=0;T<w.length;T+=1)A<P[T].length&&(v[rt]=P[T][A],rt+=1);for(A=0;A<$;A+=1)for(T=0;T<w.length;T+=1)A<M[T].length&&(v[rt]=M[T][A],rt+=1);b=v}for(w=b,v=-1,y=m-1,$=7,P=0,_=a.F(_),M=m-1;0<M;M-=2)for(M==6&&--M;;){for(T=0;2>T;T+=1)f[y][M-T]==null&&(A=!1,P<w.length&&(A=(w[P]>>>$&1)==1),_(y,M-T)&&(A=!A),f[y][M-T]=A,--$,$==-1&&(P+=1,$=7));if(y+=v,0>y||m<=y){y-=v,v=-v;break}}}var p=r[h],f=null,m=0,b=null,C=[],S={u:function(w){w=t(w),C.push(w),b=null},a:function(w,_){if(0>w||m<=w||0>_||m<=_)throw Error(w+","+_);return f[w][_]},h:function(){return m},J:function(){for(var w=0,_=0,v=0;8>v;v+=1){u(!0,v);var y=a.D(S);(v==0||w>y)&&(w=y,_=v)}u(!1,_)}};return S}function s(c,h){if(typeof c.length>"u")throw Error(c.length+"/"+h);var g=function(){for(var p=0;p<c.length&&c[p]==0;)p+=1;for(var f=Array(c.length-p+h),m=0;m<c.length-p;m+=1)f[m]=c[m+p];return f}(),u={c:function(p){return g[p]},b:function(){return g.length},multiply:function(p){for(var f=Array(u.b()+p.b()-1),m=0;m<u.b();m+=1)for(var b=0;b<p.b();b+=1)f[m+b]^=l.i(l.g(u.c(m))+l.g(p.c(b)));return s(f,0)},l:function(p){if(0>u.b()-p.b())return u;for(var f=l.g(u.c(0))-l.g(p.c(0)),m=Array(u.b()),b=0;b<u.b();b+=1)m[b]=u.c(b);for(b=0;b<p.b();b+=1)m[b]^=l.i(l.g(p.c(b))+f);return s(m,0).l(p)}};return u}i.s=function(c){for(var h=[],g=0;g<c.length;g++){var u=c.charCodeAt(g);128>u?h.push(u):2048>u?h.push(192|u>>6,128|u&63):55296>u||57344<=u?h.push(224|u>>12,128|u>>6&63,128|u&63):(g++,u=65536+((u&1023)<<10|c.charCodeAt(g)&1023),h.push(240|u>>18,128|u>>12&63,128|u>>6&63,128|u&63))}return h};var r={L:1,M:0,Q:3,H:2},a=function(){function c(u){for(var p=0;u!=0;)p+=1,u>>>=1;return p}var h=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],g={w:function(u){for(var p=u<<10;0<=c(p)-c(1335);)p^=1335<<c(p)-c(1335);return(u<<10|p)^21522},A:function(u){for(var p=u<<12;0<=c(p)-c(7973);)p^=7973<<c(p)-c(7973);return u<<12|p},G:function(u){return h[u-1]},F:function(u){switch(u){case 0:return function(p,f){return(p+f)%2==0};case 1:return function(p){return p%2==0};case 2:return function(p,f){return f%3==0};case 3:return function(p,f){return(p+f)%3==0};case 4:return function(p,f){return(Math.floor(p/2)+Math.floor(f/3))%2==0};case 5:return function(p,f){return p*f%2+p*f%3==0};case 6:return function(p,f){return(p*f%2+p*f%3)%2==0};case 7:return function(p,f){return(p*f%3+(p+f)%2)%2==0};default:throw Error("bad maskPattern:"+u)}},C:function(u){for(var p=s([1],0),f=0;f<u;f+=1)p=p.multiply(s([1,l.i(f)],0));return p},f:function(u,p){if(u!=4||1>p||40<p)throw Error("mode: "+u+"; type: "+p);return 10>p?8:16},D:function(u){for(var p=u.h(),f=0,m=0;m<p;m+=1)for(var b=0;b<p;b+=1){for(var C=0,S=u.a(m,b),w=-1;1>=w;w+=1)if(!(0>m+w||p<=m+w))for(var _=-1;1>=_;_+=1)0>b+_||p<=b+_||(w!=0||_!=0)&&S==u.a(m+w,b+_)&&(C+=1);5<C&&(f+=3+C-5)}for(m=0;m<p-1;m+=1)for(b=0;b<p-1;b+=1)C=0,u.a(m,b)&&(C+=1),u.a(m+1,b)&&(C+=1),u.a(m,b+1)&&(C+=1),u.a(m+1,b+1)&&(C+=1),(C==0||C==4)&&(f+=3);for(m=0;m<p;m+=1)for(b=0;b<p-6;b+=1)u.a(m,b)&&!u.a(m,b+1)&&u.a(m,b+2)&&u.a(m,b+3)&&u.a(m,b+4)&&!u.a(m,b+5)&&u.a(m,b+6)&&(f+=40);for(b=0;b<p;b+=1)for(m=0;m<p-6;m+=1)u.a(m,b)&&!u.a(m+1,b)&&u.a(m+2,b)&&u.a(m+3,b)&&u.a(m+4,b)&&!u.a(m+5,b)&&u.a(m+6,b)&&(f+=40);for(b=C=0;b<p;b+=1)for(m=0;m<p;m+=1)u.a(m,b)&&(C+=1);return f+=Math.abs(100*C/p/p-50)/5*10}};return g}(),l=function(){for(var c=Array(256),h=Array(256),g=0;8>g;g+=1)c[g]=1<<g;for(g=8;256>g;g+=1)c[g]=c[g-4]^c[g-5]^c[g-6]^c[g-8];for(g=0;255>g;g+=1)h[c[g]]=g;return{g:function(u){if(1>u)throw Error("glog("+u+")");return h[u]},i:function(u){for(;0>u;)u+=255;for(;256<=u;)u-=255;return c[u]}}}(),d=function(){function c(u,p){switch(p){case r.L:return h[4*(u-1)];case r.M:return h[4*(u-1)+1];case r.Q:return h[4*(u-1)+2];case r.H:return h[4*(u-1)+3]}}var h=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],g={I:function(u,p){var f=c(u,p);if(typeof f>"u")throw Error("bad rs block @ typeNumber:"+u+"/errorCorrectLevel:"+p);u=f.length/3,p=[];for(var m=0;m<u;m+=1)for(var b=f[3*m],C=f[3*m+1],S=f[3*m+2],w=0;w<b;w+=1){var _=S,v={};v.o=C,v.j=_,p.push(v)}return p}};return g}();return i}());const To=QrCreator;var At=class extends E{constructor(){super(...arguments),this.value="",this.label="",this.size=128,this.fill="black",this.background="white",this.radius=0,this.errorCorrection="H"}firstUpdated(){this.generate()}generate(){this.hasUpdated&&To.render({text:this.value,radius:this.radius,ecLevel:this.errorCorrection,fill:this.fill,background:this.background,size:this.size*2},this.canvas)}render(){var t;return x`
|
|
2465
|
+
`;let Vi=null;class Bi{}Bi.render=function(t,e){Vi(t,e)};self.QrCreator=Bi;(function(t){function e(u,c,d,g){var h={},p=t(d,c);p.u(u),p.J(),g=g||0;var f=p.h(),m=p.h()+2*g;return h.text=u,h.level=c,h.version=d,h.O=m,h.a=function(b,C){return b-=g,C-=g,0>b||b>=f||0>C||C>=f?!1:p.a(b,C)},h}function i(u,c,d,g,h,p,f,m,b,C){function $(w,x,v,y,z,L,P){w?(u.lineTo(x+L,v+P),u.arcTo(x,v,y,z,p)):u.lineTo(x,v)}f?u.moveTo(c+p,d):u.moveTo(c,d),$(m,g,d,g,h,-p,0),$(b,g,h,c,h,0,-p),$(C,c,h,c,d,p,0),$(f,c,d,g,d,0,p)}function s(u,c,d,g,h,p,f,m,b,C){function $(w,x,v,y){u.moveTo(w+v,x),u.lineTo(w,x),u.lineTo(w,x+y),u.arcTo(w,x,w+v,x,p)}f&&$(c,d,p,p),m&&$(g,d,-p,p),b&&$(g,h,-p,-p),C&&$(c,h,p,-p)}function r(u,c){var d=c.fill;if(typeof d=="string")u.fillStyle=d;else{var g=d.type,h=d.colorStops;if(d=d.position.map(f=>Math.round(f*c.size)),g==="linear-gradient")var p=u.createLinearGradient.apply(u,d);else if(g==="radial-gradient")p=u.createRadialGradient.apply(u,d);else throw Error("Unsupported fill");h.forEach(([f,m])=>{p.addColorStop(f,m)}),u.fillStyle=p}}function a(u,c){t:{var d=c.text,g=c.v,h=c.N,p=c.K,f=c.P;for(h=Math.max(1,h||1),p=Math.min(40,p||40);h<=p;h+=1)try{var m=e(d,g,h,f);break t}catch{}m=void 0}if(!m)return null;for(d=u.getContext("2d"),c.background&&(d.fillStyle=c.background,d.fillRect(c.left,c.top,c.size,c.size)),g=m.O,p=c.size/g,d.beginPath(),f=0;f<g;f+=1)for(h=0;h<g;h+=1){var b=d,C=c.left+h*p,$=c.top+f*p,w=f,x=h,v=m.a,y=C+p,z=$+p,L=w-1,P=w+1,T=x-1,A=x+1,rt=Math.floor(Math.min(.5,Math.max(0,c.R))*p),q=v(w,x),ut=v(L,T),Q=v(L,x);L=v(L,A);var lt=v(w,A);A=v(P,A),x=v(P,x),P=v(P,T),w=v(w,T),C=Math.round(C),$=Math.round($),y=Math.round(y),z=Math.round(z),q?i(b,C,$,y,z,rt,!Q&&!w,!Q&&!lt,!x&&!lt,!x&&!w):s(b,C,$,y,z,rt,Q&&w&&ut,Q&<&&L,x&<&&A,x&&w&&P)}return r(d,c),d.fill(),u}var l={minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:.5,quiet:0};Vi=function(u,c){var d={};Object.assign(d,l,u),d.N=d.minVersion,d.K=d.maxVersion,d.v=d.ecLevel,d.left=d.left,d.top=d.top,d.size=d.size,d.fill=d.fill,d.background=d.background,d.text=d.text,d.R=d.radius,d.P=d.quiet,c instanceof HTMLCanvasElement?((c.width!==d.size||c.height!==d.size)&&(c.width=d.size,c.height=d.size),c.getContext("2d").clearRect(0,0,c.width,c.height),a(c,d)):(u=document.createElement("canvas"),u.width=d.size,u.height=d.size,d=a(u,d),c.appendChild(d))}})(function(){function t(c){var d=i.s(c);return{S:function(){return 4},b:function(){return d.length},write:function(g){for(var h=0;h<d.length;h+=1)g.put(d[h],8)}}}function e(){var c=[],d=0,g={B:function(){return c},c:function(h){return(c[Math.floor(h/8)]>>>7-h%8&1)==1},put:function(h,p){for(var f=0;f<p;f+=1)g.m((h>>>p-f-1&1)==1)},f:function(){return d},m:function(h){var p=Math.floor(d/8);c.length<=p&&c.push(0),h&&(c[p]|=128>>>d%8),d+=1}};return g}function i(c,d){function g(w,x){for(var v=-1;7>=v;v+=1)if(!(-1>=w+v||m<=w+v))for(var y=-1;7>=y;y+=1)-1>=x+y||m<=x+y||(f[w+v][x+y]=0<=v&&6>=v&&(y==0||y==6)||0<=y&&6>=y&&(v==0||v==6)||2<=v&&4>=v&&2<=y&&4>=y)}function h(w,x){for(var v=m=4*c+17,y=Array(v),z=0;z<v;z+=1){y[z]=Array(v);for(var L=0;L<v;L+=1)y[z][L]=null}for(f=y,g(0,0),g(m-7,0),g(0,m-7),v=a.G(c),y=0;y<v.length;y+=1)for(z=0;z<v.length;z+=1){L=v[y];var P=v[z];if(f[L][P]==null)for(var T=-2;2>=T;T+=1)for(var A=-2;2>=A;A+=1)f[L+T][P+A]=T==-2||T==2||A==-2||A==2||T==0&&A==0}for(v=8;v<m-8;v+=1)f[v][6]==null&&(f[v][6]=v%2==0);for(v=8;v<m-8;v+=1)f[6][v]==null&&(f[6][v]=v%2==0);for(v=a.w(p<<3|x),y=0;15>y;y+=1)z=!w&&(v>>y&1)==1,f[6>y?y:8>y?y+1:m-15+y][8]=z,f[8][8>y?m-y-1:9>y?15-y:14-y]=z;if(f[m-8][8]=!w,7<=c){for(v=a.A(c),y=0;18>y;y+=1)z=!w&&(v>>y&1)==1,f[Math.floor(y/3)][y%3+m-8-3]=z;for(y=0;18>y;y+=1)z=!w&&(v>>y&1)==1,f[y%3+m-8-3][Math.floor(y/3)]=z}if(b==null){for(w=u.I(c,p),v=e(),y=0;y<C.length;y+=1)z=C[y],v.put(4,4),v.put(z.b(),a.f(4,c)),z.write(v);for(y=z=0;y<w.length;y+=1)z+=w[y].j;if(v.f()>8*z)throw Error("code length overflow. ("+v.f()+">"+8*z+")");for(v.f()+4<=8*z&&v.put(0,4);v.f()%8!=0;)v.m(!1);for(;!(v.f()>=8*z)&&(v.put(236,8),!(v.f()>=8*z));)v.put(17,8);var rt=0;for(z=y=0,L=Array(w.length),P=Array(w.length),T=0;T<w.length;T+=1){var q=w[T].j,ut=w[T].o-q;for(y=Math.max(y,q),z=Math.max(z,ut),L[T]=Array(q),A=0;A<L[T].length;A+=1)L[T][A]=255&v.B()[A+rt];for(rt+=q,A=a.C(ut),q=s(L[T],A.b()-1).l(A),P[T]=Array(A.b()-1),A=0;A<P[T].length;A+=1)ut=A+q.b()-P[T].length,P[T][A]=0<=ut?q.c(ut):0}for(A=v=0;A<w.length;A+=1)v+=w[A].o;for(v=Array(v),A=rt=0;A<y;A+=1)for(T=0;T<w.length;T+=1)A<L[T].length&&(v[rt]=L[T][A],rt+=1);for(A=0;A<z;A+=1)for(T=0;T<w.length;T+=1)A<P[T].length&&(v[rt]=P[T][A],rt+=1);b=v}for(w=b,v=-1,y=m-1,z=7,L=0,x=a.F(x),P=m-1;0<P;P-=2)for(P==6&&--P;;){for(T=0;2>T;T+=1)f[y][P-T]==null&&(A=!1,L<w.length&&(A=(w[L]>>>z&1)==1),x(y,P-T)&&(A=!A),f[y][P-T]=A,--z,z==-1&&(L+=1,z=7));if(y+=v,0>y||m<=y){y-=v,v=-v;break}}}var p=r[d],f=null,m=0,b=null,C=[],$={u:function(w){w=t(w),C.push(w),b=null},a:function(w,x){if(0>w||m<=w||0>x||m<=x)throw Error(w+","+x);return f[w][x]},h:function(){return m},J:function(){for(var w=0,x=0,v=0;8>v;v+=1){h(!0,v);var y=a.D($);(v==0||w>y)&&(w=y,x=v)}h(!1,x)}};return $}function s(c,d){if(typeof c.length>"u")throw Error(c.length+"/"+d);var g=function(){for(var p=0;p<c.length&&c[p]==0;)p+=1;for(var f=Array(c.length-p+d),m=0;m<c.length-p;m+=1)f[m]=c[m+p];return f}(),h={c:function(p){return g[p]},b:function(){return g.length},multiply:function(p){for(var f=Array(h.b()+p.b()-1),m=0;m<h.b();m+=1)for(var b=0;b<p.b();b+=1)f[m+b]^=l.i(l.g(h.c(m))+l.g(p.c(b)));return s(f,0)},l:function(p){if(0>h.b()-p.b())return h;for(var f=l.g(h.c(0))-l.g(p.c(0)),m=Array(h.b()),b=0;b<h.b();b+=1)m[b]=h.c(b);for(b=0;b<p.b();b+=1)m[b]^=l.i(l.g(p.c(b))+f);return s(m,0).l(p)}};return h}i.s=function(c){for(var d=[],g=0;g<c.length;g++){var h=c.charCodeAt(g);128>h?d.push(h):2048>h?d.push(192|h>>6,128|h&63):55296>h||57344<=h?d.push(224|h>>12,128|h>>6&63,128|h&63):(g++,h=65536+((h&1023)<<10|c.charCodeAt(g)&1023),d.push(240|h>>18,128|h>>12&63,128|h>>6&63,128|h&63))}return d};var r={L:1,M:0,Q:3,H:2},a=function(){function c(h){for(var p=0;h!=0;)p+=1,h>>>=1;return p}var d=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],g={w:function(h){for(var p=h<<10;0<=c(p)-c(1335);)p^=1335<<c(p)-c(1335);return(h<<10|p)^21522},A:function(h){for(var p=h<<12;0<=c(p)-c(7973);)p^=7973<<c(p)-c(7973);return h<<12|p},G:function(h){return d[h-1]},F:function(h){switch(h){case 0:return function(p,f){return(p+f)%2==0};case 1:return function(p){return p%2==0};case 2:return function(p,f){return f%3==0};case 3:return function(p,f){return(p+f)%3==0};case 4:return function(p,f){return(Math.floor(p/2)+Math.floor(f/3))%2==0};case 5:return function(p,f){return p*f%2+p*f%3==0};case 6:return function(p,f){return(p*f%2+p*f%3)%2==0};case 7:return function(p,f){return(p*f%3+(p+f)%2)%2==0};default:throw Error("bad maskPattern:"+h)}},C:function(h){for(var p=s([1],0),f=0;f<h;f+=1)p=p.multiply(s([1,l.i(f)],0));return p},f:function(h,p){if(h!=4||1>p||40<p)throw Error("mode: "+h+"; type: "+p);return 10>p?8:16},D:function(h){for(var p=h.h(),f=0,m=0;m<p;m+=1)for(var b=0;b<p;b+=1){for(var C=0,$=h.a(m,b),w=-1;1>=w;w+=1)if(!(0>m+w||p<=m+w))for(var x=-1;1>=x;x+=1)0>b+x||p<=b+x||(w!=0||x!=0)&&$==h.a(m+w,b+x)&&(C+=1);5<C&&(f+=3+C-5)}for(m=0;m<p-1;m+=1)for(b=0;b<p-1;b+=1)C=0,h.a(m,b)&&(C+=1),h.a(m+1,b)&&(C+=1),h.a(m,b+1)&&(C+=1),h.a(m+1,b+1)&&(C+=1),(C==0||C==4)&&(f+=3);for(m=0;m<p;m+=1)for(b=0;b<p-6;b+=1)h.a(m,b)&&!h.a(m,b+1)&&h.a(m,b+2)&&h.a(m,b+3)&&h.a(m,b+4)&&!h.a(m,b+5)&&h.a(m,b+6)&&(f+=40);for(b=0;b<p;b+=1)for(m=0;m<p-6;m+=1)h.a(m,b)&&!h.a(m+1,b)&&h.a(m+2,b)&&h.a(m+3,b)&&h.a(m+4,b)&&!h.a(m+5,b)&&h.a(m+6,b)&&(f+=40);for(b=C=0;b<p;b+=1)for(m=0;m<p;m+=1)h.a(m,b)&&(C+=1);return f+=Math.abs(100*C/p/p-50)/5*10}};return g}(),l=function(){for(var c=Array(256),d=Array(256),g=0;8>g;g+=1)c[g]=1<<g;for(g=8;256>g;g+=1)c[g]=c[g-4]^c[g-5]^c[g-6]^c[g-8];for(g=0;255>g;g+=1)d[c[g]]=g;return{g:function(h){if(1>h)throw Error("glog("+h+")");return d[h]},i:function(h){for(;0>h;)h+=255;for(;256<=h;)h-=255;return c[h]}}}(),u=function(){function c(h,p){switch(p){case r.L:return d[4*(h-1)];case r.M:return d[4*(h-1)+1];case r.Q:return d[4*(h-1)+2];case r.H:return d[4*(h-1)+3]}}var d=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],g={I:function(h,p){var f=c(h,p);if(typeof f>"u")throw Error("bad rs block @ typeNumber:"+h+"/errorCorrectLevel:"+p);h=f.length/3,p=[];for(var m=0;m<h;m+=1)for(var b=f[3*m],C=f[3*m+1],$=f[3*m+2],w=0;w<b;w+=1){var x=$,v={};v.o=C,v.j=x,p.push(v)}return p}};return g}();return i}());const xo=QrCreator;var St=class extends D{constructor(){super(...arguments),this.value="",this.label="",this.size=128,this.fill="black",this.background="white",this.radius=0,this.errorCorrection="H"}firstUpdated(){this.generate()}generate(){this.hasUpdated&&xo.render({text:this.value,radius:this.radius,ecLevel:this.errorCorrection,fill:this.fill,background:this.background,size:this.size*2},this.canvas)}render(){var t;return _`
|
|
2845
2466
|
<canvas
|
|
2846
2467
|
part="base"
|
|
2847
2468
|
class="qr-code"
|
|
@@ -2849,7 +2470,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2849
2470
|
aria-label=${((t=this.label)==null?void 0:t.length)>0?this.label:this.value}
|
|
2850
2471
|
style=${dt({width:`${this.size}px`,height:`${this.size}px`})}
|
|
2851
2472
|
></canvas>
|
|
2852
|
-
`}};
|
|
2473
|
+
`}};St.styles=[M,wo];o([S("canvas")],St.prototype,"canvas",2);o([n()],St.prototype,"value",2);o([n()],St.prototype,"label",2);o([n({type:Number})],St.prototype,"size",2);o([n()],St.prototype,"fill",2);o([n()],St.prototype,"background",2);o([n({type:Number})],St.prototype,"radius",2);o([n({attribute:"error-correction"})],St.prototype,"errorCorrection",2);o([k(["background","errorCorrection","fill","radius","size","value"])],St.prototype,"generate",1);St.define("sl-qr-code");var _o=I`
|
|
2853
2474
|
:host {
|
|
2854
2475
|
display: block;
|
|
2855
2476
|
}
|
|
@@ -2961,18 +2582,18 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
2961
2582
|
user-select: none;
|
|
2962
2583
|
-webkit-user-select: none;
|
|
2963
2584
|
}
|
|
2964
|
-
`,
|
|
2585
|
+
`,Lt=class extends D{constructor(){super(),this.checked=!1,this.hasFocus=!1,this.size="medium",this.disabled=!1,this.handleBlur=()=>{this.hasFocus=!1,this.emit("sl-blur")},this.handleClick=()=>{this.disabled||(this.checked=!0)},this.handleFocus=()=>{this.hasFocus=!0,this.emit("sl-focus")},this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}connectedCallback(){super.connectedCallback(),this.setInitialAttributes()}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return _`
|
|
2965
2586
|
<span
|
|
2966
2587
|
part="base"
|
|
2967
|
-
class=${
|
|
2588
|
+
class=${O({radio:!0,"radio--checked":this.checked,"radio--disabled":this.disabled,"radio--focused":this.hasFocus,"radio--small":this.size==="small","radio--medium":this.size==="medium","radio--large":this.size==="large"})}
|
|
2968
2589
|
>
|
|
2969
2590
|
<span part="${`control${this.checked?" control--checked":""}`}" class="radio__control">
|
|
2970
|
-
${this.checked?
|
|
2591
|
+
${this.checked?_` <sl-icon part="checked-icon" class="radio__checked-icon" library="system" name="radio"></sl-icon> `:""}
|
|
2971
2592
|
</span>
|
|
2972
2593
|
|
|
2973
2594
|
<slot part="label" class="radio__label"></slot>
|
|
2974
2595
|
</span>
|
|
2975
|
-
`}};
|
|
2596
|
+
`}};Lt.styles=[M,_o];Lt.dependencies={"sl-icon":gt};o([E()],Lt.prototype,"checked",2);o([E()],Lt.prototype,"hasFocus",2);o([n()],Lt.prototype,"value",2);o([n({reflect:!0})],Lt.prototype,"size",2);o([n({type:Boolean,reflect:!0})],Lt.prototype,"disabled",2);o([k("checked")],Lt.prototype,"handleCheckedChange",1);o([k("disabled",{waitUntilFirstUpdate:!0})],Lt.prototype,"handleDisabledChange",1);Lt.define("sl-radio");var ko=I`
|
|
2976
2597
|
:host {
|
|
2977
2598
|
display: block;
|
|
2978
2599
|
user-select: none;
|
|
@@ -3056,10 +2677,10 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3056
2677
|
outline-offset: -1px;
|
|
3057
2678
|
}
|
|
3058
2679
|
}
|
|
3059
|
-
`,
|
|
2680
|
+
`,_t=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.current=!1,this.selected=!1,this.hasHover=!1,this.value="",this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){const t=this.getTextLabel();if(typeof this.cachedTextLabel>"u"){this.cachedTextLabel=t;return}t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){typeof this.value!="string"&&(this.value=String(this.value)),this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){const t=this.childNodes;let e="";return[...t].forEach(i=>{i.nodeType===Node.ELEMENT_NODE&&(i.hasAttribute("slot")||(e+=i.textContent)),i.nodeType===Node.TEXT_NODE&&(e+=i.textContent)}),e.trim()}render(){return _`
|
|
3060
2681
|
<div
|
|
3061
2682
|
part="base"
|
|
3062
|
-
class=${
|
|
2683
|
+
class=${O({option:!0,"option--current":this.current,"option--disabled":this.disabled,"option--selected":this.selected,"option--hover":this.hasHover})}
|
|
3063
2684
|
@mouseenter=${this.handleMouseEnter}
|
|
3064
2685
|
@mouseleave=${this.handleMouseLeave}
|
|
3065
2686
|
>
|
|
@@ -3068,11 +2689,11 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3068
2689
|
<slot part="label" class="option__label" @slotchange=${this.handleDefaultSlotChange}></slot>
|
|
3069
2690
|
<slot part="suffix" name="suffix" class="option__suffix"></slot>
|
|
3070
2691
|
</div>
|
|
3071
|
-
`}};
|
|
2692
|
+
`}};_t.styles=[M,ko];_t.dependencies={"sl-icon":gt};o([S(".option__label")],_t.prototype,"defaultSlot",2);o([E()],_t.prototype,"current",2);o([E()],_t.prototype,"selected",2);o([E()],_t.prototype,"hasHover",2);o([n({reflect:!0})],_t.prototype,"value",2);o([n({type:Boolean,reflect:!0})],_t.prototype,"disabled",2);o([k("disabled")],_t.prototype,"handleDisabledChange",1);o([k("selected")],_t.prototype,"handleSelectedChange",1);o([k("value")],_t.prototype,"handleValueChange",1);_t.define("sl-option");var Co=I`
|
|
3072
2693
|
:host {
|
|
3073
2694
|
display: contents;
|
|
3074
2695
|
}
|
|
3075
|
-
`,
|
|
2696
|
+
`,Ot=class extends D{constructor(){super(...arguments),this.attrOldValue=!1,this.charData=!1,this.charDataOldValue=!1,this.childList=!1,this.disabled=!1,this.handleMutation=t=>{this.emit("sl-mutation",{detail:{mutationList:t}})}}connectedCallback(){super.connectedCallback(),this.mutationObserver=new MutationObserver(this.handleMutation),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}startObserver(){const t=typeof this.attr=="string"&&this.attr.length>0,e=t&&this.attr!=="*"?this.attr.split(" "):void 0;try{this.mutationObserver.observe(this,{subtree:!0,childList:this.childList,attributes:t,attributeFilter:e,attributeOldValue:this.attrOldValue,characterData:this.charData,characterDataOldValue:this.charDataOldValue})}catch{}}stopObserver(){this.mutationObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}handleChange(){this.stopObserver(),this.startObserver()}render(){return _` <slot></slot> `}};Ot.styles=[M,Co];o([n({reflect:!0})],Ot.prototype,"attr",2);o([n({attribute:"attr-old-value",type:Boolean,reflect:!0})],Ot.prototype,"attrOldValue",2);o([n({attribute:"char-data",type:Boolean,reflect:!0})],Ot.prototype,"charData",2);o([n({attribute:"char-data-old-value",type:Boolean,reflect:!0})],Ot.prototype,"charDataOldValue",2);o([n({attribute:"child-list",type:Boolean,reflect:!0})],Ot.prototype,"childList",2);o([n({type:Boolean,reflect:!0})],Ot.prototype,"disabled",2);o([k("disabled")],Ot.prototype,"handleDisabledChange",1);o([k("attr",{waitUntilFirstUpdate:!0}),k("attr-old-value",{waitUntilFirstUpdate:!0}),k("char-data",{waitUntilFirstUpdate:!0}),k("char-data-old-value",{waitUntilFirstUpdate:!0}),k("childList",{waitUntilFirstUpdate:!0})],Ot.prototype,"handleChange",1);Ot.define("sl-mutation-observer");var zo=I`
|
|
3076
2697
|
:host {
|
|
3077
2698
|
--height: 1rem;
|
|
3078
2699
|
--track-color: var(--sl-color-neutral-200);
|
|
@@ -3154,10 +2775,10 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3154
2775
|
width: 50%;
|
|
3155
2776
|
}
|
|
3156
2777
|
}
|
|
3157
|
-
`,
|
|
2778
|
+
`,ge=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.value=0,this.indeterminate=!1,this.label=""}render(){return _`
|
|
3158
2779
|
<div
|
|
3159
2780
|
part="base"
|
|
3160
|
-
class=${
|
|
2781
|
+
class=${O({"progress-bar":!0,"progress-bar--indeterminate":this.indeterminate,"progress-bar--rtl":this.localize.dir()==="rtl"})}
|
|
3161
2782
|
role="progressbar"
|
|
3162
2783
|
title=${H(this.title)}
|
|
3163
2784
|
aria-label=${this.label.length>0?this.label:this.localize.term("progress")}
|
|
@@ -3166,10 +2787,10 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3166
2787
|
aria-valuenow=${this.indeterminate?0:this.value}
|
|
3167
2788
|
>
|
|
3168
2789
|
<div part="indicator" class="progress-bar__indicator" style=${dt({width:`${this.value}%`})}>
|
|
3169
|
-
${this.indeterminate?"":
|
|
2790
|
+
${this.indeterminate?"":_` <slot part="label" class="progress-bar__label"></slot> `}
|
|
3170
2791
|
</div>
|
|
3171
2792
|
</div>
|
|
3172
|
-
`}};
|
|
2793
|
+
`}};ge.styles=[M,zo];o([n({type:Number,reflect:!0})],ge.prototype,"value",2);o([n({type:Boolean,reflect:!0})],ge.prototype,"indeterminate",2);o([n()],ge.prototype,"label",2);ge.define("sl-progress-bar");var $o=I`
|
|
3173
2794
|
:host {
|
|
3174
2795
|
--submenu-offset: -2px;
|
|
3175
2796
|
|
|
@@ -3325,13 +2946,13 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3325
2946
|
* @license
|
|
3326
2947
|
* Copyright 2017 Google LLC
|
|
3327
2948
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3328
|
-
*/const
|
|
2949
|
+
*/const ue=(t,e)=>{const i=t._$AN;if(i===void 0)return!1;for(const s of i)s._$AO?.(e,!1),ue(s,e);return!0},Te=t=>{let e,i;do{if((e=t._$AM)===void 0)break;i=e._$AN,i.delete(t),t=e}while(i?.size===0)},Hi=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(i===void 0)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),To(e)}};function So(t){this._$AN!==void 0?(Te(this),this._$AM=t,Hi(this)):this._$AM=t}function Ao(t,e=!1,i=0){const s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(e)if(Array.isArray(s))for(let a=i;a<s.length;a++)ue(s[a],!1),Te(s[a]);else s!=null&&(ue(s,!1),Te(s));else ue(this,t)}const To=t=>{t.type==Ze.CHILD&&(t._$AP??=Ao,t._$AQ??=So)};class Eo extends Qe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,i,s){super._$AT(e,i,s),Hi(this),this.isConnected=e._$AU}_$AO(e,i=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),i&&(ue(this,e),Te(this))}setValue(e){if(Ji(this._$Ct))this._$Ct._$AI(e,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=e,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}/**
|
|
3329
2950
|
* @license
|
|
3330
2951
|
* Copyright 2020 Google LLC
|
|
3331
2952
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3332
|
-
*/const
|
|
2953
|
+
*/const Do=()=>new Lo;class Lo{}const He=new WeakMap,Oo=Je(class extends Eo{render(t){return Ce}update(t,[e]){const i=e!==this.Y;return i&&this.Y!==void 0&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.Y=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),Ce}rt(t){if(typeof this.Y=="function"){const e=this.ht??globalThis;let i=He.get(e);i===void 0&&(i=new WeakMap,He.set(e,i)),i.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),i.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){return typeof this.Y=="function"?He.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Io=class{constructor(t,e,i){this.popupRef=Do(),this.enableSubmenuTimer=-1,this.isConnected=!1,this.isPopupConnected=!1,this.skidding=0,this.submenuOpenDelay=100,this.handleMouseMove=s=>{this.host.style.setProperty("--safe-triangle-cursor-x",`${s.clientX}px`),this.host.style.setProperty("--safe-triangle-cursor-y",`${s.clientY}px`)},this.handleMouseOver=()=>{this.hasSlotController.test("submenu")&&this.enableSubmenu()},this.handleKeyDown=s=>{switch(s.key){case"Escape":case"Tab":this.disableSubmenu();break;case"ArrowLeft":s.target!==this.host&&(s.preventDefault(),s.stopPropagation(),this.host.focus(),this.disableSubmenu());break;case"ArrowRight":case"Enter":case" ":this.handleSubmenuEntry(s);break}},this.handleClick=s=>{var r;s.target===this.host?(s.preventDefault(),s.stopPropagation()):s.target instanceof Element&&(s.target.tagName==="sl-menu-item"||(r=s.target.role)!=null&&r.startsWith("menuitem"))&&this.disableSubmenu()},this.handleFocusOut=s=>{s.relatedTarget&&s.relatedTarget instanceof Element&&this.host.contains(s.relatedTarget)||this.disableSubmenu()},this.handlePopupMouseover=s=>{s.stopPropagation()},this.handlePopupReposition=()=>{const s=this.host.renderRoot.querySelector("slot[name='submenu']"),r=s?.assignedElements({flatten:!0}).filter(g=>g.localName==="sl-menu")[0],a=this.localize.dir()==="rtl";if(!r)return;const{left:l,top:u,width:c,height:d}=r.getBoundingClientRect();this.host.style.setProperty("--safe-triangle-submenu-start-x",`${a?l+c:l}px`),this.host.style.setProperty("--safe-triangle-submenu-start-y",`${u}px`),this.host.style.setProperty("--safe-triangle-submenu-end-x",`${a?l+c:l}px`),this.host.style.setProperty("--safe-triangle-submenu-end-y",`${u+d}px`)},(this.host=t).addController(this),this.hasSlotController=e,this.localize=i}hostConnected(){this.hasSlotController.test("submenu")&&!this.host.disabled&&this.addListeners()}hostDisconnected(){this.removeListeners()}hostUpdated(){this.hasSlotController.test("submenu")&&!this.host.disabled?(this.addListeners(),this.updateSkidding()):this.removeListeners()}addListeners(){this.isConnected||(this.host.addEventListener("mousemove",this.handleMouseMove),this.host.addEventListener("mouseover",this.handleMouseOver),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick),this.host.addEventListener("focusout",this.handleFocusOut),this.isConnected=!0),this.isPopupConnected||this.popupRef.value&&(this.popupRef.value.addEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.addEventListener("sl-reposition",this.handlePopupReposition),this.isPopupConnected=!0)}removeListeners(){this.isConnected&&(this.host.removeEventListener("mousemove",this.handleMouseMove),this.host.removeEventListener("mouseover",this.handleMouseOver),this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick),this.host.removeEventListener("focusout",this.handleFocusOut),this.isConnected=!1),this.isPopupConnected&&this.popupRef.value&&(this.popupRef.value.removeEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.removeEventListener("sl-reposition",this.handlePopupReposition),this.isPopupConnected=!1)}handleSubmenuEntry(t){const e=this.host.renderRoot.querySelector("slot[name='submenu']");if(!e){console.error("Cannot activate a submenu if no corresponding menuitem can be found.",this);return}let i=null;for(const s of e.assignedElements())if(i=s.querySelectorAll("sl-menu-item, [role^='menuitem']"),i.length!==0)break;if(!(!i||i.length===0)){i[0].setAttribute("tabindex","0");for(let s=1;s!==i.length;++s)i[s].setAttribute("tabindex","-1");this.popupRef.value&&(t.preventDefault(),t.stopPropagation(),this.popupRef.value.active?i[0]instanceof HTMLElement&&i[0].focus():(this.enableSubmenu(!1),this.host.updateComplete.then(()=>{i[0]instanceof HTMLElement&&i[0].focus()}),this.host.requestUpdate()))}}setSubmenuState(t){this.popupRef.value&&this.popupRef.value.active!==t&&(this.popupRef.value.active=t,this.host.requestUpdate())}enableSubmenu(t=!0){t?(window.clearTimeout(this.enableSubmenuTimer),this.enableSubmenuTimer=window.setTimeout(()=>{this.setSubmenuState(!0)},this.submenuOpenDelay)):this.setSubmenuState(!0)}disableSubmenu(){window.clearTimeout(this.enableSubmenuTimer),this.setSubmenuState(!1)}updateSkidding(){var t;if(!((t=this.host.parentElement)!=null&&t.computedStyleMap))return;const e=this.host.parentElement.computedStyleMap(),s=["padding-top","border-top-width","margin-top"].reduce((r,a)=>{var l;const u=(l=e.get(a))!=null?l:new CSSUnitValue(0,"px"),d=(u instanceof CSSUnitValue?u:new CSSUnitValue(0,"px")).to("px");return r-d.value},0);this.skidding=s}isExpanded(){return this.popupRef.value?this.popupRef.value.active:!1}renderSubmenu(){const t=this.localize.dir()==="ltr";return this.isConnected?_`
|
|
3333
2954
|
<sl-popup
|
|
3334
|
-
${
|
|
2955
|
+
${Oo(this.popupRef)}
|
|
3335
2956
|
placement=${t?"right-start":"left-start"}
|
|
3336
2957
|
anchor="anchor"
|
|
3337
2958
|
flip
|
|
@@ -3343,11 +2964,11 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3343
2964
|
>
|
|
3344
2965
|
<slot name="submenu"></slot>
|
|
3345
2966
|
</sl-popup>
|
|
3346
|
-
`:
|
|
2967
|
+
`:_` <slot name="submenu" hidden></slot> `}},vt=class extends D{constructor(){super(...arguments),this.type="normal",this.checked=!1,this.value="",this.loading=!1,this.disabled=!1,this.localize=new N(this),this.hasSlotController=new Rt(this,"submenu"),this.submenuController=new Io(this,this.hasSlotController,this.localize),this.handleHostClick=t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())},this.handleMouseOver=t=>{this.focus(),t.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleHostClick),this.addEventListener("mouseover",this.handleMouseOver)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick),this.removeEventListener("mouseover",this.handleMouseOver)}handleDefaultSlotChange(){const t=this.getTextLabel();if(typeof this.cachedTextLabel>"u"){this.cachedTextLabel=t;return}t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleCheckedChange(){if(this.checked&&this.type!=="checkbox"){this.checked=!1,console.error('The checked attribute can only be used on menu items with type="checkbox"',this);return}this.type==="checkbox"?this.setAttribute("aria-checked",this.checked?"true":"false"):this.removeAttribute("aria-checked")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleTypeChange(){this.type==="checkbox"?(this.setAttribute("role","menuitemcheckbox"),this.setAttribute("aria-checked",this.checked?"true":"false")):(this.setAttribute("role","menuitem"),this.removeAttribute("aria-checked"))}getTextLabel(){return ts(this.defaultSlot)}isSubmenu(){return this.hasSlotController.test("submenu")}render(){const t=this.localize.dir()==="rtl",e=this.submenuController.isExpanded();return _`
|
|
3347
2968
|
<div
|
|
3348
2969
|
id="anchor"
|
|
3349
2970
|
part="base"
|
|
3350
|
-
class=${
|
|
2971
|
+
class=${O({"menu-item":!0,"menu-item--rtl":t,"menu-item--checked":this.checked,"menu-item--disabled":this.disabled,"menu-item--loading":this.loading,"menu-item--has-submenu":this.isSubmenu(),"menu-item--submenu-expanded":e})}
|
|
3351
2972
|
?aria-haspopup="${this.isSubmenu()}"
|
|
3352
2973
|
?aria-expanded="${!!e}"
|
|
3353
2974
|
>
|
|
@@ -3366,9 +2987,9 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3366
2987
|
</span>
|
|
3367
2988
|
|
|
3368
2989
|
${this.submenuController.renderSubmenu()}
|
|
3369
|
-
${this.loading?
|
|
2990
|
+
${this.loading?_` <sl-spinner part="spinner" exportparts="base:spinner__base"></sl-spinner> `:""}
|
|
3370
2991
|
</div>
|
|
3371
|
-
`}};
|
|
2992
|
+
`}};vt.styles=[M,$o];vt.dependencies={"sl-icon":gt,"sl-popup":B,"sl-spinner":ti};o([S("slot:not([name])")],vt.prototype,"defaultSlot",2);o([S(".menu-item")],vt.prototype,"menuItem",2);o([n()],vt.prototype,"type",2);o([n({type:Boolean,reflect:!0})],vt.prototype,"checked",2);o([n()],vt.prototype,"value",2);o([n({type:Boolean,reflect:!0})],vt.prototype,"loading",2);o([n({type:Boolean,reflect:!0})],vt.prototype,"disabled",2);o([k("checked")],vt.prototype,"handleCheckedChange",1);o([k("disabled")],vt.prototype,"handleDisabledChange",1);o([k("type")],vt.prototype,"handleTypeChange",1);vt.define("sl-menu-item");B.define("sl-popup");var Mo=I`
|
|
3372
2993
|
:host {
|
|
3373
2994
|
display: block;
|
|
3374
2995
|
}
|
|
@@ -3385,7 +3006,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3385
3006
|
user-select: none;
|
|
3386
3007
|
-webkit-user-select: none;
|
|
3387
3008
|
}
|
|
3388
|
-
`,
|
|
3009
|
+
`,Ni=class extends D{render(){return _` <slot part="base" class="menu-label"></slot> `}};Ni.styles=[M,Mo];Ni.define("sl-menu-label");ei.define("sl-icon-button");var Po=I`
|
|
3389
3010
|
:host {
|
|
3390
3011
|
--divider-width: 2px;
|
|
3391
3012
|
--handle-size: 2.5rem;
|
|
@@ -3456,11 +3077,11 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3456
3077
|
outline: var(--sl-focus-ring);
|
|
3457
3078
|
outline-offset: var(--sl-focus-ring-offset);
|
|
3458
3079
|
}
|
|
3459
|
-
`,
|
|
3080
|
+
`,Qt=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.position=50}handleDrag(t){const{width:e}=this.base.getBoundingClientRect(),i=this.localize.dir()==="rtl";t.preventDefault(),he(this.base,{onMove:s=>{this.position=parseFloat(j(s/e*100,0,100).toFixed(2)),i&&(this.position=100-this.position)},initialEvent:t})}handleKeyDown(t){const e=this.localize.dir()==="ltr",i=this.localize.dir()==="rtl";if(["ArrowLeft","ArrowRight","Home","End"].includes(t.key)){const s=t.shiftKey?10:1;let r=this.position;t.preventDefault(),(e&&t.key==="ArrowLeft"||i&&t.key==="ArrowRight")&&(r-=s),(e&&t.key==="ArrowRight"||i&&t.key==="ArrowLeft")&&(r+=s),t.key==="Home"&&(r=0),t.key==="End"&&(r=100),r=j(r,0,100),this.position=r}}handlePositionChange(){this.emit("sl-change")}render(){const t=this.localize.dir()==="rtl";return _`
|
|
3460
3081
|
<div
|
|
3461
3082
|
part="base"
|
|
3462
3083
|
id="image-comparer"
|
|
3463
|
-
class=${
|
|
3084
|
+
class=${O({"image-comparer":!0,"image-comparer--rtl":t})}
|
|
3464
3085
|
@keydown=${this.handleKeyDown}
|
|
3465
3086
|
>
|
|
3466
3087
|
<div class="image-comparer__image">
|
|
@@ -3500,11 +3121,11 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3500
3121
|
</div>
|
|
3501
3122
|
</div>
|
|
3502
3123
|
</div>
|
|
3503
|
-
`}};
|
|
3124
|
+
`}};Qt.styles=[M,Po];Qt.scopedElement={"sl-icon":gt};o([S(".image-comparer")],Qt.prototype,"base",2);o([S(".image-comparer__handle")],Qt.prototype,"handle",2);o([n({type:Number,reflect:!0})],Qt.prototype,"position",2);o([k("position",{waitUntilFirstUpdate:!0})],Qt.prototype,"handlePositionChange",1);Qt.define("sl-image-comparer");var Ro=I`
|
|
3504
3125
|
:host {
|
|
3505
3126
|
display: block;
|
|
3506
3127
|
}
|
|
3507
|
-
`,
|
|
3128
|
+
`,Ne=new Map;function Fo(t,e="cors"){const i=Ne.get(t);if(i!==void 0)return Promise.resolve(i);const s=fetch(t,{mode:e}).then(async r=>{const a={ok:r.ok,status:r.status,html:await r.text()};return Ne.set(t,a),a});return Ne.set(t,s),s}var le=class extends D{constructor(){super(...arguments),this.mode="cors",this.allowScripts=!1}executeScript(t){const e=document.createElement("script");[...t.attributes].forEach(i=>e.setAttribute(i.name,i.value)),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{const t=this.src,e=await Fo(t,this.mode);if(t!==this.src)return;if(!e.ok){this.emit("sl-error",{detail:{status:e.status}});return}this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(i=>this.executeScript(i)),this.emit("sl-load")}catch{this.emit("sl-error",{detail:{status:-1}})}}render(){return _`<slot></slot>`}};le.styles=[M,Ro];o([n()],le.prototype,"src",2);o([n()],le.prototype,"mode",2);o([n({attribute:"allow-scripts",type:Boolean})],le.prototype,"allowScripts",2);o([k("src")],le.prototype,"handleSrcChange",1);le.define("sl-include");var Vo=I`
|
|
3508
3129
|
:host {
|
|
3509
3130
|
display: inline-block;
|
|
3510
3131
|
}
|
|
@@ -3552,7 +3173,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3552
3173
|
max-width: var(--auto-size-available-width) !important;
|
|
3553
3174
|
max-height: var(--auto-size-available-height) !important;
|
|
3554
3175
|
}
|
|
3555
|
-
`,ot=class extends
|
|
3176
|
+
`,ot=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.open=!1,this.placement="bottom-start",this.disabled=!1,this.stayOpenOnSelect=!1,this.distance=0,this.skidding=0,this.hoist=!1,this.sync=void 0,this.handleKeyDown=t=>{this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())},this.handleDocumentKeyDown=t=>{var e;if(t.key==="Escape"&&this.open&&!this.closeWatcher){t.stopPropagation(),this.focusOnTrigger(),this.hide();return}if(t.key==="Tab"){if(this.open&&((e=document.activeElement)==null?void 0:e.tagName.toLowerCase())==="sl-menu-item"){t.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{var i,s,r;const a=((i=this.containingElement)==null?void 0:i.getRootNode())instanceof ShadowRoot?(r=(s=document.activeElement)==null?void 0:s.shadowRoot)==null?void 0:r.activeElement:document.activeElement;(!this.containingElement||a?.closest(this.containingElement.tagName.toLowerCase())!==this.containingElement)&&this.hide()})}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()},this.handlePanelSelect=t=>{const e=t.target;!this.stayOpenOnSelect&&e.tagName.toLowerCase()==="sl-menu"&&(this.hide(),this.focusOnTrigger())}}connectedCallback(){super.connectedCallback(),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}focusOnTrigger(){const t=this.trigger.assignedElements({flatten:!0})[0];typeof t?.focus=="function"&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="sl-menu")}handleTriggerClick(){this.open?this.hide():(this.show(),this.focusOnTrigger())}async handleTriggerKeyDown(t){if([" ","Enter"].includes(t.key)){t.preventDefault(),this.handleTriggerClick();return}const e=this.getMenu();if(e){const i=e.getAllItems(),s=i[0],r=i[i.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||(this.show(),await this.updateComplete),i.length>0&&this.updateComplete.then(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(e.setCurrentItem(s),s.focus()),(t.key==="ArrowUp"||t.key==="End")&&(e.setCurrentItem(r),r.focus())}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}updateAccessibleTrigger(){const e=this.trigger.assignedElements({flatten:!0}).find(s=>as(s).start);let i;if(e){switch(e.tagName.toLowerCase()){case"sl-button":case"sl-icon-button":i=e.button;break;default:i=e}i.setAttribute("aria-haspopup","true"),i.setAttribute("aria-expanded",this.open?"true":"false")}}async show(){if(!this.open)return this.open=!0,zt(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,zt(this,"sl-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){var t;this.panel.addEventListener("sl-select",this.handlePanelSelect),"CloseWatcher"in window?((t=this.closeWatcher)==null||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide(),this.focusOnTrigger()}):this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){var t;this.panel&&(this.panel.removeEventListener("sl-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown),(t=this.closeWatcher)==null||t.destroy()}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("sl-show"),this.addOpenListeners(),await ht(this),this.panel.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=et(this,"dropdown.show",{dir:this.localize.dir()});await ct(this.popup.popup,t,e),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),await ht(this);const{keyframes:t,options:e}=et(this,"dropdown.hide",{dir:this.localize.dir()});await ct(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sl-after-hide")}}render(){return _`
|
|
3556
3177
|
<sl-popup
|
|
3557
3178
|
part="base"
|
|
3558
3179
|
id="dropdown"
|
|
@@ -3565,7 +3186,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3565
3186
|
auto-size="vertical"
|
|
3566
3187
|
auto-size-padding="10"
|
|
3567
3188
|
sync=${H(this.sync?this.sync:void 0)}
|
|
3568
|
-
class=${
|
|
3189
|
+
class=${O({dropdown:!0,"dropdown--open":this.open})}
|
|
3569
3190
|
>
|
|
3570
3191
|
<slot
|
|
3571
3192
|
name="trigger"
|
|
@@ -3582,11 +3203,11 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3582
3203
|
<slot part="panel" class="dropdown__panel"></slot>
|
|
3583
3204
|
</div>
|
|
3584
3205
|
</sl-popup>
|
|
3585
|
-
`}};ot.styles=[
|
|
3206
|
+
`}};ot.styles=[M,Vo];ot.dependencies={"sl-popup":B};o([S(".dropdown")],ot.prototype,"popup",2);o([S(".dropdown__trigger")],ot.prototype,"trigger",2);o([S(".dropdown__panel")],ot.prototype,"panel",2);o([n({type:Boolean,reflect:!0})],ot.prototype,"open",2);o([n({reflect:!0})],ot.prototype,"placement",2);o([n({type:Boolean,reflect:!0})],ot.prototype,"disabled",2);o([n({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],ot.prototype,"stayOpenOnSelect",2);o([n({attribute:!1})],ot.prototype,"containingElement",2);o([n({type:Number})],ot.prototype,"distance",2);o([n({type:Number})],ot.prototype,"skidding",2);o([n({type:Boolean})],ot.prototype,"hoist",2);o([n({reflect:!0})],ot.prototype,"sync",2);o([k("open",{waitUntilFirstUpdate:!0})],ot.prototype,"handleOpenChange",1);U("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});U("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});ot.define("sl-dropdown");var yt=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.date=new Date,this.hourFormat="auto"}render(){const t=new Date(this.date),e=this.hourFormat==="auto"?void 0:this.hourFormat==="12";if(!isNaN(t.getMilliseconds()))return _`
|
|
3586
3207
|
<time datetime=${t.toISOString()}>
|
|
3587
3208
|
${this.localize.date(t,{weekday:this.weekday,era:this.era,year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,timeZoneName:this.timeZoneName,timeZone:this.timeZone,hour12:e})}
|
|
3588
3209
|
</time>
|
|
3589
|
-
`}};o([n()],
|
|
3210
|
+
`}};o([n()],yt.prototype,"date",2);o([n()],yt.prototype,"weekday",2);o([n()],yt.prototype,"era",2);o([n()],yt.prototype,"year",2);o([n()],yt.prototype,"month",2);o([n()],yt.prototype,"day",2);o([n()],yt.prototype,"hour",2);o([n()],yt.prototype,"minute",2);o([n()],yt.prototype,"second",2);o([n({attribute:"time-zone-name"})],yt.prototype,"timeZoneName",2);o([n({attribute:"time-zone"})],yt.prototype,"timeZone",2);o([n({attribute:"hour-format"})],yt.prototype,"hourFormat",2);yt.define("sl-format-date");var At=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.value=0,this.type="decimal",this.noGrouping=!1,this.currency="USD",this.currencyDisplay="symbol"}render(){return isNaN(this.value)?"":this.localize.number(this.value,{style:this.type,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:!this.noGrouping,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits})}};o([n({type:Number})],At.prototype,"value",2);o([n()],At.prototype,"type",2);o([n({attribute:"no-grouping",type:Boolean})],At.prototype,"noGrouping",2);o([n()],At.prototype,"currency",2);o([n({attribute:"currency-display"})],At.prototype,"currencyDisplay",2);o([n({attribute:"minimum-integer-digits",type:Number})],At.prototype,"minimumIntegerDigits",2);o([n({attribute:"minimum-fraction-digits",type:Number})],At.prototype,"minimumFractionDigits",2);o([n({attribute:"maximum-fraction-digits",type:Number})],At.prototype,"maximumFractionDigits",2);o([n({attribute:"minimum-significant-digits",type:Number})],At.prototype,"minimumSignificantDigits",2);o([n({attribute:"maximum-significant-digits",type:Number})],At.prototype,"maximumSignificantDigits",2);At.define("sl-format-number");var Bo=I`
|
|
3590
3211
|
:host {
|
|
3591
3212
|
--error-color: var(--sl-color-danger-600);
|
|
3592
3213
|
--success-color: var(--sl-color-success-600);
|
|
@@ -3629,9 +3250,9 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3629
3250
|
slot {
|
|
3630
3251
|
display: inline-flex;
|
|
3631
3252
|
}
|
|
3632
|
-
`,J=class extends
|
|
3253
|
+
`,J=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.isCopying=!1,this.status="rest",this.value="",this.from="",this.disabled=!1,this.copyLabel="",this.successLabel="",this.errorLabel="",this.feedbackDuration=1e3,this.tooltipPlacement="top",this.hoist=!1}async handleCopy(){if(this.disabled||this.isCopying)return;this.isCopying=!0;let t=this.value;if(this.from){const e=this.getRootNode(),i=this.from.includes("."),s=this.from.includes("[")&&this.from.includes("]");let r=this.from,a="";i?[r,a]=this.from.trim().split("."):s&&([r,a]=this.from.trim().replace(/\]$/,"").split("["));const l="getElementById"in e?e.getElementById(r):null;l?s?t=l.getAttribute(a)||"":i?t=l[a]||"":t=l.textContent||"":(this.showStatus("error"),this.emit("sl-error"))}if(!t)this.showStatus("error"),this.emit("sl-error");else try{await navigator.clipboard.writeText(t),this.showStatus("success"),this.emit("sl-copy",{detail:{value:t}})}catch{this.showStatus("error"),this.emit("sl-error")}}async showStatus(t){const e=this.copyLabel||this.localize.term("copy"),i=this.successLabel||this.localize.term("copied"),s=this.errorLabel||this.localize.term("error"),r=t==="success"?this.successIcon:this.errorIcon,a=et(this,"copy.in",{dir:"ltr"}),l=et(this,"copy.out",{dir:"ltr"});this.tooltip.content=t==="success"?i:s,await this.copyIcon.animate(l.keyframes,l.options).finished,this.copyIcon.hidden=!0,this.status=t,r.hidden=!1,await r.animate(a.keyframes,a.options).finished,setTimeout(async()=>{await r.animate(l.keyframes,l.options).finished,r.hidden=!0,this.status="rest",this.copyIcon.hidden=!1,await this.copyIcon.animate(a.keyframes,a.options).finished,this.tooltip.content=e,this.isCopying=!1},this.feedbackDuration)}render(){const t=this.copyLabel||this.localize.term("copy");return _`
|
|
3633
3254
|
<sl-tooltip
|
|
3634
|
-
class=${
|
|
3255
|
+
class=${O({"copy-button":!0,"copy-button--success":this.status==="success","copy-button--error":this.status==="error"})}
|
|
3635
3256
|
content=${t}
|
|
3636
3257
|
placement=${this.tooltipPlacement}
|
|
3637
3258
|
?disabled=${this.disabled}
|
|
@@ -3661,7 +3282,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3661
3282
|
</slot>
|
|
3662
3283
|
</button>
|
|
3663
3284
|
</sl-tooltip>
|
|
3664
|
-
`}};J.styles=[
|
|
3285
|
+
`}};J.styles=[M,Bo];J.dependencies={"sl-icon":gt,"sl-tooltip":Z};o([S('slot[name="copy-icon"]')],J.prototype,"copyIcon",2);o([S('slot[name="success-icon"]')],J.prototype,"successIcon",2);o([S('slot[name="error-icon"]')],J.prototype,"errorIcon",2);o([S("sl-tooltip")],J.prototype,"tooltip",2);o([E()],J.prototype,"isCopying",2);o([E()],J.prototype,"status",2);o([n()],J.prototype,"value",2);o([n()],J.prototype,"from",2);o([n({type:Boolean,reflect:!0})],J.prototype,"disabled",2);o([n({attribute:"copy-label"})],J.prototype,"copyLabel",2);o([n({attribute:"success-label"})],J.prototype,"successLabel",2);o([n({attribute:"error-label"})],J.prototype,"errorLabel",2);o([n({attribute:"feedback-duration",type:Number})],J.prototype,"feedbackDuration",2);o([n({attribute:"tooltip-placement"})],J.prototype,"tooltipPlacement",2);o([n({type:Boolean})],J.prototype,"hoist",2);U("copy.in",{keyframes:[{scale:".25",opacity:".25"},{scale:"1",opacity:"1"}],options:{duration:100}});U("copy.out",{keyframes:[{scale:"1",opacity:"1"},{scale:".25",opacity:"0"}],options:{duration:100}});J.define("sl-copy-button");var Ho=I`
|
|
3665
3286
|
:host {
|
|
3666
3287
|
--size: 25rem;
|
|
3667
3288
|
--header-spacing: var(--sl-spacing-large);
|
|
@@ -3814,10 +3435,10 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3814
3435
|
border: solid 1px var(--sl-color-neutral-0);
|
|
3815
3436
|
}
|
|
3816
3437
|
}
|
|
3817
|
-
`;function
|
|
3438
|
+
`;function yi(t){return t.charAt(0).toUpperCase()+t.slice(1)}var wt=class extends D{constructor(){super(...arguments),this.hasSlotController=new Rt(this,"footer"),this.localize=new N(this),this.modal=new ns(this),this.open=!1,this.label="",this.placement="end",this.contained=!1,this.noHeader=!1,this.handleDocumentKeyDown=t=>{this.contained||t.key==="Escape"&&this.modal.isActive()&&this.open&&(t.stopImmediatePropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),Pe(this)))}disconnectedCallback(){var t;super.disconnectedCallback(),Re(this),(t=this.closeWatcher)==null||t.destroy()}requestClose(t){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const i=et(this,"drawer.denyClose",{dir:this.localize.dir()});ct(this.panel,i.keyframes,i.options);return}this.hide()}addOpenListeners(){var t;"CloseWatcher"in window?((t=this.closeWatcher)==null||t.destroy(),this.contained||(this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard"))):document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){var t;document.removeEventListener("keydown",this.handleDocumentKeyDown),(t=this.closeWatcher)==null||t.destroy()}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),Pe(this));const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([ht(this.drawer),ht(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame(()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")});const e=et(this,`drawer.show${yi(this.placement)}`,{dir:this.localize.dir()}),i=et(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([ct(this.panel,e.keyframes,e.options),ct(this.overlay,i.keyframes,i.options)]),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),Re(this)),await Promise.all([ht(this.drawer),ht(this.overlay)]);const t=et(this,`drawer.hide${yi(this.placement)}`,{dir:this.localize.dir()}),e=et(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([ct(this.overlay,e.keyframes,e.options).then(()=>{this.overlay.hidden=!0}),ct(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;const i=this.originalTrigger;typeof i?.focus=="function"&&setTimeout(()=>i.focus()),this.emit("sl-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),Pe(this)),this.open&&this.contained&&(this.modal.deactivate(),Re(this))}async show(){if(!this.open)return this.open=!0,zt(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,zt(this,"sl-after-hide")}render(){return _`
|
|
3818
3439
|
<div
|
|
3819
3440
|
part="base"
|
|
3820
|
-
class=${
|
|
3441
|
+
class=${O({drawer:!0,"drawer--open":this.open,"drawer--top":this.placement==="top","drawer--end":this.placement==="end","drawer--bottom":this.placement==="bottom","drawer--start":this.placement==="start","drawer--contained":this.contained,"drawer--fixed":!this.contained,"drawer--rtl":this.localize.dir()==="rtl","drawer--has-footer":this.hasSlotController.test("footer")})}
|
|
3821
3442
|
>
|
|
3822
3443
|
<div part="overlay" class="drawer__overlay" @click=${()=>this.requestClose("overlay")} tabindex="-1"></div>
|
|
3823
3444
|
|
|
@@ -3831,7 +3452,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3831
3452
|
aria-labelledby=${H(this.noHeader?void 0:"title")}
|
|
3832
3453
|
tabindex="0"
|
|
3833
3454
|
>
|
|
3834
|
-
${this.noHeader?"":
|
|
3455
|
+
${this.noHeader?"":_`
|
|
3835
3456
|
<header part="header" class="drawer__header">
|
|
3836
3457
|
<h2 part="title" class="drawer__title" id="title">
|
|
3837
3458
|
<!-- If there's no label, use an invisible character to prevent the header from collapsing -->
|
|
@@ -3859,7 +3480,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3859
3480
|
</footer>
|
|
3860
3481
|
</div>
|
|
3861
3482
|
</div>
|
|
3862
|
-
`}};
|
|
3483
|
+
`}};wt.styles=[M,Ho];wt.dependencies={"sl-icon-button":ei};o([S(".drawer")],wt.prototype,"drawer",2);o([S(".drawer__panel")],wt.prototype,"panel",2);o([S(".drawer__overlay")],wt.prototype,"overlay",2);o([n({type:Boolean,reflect:!0})],wt.prototype,"open",2);o([n({reflect:!0})],wt.prototype,"label",2);o([n({reflect:!0})],wt.prototype,"placement",2);o([n({type:Boolean,reflect:!0})],wt.prototype,"contained",2);o([n({attribute:"no-header",type:Boolean,reflect:!0})],wt.prototype,"noHeader",2);o([k("open",{waitUntilFirstUpdate:!0})],wt.prototype,"handleOpenChange",1);o([k("contained",{waitUntilFirstUpdate:!0})],wt.prototype,"handleNoModalChange",1);U("drawer.showTop",{keyframes:[{opacity:0,translate:"0 -100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});U("drawer.hideTop",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 -100%"}],options:{duration:250,easing:"ease"}});U("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});U("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}});U("drawer.showBottom",{keyframes:[{opacity:0,translate:"0 100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});U("drawer.hideBottom",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 100%"}],options:{duration:250,easing:"ease"}});U("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});U("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}});U("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}});U("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});U("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});wt.define("sl-drawer");var Ie=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.value=0,this.unit="byte",this.display="short"}render(){if(isNaN(this.value))return"";const t=["","kilo","mega","giga","tera"],e=["","kilo","mega","giga","tera","peta"],i=this.unit==="bit"?t:e,s=Math.max(0,Math.min(Math.floor(Math.log10(this.value)/3),i.length-1)),r=i[s]+this.unit,a=parseFloat((this.value/Math.pow(1e3,s)).toPrecision(3));return this.localize.number(a,{style:"unit",unit:r,unitDisplay:this.display})}};o([n({type:Number})],Ie.prototype,"value",2);o([n()],Ie.prototype,"unit",2);o([n()],Ie.prototype,"display",2);Ie.define("sl-format-bytes");var No=I`
|
|
3863
3484
|
:host {
|
|
3864
3485
|
display: block;
|
|
3865
3486
|
}
|
|
@@ -3941,10 +3562,10 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3941
3562
|
display: block;
|
|
3942
3563
|
padding: var(--sl-spacing-medium);
|
|
3943
3564
|
}
|
|
3944
|
-
`,
|
|
3565
|
+
`,Tt=class extends D{constructor(){super(...arguments),this.localize=new N(this),this.open=!1,this.disabled=!1}firstUpdated(){this.body.style.height=this.open?"auto":"0",this.open&&(this.details.open=!0),this.detailsObserver=new MutationObserver(t=>{for(const e of t)e.type==="attributes"&&e.attributeName==="open"&&(this.details.open?this.show():this.hide())}),this.detailsObserver.observe(this.details,{attributes:!0})}disconnectedCallback(){super.disconnectedCallback(),this.detailsObserver.disconnect()}handleSummaryClick(t){t.preventDefault(),this.disabled||(this.open?this.hide():this.show(),this.header.focus())}handleSummaryKeyDown(t){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.open?this.hide():this.show()),(t.key==="ArrowUp"||t.key==="ArrowLeft")&&(t.preventDefault(),this.hide()),(t.key==="ArrowDown"||t.key==="ArrowRight")&&(t.preventDefault(),this.show())}async handleOpenChange(){if(this.open){if(this.details.open=!0,this.emit("sl-show",{cancelable:!0}).defaultPrevented){this.open=!1,this.details.open=!1;return}await ht(this.body);const{keyframes:e,options:i}=et(this,"details.show",{dir:this.localize.dir()});await ct(this.body,ze(e,this.body.scrollHeight),i),this.body.style.height="auto",this.emit("sl-after-show")}else{if(this.emit("sl-hide",{cancelable:!0}).defaultPrevented){this.details.open=!0,this.open=!0;return}await ht(this.body);const{keyframes:e,options:i}=et(this,"details.hide",{dir:this.localize.dir()});await ct(this.body,ze(e,this.body.scrollHeight),i),this.body.style.height="auto",this.details.open=!1,this.emit("sl-after-hide")}}async show(){if(!(this.open||this.disabled))return this.open=!0,zt(this,"sl-after-show")}async hide(){if(!(!this.open||this.disabled))return this.open=!1,zt(this,"sl-after-hide")}render(){const t=this.localize.dir()==="rtl";return _`
|
|
3945
3566
|
<details
|
|
3946
3567
|
part="base"
|
|
3947
|
-
class=${
|
|
3568
|
+
class=${O({details:!0,"details--open":this.open,"details--disabled":this.disabled,"details--rtl":t})}
|
|
3948
3569
|
>
|
|
3949
3570
|
<summary
|
|
3950
3571
|
part="header"
|
|
@@ -3974,7 +3595,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3974
3595
|
<slot part="content" id="content" class="details__content"></slot>
|
|
3975
3596
|
</div>
|
|
3976
3597
|
</details>
|
|
3977
|
-
`}};
|
|
3598
|
+
`}};Tt.styles=[M,No];Tt.dependencies={"sl-icon":gt};o([S(".details")],Tt.prototype,"details",2);o([S(".details__header")],Tt.prototype,"header",2);o([S(".details__body")],Tt.prototype,"body",2);o([S(".details__expand-icon-slot")],Tt.prototype,"expandIconSlot",2);o([n({type:Boolean,reflect:!0})],Tt.prototype,"open",2);o([n()],Tt.prototype,"summary",2);o([n({type:Boolean,reflect:!0})],Tt.prototype,"disabled",2);o([k("open",{waitUntilFirstUpdate:!0})],Tt.prototype,"handleOpenChange",1);U("details.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:250,easing:"linear"}});U("details.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:250,easing:"linear"}});Tt.define("sl-details");var Uo=I`
|
|
3978
3599
|
:host {
|
|
3979
3600
|
--color: var(--sl-panel-border-color);
|
|
3980
3601
|
--width: var(--sl-panel-border-width);
|
|
@@ -3993,7 +3614,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
3993
3614
|
border-left: solid var(--width) var(--color);
|
|
3994
3615
|
margin: 0 var(--spacing);
|
|
3995
3616
|
}
|
|
3996
|
-
`,
|
|
3617
|
+
`,Me=class extends D{constructor(){super(...arguments),this.vertical=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}handleVerticalChange(){this.setAttribute("aria-orientation",this.vertical?"vertical":"horizontal")}};Me.styles=[M,Uo];o([n({type:Boolean,reflect:!0})],Me.prototype,"vertical",2);o([k("vertical")],Me.prototype,"handleVerticalChange",1);Me.define("sl-divider");G.define("sl-checkbox");var Wo=I`
|
|
3997
3618
|
:host {
|
|
3998
3619
|
--grid-width: 280px;
|
|
3999
3620
|
--grid-height: 200px;
|
|
@@ -4328,15 +3949,15 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4328
3949
|
opacity: 0.5;
|
|
4329
3950
|
cursor: not-allowed;
|
|
4330
3951
|
}
|
|
4331
|
-
`;function it(t,e){Jo(t)&&(t="100%");const i=tr(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),i&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function Ce(t){return Math.min(1,Math.max(0,t))}function Jo(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function tr(t){return typeof t=="string"&&t.indexOf("%")!==-1}function Xi(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function ze(t){return Number(t)<=1?`${Number(t)*100}%`:t}function Xt(t){return t.length===1?"0"+t:String(t)}function er(t,e,i){return{r:it(t,255)*255,g:it(e,255)*255,b:it(i,255)*255}}function Ci(t,e,i){t=it(t,255),e=it(e,255),i=it(i,255);const s=Math.max(t,e,i),r=Math.min(t,e,i);let a=0,l=0;const d=(s+r)/2;if(s===r)l=0,a=0;else{const c=s-r;switch(l=d>.5?c/(2-s-r):c/(s+r),s){case t:a=(e-i)/c+(e<i?6:0);break;case e:a=(i-t)/c+2;break;case i:a=(t-e)/c+4;break}a/=6}return{h:a,s:l,l:d}}function Ke(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*(6*i):i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function ir(t,e,i){let s,r,a;if(t=it(t,360),e=it(e,100),i=it(i,100),e===0)r=i,a=i,s=i;else{const l=i<.5?i*(1+e):i+e-i*e,d=2*i-l;s=Ke(d,l,t+1/3),r=Ke(d,l,t),a=Ke(d,l,t-1/3)}return{r:s*255,g:r*255,b:a*255}}function zi(t,e,i){t=it(t,255),e=it(e,255),i=it(i,255);const s=Math.max(t,e,i),r=Math.min(t,e,i);let a=0;const l=s,d=s-r,c=s===0?0:d/s;if(s===r)a=0;else{switch(s){case t:a=(e-i)/d+(e<i?6:0);break;case e:a=(i-t)/d+2;break;case i:a=(t-e)/d+4;break}a/=6}return{h:a,s:c,v:l}}function sr(t,e,i){t=it(t,360)*6,e=it(e,100),i=it(i,100);const s=Math.floor(t),r=t-s,a=i*(1-e),l=i*(1-r*e),d=i*(1-(1-r)*e),c=s%6,h=[i,l,a,a,d,i][c],g=[d,i,i,l,a,a][c],u=[a,a,d,i,i,l][c];return{r:h*255,g:g*255,b:u*255}}function $i(t,e,i,s){const r=[Xt(Math.round(t).toString(16)),Xt(Math.round(e).toString(16)),Xt(Math.round(i).toString(16))];return s&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function or(t,e,i,s,r){const a=[Xt(Math.round(t).toString(16)),Xt(Math.round(e).toString(16)),Xt(Math.round(i).toString(16)),Xt(rr(s))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function rr(t){return Math.round(parseFloat(t)*255).toString(16)}function Si(t){return pt(t)/255}function pt(t){return parseInt(t,16)}function ar(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}const ei={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function nr(t){let e={r:0,g:0,b:0},i=1,s=null,r=null,a=null,l=!1,d=!1;return typeof t=="string"&&(t=dr(t)),typeof t=="object"&&(Rt(t.r)&&Rt(t.g)&&Rt(t.b)?(e=er(t.r,t.g,t.b),l=!0,d=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Rt(t.h)&&Rt(t.s)&&Rt(t.v)?(s=ze(t.s),r=ze(t.v),e=sr(t.h,s,r),l=!0,d="hsv"):Rt(t.h)&&Rt(t.s)&&Rt(t.l)&&(s=ze(t.s),a=ze(t.l),e=ir(t.h,s,a),l=!0,d="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(i=t.a)),i=Xi(i),{ok:l,format:t.format||d,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:i}}const lr="[-\\+]?\\d+%?",cr="[-\\+]?\\d*\\.\\d+%?",Ht="(?:"+cr+")|(?:"+lr+")",Xe="[\\s|\\(]+("+Ht+")[,|\\s]+("+Ht+")[,|\\s]+("+Ht+")\\s*\\)?",je="[\\s|\\(]+("+Ht+")[,|\\s]+("+Ht+")[,|\\s]+("+Ht+")[,|\\s]+("+Ht+")\\s*\\)?",zt={CSS_UNIT:new RegExp(Ht),rgb:new RegExp("rgb"+Xe),rgba:new RegExp("rgba"+je),hsl:new RegExp("hsl"+Xe),hsla:new RegExp("hsla"+je),hsv:new RegExp("hsv"+Xe),hsva:new RegExp("hsva"+je),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function dr(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;let e=!1;if(ei[t])t=ei[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let i=zt.rgb.exec(t);return i?{r:i[1],g:i[2],b:i[3]}:(i=zt.rgba.exec(t),i?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=zt.hsl.exec(t),i?{h:i[1],s:i[2],l:i[3]}:(i=zt.hsla.exec(t),i?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=zt.hsv.exec(t),i?{h:i[1],s:i[2],v:i[3]}:(i=zt.hsva.exec(t),i?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=zt.hex8.exec(t),i?{r:pt(i[1]),g:pt(i[2]),b:pt(i[3]),a:Si(i[4]),format:e?"name":"hex8"}:(i=zt.hex6.exec(t),i?{r:pt(i[1]),g:pt(i[2]),b:pt(i[3]),format:e?"name":"hex"}:(i=zt.hex4.exec(t),i?{r:pt(i[1]+i[1]),g:pt(i[2]+i[2]),b:pt(i[3]+i[3]),a:Si(i[4]+i[4]),format:e?"name":"hex8"}:(i=zt.hex3.exec(t),i?{r:pt(i[1]+i[1]),g:pt(i[2]+i[2]),b:pt(i[3]+i[3]),format:e?"name":"hex"}:!1)))))))))}function Rt(t){return!!zt.CSS_UNIT.exec(String(t))}class Y{constructor(e="",i={}){if(e instanceof Y)return e;typeof e=="number"&&(e=ar(e)),this.originalInput=e;const s=nr(e);this.originalInput=e,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=i.format??s.format,this.gradientType=i.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3}getLuminance(){const e=this.toRgb();let i,s,r;const a=e.r/255,l=e.g/255,d=e.b/255;return a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),l<=.03928?s=l/12.92:s=Math.pow((l+.055)/1.055,2.4),d<=.03928?r=d/12.92:r=Math.pow((d+.055)/1.055,2.4),.2126*i+.7152*s+.0722*r}getAlpha(){return this.a}setAlpha(e){return this.a=Xi(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:e}=this.toHsl();return e===0}toHsv(){const e=zi(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}}toHsvString(){const e=zi(this.r,this.g,this.b),i=Math.round(e.h*360),s=Math.round(e.s*100),r=Math.round(e.v*100);return this.a===1?`hsv(${i}, ${s}%, ${r}%)`:`hsva(${i}, ${s}%, ${r}%, ${this.roundA})`}toHsl(){const e=Ci(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}}toHslString(){const e=Ci(this.r,this.g,this.b),i=Math.round(e.h*360),s=Math.round(e.s*100),r=Math.round(e.l*100);return this.a===1?`hsl(${i}, ${s}%, ${r}%)`:`hsla(${i}, ${s}%, ${r}%, ${this.roundA})`}toHex(e=!1){return $i(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return or(this.r,this.g,this.b,this.a,e)}toHex8String(e=!1){return"#"+this.toHex8(e)}toHexShortString(e=!1){return this.a===1?this.toHexString(e):this.toHex8String(e)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const e=Math.round(this.r),i=Math.round(this.g),s=Math.round(this.b);return this.a===1?`rgb(${e}, ${i}, ${s})`:`rgba(${e}, ${i}, ${s}, ${this.roundA})`}toPercentageRgb(){const e=i=>`${Math.round(it(i,255)*100)}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){const e=i=>Math.round(it(i,255)*100);return this.a===1?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const e="#"+$i(this.r,this.g,this.b,!1);for(const[i,s]of Object.entries(ei))if(e===s)return i;return!1}toString(e){const i=!!e;e=e??this.format;let s=!1;const r=this.a<1&&this.a>=0;return!i&&r&&(e.startsWith("hex")||e==="name")?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(s=this.toRgbString()),e==="prgb"&&(s=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(s=this.toHexString()),e==="hex3"&&(s=this.toHexString(!0)),e==="hex4"&&(s=this.toHex8String(!0)),e==="hex8"&&(s=this.toHex8String()),e==="name"&&(s=this.toName()),e==="hsl"&&(s=this.toHslString()),e==="hsv"&&(s=this.toHsvString()),s||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new Y(this.toString())}lighten(e=10){const i=this.toHsl();return i.l+=e/100,i.l=Ce(i.l),new Y(i)}brighten(e=10){const i=this.toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(255*-(e/100)))),i.g=Math.max(0,Math.min(255,i.g-Math.round(255*-(e/100)))),i.b=Math.max(0,Math.min(255,i.b-Math.round(255*-(e/100)))),new Y(i)}darken(e=10){const i=this.toHsl();return i.l-=e/100,i.l=Ce(i.l),new Y(i)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){const i=this.toHsl();return i.s-=e/100,i.s=Ce(i.s),new Y(i)}saturate(e=10){const i=this.toHsl();return i.s+=e/100,i.s=Ce(i.s),new Y(i)}greyscale(){return this.desaturate(100)}spin(e){const i=this.toHsl(),s=(i.h+e)%360;return i.h=s<0?360+s:s,new Y(i)}mix(e,i=50){const s=this.toRgb(),r=new Y(e).toRgb(),a=i/100,l={r:(r.r-s.r)*a+s.r,g:(r.g-s.g)*a+s.g,b:(r.b-s.b)*a+s.b,a:(r.a-s.a)*a+s.a};return new Y(l)}analogous(e=6,i=30){const s=this.toHsl(),r=360/i,a=[this];for(s.h=(s.h-(r*e>>1)+720)%360;--e;)s.h=(s.h+r)%360,a.push(new Y(s));return a}complement(){const e=this.toHsl();return e.h=(e.h+180)%360,new Y(e)}monochromatic(e=6){const i=this.toHsv(),{h:s}=i,{s:r}=i;let{v:a}=i;const l=[],d=1/e;for(;e--;)l.push(new Y({h:s,s:r,v:a})),a=(a+d)%1;return l}splitcomplement(){const e=this.toHsl(),{h:i}=e;return[this,new Y({h:(i+72)%360,s:e.s,l:e.l}),new Y({h:(i+216)%360,s:e.s,l:e.l})]}onBackground(e){const i=this.toRgb(),s=new Y(e).toRgb(),r=i.a+s.a*(1-i.a);return new Y({r:(i.r*i.a+s.r*s.a*(1-i.a))/r,g:(i.g*i.a+s.g*s.a*(1-i.a))/r,b:(i.b*i.a+s.b*s.a*(1-i.a))/r,a:r})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){const i=this.toHsl(),{h:s}=i,r=[this],a=360/e;for(let l=1;l<e;l++)r.push(new Y({h:(s+l*a)%360,s:i.s,l:i.l}));return r}equals(e){return this.toRgbString()===new Y(e).toRgbString()}}var Ai="EyeDropper"in window,R=class extends E{constructor(){super(),this.formControlController=new Gt(this),this.isSafeValue=!1,this.localize=new N(this),this.hasFocus=!1,this.isDraggingGridHandle=!1,this.isEmpty=!1,this.inputValue="",this.hue=0,this.saturation=100,this.brightness=100,this.alpha=100,this.value="",this.defaultValue="",this.label="",this.format="hex",this.inline=!1,this.size="medium",this.noFormatToggle=!1,this.name="",this.disabled=!1,this.hoist=!1,this.opacity=!1,this.uppercase=!1,this.swatches="",this.form="",this.required=!1,this.handleFocusIn=()=>{this.hasFocus=!0,this.emit("sl-focus")},this.handleFocusOut=()=>{this.hasFocus=!1,this.emit("sl-blur")},this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut)}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.input.updateComplete.then(()=>{this.formControlController.updateValidity()})}handleCopy(){this.input.select(),document.execCommand("copy"),this.previewButton.focus(),this.previewButton.classList.add("color-picker__preview-color--copied"),this.previewButton.addEventListener("animationend",()=>{this.previewButton.classList.remove("color-picker__preview-color--copied")})}handleFormatToggle(){const t=["hex","rgb","hsl","hsv"],e=(t.indexOf(this.format)+1)%t.length;this.format=t[e],this.setColor(this.value),this.emit("sl-change"),this.emit("sl-input")}handleAlphaDrag(t){const e=this.shadowRoot.querySelector(".color-picker__slider.color-picker__alpha"),i=e.querySelector(".color-picker__slider-handle"),{width:s}=e.getBoundingClientRect();let r=this.value,a=this.value;i.focus(),t.preventDefault(),pe(e,{onMove:l=>{this.alpha=j(l/s*100,0,100),this.syncValues(),this.value!==a&&(a=this.value,this.emit("sl-input"))},onStop:()=>{this.value!==r&&(r=this.value,this.emit("sl-change"))},initialEvent:t})}handleHueDrag(t){const e=this.shadowRoot.querySelector(".color-picker__slider.color-picker__hue"),i=e.querySelector(".color-picker__slider-handle"),{width:s}=e.getBoundingClientRect();let r=this.value,a=this.value;i.focus(),t.preventDefault(),pe(e,{onMove:l=>{this.hue=j(l/s*360,0,360),this.syncValues(),this.value!==a&&(a=this.value,this.emit("sl-input"))},onStop:()=>{this.value!==r&&(r=this.value,this.emit("sl-change"))},initialEvent:t})}handleGridDrag(t){const e=this.shadowRoot.querySelector(".color-picker__grid"),i=e.querySelector(".color-picker__grid-handle"),{width:s,height:r}=e.getBoundingClientRect();let a=this.value,l=this.value;i.focus(),t.preventDefault(),this.isDraggingGridHandle=!0,pe(e,{onMove:(d,c)=>{this.saturation=j(d/s*100,0,100),this.brightness=j(100-c/r*100,0,100),this.syncValues(),this.value!==l&&(l=this.value,this.emit("sl-input"))},onStop:()=>{this.isDraggingGridHandle=!1,this.value!==a&&(a=this.value,this.emit("sl-change"))},initialEvent:t})}handleAlphaKeyDown(t){const e=t.shiftKey?10:1,i=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.alpha=j(this.alpha-e,0,100),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.alpha=j(this.alpha+e,0,100),this.syncValues()),t.key==="Home"&&(t.preventDefault(),this.alpha=0,this.syncValues()),t.key==="End"&&(t.preventDefault(),this.alpha=100,this.syncValues()),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleHueKeyDown(t){const e=t.shiftKey?10:1,i=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.hue=j(this.hue-e,0,360),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.hue=j(this.hue+e,0,360),this.syncValues()),t.key==="Home"&&(t.preventDefault(),this.hue=0,this.syncValues()),t.key==="End"&&(t.preventDefault(),this.hue=360,this.syncValues()),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleGridKeyDown(t){const e=t.shiftKey?10:1,i=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.saturation=j(this.saturation-e,0,100),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.saturation=j(this.saturation+e,0,100),this.syncValues()),t.key==="ArrowUp"&&(t.preventDefault(),this.brightness=j(this.brightness+e,0,100),this.syncValues()),t.key==="ArrowDown"&&(t.preventDefault(),this.brightness=j(this.brightness-e,0,100),this.syncValues()),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleInputChange(t){const e=t.target,i=this.value;t.stopPropagation(),this.input.value?(this.setColor(e.value),e.value=this.value):this.value="",this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleInputInput(t){this.formControlController.updateValidity(),t.stopPropagation()}handleInputKeyDown(t){if(t.key==="Enter"){const e=this.value;this.input.value?(this.setColor(this.input.value),this.input.value=this.value,this.value!==e&&(this.emit("sl-change"),this.emit("sl-input")),setTimeout(()=>this.input.select())):this.hue=0}}handleInputInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleTouchMove(t){t.preventDefault()}parseColor(t){const e=new Y(t);if(!e.isValid)return null;const i=e.toHsl(),s={h:i.h,s:i.s*100,l:i.l*100,a:i.a},r=e.toRgb(),a=e.toHexString(),l=e.toHex8String(),d=e.toHsv(),c={h:d.h,s:d.s*100,v:d.v*100,a:d.a};return{hsl:{h:s.h,s:s.s,l:s.l,string:this.setLetterCase(`hsl(${Math.round(s.h)}, ${Math.round(s.s)}%, ${Math.round(s.l)}%)`)},hsla:{h:s.h,s:s.s,l:s.l,a:s.a,string:this.setLetterCase(`hsla(${Math.round(s.h)}, ${Math.round(s.s)}%, ${Math.round(s.l)}%, ${s.a.toFixed(2).toString()})`)},hsv:{h:c.h,s:c.s,v:c.v,string:this.setLetterCase(`hsv(${Math.round(c.h)}, ${Math.round(c.s)}%, ${Math.round(c.v)}%)`)},hsva:{h:c.h,s:c.s,v:c.v,a:c.a,string:this.setLetterCase(`hsva(${Math.round(c.h)}, ${Math.round(c.s)}%, ${Math.round(c.v)}%, ${c.a.toFixed(2).toString()})`)},rgb:{r:r.r,g:r.g,b:r.b,string:this.setLetterCase(`rgb(${Math.round(r.r)}, ${Math.round(r.g)}, ${Math.round(r.b)})`)},rgba:{r:r.r,g:r.g,b:r.b,a:r.a,string:this.setLetterCase(`rgba(${Math.round(r.r)}, ${Math.round(r.g)}, ${Math.round(r.b)}, ${r.a.toFixed(2).toString()})`)},hex:this.setLetterCase(a),hexa:this.setLetterCase(l)}}setColor(t){const e=this.parseColor(t);return e===null?!1:(this.hue=e.hsva.h,this.saturation=e.hsva.s,this.brightness=e.hsva.v,this.alpha=this.opacity?e.hsva.a*100:100,this.syncValues(),!0)}setLetterCase(t){return typeof t!="string"?"":this.uppercase?t.toUpperCase():t.toLowerCase()}async syncValues(){const t=this.parseColor(`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha/100})`);t!==null&&(this.format==="hsl"?this.inputValue=this.opacity?t.hsla.string:t.hsl.string:this.format==="rgb"?this.inputValue=this.opacity?t.rgba.string:t.rgb.string:this.format==="hsv"?this.inputValue=this.opacity?t.hsva.string:t.hsv.string:this.inputValue=this.opacity?t.hexa:t.hex,this.isSafeValue=!0,this.value=this.inputValue,await this.updateComplete,this.isSafeValue=!1)}handleAfterHide(){this.previewButton.classList.remove("color-picker__preview-color--copied")}handleEyeDropper(){if(!Ai)return;new EyeDropper().open().then(e=>{const i=this.value;this.setColor(e.sRGBHex),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}).catch(()=>{})}selectSwatch(t){const e=this.value;this.disabled||(this.setColor(t),this.value!==e&&(this.emit("sl-change"),this.emit("sl-input")))}getHexString(t,e,i,s=100){const r=new Y(`hsva(${t}, ${e}%, ${i}%, ${s/100})`);return r.isValid?r.toHex8String():""}stopNestedEventPropagation(t){t.stopImmediatePropagation()}handleFormatChange(){this.syncValues()}handleOpacityChange(){this.alpha=100}handleValueChange(t,e){if(this.isEmpty=!e,e||(this.hue=0,this.saturation=0,this.brightness=100,this.alpha=100),!this.isSafeValue){const i=this.parseColor(e);i!==null?(this.inputValue=this.value,this.hue=i.hsva.h,this.saturation=i.hsva.s,this.brightness=i.hsva.v,this.alpha=i.hsva.a*100,this.syncValues()):this.inputValue=t??""}}focus(t){this.inline?this.base.focus(t):this.trigger.focus(t)}blur(){var t;const e=this.inline?this.base:this.trigger;this.hasFocus&&(e.focus({preventScroll:!0}),e.blur()),(t=this.dropdown)!=null&&t.open&&this.dropdown.hide()}getFormattedValue(t="hex"){const e=this.parseColor(`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha/100})`);if(e===null)return"";switch(t){case"hex":return e.hex;case"hexa":return e.hexa;case"rgb":return e.rgb.string;case"rgba":return e.rgba.string;case"hsl":return e.hsl.string;case"hsla":return e.hsla.string;case"hsv":return e.hsv.string;case"hsva":return e.hsva.string;default:return""}}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.inline&&!this.validity.valid?(this.dropdown.show(),this.addEventListener("sl-after-show",()=>this.input.reportValidity(),{once:!0}),this.disabled||this.formControlController.emitInvalidEvent(),!1):this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.saturation,e=100-this.brightness,i=Array.isArray(this.swatches)?this.swatches:this.swatches.split(";").filter(r=>r.trim()!==""),s=x`
|
|
3952
|
+
`;function it(t,e){qo(t)&&(t="100%");const i=Yo(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),i&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function we(t){return Math.min(1,Math.max(0,t))}function qo(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Yo(t){return typeof t=="string"&&t.indexOf("%")!==-1}function Ui(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function xe(t){return Number(t)<=1?`${Number(t)*100}%`:t}function Yt(t){return t.length===1?"0"+t:String(t)}function Ko(t,e,i){return{r:it(t,255)*255,g:it(e,255)*255,b:it(i,255)*255}}function wi(t,e,i){t=it(t,255),e=it(e,255),i=it(i,255);const s=Math.max(t,e,i),r=Math.min(t,e,i);let a=0,l=0;const u=(s+r)/2;if(s===r)l=0,a=0;else{const c=s-r;switch(l=u>.5?c/(2-s-r):c/(s+r),s){case t:a=(e-i)/c+(e<i?6:0);break;case e:a=(i-t)/c+2;break;case i:a=(t-e)/c+4;break}a/=6}return{h:a,s:l,l:u}}function Ue(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*(6*i):i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function Xo(t,e,i){let s,r,a;if(t=it(t,360),e=it(e,100),i=it(i,100),e===0)r=i,a=i,s=i;else{const l=i<.5?i*(1+e):i+e-i*e,u=2*i-l;s=Ue(u,l,t+1/3),r=Ue(u,l,t),a=Ue(u,l,t-1/3)}return{r:s*255,g:r*255,b:a*255}}function xi(t,e,i){t=it(t,255),e=it(e,255),i=it(i,255);const s=Math.max(t,e,i),r=Math.min(t,e,i);let a=0;const l=s,u=s-r,c=s===0?0:u/s;if(s===r)a=0;else{switch(s){case t:a=(e-i)/u+(e<i?6:0);break;case e:a=(i-t)/u+2;break;case i:a=(t-e)/u+4;break}a/=6}return{h:a,s:c,v:l}}function jo(t,e,i){t=it(t,360)*6,e=it(e,100),i=it(i,100);const s=Math.floor(t),r=t-s,a=i*(1-e),l=i*(1-r*e),u=i*(1-(1-r)*e),c=s%6,d=[i,l,a,a,u,i][c],g=[u,i,i,l,a,a][c],h=[a,a,u,i,i,l][c];return{r:d*255,g:g*255,b:h*255}}function _i(t,e,i,s){const r=[Yt(Math.round(t).toString(16)),Yt(Math.round(e).toString(16)),Yt(Math.round(i).toString(16))];return s&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Go(t,e,i,s,r){const a=[Yt(Math.round(t).toString(16)),Yt(Math.round(e).toString(16)),Yt(Math.round(i).toString(16)),Yt(Qo(s))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Qo(t){return Math.round(parseFloat(t)*255).toString(16)}function ki(t){return pt(t)/255}function pt(t){return parseInt(t,16)}function Zo(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}const Ge={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Jo(t){let e={r:0,g:0,b:0},i=1,s=null,r=null,a=null,l=!1,u=!1;return typeof t=="string"&&(t=ir(t)),typeof t=="object"&&(Mt(t.r)&&Mt(t.g)&&Mt(t.b)?(e=Ko(t.r,t.g,t.b),l=!0,u=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Mt(t.h)&&Mt(t.s)&&Mt(t.v)?(s=xe(t.s),r=xe(t.v),e=jo(t.h,s,r),l=!0,u="hsv"):Mt(t.h)&&Mt(t.s)&&Mt(t.l)&&(s=xe(t.s),a=xe(t.l),e=Xo(t.h,s,a),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(i=t.a)),i=Ui(i),{ok:l,format:t.format||u,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:i}}const tr="[-\\+]?\\d+%?",er="[-\\+]?\\d*\\.\\d+%?",Vt="(?:"+er+")|(?:"+tr+")",We="[\\s|\\(]+("+Vt+")[,|\\s]+("+Vt+")[,|\\s]+("+Vt+")\\s*\\)?",qe="[\\s|\\(]+("+Vt+")[,|\\s]+("+Vt+")[,|\\s]+("+Vt+")[,|\\s]+("+Vt+")\\s*\\)?",Ct={CSS_UNIT:new RegExp(Vt),rgb:new RegExp("rgb"+We),rgba:new RegExp("rgba"+qe),hsl:new RegExp("hsl"+We),hsla:new RegExp("hsla"+qe),hsv:new RegExp("hsv"+We),hsva:new RegExp("hsva"+qe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ir(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;let e=!1;if(Ge[t])t=Ge[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let i=Ct.rgb.exec(t);return i?{r:i[1],g:i[2],b:i[3]}:(i=Ct.rgba.exec(t),i?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=Ct.hsl.exec(t),i?{h:i[1],s:i[2],l:i[3]}:(i=Ct.hsla.exec(t),i?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=Ct.hsv.exec(t),i?{h:i[1],s:i[2],v:i[3]}:(i=Ct.hsva.exec(t),i?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=Ct.hex8.exec(t),i?{r:pt(i[1]),g:pt(i[2]),b:pt(i[3]),a:ki(i[4]),format:e?"name":"hex8"}:(i=Ct.hex6.exec(t),i?{r:pt(i[1]),g:pt(i[2]),b:pt(i[3]),format:e?"name":"hex"}:(i=Ct.hex4.exec(t),i?{r:pt(i[1]+i[1]),g:pt(i[2]+i[2]),b:pt(i[3]+i[3]),a:ki(i[4]+i[4]),format:e?"name":"hex8"}:(i=Ct.hex3.exec(t),i?{r:pt(i[1]+i[1]),g:pt(i[2]+i[2]),b:pt(i[3]+i[3]),format:e?"name":"hex"}:!1)))))))))}function Mt(t){return!!Ct.CSS_UNIT.exec(String(t))}class Y{constructor(e="",i={}){if(e instanceof Y)return e;typeof e=="number"&&(e=Zo(e)),this.originalInput=e;const s=Jo(e);this.originalInput=e,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=i.format??s.format,this.gradientType=i.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3}getLuminance(){const e=this.toRgb();let i,s,r;const a=e.r/255,l=e.g/255,u=e.b/255;return a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),l<=.03928?s=l/12.92:s=Math.pow((l+.055)/1.055,2.4),u<=.03928?r=u/12.92:r=Math.pow((u+.055)/1.055,2.4),.2126*i+.7152*s+.0722*r}getAlpha(){return this.a}setAlpha(e){return this.a=Ui(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:e}=this.toHsl();return e===0}toHsv(){const e=xi(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}}toHsvString(){const e=xi(this.r,this.g,this.b),i=Math.round(e.h*360),s=Math.round(e.s*100),r=Math.round(e.v*100);return this.a===1?`hsv(${i}, ${s}%, ${r}%)`:`hsva(${i}, ${s}%, ${r}%, ${this.roundA})`}toHsl(){const e=wi(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}}toHslString(){const e=wi(this.r,this.g,this.b),i=Math.round(e.h*360),s=Math.round(e.s*100),r=Math.round(e.l*100);return this.a===1?`hsl(${i}, ${s}%, ${r}%)`:`hsla(${i}, ${s}%, ${r}%, ${this.roundA})`}toHex(e=!1){return _i(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return Go(this.r,this.g,this.b,this.a,e)}toHex8String(e=!1){return"#"+this.toHex8(e)}toHexShortString(e=!1){return this.a===1?this.toHexString(e):this.toHex8String(e)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const e=Math.round(this.r),i=Math.round(this.g),s=Math.round(this.b);return this.a===1?`rgb(${e}, ${i}, ${s})`:`rgba(${e}, ${i}, ${s}, ${this.roundA})`}toPercentageRgb(){const e=i=>`${Math.round(it(i,255)*100)}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){const e=i=>Math.round(it(i,255)*100);return this.a===1?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const e="#"+_i(this.r,this.g,this.b,!1);for(const[i,s]of Object.entries(Ge))if(e===s)return i;return!1}toString(e){const i=!!e;e=e??this.format;let s=!1;const r=this.a<1&&this.a>=0;return!i&&r&&(e.startsWith("hex")||e==="name")?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(s=this.toRgbString()),e==="prgb"&&(s=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(s=this.toHexString()),e==="hex3"&&(s=this.toHexString(!0)),e==="hex4"&&(s=this.toHex8String(!0)),e==="hex8"&&(s=this.toHex8String()),e==="name"&&(s=this.toName()),e==="hsl"&&(s=this.toHslString()),e==="hsv"&&(s=this.toHsvString()),s||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new Y(this.toString())}lighten(e=10){const i=this.toHsl();return i.l+=e/100,i.l=we(i.l),new Y(i)}brighten(e=10){const i=this.toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(255*-(e/100)))),i.g=Math.max(0,Math.min(255,i.g-Math.round(255*-(e/100)))),i.b=Math.max(0,Math.min(255,i.b-Math.round(255*-(e/100)))),new Y(i)}darken(e=10){const i=this.toHsl();return i.l-=e/100,i.l=we(i.l),new Y(i)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){const i=this.toHsl();return i.s-=e/100,i.s=we(i.s),new Y(i)}saturate(e=10){const i=this.toHsl();return i.s+=e/100,i.s=we(i.s),new Y(i)}greyscale(){return this.desaturate(100)}spin(e){const i=this.toHsl(),s=(i.h+e)%360;return i.h=s<0?360+s:s,new Y(i)}mix(e,i=50){const s=this.toRgb(),r=new Y(e).toRgb(),a=i/100,l={r:(r.r-s.r)*a+s.r,g:(r.g-s.g)*a+s.g,b:(r.b-s.b)*a+s.b,a:(r.a-s.a)*a+s.a};return new Y(l)}analogous(e=6,i=30){const s=this.toHsl(),r=360/i,a=[this];for(s.h=(s.h-(r*e>>1)+720)%360;--e;)s.h=(s.h+r)%360,a.push(new Y(s));return a}complement(){const e=this.toHsl();return e.h=(e.h+180)%360,new Y(e)}monochromatic(e=6){const i=this.toHsv(),{h:s}=i,{s:r}=i;let{v:a}=i;const l=[],u=1/e;for(;e--;)l.push(new Y({h:s,s:r,v:a})),a=(a+u)%1;return l}splitcomplement(){const e=this.toHsl(),{h:i}=e;return[this,new Y({h:(i+72)%360,s:e.s,l:e.l}),new Y({h:(i+216)%360,s:e.s,l:e.l})]}onBackground(e){const i=this.toRgb(),s=new Y(e).toRgb(),r=i.a+s.a*(1-i.a);return new Y({r:(i.r*i.a+s.r*s.a*(1-i.a))/r,g:(i.g*i.a+s.g*s.a*(1-i.a))/r,b:(i.b*i.a+s.b*s.a*(1-i.a))/r,a:r})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){const i=this.toHsl(),{h:s}=i,r=[this],a=360/e;for(let l=1;l<e;l++)r.push(new Y({h:(s+l*a)%360,s:i.s,l:i.l}));return r}equals(e){return this.toRgbString()===new Y(e).toRgbString()}}var Ci="EyeDropper"in window,R=class extends D{constructor(){super(),this.formControlController=new Xt(this),this.isSafeValue=!1,this.localize=new N(this),this.hasFocus=!1,this.isDraggingGridHandle=!1,this.isEmpty=!1,this.inputValue="",this.hue=0,this.saturation=100,this.brightness=100,this.alpha=100,this.value="",this.defaultValue="",this.label="",this.format="hex",this.inline=!1,this.size="medium",this.noFormatToggle=!1,this.name="",this.disabled=!1,this.hoist=!1,this.opacity=!1,this.uppercase=!1,this.swatches="",this.form="",this.required=!1,this.handleFocusIn=()=>{this.hasFocus=!0,this.emit("sl-focus")},this.handleFocusOut=()=>{this.hasFocus=!1,this.emit("sl-blur")},this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut)}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.input.updateComplete.then(()=>{this.formControlController.updateValidity()})}handleCopy(){this.input.select(),document.execCommand("copy"),this.previewButton.focus(),this.previewButton.classList.add("color-picker__preview-color--copied"),this.previewButton.addEventListener("animationend",()=>{this.previewButton.classList.remove("color-picker__preview-color--copied")})}handleFormatToggle(){const t=["hex","rgb","hsl","hsv"],e=(t.indexOf(this.format)+1)%t.length;this.format=t[e],this.setColor(this.value),this.emit("sl-change"),this.emit("sl-input")}handleAlphaDrag(t){const e=this.shadowRoot.querySelector(".color-picker__slider.color-picker__alpha"),i=e.querySelector(".color-picker__slider-handle"),{width:s}=e.getBoundingClientRect();let r=this.value,a=this.value;i.focus(),t.preventDefault(),he(e,{onMove:l=>{this.alpha=j(l/s*100,0,100),this.syncValues(),this.value!==a&&(a=this.value,this.emit("sl-input"))},onStop:()=>{this.value!==r&&(r=this.value,this.emit("sl-change"))},initialEvent:t})}handleHueDrag(t){const e=this.shadowRoot.querySelector(".color-picker__slider.color-picker__hue"),i=e.querySelector(".color-picker__slider-handle"),{width:s}=e.getBoundingClientRect();let r=this.value,a=this.value;i.focus(),t.preventDefault(),he(e,{onMove:l=>{this.hue=j(l/s*360,0,360),this.syncValues(),this.value!==a&&(a=this.value,this.emit("sl-input"))},onStop:()=>{this.value!==r&&(r=this.value,this.emit("sl-change"))},initialEvent:t})}handleGridDrag(t){const e=this.shadowRoot.querySelector(".color-picker__grid"),i=e.querySelector(".color-picker__grid-handle"),{width:s,height:r}=e.getBoundingClientRect();let a=this.value,l=this.value;i.focus(),t.preventDefault(),this.isDraggingGridHandle=!0,he(e,{onMove:(u,c)=>{this.saturation=j(u/s*100,0,100),this.brightness=j(100-c/r*100,0,100),this.syncValues(),this.value!==l&&(l=this.value,this.emit("sl-input"))},onStop:()=>{this.isDraggingGridHandle=!1,this.value!==a&&(a=this.value,this.emit("sl-change"))},initialEvent:t})}handleAlphaKeyDown(t){const e=t.shiftKey?10:1,i=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.alpha=j(this.alpha-e,0,100),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.alpha=j(this.alpha+e,0,100),this.syncValues()),t.key==="Home"&&(t.preventDefault(),this.alpha=0,this.syncValues()),t.key==="End"&&(t.preventDefault(),this.alpha=100,this.syncValues()),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleHueKeyDown(t){const e=t.shiftKey?10:1,i=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.hue=j(this.hue-e,0,360),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.hue=j(this.hue+e,0,360),this.syncValues()),t.key==="Home"&&(t.preventDefault(),this.hue=0,this.syncValues()),t.key==="End"&&(t.preventDefault(),this.hue=360,this.syncValues()),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleGridKeyDown(t){const e=t.shiftKey?10:1,i=this.value;t.key==="ArrowLeft"&&(t.preventDefault(),this.saturation=j(this.saturation-e,0,100),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.saturation=j(this.saturation+e,0,100),this.syncValues()),t.key==="ArrowUp"&&(t.preventDefault(),this.brightness=j(this.brightness+e,0,100),this.syncValues()),t.key==="ArrowDown"&&(t.preventDefault(),this.brightness=j(this.brightness-e,0,100),this.syncValues()),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleInputChange(t){const e=t.target,i=this.value;t.stopPropagation(),this.input.value?(this.setColor(e.value),e.value=this.value):this.value="",this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}handleInputInput(t){this.formControlController.updateValidity(),t.stopPropagation()}handleInputKeyDown(t){if(t.key==="Enter"){const e=this.value;this.input.value?(this.setColor(this.input.value),this.input.value=this.value,this.value!==e&&(this.emit("sl-change"),this.emit("sl-input")),setTimeout(()=>this.input.select())):this.hue=0}}handleInputInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleTouchMove(t){t.preventDefault()}parseColor(t){const e=new Y(t);if(!e.isValid)return null;const i=e.toHsl(),s={h:i.h,s:i.s*100,l:i.l*100,a:i.a},r=e.toRgb(),a=e.toHexString(),l=e.toHex8String(),u=e.toHsv(),c={h:u.h,s:u.s*100,v:u.v*100,a:u.a};return{hsl:{h:s.h,s:s.s,l:s.l,string:this.setLetterCase(`hsl(${Math.round(s.h)}, ${Math.round(s.s)}%, ${Math.round(s.l)}%)`)},hsla:{h:s.h,s:s.s,l:s.l,a:s.a,string:this.setLetterCase(`hsla(${Math.round(s.h)}, ${Math.round(s.s)}%, ${Math.round(s.l)}%, ${s.a.toFixed(2).toString()})`)},hsv:{h:c.h,s:c.s,v:c.v,string:this.setLetterCase(`hsv(${Math.round(c.h)}, ${Math.round(c.s)}%, ${Math.round(c.v)}%)`)},hsva:{h:c.h,s:c.s,v:c.v,a:c.a,string:this.setLetterCase(`hsva(${Math.round(c.h)}, ${Math.round(c.s)}%, ${Math.round(c.v)}%, ${c.a.toFixed(2).toString()})`)},rgb:{r:r.r,g:r.g,b:r.b,string:this.setLetterCase(`rgb(${Math.round(r.r)}, ${Math.round(r.g)}, ${Math.round(r.b)})`)},rgba:{r:r.r,g:r.g,b:r.b,a:r.a,string:this.setLetterCase(`rgba(${Math.round(r.r)}, ${Math.round(r.g)}, ${Math.round(r.b)}, ${r.a.toFixed(2).toString()})`)},hex:this.setLetterCase(a),hexa:this.setLetterCase(l)}}setColor(t){const e=this.parseColor(t);return e===null?!1:(this.hue=e.hsva.h,this.saturation=e.hsva.s,this.brightness=e.hsva.v,this.alpha=this.opacity?e.hsva.a*100:100,this.syncValues(),!0)}setLetterCase(t){return typeof t!="string"?"":this.uppercase?t.toUpperCase():t.toLowerCase()}async syncValues(){const t=this.parseColor(`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha/100})`);t!==null&&(this.format==="hsl"?this.inputValue=this.opacity?t.hsla.string:t.hsl.string:this.format==="rgb"?this.inputValue=this.opacity?t.rgba.string:t.rgb.string:this.format==="hsv"?this.inputValue=this.opacity?t.hsva.string:t.hsv.string:this.inputValue=this.opacity?t.hexa:t.hex,this.isSafeValue=!0,this.value=this.inputValue,await this.updateComplete,this.isSafeValue=!1)}handleAfterHide(){this.previewButton.classList.remove("color-picker__preview-color--copied")}handleEyeDropper(){if(!Ci)return;new EyeDropper().open().then(e=>{const i=this.value;this.setColor(e.sRGBHex),this.value!==i&&(this.emit("sl-change"),this.emit("sl-input"))}).catch(()=>{})}selectSwatch(t){const e=this.value;this.disabled||(this.setColor(t),this.value!==e&&(this.emit("sl-change"),this.emit("sl-input")))}getHexString(t,e,i,s=100){const r=new Y(`hsva(${t}, ${e}%, ${i}%, ${s/100})`);return r.isValid?r.toHex8String():""}stopNestedEventPropagation(t){t.stopImmediatePropagation()}handleFormatChange(){this.syncValues()}handleOpacityChange(){this.alpha=100}handleValueChange(t,e){if(this.isEmpty=!e,e||(this.hue=0,this.saturation=0,this.brightness=100,this.alpha=100),!this.isSafeValue){const i=this.parseColor(e);i!==null?(this.inputValue=this.value,this.hue=i.hsva.h,this.saturation=i.hsva.s,this.brightness=i.hsva.v,this.alpha=i.hsva.a*100,this.syncValues()):this.inputValue=t??""}}focus(t){this.inline?this.base.focus(t):this.trigger.focus(t)}blur(){var t;const e=this.inline?this.base:this.trigger;this.hasFocus&&(e.focus({preventScroll:!0}),e.blur()),(t=this.dropdown)!=null&&t.open&&this.dropdown.hide()}getFormattedValue(t="hex"){const e=this.parseColor(`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha/100})`);if(e===null)return"";switch(t){case"hex":return e.hex;case"hexa":return e.hexa;case"rgb":return e.rgb.string;case"rgba":return e.rgba.string;case"hsl":return e.hsl.string;case"hsla":return e.hsla.string;case"hsv":return e.hsv.string;case"hsva":return e.hsva.string;default:return""}}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.inline&&!this.validity.valid?(this.dropdown.show(),this.addEventListener("sl-after-show",()=>this.input.reportValidity(),{once:!0}),this.disabled||this.formControlController.emitInvalidEvent(),!1):this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.saturation,e=100-this.brightness,i=Array.isArray(this.swatches)?this.swatches:this.swatches.split(";").filter(r=>r.trim()!==""),s=_`
|
|
4332
3953
|
<div
|
|
4333
3954
|
part="base"
|
|
4334
|
-
class=${
|
|
3955
|
+
class=${O({"color-picker":!0,"color-picker--inline":this.inline,"color-picker--disabled":this.disabled,"color-picker--focused":this.hasFocus})}
|
|
4335
3956
|
aria-disabled=${this.disabled?"true":"false"}
|
|
4336
3957
|
aria-labelledby="label"
|
|
4337
3958
|
tabindex=${this.inline?"0":"-1"}
|
|
4338
3959
|
>
|
|
4339
|
-
${this.inline?
|
|
3960
|
+
${this.inline?_`
|
|
4340
3961
|
<sl-visually-hidden id="label">
|
|
4341
3962
|
<slot name="label">${this.label}</slot>
|
|
4342
3963
|
</sl-visually-hidden>
|
|
@@ -4351,7 +3972,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4351
3972
|
>
|
|
4352
3973
|
<span
|
|
4353
3974
|
part="grid-handle"
|
|
4354
|
-
class=${
|
|
3975
|
+
class=${O({"color-picker__grid-handle":!0,"color-picker__grid-handle--dragging":this.isDraggingGridHandle})}
|
|
4355
3976
|
style=${dt({top:`${e}%`,left:`${t}%`,backgroundColor:this.getHexString(this.hue,this.saturation,this.brightness,this.alpha)})}
|
|
4356
3977
|
role="application"
|
|
4357
3978
|
aria-label="HSV"
|
|
@@ -4383,7 +4004,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4383
4004
|
></span>
|
|
4384
4005
|
</div>
|
|
4385
4006
|
|
|
4386
|
-
${this.opacity?
|
|
4007
|
+
${this.opacity?_`
|
|
4387
4008
|
<div
|
|
4388
4009
|
part="slider opacity-slider"
|
|
4389
4010
|
class="color-picker__alpha color-picker__slider color-picker__transparent-bg"
|
|
@@ -4447,7 +4068,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4447
4068
|
></sl-input>
|
|
4448
4069
|
|
|
4449
4070
|
<sl-button-group>
|
|
4450
|
-
${this.noFormatToggle?"":
|
|
4071
|
+
${this.noFormatToggle?"":_`
|
|
4451
4072
|
<sl-button
|
|
4452
4073
|
part="format-button"
|
|
4453
4074
|
aria-label=${this.localize.term("toggleColorFormat")}
|
|
@@ -4465,7 +4086,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4465
4086
|
${this.setLetterCase(this.format)}
|
|
4466
4087
|
</sl-button>
|
|
4467
4088
|
`}
|
|
4468
|
-
${
|
|
4089
|
+
${Ci?_`
|
|
4469
4090
|
<sl-button
|
|
4470
4091
|
part="eye-dropper-button"
|
|
4471
4092
|
exportparts="
|
|
@@ -4489,9 +4110,9 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4489
4110
|
</sl-button-group>
|
|
4490
4111
|
</div>
|
|
4491
4112
|
|
|
4492
|
-
${i.length>0?
|
|
4113
|
+
${i.length>0?_`
|
|
4493
4114
|
<div part="swatches" class="color-picker__swatches">
|
|
4494
|
-
${i.map(r=>{const a=this.parseColor(r);return a?
|
|
4115
|
+
${i.map(r=>{const a=this.parseColor(r);return a?_`
|
|
4495
4116
|
<div
|
|
4496
4117
|
part="swatch"
|
|
4497
4118
|
class="color-picker__swatch color-picker__transparent-bg"
|
|
@@ -4510,7 +4131,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4510
4131
|
</div>
|
|
4511
4132
|
`:""}
|
|
4512
4133
|
</div>
|
|
4513
|
-
`;return this.inline?s:
|
|
4134
|
+
`;return this.inline?s:_`
|
|
4514
4135
|
<sl-dropdown
|
|
4515
4136
|
class="color-dropdown"
|
|
4516
4137
|
aria-disabled=${this.disabled?"true":"false"}
|
|
@@ -4522,7 +4143,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4522
4143
|
<button
|
|
4523
4144
|
part="trigger"
|
|
4524
4145
|
slot="trigger"
|
|
4525
|
-
class=${
|
|
4146
|
+
class=${O({"color-dropdown__trigger":!0,"color-dropdown__trigger--disabled":this.disabled,"color-dropdown__trigger--small":this.size==="small","color-dropdown__trigger--medium":this.size==="medium","color-dropdown__trigger--large":this.size==="large","color-dropdown__trigger--empty":this.isEmpty,"color-dropdown__trigger--focused":this.hasFocus,"color-picker__transparent-bg":!0})}
|
|
4526
4147
|
style=${dt({color:this.getHexString(this.hue,this.saturation,this.brightness,this.alpha)})}
|
|
4527
4148
|
type="button"
|
|
4528
4149
|
>
|
|
@@ -4532,7 +4153,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4532
4153
|
</button>
|
|
4533
4154
|
${s}
|
|
4534
4155
|
</sl-dropdown>
|
|
4535
|
-
`}};R.styles=[
|
|
4156
|
+
`}};R.styles=[M,Wo];R.dependencies={"sl-button-group":Gt,"sl-button":ss,"sl-dropdown":ot,"sl-icon":gt,"sl-input":Zi,"sl-visually-hidden":ii};o([S('[part~="base"]')],R.prototype,"base",2);o([S('[part~="input"]')],R.prototype,"input",2);o([S(".color-dropdown")],R.prototype,"dropdown",2);o([S('[part~="preview"]')],R.prototype,"previewButton",2);o([S('[part~="trigger"]')],R.prototype,"trigger",2);o([E()],R.prototype,"hasFocus",2);o([E()],R.prototype,"isDraggingGridHandle",2);o([E()],R.prototype,"isEmpty",2);o([E()],R.prototype,"inputValue",2);o([E()],R.prototype,"hue",2);o([E()],R.prototype,"saturation",2);o([E()],R.prototype,"brightness",2);o([E()],R.prototype,"alpha",2);o([n()],R.prototype,"value",2);o([oe()],R.prototype,"defaultValue",2);o([n()],R.prototype,"label",2);o([n()],R.prototype,"format",2);o([n({type:Boolean,reflect:!0})],R.prototype,"inline",2);o([n({reflect:!0})],R.prototype,"size",2);o([n({attribute:"no-format-toggle",type:Boolean})],R.prototype,"noFormatToggle",2);o([n()],R.prototype,"name",2);o([n({type:Boolean,reflect:!0})],R.prototype,"disabled",2);o([n({type:Boolean})],R.prototype,"hoist",2);o([n({type:Boolean})],R.prototype,"opacity",2);o([n({type:Boolean})],R.prototype,"uppercase",2);o([n()],R.prototype,"swatches",2);o([n({reflect:!0})],R.prototype,"form",2);o([n({type:Boolean,reflect:!0})],R.prototype,"required",2);o([Ee({passive:!1})],R.prototype,"handleTouchMove",1);o([k("format",{waitUntilFirstUpdate:!0})],R.prototype,"handleFormatChange",1);o([k("opacity",{waitUntilFirstUpdate:!0})],R.prototype,"handleOpacityChange",1);o([k("value")],R.prototype,"handleValueChange",1);R.define("sl-color-picker");var sr=class{constructor(t,e){this.timerId=0,this.activeInteractions=0,this.paused=!1,this.stopped=!0,this.pause=()=>{this.activeInteractions++||(this.paused=!0,this.host.requestUpdate())},this.resume=()=>{--this.activeInteractions||(this.paused=!1,this.host.requestUpdate())},t.addController(this),this.host=t,this.tickCallback=e}hostConnected(){this.host.addEventListener("mouseenter",this.pause),this.host.addEventListener("mouseleave",this.resume),this.host.addEventListener("focusin",this.pause),this.host.addEventListener("focusout",this.resume),this.host.addEventListener("touchstart",this.pause,{passive:!0}),this.host.addEventListener("touchend",this.resume)}hostDisconnected(){this.stop(),this.host.removeEventListener("mouseenter",this.pause),this.host.removeEventListener("mouseleave",this.resume),this.host.removeEventListener("focusin",this.pause),this.host.removeEventListener("focusout",this.resume),this.host.removeEventListener("touchstart",this.pause),this.host.removeEventListener("touchend",this.resume)}start(t){this.stop(),this.stopped=!1,this.timerId=window.setInterval(()=>{this.paused||this.tickCallback()},t)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}},or=I`
|
|
4536
4157
|
:host {
|
|
4537
4158
|
--slide-gap: var(--sl-spacing-medium, 1rem);
|
|
4538
4159
|
--aspect-ratio: 16 / 9;
|
|
@@ -4688,16 +4309,16 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4688
4309
|
* @license
|
|
4689
4310
|
* Copyright 2021 Google LLC
|
|
4690
4311
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4691
|
-
*/function*
|
|
4312
|
+
*/function*rr(t,e){if(t!==void 0){let i=0;for(const s of t)yield e(s,i++)}}/**
|
|
4692
4313
|
* @license
|
|
4693
4314
|
* Copyright 2021 Google LLC
|
|
4694
4315
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4695
|
-
*/function*
|
|
4316
|
+
*/function*ar(t,e,i=1){const s=e===void 0?0:t;e??=t;for(let r=s;i>0?r<e:e<r;r+=i)yield r}var nr=(t,e)=>{let i=0;return function(...s){window.clearTimeout(i),i=window.setTimeout(()=>{t.call(this,...s)},e)}},zi=(t,e,i)=>{const s=t[e];t[e]=function(...r){s.call(this,...r),i.call(this,s,...r)}},lr="onscrollend"in window;if(!lr){const t=new Set,e=new WeakMap,i=r=>{for(const a of r.changedTouches)t.add(a.identifier)},s=r=>{for(const a of r.changedTouches)t.delete(a.identifier)};document.addEventListener("touchstart",i,!0),document.addEventListener("touchend",s,!0),document.addEventListener("touchcancel",s,!0),zi(EventTarget.prototype,"addEventListener",function(r,a){if(a!=="scrollend")return;const l=nr(()=>{t.size?l():this.dispatchEvent(new Event("scrollend"))},100);r.call(this,"scroll",l,{passive:!0}),e.set(this,l)}),zi(EventTarget.prototype,"removeEventListener",function(r,a){if(a!=="scrollend")return;const l=e.get(this);l&&r.call(this,"scroll",l,{passive:!0})})}var X=class extends D{constructor(){super(...arguments),this.loop=!1,this.navigation=!1,this.pagination=!1,this.autoplay=!1,this.autoplayInterval=3e3,this.slidesPerPage=1,this.slidesPerMove=1,this.orientation="horizontal",this.mouseDragging=!1,this.activeSlide=0,this.scrolling=!1,this.dragging=!1,this.autoplayController=new sr(this,()=>this.next()),this.localize=new N(this),this.handleMouseDrag=t=>{this.dragging||(this.scrollContainer.style.setProperty("scroll-snap-type","none"),this.dragging=!0),this.scrollContainer.scrollBy({left:-t.movementX,top:-t.movementY,behavior:"instant"})},this.handleMouseDragEnd=()=>{const t=this.scrollContainer;document.removeEventListener("pointermove",this.handleMouseDrag,{capture:!0});const e=t.scrollLeft,i=t.scrollTop;t.style.removeProperty("scroll-snap-type"),t.style.setProperty("overflow","hidden");const s=t.scrollLeft,r=t.scrollTop;t.style.removeProperty("overflow"),t.style.setProperty("scroll-snap-type","none"),t.scrollTo({left:e,top:i,behavior:"instant"}),requestAnimationFrame(async()=>{(e!==s||i!==r)&&(t.scrollTo({left:s,top:r,behavior:hi()?"auto":"smooth"}),await zt(t,"scrollend")),t.style.removeProperty("scroll-snap-type"),this.dragging=!1,this.handleScrollEnd()})},this.handleSlotChange=t=>{t.some(i=>[...i.addedNodes,...i.removedNodes].some(s=>this.isCarouselItem(s)&&!s.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel"))}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect()}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}willUpdate(t){(t.has("slidesPerMove")||t.has("slidesPerPage"))&&(this.slidesPerMove=Math.min(this.slidesPerMove,this.slidesPerPage))}getPageCount(){const t=this.getSlides().length,{slidesPerPage:e,slidesPerMove:i,loop:s}=this,r=s?t/i:(t-e)/i+1;return Math.ceil(r)}getCurrentPage(){return Math.ceil(this.activeSlide/this.slidesPerMove)}canScrollNext(){return this.loop||this.getCurrentPage()<this.getPageCount()-1}canScrollPrev(){return this.loop||this.getCurrentPage()>0}getSlides({excludeClones:t=!0}={}){return[...this.children].filter(e=>this.isCarouselItem(e)&&(!t||!e.hasAttribute("data-clone")))}handleKeyDown(t){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=t.target,i=this.localize.dir()==="rtl",s=e.closest('[part~="pagination-item"]')!==null,r=t.key==="ArrowDown"||!i&&t.key==="ArrowRight"||i&&t.key==="ArrowLeft",a=t.key==="ArrowUp"||!i&&t.key==="ArrowLeft"||i&&t.key==="ArrowRight";t.preventDefault(),a&&this.previous(),r&&this.next(),t.key==="Home"&&this.goToSlide(0),t.key==="End"&&this.goToSlide(this.getSlides().length-1),s&&this.updateComplete.then(()=>{var l;const u=(l=this.shadowRoot)==null?void 0:l.querySelector('[part~="pagination-item--active"]');u&&u.focus()})}}handleMouseDragStart(t){this.mouseDragging&&t.button===0&&(t.preventDefault(),document.addEventListener("pointermove",this.handleMouseDrag,{capture:!0,passive:!0}),document.addEventListener("pointerup",this.handleMouseDragEnd,{capture:!0,once:!0}))}handleScroll(){this.scrolling=!0}synchronizeSlides(){const t=new IntersectionObserver(e=>{t.disconnect();for(const s of e){const r=s.target;r.toggleAttribute("inert",!s.isIntersecting),r.classList.toggle("--in-view",s.isIntersecting),r.setAttribute("aria-hidden",s.isIntersecting?"false":"true")}const i=e.find(s=>s.isIntersecting);if(i)if(this.loop&&i.target.hasAttribute("data-clone")){const s=Number(i.target.getAttribute("data-clone"));this.goToSlide(s,"instant")}else{const r=this.getSlides().indexOf(i.target);this.activeSlide=Math.ceil(r/this.slidesPerMove)*this.slidesPerMove}},{root:this.scrollContainer,threshold:.6});this.getSlides({excludeClones:!1}).forEach(e=>{t.observe(e)})}handleScrollEnd(){!this.scrolling||this.dragging||(this.synchronizeSlides(),this.scrolling=!1)}isCarouselItem(t){return t instanceof Element&&t.tagName.toLowerCase()==="sl-carousel-item"}initializeSlides(){this.getSlides({excludeClones:!1}).forEach((t,e)=>{t.classList.remove("--in-view"),t.classList.remove("--is-active"),t.setAttribute("aria-label",this.localize.term("slideNum",e+1)),t.hasAttribute("data-clone")&&t.remove()}),this.updateSlidesSnap(),this.loop&&this.createClones(),this.synchronizeSlides(),this.goToSlide(this.activeSlide,"auto")}createClones(){const t=this.getSlides(),e=this.slidesPerPage,i=t.slice(-e),s=t.slice(0,e);i.reverse().forEach((r,a)=>{const l=r.cloneNode(!0);l.setAttribute("data-clone",String(t.length-a-1)),this.prepend(l)}),s.forEach((r,a)=>{const l=r.cloneNode(!0);l.setAttribute("data-clone",String(a)),this.append(l)})}handelSlideChange(){const t=this.getSlides();t.forEach((e,i)=>{e.classList.toggle("--is-active",i===this.activeSlide)}),this.hasUpdated&&this.emit("sl-slide-change",{detail:{index:this.activeSlide,slide:t[this.activeSlide]}})}updateSlidesSnap(){const t=this.getSlides(),e=this.slidesPerMove;t.forEach((i,s)=>{(s+e)%e===0?i.style.removeProperty("scroll-snap-align"):i.style.setProperty("scroll-snap-align","none")})}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&this.autoplayController.start(this.autoplayInterval)}previous(t="smooth"){this.goToSlide(this.activeSlide-this.slidesPerMove,t)}next(t="smooth"){this.goToSlide(this.activeSlide+this.slidesPerMove,t)}goToSlide(t,e="smooth"){const{slidesPerPage:i,loop:s}=this,r=this.getSlides(),a=this.getSlides({excludeClones:!1});if(!r.length)return;const l=s?(t+r.length)%r.length:j(t,0,r.length-1);this.activeSlide=l;const u=j(t+(s?i:0),0,a.length-1),c=a[u];this.scrollToSlide(c,hi()?"auto":e)}scrollToSlide(t,e="smooth"){const i=this.scrollContainer,s=i.getBoundingClientRect(),r=t.getBoundingClientRect(),a=r.left-s.left,l=r.top-s.top;i.scrollTo({left:a+i.scrollLeft,top:l+i.scrollTop,behavior:e})}render(){const{slidesPerMove:t,scrolling:e}=this,i=this.getPageCount(),s=this.getCurrentPage(),r=this.canScrollPrev(),a=this.canScrollNext(),l=this.localize.dir()==="ltr";return _`
|
|
4696
4317
|
<div part="base" class="carousel">
|
|
4697
4318
|
<div
|
|
4698
4319
|
id="scroll-container"
|
|
4699
4320
|
part="scroll-container"
|
|
4700
|
-
class="${
|
|
4321
|
+
class="${O({carousel__slides:!0,"carousel__slides--horizontal":this.orientation==="horizontal","carousel__slides--vertical":this.orientation==="vertical","carousel__slides--dragging":this.dragging})}"
|
|
4701
4322
|
style="--slides-per-page: ${this.slidesPerPage};"
|
|
4702
4323
|
aria-busy="${e?"true":"false"}"
|
|
4703
4324
|
aria-atomic="true"
|
|
@@ -4710,11 +4331,11 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4710
4331
|
<slot></slot>
|
|
4711
4332
|
</div>
|
|
4712
4333
|
|
|
4713
|
-
${this.navigation?
|
|
4334
|
+
${this.navigation?_`
|
|
4714
4335
|
<div part="navigation" class="carousel__navigation">
|
|
4715
4336
|
<button
|
|
4716
4337
|
part="navigation-button navigation-button--previous"
|
|
4717
|
-
class="${
|
|
4338
|
+
class="${O({"carousel__navigation-button":!0,"carousel__navigation-button--previous":!0,"carousel__navigation-button--disabled":!r})}"
|
|
4718
4339
|
aria-label="${this.localize.term("previousSlide")}"
|
|
4719
4340
|
aria-controls="scroll-container"
|
|
4720
4341
|
aria-disabled="${r?"false":"true"}"
|
|
@@ -4727,7 +4348,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4727
4348
|
|
|
4728
4349
|
<button
|
|
4729
4350
|
part="navigation-button navigation-button--next"
|
|
4730
|
-
class=${
|
|
4351
|
+
class=${O({"carousel__navigation-button":!0,"carousel__navigation-button--next":!0,"carousel__navigation-button--disabled":!a})}
|
|
4731
4352
|
aria-label="${this.localize.term("nextSlide")}"
|
|
4732
4353
|
aria-controls="scroll-container"
|
|
4733
4354
|
aria-disabled="${a?"false":"true"}"
|
|
@@ -4739,24 +4360,24 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4739
4360
|
</button>
|
|
4740
4361
|
</div>
|
|
4741
4362
|
`:""}
|
|
4742
|
-
${this.pagination?
|
|
4363
|
+
${this.pagination?_`
|
|
4743
4364
|
<div part="pagination" role="tablist" class="carousel__pagination" aria-controls="scroll-container">
|
|
4744
|
-
${
|
|
4365
|
+
${rr(ar(i),u=>{const c=u===s;return _`
|
|
4745
4366
|
<button
|
|
4746
4367
|
part="pagination-item ${c?"pagination-item--active":""}"
|
|
4747
|
-
class="${
|
|
4368
|
+
class="${O({"carousel__pagination-item":!0,"carousel__pagination-item--active":c})}"
|
|
4748
4369
|
role="tab"
|
|
4749
4370
|
aria-selected="${c?"true":"false"}"
|
|
4750
|
-
aria-label="${this.localize.term("goToSlide",
|
|
4371
|
+
aria-label="${this.localize.term("goToSlide",u+1,i)}"
|
|
4751
4372
|
tabindex=${c?"0":"-1"}
|
|
4752
|
-
@click=${()=>this.goToSlide(
|
|
4373
|
+
@click=${()=>this.goToSlide(u*t)}
|
|
4753
4374
|
@keydown=${this.handleKeyDown}
|
|
4754
4375
|
></button>
|
|
4755
4376
|
`})}
|
|
4756
4377
|
</div>
|
|
4757
4378
|
`:""}
|
|
4758
4379
|
</div>
|
|
4759
|
-
`}};X.styles=[
|
|
4380
|
+
`}};X.styles=[M,or];X.dependencies={"sl-icon":gt};o([n({type:Boolean,reflect:!0})],X.prototype,"loop",2);o([n({type:Boolean,reflect:!0})],X.prototype,"navigation",2);o([n({type:Boolean,reflect:!0})],X.prototype,"pagination",2);o([n({type:Boolean,reflect:!0})],X.prototype,"autoplay",2);o([n({type:Number,attribute:"autoplay-interval"})],X.prototype,"autoplayInterval",2);o([n({type:Number,attribute:"slides-per-page"})],X.prototype,"slidesPerPage",2);o([n({type:Number,attribute:"slides-per-move"})],X.prototype,"slidesPerMove",2);o([n()],X.prototype,"orientation",2);o([n({type:Boolean,reflect:!0,attribute:"mouse-dragging"})],X.prototype,"mouseDragging",2);o([S(".carousel__slides")],X.prototype,"scrollContainer",2);o([S(".carousel__pagination")],X.prototype,"paginationContainer",2);o([E()],X.prototype,"activeSlide",2);o([E()],X.prototype,"scrolling",2);o([E()],X.prototype,"dragging",2);o([Ee({passive:!0})],X.prototype,"handleScroll",1);o([k("loop",{waitUntilFirstUpdate:!0}),k("slidesPerPage",{waitUntilFirstUpdate:!0})],X.prototype,"initializeSlides",1);o([k("activeSlide")],X.prototype,"handelSlideChange",1);o([k("slidesPerMove")],X.prototype,"updateSlidesSnap",1);o([k("autoplay")],X.prototype,"handleAutoplayChange",1);X.define("sl-carousel");var cr=I`
|
|
4760
4381
|
:host {
|
|
4761
4382
|
--aspect-ratio: inherit;
|
|
4762
4383
|
|
|
@@ -4776,7 +4397,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4776
4397
|
height: 100% !important;
|
|
4777
4398
|
object-fit: cover;
|
|
4778
4399
|
}
|
|
4779
|
-
`,
|
|
4400
|
+
`,Wi=class extends D{connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return _` <slot></slot> `}};Wi.styles=[M,cr];Wi.define("sl-carousel-item");var dr=I`
|
|
4780
4401
|
:host {
|
|
4781
4402
|
--control-box-size: 3rem;
|
|
4782
4403
|
--icon-size: calc(var(--control-box-size) * 0.625);
|
|
@@ -4827,7 +4448,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4827
4448
|
:host(:not([play])) slot[name='pause-icon'] {
|
|
4828
4449
|
display: none;
|
|
4829
4450
|
}
|
|
4830
|
-
`,
|
|
4451
|
+
`,Et=class extends D{constructor(){super(...arguments),this.isLoaded=!1}handleClick(){this.play=!this.play}handleLoad(){const t=document.createElement("canvas"),{width:e,height:i}=this.animatedImage;t.width=e,t.height=i,t.getContext("2d").drawImage(this.animatedImage,0,0,e,i),this.frozenFrame=t.toDataURL("image/gif"),this.isLoaded||(this.emit("sl-load"),this.isLoaded=!0)}handleError(){this.emit("sl-error")}handlePlayChange(){this.play&&(this.animatedImage.src="",this.animatedImage.src=this.src)}handleSrcChange(){this.isLoaded=!1}render(){return _`
|
|
4831
4452
|
<div class="animated-image">
|
|
4832
4453
|
<img
|
|
4833
4454
|
class="animated-image__animated"
|
|
@@ -4840,7 +4461,7 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4840
4461
|
@error=${this.handleError}
|
|
4841
4462
|
/>
|
|
4842
4463
|
|
|
4843
|
-
${this.isLoaded?
|
|
4464
|
+
${this.isLoaded?_`
|
|
4844
4465
|
<img
|
|
4845
4466
|
class="animated-image__frozen"
|
|
4846
4467
|
src=${this.frozenFrame}
|
|
@@ -4855,14 +4476,14 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4855
4476
|
</div>
|
|
4856
4477
|
`:""}
|
|
4857
4478
|
</div>
|
|
4858
|
-
`}};
|
|
4479
|
+
`}};Et.styles=[M,dr];Et.dependencies={"sl-icon":gt};o([S(".animated-image__animated")],Et.prototype,"animatedImage",2);o([E()],Et.prototype,"frozenFrame",2);o([E()],Et.prototype,"isLoaded",2);o([n()],Et.prototype,"src",2);o([n()],Et.prototype,"alt",2);o([n({type:Boolean,reflect:!0})],Et.prototype,"play",2);o([k("play",{waitUntilFirstUpdate:!0})],Et.prototype,"handlePlayChange",1);o([k("src")],Et.prototype,"handleSrcChange",1);Et.define("sl-animated-image");Gt.define("sl-button-group");var hr=I`
|
|
4859
4480
|
:host {
|
|
4860
4481
|
display: contents;
|
|
4861
4482
|
}
|
|
4862
|
-
`;const wr=[{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.4,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.43,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.53,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.7,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -15px, 0) scaleY(1.05)"},{offset:.8,"transition-timing-function":"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0) scaleY(0.95)"},{offset:.9,transform:"translate3d(0, -4px, 0) scaleY(1.02)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"}],xr=[{offset:0,opacity:"1"},{offset:.25,opacity:"0"},{offset:.5,opacity:"1"},{offset:.75,opacity:"0"},{offset:1,opacity:"1"}],_r=[{offset:0,transform:"translateX(0)"},{offset:.065,transform:"translateX(-6px) rotateY(-9deg)"},{offset:.185,transform:"translateX(5px) rotateY(7deg)"},{offset:.315,transform:"translateX(-3px) rotateY(-5deg)"},{offset:.435,transform:"translateX(2px) rotateY(3deg)"},{offset:.5,transform:"translateX(0)"}],kr=[{offset:0,transform:"scale(1)"},{offset:.14,transform:"scale(1.3)"},{offset:.28,transform:"scale(1)"},{offset:.42,transform:"scale(1.3)"},{offset:.7,transform:"scale(1)"}],Cr=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.111,transform:"translate3d(0, 0, 0)"},{offset:.222,transform:"skewX(-12.5deg) skewY(-12.5deg)"},{offset:.33299999999999996,transform:"skewX(6.25deg) skewY(6.25deg)"},{offset:.444,transform:"skewX(-3.125deg) skewY(-3.125deg)"},{offset:.555,transform:"skewX(1.5625deg) skewY(1.5625deg)"},{offset:.6659999999999999,transform:"skewX(-0.78125deg) skewY(-0.78125deg)"},{offset:.777,transform:"skewX(0.390625deg) skewY(0.390625deg)"},{offset:.888,transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],zr=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.5,transform:"scale3d(1.05, 1.05, 1.05)"},{offset:1,transform:"scale3d(1, 1, 1)"}],$r=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.3,transform:"scale3d(1.25, 0.75, 1)"},{offset:.4,transform:"scale3d(0.75, 1.25, 1)"},{offset:.5,transform:"scale3d(1.15, 0.85, 1)"},{offset:.65,transform:"scale3d(0.95, 1.05, 1)"},{offset:.75,transform:"scale3d(1.05, 0.95, 1)"},{offset:1,transform:"scale3d(1, 1, 1)"}],Sr=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Ar=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Tr=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(0, -10px, 0)"},{offset:.2,transform:"translate3d(0, 10px, 0)"},{offset:.3,transform:"translate3d(0, -10px, 0)"},{offset:.4,transform:"translate3d(0, 10px, 0)"},{offset:.5,transform:"translate3d(0, -10px, 0)"},{offset:.6,transform:"translate3d(0, 10px, 0)"},{offset:.7,transform:"translate3d(0, -10px, 0)"},{offset:.8,transform:"translate3d(0, 10px, 0)"},{offset:.9,transform:"translate3d(0, -10px, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Er=[{offset:.2,transform:"rotate3d(0, 0, 1, 15deg)"},{offset:.4,transform:"rotate3d(0, 0, 1, -10deg)"},{offset:.6,transform:"rotate3d(0, 0, 1, 5deg)"},{offset:.8,transform:"rotate3d(0, 0, 1, -5deg)"},{offset:1,transform:"rotate3d(0, 0, 1, 0deg)"}],Lr=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.1,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.2,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.3,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.4,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.5,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.6,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.7,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.8,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.9,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:1,transform:"scale3d(1, 1, 1)"}],Dr=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.15,transform:"translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)"},{offset:.3,transform:"translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)"},{offset:.45,transform:"translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)"},{offset:.6,transform:"translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)"},{offset:.75,transform:"translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Ir=[{offset:0,transform:"translateY(-1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],Or=[{offset:0,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],Pr=[{offset:0,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],Mr=[{offset:0,transform:"translateY(1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],Rr=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(700px) scale(0.7)",opacity:"0.7"}],Fr=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"}],Vr=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"}],Br=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(-700px) scale(0.7)",opacity:"0.7"}],Hr=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.2,transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.4,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.4,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"scale3d(1.03, 1.03, 1.03)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.8,transform:"scale3d(0.97, 0.97, 0.97)"},{offset:.8,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,opacity:"1",transform:"scale3d(1, 1, 1)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],Nr=[{offset:0,opacity:"0",transform:"translate3d(0, -3000px, 0) scaleY(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, 25px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, -10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, 5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],Ur=[{offset:0,opacity:"0",transform:"translate3d(-3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],Wr=[{offset:0,opacity:"0",transform:"translate3d(3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(-25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],qr=[{offset:0,opacity:"0",transform:"translate3d(0, 3000px, 0) scaleY(5)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, 10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, -5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],Yr=[{offset:.2,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.5,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.55,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:1,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"}],Kr=[{offset:.2,transform:"translate3d(0, 10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0) scaleY(3)"}],Xr=[{offset:.2,opacity:"1",transform:"translate3d(20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0) scaleX(2)"}],jr=[{offset:.2,opacity:"1",transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0) scaleX(2)"}],Gr=[{offset:.2,transform:"translate3d(0, -10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0) scaleY(3)"}],Qr=[{offset:0,opacity:"0"},{offset:1,opacity:"1"}],Zr=[{offset:0,opacity:"0",transform:"translate3d(-100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Jr=[{offset:0,opacity:"0",transform:"translate3d(100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],ta=[{offset:0,opacity:"0",transform:"translate3d(0, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],ea=[{offset:0,opacity:"0",transform:"translate3d(0, -2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],ia=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],sa=[{offset:0,opacity:"0",transform:"translate3d(-2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],oa=[{offset:0,opacity:"0",transform:"translate3d(100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],ra=[{offset:0,opacity:"0",transform:"translate3d(2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],aa=[{offset:0,opacity:"0",transform:"translate3d(-100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],na=[{offset:0,opacity:"0",transform:"translate3d(100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],la=[{offset:0,opacity:"0",transform:"translate3d(0, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],ca=[{offset:0,opacity:"0",transform:"translate3d(0, 2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],da=[{offset:0,opacity:"1"},{offset:1,opacity:"0"}],ha=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, 100%, 0)"}],ua=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, 100%, 0)"}],pa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 100%, 0)"}],fa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0)"}],ma=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-100%, 0, 0)"}],ga=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0)"}],ba=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0)"}],va=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0)"}],ya=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, -100%, 0)"}],wa=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, -100%, 0)"}],xa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -100%, 0)"}],_a=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0)"}],ka=[{offset:0,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg)",easing:"ease-out"},{offset:.4,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)
|
|
4483
|
+
`;const ur=[{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.4,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.43,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.53,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.7,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -15px, 0) scaleY(1.05)"},{offset:.8,"transition-timing-function":"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0) scaleY(0.95)"},{offset:.9,transform:"translate3d(0, -4px, 0) scaleY(1.02)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"}],pr=[{offset:0,opacity:"1"},{offset:.25,opacity:"0"},{offset:.5,opacity:"1"},{offset:.75,opacity:"0"},{offset:1,opacity:"1"}],fr=[{offset:0,transform:"translateX(0)"},{offset:.065,transform:"translateX(-6px) rotateY(-9deg)"},{offset:.185,transform:"translateX(5px) rotateY(7deg)"},{offset:.315,transform:"translateX(-3px) rotateY(-5deg)"},{offset:.435,transform:"translateX(2px) rotateY(3deg)"},{offset:.5,transform:"translateX(0)"}],mr=[{offset:0,transform:"scale(1)"},{offset:.14,transform:"scale(1.3)"},{offset:.28,transform:"scale(1)"},{offset:.42,transform:"scale(1.3)"},{offset:.7,transform:"scale(1)"}],gr=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.111,transform:"translate3d(0, 0, 0)"},{offset:.222,transform:"skewX(-12.5deg) skewY(-12.5deg)"},{offset:.33299999999999996,transform:"skewX(6.25deg) skewY(6.25deg)"},{offset:.444,transform:"skewX(-3.125deg) skewY(-3.125deg)"},{offset:.555,transform:"skewX(1.5625deg) skewY(1.5625deg)"},{offset:.6659999999999999,transform:"skewX(-0.78125deg) skewY(-0.78125deg)"},{offset:.777,transform:"skewX(0.390625deg) skewY(0.390625deg)"},{offset:.888,transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],br=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.5,transform:"scale3d(1.05, 1.05, 1.05)"},{offset:1,transform:"scale3d(1, 1, 1)"}],vr=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.3,transform:"scale3d(1.25, 0.75, 1)"},{offset:.4,transform:"scale3d(0.75, 1.25, 1)"},{offset:.5,transform:"scale3d(1.15, 0.85, 1)"},{offset:.65,transform:"scale3d(0.95, 1.05, 1)"},{offset:.75,transform:"scale3d(1.05, 0.95, 1)"},{offset:1,transform:"scale3d(1, 1, 1)"}],yr=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],wr=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],xr=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(0, -10px, 0)"},{offset:.2,transform:"translate3d(0, 10px, 0)"},{offset:.3,transform:"translate3d(0, -10px, 0)"},{offset:.4,transform:"translate3d(0, 10px, 0)"},{offset:.5,transform:"translate3d(0, -10px, 0)"},{offset:.6,transform:"translate3d(0, 10px, 0)"},{offset:.7,transform:"translate3d(0, -10px, 0)"},{offset:.8,transform:"translate3d(0, 10px, 0)"},{offset:.9,transform:"translate3d(0, -10px, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}],_r=[{offset:.2,transform:"rotate3d(0, 0, 1, 15deg)"},{offset:.4,transform:"rotate3d(0, 0, 1, -10deg)"},{offset:.6,transform:"rotate3d(0, 0, 1, 5deg)"},{offset:.8,transform:"rotate3d(0, 0, 1, -5deg)"},{offset:1,transform:"rotate3d(0, 0, 1, 0deg)"}],kr=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.1,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.2,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.3,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.4,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.5,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.6,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.7,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.8,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.9,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:1,transform:"scale3d(1, 1, 1)"}],Cr=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.15,transform:"translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)"},{offset:.3,transform:"translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)"},{offset:.45,transform:"translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)"},{offset:.6,transform:"translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)"},{offset:.75,transform:"translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],zr=[{offset:0,transform:"translateY(-1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],$r=[{offset:0,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],Sr=[{offset:0,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],Ar=[{offset:0,transform:"translateY(1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}],Tr=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(700px) scale(0.7)",opacity:"0.7"}],Er=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"}],Dr=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"}],Lr=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(-700px) scale(0.7)",opacity:"0.7"}],Or=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.2,transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.4,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.4,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"scale3d(1.03, 1.03, 1.03)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.8,transform:"scale3d(0.97, 0.97, 0.97)"},{offset:.8,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,opacity:"1",transform:"scale3d(1, 1, 1)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],Ir=[{offset:0,opacity:"0",transform:"translate3d(0, -3000px, 0) scaleY(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, 25px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, -10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, 5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],Mr=[{offset:0,opacity:"0",transform:"translate3d(-3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],Pr=[{offset:0,opacity:"0",transform:"translate3d(3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(-25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],Rr=[{offset:0,opacity:"0",transform:"translate3d(0, 3000px, 0) scaleY(5)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, 10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, -5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}],Fr=[{offset:.2,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.5,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.55,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:1,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"}],Vr=[{offset:.2,transform:"translate3d(0, 10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0) scaleY(3)"}],Br=[{offset:.2,opacity:"1",transform:"translate3d(20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0) scaleX(2)"}],Hr=[{offset:.2,opacity:"1",transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0) scaleX(2)"}],Nr=[{offset:.2,transform:"translate3d(0, -10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0) scaleY(3)"}],Ur=[{offset:0,opacity:"0"},{offset:1,opacity:"1"}],Wr=[{offset:0,opacity:"0",transform:"translate3d(-100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],qr=[{offset:0,opacity:"0",transform:"translate3d(100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Yr=[{offset:0,opacity:"0",transform:"translate3d(0, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Kr=[{offset:0,opacity:"0",transform:"translate3d(0, -2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Xr=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],jr=[{offset:0,opacity:"0",transform:"translate3d(-2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Gr=[{offset:0,opacity:"0",transform:"translate3d(100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Qr=[{offset:0,opacity:"0",transform:"translate3d(2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Zr=[{offset:0,opacity:"0",transform:"translate3d(-100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Jr=[{offset:0,opacity:"0",transform:"translate3d(100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],ta=[{offset:0,opacity:"0",transform:"translate3d(0, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],ea=[{offset:0,opacity:"0",transform:"translate3d(0, 2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],ia=[{offset:0,opacity:"1"},{offset:1,opacity:"0"}],sa=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, 100%, 0)"}],oa=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, 100%, 0)"}],ra=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 100%, 0)"}],aa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0)"}],na=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-100%, 0, 0)"}],la=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0)"}],ca=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0)"}],da=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0)"}],ha=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, -100%, 0)"}],ua=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, -100%, 0)"}],pa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -100%, 0)"}],fa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0)"}],ma=[{offset:0,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg)",easing:"ease-out"},{offset:.4,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)
|
|
4863
4484
|
rotate3d(0, 1, 0, -190deg)`,easing:"ease-out"},{offset:.5,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)
|
|
4864
4485
|
rotate3d(0, 1, 0, -170deg)`,easing:"ease-in"},{offset:.8,transform:`perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0)
|
|
4865
|
-
rotate3d(0, 1, 0, 0deg)`,easing:"ease-in"},{offset:1,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)",easing:"ease-in"}],Ca=[{offset:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}],za=[{offset:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}],$a=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",opacity:"0"}],Sa=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",opacity:"0"}],Aa=[{offset:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)",opacity:"0"},{offset:.6,transform:"skewX(-20deg)",opacity:"1"},{offset:.8,transform:"skewX(5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Ta=[{offset:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:"0"},{offset:.6,transform:"skewX(20deg)",opacity:"1"},{offset:.8,transform:"skewX(-5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],Ea=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(-100%, 0, 0) skewX(-30deg)",opacity:"0"}],La=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:"0"}],Da=[{offset:0,transform:"rotate3d(0, 0, 1, -200deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],Ia=[{offset:0,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],Oa=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],Pa=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],Ma=[{offset:0,transform:"rotate3d(0, 0, 1, -90deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],Ra=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 200deg)",opacity:"0"}],Fa=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"}],Va=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}],Ba=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}],Ha=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 90deg)",opacity:"0"}],Na=[{offset:0,transform:"translate3d(0, -100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],Ua=[{offset:0,transform:"translate3d(-100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],Wa=[{offset:0,transform:"translate3d(100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],qa=[{offset:0,transform:"translate3d(0, 100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],Ya=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, 100%, 0)"}],Ka=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(-100%, 0, 0)"}],Xa=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(100%, 0, 0)"}],ja=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, -100%, 0)"}],Ga=[{offset:0,easing:"ease-in-out"},{offset:.2,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.4,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:.6,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.8,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:1,transform:"translate3d(0, 700px, 0)",opacity:"0"}],Qa=[{offset:0,opacity:"0",transform:"scale(0.1) rotate(30deg)","transform-origin":"center bottom"},{offset:.5,transform:"rotate(-10deg)"},{offset:.7,transform:"rotate(3deg)"},{offset:1,opacity:"1",transform:"scale(1)"}],Za=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],Ja=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}],tn=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:.5,opacity:"1"}],en=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],sn=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],on=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],rn=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],an=[{offset:0,opacity:"1"},{offset:.5,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:1,opacity:"0"}],nn=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],ln=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(-2000px, 0, 0)"}],cn=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(2000px, 0, 0)"}],dn=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Gi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",easeInSine:"cubic-bezier(0.47, 0, 0.745, 0.715)",easeOutSine:"cubic-bezier(0.39, 0.575, 0.565, 1)",easeInOutSine:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeInQuad:"cubic-bezier(0.55, 0.085, 0.68, 0.53)",easeOutQuad:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",easeInOutQuad:"cubic-bezier(0.455, 0.03, 0.515, 0.955)",easeInCubic:"cubic-bezier(0.55, 0.055, 0.675, 0.19)",easeOutCubic:"cubic-bezier(0.215, 0.61, 0.355, 1)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1)",easeInQuart:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",easeOutQuart:"cubic-bezier(0.165, 0.84, 0.44, 1)",easeInOutQuart:"cubic-bezier(0.77, 0, 0.175, 1)",easeInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",easeOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutQuint:"cubic-bezier(0.86, 0, 0.07, 1)",easeInExpo:"cubic-bezier(0.95, 0.05, 0.795, 0.035)",easeOutExpo:"cubic-bezier(0.19, 1, 0.22, 1)",easeInOutExpo:"cubic-bezier(1, 0, 0, 1)",easeInCirc:"cubic-bezier(0.6, 0.04, 0.98, 0.335)",easeOutCirc:"cubic-bezier(0.075, 0.82, 0.165, 1)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.15, 0.86)",easeInBack:"cubic-bezier(0.6, -0.28, 0.735, 0.045)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",easeInOutBack:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"},hn=Object.freeze(Object.defineProperty({__proto__:null,backInDown:Ir,backInLeft:Or,backInRight:Pr,backInUp:Mr,backOutDown:Rr,backOutLeft:Fr,backOutRight:Vr,backOutUp:Br,bounce:wr,bounceIn:Hr,bounceInDown:Nr,bounceInLeft:Ur,bounceInRight:Wr,bounceInUp:qr,bounceOut:Yr,bounceOutDown:Kr,bounceOutLeft:Xr,bounceOutRight:jr,bounceOutUp:Gr,easings:Gi,fadeIn:Qr,fadeInBottomLeft:Zr,fadeInBottomRight:Jr,fadeInDown:ta,fadeInDownBig:ea,fadeInLeft:ia,fadeInLeftBig:sa,fadeInRight:oa,fadeInRightBig:ra,fadeInTopLeft:aa,fadeInTopRight:na,fadeInUp:la,fadeInUpBig:ca,fadeOut:da,fadeOutBottomLeft:ha,fadeOutBottomRight:ua,fadeOutDown:pa,fadeOutDownBig:fa,fadeOutLeft:ma,fadeOutLeftBig:ga,fadeOutRight:ba,fadeOutRightBig:va,fadeOutTopLeft:ya,fadeOutTopRight:wa,fadeOutUp:xa,fadeOutUpBig:_a,flash:xr,flip:ka,flipInX:Ca,flipInY:za,flipOutX:$a,flipOutY:Sa,headShake:_r,heartBeat:kr,hinge:Ga,jackInTheBox:Qa,jello:Cr,lightSpeedInLeft:Aa,lightSpeedInRight:Ta,lightSpeedOutLeft:Ea,lightSpeedOutRight:La,pulse:zr,rollIn:Za,rollOut:Ja,rotateIn:Da,rotateInDownLeft:Ia,rotateInDownRight:Oa,rotateInUpLeft:Pa,rotateInUpRight:Ma,rotateOut:Ra,rotateOutDownLeft:Fa,rotateOutDownRight:Va,rotateOutUpLeft:Ba,rotateOutUpRight:Ha,rubberBand:$r,shake:Sr,shakeX:Ar,shakeY:Tr,slideInDown:Na,slideInLeft:Ua,slideInRight:Wa,slideInUp:qa,slideOutDown:Ya,slideOutLeft:Ka,slideOutRight:Xa,slideOutUp:ja,swing:Er,tada:Lr,wobble:Dr,zoomIn:tn,zoomInDown:en,zoomInLeft:sn,zoomInRight:on,zoomInUp:rn,zoomOut:an,zoomOutDown:nn,zoomOutLeft:ln,zoomOutRight:cn,zoomOutUp:dn},Symbol.toStringTag,{value:"Module"}));var tt=class extends E{constructor(){super(...arguments),this.hasStarted=!1,this.name="none",this.play=!1,this.delay=0,this.direction="normal",this.duration=1e3,this.easing="linear",this.endDelay=0,this.fill="auto",this.iterations=1/0,this.iterationStart=0,this.playbackRate=1,this.handleAnimationFinish=()=>{this.play=!1,this.hasStarted=!1,this.emit("sl-finish")},this.handleAnimationCancel=()=>{this.play=!1,this.hasStarted=!1,this.emit("sl-cancel")}}get currentTime(){var t,e;return(e=(t=this.animation)==null?void 0:t.currentTime)!=null?e:0}set currentTime(t){this.animation&&(this.animation.currentTime=t)}connectedCallback(){super.connectedCallback(),this.createAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.destroyAnimation()}handleSlotChange(){this.destroyAnimation(),this.createAnimation()}async createAnimation(){var t,e;const i=(t=Gi[this.easing])!=null?t:this.easing,s=(e=this.keyframes)!=null?e:hn[this.name],a=(await this.defaultSlot).assignedElements()[0];return!a||!s?!1:(this.destroyAnimation(),this.animation=a.animate(s,{delay:this.delay,direction:this.direction,duration:this.duration,easing:i,endDelay:this.endDelay,fill:this.fill,iterationStart:this.iterationStart,iterations:this.iterations}),this.animation.playbackRate=this.playbackRate,this.animation.addEventListener("cancel",this.handleAnimationCancel),this.animation.addEventListener("finish",this.handleAnimationFinish),this.play?(this.hasStarted=!0,this.emit("sl-start")):this.animation.pause(),!0)}destroyAnimation(){this.animation&&(this.animation.cancel(),this.animation.removeEventListener("cancel",this.handleAnimationCancel),this.animation.removeEventListener("finish",this.handleAnimationFinish),this.hasStarted=!1)}handleAnimationChange(){this.hasUpdated&&this.createAnimation()}handlePlayChange(){return this.animation?(this.play&&!this.hasStarted&&(this.hasStarted=!0,this.emit("sl-start")),this.play?this.animation.play():this.animation.pause(),!0):!1}handlePlaybackRateChange(){this.animation&&(this.animation.playbackRate=this.playbackRate)}cancel(){var t;(t=this.animation)==null||t.cancel()}finish(){var t;(t=this.animation)==null||t.finish()}render(){return x` <slot @slotchange=${this.handleSlotChange}></slot> `}};tt.styles=[O,yr];o([gs("slot")],tt.prototype,"defaultSlot",2);o([n()],tt.prototype,"name",2);o([n({type:Boolean,reflect:!0})],tt.prototype,"play",2);o([n({type:Number})],tt.prototype,"delay",2);o([n()],tt.prototype,"direction",2);o([n({type:Number})],tt.prototype,"duration",2);o([n()],tt.prototype,"easing",2);o([n({attribute:"end-delay",type:Number})],tt.prototype,"endDelay",2);o([n()],tt.prototype,"fill",2);o([n({type:Number})],tt.prototype,"iterations",2);o([n({attribute:"iteration-start",type:Number})],tt.prototype,"iterationStart",2);o([n({attribute:!1})],tt.prototype,"keyframes",2);o([n({attribute:"playback-rate",type:Number})],tt.prototype,"playbackRate",2);o([k(["name","delay","direction","duration","easing","endDelay","fill","iterations","iterationsStart","keyframes"])],tt.prototype,"handleAnimationChange",1);o([k("play")],tt.prototype,"handlePlayChange",1);o([k("playbackRate")],tt.prototype,"handlePlaybackRateChange",1);tt.define("sl-animation");var un=I`
|
|
4486
|
+
rotate3d(0, 1, 0, 0deg)`,easing:"ease-in"},{offset:1,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)",easing:"ease-in"}],ga=[{offset:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}],ba=[{offset:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}],va=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",opacity:"0"}],ya=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",opacity:"0"}],wa=[{offset:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)",opacity:"0"},{offset:.6,transform:"skewX(-20deg)",opacity:"1"},{offset:.8,transform:"skewX(5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],xa=[{offset:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:"0"},{offset:.6,transform:"skewX(20deg)",opacity:"1"},{offset:.8,transform:"skewX(-5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}],_a=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(-100%, 0, 0) skewX(-30deg)",opacity:"0"}],ka=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:"0"}],Ca=[{offset:0,transform:"rotate3d(0, 0, 1, -200deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],za=[{offset:0,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],$a=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],Sa=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],Aa=[{offset:0,transform:"rotate3d(0, 0, 1, -90deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}],Ta=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 200deg)",opacity:"0"}],Ea=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"}],Da=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}],La=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}],Oa=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 90deg)",opacity:"0"}],Ia=[{offset:0,transform:"translate3d(0, -100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],Ma=[{offset:0,transform:"translate3d(-100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],Pa=[{offset:0,transform:"translate3d(100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],Ra=[{offset:0,transform:"translate3d(0, 100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}],Fa=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, 100%, 0)"}],Va=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(-100%, 0, 0)"}],Ba=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(100%, 0, 0)"}],Ha=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, -100%, 0)"}],Na=[{offset:0,easing:"ease-in-out"},{offset:.2,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.4,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:.6,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.8,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:1,transform:"translate3d(0, 700px, 0)",opacity:"0"}],Ua=[{offset:0,opacity:"0",transform:"scale(0.1) rotate(30deg)","transform-origin":"center bottom"},{offset:.5,transform:"rotate(-10deg)"},{offset:.7,transform:"rotate(3deg)"},{offset:1,opacity:"1",transform:"scale(1)"}],Wa=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}],qa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}],Ya=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:.5,opacity:"1"}],Ka=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Xa=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],ja=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Ga=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Qa=[{offset:0,opacity:"1"},{offset:.5,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:1,opacity:"0"}],Za=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],Ja=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(-2000px, 0, 0)"}],tn=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(2000px, 0, 0)"}],en=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}],qi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",easeInSine:"cubic-bezier(0.47, 0, 0.745, 0.715)",easeOutSine:"cubic-bezier(0.39, 0.575, 0.565, 1)",easeInOutSine:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeInQuad:"cubic-bezier(0.55, 0.085, 0.68, 0.53)",easeOutQuad:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",easeInOutQuad:"cubic-bezier(0.455, 0.03, 0.515, 0.955)",easeInCubic:"cubic-bezier(0.55, 0.055, 0.675, 0.19)",easeOutCubic:"cubic-bezier(0.215, 0.61, 0.355, 1)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1)",easeInQuart:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",easeOutQuart:"cubic-bezier(0.165, 0.84, 0.44, 1)",easeInOutQuart:"cubic-bezier(0.77, 0, 0.175, 1)",easeInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",easeOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutQuint:"cubic-bezier(0.86, 0, 0.07, 1)",easeInExpo:"cubic-bezier(0.95, 0.05, 0.795, 0.035)",easeOutExpo:"cubic-bezier(0.19, 1, 0.22, 1)",easeInOutExpo:"cubic-bezier(1, 0, 0, 1)",easeInCirc:"cubic-bezier(0.6, 0.04, 0.98, 0.335)",easeOutCirc:"cubic-bezier(0.075, 0.82, 0.165, 1)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.15, 0.86)",easeInBack:"cubic-bezier(0.6, -0.28, 0.735, 0.045)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",easeInOutBack:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"},sn=Object.freeze(Object.defineProperty({__proto__:null,backInDown:zr,backInLeft:$r,backInRight:Sr,backInUp:Ar,backOutDown:Tr,backOutLeft:Er,backOutRight:Dr,backOutUp:Lr,bounce:ur,bounceIn:Or,bounceInDown:Ir,bounceInLeft:Mr,bounceInRight:Pr,bounceInUp:Rr,bounceOut:Fr,bounceOutDown:Vr,bounceOutLeft:Br,bounceOutRight:Hr,bounceOutUp:Nr,easings:qi,fadeIn:Ur,fadeInBottomLeft:Wr,fadeInBottomRight:qr,fadeInDown:Yr,fadeInDownBig:Kr,fadeInLeft:Xr,fadeInLeftBig:jr,fadeInRight:Gr,fadeInRightBig:Qr,fadeInTopLeft:Zr,fadeInTopRight:Jr,fadeInUp:ta,fadeInUpBig:ea,fadeOut:ia,fadeOutBottomLeft:sa,fadeOutBottomRight:oa,fadeOutDown:ra,fadeOutDownBig:aa,fadeOutLeft:na,fadeOutLeftBig:la,fadeOutRight:ca,fadeOutRightBig:da,fadeOutTopLeft:ha,fadeOutTopRight:ua,fadeOutUp:pa,fadeOutUpBig:fa,flash:pr,flip:ma,flipInX:ga,flipInY:ba,flipOutX:va,flipOutY:ya,headShake:fr,heartBeat:mr,hinge:Na,jackInTheBox:Ua,jello:gr,lightSpeedInLeft:wa,lightSpeedInRight:xa,lightSpeedOutLeft:_a,lightSpeedOutRight:ka,pulse:br,rollIn:Wa,rollOut:qa,rotateIn:Ca,rotateInDownLeft:za,rotateInDownRight:$a,rotateInUpLeft:Sa,rotateInUpRight:Aa,rotateOut:Ta,rotateOutDownLeft:Ea,rotateOutDownRight:Da,rotateOutUpLeft:La,rotateOutUpRight:Oa,rubberBand:vr,shake:yr,shakeX:wr,shakeY:xr,slideInDown:Ia,slideInLeft:Ma,slideInRight:Pa,slideInUp:Ra,slideOutDown:Fa,slideOutLeft:Va,slideOutRight:Ba,slideOutUp:Ha,swing:_r,tada:kr,wobble:Cr,zoomIn:Ya,zoomInDown:Ka,zoomInLeft:Xa,zoomInRight:ja,zoomInUp:Ga,zoomOut:Qa,zoomOutDown:Za,zoomOutLeft:Ja,zoomOutRight:tn,zoomOutUp:en},Symbol.toStringTag,{value:"Module"}));var tt=class extends D{constructor(){super(...arguments),this.hasStarted=!1,this.name="none",this.play=!1,this.delay=0,this.direction="normal",this.duration=1e3,this.easing="linear",this.endDelay=0,this.fill="auto",this.iterations=1/0,this.iterationStart=0,this.playbackRate=1,this.handleAnimationFinish=()=>{this.play=!1,this.hasStarted=!1,this.emit("sl-finish")},this.handleAnimationCancel=()=>{this.play=!1,this.hasStarted=!1,this.emit("sl-cancel")}}get currentTime(){var t,e;return(e=(t=this.animation)==null?void 0:t.currentTime)!=null?e:0}set currentTime(t){this.animation&&(this.animation.currentTime=t)}connectedCallback(){super.connectedCallback(),this.createAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.destroyAnimation()}handleSlotChange(){this.destroyAnimation(),this.createAnimation()}async createAnimation(){var t,e;const i=(t=qi[this.easing])!=null?t:this.easing,s=(e=this.keyframes)!=null?e:sn[this.name],a=(await this.defaultSlot).assignedElements()[0];return!a||!s?!1:(this.destroyAnimation(),this.animation=a.animate(s,{delay:this.delay,direction:this.direction,duration:this.duration,easing:i,endDelay:this.endDelay,fill:this.fill,iterationStart:this.iterationStart,iterations:this.iterations}),this.animation.playbackRate=this.playbackRate,this.animation.addEventListener("cancel",this.handleAnimationCancel),this.animation.addEventListener("finish",this.handleAnimationFinish),this.play?(this.hasStarted=!0,this.emit("sl-start")):this.animation.pause(),!0)}destroyAnimation(){this.animation&&(this.animation.cancel(),this.animation.removeEventListener("cancel",this.handleAnimationCancel),this.animation.removeEventListener("finish",this.handleAnimationFinish),this.hasStarted=!1)}handleAnimationChange(){this.hasUpdated&&this.createAnimation()}handlePlayChange(){return this.animation?(this.play&&!this.hasStarted&&(this.hasStarted=!0,this.emit("sl-start")),this.play?this.animation.play():this.animation.pause(),!0):!1}handlePlaybackRateChange(){this.animation&&(this.animation.playbackRate=this.playbackRate)}cancel(){var t;(t=this.animation)==null||t.cancel()}finish(){var t;(t=this.animation)==null||t.finish()}render(){return _` <slot @slotchange=${this.handleSlotChange}></slot> `}};tt.styles=[M,hr];o([ps("slot")],tt.prototype,"defaultSlot",2);o([n()],tt.prototype,"name",2);o([n({type:Boolean,reflect:!0})],tt.prototype,"play",2);o([n({type:Number})],tt.prototype,"delay",2);o([n()],tt.prototype,"direction",2);o([n({type:Number})],tt.prototype,"duration",2);o([n()],tt.prototype,"easing",2);o([n({attribute:"end-delay",type:Number})],tt.prototype,"endDelay",2);o([n()],tt.prototype,"fill",2);o([n({type:Number})],tt.prototype,"iterations",2);o([n({attribute:"iteration-start",type:Number})],tt.prototype,"iterationStart",2);o([n({attribute:!1})],tt.prototype,"keyframes",2);o([n({attribute:"playback-rate",type:Number})],tt.prototype,"playbackRate",2);o([k(["name","delay","direction","duration","easing","endDelay","fill","iterations","iterationsStart","keyframes"])],tt.prototype,"handleAnimationChange",1);o([k("play")],tt.prototype,"handlePlayChange",1);o([k("playbackRate")],tt.prototype,"handlePlaybackRateChange",1);tt.define("sl-animation");var on=I`
|
|
4866
4487
|
:host {
|
|
4867
4488
|
display: inline-flex;
|
|
4868
4489
|
}
|
|
@@ -4951,13 +4572,13 @@ import{F as Gt,c as Zi,a as Ji,v as ts}from"./chunk.KWPBDQ6I-Bf3dc1GJ.js";import
|
|
|
4951
4572
|
box-shadow: 0 0 0 0 transparent;
|
|
4952
4573
|
}
|
|
4953
4574
|
}
|
|
4954
|
-
`,
|
|
4575
|
+
`,be=class extends D{constructor(){super(...arguments),this.variant="primary",this.pill=!1,this.pulse=!1}render(){return _`
|
|
4955
4576
|
<span
|
|
4956
4577
|
part="base"
|
|
4957
|
-
class=${
|
|
4578
|
+
class=${O({badge:!0,"badge--primary":this.variant==="primary","badge--success":this.variant==="success","badge--neutral":this.variant==="neutral","badge--warning":this.variant==="warning","badge--danger":this.variant==="danger","badge--pill":this.pill,"badge--pulse":this.pulse})}
|
|
4958
4579
|
role="status"
|
|
4959
4580
|
>
|
|
4960
4581
|
<slot></slot>
|
|
4961
4582
|
</span>
|
|
4962
|
-
`}};
|
|
4963
|
-
//# sourceMappingURL=x-menu-
|
|
4583
|
+
`}};be.styles=[M,on];o([n({reflect:!0})],be.prototype,"variant",2);o([n({type:Boolean,reflect:!0})],be.prototype,"pill",2);o([n({type:Boolean,reflect:!0})],be.prototype,"pulse",2);be.define("sl-badge");const Dn=ls({__name:"x-menu",props:{title:{}},setup(t){return(e,i)=>{const s=Fe("sl-button"),r=Fe("sl-menu"),a=Fe("sl-dropdown");return cs(),ds(us,null,[Zt(a,null,{default:Jt(()=>[Zt(s,{slot:"trigger",caret:""},{default:Jt(()=>[hs(" Edit ")]),_:1}),Zt(r,null,{default:Jt(()=>[Ve(e.$slots,"default")]),_:3})]),_:3}),Zt(a,null,{default:Jt(()=>[Zt(s,null,{default:Jt(()=>[Ve(e.$slots,"activator")]),_:3}),Zt(r,null,{default:Jt(()=>[Ve(e.$slots,"default")]),_:3})]),_:3})],64)}}});export{Dn as default};
|
|
4584
|
+
//# sourceMappingURL=x-menu-BPTY2_Pm.js.map
|