placer-toolkit 1.0.0-alpha.5 → 1.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -18
- package/THIRD-PARTY-NOTICES.txt +43 -0
- package/cdn/animations/index.js +1 -1
- package/cdn/chunks/{chunk.5QB74NSW.js → chunk.2LEQ73CA.js} +1 -1
- package/cdn/chunks/{chunk.H7OMNM5A.js → chunk.3R5INWZO.js} +1 -1
- package/cdn/chunks/{chunk.5PZ5YIKX.js → chunk.3RHKCNSZ.js} +1 -1
- package/cdn/chunks/{chunk.DW7IXGXV.js → chunk.4OP2ATT4.js} +1 -1
- package/cdn/chunks/{chunk.IQSH2ZTT.js → chunk.66BPSYJP.js} +1 -1
- package/cdn/chunks/{chunk.DLNRYZV5.js → chunk.6ETLWPZZ.js} +1 -1
- package/cdn/chunks/{chunk.MPZ7M4G3.js → chunk.7T7L5MHU.js} +1 -1
- package/cdn/chunks/chunk.AGTJOSFZ.js +1 -0
- package/cdn/chunks/{chunk.YPV6KKNK.js → chunk.AQEEED44.js} +1 -1
- package/cdn/chunks/{chunk.7JOPG7OA.js → chunk.BGWRV7ST.js} +1 -1
- package/cdn/chunks/{chunk.HAO3DNVE.js → chunk.BLZLQQ7F.js} +1 -1
- package/cdn/chunks/{chunk.RTXUJVC6.js → chunk.BNXOAFB6.js} +1 -1
- package/cdn/chunks/{chunk.UCOHFRYL.js → chunk.CHPEGUEA.js} +1 -1
- package/cdn/chunks/{chunk.7LXUTG7C.js → chunk.COH3STCV.js} +1 -1
- package/cdn/chunks/{chunk.YV574WSN.js → chunk.CYO35CGI.js} +1 -1
- package/cdn/chunks/{chunk.Z3W52AAR.js → chunk.DO2IP7CR.js} +1 -1
- package/cdn/chunks/{chunk.5DGCA2GA.js → chunk.DOVYYALG.js} +1 -1
- package/cdn/chunks/{chunk.JPAPGNT5.js → chunk.EUIGONYV.js} +1 -1
- package/cdn/chunks/{chunk.ELC5NABM.js → chunk.EVWXEBOJ.js} +1 -1
- package/cdn/chunks/{chunk.Z3YDAS2A.js → chunk.FBMLKLCZ.js} +1 -1
- package/cdn/chunks/{chunk.QUZH2MFB.js → chunk.FDM6W2WT.js} +1 -1
- package/cdn/chunks/chunk.FW6AK3MU.js +57 -0
- package/cdn/chunks/{chunk.2J4EDLZA.js → chunk.GINYSCJR.js} +1 -1
- package/cdn/chunks/{chunk.JKWXFGME.js → chunk.HJPFU3ID.js} +1 -1
- package/cdn/chunks/{chunk.6GWWHTAD.js → chunk.JAMC27OY.js} +1 -1
- package/cdn/chunks/{chunk.SXR3ZOUR.js → chunk.JNYO6Q65.js} +1 -1
- package/cdn/chunks/{chunk.X2XIWUZK.js → chunk.L2OUKAQJ.js} +1 -1
- package/cdn/chunks/{chunk.Y7HJFCRV.js → chunk.L5FZSNU3.js} +1 -1
- package/cdn/chunks/{chunk.6YT56NQS.js → chunk.LHNZEL67.js} +1 -1
- package/cdn/chunks/{chunk.K7PPPERW.js → chunk.LPCI7AKR.js} +1 -1
- package/cdn/chunks/{chunk.3753WX3H.js → chunk.MCALT32Y.js} +1 -1
- package/cdn/chunks/{chunk.EHF2RGUG.js → chunk.OJNL6CLR.js} +1 -1
- package/cdn/chunks/{chunk.BH4LX3VX.js → chunk.PQFUMS2E.js} +1 -1
- package/cdn/chunks/{chunk.V4GOE4ZR.js → chunk.QRJWE7J4.js} +2 -2
- package/cdn/chunks/{chunk.T3IPFHLB.js → chunk.R7YINGT2.js} +6 -3
- package/cdn/chunks/{chunk.5FN42WGV.js → chunk.SNCCLTPF.js} +1 -1
- package/cdn/chunks/{chunk.YTDF4ELJ.js → chunk.SU2S7U4Q.js} +1 -1
- package/cdn/chunks/{chunk.FURMYOHU.js → chunk.TEVYU7CV.js} +1 -1
- package/cdn/chunks/{chunk.TH3CT7TT.js → chunk.THBASS6Z.js} +1 -1
- package/cdn/chunks/{chunk.AYBKOF2S.js → chunk.U7BNGYYH.js} +1 -1
- package/cdn/chunks/{chunk.UZVNZXYI.js → chunk.ULHJ34TX.js} +1 -1
- package/cdn/chunks/{chunk.CMQ2P4R6.js → chunk.V4BDF463.js} +1 -1
- package/cdn/chunks/{chunk.IVDHCEEF.js → chunk.VC5NWWKV.js} +1 -1
- package/cdn/chunks/{chunk.TQABUXU3.js → chunk.VQ32SYUP.js} +1 -1
- package/cdn/chunks/{chunk.OVIGPLO4.js → chunk.WMZEFHAE.js} +1 -1
- package/cdn/chunks/{chunk.GNNNCEZF.js → chunk.XEKUYKCA.js} +1 -1
- package/cdn/chunks/{chunk.M6UZ2Q6Z.js → chunk.XGGS3EZ4.js} +1 -1
- package/cdn/chunks/{chunk.63N43BIV.js → chunk.XHFEQY3T.js} +1 -1
- package/cdn/chunks/{chunk.ECC2BHPL.js → chunk.XREJO5UU.js} +1 -1
- package/cdn/chunks/{chunk.NZ4DSAJ5.js → chunk.XVSK7IGY.js} +1 -1
- package/cdn/chunks/{chunk.MK5VRQZE.js → chunk.Y2YLS6EQ.js} +1 -1
- package/cdn/chunks/{chunk.KQPWYJ6U.js → chunk.ZIEYXQ6X.js} +1 -1
- package/cdn/components/animation/animation.js +1 -1
- package/cdn/components/animation/animations.js +1 -1
- package/cdn/components/avatar/avatar.js +1 -1
- package/cdn/components/badge/badge.js +1 -1
- package/cdn/components/button/button.js +1 -1
- package/cdn/components/button-group/button-group.js +1 -1
- package/cdn/components/callout/callout.js +1 -1
- package/cdn/components/card/card.js +1 -1
- package/cdn/components/checkbox/checkbox.js +1 -1
- package/cdn/components/color-picker/color-picker.js +1 -1
- package/cdn/components/comparer/comparer.js +1 -1
- package/cdn/components/copy-button/copy-button.js +1 -1
- package/cdn/components/details/details.js +1 -1
- package/cdn/components/dialog/dialog.js +1 -1
- package/cdn/components/divider/divider.js +1 -1
- package/cdn/components/drawer/drawer.js +1 -1
- package/cdn/components/dropdown/dropdown.js +1 -1
- package/cdn/components/dropdown-item/dropdown-item.js +1 -1
- package/cdn/components/format-bytes/format-bytes.js +1 -1
- package/cdn/components/format-date/format-date.js +1 -1
- package/cdn/components/format-number/format-number.js +1 -1
- package/cdn/components/icon/icon.js +1 -1
- package/cdn/components/input/input.js +1 -1
- package/cdn/components/mutation-observer/mutation-observer.js +1 -1
- package/cdn/components/option/option.js +1 -1
- package/cdn/components/popup/popup.js +1 -1
- package/cdn/components/qr-code/qr-code.js +1 -1
- package/cdn/components/radio/radio.js +1 -1
- package/cdn/components/radio-group/radio-group.js +1 -1
- package/cdn/components/rating/rating.js +1 -1
- package/cdn/components/resize-observer/resize-observer.js +1 -1
- package/cdn/components/scroller/scroller.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/skeleton/skeleton.js +1 -1
- package/cdn/components/slider/slider.js +1 -1
- package/cdn/components/spinner/spinner.js +1 -1
- package/cdn/components/switch/switch.js +1 -1
- package/cdn/components/tab/tab.js +1 -1
- package/cdn/components/tab-group/tab-group.js +1 -1
- package/cdn/components/tab-panel/tab-panel.js +1 -1
- package/cdn/components/tag/tag.js +1 -1
- package/cdn/components/textarea/textarea.js +1 -1
- package/cdn/components/tooltip/tooltip.js +1 -1
- package/cdn/components/video-player/video-player.js +1 -1
- package/cdn/custom-elements.json +5957 -5966
- package/cdn/internal/default-value.js +1 -1
- package/cdn/internal/math.js +1 -1
- package/cdn/internal/placer-element.js +1 -1
- package/cdn/internal/placer-form-associated-element.js +1 -1
- package/cdn/placer.js +1 -1
- package/cdn/translations/ar.js +1 -1
- package/cdn/translations/bg.js +1 -1
- package/cdn/translations/bn.js +1 -1
- package/cdn/translations/bs.js +1 -1
- package/cdn/translations/ca.js +1 -1
- package/cdn/translations/cs.js +1 -1
- package/cdn/translations/cy.js +1 -1
- package/cdn/translations/da.js +1 -1
- package/cdn/translations/de-at.js +1 -1
- package/cdn/translations/de-ch.js +1 -1
- package/cdn/translations/de.js +1 -1
- package/cdn/translations/el-polyton.js +1 -1
- package/cdn/translations/el.js +1 -1
- package/cdn/translations/en-gb.js +1 -1
- package/cdn/translations/en.js +1 -1
- package/cdn/translations/es-es.js +1 -1
- package/cdn/translations/es.js +1 -1
- package/cdn/translations/et.js +1 -1
- package/cdn/translations/eu.js +1 -1
- package/cdn/translations/fa.js +1 -1
- package/cdn/translations/fi.js +1 -1
- package/cdn/translations/fil.js +1 -1
- package/cdn/translations/fo.js +1 -1
- package/cdn/translations/fr-ca.js +1 -1
- package/cdn/translations/fr.js +1 -1
- package/cdn/translations/ga.js +1 -1
- package/cdn/translations/gu.js +1 -1
- package/cdn/translations/he.js +1 -1
- package/cdn/translations/hi.js +1 -1
- package/cdn/translations/hr.js +1 -1
- package/cdn/translations/hu.js +1 -1
- package/cdn/translations/id.js +1 -1
- package/cdn/translations/index.js +1 -1
- package/cdn/translations/is.js +1 -1
- package/cdn/translations/it.js +1 -1
- package/cdn/translations/ja.js +1 -1
- package/cdn/translations/ka.js +1 -1
- package/cdn/translations/kk-latn.js +1 -1
- package/cdn/translations/kk.js +1 -1
- package/cdn/translations/ko.js +1 -1
- package/cdn/translations/lb.js +1 -1
- package/cdn/translations/lo.js +1 -1
- package/cdn/translations/lt.js +1 -1
- package/cdn/translations/lv.js +1 -1
- package/cdn/translations/mr.js +1 -1
- package/cdn/translations/ms.js +1 -1
- package/cdn/translations/mt.js +1 -1
- package/cdn/translations/nb.js +1 -1
- package/cdn/translations/nl-be.js +1 -1
- package/cdn/translations/nl.js +1 -1
- package/cdn/translations/nn.js +1 -1
- package/cdn/translations/pa-arab.js +1 -1
- package/cdn/translations/pa.js +1 -1
- package/cdn/translations/pl.js +1 -1
- package/cdn/translations/ps.js +1 -1
- package/cdn/translations/pt-br.js +1 -1
- package/cdn/translations/pt-pt.js +1 -1
- package/cdn/translations/pt.js +1 -1
- package/cdn/translations/ro.js +1 -1
- package/cdn/translations/ru.js +1 -1
- package/cdn/translations/sk.js +1 -1
- package/cdn/translations/sl.js +1 -1
- package/cdn/translations/sq.js +1 -1
- package/cdn/translations/sr.js +1 -1
- package/cdn/translations/sv.js +1 -1
- package/cdn/translations/sw.js +1 -1
- package/cdn/translations/te.js +1 -1
- package/cdn/translations/th.js +1 -1
- package/cdn/translations/tl.js +1 -1
- package/cdn/translations/tr.js +1 -1
- package/cdn/translations/uk.js +1 -1
- package/cdn/translations/ur.js +1 -1
- package/cdn/translations/vi.js +1 -1
- package/cdn/translations/zh-cn.js +1 -1
- package/cdn/translations/zh-hk.js +1 -1
- package/cdn/translations/zh-tw.js +1 -1
- package/cdn/utilities/animation.js +1 -1
- package/cdn/utilities/localize.js +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -1
- package/dist/components/dropdown/dropdown.js +2 -2
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/option/option.js +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.js +255 -308
- package/dist/components/radio-group/radio-group.d.ts +2 -3
- package/dist/components/radio-group/radio-group.js +4 -16
- package/dist/components/select/select.js +1 -1
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/video-player/video-player.js +2 -2
- package/dist/custom-elements.json +2592 -2601
- package/dist/internal/math.js +2 -2
- package/dist/placer.d.ts +0 -1
- package/dist/placer.js +6 -39
- package/licenses/templates/0BSD.txt +10 -0
- package/licenses/templates/Apache-2.0.txt +64 -0
- package/licenses/templates/BSD-3-Clause.txt +9 -0
- package/licenses/templates/BlueOak-1.0.0.txt +31 -0
- package/licenses/templates/MIT.txt +5 -0
- package/package.json +9 -9
- package/THIRD-PARTY-NOTICES.md +0 -441
- package/cdn/chunks/chunk.7IO6HSMP.js +0 -1
- package/cdn/chunks/chunk.EQSNSOXP.js +0 -1
- package/cdn/chunks/chunk.SQU2TVOM.js +0 -83
- package/cdn/utilities/form.js +0 -1
- package/dist/utilities/form.d.ts +0 -1
- package/dist/utilities/form.js +0 -21
- /package/cdn/chunks/{chunk.SGKHPA3Q.js → chunk.DEAAULRI.js} +0 -0
- /package/cdn/chunks/{chunk.YQLPGQHO.js → chunk.VCGQQWP5.js} +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
<!-- SPDX-License-Identifier: MIT -->
|
|
2
|
-
|
|
3
1
|
# <picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/placer-toolkit/placer-toolkit/refs/heads/main/packages/placer-toolkit/public/logo-wordmark-dark.svg"></source><source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/placer-toolkit/placer-toolkit/refs/heads/main/packages/placer-toolkit/public/logo-wordmark-light.svg"></source><img src="https://raw.githubusercontent.com/placer-toolkit/placer-toolkit/refs/heads/main/packages/placer-toolkit/public/logo-wordmark-light.svg" alt="Placer Toolkit" width="50%" /></picture>
|
|
4
2
|
|
|
5
3
|
### Flexible. Accessible. Web Components.
|
|
@@ -39,22 +37,6 @@ pnpm dev --host # If you want to expose the dev server on your network
|
|
|
39
37
|
|
|
40
38
|
This will spin up the dev server on `localhost:4321`.
|
|
41
39
|
|
|
42
|
-
## 💖 Special thanks
|
|
43
|
-
|
|
44
|
-
Placer Toolkit was built with the help of these fantastic libraries:
|
|
45
|
-
|
|
46
|
-
- [Lit](https://lit.dev)w
|
|
47
|
-
- [Astro](https://astro.build)
|
|
48
|
-
- [Floating UI](https://floating-ui.com)
|
|
49
|
-
- [Custom Elements Manifest](https://custom-elements-manifest.open-wc.org)
|
|
50
|
-
- [Pagefind](https://pagefind.app)
|
|
51
|
-
|
|
52
|
-
Additionally, Placer Toolkit is heavily inspired by [Web Awesome](https://webawesome.com)—a meticulously designed and highly customisable web component library. Web Awesome is licensed under the [MIT License](./licenses/@awesome.me/webawesome/LICENSE.md).
|
|
53
|
-
|
|
54
|
-
The default icon set is [Font Awesome](https://fontawesome.com) which is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0).
|
|
55
|
-
|
|
56
|
-
For the entire list of open‐source libraries and frameworks, see [THIRD-PARTY-NOTICES.md](./THIRD-PARTY-NOTICES.md) for more information.
|
|
57
|
-
|
|
58
40
|
## 📄 Licence
|
|
59
41
|
|
|
60
42
|
This project uses a modular licensing system and different parts of the codebase are licensed under different licences.
|
|
@@ -66,4 +48,12 @@ This project uses a modular licensing system and different parts of the codebase
|
|
|
66
48
|
|
|
67
49
|
See the [licence page](https://placer-toolkit.vercel.app/docs/legal/licence) for more information.
|
|
68
50
|
|
|
51
|
+
### 📦 Dependencies
|
|
52
|
+
|
|
53
|
+
Substantial portions of this project are from [Web Awesome](https://webawesome.com), the code is licensed under the [MIT License](./licenses/@awesome.me/webawesome/LICENSE.md).
|
|
54
|
+
|
|
55
|
+
See [THIRD-PARTY-NOTICES.txt](./THIRD-PARTY-NOTICES.txt) for the licence notices of all direct and transitive dependencies of this project.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
69
59
|
© 2025–present Placer and its contributors
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Third‐party notices
|
|
2
|
+
|
|
3
|
+
This project incorporates components from the following third‐party projects. The full text of their respective licences is provided below.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
@ctrl/tinycolor 4.2.0: MIT License; copyright notice not retrievable
|
|
8
|
+
@floating-ui/core 1.7.5: MIT License; copyright notice not retrievable
|
|
9
|
+
@floating-ui/dom 1.7.6: MIT License; copyright notice not retrievable
|
|
10
|
+
@floating-ui/utils 0.2.11: MIT License; copyright notice not retrievable
|
|
11
|
+
@types/trusted-types 2.0.7: MIT License; copyright notice not retrievable
|
|
12
|
+
composed-offset-position 0.0.6: MIT License; copyright notice not retrievable
|
|
13
|
+
nanoid 5.1.11: MIT License; copyright notice not retrievable
|
|
14
|
+
qr-creator 1.0.0: MIT License; copyright notice not retrievable
|
|
15
|
+
@lit-labs/ssr-dom-shim 1.5.1: BSD-3-Clause License; copyright notice not retrievable
|
|
16
|
+
@lit/reactive-element 2.1.2: BSD-3-Clause License; copyright notice not retrievable
|
|
17
|
+
lit 3.3.3: BSD-3-Clause License; copyright notice not retrievable
|
|
18
|
+
lit-element 4.2.2: BSD-3-Clause License; copyright notice not retrievable
|
|
19
|
+
lit-html 3.3.2: BSD-3-Clause License; copyright notice not retrievable
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
MIT License:
|
|
24
|
+
|
|
25
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
26
|
+
|
|
27
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
28
|
+
|
|
29
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
BSD-3-Clause License:
|
|
34
|
+
|
|
35
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
36
|
+
|
|
37
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
38
|
+
|
|
39
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
40
|
+
|
|
41
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
42
|
+
|
|
43
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/cdn/animations/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/chunk.
|
|
1
|
+
import"../chunks/chunk.AGTJOSFZ.js";import{a as e}from"../chunks/chunk.TSGCOVAS.js";import{a as d}from"../chunks/chunk.NPYG3KBW.js";import{a as c}from"../chunks/chunk.EDLGCMPJ.js";import{a as b}from"../chunks/chunk.UY4REGW5.js";import{a}from"../chunks/chunk.HNKZJPU5.js";import{a as m}from"../chunks/chunk.LVUPLZGE.js";import{a as l}from"../chunks/chunk.TMAMLCL3.js";import{a as k}from"../chunks/chunk.4VMSMOA5.js";import{a as j}from"../chunks/chunk.X2UEAQ7T.js";import{a as i}from"../chunks/chunk.R4FKXVN2.js";import{a as h}from"../chunks/chunk.6RYC5FEW.js";import{a as g}from"../chunks/chunk.ORA34WZP.js";import{a as f}from"../chunks/chunk.4X4XH4O2.js";import{a as u}from"../chunks/chunk.U3MA3RIB.js";import{a as t}from"../chunks/chunk.KPQGFV2T.js";import{a as s}from"../chunks/chunk.V7QO7LZ4.js";import{a as r}from"../chunks/chunk.YWY7M46V.js";import{a as q}from"../chunks/chunk.ADVDY32Z.js";import{a as p}from"../chunks/chunk.ZDVLHLRA.js";import{a as o}from"../chunks/chunk.LGGEB3IB.js";import{a as n}from"../chunks/chunk.GUYJ76FZ.js";import{a as C}from"../chunks/chunk.P4UE3S5U.js";import{a as B}from"../chunks/chunk.IJB4PCJH.js";import{a as A}from"../chunks/chunk.L2CNBOZJ.js";import{a as z}from"../chunks/chunk.LWZCSGTE.js";import{a as y}from"../chunks/chunk.RFDMVIMA.js";import{a as x}from"../chunks/chunk.5MJRUHKK.js";import{a as w}from"../chunks/chunk.YPCDSPNA.js";import{a as v}from"../chunks/chunk.WLREBMFL.js";import{a as J}from"../chunks/chunk.PP72VCB4.js";import{a as I}from"../chunks/chunk.CQPLNRNB.js";import{a as H}from"../chunks/chunk.TSZI2CPF.js";import{a as G}from"../chunks/chunk.F7QM26VX.js";import{a as F}from"../chunks/chunk.N72C3VU3.js";import{a as Sa}from"../chunks/chunk.HTBAOVSV.js";import{a as E}from"../chunks/chunk.6C4VTMLQ.js";import{a as D}from"../chunks/chunk.TMMJRXEV.js";import{a as R}from"../chunks/chunk.Z6NCEETZ.js";import{a as Q}from"../chunks/chunk.4CAEAIFN.js";import{a as P}from"../chunks/chunk.PCTA7J6C.js";import{a as O}from"../chunks/chunk.PBL2P7GX.js";import{a as N}from"../chunks/chunk.7QYDQTBC.js";import{a as M}from"../chunks/chunk.NU2STAMX.js";import{a as L}from"../chunks/chunk.B27E7VEZ.js";import{a as K}from"../chunks/chunk.V4EXVX5U.js";import{a as Z}from"../chunks/chunk.EZBCPDK5.js";import{a as Y}from"../chunks/chunk.DG6SQOFC.js";import{a as X}from"../chunks/chunk.ZJK5UEUE.js";import{a as W}from"../chunks/chunk.2K4PNLGV.js";import{a as V}from"../chunks/chunk.22DZRUGL.js";import{a as U}from"../chunks/chunk.6SP3MLBX.js";import{a as T}from"../chunks/chunk.V3AEPIKH.js";import{a as S}from"../chunks/chunk.2SM5MTG6.js";import{a as fa}from"../chunks/chunk.UJQFNBOE.js";import{a as ea}from"../chunks/chunk.LDRHXIYA.js";import{a as da}from"../chunks/chunk.SXVGSAUS.js";import{a as ca}from"../chunks/chunk.IJXVLI7F.js";import{a as ba}from"../chunks/chunk.M256MZ2P.js";import{a as aa}from"../chunks/chunk.G443HDU2.js";import{a as $}from"../chunks/chunk.O537LU5E.js";import{a as _}from"../chunks/chunk.MO7QMIH2.js";import{a as na}from"../chunks/chunk.5PONJGRH.js";import{a as ma}from"../chunks/chunk.MAQ3AU52.js";import{a as la}from"../chunks/chunk.IFDHHGOU.js";import{a as ka}from"../chunks/chunk.TARXG5U3.js";import{a as ja}from"../chunks/chunk.5G3DFRPP.js";import{a as ia}from"../chunks/chunk.SEIDC2AV.js";import{a as ha}from"../chunks/chunk.IGMWK7NZ.js";import{a as ga}from"../chunks/chunk.ESSED3D6.js";import{a as va}from"../chunks/chunk.3U3NAHEY.js";import{a as ua}from"../chunks/chunk.GMD2IG67.js";import{a as ta}from"../chunks/chunk.NE3XXRZM.js";import{a as sa}from"../chunks/chunk.Y4QDLYQS.js";import{a as ra}from"../chunks/chunk.4NL2VE5O.js";import{a as qa}from"../chunks/chunk.LHYUHRTC.js";import{a as pa}from"../chunks/chunk.MM4THVKJ.js";import{a as oa}from"../chunks/chunk.XNUSDBIN.js";import{a as Da}from"../chunks/chunk.4W3OJG5Y.js";import{a as Ca}from"../chunks/chunk.M2NVAC3Z.js";import{a as Ba}from"../chunks/chunk.BGH5L7N6.js";import{a as Aa}from"../chunks/chunk.IJMKJLO7.js";import{a as za}from"../chunks/chunk.EMVTQD7Z.js";import{a as ya}from"../chunks/chunk.ELYXTKTB.js";import{a as xa}from"../chunks/chunk.G4SAKBPC.js";import{a as wa}from"../chunks/chunk.2SQLMTYR.js";import{a as La}from"../chunks/chunk.KYRT75BX.js";import{a as Ka}from"../chunks/chunk.LI6ACV6L.js";import{a as Ja}from"../chunks/chunk.ZVANQQXU.js";import{a as Ia}from"../chunks/chunk.DRJDBJ6E.js";import{a as Ha}from"../chunks/chunk.EZBP4Q35.js";import{a as Ga}from"../chunks/chunk.U7RBI2DC.js";import{a as Fa}from"../chunks/chunk.ZE2WQTE4.js";import{a as Ea}from"../chunks/chunk.ECBLO7D3.js";import{a as Ra}from"../chunks/chunk.OD26IPSI.js";import{a as Qa}from"../chunks/chunk.HGR2N7GN.js";import{a as Pa}from"../chunks/chunk.7UGLJJM6.js";import{a as Oa}from"../chunks/chunk.5HIUPHOM.js";import{a as Na}from"../chunks/chunk.DNS43PE3.js";import{a as Ma}from"../chunks/chunk.P7GBRX2Q.js";import"../chunks/chunk.E6MOE4FE.js";export{n as backInDown,o as backInLeft,p as backInRight,q as backInUp,r as backOutDown,s as backOutLeft,t as backOutRight,u as backOutUp,a as bounce,v as bounceIn,w as bounceInDown,x as bounceInLeft,y as bounceInRight,z as bounceInUp,A as bounceOut,B as bounceOutDown,C as bounceOutLeft,D as bounceOutRight,E as bounceOutUp,Sa as easings,F as fadeIn,G as fadeInBottomLeft,H as fadeInBottomRight,I as fadeInDown,J as fadeInDownBig,K as fadeInLeft,L as fadeInLeftBig,M as fadeInRight,N as fadeInRightBig,O as fadeInTopLeft,P as fadeInTopRight,Q as fadeInUp,R as fadeInUpBig,S as fadeOut,T as fadeOutBottomLeft,U as fadeOutBottomRight,V as fadeOutDown,W as fadeOutDownBig,X as fadeOutLeft,Y as fadeOutLeftBig,Z as fadeOutRight,_ as fadeOutRightBig,$ as fadeOutTopLeft,aa as fadeOutTopRight,ba as fadeOutUp,ca as fadeOutUpBig,b as flash,da as flip,ea as flipInX,fa as flipInY,ga as flipOutX,ha as flipOutY,c as headShake,d as heartBeat,Ea as hinge,Fa as jackInTheBox,e as jello,ia as lightSpeedInLeft,ja as lightSpeedInRight,ka as lightSpeedOutLeft,la as lightSpeedOutRight,f as pulse,Ga as rollIn,Ha as rollOut,ma as rotateIn,na as rotateInDownLeft,oa as rotateInDownRight,pa as rotateInUpLeft,qa as rotateInUpRight,ra as rotateOut,sa as rotateOutDownLeft,ta as rotateOutDownRight,ua as rotateOutUpLeft,va as rotateOutUpRight,g as rubberBand,h as shake,i as shakeX,j as shakeY,wa as slideInDown,xa as slideInLeft,ya as slideInRight,za as slideInUp,Aa as slideOutDown,Ba as slideOutLeft,Ca as slideOutRight,Da as slideOutUp,k as swing,l as tada,m as wobble,Ia as zoomIn,Ja as zoomInDown,Ka as zoomInLeft,La as zoomInRight,Ma as zoomInUp,Na as zoomOut,Oa as zoomOutDown,Pa as zoomOutLeft,Qa as zoomOutRight,Ra as zoomOutUp};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as K}from"./chunk.Y7HJFCRV.js";import{a as J,b as S,e as O,g as U}from"./chunk.2J4EDLZA.js";import{a as I}from"./chunk.H2EOXVSZ.js";import{d as $}from"./chunk.YQLPGQHO.js";import{b as w}from"./chunk.E6MOE4FE.js";var W=null,V=class{};V.render=function(d,H){W(d,H)};self.QrCreator=V;(function(d){function H(M,o,n,s){var r={},t=d(n,o);t.u(M),t.J(),s=s||0;var u=t.h(),i=t.h()+2*s;return r.text=M,r.level=o,r.version=n,r.O=i,r.a=function(f,p){return f-=s,p-=s,0>f||f>=u||0>p||p>=u?!1:t.a(f,p)},r}function R(M,o,n,s,r,t,u,i,f,p){function x(l,h,e,a,c,z,A){l?(M.lineTo(h+z,e+A),M.arcTo(h,e,a,c,t)):M.lineTo(h,e)}u?M.moveTo(o+t,n):M.moveTo(o,n),x(i,s,n,s,r,-t,0),x(f,s,r,o,r,0,-t),x(p,o,r,o,n,t,0),x(u,o,n,s,n,0,t)}function C(M,o,n,s,r,t,u,i,f,p){function x(l,h,e,a){M.moveTo(l+e,h),M.lineTo(l,h),M.lineTo(l,h+a),M.arcTo(l,h,l+e,h,t)}u&&x(o,n,t,t),i&&x(s,n,-t,t),f&&x(s,r,-t,-t),p&&x(o,r,t,-t)}function N(M,o){var n=o.fill;if(typeof n=="string")M.fillStyle=n;else{var s=n.type,r=n.colorStops;if(n=n.position.map(u=>Math.round(u*o.size)),s==="linear-gradient")var t=M.createLinearGradient.apply(M,n);else if(s==="radial-gradient")t=M.createRadialGradient.apply(M,n);else throw Error("Unsupported fill");r.forEach(([u,i])=>{t.addColorStop(u,i)}),M.fillStyle=t}}function m(M,o){r:{var n=o.text,s=o.v,r=o.N,t=o.K,u=o.P;for(r=Math.max(1,r||1),t=Math.min(40,t||40);r<=t;r+=1)try{var i=H(n,s,r,u);break r}catch{}i=void 0}if(!i)return null;for(n=M.getContext("2d"),o.background&&(n.fillStyle=o.background,n.fillRect(o.left,o.top,o.size,o.size)),s=i.O,t=o.size/s,n.beginPath(),u=0;u<s;u+=1)for(r=0;r<s;r+=1){var f=n,p=o.left+r*t,x=o.top+u*t,l=u,h=r,e=i.a,a=p+t,c=x+t,z=l-1,A=l+1,y=h-1,v=h+1,L=Math.floor(Math.min(.5,Math.max(0,o.R))*t),E=e(l,h),G=e(z,y),j=e(z,h);z=e(z,v);var B=e(l,v);v=e(A,v),h=e(A,h),A=e(A,y),l=e(l,y),p=Math.round(p),x=Math.round(x),a=Math.round(a),c=Math.round(c),E?R(f,p,x,a,c,L,!j&&!l,!j&&!B,!h&&!B,!h&&!l):C(f,p,x,a,c,L,j&&l&&G,j&&B&&z,h&&B&&v,h&&l&&A)}return N(n,o),n.fill(),M}var T={minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:.5,quiet:0};W=function(M,o){var n={};Object.assign(n,T,M),n.N=n.minVersion,n.K=n.maxVersion,n.v=n.ecLevel,n.left=n.left,n.top=n.top,n.size=n.size,n.fill=n.fill,n.background=n.background,n.text=n.text,n.R=n.radius,n.P=n.quiet,o instanceof HTMLCanvasElement?((o.width!==n.size||o.height!==n.size)&&(o.width=n.size,o.height=n.size),o.getContext("2d").clearRect(0,0,o.width,o.height),m(o,n)):(M=document.createElement("canvas"),M.width=n.size,M.height=n.size,n=m(M,n),o.appendChild(n))}})((function(){function d(o){var n=R.s(o);return{S:function(){return 4},b:function(){return n.length},write:function(s){for(var r=0;r<n.length;r+=1)s.put(n[r],8)}}}function H(){var o=[],n=0,s={B:function(){return o},c:function(r){return(o[Math.floor(r/8)]>>>7-r%8&1)==1},put:function(r,t){for(var u=0;u<t;u+=1)s.m((r>>>t-u-1&1)==1)},f:function(){return n},m:function(r){var t=Math.floor(n/8);o.length<=t&&o.push(0),r&&(o[t]|=128>>>n%8),n+=1}};return s}function R(o,n){function s(l,h){for(var e=-1;7>=e;e+=1)if(!(-1>=l+e||i<=l+e))for(var a=-1;7>=a;a+=1)-1>=h+a||i<=h+a||(u[l+e][h+a]=0<=e&&6>=e&&(a==0||a==6)||0<=a&&6>=a&&(e==0||e==6)||2<=e&&4>=e&&2<=a&&4>=a)}function r(l,h){for(var e=i=4*o+17,a=Array(e),c=0;c<e;c+=1){a[c]=Array(e);for(var z=0;z<e;z+=1)a[c][z]=null}for(u=a,s(0,0),s(i-7,0),s(0,i-7),e=m.G(o),a=0;a<e.length;a+=1)for(c=0;c<e.length;c+=1){z=e[a];var A=e[c];if(u[z][A]==null)for(var y=-2;2>=y;y+=1)for(var v=-2;2>=v;v+=1)u[z+y][A+v]=y==-2||y==2||v==-2||v==2||y==0&&v==0}for(e=8;e<i-8;e+=1)u[e][6]==null&&(u[e][6]=e%2==0);for(e=8;e<i-8;e+=1)u[6][e]==null&&(u[6][e]=e%2==0);for(e=m.w(t<<3|h),a=0;15>a;a+=1)c=!l&&(e>>a&1)==1,u[6>a?a:8>a?a+1:i-15+a][8]=c,u[8][8>a?i-a-1:9>a?15-a:14-a]=c;if(u[i-8][8]=!l,7<=o){for(e=m.A(o),a=0;18>a;a+=1)c=!l&&(e>>a&1)==1,u[Math.floor(a/3)][a%3+i-8-3]=c;for(a=0;18>a;a+=1)c=!l&&(e>>a&1)==1,u[a%3+i-8-3][Math.floor(a/3)]=c}if(f==null){for(l=M.I(o,t),e=H(),a=0;a<p.length;a+=1)c=p[a],e.put(4,4),e.put(c.b(),m.f(4,o)),c.write(e);for(a=c=0;a<l.length;a+=1)c+=l[a].j;if(e.f()>8*c)throw Error("code length overflow. ("+e.f()+">"+8*c+")");for(e.f()+4<=8*c&&e.put(0,4);e.f()%8!=0;)e.m(!1);for(;!(e.f()>=8*c)&&(e.put(236,8),!(e.f()>=8*c));)e.put(17,8);var L=0;for(c=a=0,z=Array(l.length),A=Array(l.length),y=0;y<l.length;y+=1){var E=l[y].j,G=l[y].o-E;for(a=Math.max(a,E),c=Math.max(c,G),z[y]=Array(E),v=0;v<z[y].length;v+=1)z[y][v]=255&e.B()[v+L];for(L+=E,v=m.C(G),E=C(z[y],v.b()-1).l(v),A[y]=Array(v.b()-1),v=0;v<A[y].length;v+=1)G=v+E.b()-A[y].length,A[y][v]=0<=G?E.c(G):0}for(v=e=0;v<l.length;v+=1)e+=l[v].o;for(e=Array(e),v=L=0;v<a;v+=1)for(y=0;y<l.length;y+=1)v<z[y].length&&(e[L]=z[y][v],L+=1);for(v=0;v<c;v+=1)for(y=0;y<l.length;y+=1)v<A[y].length&&(e[L]=A[y][v],L+=1);f=e}for(l=f,e=-1,a=i-1,c=7,z=0,h=m.F(h),A=i-1;0<A;A-=2)for(A==6&&--A;;){for(y=0;2>y;y+=1)u[a][A-y]==null&&(v=!1,z<l.length&&(v=(l[z]>>>c&1)==1),h(a,A-y)&&(v=!v),u[a][A-y]=v,--c,c==-1&&(z+=1,c=7));if(a+=e,0>a||i<=a){a-=e,e=-e;break}}}var t=N[n],u=null,i=0,f=null,p=[],x={u:function(l){l=d(l),p.push(l),f=null},a:function(l,h){if(0>l||i<=l||0>h||i<=h)throw Error(l+","+h);return u[l][h]},h:function(){return i},J:function(){for(var l=0,h=0,e=0;8>e;e+=1){r(!0,e);var a=m.D(x);(e==0||l>a)&&(l=a,h=e)}r(!1,h)}};return x}function C(o,n){if(typeof o.length>"u")throw Error(o.length+"/"+n);var s=(function(){for(var t=0;t<o.length&&o[t]==0;)t+=1;for(var u=Array(o.length-t+n),i=0;i<o.length-t;i+=1)u[i]=o[i+t];return u})(),r={c:function(t){return s[t]},b:function(){return s.length},multiply:function(t){for(var u=Array(r.b()+t.b()-1),i=0;i<r.b();i+=1)for(var f=0;f<t.b();f+=1)u[i+f]^=T.i(T.g(r.c(i))+T.g(t.c(f)));return C(u,0)},l:function(t){if(0>r.b()-t.b())return r;for(var u=T.g(r.c(0))-T.g(t.c(0)),i=Array(r.b()),f=0;f<r.b();f+=1)i[f]=r.c(f);for(f=0;f<t.b();f+=1)i[f]^=T.i(T.g(t.c(f))+u);return C(i,0).l(t)}};return r}R.s=function(o){for(var n=[],s=0;s<o.length;s++){var r=o.charCodeAt(s);128>r?n.push(r):2048>r?n.push(192|r>>6,128|r&63):55296>r||57344<=r?n.push(224|r>>12,128|r>>6&63,128|r&63):(s++,r=65536+((r&1023)<<10|o.charCodeAt(s)&1023),n.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|r&63))}return n};var N={L:1,M:0,Q:3,H:2},m=(function(){function o(r){for(var t=0;r!=0;)t+=1,r>>>=1;return t}var n=[[],[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]],s={w:function(r){for(var t=r<<10;0<=o(t)-o(1335);)t^=1335<<o(t)-o(1335);return(r<<10|t)^21522},A:function(r){for(var t=r<<12;0<=o(t)-o(7973);)t^=7973<<o(t)-o(7973);return r<<12|t},G:function(r){return n[r-1]},F:function(r){switch(r){case 0:return function(t,u){return(t+u)%2==0};case 1:return function(t){return t%2==0};case 2:return function(t,u){return u%3==0};case 3:return function(t,u){return(t+u)%3==0};case 4:return function(t,u){return(Math.floor(t/2)+Math.floor(u/3))%2==0};case 5:return function(t,u){return t*u%2+t*u%3==0};case 6:return function(t,u){return(t*u%2+t*u%3)%2==0};case 7:return function(t,u){return(t*u%3+(t+u)%2)%2==0};default:throw Error("bad maskPattern:"+r)}},C:function(r){for(var t=C([1],0),u=0;u<r;u+=1)t=t.multiply(C([1,T.i(u)],0));return t},f:function(r,t){if(r!=4||1>t||40<t)throw Error("mode: "+r+"; type: "+t);return 10>t?8:16},D:function(r){for(var t=r.h(),u=0,i=0;i<t;i+=1)for(var f=0;f<t;f+=1){for(var p=0,x=r.a(i,f),l=-1;1>=l;l+=1)if(!(0>i+l||t<=i+l))for(var h=-1;1>=h;h+=1)0>f+h||t<=f+h||(l!=0||h!=0)&&x==r.a(i+l,f+h)&&(p+=1);5<p&&(u+=3+p-5)}for(i=0;i<t-1;i+=1)for(f=0;f<t-1;f+=1)p=0,r.a(i,f)&&(p+=1),r.a(i+1,f)&&(p+=1),r.a(i,f+1)&&(p+=1),r.a(i+1,f+1)&&(p+=1),(p==0||p==4)&&(u+=3);for(i=0;i<t;i+=1)for(f=0;f<t-6;f+=1)r.a(i,f)&&!r.a(i,f+1)&&r.a(i,f+2)&&r.a(i,f+3)&&r.a(i,f+4)&&!r.a(i,f+5)&&r.a(i,f+6)&&(u+=40);for(f=0;f<t;f+=1)for(i=0;i<t-6;i+=1)r.a(i,f)&&!r.a(i+1,f)&&r.a(i+2,f)&&r.a(i+3,f)&&r.a(i+4,f)&&!r.a(i+5,f)&&r.a(i+6,f)&&(u+=40);for(f=p=0;f<t;f+=1)for(i=0;i<t;i+=1)r.a(i,f)&&(p+=1);return u+=Math.abs(100*p/t/t-50)/5*10}};return s})(),T=(function(){for(var o=Array(256),n=Array(256),s=0;8>s;s+=1)o[s]=1<<s;for(s=8;256>s;s+=1)o[s]=o[s-4]^o[s-5]^o[s-6]^o[s-8];for(s=0;255>s;s+=1)n[o[s]]=s;return{g:function(r){if(1>r)throw Error("glog("+r+")");return n[r]},i:function(r){for(;0>r;)r+=255;for(;256<=r;)r-=255;return o[r]}}})(),M=(function(){function o(r,t){switch(t){case N.L:return n[4*(r-1)];case N.M:return n[4*(r-1)+1];case N.Q:return n[4*(r-1)+2];case N.H:return n[4*(r-1)+3]}}var n=[[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]],s={I:function(r,t){var u=o(r,t);if(typeof u>"u")throw Error("bad rs block @ typeNumber:"+r+"/errorCorrectLevel:"+t);r=u.length/3,t=[];for(var i=0;i<r;i+=1)for(var f=u[3*i],p=u[3*i+1],x=u[3*i+2],l=0;l<f;l+=1){var h=x,e={};e.o=p,e.j=h,t.push(e)}return t}};return s})();return R})());var X=QrCreator;var Y=`:host {
|
|
1
|
+
import{a as K}from"./chunk.L5FZSNU3.js";import{a as J,b as S,e as O,g as U}from"./chunk.GINYSCJR.js";import{a as I}from"./chunk.H2EOXVSZ.js";import{d as $}from"./chunk.VCGQQWP5.js";import{b as w}from"./chunk.E6MOE4FE.js";var W=null,V=class{};V.render=function(d,H){W(d,H)};self.QrCreator=V;(function(d){function H(M,o,n,s){var r={},t=d(n,o);t.u(M),t.J(),s=s||0;var u=t.h(),i=t.h()+2*s;return r.text=M,r.level=o,r.version=n,r.O=i,r.a=function(f,p){return f-=s,p-=s,0>f||f>=u||0>p||p>=u?!1:t.a(f,p)},r}function R(M,o,n,s,r,t,u,i,f,p){function x(l,h,e,a,c,z,A){l?(M.lineTo(h+z,e+A),M.arcTo(h,e,a,c,t)):M.lineTo(h,e)}u?M.moveTo(o+t,n):M.moveTo(o,n),x(i,s,n,s,r,-t,0),x(f,s,r,o,r,0,-t),x(p,o,r,o,n,t,0),x(u,o,n,s,n,0,t)}function C(M,o,n,s,r,t,u,i,f,p){function x(l,h,e,a){M.moveTo(l+e,h),M.lineTo(l,h),M.lineTo(l,h+a),M.arcTo(l,h,l+e,h,t)}u&&x(o,n,t,t),i&&x(s,n,-t,t),f&&x(s,r,-t,-t),p&&x(o,r,t,-t)}function N(M,o){var n=o.fill;if(typeof n=="string")M.fillStyle=n;else{var s=n.type,r=n.colorStops;if(n=n.position.map(u=>Math.round(u*o.size)),s==="linear-gradient")var t=M.createLinearGradient.apply(M,n);else if(s==="radial-gradient")t=M.createRadialGradient.apply(M,n);else throw Error("Unsupported fill");r.forEach(([u,i])=>{t.addColorStop(u,i)}),M.fillStyle=t}}function m(M,o){r:{var n=o.text,s=o.v,r=o.N,t=o.K,u=o.P;for(r=Math.max(1,r||1),t=Math.min(40,t||40);r<=t;r+=1)try{var i=H(n,s,r,u);break r}catch{}i=void 0}if(!i)return null;for(n=M.getContext("2d"),o.background&&(n.fillStyle=o.background,n.fillRect(o.left,o.top,o.size,o.size)),s=i.O,t=o.size/s,n.beginPath(),u=0;u<s;u+=1)for(r=0;r<s;r+=1){var f=n,p=o.left+r*t,x=o.top+u*t,l=u,h=r,e=i.a,a=p+t,c=x+t,z=l-1,A=l+1,y=h-1,v=h+1,L=Math.floor(Math.min(.5,Math.max(0,o.R))*t),E=e(l,h),G=e(z,y),j=e(z,h);z=e(z,v);var B=e(l,v);v=e(A,v),h=e(A,h),A=e(A,y),l=e(l,y),p=Math.round(p),x=Math.round(x),a=Math.round(a),c=Math.round(c),E?R(f,p,x,a,c,L,!j&&!l,!j&&!B,!h&&!B,!h&&!l):C(f,p,x,a,c,L,j&&l&&G,j&&B&&z,h&&B&&v,h&&l&&A)}return N(n,o),n.fill(),M}var T={minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:.5,quiet:0};W=function(M,o){var n={};Object.assign(n,T,M),n.N=n.minVersion,n.K=n.maxVersion,n.v=n.ecLevel,n.left=n.left,n.top=n.top,n.size=n.size,n.fill=n.fill,n.background=n.background,n.text=n.text,n.R=n.radius,n.P=n.quiet,o instanceof HTMLCanvasElement?((o.width!==n.size||o.height!==n.size)&&(o.width=n.size,o.height=n.size),o.getContext("2d").clearRect(0,0,o.width,o.height),m(o,n)):(M=document.createElement("canvas"),M.width=n.size,M.height=n.size,n=m(M,n),o.appendChild(n))}})((function(){function d(o){var n=R.s(o);return{S:function(){return 4},b:function(){return n.length},write:function(s){for(var r=0;r<n.length;r+=1)s.put(n[r],8)}}}function H(){var o=[],n=0,s={B:function(){return o},c:function(r){return(o[Math.floor(r/8)]>>>7-r%8&1)==1},put:function(r,t){for(var u=0;u<t;u+=1)s.m((r>>>t-u-1&1)==1)},f:function(){return n},m:function(r){var t=Math.floor(n/8);o.length<=t&&o.push(0),r&&(o[t]|=128>>>n%8),n+=1}};return s}function R(o,n){function s(l,h){for(var e=-1;7>=e;e+=1)if(!(-1>=l+e||i<=l+e))for(var a=-1;7>=a;a+=1)-1>=h+a||i<=h+a||(u[l+e][h+a]=0<=e&&6>=e&&(a==0||a==6)||0<=a&&6>=a&&(e==0||e==6)||2<=e&&4>=e&&2<=a&&4>=a)}function r(l,h){for(var e=i=4*o+17,a=Array(e),c=0;c<e;c+=1){a[c]=Array(e);for(var z=0;z<e;z+=1)a[c][z]=null}for(u=a,s(0,0),s(i-7,0),s(0,i-7),e=m.G(o),a=0;a<e.length;a+=1)for(c=0;c<e.length;c+=1){z=e[a];var A=e[c];if(u[z][A]==null)for(var y=-2;2>=y;y+=1)for(var v=-2;2>=v;v+=1)u[z+y][A+v]=y==-2||y==2||v==-2||v==2||y==0&&v==0}for(e=8;e<i-8;e+=1)u[e][6]==null&&(u[e][6]=e%2==0);for(e=8;e<i-8;e+=1)u[6][e]==null&&(u[6][e]=e%2==0);for(e=m.w(t<<3|h),a=0;15>a;a+=1)c=!l&&(e>>a&1)==1,u[6>a?a:8>a?a+1:i-15+a][8]=c,u[8][8>a?i-a-1:9>a?15-a:14-a]=c;if(u[i-8][8]=!l,7<=o){for(e=m.A(o),a=0;18>a;a+=1)c=!l&&(e>>a&1)==1,u[Math.floor(a/3)][a%3+i-8-3]=c;for(a=0;18>a;a+=1)c=!l&&(e>>a&1)==1,u[a%3+i-8-3][Math.floor(a/3)]=c}if(f==null){for(l=M.I(o,t),e=H(),a=0;a<p.length;a+=1)c=p[a],e.put(4,4),e.put(c.b(),m.f(4,o)),c.write(e);for(a=c=0;a<l.length;a+=1)c+=l[a].j;if(e.f()>8*c)throw Error("code length overflow. ("+e.f()+">"+8*c+")");for(e.f()+4<=8*c&&e.put(0,4);e.f()%8!=0;)e.m(!1);for(;!(e.f()>=8*c)&&(e.put(236,8),!(e.f()>=8*c));)e.put(17,8);var L=0;for(c=a=0,z=Array(l.length),A=Array(l.length),y=0;y<l.length;y+=1){var E=l[y].j,G=l[y].o-E;for(a=Math.max(a,E),c=Math.max(c,G),z[y]=Array(E),v=0;v<z[y].length;v+=1)z[y][v]=255&e.B()[v+L];for(L+=E,v=m.C(G),E=C(z[y],v.b()-1).l(v),A[y]=Array(v.b()-1),v=0;v<A[y].length;v+=1)G=v+E.b()-A[y].length,A[y][v]=0<=G?E.c(G):0}for(v=e=0;v<l.length;v+=1)e+=l[v].o;for(e=Array(e),v=L=0;v<a;v+=1)for(y=0;y<l.length;y+=1)v<z[y].length&&(e[L]=z[y][v],L+=1);for(v=0;v<c;v+=1)for(y=0;y<l.length;y+=1)v<A[y].length&&(e[L]=A[y][v],L+=1);f=e}for(l=f,e=-1,a=i-1,c=7,z=0,h=m.F(h),A=i-1;0<A;A-=2)for(A==6&&--A;;){for(y=0;2>y;y+=1)u[a][A-y]==null&&(v=!1,z<l.length&&(v=(l[z]>>>c&1)==1),h(a,A-y)&&(v=!v),u[a][A-y]=v,--c,c==-1&&(z+=1,c=7));if(a+=e,0>a||i<=a){a-=e,e=-e;break}}}var t=N[n],u=null,i=0,f=null,p=[],x={u:function(l){l=d(l),p.push(l),f=null},a:function(l,h){if(0>l||i<=l||0>h||i<=h)throw Error(l+","+h);return u[l][h]},h:function(){return i},J:function(){for(var l=0,h=0,e=0;8>e;e+=1){r(!0,e);var a=m.D(x);(e==0||l>a)&&(l=a,h=e)}r(!1,h)}};return x}function C(o,n){if(typeof o.length>"u")throw Error(o.length+"/"+n);var s=(function(){for(var t=0;t<o.length&&o[t]==0;)t+=1;for(var u=Array(o.length-t+n),i=0;i<o.length-t;i+=1)u[i]=o[i+t];return u})(),r={c:function(t){return s[t]},b:function(){return s.length},multiply:function(t){for(var u=Array(r.b()+t.b()-1),i=0;i<r.b();i+=1)for(var f=0;f<t.b();f+=1)u[i+f]^=T.i(T.g(r.c(i))+T.g(t.c(f)));return C(u,0)},l:function(t){if(0>r.b()-t.b())return r;for(var u=T.g(r.c(0))-T.g(t.c(0)),i=Array(r.b()),f=0;f<r.b();f+=1)i[f]=r.c(f);for(f=0;f<t.b();f+=1)i[f]^=T.i(T.g(t.c(f))+u);return C(i,0).l(t)}};return r}R.s=function(o){for(var n=[],s=0;s<o.length;s++){var r=o.charCodeAt(s);128>r?n.push(r):2048>r?n.push(192|r>>6,128|r&63):55296>r||57344<=r?n.push(224|r>>12,128|r>>6&63,128|r&63):(s++,r=65536+((r&1023)<<10|o.charCodeAt(s)&1023),n.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|r&63))}return n};var N={L:1,M:0,Q:3,H:2},m=(function(){function o(r){for(var t=0;r!=0;)t+=1,r>>>=1;return t}var n=[[],[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]],s={w:function(r){for(var t=r<<10;0<=o(t)-o(1335);)t^=1335<<o(t)-o(1335);return(r<<10|t)^21522},A:function(r){for(var t=r<<12;0<=o(t)-o(7973);)t^=7973<<o(t)-o(7973);return r<<12|t},G:function(r){return n[r-1]},F:function(r){switch(r){case 0:return function(t,u){return(t+u)%2==0};case 1:return function(t){return t%2==0};case 2:return function(t,u){return u%3==0};case 3:return function(t,u){return(t+u)%3==0};case 4:return function(t,u){return(Math.floor(t/2)+Math.floor(u/3))%2==0};case 5:return function(t,u){return t*u%2+t*u%3==0};case 6:return function(t,u){return(t*u%2+t*u%3)%2==0};case 7:return function(t,u){return(t*u%3+(t+u)%2)%2==0};default:throw Error("bad maskPattern:"+r)}},C:function(r){for(var t=C([1],0),u=0;u<r;u+=1)t=t.multiply(C([1,T.i(u)],0));return t},f:function(r,t){if(r!=4||1>t||40<t)throw Error("mode: "+r+"; type: "+t);return 10>t?8:16},D:function(r){for(var t=r.h(),u=0,i=0;i<t;i+=1)for(var f=0;f<t;f+=1){for(var p=0,x=r.a(i,f),l=-1;1>=l;l+=1)if(!(0>i+l||t<=i+l))for(var h=-1;1>=h;h+=1)0>f+h||t<=f+h||(l!=0||h!=0)&&x==r.a(i+l,f+h)&&(p+=1);5<p&&(u+=3+p-5)}for(i=0;i<t-1;i+=1)for(f=0;f<t-1;f+=1)p=0,r.a(i,f)&&(p+=1),r.a(i+1,f)&&(p+=1),r.a(i,f+1)&&(p+=1),r.a(i+1,f+1)&&(p+=1),(p==0||p==4)&&(u+=3);for(i=0;i<t;i+=1)for(f=0;f<t-6;f+=1)r.a(i,f)&&!r.a(i,f+1)&&r.a(i,f+2)&&r.a(i,f+3)&&r.a(i,f+4)&&!r.a(i,f+5)&&r.a(i,f+6)&&(u+=40);for(f=0;f<t;f+=1)for(i=0;i<t-6;i+=1)r.a(i,f)&&!r.a(i+1,f)&&r.a(i+2,f)&&r.a(i+3,f)&&r.a(i+4,f)&&!r.a(i+5,f)&&r.a(i+6,f)&&(u+=40);for(f=p=0;f<t;f+=1)for(i=0;i<t;i+=1)r.a(i,f)&&(p+=1);return u+=Math.abs(100*p/t/t-50)/5*10}};return s})(),T=(function(){for(var o=Array(256),n=Array(256),s=0;8>s;s+=1)o[s]=1<<s;for(s=8;256>s;s+=1)o[s]=o[s-4]^o[s-5]^o[s-6]^o[s-8];for(s=0;255>s;s+=1)n[o[s]]=s;return{g:function(r){if(1>r)throw Error("glog("+r+")");return n[r]},i:function(r){for(;0>r;)r+=255;for(;256<=r;)r-=255;return o[r]}}})(),M=(function(){function o(r,t){switch(t){case N.L:return n[4*(r-1)];case N.M:return n[4*(r-1)+1];case N.Q:return n[4*(r-1)+2];case N.H:return n[4*(r-1)+3]}}var n=[[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]],s={I:function(r,t){var u=o(r,t);if(typeof u>"u")throw Error("bad rs block @ typeNumber:"+r+"/errorCorrectLevel:"+t);r=u.length/3,t=[];for(var i=0;i<r;i+=1)for(var f=u[3*i],p=u[3*i+1],x=u[3*i+2],l=0;l<f;l+=1){var h=x,e={};e.o=p,e.j=h,t.push(e)}return t}};return s})();return R})());var X=QrCreator;var Y=`:host {
|
|
2
2
|
display: inline-block;
|
|
3
3
|
}
|
|
4
4
|
`;var g=class extends U{constructor(){super(...arguments);this.value="";this.label="";this.size=128;this.fill="black";this.background="white";this.radius=0;this.errorCorrection="M"}firstUpdated(){this.generate()}generate(){this.hasUpdated&&X.render({background:this.background,ecLevel:this.errorCorrection,fill:this.fill,radius:this.radius,size:this.size*2,text:this.value},this.canvas)}render(){return $`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as c}from"./chunk.IX4OV3X6.js";import{a as i}from"./chunk.BSQP4EKW.js";import{a as l,b as e,g as t}from"./chunk.
|
|
1
|
+
import{a as c}from"./chunk.IX4OV3X6.js";import{a as i}from"./chunk.BSQP4EKW.js";import{a as l,b as e,g as t}from"./chunk.GINYSCJR.js";import{d as a}from"./chunk.VCGQQWP5.js";import{b as o}from"./chunk.E6MOE4FE.js";var n=`.callout {
|
|
2
2
|
display: flex;
|
|
3
3
|
position: relative;
|
|
4
4
|
align-items: stretch;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as v}from"./chunk.
|
|
1
|
+
import{a as v}from"./chunk.FBMLKLCZ.js";import{a as b}from"./chunk.W5PM7F34.js";import{a as d}from"./chunk.U7BNGYYH.js";import{a as m}from"./chunk.BSQP4EKW.js";import{a as l}from"./chunk.AQEEED44.js";import{a as p}from"./chunk.S5DN2ZZE.js";import{a as u}from"./chunk.AGGS6MN5.js";import{a as c}from"./chunk.XHFEQY3T.js";import{a as n,b as o,e as h}from"./chunk.GINYSCJR.js";import{a as i}from"./chunk.H2EOXVSZ.js";import{d as s}from"./chunk.VCGQQWP5.js";import{b as r}from"./chunk.E6MOE4FE.js";var f=`:host {
|
|
2
2
|
--width: calc(var(--height) * 1.75);
|
|
3
3
|
--height: var(--pc-form-control-toggle-size);
|
|
4
4
|
--thumb-size: 0.75em;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as o}from"./chunk.RV7PEGXR.js";import{a as l,b as a,g as h}from"./chunk.
|
|
1
|
+
import{a as o}from"./chunk.RV7PEGXR.js";import{a as l,b as a,g as h}from"./chunk.GINYSCJR.js";import{a as i}from"./chunk.H2EOXVSZ.js";import{d as s}from"./chunk.VCGQQWP5.js";import{b as e}from"./chunk.E6MOE4FE.js";var c=`:host {
|
|
2
2
|
display: contents;
|
|
3
3
|
}
|
|
4
4
|
`;var t=class extends h{constructor(){super(...arguments);this.attributeOldValue=!1;this.characterData=!1;this.characterDataOldValue=!1;this.childList=!1;this.disabled=!1;this.handleMutation=r=>{this.dispatchEvent(new o({mutationList:r}))}}connectedCallback(){super.connectedCallback(),this.mutationObserver=new MutationObserver(this.handleMutation),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}startObserver(){let r=typeof this.attribute=="string"&&this.attribute.length>0,d=r&&this.attribute!=="*"?this.attribute?.split(" "):void 0;try{this.mutationObserver.observe(this,{subtree:!0,childList:this.childList,attributes:r,attributeFilter:d,attributeOldValue:this.attributeOldValue,characterData:this.characterData,characterDataOldValue:this.characterDataOldValue})}catch{}}stopObserver(){this.mutationObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}handleChange(){this.stopObserver(),this.startObserver()}render(){return s`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as p}from"./chunk.H7BTPIFU.js";import{a as y}from"./chunk.OCI34U43.js";import{a as s}from"./chunk.JAVH5USB.js";import{a as m,b as a,f as d,g as c}from"./chunk.
|
|
1
|
+
import{a as p}from"./chunk.H7BTPIFU.js";import{a as y}from"./chunk.OCI34U43.js";import{a as s}from"./chunk.JAVH5USB.js";import{a as m,b as a,f as d,g as c}from"./chunk.GINYSCJR.js";import{a as i}from"./chunk.H2EOXVSZ.js";import{d as o}from"./chunk.VCGQQWP5.js";import{a as r}from"./chunk.AGTJOSFZ.js";import{b as e}from"./chunk.E6MOE4FE.js";var f=`:host {
|
|
2
2
|
display: contents;
|
|
3
3
|
}
|
|
4
4
|
`;var t=class extends c{constructor(){super(...arguments);this.hasStarted=!1;this.name="none";this.play=!1;this.delay=0;this.direction="normal";this.duration=1e3;this.easing="ease-in-out";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.dispatchEvent(new y)};this.handleAnimationCancel=()=>{this.play=!1,this.hasStarted=!1,this.dispatchEvent(new p)}}get currentTime(){return this.animation?.currentTime??0}set currentTime(n){this.animation&&(this.animation.currentTime=n)}connectedCallback(){super.connectedCallback(),this.createAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.destroyAnimation()}handleSlotChange(){this.destroyAnimation(),this.createAnimation()}async createAnimation(){let n=r.easings[this.easing]??this.easing,l=this.keyframes??r[this.name],h=(await this.defaultSlot).assignedElements()[0];return!h||!l?!1:(this.destroyAnimation(),this.animation=h.animate(l,{delay:this.delay,direction:this.direction,duration:this.duration,easing:n,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.dispatchEvent(new s)):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.dispatchEvent(new s)),this.play?this.animation.play():this.animation.pause(),!0):!1}handlePlaybackRateChange(){this.animation&&(this.animation.playbackRate=this.playbackRate)}cancel(){this.animation?.cancel()}finish(){this.animation?.finish()}render(){return o`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as l}from"./chunk.
|
|
1
|
+
import{a as l}from"./chunk.AQEEED44.js";import{a as c}from"./chunk.GLZMVVG4.js";import{a as r,b as a,g as o}from"./chunk.GINYSCJR.js";import{a as n}from"./chunk.H2EOXVSZ.js";import{d as s}from"./chunk.VCGQQWP5.js";import{b as e}from"./chunk.E6MOE4FE.js";var p=`:host {
|
|
2
2
|
display: none;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u,b as e,g as a}from"./chunk.
|
|
1
|
+
import{a as u,b as e,g as a}from"./chunk.GINYSCJR.js";import{a as c}from"./chunk.L7IJIML3.js";import{b as t}from"./chunk.E6MOE4FE.js";var i=class extends a{constructor(){super(...arguments);this.localize=new c(this);this.value=0;this.type="decimal";this.withoutGrouping=!1;this.currency="USD";this.currencyDisplay="symbol";this.useSI=!1}static get styles(){return[]}formatSINumber(n){let r=this.localize.number(n,{style:"decimal",useGrouping:!1,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits}).split("."),l=r[0],m=r[1],s=l.replace(/\B(?=(\d{3})+(?!\d))/g,"\u202F");return m?`${s},${m}`:s}render(){if(isNaN(this.value))return"";if(this.useSI)switch(this.type){case"decimal":return this.formatSINumber(this.value);case"percent":let n=this.value*100;return`${this.formatSINumber(n)}\u202F%`;case"currency":return this.localize.number(this.value,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:!this.withoutGrouping});default:return""}return this.localize.number(this.value,{style:this.type,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:!this.withoutGrouping,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits})}};t([e({type:Number})],i.prototype,"value",2),t([e()],i.prototype,"type",2),t([e({attribute:"without-grouping",type:Boolean})],i.prototype,"withoutGrouping",2),t([e()],i.prototype,"currency",2),t([e({attribute:"currency-display"})],i.prototype,"currencyDisplay",2),t([e({attribute:"minimum-integer-digits",type:Number})],i.prototype,"minimumIntegerDigits",2),t([e({attribute:"minimum-fraction-digits",type:Number})],i.prototype,"minimumFractionDigits",2),t([e({attribute:"maximum-fraction-digits",type:Number})],i.prototype,"maximumFractionDigits",2),t([e({attribute:"minimum-significant-digits",type:Number})],i.prototype,"minimumSignificantDigits",2),t([e({attribute:"maximum-significant-digits",type:Number})],i.prototype,"maximumSignificantDigits",2),t([e({attribute:"use-si",type:Boolean})],i.prototype,"useSI",2),i=t([u("pc-format-number")],i);export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk.TSGCOVAS.js";import{a as p}from"./chunk.NPYG3KBW.js";import{a as m}from"./chunk.EDLGCMPJ.js";import{a as f}from"./chunk.UY4REGW5.js";import{a as e}from"./chunk.HNKZJPU5.js";import{a as c}from"./chunk.LVUPLZGE.js";import{a as b}from"./chunk.TMAMLCL3.js";import{a as n}from"./chunk.4VMSMOA5.js";import{a as i}from"./chunk.X2UEAQ7T.js";import{a as g}from"./chunk.R4FKXVN2.js";import{a}from"./chunk.6RYC5FEW.js";import{a as s}from"./chunk.ORA34WZP.js";import{a as x}from"./chunk.4X4XH4O2.js";import{a as v}from"./chunk.U3MA3RIB.js";import{a as u}from"./chunk.KPQGFV2T.js";import{a as q}from"./chunk.V7QO7LZ4.js";import{a as l}from"./chunk.YWY7M46V.js";import{a as k}from"./chunk.ADVDY32Z.js";import{a as j}from"./chunk.ZDVLHLRA.js";import{a as h}from"./chunk.LGGEB3IB.js";import{a as d}from"./chunk.GUYJ76FZ.js";import{a as E}from"./chunk.P4UE3S5U.js";import{a as D}from"./chunk.IJB4PCJH.js";import{a as C}from"./chunk.L2CNBOZJ.js";import{a as B}from"./chunk.LWZCSGTE.js";import{a as A}from"./chunk.RFDMVIMA.js";import{a as z}from"./chunk.5MJRUHKK.js";import{a as y}from"./chunk.YPCDSPNA.js";import{a as w}from"./chunk.WLREBMFL.js";import{a as L}from"./chunk.PP72VCB4.js";import{a as K}from"./chunk.CQPLNRNB.js";import{a as J}from"./chunk.TSZI2CPF.js";import{a as I}from"./chunk.F7QM26VX.js";import{a as H}from"./chunk.N72C3VU3.js";import{a as o}from"./chunk.HTBAOVSV.js";import{a as G}from"./chunk.6C4VTMLQ.js";import{a as F}from"./chunk.TMMJRXEV.js";import{a as T}from"./chunk.Z6NCEETZ.js";import{a as S}from"./chunk.4CAEAIFN.js";import{a as R}from"./chunk.PCTA7J6C.js";import{a as Q}from"./chunk.PBL2P7GX.js";import{a as P}from"./chunk.7QYDQTBC.js";import{a as O}from"./chunk.NU2STAMX.js";import{a as N}from"./chunk.B27E7VEZ.js";import{a as M}from"./chunk.V4EXVX5U.js";import{a as $}from"./chunk.EZBCPDK5.js";import{a as _}from"./chunk.DG6SQOFC.js";import{a as Z}from"./chunk.ZJK5UEUE.js";import{a as Y}from"./chunk.2K4PNLGV.js";import{a as X}from"./chunk.22DZRUGL.js";import{a as W}from"./chunk.6SP3MLBX.js";import{a as V}from"./chunk.V3AEPIKH.js";import{a as U}from"./chunk.2SM5MTG6.js";import{a as xo}from"./chunk.UJQFNBOE.js";import{a as to}from"./chunk.LDRHXIYA.js";import{a as po}from"./chunk.SXVGSAUS.js";import{a as mo}from"./chunk.IJXVLI7F.js";import{a as fo}from"./chunk.M256MZ2P.js";import{a as eo}from"./chunk.G443HDU2.js";import{a as ro}from"./chunk.O537LU5E.js";import{a as oo}from"./chunk.MO7QMIH2.js";import{a as ho}from"./chunk.5PONJGRH.js";import{a as co}from"./chunk.MAQ3AU52.js";import{a as bo}from"./chunk.IFDHHGOU.js";import{a as no}from"./chunk.TARXG5U3.js";import{a as io}from"./chunk.5G3DFRPP.js";import{a as go}from"./chunk.SEIDC2AV.js";import{a as ao}from"./chunk.IGMWK7NZ.js";import{a as so}from"./chunk.ESSED3D6.js";import{a as yo}from"./chunk.3U3NAHEY.js";import{a as wo}from"./chunk.GMD2IG67.js";import{a as vo}from"./chunk.NE3XXRZM.js";import{a as uo}from"./chunk.Y4QDLYQS.js";import{a as qo}from"./chunk.4NL2VE5O.js";import{a as lo}from"./chunk.LHYUHRTC.js";import{a as ko}from"./chunk.MM4THVKJ.js";import{a as jo}from"./chunk.XNUSDBIN.js";import{a as Go}from"./chunk.4W3OJG5Y.js";import{a as Fo}from"./chunk.M2NVAC3Z.js";import{a as Eo}from"./chunk.BGH5L7N6.js";import{a as Do}from"./chunk.IJMKJLO7.js";import{a as Co}from"./chunk.EMVTQD7Z.js";import{a as Bo}from"./chunk.ELYXTKTB.js";import{a as Ao}from"./chunk.G4SAKBPC.js";import{a as zo}from"./chunk.2SQLMTYR.js";import{a as Oo}from"./chunk.KYRT75BX.js";import{a as No}from"./chunk.LI6ACV6L.js";import{a as Mo}from"./chunk.ZVANQQXU.js";import{a as Lo}from"./chunk.DRJDBJ6E.js";import{a as Ko}from"./chunk.EZBP4Q35.js";import{a as Jo}from"./chunk.U7RBI2DC.js";import{a as Io}from"./chunk.ZE2WQTE4.js";import{a as Ho}from"./chunk.ECBLO7D3.js";import{a as Uo}from"./chunk.OD26IPSI.js";import{a as To}from"./chunk.HGR2N7GN.js";import{a as So}from"./chunk.7UGLJJM6.js";import{a as Ro}from"./chunk.5HIUPHOM.js";import{a as Qo}from"./chunk.DNS43PE3.js";import{a as Po}from"./chunk.P7GBRX2Q.js";import{a as r}from"./chunk.E6MOE4FE.js";var Vo={};r(Vo,{backInDown:()=>d,backInLeft:()=>h,backInRight:()=>j,backInUp:()=>k,backOutDown:()=>l,backOutLeft:()=>q,backOutRight:()=>u,backOutUp:()=>v,bounce:()=>e,bounceIn:()=>w,bounceInDown:()=>y,bounceInLeft:()=>z,bounceInRight:()=>A,bounceInUp:()=>B,bounceOut:()=>C,bounceOutDown:()=>D,bounceOutLeft:()=>E,bounceOutRight:()=>F,bounceOutUp:()=>G,easings:()=>o,fadeIn:()=>H,fadeInBottomLeft:()=>I,fadeInBottomRight:()=>J,fadeInDown:()=>K,fadeInDownBig:()=>L,fadeInLeft:()=>M,fadeInLeftBig:()=>N,fadeInRight:()=>O,fadeInRightBig:()=>P,fadeInTopLeft:()=>Q,fadeInTopRight:()=>R,fadeInUp:()=>S,fadeInUpBig:()=>T,fadeOut:()=>U,fadeOutBottomLeft:()=>V,fadeOutBottomRight:()=>W,fadeOutDown:()=>X,fadeOutDownBig:()=>Y,fadeOutLeft:()=>Z,fadeOutLeftBig:()=>_,fadeOutRight:()=>$,fadeOutRightBig:()=>oo,fadeOutTopLeft:()=>ro,fadeOutTopRight:()=>eo,fadeOutUp:()=>fo,fadeOutUpBig:()=>mo,flash:()=>f,flip:()=>po,flipInX:()=>to,flipInY:()=>xo,flipOutX:()=>so,flipOutY:()=>ao,headShake:()=>m,heartBeat:()=>p,hinge:()=>Ho,jackInTheBox:()=>Io,jello:()=>t,lightSpeedInLeft:()=>go,lightSpeedInRight:()=>io,lightSpeedOutLeft:()=>no,lightSpeedOutRight:()=>bo,pulse:()=>x,rollIn:()=>Jo,rollOut:()=>Ko,rotateIn:()=>co,rotateInDownLeft:()=>ho,rotateInDownRight:()=>jo,rotateInUpLeft:()=>ko,rotateInUpRight:()=>lo,rotateOut:()=>qo,rotateOutDownLeft:()=>uo,rotateOutDownRight:()=>vo,rotateOutUpLeft:()=>wo,rotateOutUpRight:()=>yo,rubberBand:()=>s,shake:()=>a,shakeX:()=>g,shakeY:()=>i,slideInDown:()=>zo,slideInLeft:()=>Ao,slideInRight:()=>Bo,slideInUp:()=>Co,slideOutDown:()=>Do,slideOutLeft:()=>Eo,slideOutRight:()=>Fo,slideOutUp:()=>Go,swing:()=>n,tada:()=>b,wobble:()=>c,zoomIn:()=>Lo,zoomInDown:()=>Mo,zoomInLeft:()=>No,zoomInRight:()=>Oo,zoomInUp:()=>Po,zoomOut:()=>Qo,zoomOutDown:()=>Ro,zoomOutLeft:()=>So,zoomOutRight:()=>To,zoomOutUp:()=>Uo});export{Vo as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as o,b as a,c as h}from"./chunk.BSPQBW7U.js";import{e as i}from"./chunk.
|
|
1
|
+
import{a as o,b as a,c as h}from"./chunk.BSPQBW7U.js";import{e as i}from"./chunk.VCGQQWP5.js";var l=a(class extends h{constructor(s){if(super(s),s.type!==o.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(e=>s[e]).join(" ")+" "}update(s,[e]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(t=>t!=="")));for(let t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}let r=s.element.classList;for(let t of this.st)t in e||(r.remove(t),this.st.delete(t));for(let t in e){let n=!!e[t];n===this.st.has(t)||this.nt?.has(t)||(n?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return i}});export{l as a};
|
|
2
2
|
/*! Bundled license information:
|
|
3
3
|
|
|
4
4
|
lit-html/directives/class-map.js:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as h}from"./chunk.64A22SHE.js";import{a as o,b as s,c as i,e as n,g as c}from"./chunk.
|
|
1
|
+
import{a as h}from"./chunk.64A22SHE.js";import{a as o,b as s,c as i,e as n,g as c}from"./chunk.GINYSCJR.js";import{a as d}from"./chunk.L7IJIML3.js";import{d as r}from"./chunk.VCGQQWP5.js";import{b as a}from"./chunk.E6MOE4FE.js";var u=`:host {
|
|
2
2
|
display: flex;
|
|
3
3
|
position: relative;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as k}from"./chunk.
|
|
1
|
+
import{a as k}from"./chunk.AQEEED44.js";import{a as A}from"./chunk.Y452TQZB.js";import{a as z}from"./chunk.OOPBLVP2.js";import{a as x}from"./chunk.OMC4FRTB.js";import{a as H}from"./chunk.GFCFF7RE.js";import{a as c,d as h,e as p}from"./chunk.RZZMGXAZ.js";import{a as m}from"./chunk.OOQOIJSK.js";import{a as d}from"./chunk.XHFEQY3T.js";import{a as y,b as s,c as v,e as n,g as w}from"./chunk.GINYSCJR.js";import{a as g}from"./chunk.H2EOXVSZ.js";import{a as E}from"./chunk.L7IJIML3.js";import{d as b}from"./chunk.VCGQQWP5.js";import{a as u,c as f}from"./chunk.N5AZOOIZ.js";import{b as r}from"./chunk.E6MOE4FE.js";var S=`:host {
|
|
2
2
|
display: block;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as y}from"./chunk.
|
|
1
|
+
import{a as y}from"./chunk.FBMLKLCZ.js";import{a as g}from"./chunk.W5PM7F34.js";import{a as s}from"./chunk.U7BNGYYH.js";import{a as v}from"./chunk.BSQP4EKW.js";import{a as d}from"./chunk.AQEEED44.js";import{a as f}from"./chunk.S5DN2ZZE.js";import{a as m}from"./chunk.AGGS6MN5.js";import{a as b}from"./chunk.XHFEQY3T.js";import{a as c,b as r,c as p,e as a}from"./chunk.GINYSCJR.js";import{a as u}from"./chunk.H2EOXVSZ.js";import{d as h}from"./chunk.VCGQQWP5.js";import{b as i}from"./chunk.E6MOE4FE.js";var z=`:host {
|
|
2
2
|
border-width: 0;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk.
|
|
1
|
+
import{a as n}from"./chunk.AGTJOSFZ.js";import{a as t}from"./chunk.HTBAOVSV.js";function i(){return Object.entries(n).filter(([e])=>e!=="easings").map(([e])=>e)}function a(){return Object.entries(t).map(([e])=>e)}export{i as a,a as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as n}from"./chunk.IX4OV3X6.js";import{a,b as e,g as t}from"./chunk.
|
|
1
|
+
import{a as n}from"./chunk.IX4OV3X6.js";import{a,b as e,g as t}from"./chunk.GINYSCJR.js";import{d as l}from"./chunk.VCGQQWP5.js";import{b as o}from"./chunk.E6MOE4FE.js";var c=`:host {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as c}from"./chunk.BSQP4EKW.js";import{a as t}from"./chunk.
|
|
1
|
+
import{a as c}from"./chunk.BSQP4EKW.js";import{a as t}from"./chunk.AQEEED44.js";import{a as s}from"./chunk.AGGS6MN5.js";import{a as e,b as d,g as l}from"./chunk.GINYSCJR.js";import{d as o}from"./chunk.VCGQQWP5.js";import{b as a}from"./chunk.E6MOE4FE.js";var i=`:host {
|
|
2
2
|
--spacing: var(--pc-spacing-l);
|
|
3
3
|
|
|
4
4
|
display: inline-block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as i}from"./chunk.IX4OV3X6.js";import{a as n}from"./chunk.BSQP4EKW.js";import{a as s}from"./chunk.ONCZNBNA.js";import{a as l,b as o,g as a}from"./chunk.
|
|
1
|
+
import{a as i}from"./chunk.IX4OV3X6.js";import{a as n}from"./chunk.BSQP4EKW.js";import{a as s}from"./chunk.ONCZNBNA.js";import{a as l,b as o,g as a}from"./chunk.GINYSCJR.js";import{a as c}from"./chunk.L7IJIML3.js";import{d as t}from"./chunk.VCGQQWP5.js";import{b as r}from"./chunk.E6MOE4FE.js";var p=`:host {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: 0.5em;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as o,b as i,g as s}from"./chunk.
|
|
1
|
+
import{a as o,b as i,g as s}from"./chunk.GINYSCJR.js";import{a as m}from"./chunk.L7IJIML3.js";import{d as r}from"./chunk.VCGQQWP5.js";import{b as t}from"./chunk.E6MOE4FE.js";var e=class extends s{constructor(){super(...arguments);this.localize=new m(this);this.date=new Date;this.hourFormat="auto"}static get styles(){return[]}render(){let n=new Date(this.date),d=this.hourFormat==="auto"?void 0:this.hourFormat==="12";if(isNaN(n.getMilliseconds()))return;let h=this.localize.date(n,{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:d});return r`
|
|
2
2
|
<time datetime=${n.toISOString()}>${h}</time>
|
|
3
3
|
`}};t([i()],e.prototype,"date",2),t([i()],e.prototype,"weekday",2),t([i()],e.prototype,"era",2),t([i()],e.prototype,"year",2),t([i()],e.prototype,"month",2),t([i()],e.prototype,"day",2),t([i()],e.prototype,"hour",2),t([i()],e.prototype,"minute",2),t([i()],e.prototype,"second",2),t([i({attribute:"time-zone-name"})],e.prototype,"timeZoneName",2),t([i({attribute:"time-zone"})],e.prototype,"timeZone",2),t([i({attribute:"hour-format"})],e.prototype,"hourFormat",2),e=t([o("pc-format-date")],e);export{e as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as x}from"./chunk.Y7HJFCRV.js";import{a as tt}from"./chunk.W5PM7F34.js";import{a as T}from"./chunk.AYBKOF2S.js";import{a as _}from"./chunk.BSQP4EKW.js";import{a as M}from"./chunk.YPV6KKNK.js";import{a as it}from"./chunk.Y452TQZB.js";import{a as rt}from"./chunk.OOPBLVP2.js";import{a as st}from"./chunk.OMC4FRTB.js";import{a as at}from"./chunk.GFCFF7RE.js";import{a as L}from"./chunk.RZZMGXAZ.js";import{a as P}from"./chunk.43BYYM5E.js";import{a as g}from"./chunk.SGKHPA3Q.js";import{a as N}from"./chunk.OOQOIJSK.js";import{a as R}from"./chunk.ZLITPNV3.js";import{a as Q}from"./chunk.AGGS6MN5.js";import{a as F}from"./chunk.63N43BIV.js";import{a as J}from"./chunk.UPTMZCQ7.js";import{a as W,b as d,c as w,d as Z,e as $}from"./chunk.2J4EDLZA.js";import{a as H}from"./chunk.H2EOXVSZ.js";import{a as B,c as K}from"./chunk.N5AZOOIZ.js";import{a as et}from"./chunk.L7IJIML3.js";import{d as y}from"./chunk.YQLPGQHO.js";import{b as l}from"./chunk.E6MOE4FE.js";function c(r,e){bt(r)&&(r="100%");let t=gt(r);return r=e===360?r:Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:(e===360?r=(r<0?r%e+e:r%e)/parseFloat(String(e)):r=r%e/parseFloat(String(e)),r)}function D(r){return Math.min(1,Math.max(0,r))}function bt(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function gt(r){return typeof r=="string"&&r.indexOf("%")!==-1}function C(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function A(r){return Number(r)<=1?`${Number(r)*100}%`:r}function k(r){return r.length===1?"0"+r:String(r)}function nt(r,e,t){return{r:c(r,255)*255,g:c(e,255)*255,b:c(t,255)*255}}function O(r,e,t){r=c(r,255),e=c(e,255),t=c(t,255);let i=Math.max(r,e,t),s=Math.min(r,e,t),a=0,n=0,o=(i+s)/2;if(i===s)n=0,a=0;else{let p=i-s;switch(n=o>.5?p/(2-i-s):p/(i+s),i){case r:a=(e-t)/p+(e<t?6:0);break;case e:a=(t-r)/p+2;break;case t:a=(r-e)/p+4;break;default:break}a/=6}return{h:a,s:n,l:o}}function q(r,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+(e-r)*(6*t):t<1/2?e:t<2/3?r+(e-r)*(2/3-t)*6:r}function ot(r,e,t){let i,s,a;if(r=c(r,360),e=c(e,100),t=c(t,100),e===0)s=t,a=t,i=t;else{let n=t<.5?t*(1+e):t+e-t*e,o=2*t-n;i=q(o,n,r+1/3),s=q(o,n,r),a=q(o,n,r-1/3)}return{r:i*255,g:s*255,b:a*255}}function U(r,e,t){r=c(r,255),e=c(e,255),t=c(t,255);let i=Math.max(r,e,t),s=Math.min(r,e,t),a=0,n=i,o=i-s,p=i===0?0:o/i;if(i===s)a=0;else{switch(i){case r:a=(e-t)/o+(e<t?6:0);break;case e:a=(t-r)/o+2;break;case t:a=(r-e)/o+4;break;default:break}a/=6}return{h:a,s:p,v:n}}function ht(r,e,t){r=c(r,360)*6,e=c(e,100),t=c(t,100);let i=Math.floor(r),s=r-i,a=t*(1-e),n=t*(1-s*e),o=t*(1-(1-s)*e),p=i%6,b=[t,n,a,a,o,t][p],u=[o,t,t,n,a,a][p],S=[a,a,o,t,t,n][p];return{r:b*255,g:u*255,b:S*255}}function Y(r,e,t,i){let s=[k(Math.round(r).toString(16)),k(Math.round(e).toString(16)),k(Math.round(t).toString(16))];return i&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function lt(r,e,t,i,s){let a=[k(Math.round(r).toString(16)),k(Math.round(e).toString(16)),k(Math.round(t).toString(16)),k(mt(i))];return s&&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 ut(r,e,t,i){let s=r/100,a=e/100,n=t/100,o=i/100,p=255*(1-s)*(1-o),b=255*(1-a)*(1-o),u=255*(1-n)*(1-o);return{r:p,g:b,b:u}}function j(r,e,t){let i=1-r/255,s=1-e/255,a=1-t/255,n=Math.min(i,s,a);return n===1?(i=0,s=0,a=0):(i=(i-n)/(1-n)*100,s=(s-n)/(1-n)*100,a=(a-n)/(1-n)*100),n*=100,{c:Math.round(i),m:Math.round(s),y:Math.round(a),k:Math.round(n)}}function mt(r){return Math.round(parseFloat(r)*255).toString(16)}function G(r){return f(r)/255}function f(r){return parseInt(r,16)}function pt(r){return{r:r>>16,g:(r&65280)>>8,b:r&255}}var z={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 ct(r){let e={r:0,g:0,b:0},t=1,i=null,s=null,a=null,n=!1,o=!1;return typeof r=="string"&&(r=wt(r)),typeof r=="object"&&(m(r.r)&&m(r.g)&&m(r.b)?(e=nt(r.r,r.g,r.b),n=!0,o=String(r.r).substr(-1)==="%"?"prgb":"rgb"):m(r.h)&&m(r.s)&&m(r.v)?(i=A(r.s),s=A(r.v),e=ht(r.h,i,s),n=!0,o="hsv"):m(r.h)&&m(r.s)&&m(r.l)?(i=A(r.s),a=A(r.l),e=ot(r.h,i,a),n=!0,o="hsl"):m(r.c)&&m(r.m)&&m(r.y)&&m(r.k)&&(e=ut(r.c,r.m,r.y,r.k),n=!0,o="cmyk"),Object.prototype.hasOwnProperty.call(r,"a")&&(t=r.a)),t=C(t),{ok:n,format:r.format||o,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:t}}var vt="[-\\+]?\\d+%?",yt="[-\\+]?\\d*\\.\\d+%?",E="(?:"+yt+")|(?:"+vt+")",X="[\\s|\\(]+("+E+")[,|\\s]+("+E+")[,|\\s]+("+E+")\\s*\\)?",I="[\\s|\\(]+("+E+")[,|\\s]+("+E+")[,|\\s]+("+E+")[,|\\s]+("+E+")\\s*\\)?",v={CSS_UNIT:new RegExp(E),rgb:new RegExp("rgb"+X),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+X),hsla:new RegExp("hsla"+I),hsv:new RegExp("hsv"+X),hsva:new RegExp("hsva"+I),cmyk:new RegExp("cmyk"+I),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 wt(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;let e=!1;if(z[r])r=z[r],e=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let t=v.rgb.exec(r);return t?{r:t[1],g:t[2],b:t[3]}:(t=v.rgba.exec(r),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=v.hsl.exec(r),t?{h:t[1],s:t[2],l:t[3]}:(t=v.hsla.exec(r),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=v.hsv.exec(r),t?{h:t[1],s:t[2],v:t[3]}:(t=v.hsva.exec(r),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=v.cmyk.exec(r),t?{c:t[1],m:t[2],y:t[3],k:t[4]}:(t=v.hex8.exec(r),t?{r:f(t[1]),g:f(t[2]),b:f(t[3]),a:G(t[4]),format:e?"name":"hex8"}:(t=v.hex6.exec(r),t?{r:f(t[1]),g:f(t[2]),b:f(t[3]),format:e?"name":"hex"}:(t=v.hex4.exec(r),t?{r:f(t[1]+t[1]),g:f(t[2]+t[2]),b:f(t[3]+t[3]),a:G(t[4]+t[4]),format:e?"name":"hex8"}:(t=v.hex3.exec(r),t?{r:f(t[1]+t[1]),g:f(t[2]+t[2]),b:f(t[3]+t[3]),format:e?"name":"hex"}:!1))))))))))}function m(r){return typeof r=="number"?!Number.isNaN(r):v.CSS_UNIT.test(r)}var V=class r{constructor(e="",t={}){if(e instanceof r)return e;typeof e=="number"&&(e=pt(e)),this.originalInput=e;let i=ct(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=t.format??i.format,this.gradientType=t.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=i.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){let e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3}getLuminance(){let e=this.toRgb(),t,i,s,a=e.r/255,n=e.g/255,o=e.b/255;return a<=.03928?t=a/12.92:t=Math.pow((a+.055)/1.055,2.4),n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*t+.7152*i+.0722*s}getAlpha(){return this.a}setAlpha(e){return this.a=C(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){let{s:e}=this.toHsl();return e===0}toHsv(){let e=U(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}}toHsvString(){let e=U(this.r,this.g,this.b),t=Math.round(e.h*360),i=Math.round(e.s*100),s=Math.round(e.v*100);return this.a===1?`hsv(${t}, ${i}%, ${s}%)`:`hsva(${t}, ${i}%, ${s}%, ${this.roundA})`}toHsl(){let e=O(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}}toHslString(){let e=O(this.r,this.g,this.b),t=Math.round(e.h*360),i=Math.round(e.s*100),s=Math.round(e.l*100);return this.a===1?`hsl(${t}, ${i}%, ${s}%)`:`hsla(${t}, ${i}%, ${s}%, ${this.roundA})`}toHex(e=!1){return Y(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return lt(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(){let e=Math.round(this.r),t=Math.round(this.g),i=Math.round(this.b);return this.a===1?`rgb(${e}, ${t}, ${i})`:`rgba(${e}, ${t}, ${i}, ${this.roundA})`}toPercentageRgb(){let e=t=>`${Math.round(c(t,255)*100)}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){let e=t=>Math.round(c(t,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})`}toCmyk(){return{...j(this.r,this.g,this.b)}}toCmykString(){let{c:e,m:t,y:i,k:s}=j(this.r,this.g,this.b);return`cmyk(${e}, ${t}, ${i}, ${s})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;let e="#"+Y(this.r,this.g,this.b,!1);for(let[t,i]of Object.entries(z))if(e===i)return t;return!1}toString(e){let t=!!e;e=e??this.format;let i=!1,s=this.a<1&&this.a>=0;return!t&&s&&(e.startsWith("hex")||e==="name")?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(i=this.toRgbString()),e==="prgb"&&(i=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(i=this.toHexString()),e==="hex3"&&(i=this.toHexString(!0)),e==="hex4"&&(i=this.toHex8String(!0)),e==="hex8"&&(i=this.toHex8String()),e==="name"&&(i=this.toName()),e==="hsl"&&(i=this.toHslString()),e==="hsv"&&(i=this.toHsvString()),e==="cmyk"&&(i=this.toCmykString()),i||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new r(this.toString())}lighten(e=10){let t=this.toHsl();return t.l+=e/100,t.l=D(t.l),new r(t)}brighten(e=10){let t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),new r(t)}darken(e=10){let t=this.toHsl();return t.l-=e/100,t.l=D(t.l),new r(t)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){let t=this.toHsl();return t.s-=e/100,t.s=D(t.s),new r(t)}saturate(e=10){let t=this.toHsl();return t.s+=e/100,t.s=D(t.s),new r(t)}greyscale(){return this.desaturate(100)}spin(e){let t=this.toHsl(),i=(t.h+e)%360;return t.h=i<0?360+i:i,new r(t)}mix(e,t=50){let i=this.toRgb(),s=new r(e).toRgb(),a=t/100,n={r:(s.r-i.r)*a+i.r,g:(s.g-i.g)*a+i.g,b:(s.b-i.b)*a+i.b,a:(s.a-i.a)*a+i.a};return new r(n)}analogous(e=6,t=30){let i=this.toHsl(),s=360/t,a=[this];for(i.h=(i.h-(s*e>>1)+720)%360;--e;)i.h=(i.h+s)%360,a.push(new r(i));return a}complement(){let e=this.toHsl();return e.h=(e.h+180)%360,new r(e)}monochromatic(e=6){let t=this.toHsv(),{h:i}=t,{s}=t,{v:a}=t,n=[],o=1/e;for(;e--;)n.push(new r({h:i,s,v:a})),a=(a+o)%1;return n}splitcomplement(){let e=this.toHsl(),{h:t}=e;return[this,new r({h:(t+72)%360,s:e.s,l:e.l}),new r({h:(t+216)%360,s:e.s,l:e.l})]}onBackground(e){let t=this.toRgb(),i=new r(e).toRgb(),s=t.a+i.a*(1-t.a);return new r({r:(t.r*t.a+i.r*i.a*(1-t.a))/s,g:(t.g*t.a+i.g*i.a*(1-t.a))/s,b:(t.b*t.a+i.b*i.a*(1-t.a))/s,a:s})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){let t=this.toHsl(),{h:i}=t,s=[this],a=360/e;for(let n=1;n<e;n++)s.push(new r({h:(i+n*a)%360,s:t.s,l:t.l}));return s}equals(e){let t=new r(e);return this.format==="cmyk"||t.format==="cmyk"?this.toCmykString()===t.toCmykString():this.toRgbString()===t.toRgbString()}};var dt=`:host {
|
|
1
|
+
import{a as x}from"./chunk.L5FZSNU3.js";import{a as tt}from"./chunk.W5PM7F34.js";import{a as T}from"./chunk.U7BNGYYH.js";import{a as _}from"./chunk.BSQP4EKW.js";import{a as M}from"./chunk.AQEEED44.js";import{a as it}from"./chunk.Y452TQZB.js";import{a as rt}from"./chunk.OOPBLVP2.js";import{a as st}from"./chunk.OMC4FRTB.js";import{a as at}from"./chunk.GFCFF7RE.js";import{a as L}from"./chunk.RZZMGXAZ.js";import{a as P}from"./chunk.43BYYM5E.js";import{a as N}from"./chunk.OOQOIJSK.js";import{a as R}from"./chunk.ZLITPNV3.js";import{a as Q}from"./chunk.AGGS6MN5.js";import{a as F}from"./chunk.XHFEQY3T.js";import{a as J}from"./chunk.UPTMZCQ7.js";import{a as W,b as d,c as w,d as Z,e as $}from"./chunk.GINYSCJR.js";import{a as g}from"./chunk.DEAAULRI.js";import{a as H}from"./chunk.H2EOXVSZ.js";import{a as et}from"./chunk.L7IJIML3.js";import{d as y}from"./chunk.VCGQQWP5.js";import{a as B,c as K}from"./chunk.N5AZOOIZ.js";import{b as l}from"./chunk.E6MOE4FE.js";function c(r,e){bt(r)&&(r="100%");let t=gt(r);return r=e===360?r:Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:(e===360?r=(r<0?r%e+e:r%e)/parseFloat(String(e)):r=r%e/parseFloat(String(e)),r)}function D(r){return Math.min(1,Math.max(0,r))}function bt(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function gt(r){return typeof r=="string"&&r.indexOf("%")!==-1}function C(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function A(r){return Number(r)<=1?`${Number(r)*100}%`:r}function k(r){return r.length===1?"0"+r:String(r)}function nt(r,e,t){return{r:c(r,255)*255,g:c(e,255)*255,b:c(t,255)*255}}function O(r,e,t){r=c(r,255),e=c(e,255),t=c(t,255);let i=Math.max(r,e,t),s=Math.min(r,e,t),a=0,n=0,o=(i+s)/2;if(i===s)n=0,a=0;else{let p=i-s;switch(n=o>.5?p/(2-i-s):p/(i+s),i){case r:a=(e-t)/p+(e<t?6:0);break;case e:a=(t-r)/p+2;break;case t:a=(r-e)/p+4;break;default:break}a/=6}return{h:a,s:n,l:o}}function q(r,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+(e-r)*(6*t):t<1/2?e:t<2/3?r+(e-r)*(2/3-t)*6:r}function ot(r,e,t){let i,s,a;if(r=c(r,360),e=c(e,100),t=c(t,100),e===0)s=t,a=t,i=t;else{let n=t<.5?t*(1+e):t+e-t*e,o=2*t-n;i=q(o,n,r+1/3),s=q(o,n,r),a=q(o,n,r-1/3)}return{r:i*255,g:s*255,b:a*255}}function U(r,e,t){r=c(r,255),e=c(e,255),t=c(t,255);let i=Math.max(r,e,t),s=Math.min(r,e,t),a=0,n=i,o=i-s,p=i===0?0:o/i;if(i===s)a=0;else{switch(i){case r:a=(e-t)/o+(e<t?6:0);break;case e:a=(t-r)/o+2;break;case t:a=(r-e)/o+4;break;default:break}a/=6}return{h:a,s:p,v:n}}function ht(r,e,t){r=c(r,360)*6,e=c(e,100),t=c(t,100);let i=Math.floor(r),s=r-i,a=t*(1-e),n=t*(1-s*e),o=t*(1-(1-s)*e),p=i%6,b=[t,n,a,a,o,t][p],u=[o,t,t,n,a,a][p],S=[a,a,o,t,t,n][p];return{r:b*255,g:u*255,b:S*255}}function Y(r,e,t,i){let s=[k(Math.round(r).toString(16)),k(Math.round(e).toString(16)),k(Math.round(t).toString(16))];return i&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function lt(r,e,t,i,s){let a=[k(Math.round(r).toString(16)),k(Math.round(e).toString(16)),k(Math.round(t).toString(16)),k(mt(i))];return s&&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 ut(r,e,t,i){let s=r/100,a=e/100,n=t/100,o=i/100,p=255*(1-s)*(1-o),b=255*(1-a)*(1-o),u=255*(1-n)*(1-o);return{r:p,g:b,b:u}}function j(r,e,t){let i=1-r/255,s=1-e/255,a=1-t/255,n=Math.min(i,s,a);return n===1?(i=0,s=0,a=0):(i=(i-n)/(1-n)*100,s=(s-n)/(1-n)*100,a=(a-n)/(1-n)*100),n*=100,{c:Math.round(i),m:Math.round(s),y:Math.round(a),k:Math.round(n)}}function mt(r){return Math.round(parseFloat(r)*255).toString(16)}function G(r){return f(r)/255}function f(r){return parseInt(r,16)}function pt(r){return{r:r>>16,g:(r&65280)>>8,b:r&255}}var z={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 ct(r){let e={r:0,g:0,b:0},t=1,i=null,s=null,a=null,n=!1,o=!1;return typeof r=="string"&&(r=wt(r)),typeof r=="object"&&(m(r.r)&&m(r.g)&&m(r.b)?(e=nt(r.r,r.g,r.b),n=!0,o=String(r.r).substr(-1)==="%"?"prgb":"rgb"):m(r.h)&&m(r.s)&&m(r.v)?(i=A(r.s),s=A(r.v),e=ht(r.h,i,s),n=!0,o="hsv"):m(r.h)&&m(r.s)&&m(r.l)?(i=A(r.s),a=A(r.l),e=ot(r.h,i,a),n=!0,o="hsl"):m(r.c)&&m(r.m)&&m(r.y)&&m(r.k)&&(e=ut(r.c,r.m,r.y,r.k),n=!0,o="cmyk"),Object.prototype.hasOwnProperty.call(r,"a")&&(t=r.a)),t=C(t),{ok:n,format:r.format||o,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:t}}var vt="[-\\+]?\\d+%?",yt="[-\\+]?\\d*\\.\\d+%?",E="(?:"+yt+")|(?:"+vt+")",X="[\\s|\\(]+("+E+")[,|\\s]+("+E+")[,|\\s]+("+E+")\\s*\\)?",I="[\\s|\\(]+("+E+")[,|\\s]+("+E+")[,|\\s]+("+E+")[,|\\s]+("+E+")\\s*\\)?",v={CSS_UNIT:new RegExp(E),rgb:new RegExp("rgb"+X),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+X),hsla:new RegExp("hsla"+I),hsv:new RegExp("hsv"+X),hsva:new RegExp("hsva"+I),cmyk:new RegExp("cmyk"+I),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 wt(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;let e=!1;if(z[r])r=z[r],e=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let t=v.rgb.exec(r);return t?{r:t[1],g:t[2],b:t[3]}:(t=v.rgba.exec(r),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=v.hsl.exec(r),t?{h:t[1],s:t[2],l:t[3]}:(t=v.hsla.exec(r),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=v.hsv.exec(r),t?{h:t[1],s:t[2],v:t[3]}:(t=v.hsva.exec(r),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=v.cmyk.exec(r),t?{c:t[1],m:t[2],y:t[3],k:t[4]}:(t=v.hex8.exec(r),t?{r:f(t[1]),g:f(t[2]),b:f(t[3]),a:G(t[4]),format:e?"name":"hex8"}:(t=v.hex6.exec(r),t?{r:f(t[1]),g:f(t[2]),b:f(t[3]),format:e?"name":"hex"}:(t=v.hex4.exec(r),t?{r:f(t[1]+t[1]),g:f(t[2]+t[2]),b:f(t[3]+t[3]),a:G(t[4]+t[4]),format:e?"name":"hex8"}:(t=v.hex3.exec(r),t?{r:f(t[1]+t[1]),g:f(t[2]+t[2]),b:f(t[3]+t[3]),format:e?"name":"hex"}:!1))))))))))}function m(r){return typeof r=="number"?!Number.isNaN(r):v.CSS_UNIT.test(r)}var V=class r{constructor(e="",t={}){if(e instanceof r)return e;typeof e=="number"&&(e=pt(e)),this.originalInput=e;let i=ct(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=t.format??i.format,this.gradientType=t.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=i.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){let e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3}getLuminance(){let e=this.toRgb(),t,i,s,a=e.r/255,n=e.g/255,o=e.b/255;return a<=.03928?t=a/12.92:t=Math.pow((a+.055)/1.055,2.4),n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*t+.7152*i+.0722*s}getAlpha(){return this.a}setAlpha(e){return this.a=C(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){let{s:e}=this.toHsl();return e===0}toHsv(){let e=U(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}}toHsvString(){let e=U(this.r,this.g,this.b),t=Math.round(e.h*360),i=Math.round(e.s*100),s=Math.round(e.v*100);return this.a===1?`hsv(${t}, ${i}%, ${s}%)`:`hsva(${t}, ${i}%, ${s}%, ${this.roundA})`}toHsl(){let e=O(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}}toHslString(){let e=O(this.r,this.g,this.b),t=Math.round(e.h*360),i=Math.round(e.s*100),s=Math.round(e.l*100);return this.a===1?`hsl(${t}, ${i}%, ${s}%)`:`hsla(${t}, ${i}%, ${s}%, ${this.roundA})`}toHex(e=!1){return Y(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return lt(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(){let e=Math.round(this.r),t=Math.round(this.g),i=Math.round(this.b);return this.a===1?`rgb(${e}, ${t}, ${i})`:`rgba(${e}, ${t}, ${i}, ${this.roundA})`}toPercentageRgb(){let e=t=>`${Math.round(c(t,255)*100)}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){let e=t=>Math.round(c(t,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})`}toCmyk(){return{...j(this.r,this.g,this.b)}}toCmykString(){let{c:e,m:t,y:i,k:s}=j(this.r,this.g,this.b);return`cmyk(${e}, ${t}, ${i}, ${s})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;let e="#"+Y(this.r,this.g,this.b,!1);for(let[t,i]of Object.entries(z))if(e===i)return t;return!1}toString(e){let t=!!e;e=e??this.format;let i=!1,s=this.a<1&&this.a>=0;return!t&&s&&(e.startsWith("hex")||e==="name")?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(i=this.toRgbString()),e==="prgb"&&(i=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(i=this.toHexString()),e==="hex3"&&(i=this.toHexString(!0)),e==="hex4"&&(i=this.toHex8String(!0)),e==="hex8"&&(i=this.toHex8String()),e==="name"&&(i=this.toName()),e==="hsl"&&(i=this.toHslString()),e==="hsv"&&(i=this.toHsvString()),e==="cmyk"&&(i=this.toCmykString()),i||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new r(this.toString())}lighten(e=10){let t=this.toHsl();return t.l+=e/100,t.l=D(t.l),new r(t)}brighten(e=10){let t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),new r(t)}darken(e=10){let t=this.toHsl();return t.l-=e/100,t.l=D(t.l),new r(t)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){let t=this.toHsl();return t.s-=e/100,t.s=D(t.s),new r(t)}saturate(e=10){let t=this.toHsl();return t.s+=e/100,t.s=D(t.s),new r(t)}greyscale(){return this.desaturate(100)}spin(e){let t=this.toHsl(),i=(t.h+e)%360;return t.h=i<0?360+i:i,new r(t)}mix(e,t=50){let i=this.toRgb(),s=new r(e).toRgb(),a=t/100,n={r:(s.r-i.r)*a+i.r,g:(s.g-i.g)*a+i.g,b:(s.b-i.b)*a+i.b,a:(s.a-i.a)*a+i.a};return new r(n)}analogous(e=6,t=30){let i=this.toHsl(),s=360/t,a=[this];for(i.h=(i.h-(s*e>>1)+720)%360;--e;)i.h=(i.h+s)%360,a.push(new r(i));return a}complement(){let e=this.toHsl();return e.h=(e.h+180)%360,new r(e)}monochromatic(e=6){let t=this.toHsv(),{h:i}=t,{s}=t,{v:a}=t,n=[],o=1/e;for(;e--;)n.push(new r({h:i,s,v:a})),a=(a+o)%1;return n}splitcomplement(){let e=this.toHsl(),{h:t}=e;return[this,new r({h:(t+72)%360,s:e.s,l:e.l}),new r({h:(t+216)%360,s:e.s,l:e.l})]}onBackground(e){let t=this.toRgb(),i=new r(e).toRgb(),s=t.a+i.a*(1-t.a);return new r({r:(t.r*t.a+i.r*i.a*(1-t.a))/s,g:(t.g*t.a+i.g*i.a*(1-t.a))/s,b:(t.b*t.a+i.b*i.a*(1-t.a))/s,a:s})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){let t=this.toHsl(),{h:i}=t,s=[this],a=360/e;for(let n=1;n<e;n++)s.push(new r({h:(i+n*a)%360,s:t.s,l:t.l}));return s}equals(e){let t=new r(e);return this.format==="cmyk"||t.format==="cmyk"?this.toCmykString()===t.toCmykString():this.toRgbString()===t.toRgbString()}};var dt=`:host {
|
|
2
2
|
--grid-width: 17em;
|
|
3
3
|
--grid-height: 12em;
|
|
4
4
|
--grid-handle-size: 1.25em;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as v}from"./chunk.
|
|
1
|
+
import{a as v}from"./chunk.L5FZSNU3.js";import{a as R}from"./chunk.W5PM7F34.js";import{a as M}from"./chunk.BSQP4EKW.js";import{a as T}from"./chunk.AQEEED44.js";import{a as D}from"./chunk.YPTKAITV.js";import{b as V}from"./chunk.ZLITPNV3.js";import{a as y}from"./chunk.AGGS6MN5.js";import{a as $}from"./chunk.XHFEQY3T.js";import{a as k,b as r,c as w,e as c}from"./chunk.GINYSCJR.js";import{a as h}from"./chunk.DEAAULRI.js";import{a as F}from"./chunk.V65QAGBQ.js";import{a as z}from"./chunk.L7IJIML3.js";import{d}from"./chunk.VCGQQWP5.js";import{b as a}from"./chunk.E6MOE4FE.js";var E=`:host {
|
|
2
2
|
--track-size: 0.5em;
|
|
3
3
|
--thumb-width: 1.4em;
|
|
4
4
|
--thumb-height: 1.4em;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as i,b as l,c as p}from"./chunk.BSPQBW7U.js";import{e as s,f as o,g as a}from"./chunk.
|
|
1
|
+
import{a as i,b as l,c as p}from"./chunk.BSPQBW7U.js";import{e as s,f as o,g as a}from"./chunk.VCGQQWP5.js";var{I:_}=a;var A=e=>e.strings===void 0;var m={},$=(e,t=m)=>e._$AH=t;var v=l(class extends p{constructor(e){if(super(e),e.type!==i.PROPERTY&&e.type!==i.ATTRIBUTE&&e.type!==i.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!A(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===s||t===o)return t;let r=e.element,n=e.name;if(e.type===i.PROPERTY){if(t===r[n])return s}else if(e.type===i.BOOLEAN_ATTRIBUTE){if(!!t===r.hasAttribute(n))return s}else if(e.type===i.ATTRIBUTE&&r.getAttribute(n)===t+"")return s;return $(e),t}});export{v as a};
|
|
2
2
|
/*! Bundled license information:
|
|
3
3
|
|
|
4
4
|
lit-html/directive-helpers.js:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as v}from"./chunk.V52RFTK3.js";import{a as E}from"./chunk.5C3US2KL.js";import{a as f,b as s,c as g,g as b}from"./chunk.
|
|
1
|
+
import{a as v}from"./chunk.V52RFTK3.js";import{a as E}from"./chunk.5C3US2KL.js";import{a as f,b as s,c as g,g as b}from"./chunk.GINYSCJR.js";import{a as d}from"./chunk.H2EOXVSZ.js";import{d as p}from"./chunk.VCGQQWP5.js";import{a as w,b as R,c}from"./chunk.NOFB5XE4.js";import{b as r}from"./chunk.E6MOE4FE.js";var S=`:host {
|
|
2
2
|
--fa-primary-color: currentColor;
|
|
3
3
|
--fa-secondary-color: currentColor;
|
|
4
4
|
--fa-primary-opacity: 1;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import{a as y}from"./chunk.W5PM7F34.js";import{a as g}from"./chunk.BSQP4EKW.js";import{a as c}from"./chunk.AQEEED44.js";import{a as v}from"./chunk.43BYYM5E.js";import{a as m}from"./chunk.AGGS6MN5.js";import{a as h}from"./chunk.XHFEQY3T.js";import{a as f,b as n,c as p,e as b}from"./chunk.GINYSCJR.js";import{b as E}from"./chunk.DEAAULRI.js";import{d as u}from"./chunk.VCGQQWP5.js";import{b as r}from"./chunk.E6MOE4FE.js";var k=`:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.form-control {
|
|
6
|
+
position: relative;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
border: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.input {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
gap: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host([orientation="horizontal"]) .input {
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
}
|
|
22
|
+
`;var i=class extends h{constructor(){super();this.hasSlotController=new m(this,"hint","label");this.label="";this.hint="";this.name=null;this.disabled=!1;this.orientation="vertical";this._value=null;this.defaultValue=this.getAttribute("value")||null;this.required=!1;this.handleRadioClick=t=>{let e=t.target.closest("pc-radio");if(!e||e.disabled||e.forceDisabled||this.disabled)return;let s=this.value;this.value=e.value??null,e.checked=!0;let l=this.getAllRadios();for(let o of l)e!==o&&(o.checked=!1,o.setAttribute("tabindex","-1"));this.value!==s&&this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))})};this.addEventListener("click",this.handleRadioClick),this.addEventListener("keydown",this.handleKeyDown)}static get validators(){let t=[v({validationElement:Object.assign(document.createElement("input"),{required:!0,type:"radio",name:E("__pc-radio")})})];return[...super.validators,...t]}get value(){return this.valueHasChanged?this._value:this._value??this.defaultValue}set value(t){typeof t=="number"&&(t=String(t)),this.valueHasChanged=!0,this._value=t}get validationTarget(){let t=this.querySelector(":is(pc-radio):not([disabled])");if(t)return t}updated(t){(t.has("disabled")||t.has("size")||t.has("value")||t.has("defaultValue"))&&this.syncRadioElements()}formResetCallback(...t){this._value=null,super.formResetCallback(...t),this.syncRadioElements()}getAllRadios(){return[...this.querySelectorAll("pc-radio")]}handleLabelClick(){this.focus()}async syncRadioElements(){let t=this.getAllRadios();if(t.forEach((e,s)=>{this.size&&e.setAttribute("size",this.size),e.classList.toggle("pc-radio-group-horizontal",this.orientation==="horizontal"),e.classList.toggle("pc-radio-group-vertical",this.orientation==="vertical"),e.classList.toggle("pc-radio-group-radio-first",s===0),e.classList.toggle("pc-radio-group-radio-inner",s>0&&s<t.length-1),e.classList.toggle("pc-radio-group-radio-last",s===t.length-1),e.forceDisabled=this.disabled}),await Promise.all(t.map(async e=>{await e.updateComplete,!e.disabled&&e.value===this.value?e.checked=!0:e.checked=!1})),this.disabled)t.forEach(e=>{e.tabIndex=-1});else{let e=t.filter(l=>!l.disabled),s=e.find(l=>l.checked);e.length>0&&(s?e.forEach(l=>{l.tabIndex=l.checked?0:-1}):e.forEach((l,o)=>{l.tabIndex=o===0?0:-1})),t.filter(l=>l.disabled).forEach(l=>{l.tabIndex=-1})}}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key)||this.disabled)return;let e=this.getAllRadios().filter(d=>!d.disabled);if(e.length<=0)return;t.preventDefault();let s=this.value,l=e.find(d=>d.checked)??e[0],o=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,a=e.indexOf(l)+o;a||(a=0),a<0&&(a=e.length-1),a>e.length-1&&(a=0),this.getAllRadios().forEach(d=>{d.checked=!1,d.setAttribute("tabindex","-1")}),this.value=e[a].value??null,e[a].checked=!0,e[a].setAttribute("tabindex","0"),e[a].focus(),this.value!==s&&this.updateComplete.then(()=>{this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}),t.preventDefault()}focus(t){if(this.disabled)return;let e=this.getAllRadios(),s=e.find(a=>a.checked),l=e.find(a=>!a.disabled),o=s||l;o&&o.focus(t)}render(){let t=this.hasSlotController.test("label"),e=this.hasSlotController.test("hint"),s=this.label?!0:!!t,l=this.hint?!0:!!e;return u`
|
|
23
|
+
<fieldset
|
|
24
|
+
part="form-control"
|
|
25
|
+
class=${c({"form-control":!0,"radio-group":!0,"has-label":s,"has-hint":l})}
|
|
26
|
+
role="radiogroup"
|
|
27
|
+
aria-labelledby="label"
|
|
28
|
+
aria-describedby="hint"
|
|
29
|
+
aria-orientation=${this.orientation}
|
|
30
|
+
>
|
|
31
|
+
<label
|
|
32
|
+
class="label"
|
|
33
|
+
part="label"
|
|
34
|
+
id="label"
|
|
35
|
+
aria-hidden=${s?"false":"true"}
|
|
36
|
+
@click=${this.handleLabelClick}
|
|
37
|
+
>
|
|
38
|
+
<slot name="label">${this.label}</slot>
|
|
39
|
+
</label>
|
|
40
|
+
|
|
41
|
+
<slot
|
|
42
|
+
part="input"
|
|
43
|
+
class="input"
|
|
44
|
+
@slotchange=${this.syncRadioElements}
|
|
45
|
+
></slot>
|
|
46
|
+
|
|
47
|
+
<slot
|
|
48
|
+
class=${c({"has-hint":l})}
|
|
49
|
+
part="hint"
|
|
50
|
+
id="hint"
|
|
51
|
+
name="hint"
|
|
52
|
+
aria-hidden=${l?"false":"true"}
|
|
53
|
+
>
|
|
54
|
+
${this.hint}
|
|
55
|
+
</slot>
|
|
56
|
+
</fieldset>
|
|
57
|
+
`}};i.shadowRootOptions={...h.shadowRootOptions,delegatesFocus:!0},i.css=[y,g,k],r([b("slot:not([name])")],i.prototype,"defaultSlot",2),r([n()],i.prototype,"label",2),r([n()],i.prototype,"hint",2),r([n()],i.prototype,"name",2),r([n({type:Boolean,reflect:!0})],i.prototype,"disabled",2),r([n({reflect:!0})],i.prototype,"orientation",2),r([p()],i.prototype,"value",1),r([n({attribute:"value",reflect:!0})],i.prototype,"defaultValue",2),r([n({reflect:!0})],i.prototype,"size",2),r([n({type:Boolean,reflect:!0})],i.prototype,"required",2),i=r([f("pc-radio-group")],i);export{i as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as f,b as m,c as h,h as y}from"./chunk.
|
|
1
|
+
import{a as f,b as m,c as h,h as y}from"./chunk.VCGQQWP5.js";import{b as d}from"./chunk.E6MOE4FE.js";var v=r=>(s,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,s)}):customElements.define(r,s)};var b={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:h},x=(r=b,s,t)=>{let{kind:e,metadata:o}=t,a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),e==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),e==="accessor"){let{name:n}=t;return{set(i){let l=s.get.call(this);s.set.call(this,i),this.requestUpdate(n,l,r,!0,i)},init(i){return i!==void 0&&this.C(n,void 0,r,i),i}}}if(e==="setter"){let{name:n}=t;return function(i){let l=this[n];s.call(this,i),this.requestUpdate(n,l,r,!0,i)}}throw Error("Unsupported decorator location: "+e)};function u(r){return(s,t)=>typeof t=="object"?x(r,s,t):((e,o,a)=>{let n=o.hasOwnProperty(a);return o.constructor.createProperty(a,e),n?Object.getOwnPropertyDescriptor(o,a):void 0})(r,s,t)}function q(r){return u({...r,state:!0,attribute:!1})}function I(r){return(s,t)=>{let e=typeof s=="function"?s:s[t];Object.assign(e,r)}}var c=(r,s,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof s!="object"&&Object.defineProperty(r,s,t),t);function O(r,s){return(t,e,o)=>{let a=n=>n.renderRoot?.querySelector(r)??null;if(s){let{get:n,set:i}=typeof e=="object"?t:o??(()=>{let l=Symbol();return{get(){return this[l]},set(S){this[l]=S}}})();return c(t,e,{get(){let l=n.call(this);return l===void 0&&(l=a(this),(l!==null||this.hasUpdated)&&i.call(this,l)),l}})}return c(t,e,{get(){return a(this)}})}}function G(r){return(s,t)=>c(s,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}var g=`:host {
|
|
2
2
|
box-sizing: border-box !important;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as k}from"./chunk.
|
|
1
|
+
import{a as k}from"./chunk.AQEEED44.js";import{a as L}from"./chunk.Y452TQZB.js";import{a as E}from"./chunk.OOPBLVP2.js";import{a as C}from"./chunk.OMC4FRTB.js";import{a as T}from"./chunk.GFCFF7RE.js";import{a as l}from"./chunk.RZZMGXAZ.js";import{a as z}from"./chunk.AGGS6MN5.js";import{a as h,b as f}from"./chunk.R2GXUKDX.js";import{a as g,b as s,e as y,g as b}from"./chunk.GINYSCJR.js";import{a as S}from"./chunk.RQ34LIU5.js";import{a as v}from"./chunk.H2EOXVSZ.js";import{a as m}from"./chunk.P7X6ERDI.js";import{a as x}from"./chunk.L7IJIML3.js";import{d as p}from"./chunk.VCGQQWP5.js";import{a as o,c}from"./chunk.N5AZOOIZ.js";import{b as r}from"./chunk.E6MOE4FE.js";var D=`:host {
|
|
2
2
|
--size: 25rem;
|
|
3
3
|
--header-spacing: var(--pc-spacing-xl);
|
|
4
4
|
--body-spacing: var(--pc-spacing-s) var(--pc-spacing-xl);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as y}from"./chunk.
|
|
1
|
+
import{a as y}from"./chunk.FBMLKLCZ.js";import{a as x}from"./chunk.W5PM7F34.js";import{a as r}from"./chunk.U7BNGYYH.js";import{a as w}from"./chunk.BSQP4EKW.js";import{a as b}from"./chunk.AQEEED44.js";import{a as $}from"./chunk.YRR4IRLY.js";import{a as g}from"./chunk.S5DN2ZZE.js";import{a as v}from"./chunk.AGGS6MN5.js";import{a as u}from"./chunk.XHFEQY3T.js";import{a as h,b as o,c as d,e as f}from"./chunk.GINYSCJR.js";import{a as m}from"./chunk.H2EOXVSZ.js";import{a as C}from"./chunk.V65QAGBQ.js";import{a as k}from"./chunk.L7IJIML3.js";import{d as l}from"./chunk.VCGQQWP5.js";import{b as t}from"./chunk.E6MOE4FE.js";var E=`:host {
|
|
2
2
|
border-width: 0;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as v}from"./chunk.BQPFQFVC.js";import{a as o,d as l}from"./chunk.RZZMGXAZ.js";import{a as b}from"./chunk.AGGS6MN5.js";import{a as m,b as a,c as d,e as h,g as p}from"./chunk.
|
|
1
|
+
import{a as v}from"./chunk.BQPFQFVC.js";import{a as o,d as l}from"./chunk.RZZMGXAZ.js";import{a as b}from"./chunk.AGGS6MN5.js";import{a as m,b as a,c as d,e as h,g as p}from"./chunk.GINYSCJR.js";import{a as f}from"./chunk.L7IJIML3.js";import{d as n}from"./chunk.VCGQQWP5.js";import{a as u,c}from"./chunk.N5AZOOIZ.js";import{b as i}from"./chunk.E6MOE4FE.js";var g=`:host {
|
|
2
2
|
display: flex;
|
|
3
3
|
position: relative;
|
|
4
4
|
align-items: center;
|