PyWebWinUI3 1.0.0b1__tar.gz → 1.0.0b2__tar.gz

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.
Files changed (25) hide show
  1. pywebwinui3-1.0.0b2/LICENSE +176 -0
  2. pywebwinui3-1.0.0b2/PKG-INFO +88 -0
  3. pywebwinui3-1.0.0b2/PyWebWinUI3.egg-info/PKG-INFO +88 -0
  4. pywebwinui3-1.0.0b2/PyWebWinUI3.egg-info/SOURCES.txt +11 -0
  5. pywebwinui3-1.0.0b2/PyWebWinUI3.egg-info/top_level.txt +1 -0
  6. pywebwinui3-1.0.0b2/README.md +64 -0
  7. pywebwinui3-1.0.0b2/pywebwinui3/__init__.py +3 -0
  8. {PyWebWinUI3-1.0.0b1/PyWebWinUI3 → pywebwinui3-1.0.0b2/pywebwinui3}/core.py +142 -139
  9. {PyWebWinUI3-1.0.0b1 → pywebwinui3-1.0.0b2}/setup.cfg +4 -4
  10. {PyWebWinUI3-1.0.0b1 → pywebwinui3-1.0.0b2}/setup.py +22 -17
  11. PyWebWinUI3-1.0.0b1/PKG-INFO +0 -9
  12. PyWebWinUI3-1.0.0b1/PyWebWinUI3/__init__.py +0 -3
  13. PyWebWinUI3-1.0.0b1/PyWebWinUI3/web/PretendardVariable.ttf +0 -0
  14. PyWebWinUI3-1.0.0b1/PyWebWinUI3/web/SegoeFluentIcons.ttf +0 -0
  15. PyWebWinUI3-1.0.0b1/PyWebWinUI3/web/assets/index.5f301150.css +0 -1
  16. PyWebWinUI3-1.0.0b1/PyWebWinUI3/web/assets/index.7925e0dd.js +0 -1
  17. PyWebWinUI3-1.0.0b1/PyWebWinUI3/web/favicon.ico +0 -0
  18. PyWebWinUI3-1.0.0b1/PyWebWinUI3/web/index.html +0 -70
  19. PyWebWinUI3-1.0.0b1/PyWebWinUI3.egg-info/PKG-INFO +0 -9
  20. PyWebWinUI3-1.0.0b1/PyWebWinUI3.egg-info/SOURCES.txt +0 -16
  21. PyWebWinUI3-1.0.0b1/PyWebWinUI3.egg-info/not-zip-safe +0 -1
  22. PyWebWinUI3-1.0.0b1/PyWebWinUI3.egg-info/top_level.txt +0 -1
  23. {PyWebWinUI3-1.0.0b1 → pywebwinui3-1.0.0b2}/MANIFEST.in +0 -0
  24. {PyWebWinUI3-1.0.0b1 → pywebwinui3-1.0.0b2}/PyWebWinUI3.egg-info/dependency_links.txt +0 -0
  25. {PyWebWinUI3-1.0.0b1 → pywebwinui3-1.0.0b2}/PyWebWinUI3.egg-info/requires.txt +0 -0
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,88 @@
1
+ Metadata-Version: 2.4
2
+ Name: PyWebWinUI3
3
+ Version: 1.0.0b2
4
+ Summary: Create modern WinUI3-style desktop UIs in Python effortlessly using pywebview.
5
+ Home-page: https://github.com/Haruna5718/PyWebWinUI3
6
+ Author: Haruna5718
7
+ Author-email: devharuna5718@gmail.com
8
+ License: Apache 2.0
9
+ Keywords: PyWebWinUI3,Haruna5718,pywebview,winui3,pypi
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: pywebview
13
+ Requires-Dist: pywin32
14
+ Dynamic: author
15
+ Dynamic: author-email
16
+ Dynamic: description
17
+ Dynamic: description-content-type
18
+ Dynamic: home-page
19
+ Dynamic: keywords
20
+ Dynamic: license
21
+ Dynamic: license-file
22
+ Dynamic: requires-dist
23
+ Dynamic: summary
24
+
25
+
26
+ # PyWebWinUI3
27
+
28
+ PyWebWinUI3 is a project that helps you easily build WinUI3-style desktop UIs in Python using [pywebview](https://pywebview.flowrl.com/).
29
+
30
+ ## Features
31
+ - Modern and intuitive **WinUI3-style** UI components
32
+ - Rapid desktop app development with Python
33
+ - Svelte-based FrontEnd integration
34
+ - Custom fonts and Fluent icon support
35
+
36
+ ## Installation & Build
37
+ You can install PyWebWinUI3 directly from PyPI:
38
+ ```bash
39
+ pip install PyWebWinUI3
40
+ ```
41
+
42
+ ## Usage
43
+ You can define your UI using XAML files and control the app with Python. See the `example/` folder for more details.
44
+
45
+ ### Minimal Example
46
+ ```python
47
+ from pywebwinui3 import MainWindow, loadPage
48
+
49
+ app = MainWindow("PyWebWinUI3", debug=True)
50
+ app.addSettings(loadPage("Settings.xaml"))
51
+ app.addPage(loadPage("Dashboard.xaml"))
52
+ app.addPage(loadPage("Test.xaml"))
53
+
54
+ # Set values for UI bindings
55
+ app.setValue("system.theme", "dark")
56
+
57
+ app.start("dashboard")
58
+ ```
59
+
60
+ ### XAML Example (Settings.xaml)
61
+ ```xml
62
+ <Page path="settings" icon="\ue713" name="Settings" title="Settings">
63
+ <Box>
64
+ <Horizontal>
65
+ <Text>App theme</Text>
66
+ <Space />
67
+ <Select value="system.theme">
68
+ <Option value="dark">Dark</Option>
69
+ <Option value="light">Light</Option>
70
+ <Option value="system">Use system setting</Option>
71
+ </Select>
72
+ </Horizontal>
73
+ </Box>
74
+ <!-- ...more UI elements... -->
75
+ </Page>
76
+ ```
77
+
78
+ ### More
79
+ - See `example/example.py` and the XAML files in `example/` for advanced usage.
80
+
81
+ ## Contributing
82
+ - PRs and issues are welcome!
83
+ - You can contribute Svelte components, Python modules, UI improvements, and more.
84
+
85
+ ## License
86
+ Apache-2.0
87
+ ---
88
+ > This README was generated using AI (GitHub Copilot).
@@ -0,0 +1,88 @@
1
+ Metadata-Version: 2.4
2
+ Name: PyWebWinUI3
3
+ Version: 1.0.0b2
4
+ Summary: Create modern WinUI3-style desktop UIs in Python effortlessly using pywebview.
5
+ Home-page: https://github.com/Haruna5718/PyWebWinUI3
6
+ Author: Haruna5718
7
+ Author-email: devharuna5718@gmail.com
8
+ License: Apache 2.0
9
+ Keywords: PyWebWinUI3,Haruna5718,pywebview,winui3,pypi
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: pywebview
13
+ Requires-Dist: pywin32
14
+ Dynamic: author
15
+ Dynamic: author-email
16
+ Dynamic: description
17
+ Dynamic: description-content-type
18
+ Dynamic: home-page
19
+ Dynamic: keywords
20
+ Dynamic: license
21
+ Dynamic: license-file
22
+ Dynamic: requires-dist
23
+ Dynamic: summary
24
+
25
+
26
+ # PyWebWinUI3
27
+
28
+ PyWebWinUI3 is a project that helps you easily build WinUI3-style desktop UIs in Python using [pywebview](https://pywebview.flowrl.com/).
29
+
30
+ ## Features
31
+ - Modern and intuitive **WinUI3-style** UI components
32
+ - Rapid desktop app development with Python
33
+ - Svelte-based FrontEnd integration
34
+ - Custom fonts and Fluent icon support
35
+
36
+ ## Installation & Build
37
+ You can install PyWebWinUI3 directly from PyPI:
38
+ ```bash
39
+ pip install PyWebWinUI3
40
+ ```
41
+
42
+ ## Usage
43
+ You can define your UI using XAML files and control the app with Python. See the `example/` folder for more details.
44
+
45
+ ### Minimal Example
46
+ ```python
47
+ from pywebwinui3 import MainWindow, loadPage
48
+
49
+ app = MainWindow("PyWebWinUI3", debug=True)
50
+ app.addSettings(loadPage("Settings.xaml"))
51
+ app.addPage(loadPage("Dashboard.xaml"))
52
+ app.addPage(loadPage("Test.xaml"))
53
+
54
+ # Set values for UI bindings
55
+ app.setValue("system.theme", "dark")
56
+
57
+ app.start("dashboard")
58
+ ```
59
+
60
+ ### XAML Example (Settings.xaml)
61
+ ```xml
62
+ <Page path="settings" icon="\ue713" name="Settings" title="Settings">
63
+ <Box>
64
+ <Horizontal>
65
+ <Text>App theme</Text>
66
+ <Space />
67
+ <Select value="system.theme">
68
+ <Option value="dark">Dark</Option>
69
+ <Option value="light">Light</Option>
70
+ <Option value="system">Use system setting</Option>
71
+ </Select>
72
+ </Horizontal>
73
+ </Box>
74
+ <!-- ...more UI elements... -->
75
+ </Page>
76
+ ```
77
+
78
+ ### More
79
+ - See `example/example.py` and the XAML files in `example/` for advanced usage.
80
+
81
+ ## Contributing
82
+ - PRs and issues are welcome!
83
+ - You can contribute Svelte components, Python modules, UI improvements, and more.
84
+
85
+ ## License
86
+ Apache-2.0
87
+ ---
88
+ > This README was generated using AI (GitHub Copilot).
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ setup.py
5
+ PyWebWinUI3.egg-info/PKG-INFO
6
+ PyWebWinUI3.egg-info/SOURCES.txt
7
+ PyWebWinUI3.egg-info/dependency_links.txt
8
+ PyWebWinUI3.egg-info/requires.txt
9
+ PyWebWinUI3.egg-info/top_level.txt
10
+ pywebwinui3/__init__.py
11
+ pywebwinui3/core.py
@@ -0,0 +1 @@
1
+ pywebwinui3
@@ -0,0 +1,64 @@
1
+
2
+ # PyWebWinUI3
3
+
4
+ PyWebWinUI3 is a project that helps you easily build WinUI3-style desktop UIs in Python using [pywebview](https://pywebview.flowrl.com/).
5
+
6
+ ## Features
7
+ - Modern and intuitive **WinUI3-style** UI components
8
+ - Rapid desktop app development with Python
9
+ - Svelte-based FrontEnd integration
10
+ - Custom fonts and Fluent icon support
11
+
12
+ ## Installation & Build
13
+ You can install PyWebWinUI3 directly from PyPI:
14
+ ```bash
15
+ pip install PyWebWinUI3
16
+ ```
17
+
18
+ ## Usage
19
+ You can define your UI using XAML files and control the app with Python. See the `example/` folder for more details.
20
+
21
+ ### Minimal Example
22
+ ```python
23
+ from pywebwinui3 import MainWindow, loadPage
24
+
25
+ app = MainWindow("PyWebWinUI3", debug=True)
26
+ app.addSettings(loadPage("Settings.xaml"))
27
+ app.addPage(loadPage("Dashboard.xaml"))
28
+ app.addPage(loadPage("Test.xaml"))
29
+
30
+ # Set values for UI bindings
31
+ app.setValue("system.theme", "dark")
32
+
33
+ app.start("dashboard")
34
+ ```
35
+
36
+ ### XAML Example (Settings.xaml)
37
+ ```xml
38
+ <Page path="settings" icon="\ue713" name="Settings" title="Settings">
39
+ <Box>
40
+ <Horizontal>
41
+ <Text>App theme</Text>
42
+ <Space />
43
+ <Select value="system.theme">
44
+ <Option value="dark">Dark</Option>
45
+ <Option value="light">Light</Option>
46
+ <Option value="system">Use system setting</Option>
47
+ </Select>
48
+ </Horizontal>
49
+ </Box>
50
+ <!-- ...more UI elements... -->
51
+ </Page>
52
+ ```
53
+
54
+ ### More
55
+ - See `example/example.py` and the XAML files in `example/` for advanced usage.
56
+
57
+ ## Contributing
58
+ - PRs and issues are welcome!
59
+ - You can contribute Svelte components, Python modules, UI improvements, and more.
60
+
61
+ ## License
62
+ Apache-2.0
63
+ ---
64
+ > This README was generated using AI (GitHub Copilot).
@@ -0,0 +1,3 @@
1
+ from .core import *
2
+
3
+ __version__ = '1.0.0-beta.2'
@@ -1,140 +1,143 @@
1
- from __future__ import annotations
2
-
3
- import webview
4
- import threading
5
- import mimetypes
6
- import json
7
- import winreg
8
- import win32con
9
- import win32gui
10
- import win32api
11
- import xml.etree.ElementTree
12
- from pathlib import Path
13
- import logging
14
-
15
- logger = logging.getLogger("pywebwinui3")
16
- logger.setLevel(logging.DEBUG)
17
-
18
- def getSystemAccentColor():
19
- with winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\Accent") as key:
20
- p, _ = winreg.QueryValueEx(key, "AccentPalette")
21
- return [f"#{p[i]:02x}{p[i+1]:02x}{p[i+2]:02x}" for i in range(0,len(p),4)]
22
-
23
- def systemMessageListener(callback):
24
- def eventHandler(hwnd, msg, wparam, lparam):
25
- if msg == win32con.WM_SETTINGCHANGE:
26
- callback(getSystemAccentColor())
27
- return win32gui.DefWindowProc(hwnd, msg, wparam, lparam)
28
- wc = win32gui.WNDCLASS()
29
- hinst = win32api.GetModuleHandle(None)
30
- wc.lpszClassName = "SystemMessageListener"
31
- wc.lpfnWndProc = eventHandler
32
- classAtom = win32gui.RegisterClass(wc)
33
- win32gui.CreateWindow(classAtom, wc.lpszClassName, 0, 0, 0, 0, 0, 0, 0, hinst, None)
34
- threading.Thread(target=win32gui.PumpMessages, daemon=True).start()
35
- logger.debug("System message listener started")
36
-
37
- def XamlToJson(Element: xml.etree.ElementTree.Element):
38
- return {
39
- "tag":Element.tag,
40
- "attr":Element.attrib,
41
- "text":(Element.text or "").strip(),
42
- "child":list(map(XamlToJson,Element))
43
- }
44
-
45
- def loadPage(FilePath: str|Path):
46
- try:
47
- return XamlToJson(xml.etree.ElementTree.parse(FilePath).getroot())
48
- except FileNotFoundError:
49
- return logger.error(f"Failed to load page: {FilePath} not found")
50
- except xml.etree.ElementTree.ParseError as e:
51
- return logger.error(f"Failed to load page {FilePath}: {e}")
52
-
53
- class Notice:
54
- Information = 0
55
- Attention = 0
56
- Success = 1
57
- Warning = 2
58
- Error = 3
59
- Critical = 3
60
-
61
- class MainWindow:
62
- def __init__(self, title, debug=False, url:str|Path=None, log:str|Path=None):
63
- self.url = url or (Path(__file__).parent/"web"/"index.html").absolute()
64
- self._window: webview.Window = None
65
- self.debug = debug
66
- self.values = {
67
- "system.title": title,
68
- "system.theme": "system",
69
- "system.color": getSystemAccentColor(),
70
- "system.pages": None,
71
- "system.settings": None,
72
- "system.nofication": []
73
- }
74
- self.events = {
75
- "setValue":[]
76
- }
77
-
78
- logging.basicConfig(
79
- level=logging.DEBUG,
80
- format="%(asctime)s [%(levelname)s] [%(name)s] %(message)s",
81
- datefmt="%H:%M:%S",
82
- handlers=[
83
- *([logging.FileHandler(log, mode="w", encoding="utf-8")] if log else []),
84
- logging.StreamHandler()
85
- ]
86
- )
87
-
88
- def notice(self, level:int, title:str, description:str):
89
- self.setValue('system.nofication', [*self.values["system.nofication"],[level,title,description]])
90
-
91
- def setup(self):
92
- systemMessageListener(self.themeChanged)
93
-
94
- def init(self):
95
- return {
96
- **self.values,
97
- "system.isOnTop": self._window.on_top,
98
- }
99
-
100
- def setValue(self, key, value, sync=True):
101
- self.values[key]=value
102
- if sync and self._window:
103
- threading.Thread(target=lambda: self._window.evaluate_js(f"window.setValue('{key}', {json.dumps(value)}, false)"), daemon=True).start()
104
- logger.debug(f"Value synced: {key}")
105
- for event in self.events["setValue"]:
106
- if event[0]==key:
107
- event[1](key,value)
108
-
109
- def themeChanged(self, color):
110
- if color != self.values['system.color']:
111
- logger.debug("Accent color change detected")
112
- self.setValue('system.color', color)
113
-
114
- def ontop(self, State:bool):
115
- threading.Thread(target=lambda: setattr(self._window, "on_top", State), daemon=True).start()
116
- return self.setValue('system.isOnTop', self._window.on_top)
117
-
118
- def addSettings(self, pageData:dict[str, str|dict|list]):
119
- if not pageData:
120
- return logger.error("Invalid page data provided")
121
- logger.debug(f"Page added: {pageData.get('attr').get('path')}")
122
- return self.setValue('system.settings', pageData)
123
-
124
- def addPage(self, pageData:dict[str, str|dict|list]):
125
- if not pageData:
126
- return logger.error("Invalid page data provided")
127
- logger.debug(f"Page added: {pageData.get('attr').get('path')}")
128
- return self.setValue('system.pages', {
129
- **(self.values["system.pages"] or {}),
130
- pageData.get("attr").get("path"):pageData
131
- })
132
-
133
- def start(self, page=None):
134
- logging.getLogger("pywebview").setLevel(logging.DEBUG)
135
- self._window = webview.create_window(self.values["system.title"], f"{self.url}#{page}", js_api=self, background_color="#202020", frameless=True, easy_drag=False, draggable=True, text_select=True, width=900, height=600)
136
- logger.debug("window created")
137
- mimetypes.add_type("application/javascript", ".js")
138
- self.destroy = self._window.destroy
139
- self.minimize = self._window.minimize
1
+ from __future__ import annotations
2
+
3
+ import webview
4
+ import threading
5
+ import mimetypes
6
+ import json
7
+ import winreg
8
+ import win32con
9
+ import win32gui
10
+ import win32api
11
+ import xml.etree.ElementTree
12
+ from pathlib import Path
13
+ import logging
14
+
15
+ logger = logging.getLogger("pywebwinui3")
16
+ logger.setLevel(logging.DEBUG)
17
+
18
+ def getSystemAccentColor():
19
+ with winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\Accent") as key:
20
+ p, _ = winreg.QueryValueEx(key, "AccentPalette")
21
+ return [f"#{p[i]:02x}{p[i+1]:02x}{p[i+2]:02x}" for i in range(0,len(p),4)]
22
+
23
+ def systemMessageListener(callback):
24
+ def eventHandler(hwnd, msg, wparam, lparam):
25
+ if msg == win32con.WM_SETTINGCHANGE:
26
+ callback(getSystemAccentColor())
27
+ return win32gui.DefWindowProc(hwnd, msg, wparam, lparam)
28
+ wc = win32gui.WNDCLASS()
29
+ hinst = win32api.GetModuleHandle(None)
30
+ wc.lpszClassName = "SystemMessageListener"
31
+ wc.lpfnWndProc = eventHandler
32
+ classAtom = win32gui.RegisterClass(wc)
33
+ win32gui.CreateWindow(classAtom, wc.lpszClassName, 0, 0, 0, 0, 0, 0, 0, hinst, None)
34
+ threading.Thread(target=win32gui.PumpMessages, daemon=True).start()
35
+ logger.debug("System message listener started")
36
+
37
+ def XamlToJson(Element: xml.etree.ElementTree.Element):
38
+ return {
39
+ "tag":Element.tag,
40
+ "attr":Element.attrib,
41
+ "text":(Element.text or "").strip(),
42
+ "child":list(map(XamlToJson,Element))
43
+ }
44
+
45
+ def loadPage(FilePath: str|Path):
46
+ try:
47
+ return XamlToJson(xml.etree.ElementTree.parse(FilePath).getroot())
48
+ except FileNotFoundError:
49
+ return logger.error(f"Failed to load page: {FilePath} not found")
50
+ except xml.etree.ElementTree.ParseError as e:
51
+ return logger.error(f"Failed to load page {FilePath}: {e}")
52
+
53
+ class Notice:
54
+ Information = 0
55
+ Attention = 0
56
+ Success = 1
57
+ Warning = 2
58
+ Error = 3
59
+ Critical = 3
60
+
61
+ class MainWindow:
62
+ def __init__(self, title, debug=False, url:str|Path=None, log:str|Path=None):
63
+ self.url = url or (Path(__file__).parent/"web"/"index.html").absolute()
64
+ self._window: webview.Window = None
65
+ self.debug = debug
66
+ self.values = {
67
+ "system.title": title,
68
+ "system.theme": "system",
69
+ "system.color": getSystemAccentColor(),
70
+ "system.pages": None,
71
+ "system.settings": None,
72
+ "system.nofication": []
73
+ }
74
+ self.events:dict[str,any] = {}
75
+
76
+ logging.basicConfig(
77
+ level=logging.DEBUG,
78
+ format="%(asctime)s [%(levelname)s] [%(name)s] %(message)s",
79
+ datefmt="%H:%M:%S",
80
+ handlers=[
81
+ *([logging.FileHandler(log, mode="w", encoding="utf-8")] if log else []),
82
+ logging.StreamHandler()
83
+ ]
84
+ )
85
+
86
+ def notice(self, level:int, title:str, description:str):
87
+ self.setValue('system.nofication', [*self.values["system.nofication"],[level,title,description]])
88
+
89
+ def setup(self):
90
+ systemMessageListener(self.themeChanged)
91
+
92
+ def init(self):
93
+ return {
94
+ **self.values,
95
+ "system.isOnTop": self._window.on_top,
96
+ }
97
+
98
+ def onValueChange(self, valueName):
99
+ def decorator(func):
100
+ self.events.setdefault("setValue", {}).setdefault(valueName, []).append(func)
101
+ return func
102
+ return decorator
103
+
104
+ def setValue(self, key, value, sync=True):
105
+ self.values[key]=value
106
+ if sync and self._window:
107
+ threading.Thread(target=lambda: self._window.evaluate_js(f"window.setValue('{key}', {json.dumps(value)}, false)"), daemon=True).start()
108
+ logger.debug(f"Value synced: {key}")
109
+ for event in self.events.get("setValue",{}).get(key,[]):
110
+ event(key,value)
111
+
112
+ def themeChanged(self, color):
113
+ if color != self.values['system.color']:
114
+ logger.debug("Accent color change detected")
115
+ self.setValue('system.color', color)
116
+
117
+ def ontop(self, State:bool):
118
+ threading.Thread(target=lambda: setattr(self._window, "on_top", State), daemon=True).start()
119
+ return self.setValue('system.isOnTop', self._window.on_top)
120
+
121
+ def addSettings(self, pageData:dict[str, str|dict|list]):
122
+ if not pageData:
123
+ return logger.error("Invalid page data provided")
124
+ logger.debug(f"Page added: {pageData.get('attr').get('path')}")
125
+ return self.setValue('system.settings', pageData)
126
+
127
+ def addPage(self, pageData:dict[str, str|dict|list]):
128
+ if not pageData:
129
+ return logger.error("Invalid page data provided")
130
+ logger.debug(f"Page added: {pageData.get('attr').get('path')}")
131
+ return self.setValue('system.pages', {
132
+ **(self.values["system.pages"] or {}),
133
+ pageData.get("attr").get("path"):pageData
134
+ })
135
+
136
+ def start(self, page=None):
137
+ logging.getLogger("pywebview").setLevel(logging.DEBUG)
138
+ self._window = webview.create_window(self.values["system.title"], f"{self.url}#{page}", js_api=self, background_color="#202020", frameless=True, easy_drag=False, draggable=True, text_select=True, width=900, height=600)
139
+ logger.debug("window created")
140
+ mimetypes.add_type("application/javascript", ".js")
141
+ self.destroy = self._window.destroy
142
+ self.minimize = self._window.minimize
140
143
  webview.start(self.setup,debug=self.debug)
@@ -1,4 +1,4 @@
1
- [egg_info]
2
- tag_build =
3
- tag_date = 0
4
-
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -1,18 +1,23 @@
1
- from setuptools import setup, find_packages
2
-
3
- setup(
4
- name='PyWebWinUI3',
5
- version='1.0.0-beta.1',
6
- description='Create modern WinUI3-style desktop UIs in Python effortlessly using pywebview.',
7
- author='Haruna5718',
8
- author_email='devharuna5718@gmail.com',
9
- url='https://github.com/Haruna5718/PyWebWinUI3',
10
- install_requires=['pywebview','pywin32'],
11
- packages=find_packages(exclude=[]),
12
- keywords=['PyWebWinUI3', 'Haruna5718', 'pywebview', 'winui3', 'pypi'],
13
- python_requires='>=3.8',
14
- include_package_data=True,
15
- package_data={},
16
- zip_safe=False,
17
- classifiers=[],
1
+ from setuptools import setup, find_packages
2
+
3
+ def get_version():
4
+ with open("pywebwinui3/__init__.py", encoding="utf-8") as f:
5
+ for line in f:
6
+ if line.startswith("__version__"):
7
+ return line.split("=")[1].strip().strip('"').strip("'")
8
+
9
+ setup(
10
+ name='PyWebWinUI3',
11
+ description='Create modern WinUI3-style desktop UIs in Python effortlessly using pywebview.',
12
+ url='https://github.com/Haruna5718/PyWebWinUI3',
13
+ long_description=open('README.md', 'r', encoding="utf-8").read(),
14
+ long_description_content_type='text/markdown',
15
+ packages=find_packages(),
16
+ include_package_data=True,
17
+ install_requires=['pywebview','pywin32'],
18
+ keywords=['PyWebWinUI3', 'Haruna5718', 'pywebview', 'winui3', 'pypi'],
19
+ version=get_version(),
20
+ license='Apache 2.0',
21
+ author='Haruna5718',
22
+ author_email='devharuna5718@gmail.com',
18
23
  )
@@ -1,9 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: PyWebWinUI3
3
- Version: 1.0.0b1
4
- Summary: Create modern WinUI3-style desktop UIs in Python effortlessly using pywebview.
5
- Home-page: https://github.com/Haruna5718/PyWebWinUI3
6
- Author: Haruna5718
7
- Author-email: devharuna5718@gmail.com
8
- Keywords: PyWebWinUI3,Haruna5718,pywebview,winui3,pypi
9
- Requires-Python: >=3.8
@@ -1,3 +0,0 @@
1
- from .core import *
2
-
3
- __version__ = '1.0.0-beta.1'
@@ -1 +0,0 @@
1
- .light{--Page-FillColor:#f9f9f9;--Page-BorderColor:#eaeaea}.dark{--Page-FillColor:#272727;--Page-BorderColor:#1d1d1d}@media (prefers-color-scheme: light){.system{--Page-FillColor:#f9f9f9;--Page-BorderColor:#eaeaea}}@media (prefers-color-scheme: dark){.system{--Page-FillColor:#272727;--Page-BorderColor:#1d1d1d}}.page.svelte-1ungrg8.svelte-1ungrg8{display:flex;flex-direction:column;border:1.5px solid var(--Page-BorderColor);border-bottom:none;border-right:none;background-color:var(--Page-FillColor);border-top-left-radius:8px;overflow:hidden}.page.header.svelte-1ungrg8 .content.svelte-1ungrg8{padding-top:4px}.page.header.svelte-1ungrg8 .title.svelte-1ungrg8{font-size:24px;z-index:10;position:sticky;background-color:inherit;padding:28px 0 4px 36px;top:0px;animation:svelte-1ungrg8-PageLoadAnim .1s ease-out forwards alternate}.page.svelte-1ungrg8 .content.svelte-1ungrg8{animation:svelte-1ungrg8-PageLoadAnim .1s ease-out forwards alternate;overflow:hidden scroll;display:flex;flex-direction:column;align-self:stretch;flex-grow:1;gap:4px;padding:36px 32px 36px 36px}@keyframes svelte-1ungrg8-PageLoadAnim{0%{transform:translateY(50px)}}.text.svelte-1q0rj2m{word-wrap:break-word;overflow-wrap:anywhere;display:flex;align-self:center;font-size:16px}a.svelte-1q0rj2m{text-decoration:none;color:var(--AccentFillColorSecondaryBrush)!important;outline:none}.description.svelte-1q0rj2m{color:var(--TextFillColorTertiaryBrush);font-size:12px}.title.svelte-1q0rj2m{font-size:24px}hr.svelte-zdjfga{width:100%;flex-grow:1;border-color:#ffffff9f;margin:10px 0}span.svelte-18yj4k0{flex-grow:1}.light{--Box-FillColor:#fdfdfd;--Box-BorderColor:#eaeaea}.dark{--Box-FillColor:#323232;--Box-BorderColor:#232323}@media (prefers-color-scheme: light){.system{--Box-FillColor:#fdfdfd;--Box-BorderColor:#eaeaea}}@media (prefers-color-scheme: dark){.system{--Box-FillColor:#323232;--Box-BorderColor:#232323}}div.svelte-6ldjhr{flex-wrap:wrap;display:flex;align-items:center;flex-direction:column;align-self:stretch;background-color:var(--Box-FillColor);border:1.5px solid var(--Box-BorderColor);padding:16px;border-radius:4px;gap:4px}span.svelte-1o0bicc{flex-wrap:wrap;align-self:stretch;display:flex;flex-direction:column}span.svelte-1qngmzk{flex-wrap:wrap;align-self:stretch;display:flex;flex-direction:row}.light{--Button-FillColor:#fefefe;--Button-HoverColor:#fbfbfb;--Button-ActiveColor:#fcfcfc;--Button-BorderColor:#eeeeee}.dark{--Button-FillColor:#3e3e3e;--Button-HoverColor:#444444;--Button-ActiveColor:#393939;--Button-BorderColor:#454545}@media (prefers-color-scheme: light){.system{--Button-FillColor:#fefefe;--Button-HoverColor:#fbfbfb;--Button-ActiveColor:#fcfcfc;--Button-BorderColor:#eeeeee}}@media (prefers-color-scheme: dark){.system{--Button-FillColor:#3e3e3e;--Button-HoverColor:#444444;--Button-ActiveColor:#393939;--Button-BorderColor:#454545}}.main.svelte-12yns0z{display:flex;font-size:14px;background-color:var(--Button-FillColor);border-radius:4px;padding:6px 10px;box-shadow:0 1px #00000030,0 0 0 1px var(--Button-BorderColor) inset}.main.svelte-12yns0z:hover{background-color:var(--Button-HoverColor)}.main.svelte-12yns0z:active{box-shadow:0 0 0 1px var(--Button-BorderColor) inset;background-color:var(--Button-ActiveColor)}.main.select.svelte-12yns0z{box-shadow:0 1px #00000030;color:var(--TextOnAccentFillColorPrimaryBrush);background-color:var(--AccentFillColorSecondaryBrush)}.main.select.svelte-12yns0z:hover{background-image:linear-gradient(var(--AccentHoverCoverColor))}.main.select.svelte-12yns0z:active{background-image:linear-gradient(var(--AccentActiveCoverColor))}.light{--Input-FillColor:#fefefe;--Input-HoverColor:#fbfbfb;--Input-FocusColor:#ffffff;--Input-BorderColor:#eeeeee;--Input-BorderFocusColor:#616161;--Input-InnerButtonHoverColor:#eaeaea;--Input-InnerButtonActiveColor:#ededed}.dark{--Input-FillColor:#3e3e3e;--Input-HoverColor:#444444;--Input-FocusColor:#242424;--Input-BorderColor:#454545;--Input-BorderFocusColor:#afafaf;--Input-InnerButtonHoverColor:rgba(255, 255, 255, .0549019608);--Input-InnerButtonActiveColor:rgba(255, 255, 255, .0392156863)}@media (prefers-color-scheme: light){.system{--Input-FillColor:#fefefe;--Input-HoverColor:#fbfbfb;--Input-FocusColor:#ffffff;--Input-BorderColor:#eeeeee;--Input-BorderFocusColor:#616161;--Input-InnerButtonHoverColor:#eaeaea;--Input-InnerButtonActiveColor:#ededed}}@media (prefers-color-scheme: dark){.system{--Input-FillColor:#3e3e3e;--Input-HoverColor:#444444;--Input-FocusColor:#242424;--Input-BorderColor:#454545;--Input-BorderFocusColor:#afafaf;--Input-InnerButtonHoverColor:rgba(255, 255, 255, .0549019608);--Input-InnerButtonActiveColor:rgba(255, 255, 255, .0392156863)}}.buttons.svelte-1e6zuvd.svelte-1e6zuvd{top:0;right:0;padding:5px;align-self:center;position:absolute;height:100%;display:flex;gap:5px}.buttons.svelte-1e6zuvd button.svelte-1e6zuvd{width:25px;border-radius:4px;color:var(--Input-BorderFocusColor)}.buttons.svelte-1e6zuvd button.svelte-1e6zuvd:hover{background-color:var(--Input-InnerButtonHoverColor)}.buttons.svelte-1e6zuvd button.svelte-1e6zuvd:active{background-color:var(--Input-InnerButtonActiveColor)}input.svelte-1e6zuvd.svelte-1e6zuvd{resize:none;width:160px;height:fit-content;padding:5px 6px 6px;border-radius:4px;background-color:var(--Input-FillColor);border:1.5px solid var(--Input-BorderColor);border-bottom:1.5px solid var(--Input-BorderFocusColor);line-height:1.3em;box-shadow:0 1px #00000030;transition:all .1s ease-out,padding 0s,border-bottom-width 0s}input.svelte-1e6zuvd.svelte-1e6zuvd::-webkit-inner-spin-button,input.svelte-1e6zuvd.svelte-1e6zuvd::-webkit-outer-spin-button{appearance:none;margin:0}input.svelte-1e6zuvd.svelte-1e6zuvd::placeholder{color:var(--Input-BorderFocusColor);opacity:1}input.svelte-1e6zuvd.svelte-1e6zuvd:hover:not(:focus){background-image:linear-gradient(var(--Input-HoverColor))}input.svelte-1e6zuvd.svelte-1e6zuvd:active{box-shadow:none}input.svelte-1e6zuvd.svelte-1e6zuvd:focus{background-color:var(--Input-FocusColor);padding:5px 6px;border-bottom-width:2.5px;border-bottom-color:var(--AccentFillColorSecondaryBrush)}input[type=number].svelte-1e6zuvd.svelte-1e6zuvd{padding-right:65px}.light{--Switch-FillColor:#f7f7f7;--Switch-FillHoverColor:#eeeeee;--Switch-FillActiveColor:#e5e5e5;--Switch-BorderColor:#5e5e5e;--Switch-BorderHoverColor:#5b5b5b}.dark{--Switch-FillColor:#2d2d2d;--Switch-FillHoverColor:#3b3b3b;--Switch-FillActiveColor:#414141;--Switch-BorderColor:#cfcfcf;--Switch-BorderHoverColor:#d3d3d3}@media (prefers-color-scheme: light){.system{--Switch-FillColor:#f7f7f7;--Switch-FillHoverColor:#eeeeee;--Switch-FillActiveColor:#e5e5e5;--Switch-BorderColor:#5e5e5e;--Switch-BorderHoverColor:#5b5b5b}}@media (prefers-color-scheme: dark){.system{--Switch-FillColor:#2d2d2d;--Switch-FillHoverColor:#3b3b3b;--Switch-FillActiveColor:#414141;--Switch-BorderColor:#cfcfcf;--Switch-BorderHoverColor:#d3d3d3}}.main.svelte-t2d7pq.svelte-t2d7pq{display:flex;align-self:center;align-items:center}.main.svelte-t2d7pq span.svelte-t2d7pq{display:flex;flex-direction:column;cursor:pointer;user-select:none;height:1.4em;padding:0 5px}.main.svelte-t2d7pq span.svelte-t2d7pq:hover{color:var(--TextFillColorSecondaryBrush)}.main.svelte-t2d7pq span label.svelte-t2d7pq{height:0}.main.svelte-t2d7pq input.svelte-t2d7pq{order:1;appearance:none;background-color:var(--Switch-FillColor);width:46px;border-radius:12px;box-shadow:0 1px #00000030,0 0 0 1.5px var(--Switch-BorderColor) inset;height:24px;cursor:pointer}.main.svelte-t2d7pq input.svelte-t2d7pq:before{content:"";margin:5px;position:absolute;background-color:var(--Switch-BorderColor);width:14px;border-radius:8px;height:14px;transform:translate(0)}.main.svelte-t2d7pq input.svelte-t2d7pq:hover{background-color:var(--Switch-FillHoverColor)}.main.svelte-t2d7pq input.svelte-t2d7pq:hover:before{background-color:var(--Switch-BorderHoverColor);box-shadow:0 0 0 1px var(--Switch-BorderHoverColor)}.main.svelte-t2d7pq input.svelte-t2d7pq:active{background-color:var(--Switch-FillActiveColor)}.main.svelte-t2d7pq input.svelte-t2d7pq:active:before{width:19px}.main.svelte-t2d7pq input.svelte-t2d7pq:checked{background-color:var(--AccentFillColorSecondaryBrush);box-shadow:0 1px #00000030}.main.svelte-t2d7pq input.svelte-t2d7pq:checked:before{background-color:var(--TextOnAccentFillColorPrimaryBrush);transform:translate(22px)}.main.svelte-t2d7pq input.svelte-t2d7pq:checked:hover{background-image:linear-gradient(var(--AccentHoverCoverColor))}.main.svelte-t2d7pq input.svelte-t2d7pq:checked:hover:before{box-shadow:0 0 0 1px var(--TextOnAccentFillColorPrimaryBrush)}.main.svelte-t2d7pq input.svelte-t2d7pq:checked:active{background-image:linear-gradient(var(--AccentActiveCoverColor))}.main.svelte-t2d7pq input.svelte-t2d7pq:checked:active:before{transform:translate(17px)}.light{--Select-FillColor:#fefefe;--Select-HoverColor:#fbfbfb;--Select-ActiveColor:#fcfcfc;--Select-BorderColor:#eeeeee;--Select-MenuFillColor:#f9f9f9;--Select-MenuHoverColor:#f0f0f0;--Select-MenuActiveColor:#f3f3f3;--Select-MenuBorderColor:#ededed}.dark{--Select-FillColor:#3e3e3e;--Select-HoverColor:#444444;--Select-ActiveColor:#393939;--Select-BorderColor:#454545;--Select-MenuFillColor:#2c2c2c;--Select-MenuHoverColor:#383838;--Select-MenuActiveColor:#343434;--Select-MenuBorderColor:#1f1f1f}@media (prefers-color-scheme: light){.system{--Select-FillColor:#fefefe;--Select-HoverColor:#fbfbfb;--Select-ActiveColor:#fcfcfc;--Select-BorderColor:#eeeeee;--Select-MenuFillColor:#f9f9f9;--Select-MenuHoverColor:#f0f0f0;--Select-MenuActiveColor:#f3f3f3;--Select-MenuBorderColor:#ededed}}@media (prefers-color-scheme: dark){.system{--Select-FillColor:#3e3e3e;--Select-HoverColor:#444444;--Select-ActiveColor:#393939;--Select-BorderColor:#454545;--Select-MenuFillColor:#2c2c2c;--Select-MenuHoverColor:#383838;--Select-MenuActiveColor:#343434;--Select-MenuBorderColor:#1f1f1f}}.main.svelte-7q13qm.svelte-7q13qm{display:flex;font-size:14px;background-color:var(--Select-FillColor);border-radius:4px;padding:6px 10px;box-shadow:0 1px #00000030,0 0 0 1px var(--Select-BorderColor) inset}.main.svelte-7q13qm.svelte-7q13qm:hover{background-color:var(--Select-HoverColor)}.main.svelte-7q13qm.svelte-7q13qm:active{box-shadow:0 0 0 1px var(--Select-BorderColor) inset;background-color:var(--Select-ActiveColor)}.main.svelte-7q13qm:active span.svelte-7q13qm{transform:translateY(2px)}.main.svelte-7q13qm span.svelte-7q13qm{margin-left:4px;display:flex;align-items:center}.menu.svelte-7q13qm.svelte-7q13qm{display:flex;flex-direction:column;animation:svelte-7q13qm-onAnim .2s ease-out forwards alternate;z-index:100;padding:4px;background-color:var(--Select-MenuFillColor);border:1.5px solid var(--Select-MenuBorderColor);border-radius:8px;position:absolute;left:50%;translate:-50%;gap:5px;width:max-content;box-shadow:0 1px 1px #00000030}@keyframes svelte-7q13qm-onAnim{0%{transform:translateY(0)}to{transform:translateY(10px)}}.menu.svelte-7q13qm .item.svelte-7q13qm{text-align:left;align-self:stretch;border-radius:4px;background-color:transparent;padding:6px 12px}.menu.svelte-7q13qm .item.select.svelte-7q13qm,.menu.svelte-7q13qm .item.select.svelte-7q13qm:active,.menu.svelte-7q13qm .item.svelte-7q13qm:hover:not(:active){background-color:var(--Select-MenuHoverColor)}.menu.svelte-7q13qm .item.select.svelte-7q13qm:hover:not(:active),.menu.svelte-7q13qm .item.svelte-7q13qm:active{background-color:var(--Select-MenuActiveColor)}.menu.svelte-7q13qm .item.select.svelte-7q13qm:active:before{height:6px}.menu.svelte-7q13qm .item.select.svelte-7q13qm:before{position:absolute;content:"";border-radius:1.5px;left:0;top:50%;width:3px;height:16px;transform:translateY(-50%);background-color:var(--AccentFillColorSecondaryBrush)}.light{--Slider-BackFillColor:#868686;--Slider-MenuFillColor:#f9f9f9;--Slider-MenuBorderColor:#ededed;--Slider-ThumbOuterColor:#ffffff;--Slider-ThumbBorderColor:rgba(0, 0, 0, .1254901961)}.dark{--Slider-BackFillColor:#9a9a9a;--Slider-MenuFillColor:#2c2c2c;--Slider-MenuBorderColor:#1f1f1f;--Slider-ThumbOuterColor:#454545;--Slider-ThumbBorderColor:rgba(255, 255, 255, .1254901961)}@media (prefers-color-scheme: light){.system{--Slider-BackFillColor:#868686;--Slider-MenuFillColor:#f9f9f9;--Slider-MenuBorderColor:#ededed;--Slider-ThumbOuterColor:#ffffff;--Slider-ThumbBorderColor:rgba(0, 0, 0, .1254901961)}}@media (prefers-color-scheme: dark){.system{--Slider-BackFillColor:#9a9a9a;--Slider-MenuFillColor:#2c2c2c;--Slider-MenuBorderColor:#1f1f1f;--Slider-ThumbOuterColor:#454545;--Slider-ThumbBorderColor:rgba(255, 255, 255, .1254901961)}}.container.svelte-xozodt.svelte-xozodt{display:flex}.container.vertical.svelte-xozodt.svelte-xozodt{height:160px;width:20px}.container.vertical.svelte-xozodt .main.svelte-xozodt{top:.5px;right:calc(300% + 9.5px);rotate:-90deg}.container.vertical.svelte-xozodt .main span .rotater.svelte-xozodt{transform:translate(50%) rotate(90deg)}.container.vertical.svelte-xozodt .main span .rotater div.svelte-xozodt{left:45px;transform:translate(50%)}.container.svelte-xozodt .main.svelte-xozodt{align-self:center;background-color:var(--Slider-BackFillColor);box-shadow:0 1px #00000030;height:4px;width:160px;border-radius:2px}.container.svelte-xozodt .main span.svelte-xozodt{transition:all .1s ease-out,width 0s;border-radius:2px;position:absolute;inset:0;background-color:var(--AccentFillColorSecondaryBrush)}.container.svelte-xozodt .main span .rotater.svelte-xozodt{position:absolute;z-index:200;transform:translate(50%);right:0;top:-40px}.container.svelte-xozodt .main span .rotater div.svelte-xozodt{border:1.5px solid var(--Slider-MenuBorderColor);background-color:var(--Slider-MenuFillColor);border-radius:4px;padding:2px 6px;font-size:14px;box-shadow:0 1px 1px #00000030}.container.svelte-xozodt .main input.svelte-xozodt{width:inherit;top:-7px;appearance:none}.container.svelte-xozodt .main input.svelte-xozodt::-webkit-slider-runnable-track{cursor:pointer}.container.svelte-xozodt .main input.svelte-xozodt::-webkit-slider-thumb{cursor:pointer;appearance:none;transition:all .1s ease-in-out;border:5px solid var(--Slider-ThumbOuterColor);box-shadow:0 1px 0 1px #00000030,0 0 0 1px var(--Slider-ThumbBorderColor);background-color:var(--AccentFillColorSecondaryBrush);width:18px;height:18px;border-radius:10px}.container.svelte-xozodt .main input.svelte-xozodt::-webkit-slider-thumb:hover{border-width:3px}.container.svelte-xozodt .main input.svelte-xozodt::-webkit-slider-thumb:active{border-width:6px}.light{--Check-FillColor:#ededed;--Check-HoverColor:#e5e5e5;--Check-ActiveColor:#dcdcdc;--Check-BorderColor:#858585;--Check-BorderActiveColor:#b1b1b1}.dark{--Check-FillColor:#272727;--Check-HoverColor:#343434;--Check-ActiveColor:#3a3a3a;--Check-BorderColor:#9e9e9e;--Check-BorderActiveColor:#4f4f4f}@media (prefers-color-scheme: light){.system{--Check-FillColor:#ededed;--Check-HoverColor:#e5e5e5;--Check-ActiveColor:#dcdcdc;--Check-BorderColor:#858585;--Check-BorderActiveColor:#b1b1b1}}@media (prefers-color-scheme: dark){.system{--Check-FillColor:#272727;--Check-HoverColor:#343434;--Check-ActiveColor:#3a3a3a;--Check-BorderColor:#9e9e9e;--Check-BorderActiveColor:#4f4f4f}}span.svelte-112a9ok.svelte-112a9ok{display:flex;gap:4px;align-items:center}span.svelte-112a9ok label.svelte-112a9ok{cursor:pointer;user-select:none}span.svelte-112a9ok input.svelte-112a9ok{cursor:pointer;order:1;border-radius:4px;height:20px;width:20px;background-color:var(--Check-FillColor);box-shadow:0 0 0 1px var(--Check-BorderColor) inset;appearance:none}span.svelte-112a9ok input.svelte-112a9ok:hover{background-color:var(--Check-HoverColor)}span.svelte-112a9ok input.svelte-112a9ok:active{background-color:var(--Check-ActiveColor);box-shadow:0 0 0 1px var(--Check-BorderActiveColor) inset}span.svelte-112a9ok input.svelte-112a9ok:checked,span.svelte-112a9ok input.svelte-112a9ok:indeterminate{background-color:var(--AccentFillColorSecondaryBrush);box-shadow:none}span.svelte-112a9ok input.svelte-112a9ok:checked:before,span.svelte-112a9ok input.svelte-112a9ok:indeterminate:before{font-weight:700;position:absolute;inset:0;line-height:20px;text-align:center;color:var(--TextOnAccentFillColorPrimaryBrush)}span.svelte-112a9ok input.svelte-112a9ok:checked:checked:before,span.svelte-112a9ok input.svelte-112a9ok:indeterminate:checked:before{content:"\e73e"}span.svelte-112a9ok input.svelte-112a9ok:checked:indeterminate:before,span.svelte-112a9ok input.svelte-112a9ok:indeterminate:indeterminate:before{content:"\e73c"}span.svelte-112a9ok input.svelte-112a9ok:checked:hover,span.svelte-112a9ok input.svelte-112a9ok:indeterminate:hover{background-image:linear-gradient(var(--AccentHoverCoverColor))}span.svelte-112a9ok input.svelte-112a9ok:checked:active,span.svelte-112a9ok input.svelte-112a9ok:indeterminate:active{background-image:linear-gradient(var(--AccentActiveCoverColor))}.light{--Progressbar-BackFillColor:#868686}.dark{--Progressbar-BackFillColor:#9a9a9a}@media (prefers-color-scheme: light){.system{--Progressbar-BackFillColor:#868686}}@media (prefers-color-scheme: dark){.system{--Progressbar-BackFillColor:#9a9a9a}}.main.svelte-rwikqt.svelte-rwikqt{align-self:center;height:4px;width:160px;border-radius:2px;overflow:hidden}.main.svelte-rwikqt span.svelte-rwikqt{position:absolute;inset:1px;border-radius:1px}.main.svelte-rwikqt div.svelte-rwikqt{position:absolute;inset:0;border-radius:2px;background-color:var(--AccentFillColorSecondaryBrush);box-shadow:0 1px #00000030}.main.progress.svelte-rwikqt span.svelte-rwikqt{background-color:var(--Progressbar-BackFillColor);box-shadow:0 1px #00000030}.main.running.svelte-rwikqt div.svelte-rwikqt{width:50%!important;animation:svelte-rwikqt-running 1s infinite ease-in-out forwards}@keyframes svelte-rwikqt-running{0%{transform:translate(-100%)}to{transform:translate(200%)}}.main.success.svelte-rwikqt div.svelte-rwikqt{width:100%!important;background-color:var(--SystemFillColorSuccessBrush)}.main.paused.svelte-rwikqt div.svelte-rwikqt{width:100%!important;background-color:var(--SystemFillColorCautionBrush)}.main.error.svelte-rwikqt div.svelte-rwikqt{width:100%!important;background-color:var(--SystemFillColorCriticalBrush)}.main.svelte-ua5lmd.svelte-ua5lmd{display:flex;font-size:14px;background-color:var(--ButtonFillColor);border-radius:4px;padding:6px 10px;box-shadow:0 0 0 1px var(--ButtonBorderColor) inset}.main.svelte-ua5lmd.svelte-ua5lmd:hover{background-image:linear-gradient(var(--ButtonHoverColor))}.main.svelte-ua5lmd.svelte-ua5lmd:active{background-image:linear-gradient(var(--ButtonActiveColor))}.main.svelte-ua5lmd:active span.svelte-ua5lmd{transform:translateY(2px)}.main.svelte-ua5lmd span.svelte-ua5lmd{margin-left:4px;display:flex;align-items:center}.menu.svelte-ua5lmd.svelte-ua5lmd{display:flex;flex-direction:column;animation:svelte-ua5lmd-onAnim .2s ease-out forwards alternate;z-index:100;padding:4px;border:1.5px solid var(--SelectMenuBorderColor);background-color:var(--SelectMenuFillColor);border-radius:8px;position:absolute;left:50%;translate:-50%;gap:5px;width:max-content}@keyframes svelte-ua5lmd-onAnim{0%{transform:translateY(0)}to{transform:translateY(10px)}}.menu.svelte-ua5lmd .item.svelte-ua5lmd{text-align:left;align-self:stretch;border-radius:4px;background-color:transparent;padding:6px 12px}.menu.svelte-ua5lmd .item.select.svelte-ua5lmd,.menu.svelte-ua5lmd .item.svelte-ua5lmd:hover{background-color:var(--NavButtonActiveColor)}.menu.svelte-ua5lmd .item.svelte-ua5lmd:active{background-color:var(--NavButtonHoverColor)}.menu.svelte-ua5lmd .item:active.select.svelte-ua5lmd:before{height:6px}.menu.svelte-ua5lmd .item.select.svelte-ua5lmd:before{position:absolute;content:"";border-radius:1.5px;left:0;top:50%;width:3px;height:16px;transform:translateY(-50%);background-color:var(--AccentFillColorSecondaryBrush)}.light{--Radio-InnerColor:#ededed;--Radio-BorderColor:#858585;--Radio-HoverInnerColor:#e5e5e5;--Radio-ActiveOuterColor:#dcdcdc;--Radio-ActiveBorderColor:#b1b1b1}.dark{--Radio-InnerColor:#272727;--Radio-BorderColor:#9e9e9e;--Radio-HoverInnerColor:#343434;--Radio-ActiveOuterColor:#3a3a3a;--Radio-ActiveBorderColor:#565656}@media (prefers-color-scheme: light){.system{--Radio-InnerColor:#ededed;--Radio-BorderColor:#858585;--Radio-HoverInnerColor:#e5e5e5;--Radio-ActiveOuterColor:#dcdcdc;--Radio-ActiveBorderColor:#b1b1b1}}@media (prefers-color-scheme: dark){.system{--Radio-InnerColor:#272727;--Radio-BorderColor:#9e9e9e;--Radio-HoverInnerColor:#343434;--Radio-ActiveOuterColor:#3a3a3a;--Radio-ActiveBorderColor:#565656}}span.svelte-15n77j6.svelte-15n77j6{display:flex;gap:4px;align-items:center}span.svelte-15n77j6 label.svelte-15n77j6{cursor:pointer}span.svelte-15n77j6 input.svelte-15n77j6{cursor:pointer;order:1;border-radius:10px;height:20px;width:20px;background-color:var(--Radio-InnerColor);box-shadow:0 0 0 1px var(--Radio-BorderColor) inset;appearance:none}span.svelte-15n77j6 input.svelte-15n77j6:hover:not(:active){background-image:linear-gradient(var(--Radio-HoverInnerColor))}span.svelte-15n77j6 input.svelte-15n77j6:active{background-color:var(--TextOnAccentFillColorPrimaryBrush);box-shadow:0 0 0 1px var(--Radio-ActiveBorderColor) inset,0 0 0 5px var(--Radio-ActiveOuterColor) inset}span.svelte-15n77j6 input.svelte-15n77j6:checked{background-color:var(--TextOnAccentFillColorPrimaryBrush);box-shadow:0 0 0 5px var(--AccentFillColorSecondaryBrush) inset}span.svelte-15n77j6 input.svelte-15n77j6:checked:hover:not(:active){background-image:linear-gradient(var(--ButtonFillColor));box-shadow:0 0 0 4px var(--AccentFillColorSecondaryBrush) inset}span.svelte-15n77j6 input.svelte-15n77j6:checked:active{background-image:linear-gradient(var(--ButtonFillColor))}img.svelte-94ehie{display:flex;max-width:100%;align-self:center}iframe.svelte-ja4yf0{border:0;align-self:center}.light{--AccentFillColorDefaultBrush:var(--SystemAccentColorDark1);--AccentFillColorSecondaryBrush:var(--SystemAccentColorDark2);--AccentFillColorTertiaryBrush:var(--SystemAccentColorDark3);--AccentFillColorBackgroundBrush:#ffffff;--AccentHoverCoverColor:rgba(255, 255, 255, .0823529412);--AccentActiveCoverColor:rgba(255, 255, 255, .1882352941);--TextFillColorPrimaryBrush:#1a1a1a;--TextFillColorSecondaryBrush:#5c5c5c;--TextFillColorTertiaryBrush:#868686;--TextFillColorDisabledBrush:#9b9b9b;--TextOnAccentFillColorPrimaryBrush:#ffffff;--TextOnAccentFillColorSecondaryBrush:#ffffff;--TextOnAccentFillColorDisabledBrush:#ffffff;--TextOnAccentFillColorSelectedTextBrush:#ffffff;--SystemFillColorSuccessBrush:#0F7B0F;--SystemFillColorCautionBrush:#9D5D00;--SystemFillColorCriticalBrush:#C42B1C;--SystemFillColorSuccessBackgroundBrush:#DFF6DD;--SystemFillColorCautionBackgroundBrush:#FFF4CE;--SystemFillColorCriticalBackgroundBrush:#FDE7E9;--BackFillColor:#f3f3f3;--ScrollbarColor:#8c8c8c;--NavButtonHoverColor:rgba(0, 0, 0, .0352941176);--NavButtonActiveColor:rgba(0, 0, 0, .0235294118)}.dark{--AccentFillColorDefaultBrush:var(--SystemAccentColorLight1);--AccentFillColorSecondaryBrush:var(--SystemAccentColorLight2);--AccentFillColorTertiaryBrush:var(--SystemAccentColorLight3);--AccentFillColorBackgroundBrush:#2d2d2d;--AccentHoverCoverColor:rgba(0, 0, 0, .062745098);--AccentActiveCoverColor:rgba(0, 0, 0, .1254901961);--TextFillColorPrimaryBrush:#ffffff;--TextFillColorSecondaryBrush:#cccccc;--TextFillColorTertiaryBrush:#969696;--TextFillColorDisabledBrush:#717171;--TextOnAccentFillColorPrimaryBrush:#000000;--TextOnAccentFillColorSecondaryBrush:#101010;--TextOnAccentFillColorDisabledBrush:#969696;--TextOnAccentFillColorSelectedTextBrush:#ffffff;--SystemFillColorSuccessBrush:#6ccb5f;--SystemFillColorCautionBrush:#fce100;--SystemFillColorCriticalBrush:#ff99a4;--SystemFillColorSuccessBackgroundBrush:#393d1b;--SystemFillColorCautionBackgroundBrush:#433519;--SystemFillColorCriticalBackgroundBrush:#442726;--BackFillColor:#202020;--ScrollbarColor:#9a9a9a;--NavButtonHoverColor:rgba(255, 255, 255, .0549019608);--NavButtonActiveColor:rgba(255, 255, 255, .0392156863)}@media (prefers-color-scheme: light){.system{--AccentFillColorDefaultBrush:var(--SystemAccentColorDark1);--AccentFillColorSecondaryBrush:var(--SystemAccentColorDark2);--AccentFillColorTertiaryBrush:var(--SystemAccentColorDark3);--AccentFillColorBackgroundBrush:#ffffff;--AccentHoverCoverColor:rgba(255, 255, 255, .0823529412);--AccentActiveCoverColor:rgba(255, 255, 255, .1882352941);--TextFillColorPrimaryBrush:#1a1a1a;--TextFillColorSecondaryBrush:#5c5c5c;--TextFillColorTertiaryBrush:#868686;--TextFillColorDisabledBrush:#9b9b9b;--TextOnAccentFillColorPrimaryBrush:#ffffff;--TextOnAccentFillColorSecondaryBrush:#ffffff;--TextOnAccentFillColorDisabledBrush:#ffffff;--TextOnAccentFillColorSelectedTextBrush:#ffffff;--SystemFillColorSuccessBrush:#0F7B0F;--SystemFillColorCautionBrush:#9D5D00;--SystemFillColorCriticalBrush:#C42B1C;--SystemFillColorSuccessBackgroundBrush:#DFF6DD;--SystemFillColorCautionBackgroundBrush:#FFF4CE;--SystemFillColorCriticalBackgroundBrush:#FDE7E9;--BackFillColor:#f3f3f3;--ScrollbarColor:#8c8c8c;--NavButtonHoverColor:rgba(0, 0, 0, .0352941176);--NavButtonActiveColor:rgba(0, 0, 0, .0235294118)}}@media (prefers-color-scheme: dark){.system{--AccentFillColorDefaultBrush:var(--SystemAccentColorLight1);--AccentFillColorSecondaryBrush:var(--SystemAccentColorLight2);--AccentFillColorTertiaryBrush:var(--SystemAccentColorLight3);--AccentFillColorBackgroundBrush:#2d2d2d;--AccentHoverCoverColor:rgba(0, 0, 0, .062745098);--AccentActiveCoverColor:rgba(0, 0, 0, .1254901961);--TextFillColorPrimaryBrush:#ffffff;--TextFillColorSecondaryBrush:#cccccc;--TextFillColorTertiaryBrush:#969696;--TextFillColorDisabledBrush:#717171;--TextOnAccentFillColorPrimaryBrush:#000000;--TextOnAccentFillColorSecondaryBrush:#101010;--TextOnAccentFillColorDisabledBrush:#969696;--TextOnAccentFillColorSelectedTextBrush:#ffffff;--SystemFillColorSuccessBrush:#6ccb5f;--SystemFillColorCautionBrush:#fce100;--SystemFillColorCriticalBrush:#ff99a4;--SystemFillColorSuccessBackgroundBrush:#393d1b;--SystemFillColorCautionBackgroundBrush:#433519;--SystemFillColorCriticalBackgroundBrush:#442726;--BackFillColor:#202020;--ScrollbarColor:#9a9a9a;--NavButtonHoverColor:rgba(255, 255, 255, .0549019608);--NavButtonActiveColor:rgba(255, 255, 255, .0392156863)}}.nofication.svelte-1d8w78l.svelte-1d8w78l.svelte-1d8w78l{display:flex;gap:4px;position:absolute;flex-direction:column;align-items:flex-end;z-index:1000;right:10px;top:60px}.nofication.svelte-1d8w78l .InfoBar.svelte-1d8w78l.svelte-1d8w78l{width:fit-content;display:flex;gap:10px;align-items:center;border-radius:4px;padding:6px;box-shadow:0 0 4px 1px #00000030}.nofication.svelte-1d8w78l .InfoBar.l0.svelte-1d8w78l.svelte-1d8w78l{background-color:var(--AccentFillColorBackgroundBrush)}.nofication.svelte-1d8w78l .InfoBar.l0 .icon.svelte-1d8w78l.svelte-1d8w78l{color:var(--AccentFillColorBackgroundBrush);background-color:var(--AccentFillColorSecondaryBrush)}.nofication.svelte-1d8w78l .InfoBar.l1.svelte-1d8w78l.svelte-1d8w78l{background-color:var(--SystemFillColorSuccessBackgroundBrush)}.nofication.svelte-1d8w78l .InfoBar.l1 .icon.svelte-1d8w78l.svelte-1d8w78l{color:var(--SystemFillColorSuccessBackgroundBrush);background-color:var(--SystemFillColorSuccessBrush)}.nofication.svelte-1d8w78l .InfoBar.l2.svelte-1d8w78l.svelte-1d8w78l{background-color:var(--SystemFillColorCautionBackgroundBrush)}.nofication.svelte-1d8w78l .InfoBar.l2 .icon.svelte-1d8w78l.svelte-1d8w78l{color:var(--SystemFillColorCautionBackgroundBrush);background-color:var(--SystemFillColorCautionBrush)}.nofication.svelte-1d8w78l .InfoBar.l3.svelte-1d8w78l.svelte-1d8w78l{background-color:var(--SystemFillColorCriticalBackgroundBrush)}.nofication.svelte-1d8w78l .InfoBar.l3 .icon.svelte-1d8w78l.svelte-1d8w78l{color:var(--SystemFillColorCriticalBackgroundBrush);background-color:var(--SystemFillColorCriticalBrush)}.nofication.svelte-1d8w78l .InfoBar .icon.svelte-1d8w78l.svelte-1d8w78l{display:flex;align-items:center;align-self:flex-start;justify-content:center;font-size:18px;padding:0 0 1px 1px;margin:9px 0 9px 9px;height:16px;width:16px;border-radius:8px;color:var(--SystemFillColorCriticalBackgroundBrush);background-color:var(--SystemFillColorCriticalBrush)}.nofication.svelte-1d8w78l .InfoBar .content.svelte-1d8w78l.svelte-1d8w78l{padding:6px 0}.nofication.svelte-1d8w78l .InfoBar .content .description.svelte-1d8w78l.svelte-1d8w78l{font-size:14px;font-variation-settings:"wght" 400;word-wrap:break-word;overflow-wrap:anywhere}.nofication.svelte-1d8w78l .InfoBar .close.svelte-1d8w78l.svelte-1d8w78l{flex:0 0 34px;height:34px;border-radius:4px;align-self:flex-start}.nofication.svelte-1d8w78l .InfoBar .close.svelte-1d8w78l.svelte-1d8w78l:hover{background-color:var(--NavButtonHoverColor)}.prevButton.svelte-1d8w78l.svelte-1d8w78l.svelte-1d8w78l{display:flex;align-items:center;justify-content:center}.prevButton.svelte-1d8w78l>.icon.svelte-1d8w78l.svelte-1d8w78l{animation:svelte-1d8w78l-prevMove .2s forwards alternate}@keyframes svelte-1d8w78l-prevMove{0%{transform:scaleX(.8) translate(12%)}80%{transform:scaleX(1.1) translate(-6%)}to{transform:scaleX(1) translate(0)}}.prevButton.svelte-1d8w78l:active>.icon.svelte-1d8w78l.svelte-1d8w78l{animation:none;scale:80% 100%;translate:12% 0%}.settingButton.svelte-1d8w78l>.icon.svelte-1d8w78l.svelte-1d8w78l{animation:svelte-1d8w78l-settingRotate .6s forwards alternate}@keyframes svelte-1d8w78l-settingRotate{0%{transform:rotate(0)}to{transform:rotate(120deg)}}.settingButton.svelte-1d8w78l:active>.icon.svelte-1d8w78l.svelte-1d8w78l{animation:none;rotate:-60deg}.menuButton.svelte-1d8w78l:active>.icon.svelte-1d8w78l.svelte-1d8w78l{transform:scaleX(.5)}main.svelte-1d8w78l.svelte-1d8w78l.svelte-1d8w78l{display:grid;grid-template-rows:50px 1fr;background-color:var(--BackFillColor);color:var(--TextFillColorPrimaryBrush);width:100vw;height:100vh}header.svelte-1d8w78l.svelte-1d8w78l.svelte-1d8w78l{grid-column:span 2;display:flex;font-size:13px;align-items:center;padding:5px;justify-content:space-between}header.svelte-1d8w78l .pywebview-drag-region.svelte-1d8w78l.svelte-1d8w78l:not(.title){position:absolute;inset:0}header.svelte-1d8w78l .title.svelte-1d8w78l.svelte-1d8w78l{gap:8px;flex-grow:1;display:flex;align-items:center;padding:8px}header.svelte-1d8w78l .title img.svelte-1d8w78l.svelte-1d8w78l{width:20px;height:20px}header.svelte-1d8w78l button.svelte-1d8w78l.svelte-1d8w78l{color:var(--TextFillColorTertiaryBrush);width:30px;height:30px;font-size:15px;margin:5px;border-radius:4px}header.svelte-1d8w78l button.svelte-1d8w78l.svelte-1d8w78l:hover{background-color:var(--NavButtonHoverColor);color:var(--TextFillColorSecondaryBrush)}header.svelte-1d8w78l button.svelte-1d8w78l.svelte-1d8w78l:active{background-color:var(--NavButtonActiveColor)}header.svelte-1d8w78l button.svelte-1d8w78l.svelte-1d8w78l:last-child:hover{background-color:var(--SystemFillColorCriticalBackgroundBrush);color:var(--SystemFillColorCriticalBrush)}nav.svelte-1d8w78l.svelte-1d8w78l.svelte-1d8w78l{display:grid;padding:5px 0 5px 5px;gap:5px;overflow:hidden}nav.svelte-1d8w78l button.svelte-1d8w78l.svelte-1d8w78l{container-type:inline-size;display:flex;overflow:hidden;flex:0 0 40px;gap:1px;border-radius:4px;margin-right:5px;align-items:center;white-space:nowrap}nav.svelte-1d8w78l button.svelte-1d8w78l .icon.svelte-1d8w78l{flex:0 0 40px;font-size:16px}nav.svelte-1d8w78l button .badge.svelte-1d8w78l.svelte-1d8w78l{position:absolute;right:14px;line-height:14px;font-size:10px;padding:0 3px;min-width:14px;min-height:14px;border-radius:8px;text-align:center;transition:all .1s ease-out,right 0s,top 0s;color:var(--TextOnAccentFillColorPrimaryBrush)}nav.svelte-1d8w78l button .badge.l0.svelte-1d8w78l.svelte-1d8w78l{background-color:var(--AccentFillColorSecondaryBrush)}nav.svelte-1d8w78l button .badge.l1.svelte-1d8w78l.svelte-1d8w78l{background-color:var(--SystemFillColorSuccessBrush)}nav.svelte-1d8w78l button .badge.l2.svelte-1d8w78l.svelte-1d8w78l{background-color:var(--SystemFillColorCautionBrush)}nav.svelte-1d8w78l button .badge.l3.svelte-1d8w78l.svelte-1d8w78l{background-color:var(--SystemFillColorCriticalBrush)}@container (max-width: 50px){nav.svelte-1d8w78l button .badge.svelte-1d8w78l.svelte-1d8w78l{top:4px;right:4px}}nav.svelte-1d8w78l button.svelte-1d8w78l.svelte-1d8w78l:before{position:absolute;content:"";border-radius:1.5px;width:3px;height:6px}nav.svelte-1d8w78l button.Select.svelte-1d8w78l.svelte-1d8w78l:hover{background-color:var(--NavButtonActiveColor)}nav.svelte-1d8w78l button.Select.svelte-1d8w78l.svelte-1d8w78l,nav.svelte-1d8w78l button.Select.svelte-1d8w78l.svelte-1d8w78l:active,nav.svelte-1d8w78l button.svelte-1d8w78l.svelte-1d8w78l:not(.Select):hover{background-color:var(--NavButtonHoverColor)}nav.svelte-1d8w78l button.svelte-1d8w78l.svelte-1d8w78l:not(.Select):active{background-color:var(--NavButtonActiveColor)}nav.svelte-1d8w78l button.Select.svelte-1d8w78l.svelte-1d8w78l:before{height:16px;background-color:var(--AccentFillColorSecondaryBrush)}nav.svelte-1d8w78l section.svelte-1d8w78l.svelte-1d8w78l{display:flex;flex-direction:column;gap:5px;overflow:hidden scroll}nav.svelte-1d8w78l section button.svelte-1d8w78l.svelte-1d8w78l{margin-right:1px}
@@ -1 +0,0 @@
1
- const Ct=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function l(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerpolicy&&(r.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?r.credentials="include":s.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(s){if(s.ep)return;s.ep=!0;const r=l(s);fetch(s.href,r)}};Ct();function S(){}function Tt(t,e){for(const l in e)t[l]=e[l];return t}function jt(t){return t()}function He(){return Object.create(null)}function ae(t){t.forEach(jt)}function qt(t){return typeof t=="function"}function P(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Be;function we(t,e){return Be||(Be=document.createElement("a")),Be.href=e,t===Be.href}function zt(t){return Object.keys(t).length===0}function Ot(t,...e){if(t==null)return S;const l=t.subscribe(...e);return l.unsubscribe?()=>l.unsubscribe():l}function Et(t){let e;return Ot(t,l=>e=l)(),e}function x(t,e,l){t.$$.on_destroy.push(Ot(e,l))}function ke(t,e,l,n){if(t){const s=St(t,e,l,n);return t[0](s)}}function St(t,e,l,n){return t[1]&&n?Tt(l.ctx.slice(),t[1](n(e))):l.ctx}function ye(t,e,l,n){if(t[2]&&n){const s=t[2](n(l));if(e.dirty===void 0)return s;if(typeof s=="object"){const r=[],a=Math.max(e.dirty.length,s.length);for(let o=0;o<a;o+=1)r[o]=e.dirty[o]|s[o];return r}return e.dirty|s}return e.dirty}function $e(t,e,l,n,s,r){if(s){const a=St(e,l,n,r);t.p(a,s)}}function Ne(t){if(t.ctx.length>32){const e=[],l=t.ctx.length/32;for(let n=0;n<l;n++)e[n]=-1;return e}return-1}function Ke(t){return t==null?"":t}const Me=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function d(t,e){t.appendChild(e)}function w(t,e,l){t.insertBefore(e,l||null)}function b(t){t.parentNode&&t.parentNode.removeChild(t)}function ue(t,e){for(let l=0;l<t.length;l+=1)t[l]&&t[l].d(e)}function m(t){return document.createElement(t)}function T(t){return document.createTextNode(t)}function N(){return T(" ")}function oe(){return T("")}function E(t,e,l,n){return t.addEventListener(e,l,n),()=>t.removeEventListener(e,l,n)}function Lt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function c(t,e,l){l==null?t.removeAttribute(e):t.getAttribute(e)!==l&&t.setAttribute(e,l)}function Vt(t){return Array.from(t.childNodes)}function V(t,e){e=""+e,t.data!==e&&(t.data=e)}function k(t,e,l,n){l==null?t.style.removeProperty(e):t.style.setProperty(e,l,n?"important":"")}function F(t,e,l){t.classList[l?"add":"remove"](e)}function Te(t,e){return new t(e)}let Fe;function Se(t){Fe=t}const ve=[],ze=[];let be=[];const Ue=[],It=Promise.resolve();let Ae=!1;function Pt(){Ae||(Ae=!0,It.then(Dt))}function Ee(t){be.push(t)}const Ve=new Set;let he=0;function Dt(){if(he!==0)return;const t=Fe;do{try{for(;he<ve.length;){const e=ve[he];he++,Se(e),At(e.$$)}}catch(e){throw ve.length=0,he=0,e}for(Se(null),ve.length=0,he=0;ze.length;)ze.pop()();for(let e=0;e<be.length;e+=1){const l=be[e];Ve.has(l)||(Ve.add(l),l())}be.length=0}while(ve.length);for(;Ue.length;)Ue.pop()();Ae=!1,Ve.clear(),Se(t)}function At(t){if(t.fragment!==null){t.update(),ae(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ee)}}function Mt(t){const e=[],l=[];be.forEach(n=>t.indexOf(n)===-1?e.push(n):l.push(n)),l.forEach(n=>n()),be=e}const Ce=new Set;let _e;function te(){_e={r:0,c:[],p:_e}}function le(){_e.r||ae(_e.c),_e=_e.p}function y(t,e){t&&t.i&&(Ce.delete(t),t.i(e))}function O(t,e,l,n){if(t&&t.o){if(Ce.has(t))return;Ce.add(t),_e.c.push(()=>{Ce.delete(t),n&&(l&&t.d(1),n())}),t.o(e)}else n&&n()}function ie(t){t&&t.c()}function ne(t,e,l,n){const{fragment:s,after_update:r}=t.$$;s&&s.m(e,l),n||Ee(()=>{const a=t.$$.on_mount.map(jt).filter(qt);t.$$.on_destroy?t.$$.on_destroy.push(...a):ae(a),t.$$.on_mount=[]}),r.forEach(Ee)}function se(t,e){const l=t.$$;l.fragment!==null&&(Mt(l.after_update),ae(l.on_destroy),l.fragment&&l.fragment.d(e),l.on_destroy=l.fragment=null,l.ctx=[])}function Ft(t,e){t.$$.dirty[0]===-1&&(ve.push(t),Pt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function A(t,e,l,n,s,r,a,o=[-1]){const i=Fe;Se(t);const u=t.$$={fragment:null,ctx:[],props:r,update:S,not_equal:s,bound:He(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(i?i.$$.context:[])),callbacks:He(),dirty:o,skip_bound:!1,root:e.target||i.$$.root};a&&a(u.root);let f=!1;if(u.ctx=l?l(t,e.props||{},(h,_,...g)=>{const p=g.length?g[0]:_;return u.ctx&&s(u.ctx[h],u.ctx[h]=p)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](p),f&&Ft(t,h)),_}):[],u.update(),f=!0,ae(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const h=Vt(e.target);u.fragment&&u.fragment.l(h),h.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&y(t.$$.fragment),ne(t,e.target,e.anchor,e.customElement),Dt()}Se(i)}class M{$destroy(){se(this,1),this.$destroy=S}$on(e,l){if(!qt(l))return S;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(l),()=>{const s=n.indexOf(l);s!==-1&&n.splice(s,1)}}$set(e){this.$$set&&!zt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ge=[];function Rt(t,e=S){let l;const n=new Set;function s(o){if(P(t,o)&&(t=o,l)){const i=!ge.length;for(const u of n)u[1](),ge.push(u,t);if(i){for(let u=0;u<ge.length;u+=2)ge[u][0](ge[u+1]);ge.length=0}}}function r(o){s(o(t))}function a(o,i=S){const u=[o,i];return n.add(u),n.size===1&&(l=e(s)||S),o(t),()=>{n.delete(u),n.size===0&&l&&(l(),l=null)}}return{set:s,update:r,subscribe:a}}function Ge(t){let e,l=t[0].attr.title+"",n;return{c(){e=m("p"),n=T(l),c(e,"class","title svelte-1ungrg8")},m(s,r){w(s,e,r),d(e,n)},p(s,r){r&1&&l!==(l=s[0].attr.title+"")&&V(n,l)},d(s){s&&b(e)}}}function Wt(t){let e,l,n,s,r,a=t[0].attr.title&&Ge(t);const o=t[2].default,i=ke(o,t,t[1],null);return{c(){e=m("div"),a&&a.c(),l=N(),n=m("div"),i&&i.c(),c(n,"class","content svelte-1ungrg8"),c(e,"class","page svelte-1ungrg8"),c(e,"style",s=t[0].attr.style),F(e,"header",t[0].attr.title)},m(u,f){w(u,e,f),a&&a.m(e,null),d(e,l),d(e,n),i&&i.m(n,null),r=!0},p(u,[f]){u[0].attr.title?a?a.p(u,f):(a=Ge(u),a.c(),a.m(e,l)):a&&(a.d(1),a=null),i&&i.p&&(!r||f&2)&&$e(i,o,u,u[1],r?ye(o,u[1],f,null):Ne(u[1]),null),(!r||f&1&&s!==(s=u[0].attr.style))&&c(e,"style",s),(!r||f&1)&&F(e,"header",u[0].attr.title)},i(u){r||(y(i,u),r=!0)},o(u){O(i,u),r=!1},d(u){u&&b(e),a&&a.d(),i&&i.d(u)}}}function Ht(t,e,l){let{$$slots:n={},$$scope:s}=e,{data:r}=e;return t.$$set=a=>{"data"in a&&l(0,r=a.data),"$$scope"in a&&l(1,s=a.$$scope)},[r,s,n]}class Kt extends M{constructor(e){super(),A(this,e,Ht,Wt,P,{data:0})}}function Ut(t){let e,l=t[0].text+"",n,s;return{c(){var r;e=m("span"),n=T(l),c(e,"class",s="text "+t[0].attr.type+" svelte-1q0rj2m"),k(e,"margin",(r=t[0].attr.margin)!=null?r:0)},m(r,a){w(r,e,a),d(e,n)},p(r,a){var o;a&1&&l!==(l=r[0].text+"")&&V(n,l),a&1&&s!==(s="text "+r[0].attr.type+" svelte-1q0rj2m")&&c(e,"class",s),a&1&&k(e,"margin",(o=r[0].attr.margin)!=null?o:0)},d(r){r&&b(e)}}}function Gt(t){let e,l=t[0].text+"",n,s,r;return{c(){var a;e=m("a"),n=T(l),c(e,"class",s="text "+t[0].attr.type+" svelte-1q0rj2m"),c(e,"target","_blank"),c(e,"href",r=t[0].attr.url),k(e,"margin",(a=t[0].attr.margin)!=null?a:0)},m(a,o){w(a,e,o),d(e,n)},p(a,o){var i;o&1&&l!==(l=a[0].text+"")&&V(n,l),o&1&&s!==(s="text "+a[0].attr.type+" svelte-1q0rj2m")&&c(e,"class",s),o&1&&r!==(r=a[0].attr.url)&&c(e,"href",r),o&1&&k(e,"margin",(i=a[0].attr.margin)!=null?i:0)},d(a){a&&b(e)}}}function Jt(t){let e;function l(r,a){return r[0].attr.url?Gt:Ut}let n=l(t),s=n(t);return{c(){s.c(),e=oe()},m(r,a){s.m(r,a),w(r,e,a)},p(r,[a]){n===(n=l(r))&&s?s.p(r,a):(s.d(1),s=n(r),s&&(s.c(),s.m(e.parentNode,e)))},i:S,o:S,d(r){s.d(r),r&&b(e)}}}function Qt(t,e,l){let{data:n}=e;return t.$$set=s=>{"data"in s&&l(0,n=s.data)},[n]}class Bt extends M{constructor(e){super(),A(this,e,Qt,Jt,P,{data:0})}}function Xt(t){let e,l;return{c(){e=m("hr"),c(e,"style",l=t[0].attr.style),c(e,"class","svelte-zdjfga")},m(n,s){w(n,e,s)},p(n,[s]){s&1&&l!==(l=n[0].attr.style)&&c(e,"style",l)},i:S,o:S,d(n){n&&b(e)}}}function Yt(t,e,l){let{data:n}=e;return t.$$set=s=>{"data"in s&&l(0,n=s.data)},[n]}class Zt extends M{constructor(e){super(),A(this,e,Yt,Xt,P,{data:0})}}function xt(t){let e,l,n;const s=t[2].default,r=ke(s,t,t[1],null);return{c(){e=m("span"),r&&r.c(),c(e,"style",l=t[0].attr.style),c(e,"class","svelte-18yj4k0")},m(a,o){w(a,e,o),r&&r.m(e,null),n=!0},p(a,[o]){r&&r.p&&(!n||o&2)&&$e(r,s,a,a[1],n?ye(s,a[1],o,null):Ne(a[1]),null),(!n||o&1&&l!==(l=a[0].attr.style))&&c(e,"style",l)},i(a){n||(y(r,a),n=!0)},o(a){O(r,a),n=!1},d(a){a&&b(e),r&&r.d(a)}}}function el(t,e,l){let{$$slots:n={},$$scope:s}=e,{data:r}=e;return t.$$set=a=>{"data"in a&&l(0,r=a.data),"$$scope"in a&&l(1,s=a.$$scope)},[r,s,n]}class tl extends M{constructor(e){super(),A(this,e,el,xt,P,{data:0})}}function ll(t){let e,l;const n=t[2].default,s=ke(n,t,t[1],null);return{c(){var r,a,o,i;e=m("div"),s&&s.c(),k(e,"gap",(r=t[0].attr.gap)!=null?r:"inherit"),k(e,"align-items",(i=(o=(a=t[0].attr.aligin)==null?void 0:a.replace("right","flex-end"))==null?void 0:o.replace("left","flex-start"))!=null?i:"inherit"),c(e,"class","svelte-6ldjhr")},m(r,a){w(r,e,a),s&&s.m(e,null),l=!0},p(r,[a]){var o,i,u,f;s&&s.p&&(!l||a&2)&&$e(s,n,r,r[1],l?ye(n,r[1],a,null):Ne(r[1]),null),(!l||a&1)&&k(e,"gap",(o=r[0].attr.gap)!=null?o:"inherit"),(!l||a&1)&&k(e,"align-items",(f=(u=(i=r[0].attr.aligin)==null?void 0:i.replace("right","flex-end"))==null?void 0:u.replace("left","flex-start"))!=null?f:"inherit")},i(r){l||(y(s,r),l=!0)},o(r){O(s,r),l=!1},d(r){r&&b(e),s&&s.d(r)}}}function nl(t,e,l){let{$$slots:n={},$$scope:s}=e,{data:r}=e;return t.$$set=a=>{"data"in a&&l(0,r=a.data),"$$scope"in a&&l(1,s=a.$$scope)},[r,s,n]}class sl extends M{constructor(e){super(),A(this,e,nl,ll,P,{data:0})}}function al(t){let e,l;const n=t[2].default,s=ke(n,t,t[1],null);return{c(){var r,a,o,i;e=m("span"),s&&s.c(),k(e,"gap",(r=t[0].attr.gap)!=null?r:"inherit"),k(e,"align-items",(i=(o=(a=t[0].attr.aligin)==null?void 0:a.replace("right","flex-end"))==null?void 0:o.replace("left","flex-start"))!=null?i:"inherit"),c(e,"class","svelte-1o0bicc")},m(r,a){w(r,e,a),s&&s.m(e,null),l=!0},p(r,[a]){var o,i,u,f;s&&s.p&&(!l||a&2)&&$e(s,n,r,r[1],l?ye(n,r[1],a,null):Ne(r[1]),null),(!l||a&1)&&k(e,"gap",(o=r[0].attr.gap)!=null?o:"inherit"),(!l||a&1)&&k(e,"align-items",(f=(u=(i=r[0].attr.aligin)==null?void 0:i.replace("right","flex-end"))==null?void 0:u.replace("left","flex-start"))!=null?f:"inherit")},i(r){l||(y(s,r),l=!0)},o(r){O(s,r),l=!1},d(r){r&&b(e),s&&s.d(r)}}}function rl(t,e,l){let{$$slots:n={},$$scope:s}=e,{data:r}=e;return t.$$set=a=>{"data"in a&&l(0,r=a.data),"$$scope"in a&&l(1,s=a.$$scope)},[r,s,n]}class il extends M{constructor(e){super(),A(this,e,rl,al,P,{data:0})}}function ol(t){let e,l;const n=t[2].default,s=ke(n,t,t[1],null);return{c(){var r,a,o,i;e=m("span"),s&&s.c(),k(e,"gap",(r=t[0].attr.gap)!=null?r:"inherit"),k(e,"align-items",(i=(o=(a=t[0].attr.aligin)==null?void 0:a.replace("right","flex-end"))==null?void 0:o.replace("left","flex-start"))!=null?i:"inherit"),c(e,"class","svelte-1qngmzk")},m(r,a){w(r,e,a),s&&s.m(e,null),l=!0},p(r,[a]){var o,i,u,f;s&&s.p&&(!l||a&2)&&$e(s,n,r,r[1],l?ye(n,r[1],a,null):Ne(r[1]),null),(!l||a&1)&&k(e,"gap",(o=r[0].attr.gap)!=null?o:"inherit"),(!l||a&1)&&k(e,"align-items",(f=(u=(i=r[0].attr.aligin)==null?void 0:i.replace("right","flex-end"))==null?void 0:u.replace("left","flex-start"))!=null?f:"inherit")},i(r){l||(y(s,r),l=!0)},o(r){O(s,r),l=!1},d(r){r&&b(e),s&&s.d(r)}}}function ul(t,e,l){let{$$slots:n={},$$scope:s}=e,{data:r}=e;return t.$$set=a=>{"data"in a&&l(0,r=a.data),"$$scope"in a&&l(1,s=a.$$scope)},[r,s,n]}class fl extends M{constructor(e){super(),A(this,e,ul,ol,P,{data:0})}}function cl(t){let e,l=t[0].text+"",n,s=t[0].attr.type=="link"?" \uE8A7":"",r,a,o,i,u,f;const h=t[4].default,_=ke(h,t,t[3],null);return{c(){e=m("button"),n=T(l),r=T(s),a=N(),_&&_.c(),c(e,"class","main svelte-12yns0z"),c(e,"style",o=t[0].attr.style),F(e,"select",t[0].attr.type=="toggle"&&t[1][t[0].attr.value])},m(g,p){w(g,e,p),d(e,n),d(e,r),d(e,a),_&&_.m(e,null),i=!0,u||(f=E(e,"click",t[2]),u=!0)},p(g,[p]){(!i||p&1)&&l!==(l=g[0].text+"")&&V(n,l),(!i||p&1)&&s!==(s=g[0].attr.type=="link"?" \uE8A7":"")&&V(r,s),_&&_.p&&(!i||p&8)&&$e(_,h,g,g[3],i?ye(h,g[3],p,null):Ne(g[3]),null),(!i||p&1&&o!==(o=g[0].attr.style))&&c(e,"style",o),(!i||p&3)&&F(e,"select",g[0].attr.type=="toggle"&&g[1][g[0].attr.value])},i(g){i||(y(_,g),i=!0)},o(g){O(_,g),i=!1},d(g){g&&b(e),_&&_.d(g),u=!1,f()}}}function _l(t,e,l){let n;x(t,U,i=>l(1,n=i));let{$$slots:s={},$$scope:r}=e,{data:a}=e;const o=()=>{a.attr.type=="toggle"?window.setValue(a.attr.value,!n[a.attr.value]):a.attr.type=="link"?window.open(a.attr.url,"_blank"):window.setValue(a.attr.value,!0)};return t.$$set=i=>{"data"in i&&l(0,a=i.data),"$$scope"in i&&l(3,r=i.$$scope)},[a,n,o,r,s]}class dl extends M{constructor(e){super(),A(this,e,_l,cl,P,{data:0})}}function Je(t){let e,l,n,s,r,a;return{c(){e=m("span"),l=m("button"),l.textContent="\uE971",n=N(),s=m("button"),s.textContent="\uE972",c(l,"class","svelte-1e6zuvd"),c(s,"class","svelte-1e6zuvd"),c(e,"class","buttons svelte-1e6zuvd")},m(o,i){w(o,e,i),d(e,l),d(e,n),d(e,s),r||(a=[E(l,"click",t[3]),E(s,"click",t[4])],r=!0)},p:S,d(o){o&&b(e),r=!1,ae(a)}}}function pl(t){let e,l,n,s,r,a,o,i,u,f=t[0].attr.type=="number"&&Je(t);return{c(){e=m("span"),l=m("input"),o=N(),f&&f.c(),c(l,"type",n=t[0].attr.type),c(l,"placeholder",s=t[0].text),l.value=r=t[1][t[0].attr.value],c(l,"style",a=t[0].attr.style),c(l,"class","svelte-1e6zuvd")},m(h,_){w(h,e,_),d(e,l),d(e,o),f&&f.m(e,null),i||(u=E(l,"input",t[2]),i=!0)},p(h,[_]){_&1&&n!==(n=h[0].attr.type)&&c(l,"type",n),_&1&&s!==(s=h[0].text)&&c(l,"placeholder",s),_&3&&r!==(r=h[1][h[0].attr.value])&&l.value!==r&&(l.value=r),_&1&&a!==(a=h[0].attr.style)&&c(l,"style",a),h[0].attr.type=="number"?f?f.p(h,_):(f=Je(h),f.c(),f.m(e,null)):f&&(f.d(1),f=null)},i:S,o:S,d(h){h&&b(e),f&&f.d(),i=!1,u()}}}function ml(t,e,l){let n;x(t,U,i=>l(1,n=i));let{data:s}=e;const r=i=>{window.setValue(s.attr.value,i.currentTarget.value)},a=()=>window.setValue(s.attr.value,Number(n[s.attr.value])+1),o=()=>window.setValue(s.attr.value,Number(n[s.attr.value])-1);return t.$$set=i=>{"data"in i&&l(0,s=i.data)},[s,n,r,a,o]}class hl extends M{constructor(e){super(),A(this,e,ml,pl,P,{data:0})}}function gl(t){var D,B;let e,l,n,s=((D=t[0].attr.on)!=null?D:"ON")+"",r,a,o,i,u=((B=t[0].attr.off)!=null?B:"OFF")+"",f,h,_,g,p,q,$,j;return{c(){e=m("span"),l=m("span"),n=m("label"),r=T(s),o=N(),i=m("label"),f=T(u),_=N(),g=m("input"),c(n,"for",a="switch."+t[0].attr.value),k(n,"opacity",t[1][t[0].attr.value]?"1":"0"),c(n,"class","svelte-t2d7pq"),c(i,"for",h="switch."+t[0].attr.value),k(i,"opacity",t[1][t[0].attr.value]?"0":"1"),c(i,"class","svelte-t2d7pq"),k(l,"order",t[0].attr.aligin=="right"?2:0),k(l,"align-items",t[0].attr.aligin=="right"?"flex-start":"flex-end"),c(l,"class","svelte-t2d7pq"),c(g,"id",p="switch."+t[0].attr.value),c(g,"type","checkbox"),g.checked=q=t[1][t[0].attr.value],c(g,"class","svelte-t2d7pq"),c(e,"class","main svelte-t2d7pq")},m(C,z){w(C,e,z),d(e,l),d(l,n),d(n,r),d(l,o),d(l,i),d(i,f),d(e,_),d(e,g),$||(j=E(g,"input",t[2]),$=!0)},p(C,[z]){var I,G;z&1&&s!==(s=((I=C[0].attr.on)!=null?I:"ON")+"")&&V(r,s),z&1&&a!==(a="switch."+C[0].attr.value)&&c(n,"for",a),z&3&&k(n,"opacity",C[1][C[0].attr.value]?"1":"0"),z&1&&u!==(u=((G=C[0].attr.off)!=null?G:"OFF")+"")&&V(f,u),z&1&&h!==(h="switch."+C[0].attr.value)&&c(i,"for",h),z&3&&k(i,"opacity",C[1][C[0].attr.value]?"0":"1"),z&1&&k(l,"order",C[0].attr.aligin=="right"?2:0),z&1&&k(l,"align-items",C[0].attr.aligin=="right"?"flex-start":"flex-end"),z&1&&p!==(p="switch."+C[0].attr.value)&&c(g,"id",p),z&3&&q!==(q=C[1][C[0].attr.value])&&(g.checked=q)},i:S,o:S,d(C){C&&b(e),$=!1,j()}}}function vl(t,e,l){let n;x(t,U,a=>l(1,n=a));let{data:s}=e;const r=()=>{window.setValue(s.attr.value,!n[s.attr.value])};return t.$$set=a=>{"data"in a&&l(0,s=a.data)},[s,n,r]}class bl extends M{constructor(e){super(),A(this,e,vl,gl,P,{data:0})}}const{window:wl}=Me;function Qe(t,e,l){const n=t.slice();n[9]=e[l];const s=Object.fromEntries(Object.entries(n[9].attr).map(([r,a])=>[r,W(a)]));return n[10]=s,n}function Xe(t){let e,l=t[0].child,n=[];for(let s=0;s<l.length;s+=1)n[s]=Ye(Qe(t,l,s));return{c(){e=m("div");for(let s=0;s<n.length;s+=1)n[s].c();c(e,"class","menu svelte-7q13qm")},m(s,r){w(s,e,r);for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(e,null)},p(s,r){if(r&11){l=s[0].child;let a;for(a=0;a<l.length;a+=1){const o=Qe(s,l,a);n[a]?n[a].p(o,r):(n[a]=Ye(o),n[a].c(),n[a].m(e,null))}for(;a<n.length;a+=1)n[a].d(1);n.length=l.length}},d(s){s&&b(e),ue(n,s)}}}function Ye(t){let e,l=W(t[9].text)+"",n,s,r,a,o;function i(){return t[7](t[10])}return{c(){e=m("button"),n=T(l),s=N(),c(e,"class","item svelte-7q13qm"),c(e,"style",r=t[10].style),F(e,"select",t[3][t[0].attr.value]==t[9].attr.value)},m(u,f){w(u,e,f),d(e,n),d(e,s),a||(o=E(e,"click",i),a=!0)},p(u,f){t=u,f&1&&l!==(l=W(t[9].text)+"")&&V(n,l),f&1&&r!==(r=t[10].style)&&c(e,"style",r),f&9&&F(e,"select",t[3][t[0].attr.value]==t[9].attr.value)},d(u){u&&b(e),a=!1,o()}}}function kl(t){var q;let e,l,n,s=t[0].text?`${t[0].text}: `:"",r,a=((q=t[0].child.find(t[5]))==null?void 0:q.text)+"",o,i,u,f,h,_,g,p=t[1]&&Xe(t);return{c(){e=m("span"),l=m("button"),n=m("p"),r=T(s),o=T(a),i=N(),u=m("span"),u.textContent="\uE972",h=N(),p&&p.c(),c(u,"class","svelte-7q13qm"),c(l,"class","main svelte-7q13qm"),c(l,"style",f=t[0].attr.style),c(e,"class","container")},m($,j){w($,e,j),d(e,l),d(l,n),d(n,r),d(n,o),d(l,i),d(l,u),d(e,h),p&&p.m(e,null),t[8](e),_||(g=[E(wl,"click",t[4]),E(l,"click",t[6])],_=!0)},p($,[j]){var D;j&1&&s!==(s=$[0].text?`${$[0].text}: `:"")&&V(r,s),j&9&&a!==(a=((D=$[0].child.find($[5]))==null?void 0:D.text)+"")&&V(o,a),j&1&&f!==(f=$[0].attr.style)&&c(l,"style",f),$[1]?p?p.p($,j):(p=Xe($),p.c(),p.m(e,null)):p&&(p.d(1),p=null)},i:S,o:S,d($){$&&b(e),p&&p.d(),t[8](null),_=!1,ae(g)}}}function yl(t,e,l){let n;x(t,U,_=>l(3,n=_));let{data:s}=e,r=!1,a;const o=_=>{a!=null&&a.contains(_.target)||l(1,r=!1)},i=_=>_.attr.value==n[s.attr.value],u=()=>{l(1,r=!r)},f=_=>{l(1,r=!1),window.setValue(s.attr.value,_.value)};function h(_){ze[_?"unshift":"push"](()=>{a=_,l(2,a)})}return t.$$set=_=>{"data"in _&&l(0,s=_.data)},[s,r,a,n,o,i,u,f,h]}class $l extends M{constructor(e){super(),A(this,e,yl,kl,P,{data:0})}}function Ze(t){let e,l,n;return{c(){e=m("div"),l=m("div"),n=T(t[3]),c(l,"class","svelte-xozodt"),c(e,"class","rotater svelte-xozodt")},m(s,r){w(s,e,r),d(e,l),d(l,n)},p(s,r){r&8&&V(n,s[3])},d(s){s&&b(e)}}}function Nl(t){let e,l,n,s,r,a,o,i=t[6]&&Ze(t);return{c(){e=m("span"),l=m("span"),n=m("span"),i&&i.c(),s=N(),r=m("input"),k(n,"width","calc("+t[5]*100+"% "+(t[5]>.5?"-":"+")+" "+Math.abs(.5-t[5])*18+"px)"),c(n,"class","svelte-xozodt"),c(r,"type","range"),c(r,"min",t[1]),c(r,"max",t[2]),c(r,"step",t[4]),r.value=t[3],c(r,"class","svelte-xozodt"),c(l,"class","main svelte-xozodt"),c(e,"class","container svelte-xozodt"),F(e,"vertical",t[0].attr.type=="vertical")},m(u,f){w(u,e,f),d(e,l),d(l,n),i&&i.m(n,null),d(l,s),d(l,r),a||(o=[E(r,"mousedown",t[8]),E(r,"mouseup",t[9]),E(r,"input",t[10])],a=!0)},p(u,[f]){u[6]?i?i.p(u,f):(i=Ze(u),i.c(),i.m(n,null)):i&&(i.d(1),i=null),f&32&&k(n,"width","calc("+u[5]*100+"% "+(u[5]>.5?"-":"+")+" "+Math.abs(.5-u[5])*18+"px)"),f&2&&c(r,"min",u[1]),f&4&&c(r,"max",u[2]),f&16&&c(r,"step",u[4]),f&8&&(r.value=u[3]),f&1&&F(e,"vertical",u[0].attr.type=="vertical")},i:S,o:S,d(u){u&&b(e),i&&i.d(),a=!1,ae(o)}}}function jl(t,e,l){let n;x(t,U,p=>l(7,n=p));let{data:s}=e,r,a,o,i,u,f=!1;const h=()=>{l(6,f=!0)},_=()=>{l(6,f=!1)},g=p=>window.setValue(s.attr.value,p.currentTarget.value);return t.$$set=p=>{"data"in p&&l(0,s=p.data)},t.$$.update=()=>{var p,q,$,j;t.$$.dirty&143&&(l(1,r=Number((p=s.attr.min)!=null?p:0)),l(2,a=Number((q=s.attr.max)!=null?q:100)),l(4,o=Number(($=s.attr.step)!=null?$:1)),l(3,i=Math.max(Math.min(Number((j=n[s.attr.value])!=null?j:0),a),r)),l(5,u=1-(a-i)/(a-r)))},[s,r,a,i,o,u,f,n,h,_,g]}class ql extends M{constructor(e){super(),A(this,e,jl,Nl,P,{data:0})}}function xe(t){let e,l=t[0].text+"",n,s;return{c(){e=m("label"),n=T(l),c(e,"for",s="check."+t[0].attr.value),k(e,"order",t[0].attr.aligin=="left"?0:2),c(e,"class","svelte-112a9ok")},m(r,a){w(r,e,a),d(e,n)},p(r,a){a&1&&l!==(l=r[0].text+"")&&V(n,l),a&1&&s!==(s="check."+r[0].attr.value)&&c(e,"for",s),a&1&&k(e,"order",r[0].attr.aligin=="left"?0:2)},d(r){r&&b(e)}}}function Ol(t){let e,l,n,s,r,a,o=t[0].text&&xe(t);return{c(){e=m("span"),o&&o.c(),l=N(),n=m("input"),c(n,"id",s="check."+t[0].attr.value),c(n,"type","checkbox"),c(n,"class","svelte-112a9ok"),(t[2]===void 0||t[3]===void 0)&&Ee(()=>t[5].call(n)),c(e,"class","svelte-112a9ok")},m(i,u){w(i,e,u),o&&o.m(e,null),d(e,l),d(e,n),n.checked=t[2],n.indeterminate=t[3],r||(a=[E(n,"change",t[5]),E(n,"input",Lt(t[6]))],r=!0)},p(i,[u]){i[0].text?o?o.p(i,u):(o=xe(i),o.c(),o.m(e,l)):o&&(o.d(1),o=null),u&1&&s!==(s="check."+i[0].attr.value)&&c(n,"id",s),u&4&&(n.checked=i[2]),u&8&&(n.indeterminate=i[3])},i:S,o:S,d(i){i&&b(e),o&&o.d(),r=!1,ae(a)}}}function Sl(t,e,l){let n;x(t,U,f=>l(4,n=f));let{data:s}=e,r,a,o;function i(){a=this.checked,o=this.indeterminate,l(2,a),l(4,n),l(0,s),l(1,r),l(3,o),l(4,n),l(0,s),l(1,r)}const u=()=>window.setValue(s.attr.value,(r+1)%(s.attr.type=="three"?3:2));return t.$$set=f=>{"data"in f&&l(0,s=f.data)},t.$$.update=()=>{var f;t.$$.dirty&19&&(l(1,r=Number((f=n[s.attr.value])!=null?f:0)),l(2,a=r==1),l(3,o=r==2))},[s,r,a,o,n,i,u]}class Dl extends M{constructor(e){super(),A(this,e,Sl,Ol,P,{data:0})}}function Bl(t){let e,l,n,s,r;return{c(){var a;e=m("span"),l=m("span"),n=N(),s=m("div"),c(l,"class","svelte-rwikqt"),k(s,"width",((a=t[1][t[0].attr.value])!=null?a:0)+"%"),c(s,"class","svelte-rwikqt"),c(e,"class",r="main "+t[0].attr.type+" svelte-rwikqt")},m(a,o){w(a,e,o),d(e,l),d(e,n),d(e,s)},p(a,[o]){var i;o&3&&k(s,"width",((i=a[1][a[0].attr.value])!=null?i:0)+"%"),o&1&&r!==(r="main "+a[0].attr.type+" svelte-rwikqt")&&c(e,"class",r)},i:S,o:S,d(a){a&&b(e)}}}function Cl(t,e,l){let n;x(t,U,r=>l(1,n=r));let{data:s}=e;return t.$$set=r=>{"data"in r&&l(0,s=r.data)},[s,n]}class Tl extends M{constructor(e){super(),A(this,e,Cl,Bl,P,{data:0})}}const{window:zl}=Me;function et(t,e,l){const n=t.slice();n[9]=e[l];const s=Object.fromEntries(Object.entries(n[9].attr).map(([r,a])=>[r,W(a)]));return n[10]=s,n}function tt(t){let e,l=t[0].child,n=[];for(let s=0;s<l.length;s+=1)n[s]=lt(et(t,l,s));return{c(){e=m("div");for(let s=0;s<n.length;s+=1)n[s].c();c(e,"class","menu svelte-ua5lmd")},m(s,r){w(s,e,r);for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(e,null)},p(s,r){if(r&11){l=s[0].child;let a;for(a=0;a<l.length;a+=1){const o=et(s,l,a);n[a]?n[a].p(o,r):(n[a]=lt(o),n[a].c(),n[a].m(e,null))}for(;a<n.length;a+=1)n[a].d(1);n.length=l.length}},d(s){s&&b(e),ue(n,s)}}}function lt(t){let e,l=W(t[9].text)+"",n,s,r,a,o;function i(){return t[7](t[10])}return{c(){e=m("button"),n=T(l),s=N(),c(e,"class","item svelte-ua5lmd"),c(e,"style",r=t[10].style),F(e,"select",t[3][t[0].attr.value]==t[9].attr.value)},m(u,f){w(u,e,f),d(e,n),d(e,s),a||(o=E(e,"click",i),a=!0)},p(u,f){t=u,f&1&&l!==(l=W(t[9].text)+"")&&V(n,l),f&1&&r!==(r=t[10].style)&&c(e,"style",r),f&9&&F(e,"select",t[3][t[0].attr.value]==t[9].attr.value)},d(u){u&&b(e),a=!1,o()}}}function El(t){var g;let e,l,n,s=((g=t[0].child.find(t[5]))==null?void 0:g.text)+"",r,a,o,i,u,f,h,_=t[1]&&tt(t);return{c(){e=m("span"),l=m("button"),n=m("p"),r=T(s),a=N(),o=m("span"),o.textContent="\uE972",u=N(),_&&_.c(),c(o,"class","svelte-ua5lmd"),c(l,"class","main svelte-ua5lmd"),c(l,"style",i=t[0].attr.style),c(e,"class","container")},m(p,q){w(p,e,q),d(e,l),d(l,n),d(n,r),d(l,a),d(l,o),d(e,u),_&&_.m(e,null),t[8](e),f||(h=[E(zl,"click",t[4]),E(l,"click",t[6])],f=!0)},p(p,[q]){var $;q&9&&s!==(s=(($=p[0].child.find(p[5]))==null?void 0:$.text)+"")&&V(r,s),q&1&&i!==(i=p[0].attr.style)&&c(l,"style",i),p[1]?_?_.p(p,q):(_=tt(p),_.c(),_.m(e,null)):_&&(_.d(1),_=null)},i:S,o:S,d(p){p&&b(e),_&&_.d(),t[8](null),f=!1,ae(h)}}}function Ll(t,e,l){let n;x(t,U,_=>l(3,n=_));let{data:s}=e,r=!1,a;const o=_=>{a!=null&&a.contains(_.target)||l(1,r=!1)},i=_=>_.attr.value==n[s.attr.value],u=()=>{l(1,r=!r)},f=_=>{l(1,r=!1),window.setValue(s.attr.value,_.value)};function h(_){ze[_?"unshift":"push"](()=>{a=_,l(2,a)})}return t.$$set=_=>{"data"in _&&l(0,s=_.data)},[s,r,a,n,o,i,u,f,h]}class Vl extends M{constructor(e){super(),A(this,e,Ll,El,P,{data:0})}}function nt(t){let e,l=t[0].text+"",n,s;return{c(){e=m("label"),n=T(l),c(e,"for",s="radio."+t[0].attr.group+"."+t[0].attr.value),k(e,"order",t[0].attr.aligin=="left"?0:2),c(e,"class","svelte-15n77j6")},m(r,a){w(r,e,a),d(e,n)},p(r,a){a&1&&l!==(l=r[0].text+"")&&V(n,l),a&1&&s!==(s="radio."+r[0].attr.group+"."+r[0].attr.value)&&c(e,"for",s),a&1&&k(e,"order",r[0].attr.aligin=="left"?0:2)},d(r){r&&b(e)}}}function Il(t){let e,l,n,s,r,a,o,i=t[0].text&&nt(t);return{c(){e=m("span"),i&&i.c(),l=N(),n=m("input"),c(n,"id",s="radio."+t[0].attr.group+"."+t[0].attr.value),c(n,"type","radio"),n.checked=r=t[1][t[0].attr.group]==t[0].attr.value,c(n,"class","svelte-15n77j6"),c(e,"class","svelte-15n77j6")},m(u,f){w(u,e,f),i&&i.m(e,null),d(e,l),d(e,n),a||(o=E(n,"input",t[2]),a=!0)},p(u,[f]){u[0].text?i?i.p(u,f):(i=nt(u),i.c(),i.m(e,l)):i&&(i.d(1),i=null),f&1&&s!==(s="radio."+u[0].attr.group+"."+u[0].attr.value)&&c(n,"id",s),f&3&&r!==(r=u[1][u[0].attr.group]==u[0].attr.value)&&(n.checked=r)},i:S,o:S,d(u){u&&b(e),i&&i.d(),a=!1,o()}}}function Pl(t,e,l){let n;x(t,U,a=>l(1,n=a));let{data:s}=e;const r=()=>window.setValue(s.attr.group,s.attr.value);return t.$$set=a=>{"data"in a&&l(0,s=a.data)},[s,n,r]}class Al extends M{constructor(e){super(),A(this,e,Pl,Il,P,{data:0})}}function Ml(t){let e,l,n;return{c(){e=m("img"),we(e.src,l=t[0].attr.source)||c(e,"src",l),c(e,"alt",n=t[0].attr.source),c(e,"class","svelte-94ehie")},m(s,r){w(s,e,r)},p(s,[r]){r&1&&!we(e.src,l=s[0].attr.source)&&c(e,"src",l),r&1&&n!==(n=s[0].attr.source)&&c(e,"alt",n)},i:S,o:S,d(s){s&&b(e)}}}function Fl(t,e,l){let{data:n}=e;return t.$$set=s=>{"data"in s&&l(0,n=s.data)},[n]}class Rl extends M{constructor(e){super(),A(this,e,Fl,Ml,P,{data:0})}}function Wl(t){let e,l;return{c(){e=m("iframe"),we(e.src,l=t[0].attr.source)||c(e,"src",l),c(e,"title","Webview"),c(e,"class","svelte-ja4yf0")},m(n,s){w(n,e,s)},p(n,[s]){s&1&&!we(e.src,l=n[0].attr.source)&&c(e,"src",l)},i:S,o:S,d(n){n&&b(e)}}}function Hl(t,e,l){let{data:n}=e;return t.$$set=s=>{"data"in s&&l(0,n=s.data)},[n]}class Kl extends M{constructor(e){super(),A(this,e,Hl,Wl,P,{data:0})}}function st(t,e,l){const n=t.slice();return n[3]=e[l],n}function at(t){let e,l;return e=new De({props:{formatData:t[3]}}),{c(){ie(e.$$.fragment)},m(n,s){ne(e,n,s),l=!0},p(n,s){const r={};s&1&&(r.formatData=n[3]),e.$set(r)},i(n){l||(y(e.$$.fragment,n),l=!0)},o(n){O(e.$$.fragment,n),l=!1},d(n){se(e,n)}}}function Ul(t){let e,l,n=t[0],s=[];for(let a=0;a<n.length;a+=1)s[a]=at(st(t,n,a));const r=a=>O(s[a],1,1,()=>{s[a]=null});return{c(){for(let a=0;a<s.length;a+=1)s[a].c();e=oe()},m(a,o){for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(a,o);w(a,e,o),l=!0},p(a,[o]){if(o&1){n=a[0];let i;for(i=0;i<n.length;i+=1){const u=st(a,n,i);s[i]?(s[i].p(u,o),y(s[i],1)):(s[i]=at(u),s[i].c(),y(s[i],1),s[i].m(e.parentNode,e))}for(te(),i=n.length;i<s.length;i+=1)r(i);le()}},i(a){if(!l){for(let o=0;o<n.length;o+=1)y(s[o]);l=!0}},o(a){s=s.filter(Boolean);for(let o=0;o<s.length;o+=1)O(s[o]);l=!1},d(a){ue(s,a),a&&b(e)}}}function Gl(t,e,l){let n;x(t,U,a=>l(2,n=a));let{data:s}=e,r;return t.$$set=a=>{"data"in a&&l(1,s=a.data)},t.$$.update=()=>{var a,o;t.$$.dirty&6&&l(0,r=(o=(a=s.child.find(i=>n[s.attr.value]?"True":i.tag=="False"))==null?void 0:a.child)!=null?o:[])},[r,s,n]}class Jl extends M{constructor(e){super(),A(this,e,Gl,Ul,P,{data:1})}}function rt(t,e,l){const n=t.slice();return n[4]=e[l],n[6]=l,n}function it(t,e,l){const n=t.slice();n[7]=e[l];const s={tag:n[7].tag,attr:Object.fromEntries(Object.entries(n[7].attr).map(function(...a){return t[3](n[6],...a)})),text:n[1](n[7].text,n[6]),child:n[7].child};return n[8]=s,n}function ot(t){let e,l;return e=new De({props:{formatData:t[8]}}),{c(){ie(e.$$.fragment)},m(n,s){ne(e,n,s),l=!0},p(n,s){const r={};s&1&&(r.formatData=n[8]),e.$set(r)},i(n){l||(y(e.$$.fragment,n),l=!0)},o(n){O(e.$$.fragment,n),l=!1},d(n){se(e,n)}}}function ut(t){let e,l,n=t[0].child,s=[];for(let a=0;a<n.length;a+=1)s[a]=ot(it(t,n,a));const r=a=>O(s[a],1,1,()=>{s[a]=null});return{c(){for(let a=0;a<s.length;a+=1)s[a].c();e=oe()},m(a,o){for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(a,o);w(a,e,o),l=!0},p(a,o){if(o&3){n=a[0].child;let i;for(i=0;i<n.length;i+=1){const u=it(a,n,i);s[i]?(s[i].p(u,o),y(s[i],1)):(s[i]=ot(u),s[i].c(),y(s[i],1),s[i].m(e.parentNode,e))}for(te(),i=n.length;i<s.length;i+=1)r(i);le()}},i(a){if(!l){for(let o=0;o<n.length;o+=1)y(s[o]);l=!0}},o(a){s=s.filter(Boolean);for(let o=0;o<s.length;o+=1)O(s[o]);l=!1},d(a){ue(s,a),a&&b(e)}}}function Ql(t){let e,l,n=new Array(Number(t[2][t[0].attr.value])||0),s=[];for(let a=0;a<n.length;a+=1)s[a]=ut(rt(t,n,a));const r=a=>O(s[a],1,1,()=>{s[a]=null});return{c(){for(let a=0;a<s.length;a+=1)s[a].c();e=oe()},m(a,o){for(let i=0;i<s.length;i+=1)s[i]&&s[i].m(a,o);w(a,e,o),l=!0},p(a,[o]){if(o&7){n=new Array(Number(a[2][a[0].attr.value])||0);let i;for(i=0;i<n.length;i+=1){const u=rt(a,n,i);s[i]?(s[i].p(u,o),y(s[i],1)):(s[i]=ut(u),s[i].c(),y(s[i],1),s[i].m(e.parentNode,e))}for(te(),i=n.length;i<s.length;i+=1)r(i);le()}},i(a){if(!l){for(let o=0;o<n.length;o+=1)y(s[o]);l=!0}},o(a){s=s.filter(Boolean);for(let o=0;o<s.length;o+=1)O(s[o]);l=!1},d(a){ue(s,a),a&&b(e)}}}function Xl(t,e,l){let n;x(t,U,o=>l(2,n=o));let{data:s}=e;const r=(o,i)=>o.replace(new RegExp("(?<!\\\\){i}","g"),()=>i).replace(/\\({i})/g,"$1"),a=(o,[i,u])=>[i,r(u,o)];return t.$$set=o=>{"data"in o&&l(0,s=o.data)},[s,r,n,a]}class Yl extends M{constructor(e){super(),A(this,e,Xl,Ql,P,{data:0,formatIndex:1})}get formatIndex(){return this.$$.ctx[1]}}function ft(t,e,l){const n=t.slice();return n[4]=e[l],n}function Ie(t){var n;const e=t.slice(),l=(n=e[1])!=null?n:{tag:e[0].tag,attr:Object.fromEntries(Object.entries(e[0].attr).map(([s,r])=>[s,W(r)])),text:W(e[0].text),child:e[0].child};return e[3]=l,e}function ct(t){let e,l,n,s,r;const a=[xl,Zl],o=[];function i(u,f){return f&3&&(e=null),e==null&&(e=!!["Select","Slider","Switch","Text","Line","Input","Progressbar","Button","Check","Radio","Webview","Image","If","Repeat"].includes(u[3].tag)),e?0:1}return l=i(t,-1),n=o[l]=a[l](t),{c(){n.c(),s=oe()},m(u,f){o[l].m(u,f),w(u,s,f),r=!0},p(u,f){let h=l;l=i(u,f),l===h?o[l].p(u,f):(te(),O(o[h],1,1,()=>{o[h]=null}),le(),n=o[l],n?n.p(u,f):(n=o[l]=a[l](u),n.c()),y(n,1),n.m(s.parentNode,s))},i(u){r||(y(n),r=!0)},o(u){O(n),r=!1},d(u){o[l].d(u),u&&b(s)}}}function Zl(t){let e,l,n;var s=t[2][t[3].tag];function r(a){return{props:{data:a[3],$$slots:{default:[en]},$$scope:{ctx:a}}}}return s&&(e=Te(s,r(t))),{c(){e&&ie(e.$$.fragment),l=oe()},m(a,o){e&&ne(e,a,o),w(a,l,o),n=!0},p(a,o){const i={};if(o&3&&(i.data=a[3]),o&131&&(i.$$scope={dirty:o,ctx:a}),o&3&&s!==(s=a[2][a[3].tag])){if(e){te();const u=e;O(u.$$.fragment,1,0,()=>{se(u,1)}),le()}s?(e=Te(s,r(a)),ie(e.$$.fragment),y(e.$$.fragment,1),ne(e,l.parentNode,l)):e=null}else s&&e.$set(i)},i(a){n||(e&&y(e.$$.fragment,a),n=!0)},o(a){e&&O(e.$$.fragment,a),n=!1},d(a){a&&b(l),e&&se(e,a)}}}function xl(t){let e,l,n;var s=t[2][t[3].tag];function r(a){return{props:{data:a[3]}}}return s&&(e=Te(s,r(t))),{c(){e&&ie(e.$$.fragment),l=oe()},m(a,o){e&&ne(e,a,o),w(a,l,o),n=!0},p(a,o){const i={};if(o&3&&(i.data=a[3]),o&3&&s!==(s=a[2][a[3].tag])){if(e){te();const u=e;O(u.$$.fragment,1,0,()=>{se(u,1)}),le()}s?(e=Te(s,r(a)),ie(e.$$.fragment),y(e.$$.fragment,1),ne(e,l.parentNode,l)):e=null}else s&&e.$set(i)},i(a){n||(e&&y(e.$$.fragment,a),n=!0)},o(a){e&&O(e.$$.fragment,a),n=!1},d(a){a&&b(l),e&&se(e,a)}}}function _t(t){let e,l;return e=new Bt({props:{data:t[3]}}),{c(){ie(e.$$.fragment)},m(n,s){ne(e,n,s),l=!0},p(n,s){const r={};s&3&&(r.data=n[3]),e.$set(r)},i(n){l||(y(e.$$.fragment,n),l=!0)},o(n){O(e.$$.fragment,n),l=!1},d(n){se(e,n)}}}function dt(t){let e,l;return e=new De({props:{rawData:t[4]}}),{c(){ie(e.$$.fragment)},m(n,s){ne(e,n,s),l=!0},p(n,s){const r={};s&3&&(r.rawData=n[4]),e.$set(r)},i(n){l||(y(e.$$.fragment,n),l=!0)},o(n){O(e.$$.fragment,n),l=!1},d(n){se(e,n)}}}function en(t){let e,l,n,s=t[3].text&&_t(t),r=t[3].child,a=[];for(let i=0;i<r.length;i+=1)a[i]=dt(ft(t,r,i));const o=i=>O(a[i],1,1,()=>{a[i]=null});return{c(){s&&s.c(),e=N();for(let i=0;i<a.length;i+=1)a[i].c();l=oe()},m(i,u){s&&s.m(i,u),w(i,e,u);for(let f=0;f<a.length;f+=1)a[f]&&a[f].m(i,u);w(i,l,u),n=!0},p(i,u){if(i[3].text?s?(s.p(i,u),u&3&&y(s,1)):(s=_t(i),s.c(),y(s,1),s.m(e.parentNode,e)):s&&(te(),O(s,1,1,()=>{s=null}),le()),u&3){r=i[3].child;let f;for(f=0;f<r.length;f+=1){const h=ft(i,r,f);a[f]?(a[f].p(h,u),y(a[f],1)):(a[f]=dt(h),a[f].c(),y(a[f],1),a[f].m(l.parentNode,l))}for(te(),f=r.length;f<a.length;f+=1)o(f);le()}},i(i){if(!n){y(s);for(let u=0;u<r.length;u+=1)y(a[u]);n=!0}},o(i){O(s),a=a.filter(Boolean);for(let u=0;u<a.length;u+=1)O(a[u]);n=!1},d(i){s&&s.d(i),i&&b(e),ue(a,i),i&&b(l)}}}function tn(t){let e,l,n=(t[0]||t[1])&&ct(Ie(t));return{c(){n&&n.c(),e=oe()},m(s,r){n&&n.m(s,r),w(s,e,r),l=!0},p(s,[r]){s[0]||s[1]?n?(n.p(Ie(s),r),r&3&&y(n,1)):(n=ct(Ie(s)),n.c(),y(n,1),n.m(e.parentNode,e)):n&&(te(),O(n,1,1,()=>{n=null}),le())},i(s){l||(y(n),l=!0)},o(s){O(n),l=!1},d(s){n&&n.d(s),s&&b(e)}}}function ln(t,e,l){const n={Text:Bt,Line:Zt,Space:tl,Box:sl,Vertical:il,Horizontal:fl,Button:dl,Input:hl,Switch:bl,Select:$l,Slider:ql,Check:Dl,Page:Kt,Progressbar:Tl,Expender:Vl,Radio:Al,Image:Rl,Webview:Kl,If:Jl,Repeat:Yl};let{rawData:s=void 0}=e,{formatData:r=void 0}=e;return t.$$set=a=>{"rawData"in a&&l(0,s=a.rawData),"formatData"in a&&l(1,r=a.formatData)},[s,r,n]}class De extends M{constructor(e){super(),A(this,e,ln,tn,P,{rawData:0,formatData:1})}}const{window:nn}=Me;function pt(t,e,l){const n=t.slice();return n[15]=e[l][0],n[16]=e[l][1],n[17]=e[l][2],n[19]=l,n}function Pe(t){var r,a,o,i,u;const e=t.slice(),l=(a=(r=e[0]["system.settings"].attr)==null?void 0:r.path)!=null?a:"settings";e[20]=l;const n=(i=(o=e[0]["system.settings"].attr)==null?void 0:o.icon)!=null?i:"\uE713";e[21]=n;const s=(u=e[0]["system.settings"].attr)==null?void 0:u.badge;return e[22]=s,e}function mt(t,e,l){const n=t.slice();return n[23]=e[l],n}function ht(t){let e,l,n,s,r;return{c(){e=m("button"),l=m("span"),l.textContent="\uE7EA",c(l,"class","icon svelte-1d8w78l"),c(e,"class","prevButton svelte-1d8w78l"),k(e,"width","40px"),k(e,"height","40px"),k(e,"margin","0"),k(e,"color","var(--TextFillColorPrimaryBrush)"),e.disabled=n=!t[3]},m(a,o){w(a,e,o),d(e,l),s||(r=E(e,"click",t[5]),s=!0)},p(a,o){o&8&&n!==(n=!a[3])&&(e.disabled=n)},d(a){a&&b(e),s=!1,r()}}}function gt(t){let e,l,n,s,r=t[0]["system.isOnTop"]&&vt();return{c(){e=m("button"),l=T("\uE840"),r&&r.c(),c(e,"class","svelte-1d8w78l")},m(a,o){w(a,e,o),d(e,l),r&&r.m(e,null),n||(s=E(e,"click",t[6]),n=!0)},p(a,o){a[0]["system.isOnTop"]?r||(r=vt(),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},d(a){a&&b(e),r&&r.d(),n=!1,s()}}}function vt(t){let e;return{c(){e=m("span"),e.textContent="\uE841",k(e,"position","absolute"),k(e,"left","8px")},m(l,n){w(l,e,n)},d(l){l&&b(e)}}}function bt(t){var r,a,o;let e,l=((o=W((a=(r=t[23][1].attr)==null?void 0:r.badge)!=null?a:""))!=null?o:"")+"",n,s;return{c(){var i,u;e=m("span"),n=T(l),c(e,"class",s="badge l"+W((u=(i=t[23][1].attr)==null?void 0:i.state)!=null?u:"")+" svelte-1d8w78l")},m(i,u){w(i,e,u),d(e,n)},p(i,u){var f,h,_,g,p;u&1&&l!==(l=((_=W((h=(f=i[23][1].attr)==null?void 0:f.badge)!=null?h:""))!=null?_:"")+"")&&V(n,l),u&1&&s!==(s="badge l"+W((p=(g=i[23][1].attr)==null?void 0:g.state)!=null?p:"")+" svelte-1d8w78l")&&c(e,"class",s)},d(i){i&&b(e)}}}function wt(t){var $,j,D,B,C,z;let e,l,n=((j=($=t[23][1].attr)==null?void 0:$.icon)!=null?j:"\uEA86")+"",s,r,a,o=((B=(D=t[23][1].attr)==null?void 0:D.name)!=null?B:t[23][0])+"",i,u,f=W((z=(C=t[23][1].attr)==null?void 0:C.state)!=null?z:""),h,_,g,p=f&&bt(t);function q(){return t[10](t[23])}return{c(){var I;e=m("button"),l=m("span"),s=T(n),r=N(),a=m("span"),i=T(o),u=N(),p&&p.c(),h=N(),c(l,"class","icon svelte-1d8w78l"),c(e,"class","svelte-1d8w78l"),F(e,"settingButton",((I=t[23][1].attr)==null?void 0:I.icon)=="\uE713"),F(e,"Select",t[2]==t[23][0])},m(I,G){w(I,e,G),d(e,l),d(l,s),d(e,r),d(e,a),d(a,i),d(e,u),p&&p.m(e,null),d(e,h),_||(g=E(e,"click",q),_=!0)},p(I,G){var je,qe,de,re,fe,ce,Y;t=I,G&1&&n!==(n=((qe=(je=t[23][1].attr)==null?void 0:je.icon)!=null?qe:"\uEA86")+"")&&V(s,n),G&1&&o!==(o=((re=(de=t[23][1].attr)==null?void 0:de.name)!=null?re:t[23][0])+"")&&V(i,o),G&1&&(f=W((ce=(fe=t[23][1].attr)==null?void 0:fe.state)!=null?ce:"")),f?p?p.p(t,G):(p=bt(t),p.c(),p.m(e,h)):p&&(p.d(1),p=null),G&1&&F(e,"settingButton",((Y=t[23][1].attr)==null?void 0:Y.icon)=="\uE713"),G&5&&F(e,"Select",t[2]==t[23][0])},d(I){I&&b(e),p&&p.d(),_=!1,g()}}}function kt(t){var p,q;let e,l,n=t[21]+"",s,r,a,o=((q=(p=t[0]["system.settings"].attr)==null?void 0:p.name)!=null?q:"Settings")+"",i,u,f,h,_=t[22]&&yt(t);function g(){return t[11](t[20])}return{c(){e=m("button"),l=m("span"),s=T(n),r=N(),a=m("span"),i=T(o),u=N(),_&&_.c(),c(l,"class","icon svelte-1d8w78l"),c(e,"class","svelte-1d8w78l"),F(e,"settingButton",t[21]=="\uE713"),F(e,"Select",t[2]==t[20])},m($,j){w($,e,j),d(e,l),d(l,s),d(e,r),d(e,a),d(a,i),d(e,u),_&&_.m(e,null),f||(h=E(e,"click",g),f=!0)},p($,j){var D,B;t=$,j&1&&n!==(n=t[21]+"")&&V(s,n),j&1&&o!==(o=((B=(D=t[0]["system.settings"].attr)==null?void 0:D.name)!=null?B:"Settings")+"")&&V(i,o),t[22]?_?_.p(t,j):(_=yt(t),_.c(),_.m(e,null)):_&&(_.d(1),_=null),j&1&&F(e,"settingButton",t[21]=="\uE713"),j&5&&F(e,"Select",t[2]==t[20])},d($){$&&b(e),_&&_.d(),f=!1,h()}}}function yt(t){var s;let e,l=((s=W(t[22]))!=null?s:"")+"",n;return{c(){e=m("span"),n=T(l),c(e,"class","badge svelte-1d8w78l")},m(r,a){w(r,e,a),d(e,n)},p(r,a){var o;a&1&&l!==(l=((o=W(r[22]))!=null?o:"")+"")&&V(n,l)},d(r){r&&b(e)}}}function sn(t){let e,l;return e=new De({props:{rawData:t[0]["system.pages"][t[2]]}}),{c(){ie(e.$$.fragment)},m(n,s){ne(e,n,s),l=!0},p(n,s){const r={};s&5&&(r.rawData=n[0]["system.pages"][n[2]]),e.$set(r)},i(n){l||(y(e.$$.fragment,n),l=!0)},o(n){O(e.$$.fragment,n),l=!1},d(n){se(e,n)}}}function an(t){let e,l;return e=new De({props:{rawData:t[0]["system.settings"]}}),{c(){ie(e.$$.fragment)},m(n,s){ne(e,n,s),l=!0},p(n,s){const r={};s&1&&(r.rawData=n[0]["system.settings"]),e.$set(r)},i(n){l||(y(e.$$.fragment,n),l=!0)},o(n){O(e.$$.fragment,n),l=!1},d(n){se(e,n)}}}function $t(t){let e,l,n,s;const r=[an,sn],a=[];function o(i,u){var f,h,_;return((h=(f=i[0]["system.settings"])==null?void 0:f.attr)==null?void 0:h.path)==i[2]?0:(_=i[0]["system.pages"])!=null&&_[i[2]]?1:-1}return~(e=o(t))&&(l=a[e]=r[e](t)),{c(){l&&l.c(),n=oe()},m(i,u){~e&&a[e].m(i,u),w(i,n,u),s=!0},p(i,u){let f=e;e=o(i),e===f?~e&&a[e].p(i,u):(l&&(te(),O(a[f],1,1,()=>{a[f]=null}),le()),~e?(l=a[e],l?l.p(i,u):(l=a[e]=r[e](i),l.c()),y(l,1),l.m(n.parentNode,n)):l=null)},i(i){s||(y(l),s=!0)},o(i){O(l),s=!1},d(i){~e&&a[e].d(i),i&&b(n)}}}function Nt(t){let e,l,n=["\uF13F","\uF13E","\uF13C","\uF13D"][t[15]]+"",s,r,a,o,i=t[16]+"",u,f,h,_=t[17]+"",g,p,q,$,j,D,B;function C(){return t[12](t[19])}return{c(){e=m("div"),l=m("span"),s=T(n),r=N(),a=m("span"),o=m("span"),u=T(i),f=N(),h=m("span"),g=T(_),p=N(),q=m("button"),q.textContent="\uE947",$=N(),c(l,"class","icon svelte-1d8w78l"),c(o,"class","title"),c(h,"class","description svelte-1d8w78l"),c(a,"class","content svelte-1d8w78l"),c(q,"class","close svelte-1d8w78l"),c(e,"class",j="InfoBar l"+t[15]+" svelte-1d8w78l")},m(z,I){w(z,e,I),d(e,l),d(l,s),d(e,r),d(e,a),d(a,o),d(o,u),d(a,f),d(a,h),d(h,g),d(e,p),d(e,q),d(e,$),D||(B=E(q,"click",C),D=!0)},p(z,I){t=z,I&1&&n!==(n=["\uF13F","\uF13E","\uF13C","\uF13D"][t[15]]+"")&&V(s,n),I&1&&i!==(i=t[16]+"")&&V(u,i),I&1&&_!==(_=t[17]+"")&&V(g,_),I&1&&j!==(j="InfoBar l"+t[15]+" svelte-1d8w78l")&&c(e,"class",j)},d(z){z&&b(e),D=!1,B()}}}function rn(t){var We;let e,l,n,s,r,a,o,i,u,f,h=t[0]["system.title"]+"",_,g,p,q,$,j,D,B,C,z,I,G,je,qe=t[2],de,re,fe,ce,Y,Le,Re,J=t[0]["system.goBack"]&&ht(t),Q=t[0]["system.pinTop"]&&gt(t),pe=Object.entries((We=t[0]["system.pages"])!=null?We:{}),H=[];for(let v=0;v<pe.length;v+=1)H[v]=wt(mt(t,pe,v));let X=t[0]["system.settings"]&&kt(Pe(t)),ee=$t(t),me=t[0]["system.nofication"],K=[];for(let v=0;v<me.length;v+=1)K[v]=Nt(pt(t,me,v));return{c(){e=m("main"),l=m("header"),n=m("div"),s=N(),J&&J.c(),r=N(),a=m("div"),o=m("img"),u=N(),f=m("p"),_=T(h),g=N(),Q&&Q.c(),p=N(),q=m("button"),q.textContent="\uE738",$=N(),j=m("button"),j.textContent="\uE711",D=N(),B=m("nav"),C=m("button"),C.innerHTML='<span class="icon svelte-1d8w78l">\uE700</span>',z=N(),I=m("section");for(let v=0;v<H.length;v+=1)H[v].c();G=N(),X&&X.c(),je=N(),ee.c(),de=N(),re=m("div");for(let v=0;v<K.length;v+=1)K[v].c();c(n,"class","pywebview-drag-region svelte-1d8w78l"),we(o.src,i=t[0]["system.icon"])||c(o,"src",i),c(o,"alt",""),c(o,"class","svelte-1d8w78l"),c(a,"class","title pywebview-drag-region svelte-1d8w78l"),c(q,"class","svelte-1d8w78l"),c(j,"class","svelte-1d8w78l"),c(l,"class","svelte-1d8w78l"),c(C,"class","menuButton svelte-1d8w78l"),k(C,"width","40px"),c(I,"class","svelte-1d8w78l"),k(B,"grid-template-rows","40px 1fr "+(t[0]["system.settings"]?"40px":"")),c(B,"class","svelte-1d8w78l"),c(re,"class","nofication svelte-1d8w78l"),k(re,"max-width","calc(100% - "+(t[1]?250:70)+"px)"),c(e,"class",fe=Ke(t[0]["system.theme"])+" svelte-1d8w78l"),c(e,"style",ce="grid-template-columns: "+(t[1]?230:50)+"px 1fr; "+["Light3","Light2","Light1","Dark1","Dark2","Dark3"].map(t[13]).join(""))},m(v,R){w(v,e,R),d(e,l),d(l,n),d(l,s),J&&J.m(l,null),d(l,r),d(l,a),d(a,o),d(a,u),d(a,f),d(f,_),d(l,g),Q&&Q.m(l,null),d(l,p),d(l,q),d(l,$),d(l,j),d(e,D),d(e,B),d(B,C),d(B,z),d(B,I);for(let Z=0;Z<H.length;Z+=1)H[Z]&&H[Z].m(I,null);d(B,G),X&&X.m(B,null),d(e,je),ee.m(e,null),d(e,de),d(e,re);for(let Z=0;Z<K.length;Z+=1)K[Z]&&K[Z].m(re,null);Y=!0,Le||(Re=[E(nn,"hashchange",t[4]),E(q,"click",t[7]),E(j,"click",t[8]),E(C,"click",t[9])],Le=!0)},p(v,[R]){var Z;if(v[0]["system.goBack"]?J?J.p(v,R):(J=ht(v),J.c(),J.m(l,r)):J&&(J.d(1),J=null),(!Y||R&1&&!we(o.src,i=v[0]["system.icon"]))&&c(o,"src",i),(!Y||R&1)&&h!==(h=v[0]["system.title"]+"")&&V(_,h),v[0]["system.pinTop"]?Q?Q.p(v,R):(Q=gt(v),Q.c(),Q.m(l,p)):Q&&(Q.d(1),Q=null),R&5){pe=Object.entries((Z=v[0]["system.pages"])!=null?Z:{});let L;for(L=0;L<pe.length;L+=1){const Oe=mt(v,pe,L);H[L]?H[L].p(Oe,R):(H[L]=wt(Oe),H[L].c(),H[L].m(I,null))}for(;L<H.length;L+=1)H[L].d(1);H.length=pe.length}if(v[0]["system.settings"]?X?X.p(Pe(v),R):(X=kt(Pe(v)),X.c(),X.m(B,null)):X&&(X.d(1),X=null),(!Y||R&1)&&k(B,"grid-template-rows","40px 1fr "+(v[0]["system.settings"]?"40px":"")),R&4&&P(qe,qe=v[2])?(te(),O(ee,1,1,S),le(),ee=$t(v),ee.c(),y(ee,1),ee.m(e,de)):ee.p(v,R),R&1){me=v[0]["system.nofication"];let L;for(L=0;L<me.length;L+=1){const Oe=pt(v,me,L);K[L]?K[L].p(Oe,R):(K[L]=Nt(Oe),K[L].c(),K[L].m(re,null))}for(;L<K.length;L+=1)K[L].d(1);K.length=me.length}(!Y||R&2)&&k(re,"max-width","calc(100% - "+(v[1]?250:70)+"px)"),(!Y||R&1&&fe!==(fe=Ke(v[0]["system.theme"])+" svelte-1d8w78l"))&&c(e,"class",fe),(!Y||R&3&&ce!==(ce="grid-template-columns: "+(v[1]?230:50)+"px 1fr; "+["Light3","Light2","Light1","Dark1","Dark2","Dark3"].map(v[13]).join("")))&&c(e,"style",ce)},i(v){Y||(y(ee),Y=!0)},o(v){O(ee),Y=!1},d(v){v&&b(e),J&&J.d(),Q&&Q.d(),ue(H,v),X&&X.d(),ee.d(v),ue(K,v),Le=!1,ae(Re)}}}const U=Rt({"system.goBack":!0,"system.pinTop":!0,"system.title":"PyWebWinUI3","system.icon":"./favicon.ico","system.theme":"dark","system.color":["#fff","#fff","#fff","#888","#000","#000","#000"],"system.isOnTop":!1,"system.pages":null,"system.settings":null,"system.nofication":[]}),W=t=>{const e=Et(U);return t.replace(new RegExp("(?<!\\\\){(.*?)}","g"),(l,n)=>{var s;return(s=e[n])!=null?s:l}).replace(/\\({.*?})/g,"$1")};function on(t,e,l){let n,s=S;x(t,U,D=>l(0,n=D)),t.$$.on_destroy.push(()=>s());let r=!0;window.setValue=(D,B,C=!0)=>{U.update(z=>({...z,[D]:B})),C&&window.pywebview.api.setValue(D,B,!1)};let a=location.hash,o=0;history.replaceState({i:0},"");const i=()=>{location.hash!=`#${a}`&&(l(2,a=location.hash.replace("#","")),history.state==null&&history.replaceState({i:o+1},""),l(3,o=history.state.i))};i(),(async()=>{for(;!window.hasOwnProperty("pywebview");)await new Promise(B=>setTimeout(B,100));let D=await window.pywebview.api.init();U.update(B=>({...B,...D}))})();const u=()=>history.back(),f=()=>window.pywebview.api.ontop(!n["system.isOnTop"]),h=()=>window.pywebview.api.minimize(),_=()=>window.pywebview.api.destroy(),g=()=>l(1,r=!r),p=D=>location.hash=D[0],q=D=>location.hash=D,$=D=>window.setValue("system.nofication",n["system.nofication"].filter((B,C)=>C!=D)),j=(D,B)=>`--SystemAccentColor${D}:${n["system.color"][B]};`;return t.$$.update=()=>{t.$$.dirty&1&&[0,1,n["system.theme"]][Number(n["settings.theme"])]},[n,r,a,o,i,u,f,h,_,g,p,q,$,j]}class un extends M{constructor(e){super(),A(this,e,on,rn,P,{})}}new un({target:document.querySelector("body")});
@@ -1,70 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <style>
6
- @font-face {
7
- font-family: 'Segoe Fluent Icons';
8
- src: url(./SegoeFluentIcons.ttf);
9
- ascent-override: 80%;
10
- }
11
- @font-face {
12
- font-family: 'Pretendard Variable';
13
- src: url(./PretendardVariable.ttf);
14
- }
15
- *,::before,::after{
16
- font-family: 'Segoe Fluent Icons', "Pretendard Variable";
17
- font-variation-settings: 'wght' 550;
18
- background-color: transparent;
19
- position: relative;
20
- margin: 0;
21
- padding: 0;
22
- word-wrap: break-word;
23
- overflow-wrap: break-word;
24
- box-sizing: border-box;
25
- line-height: 1.4;
26
- color: inherit;
27
- transition: all 0.1s ease-out;
28
- }
29
- ::-webkit-scrollbar{
30
- width: 4px;
31
- }
32
- ::-webkit-scrollbar-thumb{
33
- background-clip: padding-box;
34
- border-radius: 7px;
35
- border: 1px solid transparent;
36
- background-color: var(--ScrollbarColor);
37
- }
38
- :disabled {
39
- cursor: not-allowed;
40
- pointer-events: none;
41
- opacity: 0.5;
42
- }
43
- button{
44
- cursor: pointer;
45
- outline: none;
46
- border: none;
47
-
48
- }
49
- input,textarea{
50
- outline: none;
51
- border: none;
52
-
53
- }
54
- :focus-visible::after {
55
- z-index: 200;
56
- content: "";
57
- position: absolute;
58
- inset: 0px;
59
- border: 2px solid var(--TextFillColorPrimaryBrush);
60
- border-radius: 4px;
61
- pointer-events: none;
62
- }
63
- </style>
64
- <script type="module" crossorigin src="/assets/index.7925e0dd.js"></script>
65
- <link rel="stylesheet" href="/assets/index.5f301150.css">
66
- </head>
67
- <body>
68
-
69
- </body>
70
- </html>
@@ -1,9 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: PyWebWinUI3
3
- Version: 1.0.0b1
4
- Summary: Create modern WinUI3-style desktop UIs in Python effortlessly using pywebview.
5
- Home-page: https://github.com/Haruna5718/PyWebWinUI3
6
- Author: Haruna5718
7
- Author-email: devharuna5718@gmail.com
8
- Keywords: PyWebWinUI3,Haruna5718,pywebview,winui3,pypi
9
- Requires-Python: >=3.8
@@ -1,16 +0,0 @@
1
- MANIFEST.in
2
- setup.py
3
- PyWebWinUI3/__init__.py
4
- PyWebWinUI3/core.py
5
- PyWebWinUI3.egg-info/PKG-INFO
6
- PyWebWinUI3.egg-info/SOURCES.txt
7
- PyWebWinUI3.egg-info/dependency_links.txt
8
- PyWebWinUI3.egg-info/not-zip-safe
9
- PyWebWinUI3.egg-info/requires.txt
10
- PyWebWinUI3.egg-info/top_level.txt
11
- PyWebWinUI3/web/PretendardVariable.ttf
12
- PyWebWinUI3/web/SegoeFluentIcons.ttf
13
- PyWebWinUI3/web/favicon.ico
14
- PyWebWinUI3/web/index.html
15
- PyWebWinUI3/web/assets/index.5f301150.css
16
- PyWebWinUI3/web/assets/index.7925e0dd.js
@@ -1 +0,0 @@
1
- PyWebWinUI3
File without changes