@jackuait/blok 0.3.1-beta.5 → 0.3.1-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/codemod/README.md +14 -4
- package/codemod/migrate-editorjs-to-blok.js +107 -25
- package/codemod/package.json +2 -3
- package/codemod/test.js +70 -4
- package/dist/{blok-BQ9WBU_S.mjs → blok-D7bAemvN.mjs} +33 -4
- package/dist/blok.mjs +1 -1
- package/dist/blok.umd.js +2 -2
- package/dist/{index-Br49prZI.mjs → index-Bnrct7m7.mjs} +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -44,10 +44,13 @@ Run the codemod to automatically update your codebase:
|
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
46
|
# Preview changes (recommended first)
|
|
47
|
-
npx blok-
|
|
47
|
+
npx -p @jackuait/blok migrate-from-editorjs ./src --dry-run
|
|
48
48
|
|
|
49
49
|
# Apply changes
|
|
50
|
-
npx blok-
|
|
50
|
+
npx -p @jackuait/blok migrate-from-editorjs ./src
|
|
51
|
+
|
|
52
|
+
# Process the entire project
|
|
53
|
+
npx -p @jackuait/blok migrate-from-editorjs .
|
|
51
54
|
```
|
|
52
55
|
|
|
53
56
|
The codemod handles:
|
package/codemod/README.md
CHANGED
|
@@ -6,18 +6,28 @@ Automatically migrate your codebase from EditorJS to Blok.
|
|
|
6
6
|
|
|
7
7
|
### Using npx (recommended)
|
|
8
8
|
|
|
9
|
+
The codemod is bundled with the `@jackuait/blok` package.
|
|
10
|
+
|
|
9
11
|
```bash
|
|
10
12
|
# Dry run (preview changes without modifying files)
|
|
11
|
-
npx blok-
|
|
13
|
+
npx -p @jackuait/blok migrate-from-editorjs ./src --dry-run
|
|
12
14
|
|
|
13
15
|
# Apply changes
|
|
14
|
-
npx blok-
|
|
16
|
+
npx -p @jackuait/blok migrate-from-editorjs ./src
|
|
15
17
|
|
|
16
18
|
# Process entire project
|
|
17
|
-
npx blok-
|
|
19
|
+
npx -p @jackuait/blok migrate-from-editorjs .
|
|
18
20
|
|
|
19
21
|
# Verbose output
|
|
20
|
-
npx blok-
|
|
22
|
+
npx -p @jackuait/blok migrate-from-editorjs ./src --verbose
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### If you have @jackuait/blok installed locally
|
|
26
|
+
|
|
27
|
+
If you've already installed `@jackuait/blok` in your project, you can run the codemod directly:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npx migrate-from-editorjs ./src --dry-run
|
|
21
31
|
```
|
|
22
32
|
|
|
23
33
|
## What It Does
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* It transforms imports, class names, selectors, data attributes, and text references.
|
|
8
8
|
*
|
|
9
9
|
* Usage:
|
|
10
|
-
* npx blok-
|
|
10
|
+
* npx -p @jackuait/blok migrate-from-editorjs [path] [options]
|
|
11
11
|
*
|
|
12
12
|
* Options:
|
|
13
13
|
* --dry-run Show changes without modifying files
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
* --help Show help
|
|
16
16
|
*
|
|
17
17
|
* Examples:
|
|
18
|
-
* npx blok-
|
|
19
|
-
* npx blok-
|
|
20
|
-
* npx blok-
|
|
18
|
+
* npx -p @jackuait/blok migrate-from-editorjs ./src
|
|
19
|
+
* npx -p @jackuait/blok migrate-from-editorjs ./src --dry-run
|
|
20
|
+
* npx -p @jackuait/blok migrate-from-editorjs .
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
const fs = require('fs');
|
|
@@ -71,23 +71,99 @@ const CLASS_NAME_TRANSFORMS = [
|
|
|
71
71
|
];
|
|
72
72
|
|
|
73
73
|
// CSS class transformations
|
|
74
|
+
// Handles both with dot (.ce-block) and without dot (ce-block) patterns
|
|
74
75
|
const CSS_CLASS_TRANSFORMS = [
|
|
75
|
-
// Editor wrapper classes
|
|
76
|
-
{ pattern: /\.codex-
|
|
77
|
-
{ pattern: /\.codex-editor--narrow/g, replacement: '
|
|
78
|
-
{ pattern: /\.codex-editor--rtl/g, replacement: '
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
{ pattern:
|
|
82
|
-
{ pattern:
|
|
83
|
-
{ pattern:
|
|
84
|
-
{ pattern:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
{ pattern: /\.ce-
|
|
88
|
-
{ pattern: /\.ce-
|
|
89
|
-
{ pattern: /\.ce-
|
|
90
|
-
{ pattern: /\.ce-
|
|
76
|
+
// Editor wrapper classes (codex-editor)
|
|
77
|
+
{ pattern: /\.codex-editor__redactor(?![\w-])/g, replacement: '[data-blok-redactor]' },
|
|
78
|
+
{ pattern: /\.codex-editor--narrow(?![\w-])/g, replacement: '[data-blok-narrow="true"]' },
|
|
79
|
+
{ pattern: /\.codex-editor--rtl(?![\w-])/g, replacement: '[data-blok-rtl="true"]' },
|
|
80
|
+
{ pattern: /\.codex-editor(?![\w-])/g, replacement: '[data-blok-editor]' },
|
|
81
|
+
// Without dot prefix (for string literals, classList operations)
|
|
82
|
+
{ pattern: /(['"`])codex-editor__redactor(['"`])/g, replacement: '$1data-blok-redactor$2' },
|
|
83
|
+
{ pattern: /(['"`])codex-editor--narrow(['"`])/g, replacement: '$1data-blok-narrow$2' },
|
|
84
|
+
{ pattern: /(['"`])codex-editor--rtl(['"`])/g, replacement: '$1data-blok-rtl$2' },
|
|
85
|
+
{ pattern: /(['"`])codex-editor(['"`])/g, replacement: '$1data-blok-editor$2' },
|
|
86
|
+
|
|
87
|
+
// Block classes (ce-block)
|
|
88
|
+
{ pattern: /\.ce-block--selected(?![\w-])/g, replacement: '[data-blok-selected="true"]' },
|
|
89
|
+
{ pattern: /\.ce-block--stretched(?![\w-])/g, replacement: '[data-blok-stretched="true"]' },
|
|
90
|
+
{ pattern: /\.ce-block--focused(?![\w-])/g, replacement: '[data-blok-focused="true"]' },
|
|
91
|
+
{ pattern: /\.ce-block__content(?![\w-])/g, replacement: '[data-blok-element-content]' },
|
|
92
|
+
{ pattern: /\.ce-block(?![\w-])/g, replacement: '[data-blok-element]' },
|
|
93
|
+
// Without dot prefix
|
|
94
|
+
{ pattern: /(['"`])ce-block--selected(['"`])/g, replacement: '$1data-blok-selected$2' },
|
|
95
|
+
{ pattern: /(['"`])ce-block--stretched(['"`])/g, replacement: '$1data-blok-stretched$2' },
|
|
96
|
+
{ pattern: /(['"`])ce-block--focused(['"`])/g, replacement: '$1data-blok-focused$2' },
|
|
97
|
+
{ pattern: /(['"`])ce-block__content(['"`])/g, replacement: '$1data-blok-element-content$2' },
|
|
98
|
+
{ pattern: /(['"`])ce-block(['"`])/g, replacement: '$1data-blok-element$2' },
|
|
99
|
+
|
|
100
|
+
// Toolbar classes (ce-toolbar)
|
|
101
|
+
{ pattern: /\.ce-toolbar__plus(?![\w-])/g, replacement: '[data-blok-testid="plus-button"]' },
|
|
102
|
+
{ pattern: /\.ce-toolbar__settings-btn(?![\w-])/g, replacement: '[data-blok-settings-toggler]' },
|
|
103
|
+
{ pattern: /\.ce-toolbar__actions(?![\w-])/g, replacement: '[data-blok-testid="toolbar-actions"]' },
|
|
104
|
+
{ pattern: /\.ce-toolbar(?![\w-])/g, replacement: '[data-blok-toolbar]' },
|
|
105
|
+
// Without dot prefix
|
|
106
|
+
{ pattern: /(['"`])ce-toolbar__plus(['"`])/g, replacement: '$1data-blok-testid="plus-button"$2' },
|
|
107
|
+
{ pattern: /(['"`])ce-toolbar__settings-btn(['"`])/g, replacement: '$1data-blok-settings-toggler$2' },
|
|
108
|
+
{ pattern: /(['"`])ce-toolbar__actions(['"`])/g, replacement: '$1data-blok-testid="toolbar-actions"$2' },
|
|
109
|
+
{ pattern: /(['"`])ce-toolbar(['"`])/g, replacement: '$1data-blok-toolbar$2' },
|
|
110
|
+
|
|
111
|
+
// Inline toolbar classes (ce-inline-toolbar, ce-inline-tool)
|
|
112
|
+
{ pattern: /\.ce-inline-tool--link(?![\w-])/g, replacement: '[data-blok-testid="inline-tool-link"]' },
|
|
113
|
+
{ pattern: /\.ce-inline-tool--bold(?![\w-])/g, replacement: '[data-blok-testid="inline-tool-bold"]' },
|
|
114
|
+
{ pattern: /\.ce-inline-tool--italic(?![\w-])/g, replacement: '[data-blok-testid="inline-tool-italic"]' },
|
|
115
|
+
{ pattern: /\.ce-inline-tool(?![\w-])/g, replacement: '[data-blok-testid="inline-tool"]' },
|
|
116
|
+
{ pattern: /\.ce-inline-toolbar(?![\w-])/g, replacement: '[data-blok-testid="inline-toolbar"]' },
|
|
117
|
+
// Without dot prefix
|
|
118
|
+
{ pattern: /(['"`])ce-inline-tool--link(['"`])/g, replacement: '$1data-blok-testid="inline-tool-link"$2' },
|
|
119
|
+
{ pattern: /(['"`])ce-inline-tool--bold(['"`])/g, replacement: '$1data-blok-testid="inline-tool-bold"$2' },
|
|
120
|
+
{ pattern: /(['"`])ce-inline-tool--italic(['"`])/g, replacement: '$1data-blok-testid="inline-tool-italic"$2' },
|
|
121
|
+
{ pattern: /(['"`])ce-inline-tool(['"`])/g, replacement: '$1data-blok-testid="inline-tool"$2' },
|
|
122
|
+
{ pattern: /(['"`])ce-inline-toolbar(['"`])/g, replacement: '$1data-blok-testid="inline-toolbar"$2' },
|
|
123
|
+
|
|
124
|
+
// Popover classes (ce-popover)
|
|
125
|
+
{ pattern: /\.ce-popover--opened(?![\w-])/g, replacement: '[data-blok-popover][data-blok-opened="true"]' },
|
|
126
|
+
{ pattern: /\.ce-popover__container(?![\w-])/g, replacement: '[data-blok-popover-container]' },
|
|
127
|
+
{ pattern: /\.ce-popover-item--focused(?![\w-])/g, replacement: '[data-blok-focused="true"]' },
|
|
128
|
+
{ pattern: /\.ce-popover-item(?![\w-])/g, replacement: '[data-blok-testid="popover-item"]' },
|
|
129
|
+
{ pattern: /\.ce-popover(?![\w-])/g, replacement: '[data-blok-popover]' },
|
|
130
|
+
// Without dot prefix
|
|
131
|
+
{ pattern: /(['"`])ce-popover--opened(['"`])/g, replacement: '$1data-blok-popover$2' },
|
|
132
|
+
{ pattern: /(['"`])ce-popover__container(['"`])/g, replacement: '$1data-blok-popover-container$2' },
|
|
133
|
+
{ pattern: /(['"`])ce-popover-item--focused(['"`])/g, replacement: '$1data-blok-focused$2' },
|
|
134
|
+
{ pattern: /(['"`])ce-popover-item(['"`])/g, replacement: '$1data-blok-testid="popover-item"$2' },
|
|
135
|
+
{ pattern: /(['"`])ce-popover(['"`])/g, replacement: '$1data-blok-popover$2' },
|
|
136
|
+
|
|
137
|
+
// Tool-specific classes (ce-paragraph, ce-header)
|
|
138
|
+
{ pattern: /\.ce-paragraph(?![\w-])/g, replacement: '[data-blok-tool="paragraph"]' },
|
|
139
|
+
{ pattern: /\.ce-header(?![\w-])/g, replacement: '[data-blok-tool="header"]' },
|
|
140
|
+
// Without dot prefix
|
|
141
|
+
{ pattern: /(['"`])ce-paragraph(['"`])/g, replacement: '$1data-blok-tool="paragraph"$2' },
|
|
142
|
+
{ pattern: /(['"`])ce-header(['"`])/g, replacement: '$1data-blok-tool="header"$2' },
|
|
143
|
+
|
|
144
|
+
// Conversion toolbar
|
|
145
|
+
{ pattern: /\.ce-conversion-toolbar(?![\w-])/g, replacement: '[data-blok-testid="conversion-toolbar"]' },
|
|
146
|
+
{ pattern: /\.ce-conversion-tool(?![\w-])/g, replacement: '[data-blok-testid="conversion-tool"]' },
|
|
147
|
+
{ pattern: /(['"`])ce-conversion-toolbar(['"`])/g, replacement: '$1data-blok-testid="conversion-toolbar"$2' },
|
|
148
|
+
{ pattern: /(['"`])ce-conversion-tool(['"`])/g, replacement: '$1data-blok-testid="conversion-tool"$2' },
|
|
149
|
+
|
|
150
|
+
// Settings and tune classes
|
|
151
|
+
{ pattern: /\.ce-settings(?![\w-])/g, replacement: '[data-blok-testid="block-settings"]' },
|
|
152
|
+
{ pattern: /\.ce-tune(?![\w-])/g, replacement: '[data-blok-testid="block-tune"]' },
|
|
153
|
+
{ pattern: /(['"`])ce-settings(['"`])/g, replacement: '$1data-blok-testid="block-settings"$2' },
|
|
154
|
+
{ pattern: /(['"`])ce-tune(['"`])/g, replacement: '$1data-blok-testid="block-tune"$2' },
|
|
155
|
+
|
|
156
|
+
// Stub block
|
|
157
|
+
{ pattern: /\.ce-stub(?![\w-])/g, replacement: '[data-blok-stub]' },
|
|
158
|
+
{ pattern: /(['"`])ce-stub(['"`])/g, replacement: '$1data-blok-stub$2' },
|
|
159
|
+
|
|
160
|
+
// Drag and drop
|
|
161
|
+
{ pattern: /\.ce-drag-handle(?![\w-])/g, replacement: '[data-blok-drag-handle]' },
|
|
162
|
+
{ pattern: /(['"`])ce-drag-handle(['"`])/g, replacement: '$1data-blok-drag-handle$2' },
|
|
163
|
+
|
|
164
|
+
// Additional state classes
|
|
165
|
+
{ pattern: /\.ce-ragged-right(?![\w-])/g, replacement: '[data-blok-ragged-right="true"]' },
|
|
166
|
+
{ pattern: /(['"`])ce-ragged-right(['"`])/g, replacement: '$1data-blok-ragged-right$2' },
|
|
91
167
|
];
|
|
92
168
|
|
|
93
169
|
// Data attribute transformations
|
|
@@ -453,7 +529,7 @@ function printHelp() {
|
|
|
453
529
|
EditorJS to Blok Codemod
|
|
454
530
|
|
|
455
531
|
Usage:
|
|
456
|
-
npx blok-
|
|
532
|
+
npx -p @jackuait/blok migrate-from-editorjs [path] [options]
|
|
457
533
|
|
|
458
534
|
Arguments:
|
|
459
535
|
path Directory or file to transform (default: current directory)
|
|
@@ -464,15 +540,21 @@ Options:
|
|
|
464
540
|
--help Show this help message
|
|
465
541
|
|
|
466
542
|
Examples:
|
|
467
|
-
npx blok-
|
|
468
|
-
npx blok-
|
|
469
|
-
npx blok-
|
|
543
|
+
npx -p @jackuait/blok migrate-from-editorjs ./src
|
|
544
|
+
npx -p @jackuait/blok migrate-from-editorjs ./src --dry-run
|
|
545
|
+
npx -p @jackuait/blok migrate-from-editorjs . --verbose
|
|
470
546
|
|
|
471
547
|
What this codemod does:
|
|
472
548
|
• Transforms EditorJS imports to Blok imports
|
|
473
549
|
• Updates type names (EditorConfig → BlokConfig)
|
|
474
550
|
• Replaces 'new EditorJS()' with 'new Blok()'
|
|
475
|
-
• Converts CSS selectors
|
|
551
|
+
• Converts CSS class selectors to data attributes:
|
|
552
|
+
- .codex-editor* → [data-blok-editor], [data-blok-redactor], etc.
|
|
553
|
+
- .ce-block* → [data-blok-element], [data-blok-selected], etc.
|
|
554
|
+
- .ce-toolbar* → [data-blok-toolbar], [data-blok-settings-toggler], etc.
|
|
555
|
+
- .ce-inline-toolbar, .ce-inline-tool* → [data-blok-testid="inline-*"]
|
|
556
|
+
- .ce-popover* → [data-blok-popover], [data-blok-popover-container], etc.
|
|
557
|
+
- .ce-paragraph, .ce-header → [data-blok-tool="paragraph|header"]
|
|
476
558
|
• Updates data attributes (data-id → data-blok-id)
|
|
477
559
|
• Changes default holder from 'editorjs' to 'blok'
|
|
478
560
|
• Updates package.json dependencies
|
package/codemod/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@jackuait/
|
|
2
|
+
"name": "@jackuait/migrate-from-editorjs",
|
|
3
3
|
"version": "1.0.0",
|
|
4
4
|
"description": "Codemod to migrate from EditorJS to Blok",
|
|
5
5
|
"main": "migrate-editorjs-to-blok.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"
|
|
8
|
-
"migrate-editorjs-to-blok": "./migrate-editorjs-to-blok.js"
|
|
7
|
+
"migrate-from-editorjs": "./migrate-editorjs-to-blok.js"
|
|
9
8
|
},
|
|
10
9
|
"keywords": [
|
|
11
10
|
"blok",
|
package/codemod/test.js
CHANGED
|
@@ -115,19 +115,25 @@ console.log('\n🎨 CSS Class Transformations\n');
|
|
|
115
115
|
test('transforms .codex-editor class', () => {
|
|
116
116
|
const input = `.codex-editor { color: red; }`;
|
|
117
117
|
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
118
|
-
assertEqual(result,
|
|
118
|
+
assertEqual(result, `[data-blok-editor] { color: red; }`);
|
|
119
119
|
});
|
|
120
120
|
|
|
121
121
|
test('transforms .codex-editor--narrow modifier', () => {
|
|
122
122
|
const input = `.codex-editor--narrow { width: 100%; }`;
|
|
123
123
|
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
124
|
-
assertEqual(result,
|
|
124
|
+
assertEqual(result, `[data-blok-narrow="true"] { width: 100%; }`);
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
test('transforms .codex-editor__redactor class', () => {
|
|
128
|
+
const input = `.codex-editor__redactor { padding: 20px; }`;
|
|
129
|
+
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
130
|
+
assertEqual(result, `[data-blok-redactor] { padding: 20px; }`);
|
|
125
131
|
});
|
|
126
132
|
|
|
127
133
|
test('transforms .ce-block class', () => {
|
|
128
134
|
const input = `.ce-block { margin: 10px; }`;
|
|
129
135
|
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
130
|
-
assertEqual(result, `[data-blok-
|
|
136
|
+
assertEqual(result, `[data-blok-element] { margin: 10px; }`);
|
|
131
137
|
});
|
|
132
138
|
|
|
133
139
|
test('transforms .ce-block--selected class', () => {
|
|
@@ -139,7 +145,7 @@ test('transforms .ce-block--selected class', () => {
|
|
|
139
145
|
test('transforms .ce-toolbar class', () => {
|
|
140
146
|
const input = `document.querySelector('.ce-toolbar')`;
|
|
141
147
|
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
142
|
-
assertEqual(result, `document.querySelector('[data-blok-
|
|
148
|
+
assertEqual(result, `document.querySelector('[data-blok-toolbar]')`);
|
|
143
149
|
});
|
|
144
150
|
|
|
145
151
|
test('transforms .ce-inline-toolbar class', () => {
|
|
@@ -148,6 +154,66 @@ test('transforms .ce-inline-toolbar class', () => {
|
|
|
148
154
|
assertEqual(result, `[data-blok-testid="inline-toolbar"] { display: flex; }`);
|
|
149
155
|
});
|
|
150
156
|
|
|
157
|
+
test('transforms .ce-paragraph class', () => {
|
|
158
|
+
const input = `.ce-paragraph { line-height: 1.6; }`;
|
|
159
|
+
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
160
|
+
assertEqual(result, `[data-blok-tool="paragraph"] { line-height: 1.6; }`);
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
test('transforms .ce-header class', () => {
|
|
164
|
+
const input = `.ce-header { font-weight: bold; }`;
|
|
165
|
+
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
166
|
+
assertEqual(result, `[data-blok-tool="header"] { font-weight: bold; }`);
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
test('transforms .ce-inline-tool--link class', () => {
|
|
170
|
+
const input = `.ce-inline-tool--link { color: blue; }`;
|
|
171
|
+
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
172
|
+
assertEqual(result, `[data-blok-testid="inline-tool-link"] { color: blue; }`);
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
test('transforms .ce-inline-tool--bold class', () => {
|
|
176
|
+
const input = `.ce-inline-tool--bold { font-weight: bold; }`;
|
|
177
|
+
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
178
|
+
assertEqual(result, `[data-blok-testid="inline-tool-bold"] { font-weight: bold; }`);
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
test('transforms .ce-inline-tool--italic class', () => {
|
|
182
|
+
const input = `.ce-inline-tool--italic { font-style: italic; }`;
|
|
183
|
+
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
184
|
+
assertEqual(result, `[data-blok-testid="inline-tool-italic"] { font-style: italic; }`);
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
test('transforms .ce-popover class', () => {
|
|
188
|
+
const input = `.ce-popover { position: absolute; }`;
|
|
189
|
+
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
190
|
+
assertEqual(result, `[data-blok-popover] { position: absolute; }`);
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
test('transforms .ce-popover--opened class', () => {
|
|
194
|
+
const input = `.ce-popover--opened { display: block; }`;
|
|
195
|
+
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
196
|
+
assertEqual(result, `[data-blok-popover][data-blok-opened="true"] { display: block; }`);
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
test('transforms .ce-popover__container class', () => {
|
|
200
|
+
const input = `.ce-popover__container { overflow: hidden; }`;
|
|
201
|
+
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
202
|
+
assertEqual(result, `[data-blok-popover-container] { overflow: hidden; }`);
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
test('transforms class names without dot prefix (string literals)', () => {
|
|
206
|
+
const input = `element.classList.add('ce-block');`;
|
|
207
|
+
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
208
|
+
assertEqual(result, `element.classList.add('data-blok-element');`);
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
test('transforms codex-editor in string literals', () => {
|
|
212
|
+
const input = `const wrapper = document.querySelector("codex-editor");`;
|
|
213
|
+
const { result } = applyTransforms(input, CSS_CLASS_TRANSFORMS);
|
|
214
|
+
assertEqual(result, `const wrapper = document.querySelector("data-blok-editor");`);
|
|
215
|
+
});
|
|
216
|
+
|
|
151
217
|
// ============================================================================
|
|
152
218
|
// Data Attribute Tests
|
|
153
219
|
// ============================================================================
|
|
@@ -1920,7 +1920,7 @@ function kE() {
|
|
|
1920
1920
|
var wE = kE();
|
|
1921
1921
|
const TE = /* @__PURE__ */ Mt(wE);
|
|
1922
1922
|
var Zk = /* @__PURE__ */ ((a) => (a.VERBOSE = "VERBOSE", a.INFO = "INFO", a.WARN = "WARN", a.ERROR = "ERROR", a))(Zk || {});
|
|
1923
|
-
const Sa = () => "0.3.1-beta.
|
|
1923
|
+
const Sa = () => "0.3.1-beta.8", ie = {
|
|
1924
1924
|
BACKSPACE: 8,
|
|
1925
1925
|
TAB: 9,
|
|
1926
1926
|
ENTER: 13,
|
|
@@ -2082,6 +2082,35 @@ class N {
|
|
|
2082
2082
|
static isLineBreakTag(e) {
|
|
2083
2083
|
return !!e && ["BR", "WBR"].includes(e.tagName);
|
|
2084
2084
|
}
|
|
2085
|
+
/**
|
|
2086
|
+
* Checks if a class name is valid for use with classList.add()
|
|
2087
|
+
* classList.add() throws if class contains whitespace, is empty, or contains invalid characters
|
|
2088
|
+
* @param className - class name to validate
|
|
2089
|
+
* @returns {boolean} - true if valid for classList.add()
|
|
2090
|
+
*/
|
|
2091
|
+
static isValidClassName(e) {
|
|
2092
|
+
if (e === "" || /\s/.test(e))
|
|
2093
|
+
return !1;
|
|
2094
|
+
try {
|
|
2095
|
+
return document.createElement("div").classList.add(e), !0;
|
|
2096
|
+
} catch (t) {
|
|
2097
|
+
return !1;
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
/**
|
|
2101
|
+
* Safely adds class names to an element, filtering out invalid ones
|
|
2102
|
+
* @param element - element to add classes to
|
|
2103
|
+
* @param classNames - array of class names to add
|
|
2104
|
+
*/
|
|
2105
|
+
static safelyAddClasses(e, t) {
|
|
2106
|
+
const o = [], i = [];
|
|
2107
|
+
for (const l of t)
|
|
2108
|
+
N.isValidClassName(l) ? o.push(l) : i.push(l);
|
|
2109
|
+
if (o.length > 0 && e.classList.add(...o), i.length > 0) {
|
|
2110
|
+
const l = e.className, c = l ? `${l} ${i.join(" ")}` : i.join(" ");
|
|
2111
|
+
e.setAttribute("class", c);
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2085
2114
|
/**
|
|
2086
2115
|
* Helper for making Elements with class name and attributes
|
|
2087
2116
|
* @param {string} tagName - new Element tag name
|
|
@@ -2093,11 +2122,11 @@ class N {
|
|
|
2093
2122
|
const i = document.createElement(e);
|
|
2094
2123
|
if (Array.isArray(t)) {
|
|
2095
2124
|
const l = t.filter((c) => c !== void 0 && c !== "").flatMap((c) => c.split(" ")).filter((c) => c !== "");
|
|
2096
|
-
|
|
2125
|
+
N.safelyAddClasses(i, l);
|
|
2097
2126
|
}
|
|
2098
2127
|
if (typeof t == "string" && t !== "") {
|
|
2099
2128
|
const l = t.split(" ").filter((c) => c !== "");
|
|
2100
|
-
|
|
2129
|
+
N.safelyAddClasses(i, l);
|
|
2101
2130
|
}
|
|
2102
2131
|
for (const l in o) {
|
|
2103
2132
|
if (!Object.prototype.hasOwnProperty.call(o, l))
|
|
@@ -7048,7 +7077,7 @@ class sC {
|
|
|
7048
7077
|
* @returns {Promise<NotifierModule>} loaded notifier module
|
|
7049
7078
|
*/
|
|
7050
7079
|
loadNotifierModule() {
|
|
7051
|
-
return this.notifierModule !== null ? Promise.resolve(this.notifierModule) : (this.loadingPromise === null && (this.loadingPromise = import("./index-
|
|
7080
|
+
return this.notifierModule !== null ? Promise.resolve(this.notifierModule) : (this.loadingPromise === null && (this.loadingPromise = import("./index-Bnrct7m7.mjs").then((e) => {
|
|
7052
7081
|
var o;
|
|
7053
7082
|
const t = (o = e == null ? void 0 : e.default) != null ? o : e;
|
|
7054
7083
|
if (!this.isNotifierModule(t))
|
package/dist/blok.mjs
CHANGED
package/dist/blok.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Ue,Ne){typeof exports=="object"&&typeof module!="undefined"?module.exports=Ne():typeof define=="function"&&define.amd?define(Ne):(Ue=typeof globalThis!="undefined"?globalThis:Ue||self,Ue.Blok=Ne())})(this,(function(){"use strict";var DA=Object.defineProperty,PA=Object.defineProperties;var MA=Object.getOwnPropertyDescriptors;var el=Object.getOwnPropertySymbols;var n0=Object.prototype.hasOwnProperty,r0=Object.prototype.propertyIsEnumerable;var t0=(Ue,Ne,ht)=>Ne in Ue?DA(Ue,Ne,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Ue[Ne]=ht,be=(Ue,Ne)=>{for(var ht in Ne||(Ne={}))n0.call(Ne,ht)&&t0(Ue,ht,Ne[ht]);if(el)for(var ht of el(Ne))r0.call(Ne,ht)&&t0(Ue,ht,Ne[ht]);return Ue},Tt=(Ue,Ne)=>PA(Ue,MA(Ne));var o0=(Ue,Ne)=>{var ht={};for(var Xt in Ue)n0.call(Ue,Xt)&&Ne.indexOf(Xt)<0&&(ht[Xt]=Ue[Xt]);if(Ue!=null&&el)for(var Xt of el(Ue))Ne.indexOf(Xt)<0&&r0.call(Ue,Xt)&&(ht[Xt]=Ue[Xt]);return ht};var Mr;var Ue=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ne(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var ht,Xt;function i0(){if(Xt)return ht;Xt=1;function a(){}return ht=Object.assign(a,{default:a,register:a,revert:function(){},__esModule:!0}),ht}i0(),typeof Element.prototype.scrollIntoViewIfNeeded=="undefined"&&(Element.prototype.scrollIntoViewIfNeeded=function(a){const e=a!=null?a:!0,t=this.parentElement;if(!t)return;const o=window.getComputedStyle(t,null),i=parseInt(o.getPropertyValue("border-top-width")),l=parseInt(o.getPropertyValue("border-left-width")),c=this.offsetTop-t.offsetTop<t.scrollTop,d=this.offsetTop-t.offsetTop+this.clientHeight-i>t.scrollTop+t.clientHeight,h=this.offsetLeft-t.offsetLeft<t.scrollLeft,g=this.offsetLeft-t.offsetLeft+this.clientWidth-l>t.scrollLeft+t.clientWidth,v=c&&!d;(c||d)&&e&&(t.scrollTop=this.offsetTop-t.offsetTop-t.clientHeight/2-i+this.clientHeight/2),(h||g)&&e&&(t.scrollLeft=this.offsetLeft-t.offsetLeft-t.clientWidth/2-l+this.clientWidth/2),(c||d||h||g)&&!e&&this.scrollIntoView(v)});const s0=globalThis.setTimeout.bind(globalThis),a0=globalThis.clearTimeout.bind(globalThis),Qi=new Map,l0=a=>{const e=Number(a);return Number.isFinite(e)&&e>0?e:Date.now()};typeof window.requestIdleCallback=="undefined"&&(window.requestIdleCallback=function(a){const e=Date.now(),t={},o=s0(()=>{const l=t.value;typeof l=="number"&&Qi.delete(l),a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1),i=l0(o);return t.value=i,Qi.set(i,o),i}),typeof window.cancelIdleCallback=="undefined"&&(window.cancelIdleCallback=function(a){const e=Qi.get(a);e!==void 0&&(Qi.delete(a),a0(e)),globalThis.clearTimeout(a)});const c0="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let u0=(a=21)=>{let e="",t=crypto.getRandomValues(new Uint8Array(a|=0));for(;a--;)e+=c0[t[a]&63];return e};var tl,np;function d0(){if(np)return tl;np=1;var a="Expected a function";function e(t,o,i){if(typeof t!="function")throw new TypeError(a);return setTimeout(function(){t.apply(void 0,i)},o)}return tl=e,tl}var nl,rp;function op(){if(rp)return nl;rp=1;function a(e){return e}return nl=a,nl}var rl,ip;function f0(){if(ip)return rl;ip=1;function a(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}return rl=a,rl}var ol,sp;function h0(){if(sp)return ol;sp=1;var a=f0(),e=Math.max;function t(o,i,l){return i=e(i===void 0?o.length-1:i,0),function(){for(var c=arguments,d=-1,h=e(c.length-i,0),g=Array(h);++d<h;)g[d]=c[i+d];d=-1;for(var v=Array(i+1);++d<i;)v[d]=c[d];return v[i]=l(g),a(o,this,v)}}return ol=t,ol}var il,ap;function p0(){if(ap)return il;ap=1;function a(e){return function(){return e}}return il=a,il}var sl,lp;function cp(){if(lp)return sl;lp=1;var a=typeof Ue=="object"&&Ue&&Ue.Object===Object&&Ue;return sl=a,sl}var al,up;function cn(){if(up)return al;up=1;var a=cp(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=a||e||Function("return this")();return al=t,al}var ll,dp;function Zi(){if(dp)return ll;dp=1;var a=cn(),e=a.Symbol;return ll=e,ll}var cl,fp;function g0(){if(fp)return cl;fp=1;var a=Zi(),e=Object.prototype,t=e.hasOwnProperty,o=e.toString,i=a?a.toStringTag:void 0;function l(c){var d=t.call(c,i),h=c[i];try{c[i]=void 0;var g=!0}catch(y){}var v=o.call(c);return g&&(d?c[i]=h:delete c[i]),v}return cl=l,cl}var ul,hp;function m0(){if(hp)return ul;hp=1;var a=Object.prototype,e=a.toString;function t(o){return e.call(o)}return ul=t,ul}var dl,pp;function Nn(){if(pp)return dl;pp=1;var a=Zi(),e=g0(),t=m0(),o="[object Null]",i="[object Undefined]",l=a?a.toStringTag:void 0;function c(d){return d==null?d===void 0?i:o:l&&l in Object(d)?e(d):t(d)}return dl=c,dl}var fl,gp;function kn(){if(gp)return fl;gp=1;function a(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return fl=a,fl}var hl,mp;function Ji(){if(mp)return hl;mp=1;var a=Nn(),e=kn(),t="[object AsyncFunction]",o="[object Function]",i="[object GeneratorFunction]",l="[object Proxy]";function c(d){if(!e(d))return!1;var h=a(d);return h==o||h==i||h==t||h==l}return hl=c,hl}var pl,vp;function v0(){if(vp)return pl;vp=1;var a=cn(),e=a["__core-js_shared__"];return pl=e,pl}var gl,yp;function y0(){if(yp)return gl;yp=1;var a=v0(),e=(function(){var o=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})();function t(o){return!!e&&e in o}return gl=t,gl}var ml,bp;function kp(){if(bp)return ml;bp=1;var a=Function.prototype,e=a.toString;function t(o){if(o!=null){try{return e.call(o)}catch(i){}try{return o+""}catch(i){}}return""}return ml=t,ml}var vl,wp;function b0(){if(wp)return vl;wp=1;var a=Ji(),e=y0(),t=kn(),o=kp(),i=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,d=Object.prototype,h=c.toString,g=d.hasOwnProperty,v=RegExp("^"+h.call(g).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y(b){if(!t(b)||e(b))return!1;var x=a(b)?v:l;return x.test(o(b))}return vl=y,vl}var yl,Tp;function k0(){if(Tp)return yl;Tp=1;function a(e,t){return e==null?void 0:e[t]}return yl=a,yl}var bl,xp;function Tr(){if(xp)return bl;xp=1;var a=b0(),e=k0();function t(o,i){var l=e(o,i);return a(l)?l:void 0}return bl=t,bl}var kl,Ep;function Sp(){if(Ep)return kl;Ep=1;var a=Tr(),e=(function(){try{var t=a(Object,"defineProperty");return t({},"",{}),t}catch(o){}})();return kl=e,kl}var wl,Cp;function w0(){if(Cp)return wl;Cp=1;var a=p0(),e=Sp(),t=op(),o=e?function(i,l){return e(i,"toString",{configurable:!0,enumerable:!1,value:a(l),writable:!0})}:t;return wl=o,wl}var Tl,Bp;function T0(){if(Bp)return Tl;Bp=1;var a=800,e=16,t=Date.now;function o(i){var l=0,c=0;return function(){var d=t(),h=e-(d-c);if(c=d,h>0){if(++l>=a)return arguments[0]}else l=0;return i.apply(void 0,arguments)}}return Tl=o,Tl}var xl,Ap;function x0(){if(Ap)return xl;Ap=1;var a=w0(),e=T0(),t=e(a);return xl=t,xl}var El,Ip;function _p(){if(Ip)return El;Ip=1;var a=op(),e=h0(),t=x0();function o(i,l){return t(e(i,l,a),i+"")}return El=o,El}var Sl,Rp;function E0(){if(Rp)return Sl;Rp=1;var a=/\s/;function e(t){for(var o=t.length;o--&&a.test(t.charAt(o)););return o}return Sl=e,Sl}var Cl,Np;function S0(){if(Np)return Cl;Np=1;var a=E0(),e=/^\s+/;function t(o){return o&&o.slice(0,a(o)+1).replace(e,"")}return Cl=t,Cl}var Bl,Op;function wn(){if(Op)return Bl;Op=1;function a(e){return e!=null&&typeof e=="object"}return Bl=a,Bl}var Al,Lp;function C0(){if(Lp)return Al;Lp=1;var a=Nn(),e=wn(),t="[object Symbol]";function o(i){return typeof i=="symbol"||e(i)&&a(i)==t}return Al=o,Al}var Il,Dp;function Pp(){if(Dp)return Il;Dp=1;var a=S0(),e=kn(),t=C0(),o=NaN,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;function h(g){if(typeof g=="number")return g;if(t(g))return o;if(e(g)){var v=typeof g.valueOf=="function"?g.valueOf():g;g=e(v)?v+"":v}if(typeof g!="string")return g===0?g:+g;g=a(g);var y=l.test(g);return y||c.test(g)?d(g.slice(2),y?2:8):i.test(g)?o:+g}return Il=h,Il}var _l,Mp;function B0(){if(Mp)return _l;Mp=1;var a=d0(),e=_p(),t=Pp(),o=e(function(i,l,c){return a(i,t(l)||0,c)});return _l=o,_l}var A0=B0();const I0=Ne(A0);var Rl,Fp;function _0(){if(Fp)return Rl;Fp=1;var a=Nn(),e=wn(),t="[object Boolean]";function o(i){return i===!0||i===!1||e(i)&&a(i)==t}return Rl=o,Rl}var R0=_0();const N0=Ne(R0);var Nl,zp;function es(){if(zp)return Nl;zp=1;var a=Object.prototype;function e(t){var o=t&&t.constructor,i=typeof o=="function"&&o.prototype||a;return t===i}return Nl=e,Nl}var Ol,Hp;function jp(){if(Hp)return Ol;Hp=1;function a(e,t){return function(o){return e(t(o))}}return Ol=a,Ol}var Ll,qp;function O0(){if(qp)return Ll;qp=1;var a=jp(),e=a(Object.keys,Object);return Ll=e,Ll}var Dl,Up;function Wp(){if(Up)return Dl;Up=1;var a=es(),e=O0(),t=Object.prototype,o=t.hasOwnProperty;function i(l){if(!a(l))return e(l);var c=[];for(var d in Object(l))o.call(l,d)&&d!="constructor"&&c.push(d);return c}return Dl=i,Dl}var Pl,Kp;function L0(){if(Kp)return Pl;Kp=1;var a=Tr(),e=cn(),t=a(e,"DataView");return Pl=t,Pl}var Ml,Vp;function Fl(){if(Vp)return Ml;Vp=1;var a=Tr(),e=cn(),t=a(e,"Map");return Ml=t,Ml}var zl,$p;function D0(){if($p)return zl;$p=1;var a=Tr(),e=cn(),t=a(e,"Promise");return zl=t,zl}var Hl,Gp;function P0(){if(Gp)return Hl;Gp=1;var a=Tr(),e=cn(),t=a(e,"Set");return Hl=t,Hl}var jl,Xp;function M0(){if(Xp)return jl;Xp=1;var a=Tr(),e=cn(),t=a(e,"WeakMap");return jl=t,jl}var ql,Yp;function Ul(){if(Yp)return ql;Yp=1;var a=L0(),e=Fl(),t=D0(),o=P0(),i=M0(),l=Nn(),c=kp(),d="[object Map]",h="[object Object]",g="[object Promise]",v="[object Set]",y="[object WeakMap]",b="[object DataView]",x=c(a),w=c(e),T=c(t),S=c(o),O=c(i),L=l;return(a&&L(new a(new ArrayBuffer(1)))!=b||e&&L(new e)!=d||t&&L(t.resolve())!=g||o&&L(new o)!=v||i&&L(new i)!=y)&&(L=function(U){var H=l(U),X=H==h?U.constructor:void 0,q=X?c(X):"";if(q)switch(q){case x:return b;case w:return d;case T:return g;case S:return v;case O:return y}return H}),ql=L,ql}var Wl,Qp;function F0(){if(Qp)return Wl;Qp=1;var a=Nn(),e=wn(),t="[object Arguments]";function o(i){return e(i)&&a(i)==t}return Wl=o,Wl}var Kl,Zp;function Vl(){if(Zp)return Kl;Zp=1;var a=F0(),e=wn(),t=Object.prototype,o=t.hasOwnProperty,i=t.propertyIsEnumerable,l=a((function(){return arguments})())?a:function(c){return e(c)&&o.call(c,"callee")&&!i.call(c,"callee")};return Kl=l,Kl}var $l,Jp;function Zr(){if(Jp)return $l;Jp=1;var a=Array.isArray;return $l=a,$l}var Gl,eg;function tg(){if(eg)return Gl;eg=1;var a=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=a}return Gl=e,Gl}var Xl,ng;function Jr(){if(ng)return Xl;ng=1;var a=Ji(),e=tg();function t(o){return o!=null&&e(o.length)&&!a(o)}return Xl=t,Xl}var Ho={exports:{}},Yl,rg;function z0(){if(rg)return Yl;rg=1;function a(){return!1}return Yl=a,Yl}Ho.exports;var og;function ts(){return og||(og=1,(function(a,e){var t=cn(),o=z0(),i=e&&!e.nodeType&&e,l=i&&!0&&a&&!a.nodeType&&a,c=l&&l.exports===i,d=c?t.Buffer:void 0,h=d?d.isBuffer:void 0,g=h||o;a.exports=g})(Ho,Ho.exports)),Ho.exports}var Ql,ig;function H0(){if(ig)return Ql;ig=1;var a=Nn(),e=tg(),t=wn(),o="[object Arguments]",i="[object Array]",l="[object Boolean]",c="[object Date]",d="[object Error]",h="[object Function]",g="[object Map]",v="[object Number]",y="[object Object]",b="[object RegExp]",x="[object Set]",w="[object String]",T="[object WeakMap]",S="[object ArrayBuffer]",O="[object DataView]",L="[object Float32Array]",U="[object Float64Array]",H="[object Int8Array]",X="[object Int16Array]",q="[object Int32Array]",W="[object Uint8Array]",F="[object Uint8ClampedArray]",ne="[object Uint16Array]",ce="[object Uint32Array]",Q={};Q[L]=Q[U]=Q[H]=Q[X]=Q[q]=Q[W]=Q[F]=Q[ne]=Q[ce]=!0,Q[o]=Q[i]=Q[S]=Q[l]=Q[O]=Q[c]=Q[d]=Q[h]=Q[g]=Q[v]=Q[y]=Q[b]=Q[x]=Q[w]=Q[T]=!1;function ye(Z){return t(Z)&&e(Z.length)&&!!Q[a(Z)]}return Ql=ye,Ql}var Zl,sg;function j0(){if(sg)return Zl;sg=1;function a(e){return function(t){return e(t)}}return Zl=a,Zl}var jo={exports:{}};jo.exports;var ag;function q0(){return ag||(ag=1,(function(a,e){var t=cp(),o=e&&!e.nodeType&&e,i=o&&!0&&a&&!a.nodeType&&a,l=i&&i.exports===o,c=l&&t.process,d=(function(){try{var h=i&&i.require&&i.require("util").types;return h||c&&c.binding&&c.binding("util")}catch(g){}})();a.exports=d})(jo,jo.exports)),jo.exports}var Jl,lg;function ns(){if(lg)return Jl;lg=1;var a=H0(),e=j0(),t=q0(),o=t&&t.isTypedArray,i=o?e(o):a;return Jl=i,Jl}var ec,cg;function U0(){if(cg)return ec;cg=1;var a=Wp(),e=Ul(),t=Vl(),o=Zr(),i=Jr(),l=ts(),c=es(),d=ns(),h="[object Map]",g="[object Set]",v=Object.prototype,y=v.hasOwnProperty;function b(x){if(x==null)return!0;if(i(x)&&(o(x)||typeof x=="string"||typeof x.splice=="function"||l(x)||d(x)||t(x)))return!x.length;var w=e(x);if(w==h||w==g)return!x.size;if(c(x))return!a(x).length;for(var T in x)if(y.call(x,T))return!1;return!0}return ec=b,ec}var W0=U0();const K0=Ne(W0);var tc,ug;function V0(){if(ug)return tc;ug=1;function a(){this.__data__=[],this.size=0}return tc=a,tc}var nc,dg;function qo(){if(dg)return nc;dg=1;function a(e,t){return e===t||e!==e&&t!==t}return nc=a,nc}var rc,fg;function rs(){if(fg)return rc;fg=1;var a=qo();function e(t,o){for(var i=t.length;i--;)if(a(t[i][0],o))return i;return-1}return rc=e,rc}var oc,hg;function $0(){if(hg)return oc;hg=1;var a=rs(),e=Array.prototype,t=e.splice;function o(i){var l=this.__data__,c=a(l,i);if(c<0)return!1;var d=l.length-1;return c==d?l.pop():t.call(l,c,1),--this.size,!0}return oc=o,oc}var ic,pg;function G0(){if(pg)return ic;pg=1;var a=rs();function e(t){var o=this.__data__,i=a(o,t);return i<0?void 0:o[i][1]}return ic=e,ic}var sc,gg;function X0(){if(gg)return sc;gg=1;var a=rs();function e(t){return a(this.__data__,t)>-1}return sc=e,sc}var ac,mg;function Y0(){if(mg)return ac;mg=1;var a=rs();function e(t,o){var i=this.__data__,l=a(i,t);return l<0?(++this.size,i.push([t,o])):i[l][1]=o,this}return ac=e,ac}var lc,vg;function os(){if(vg)return lc;vg=1;var a=V0(),e=$0(),t=G0(),o=X0(),i=Y0();function l(c){var d=-1,h=c==null?0:c.length;for(this.clear();++d<h;){var g=c[d];this.set(g[0],g[1])}}return l.prototype.clear=a,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=o,l.prototype.set=i,lc=l,lc}var cc,yg;function Q0(){if(yg)return cc;yg=1;var a=os();function e(){this.__data__=new a,this.size=0}return cc=e,cc}var uc,bg;function Z0(){if(bg)return uc;bg=1;function a(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}return uc=a,uc}var dc,kg;function J0(){if(kg)return dc;kg=1;function a(e){return this.__data__.get(e)}return dc=a,dc}var fc,wg;function eT(){if(wg)return fc;wg=1;function a(e){return this.__data__.has(e)}return fc=a,fc}var hc,Tg;function is(){if(Tg)return hc;Tg=1;var a=Tr(),e=a(Object,"create");return hc=e,hc}var pc,xg;function tT(){if(xg)return pc;xg=1;var a=is();function e(){this.__data__=a?a(null):{},this.size=0}return pc=e,pc}var gc,Eg;function nT(){if(Eg)return gc;Eg=1;function a(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return gc=a,gc}var mc,Sg;function rT(){if(Sg)return mc;Sg=1;var a=is(),e="__lodash_hash_undefined__",t=Object.prototype,o=t.hasOwnProperty;function i(l){var c=this.__data__;if(a){var d=c[l];return d===e?void 0:d}return o.call(c,l)?c[l]:void 0}return mc=i,mc}var vc,Cg;function oT(){if(Cg)return vc;Cg=1;var a=is(),e=Object.prototype,t=e.hasOwnProperty;function o(i){var l=this.__data__;return a?l[i]!==void 0:t.call(l,i)}return vc=o,vc}var yc,Bg;function iT(){if(Bg)return yc;Bg=1;var a=is(),e="__lodash_hash_undefined__";function t(o,i){var l=this.__data__;return this.size+=this.has(o)?0:1,l[o]=a&&i===void 0?e:i,this}return yc=t,yc}var bc,Ag;function sT(){if(Ag)return bc;Ag=1;var a=tT(),e=nT(),t=rT(),o=oT(),i=iT();function l(c){var d=-1,h=c==null?0:c.length;for(this.clear();++d<h;){var g=c[d];this.set(g[0],g[1])}}return l.prototype.clear=a,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=o,l.prototype.set=i,bc=l,bc}var kc,Ig;function aT(){if(Ig)return kc;Ig=1;var a=sT(),e=os(),t=Fl();function o(){this.size=0,this.__data__={hash:new a,map:new(t||e),string:new a}}return kc=o,kc}var wc,_g;function lT(){if(_g)return wc;_g=1;function a(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return wc=a,wc}var Tc,Rg;function ss(){if(Rg)return Tc;Rg=1;var a=lT();function e(t,o){var i=t.__data__;return a(o)?i[typeof o=="string"?"string":"hash"]:i.map}return Tc=e,Tc}var xc,Ng;function cT(){if(Ng)return xc;Ng=1;var a=ss();function e(t){var o=a(this,t).delete(t);return this.size-=o?1:0,o}return xc=e,xc}var Ec,Og;function uT(){if(Og)return Ec;Og=1;var a=ss();function e(t){return a(this,t).get(t)}return Ec=e,Ec}var Sc,Lg;function dT(){if(Lg)return Sc;Lg=1;var a=ss();function e(t){return a(this,t).has(t)}return Sc=e,Sc}var Cc,Dg;function fT(){if(Dg)return Cc;Dg=1;var a=ss();function e(t,o){var i=a(this,t),l=i.size;return i.set(t,o),this.size+=i.size==l?0:1,this}return Cc=e,Cc}var Bc,Pg;function Mg(){if(Pg)return Bc;Pg=1;var a=aT(),e=cT(),t=uT(),o=dT(),i=fT();function l(c){var d=-1,h=c==null?0:c.length;for(this.clear();++d<h;){var g=c[d];this.set(g[0],g[1])}}return l.prototype.clear=a,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=o,l.prototype.set=i,Bc=l,Bc}var Ac,Fg;function hT(){if(Fg)return Ac;Fg=1;var a=os(),e=Fl(),t=Mg(),o=200;function i(l,c){var d=this.__data__;if(d instanceof a){var h=d.__data__;if(!e||h.length<o-1)return h.push([l,c]),this.size=++d.size,this;d=this.__data__=new t(h)}return d.set(l,c),this.size=d.size,this}return Ac=i,Ac}var Ic,zg;function Hg(){if(zg)return Ic;zg=1;var a=os(),e=Q0(),t=Z0(),o=J0(),i=eT(),l=hT();function c(d){var h=this.__data__=new a(d);this.size=h.size}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=o,c.prototype.has=i,c.prototype.set=l,Ic=c,Ic}var _c,jg;function pT(){if(jg)return _c;jg=1;var a="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,a),this}return _c=e,_c}var Rc,qg;function gT(){if(qg)return Rc;qg=1;function a(e){return this.__data__.has(e)}return Rc=a,Rc}var Nc,Ug;function mT(){if(Ug)return Nc;Ug=1;var a=Mg(),e=pT(),t=gT();function o(i){var l=-1,c=i==null?0:i.length;for(this.__data__=new a;++l<c;)this.add(i[l])}return o.prototype.add=o.prototype.push=e,o.prototype.has=t,Nc=o,Nc}var Oc,Wg;function vT(){if(Wg)return Oc;Wg=1;function a(e,t){for(var o=-1,i=e==null?0:e.length;++o<i;)if(t(e[o],o,e))return!0;return!1}return Oc=a,Oc}var Lc,Kg;function yT(){if(Kg)return Lc;Kg=1;function a(e,t){return e.has(t)}return Lc=a,Lc}var Dc,Vg;function $g(){if(Vg)return Dc;Vg=1;var a=mT(),e=vT(),t=yT(),o=1,i=2;function l(c,d,h,g,v,y){var b=h&o,x=c.length,w=d.length;if(x!=w&&!(b&&w>x))return!1;var T=y.get(c),S=y.get(d);if(T&&S)return T==d&&S==c;var O=-1,L=!0,U=h&i?new a:void 0;for(y.set(c,d),y.set(d,c);++O<x;){var H=c[O],X=d[O];if(g)var q=b?g(X,H,O,d,c,y):g(H,X,O,c,d,y);if(q!==void 0){if(q)continue;L=!1;break}if(U){if(!e(d,function(W,F){if(!t(U,F)&&(H===W||v(H,W,h,g,y)))return U.push(F)})){L=!1;break}}else if(!(H===X||v(H,X,h,g,y))){L=!1;break}}return y.delete(c),y.delete(d),L}return Dc=l,Dc}var Pc,Gg;function Xg(){if(Gg)return Pc;Gg=1;var a=cn(),e=a.Uint8Array;return Pc=e,Pc}var Mc,Yg;function Qg(){if(Yg)return Mc;Yg=1;function a(e){var t=-1,o=Array(e.size);return e.forEach(function(i,l){o[++t]=[l,i]}),o}return Mc=a,Mc}var Fc,Zg;function Jg(){if(Zg)return Fc;Zg=1;function a(e){var t=-1,o=Array(e.size);return e.forEach(function(i){o[++t]=i}),o}return Fc=a,Fc}var zc,em;function bT(){if(em)return zc;em=1;var a=Zi(),e=Xg(),t=qo(),o=$g(),i=Qg(),l=Jg(),c=1,d=2,h="[object Boolean]",g="[object Date]",v="[object Error]",y="[object Map]",b="[object Number]",x="[object RegExp]",w="[object Set]",T="[object String]",S="[object Symbol]",O="[object ArrayBuffer]",L="[object DataView]",U=a?a.prototype:void 0,H=U?U.valueOf:void 0;function X(q,W,F,ne,ce,Q,ye){switch(F){case L:if(q.byteLength!=W.byteLength||q.byteOffset!=W.byteOffset)return!1;q=q.buffer,W=W.buffer;case O:return!(q.byteLength!=W.byteLength||!Q(new e(q),new e(W)));case h:case g:case b:return t(+q,+W);case v:return q.name==W.name&&q.message==W.message;case x:case T:return q==W+"";case y:var Z=i;case w:var we=ne&c;if(Z||(Z=l),q.size!=W.size&&!we)return!1;var Oe=ye.get(q);if(Oe)return Oe==W;ne|=d,ye.set(q,W);var xe=o(Z(q),Z(W),ne,ce,Q,ye);return ye.delete(q),xe;case S:if(H)return H.call(q)==H.call(W)}return!1}return zc=X,zc}var Hc,tm;function kT(){if(tm)return Hc;tm=1;function a(e,t){for(var o=-1,i=t.length,l=e.length;++o<i;)e[l+o]=t[o];return e}return Hc=a,Hc}var jc,nm;function wT(){if(nm)return jc;nm=1;var a=kT(),e=Zr();function t(o,i,l){var c=i(o);return e(o)?c:a(c,l(o))}return jc=t,jc}var qc,rm;function TT(){if(rm)return qc;rm=1;function a(e,t){for(var o=-1,i=e==null?0:e.length,l=0,c=[];++o<i;){var d=e[o];t(d,o,e)&&(c[l++]=d)}return c}return qc=a,qc}var Uc,om;function xT(){if(om)return Uc;om=1;function a(){return[]}return Uc=a,Uc}var Wc,im;function ET(){if(im)return Wc;im=1;var a=TT(),e=xT(),t=Object.prototype,o=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(c){return c==null?[]:(c=Object(c),a(i(c),function(d){return o.call(c,d)}))}:e;return Wc=l,Wc}var Kc,sm;function ST(){if(sm)return Kc;sm=1;function a(e,t){for(var o=-1,i=Array(e);++o<e;)i[o]=t(o);return i}return Kc=a,Kc}var Vc,am;function lm(){if(am)return Vc;am=1;var a=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(o,i){var l=typeof o;return i=i==null?a:i,!!i&&(l=="number"||l!="symbol"&&e.test(o))&&o>-1&&o%1==0&&o<i}return Vc=t,Vc}var $c,cm;function um(){if(cm)return $c;cm=1;var a=ST(),e=Vl(),t=Zr(),o=ts(),i=lm(),l=ns(),c=Object.prototype,d=c.hasOwnProperty;function h(g,v){var y=t(g),b=!y&&e(g),x=!y&&!b&&o(g),w=!y&&!b&&!x&&l(g),T=y||b||x||w,S=T?a(g.length,String):[],O=S.length;for(var L in g)(v||d.call(g,L))&&!(T&&(L=="length"||x&&(L=="offset"||L=="parent")||w&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||i(L,O)))&&S.push(L);return S}return $c=h,$c}var Gc,dm;function fm(){if(dm)return Gc;dm=1;var a=um(),e=Wp(),t=Jr();function o(i){return t(i)?a(i):e(i)}return Gc=o,Gc}var Xc,hm;function CT(){if(hm)return Xc;hm=1;var a=wT(),e=ET(),t=fm();function o(i){return a(i,t,e)}return Xc=o,Xc}var Yc,pm;function BT(){if(pm)return Yc;pm=1;var a=CT(),e=1,t=Object.prototype,o=t.hasOwnProperty;function i(l,c,d,h,g,v){var y=d&e,b=a(l),x=b.length,w=a(c),T=w.length;if(x!=T&&!y)return!1;for(var S=x;S--;){var O=b[S];if(!(y?O in c:o.call(c,O)))return!1}var L=v.get(l),U=v.get(c);if(L&&U)return L==c&&U==l;var H=!0;v.set(l,c),v.set(c,l);for(var X=y;++S<x;){O=b[S];var q=l[O],W=c[O];if(h)var F=y?h(W,q,O,c,l,v):h(q,W,O,l,c,v);if(!(F===void 0?q===W||g(q,W,d,h,v):F)){H=!1;break}X||(X=O=="constructor")}if(H&&!X){var ne=l.constructor,ce=c.constructor;ne!=ce&&"constructor"in l&&"constructor"in c&&!(typeof ne=="function"&&ne instanceof ne&&typeof ce=="function"&&ce instanceof ce)&&(H=!1)}return v.delete(l),v.delete(c),H}return Yc=i,Yc}var Qc,gm;function AT(){if(gm)return Qc;gm=1;var a=Hg(),e=$g(),t=bT(),o=BT(),i=Ul(),l=Zr(),c=ts(),d=ns(),h=1,g="[object Arguments]",v="[object Array]",y="[object Object]",b=Object.prototype,x=b.hasOwnProperty;function w(T,S,O,L,U,H){var X=l(T),q=l(S),W=X?v:i(T),F=q?v:i(S);W=W==g?y:W,F=F==g?y:F;var ne=W==y,ce=F==y,Q=W==F;if(Q&&c(T)){if(!c(S))return!1;X=!0,ne=!1}if(Q&&!ne)return H||(H=new a),X||d(T)?e(T,S,O,L,U,H):t(T,S,W,O,L,U,H);if(!(O&h)){var ye=ne&&x.call(T,"__wrapped__"),Z=ce&&x.call(S,"__wrapped__");if(ye||Z){var we=ye?T.value():T,Oe=Z?S.value():S;return H||(H=new a),U(we,Oe,O,L,H)}}return Q?(H||(H=new a),o(T,S,O,L,U,H)):!1}return Qc=w,Qc}var Zc,mm;function IT(){if(mm)return Zc;mm=1;var a=AT(),e=wn();function t(o,i,l,c,d){return o===i?!0:o==null||i==null||!e(o)&&!e(i)?o!==o&&i!==i:a(o,i,l,c,t,d)}return Zc=t,Zc}var Jc,vm;function _T(){if(vm)return Jc;vm=1;var a=IT();function e(t,o){return a(t,o)}return Jc=e,Jc}var RT=_T();const NT=Ne(RT);var OT=Ji();const LT=Ne(OT);var eu,ym;function DT(){if(ym)return eu;ym=1;var a=Nn(),e=wn(),t="[object Number]";function o(i){return typeof i=="number"||e(i)&&a(i)==t}return eu=o,eu}var PT=DT();const MT=Ne(PT);var tu,bm;function km(){if(bm)return tu;bm=1;var a=jp(),e=a(Object.getPrototypeOf,Object);return tu=e,tu}var nu,wm;function Tm(){if(wm)return nu;wm=1;var a=Nn(),e=km(),t=wn(),o="[object Object]",i=Function.prototype,l=Object.prototype,c=i.toString,d=l.hasOwnProperty,h=c.call(Object);function g(v){if(!t(v)||a(v)!=o)return!1;var y=e(v);if(y===null)return!0;var b=d.call(y,"constructor")&&y.constructor;return typeof b=="function"&&b instanceof b&&c.call(b)==h}return nu=g,nu}var FT=Tm();const zT=Ne(FT);var ru,xm;function Em(){if(xm)return ru;xm=1;var a=Nn(),e=Zr(),t=wn(),o="[object String]";function i(l){return typeof l=="string"||!e(l)&&t(l)&&a(l)==o}return ru=i,ru}var HT=Em();const jT=Ne(HT);var ou,Sm;function qT(){if(Sm)return ou;Sm=1;function a(e){return e===void 0}return ou=a,ou}var UT=qT();const WT=Ne(UT);var iu,Cm;function su(){if(Cm)return iu;Cm=1;var a=Sp();function e(t,o,i){o=="__proto__"&&a?a(t,o,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[o]=i}return iu=e,iu}var au,Bm;function Am(){if(Bm)return au;Bm=1;var a=su(),e=qo();function t(o,i,l){(l!==void 0&&!e(o[i],l)||l===void 0&&!(i in o))&&a(o,i,l)}return au=t,au}var lu,Im;function KT(){if(Im)return lu;Im=1;function a(e){return function(t,o,i){for(var l=-1,c=Object(t),d=i(t),h=d.length;h--;){var g=d[e?h:++l];if(o(c[g],g,c)===!1)break}return t}}return lu=a,lu}var cu,_m;function VT(){if(_m)return cu;_m=1;var a=KT(),e=a();return cu=e,cu}var Uo={exports:{}};Uo.exports;var Rm;function $T(){return Rm||(Rm=1,(function(a,e){var t=cn(),o=e&&!e.nodeType&&e,i=o&&!0&&a&&!a.nodeType&&a,l=i&&i.exports===o,c=l?t.Buffer:void 0,d=c?c.allocUnsafe:void 0;function h(g,v){if(v)return g.slice();var y=g.length,b=d?d(y):new g.constructor(y);return g.copy(b),b}a.exports=h})(Uo,Uo.exports)),Uo.exports}var uu,Nm;function GT(){if(Nm)return uu;Nm=1;var a=Xg();function e(t){var o=new t.constructor(t.byteLength);return new a(o).set(new a(t)),o}return uu=e,uu}var du,Om;function XT(){if(Om)return du;Om=1;var a=GT();function e(t,o){var i=o?a(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}return du=e,du}var fu,Lm;function Dm(){if(Lm)return fu;Lm=1;function a(e,t){var o=-1,i=e.length;for(t||(t=Array(i));++o<i;)t[o]=e[o];return t}return fu=a,fu}var hu,Pm;function YT(){if(Pm)return hu;Pm=1;var a=kn(),e=Object.create,t=(function(){function o(){}return function(i){if(!a(i))return{};if(e)return e(i);o.prototype=i;var l=new o;return o.prototype=void 0,l}})();return hu=t,hu}var pu,Mm;function QT(){if(Mm)return pu;Mm=1;var a=YT(),e=km(),t=es();function o(i){return typeof i.constructor=="function"&&!t(i)?a(e(i)):{}}return pu=o,pu}var gu,Fm;function ZT(){if(Fm)return gu;Fm=1;var a=Jr(),e=wn();function t(o){return e(o)&&a(o)}return gu=t,gu}var mu,zm;function Hm(){if(zm)return mu;zm=1;function a(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}return mu=a,mu}var vu,jm;function JT(){if(jm)return vu;jm=1;var a=su(),e=qo(),t=Object.prototype,o=t.hasOwnProperty;function i(l,c,d){var h=l[c];(!(o.call(l,c)&&e(h,d))||d===void 0&&!(c in l))&&a(l,c,d)}return vu=i,vu}var yu,qm;function e1(){if(qm)return yu;qm=1;var a=JT(),e=su();function t(o,i,l,c){var d=!l;l||(l={});for(var h=-1,g=i.length;++h<g;){var v=i[h],y=c?c(l[v],o[v],v,l,o):void 0;y===void 0&&(y=o[v]),d?e(l,v,y):a(l,v,y)}return l}return yu=t,yu}var bu,Um;function t1(){if(Um)return bu;Um=1;function a(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}return bu=a,bu}var ku,Wm;function n1(){if(Wm)return ku;Wm=1;var a=kn(),e=es(),t=t1(),o=Object.prototype,i=o.hasOwnProperty;function l(c){if(!a(c))return t(c);var d=e(c),h=[];for(var g in c)g=="constructor"&&(d||!i.call(c,g))||h.push(g);return h}return ku=l,ku}var wu,Km;function Vm(){if(Km)return wu;Km=1;var a=um(),e=n1(),t=Jr();function o(i){return t(i)?a(i,!0):e(i)}return wu=o,wu}var Tu,$m;function r1(){if($m)return Tu;$m=1;var a=e1(),e=Vm();function t(o){return a(o,e(o))}return Tu=t,Tu}var xu,Gm;function o1(){if(Gm)return xu;Gm=1;var a=Am(),e=$T(),t=XT(),o=Dm(),i=QT(),l=Vl(),c=Zr(),d=ZT(),h=ts(),g=Ji(),v=kn(),y=Tm(),b=ns(),x=Hm(),w=r1();function T(S,O,L,U,H,X,q){var W=x(S,L),F=x(O,L),ne=q.get(F);if(ne){a(S,L,ne);return}var ce=X?X(W,F,L+"",S,O,q):void 0,Q=ce===void 0;if(Q){var ye=c(F),Z=!ye&&h(F),we=!ye&&!Z&&b(F);ce=F,ye||Z||we?c(W)?ce=W:d(W)?ce=o(W):Z?(Q=!1,ce=e(F,!0)):we?(Q=!1,ce=t(F,!0)):ce=[]:y(F)||l(F)?(ce=W,l(W)?ce=w(W):(!v(W)||g(W))&&(ce=i(F))):Q=!1}Q&&(q.set(F,ce),H(ce,F,U,X,q),q.delete(F)),a(S,L,ce)}return xu=T,xu}var Eu,Xm;function i1(){if(Xm)return Eu;Xm=1;var a=Hg(),e=Am(),t=VT(),o=o1(),i=kn(),l=Vm(),c=Hm();function d(h,g,v,y,b){h!==g&&t(g,function(x,w){if(b||(b=new a),i(x))o(h,g,w,v,d,y,b);else{var T=y?y(c(h,w),x,w+"",h,g,b):void 0;T===void 0&&(T=x),e(h,w,T)}},l)}return Eu=d,Eu}var Su,Ym;function s1(){if(Ym)return Su;Ym=1;var a=qo(),e=Jr(),t=lm(),o=kn();function i(l,c,d){if(!o(d))return!1;var h=typeof c;return(h=="number"?e(d)&&t(c,d.length):h=="string"&&c in d)?a(d[c],l):!1}return Su=i,Su}var Cu,Qm;function a1(){if(Qm)return Cu;Qm=1;var a=_p(),e=s1();function t(o){return a(function(i,l){var c=-1,d=l.length,h=d>1?l[d-1]:void 0,g=d>2?l[2]:void 0;for(h=o.length>3&&typeof h=="function"?(d--,h):void 0,g&&e(l[0],l[1],g)&&(h=d<3?void 0:h,d=1),i=Object(i);++c<d;){var v=l[c];v&&o(i,v,c,h)}return i})}return Cu=t,Cu}var Bu,Zm;function l1(){if(Zm)return Bu;Zm=1;var a=i1(),e=a1(),t=e(function(o,i,l,c){a(o,i,l,c)});return Bu=t,Bu}var c1=l1();const u1=Ne(c1);var Au,Jm;function d1(){if(Jm)return Au;Jm=1;var a=cn(),e=function(){return a.Date.now()};return Au=e,Au}var Iu,ev;function f1(){if(ev)return Iu;ev=1;var a=kn(),e=d1(),t=Pp(),o="Expected a function",i=Math.max,l=Math.min;function c(d,h,g){var v,y,b,x,w,T,S=0,O=!1,L=!1,U=!0;if(typeof d!="function")throw new TypeError(o);h=t(h)||0,a(g)&&(O=!!g.leading,L="maxWait"in g,b=L?i(t(g.maxWait)||0,h):b,U="trailing"in g?!!g.trailing:U);function H(Z){var we=v,Oe=y;return v=y=void 0,S=Z,x=d.apply(Oe,we),x}function X(Z){return S=Z,w=setTimeout(F,h),O?H(Z):x}function q(Z){var we=Z-T,Oe=Z-S,xe=h-we;return L?l(xe,b-Oe):xe}function W(Z){var we=Z-T,Oe=Z-S;return T===void 0||we>=h||we<0||L&&Oe>=b}function F(){var Z=e();if(W(Z))return ne(Z);w=setTimeout(F,q(Z))}function ne(Z){return w=void 0,U&&v?H(Z):(v=y=void 0,x)}function ce(){w!==void 0&&clearTimeout(w),S=0,v=T=y=w=void 0}function Q(){return w===void 0?x:ne(e())}function ye(){var Z=e(),we=W(Z);if(v=arguments,y=this,T=Z,we){if(w===void 0)return X(T);if(L)return clearTimeout(w),w=setTimeout(F,h),H(T)}return w===void 0&&(w=setTimeout(F,h)),x}return ye.cancel=ce,ye.flush=Q,ye}return Iu=c,Iu}var _u,tv;function h1(){if(tv)return _u;tv=1;var a=f1(),e=kn(),t="Expected a function";function o(i,l,c){var d=!0,h=!0;if(typeof i!="function")throw new TypeError(t);return e(c)&&(d="leading"in c?!!c.leading:d,h="trailing"in c?!!c.trailing:h),a(i,l,{leading:d,maxWait:l,trailing:h})}return _u=o,_u}var p1=h1();const g1=Ne(p1);var Ru,nv;function m1(){if(nv)return Ru;nv=1;function a(e){for(var t,o=[];!(t=e.next()).done;)o.push(t.value);return o}return Ru=a,Ru}var Nu,rv;function v1(){if(rv)return Nu;rv=1;function a(e){return e.split("")}return Nu=a,Nu}var Ou,ov;function y1(){if(ov)return Ou;ov=1;var a="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",i=e+t+o,l="\\ufe0e\\ufe0f",c="\\u200d",d=RegExp("["+c+a+i+l+"]");function h(g){return d.test(g)}return Ou=h,Ou}var Lu,iv;function b1(){if(iv)return Lu;iv=1;var a="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",i=e+t+o,l="\\ufe0e\\ufe0f",c="["+a+"]",d="["+i+"]",h="\\ud83c[\\udffb-\\udfff]",g="(?:"+d+"|"+h+")",v="[^"+a+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",w=g+"?",T="["+l+"]?",S="(?:"+x+"(?:"+[v,y,b].join("|")+")"+T+w+")*",O=T+w+S,L="(?:"+[v+d+"?",d,y,b,c].join("|")+")",U=RegExp(h+"(?="+h+")|"+L+O,"g");function H(X){return X.match(U)||[]}return Lu=H,Lu}var Du,sv;function k1(){if(sv)return Du;sv=1;var a=v1(),e=y1(),t=b1();function o(i){return e(i)?t(i):a(i)}return Du=o,Du}var Pu,av;function w1(){if(av)return Pu;av=1;function a(e,t){for(var o=-1,i=e==null?0:e.length,l=Array(i);++o<i;)l[o]=t(e[o],o,e);return l}return Pu=a,Pu}var Mu,lv;function T1(){if(lv)return Mu;lv=1;var a=w1();function e(t,o){return a(o,function(i){return t[i]})}return Mu=e,Mu}var Fu,cv;function x1(){if(cv)return Fu;cv=1;var a=T1(),e=fm();function t(o){return o==null?[]:a(o,e(o))}return Fu=t,Fu}var zu,uv;function E1(){if(uv)return zu;uv=1;var a=Zi(),e=Dm(),t=Ul(),o=Jr(),i=Em(),l=m1(),c=Qg(),d=Jg(),h=k1(),g=x1(),v="[object Map]",y="[object Set]",b=a?a.iterator:void 0;function x(w){if(!w)return[];if(o(w))return i(w)?h(w):e(w);if(b&&w[b])return l(w[b]());var T=t(w),S=T==v?c:T==y?d:g;return S(w)}return zu=x,zu}var S1=E1();const C1=Ne(S1);var dv=(a=>(a.VERBOSE="VERBOSE",a.INFO="INFO",a.WARN="WARN",a.ERROR="ERROR",a))(dv||{});const as=()=>"0.3.1-beta.5",ie={BACKSPACE:8,TAB:9,ENTER:13,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46},B1={LEFT:0},A1=1e8,I1=16,Yt=(()=>{try{return Function("return this")()}catch(a){return}})();Yt&&typeof Yt.window=="undefined"&&(Yt.window=Yt);const ls=()=>{if(Yt!=null&&Yt.window)return Yt.window},fv=()=>{if(Yt!=null&&Yt.navigator)return Yt.navigator;const a=ls();return a==null?void 0:a.navigator},Wo=(a,e,t="log",o,i="color: inherit")=>{const l=typeof console=="undefined"?void 0:console;if(!l||typeof l[t]!="function")return;const c=["info","log","warn","error"].includes(t),d=[];switch(Wo.logLevel){case"ERROR":if(t!=="error")return;break;case"WARN":if(!["error","warn"].includes(t))return;break;case"INFO":if(!c||a)return;break}o&&d.push(o);const h=`Blok ${as()}`,g=`line-height: 1em;
|
|
1
|
+
(function(Ue,Ne){typeof exports=="object"&&typeof module!="undefined"?module.exports=Ne():typeof define=="function"&&define.amd?define(Ne):(Ue=typeof globalThis!="undefined"?globalThis:Ue||self,Ue.Blok=Ne())})(this,(function(){"use strict";var DA=Object.defineProperty,PA=Object.defineProperties;var MA=Object.getOwnPropertyDescriptors;var el=Object.getOwnPropertySymbols;var n0=Object.prototype.hasOwnProperty,r0=Object.prototype.propertyIsEnumerable;var t0=(Ue,Ne,ht)=>Ne in Ue?DA(Ue,Ne,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Ue[Ne]=ht,be=(Ue,Ne)=>{for(var ht in Ne||(Ne={}))n0.call(Ne,ht)&&t0(Ue,ht,Ne[ht]);if(el)for(var ht of el(Ne))r0.call(Ne,ht)&&t0(Ue,ht,Ne[ht]);return Ue},Tt=(Ue,Ne)=>PA(Ue,MA(Ne));var o0=(Ue,Ne)=>{var ht={};for(var Xt in Ue)n0.call(Ue,Xt)&&Ne.indexOf(Xt)<0&&(ht[Xt]=Ue[Xt]);if(Ue!=null&&el)for(var Xt of el(Ue))Ne.indexOf(Xt)<0&&r0.call(Ue,Xt)&&(ht[Xt]=Ue[Xt]);return ht};var Mr;var Ue=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ne(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var ht,Xt;function i0(){if(Xt)return ht;Xt=1;function a(){}return ht=Object.assign(a,{default:a,register:a,revert:function(){},__esModule:!0}),ht}i0(),typeof Element.prototype.scrollIntoViewIfNeeded=="undefined"&&(Element.prototype.scrollIntoViewIfNeeded=function(a){const e=a!=null?a:!0,t=this.parentElement;if(!t)return;const o=window.getComputedStyle(t,null),i=parseInt(o.getPropertyValue("border-top-width")),l=parseInt(o.getPropertyValue("border-left-width")),c=this.offsetTop-t.offsetTop<t.scrollTop,d=this.offsetTop-t.offsetTop+this.clientHeight-i>t.scrollTop+t.clientHeight,h=this.offsetLeft-t.offsetLeft<t.scrollLeft,g=this.offsetLeft-t.offsetLeft+this.clientWidth-l>t.scrollLeft+t.clientWidth,v=c&&!d;(c||d)&&e&&(t.scrollTop=this.offsetTop-t.offsetTop-t.clientHeight/2-i+this.clientHeight/2),(h||g)&&e&&(t.scrollLeft=this.offsetLeft-t.offsetLeft-t.clientWidth/2-l+this.clientWidth/2),(c||d||h||g)&&!e&&this.scrollIntoView(v)});const s0=globalThis.setTimeout.bind(globalThis),a0=globalThis.clearTimeout.bind(globalThis),Qi=new Map,l0=a=>{const e=Number(a);return Number.isFinite(e)&&e>0?e:Date.now()};typeof window.requestIdleCallback=="undefined"&&(window.requestIdleCallback=function(a){const e=Date.now(),t={},o=s0(()=>{const l=t.value;typeof l=="number"&&Qi.delete(l),a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1),i=l0(o);return t.value=i,Qi.set(i,o),i}),typeof window.cancelIdleCallback=="undefined"&&(window.cancelIdleCallback=function(a){const e=Qi.get(a);e!==void 0&&(Qi.delete(a),a0(e)),globalThis.clearTimeout(a)});const c0="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let u0=(a=21)=>{let e="",t=crypto.getRandomValues(new Uint8Array(a|=0));for(;a--;)e+=c0[t[a]&63];return e};var tl,np;function d0(){if(np)return tl;np=1;var a="Expected a function";function e(t,o,i){if(typeof t!="function")throw new TypeError(a);return setTimeout(function(){t.apply(void 0,i)},o)}return tl=e,tl}var nl,rp;function op(){if(rp)return nl;rp=1;function a(e){return e}return nl=a,nl}var rl,ip;function f0(){if(ip)return rl;ip=1;function a(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}return rl=a,rl}var ol,sp;function h0(){if(sp)return ol;sp=1;var a=f0(),e=Math.max;function t(o,i,l){return i=e(i===void 0?o.length-1:i,0),function(){for(var c=arguments,d=-1,h=e(c.length-i,0),g=Array(h);++d<h;)g[d]=c[i+d];d=-1;for(var v=Array(i+1);++d<i;)v[d]=c[d];return v[i]=l(g),a(o,this,v)}}return ol=t,ol}var il,ap;function p0(){if(ap)return il;ap=1;function a(e){return function(){return e}}return il=a,il}var sl,lp;function cp(){if(lp)return sl;lp=1;var a=typeof Ue=="object"&&Ue&&Ue.Object===Object&&Ue;return sl=a,sl}var al,up;function cn(){if(up)return al;up=1;var a=cp(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=a||e||Function("return this")();return al=t,al}var ll,dp;function Zi(){if(dp)return ll;dp=1;var a=cn(),e=a.Symbol;return ll=e,ll}var cl,fp;function g0(){if(fp)return cl;fp=1;var a=Zi(),e=Object.prototype,t=e.hasOwnProperty,o=e.toString,i=a?a.toStringTag:void 0;function l(c){var d=t.call(c,i),h=c[i];try{c[i]=void 0;var g=!0}catch(y){}var v=o.call(c);return g&&(d?c[i]=h:delete c[i]),v}return cl=l,cl}var ul,hp;function m0(){if(hp)return ul;hp=1;var a=Object.prototype,e=a.toString;function t(o){return e.call(o)}return ul=t,ul}var dl,pp;function Nn(){if(pp)return dl;pp=1;var a=Zi(),e=g0(),t=m0(),o="[object Null]",i="[object Undefined]",l=a?a.toStringTag:void 0;function c(d){return d==null?d===void 0?i:o:l&&l in Object(d)?e(d):t(d)}return dl=c,dl}var fl,gp;function kn(){if(gp)return fl;gp=1;function a(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return fl=a,fl}var hl,mp;function Ji(){if(mp)return hl;mp=1;var a=Nn(),e=kn(),t="[object AsyncFunction]",o="[object Function]",i="[object GeneratorFunction]",l="[object Proxy]";function c(d){if(!e(d))return!1;var h=a(d);return h==o||h==i||h==t||h==l}return hl=c,hl}var pl,vp;function v0(){if(vp)return pl;vp=1;var a=cn(),e=a["__core-js_shared__"];return pl=e,pl}var gl,yp;function y0(){if(yp)return gl;yp=1;var a=v0(),e=(function(){var o=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})();function t(o){return!!e&&e in o}return gl=t,gl}var ml,bp;function kp(){if(bp)return ml;bp=1;var a=Function.prototype,e=a.toString;function t(o){if(o!=null){try{return e.call(o)}catch(i){}try{return o+""}catch(i){}}return""}return ml=t,ml}var vl,wp;function b0(){if(wp)return vl;wp=1;var a=Ji(),e=y0(),t=kn(),o=kp(),i=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,d=Object.prototype,h=c.toString,g=d.hasOwnProperty,v=RegExp("^"+h.call(g).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y(b){if(!t(b)||e(b))return!1;var x=a(b)?v:l;return x.test(o(b))}return vl=y,vl}var yl,Tp;function k0(){if(Tp)return yl;Tp=1;function a(e,t){return e==null?void 0:e[t]}return yl=a,yl}var bl,xp;function Tr(){if(xp)return bl;xp=1;var a=b0(),e=k0();function t(o,i){var l=e(o,i);return a(l)?l:void 0}return bl=t,bl}var kl,Ep;function Sp(){if(Ep)return kl;Ep=1;var a=Tr(),e=(function(){try{var t=a(Object,"defineProperty");return t({},"",{}),t}catch(o){}})();return kl=e,kl}var wl,Cp;function w0(){if(Cp)return wl;Cp=1;var a=p0(),e=Sp(),t=op(),o=e?function(i,l){return e(i,"toString",{configurable:!0,enumerable:!1,value:a(l),writable:!0})}:t;return wl=o,wl}var Tl,Bp;function T0(){if(Bp)return Tl;Bp=1;var a=800,e=16,t=Date.now;function o(i){var l=0,c=0;return function(){var d=t(),h=e-(d-c);if(c=d,h>0){if(++l>=a)return arguments[0]}else l=0;return i.apply(void 0,arguments)}}return Tl=o,Tl}var xl,Ap;function x0(){if(Ap)return xl;Ap=1;var a=w0(),e=T0(),t=e(a);return xl=t,xl}var El,Ip;function _p(){if(Ip)return El;Ip=1;var a=op(),e=h0(),t=x0();function o(i,l){return t(e(i,l,a),i+"")}return El=o,El}var Sl,Rp;function E0(){if(Rp)return Sl;Rp=1;var a=/\s/;function e(t){for(var o=t.length;o--&&a.test(t.charAt(o)););return o}return Sl=e,Sl}var Cl,Np;function S0(){if(Np)return Cl;Np=1;var a=E0(),e=/^\s+/;function t(o){return o&&o.slice(0,a(o)+1).replace(e,"")}return Cl=t,Cl}var Bl,Op;function wn(){if(Op)return Bl;Op=1;function a(e){return e!=null&&typeof e=="object"}return Bl=a,Bl}var Al,Lp;function C0(){if(Lp)return Al;Lp=1;var a=Nn(),e=wn(),t="[object Symbol]";function o(i){return typeof i=="symbol"||e(i)&&a(i)==t}return Al=o,Al}var Il,Dp;function Pp(){if(Dp)return Il;Dp=1;var a=S0(),e=kn(),t=C0(),o=NaN,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;function h(g){if(typeof g=="number")return g;if(t(g))return o;if(e(g)){var v=typeof g.valueOf=="function"?g.valueOf():g;g=e(v)?v+"":v}if(typeof g!="string")return g===0?g:+g;g=a(g);var y=l.test(g);return y||c.test(g)?d(g.slice(2),y?2:8):i.test(g)?o:+g}return Il=h,Il}var _l,Mp;function B0(){if(Mp)return _l;Mp=1;var a=d0(),e=_p(),t=Pp(),o=e(function(i,l,c){return a(i,t(l)||0,c)});return _l=o,_l}var A0=B0();const I0=Ne(A0);var Rl,Fp;function _0(){if(Fp)return Rl;Fp=1;var a=Nn(),e=wn(),t="[object Boolean]";function o(i){return i===!0||i===!1||e(i)&&a(i)==t}return Rl=o,Rl}var R0=_0();const N0=Ne(R0);var Nl,zp;function es(){if(zp)return Nl;zp=1;var a=Object.prototype;function e(t){var o=t&&t.constructor,i=typeof o=="function"&&o.prototype||a;return t===i}return Nl=e,Nl}var Ol,Hp;function jp(){if(Hp)return Ol;Hp=1;function a(e,t){return function(o){return e(t(o))}}return Ol=a,Ol}var Ll,qp;function O0(){if(qp)return Ll;qp=1;var a=jp(),e=a(Object.keys,Object);return Ll=e,Ll}var Dl,Up;function Wp(){if(Up)return Dl;Up=1;var a=es(),e=O0(),t=Object.prototype,o=t.hasOwnProperty;function i(l){if(!a(l))return e(l);var c=[];for(var d in Object(l))o.call(l,d)&&d!="constructor"&&c.push(d);return c}return Dl=i,Dl}var Pl,Kp;function L0(){if(Kp)return Pl;Kp=1;var a=Tr(),e=cn(),t=a(e,"DataView");return Pl=t,Pl}var Ml,Vp;function Fl(){if(Vp)return Ml;Vp=1;var a=Tr(),e=cn(),t=a(e,"Map");return Ml=t,Ml}var zl,$p;function D0(){if($p)return zl;$p=1;var a=Tr(),e=cn(),t=a(e,"Promise");return zl=t,zl}var Hl,Gp;function P0(){if(Gp)return Hl;Gp=1;var a=Tr(),e=cn(),t=a(e,"Set");return Hl=t,Hl}var jl,Xp;function M0(){if(Xp)return jl;Xp=1;var a=Tr(),e=cn(),t=a(e,"WeakMap");return jl=t,jl}var ql,Yp;function Ul(){if(Yp)return ql;Yp=1;var a=L0(),e=Fl(),t=D0(),o=P0(),i=M0(),l=Nn(),c=kp(),d="[object Map]",h="[object Object]",g="[object Promise]",v="[object Set]",y="[object WeakMap]",b="[object DataView]",x=c(a),w=c(e),T=c(t),S=c(o),O=c(i),L=l;return(a&&L(new a(new ArrayBuffer(1)))!=b||e&&L(new e)!=d||t&&L(t.resolve())!=g||o&&L(new o)!=v||i&&L(new i)!=y)&&(L=function(U){var H=l(U),X=H==h?U.constructor:void 0,q=X?c(X):"";if(q)switch(q){case x:return b;case w:return d;case T:return g;case S:return v;case O:return y}return H}),ql=L,ql}var Wl,Qp;function F0(){if(Qp)return Wl;Qp=1;var a=Nn(),e=wn(),t="[object Arguments]";function o(i){return e(i)&&a(i)==t}return Wl=o,Wl}var Kl,Zp;function Vl(){if(Zp)return Kl;Zp=1;var a=F0(),e=wn(),t=Object.prototype,o=t.hasOwnProperty,i=t.propertyIsEnumerable,l=a((function(){return arguments})())?a:function(c){return e(c)&&o.call(c,"callee")&&!i.call(c,"callee")};return Kl=l,Kl}var $l,Jp;function Zr(){if(Jp)return $l;Jp=1;var a=Array.isArray;return $l=a,$l}var Gl,eg;function tg(){if(eg)return Gl;eg=1;var a=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=a}return Gl=e,Gl}var Xl,ng;function Jr(){if(ng)return Xl;ng=1;var a=Ji(),e=tg();function t(o){return o!=null&&e(o.length)&&!a(o)}return Xl=t,Xl}var Ho={exports:{}},Yl,rg;function z0(){if(rg)return Yl;rg=1;function a(){return!1}return Yl=a,Yl}Ho.exports;var og;function ts(){return og||(og=1,(function(a,e){var t=cn(),o=z0(),i=e&&!e.nodeType&&e,l=i&&!0&&a&&!a.nodeType&&a,c=l&&l.exports===i,d=c?t.Buffer:void 0,h=d?d.isBuffer:void 0,g=h||o;a.exports=g})(Ho,Ho.exports)),Ho.exports}var Ql,ig;function H0(){if(ig)return Ql;ig=1;var a=Nn(),e=tg(),t=wn(),o="[object Arguments]",i="[object Array]",l="[object Boolean]",c="[object Date]",d="[object Error]",h="[object Function]",g="[object Map]",v="[object Number]",y="[object Object]",b="[object RegExp]",x="[object Set]",w="[object String]",T="[object WeakMap]",S="[object ArrayBuffer]",O="[object DataView]",L="[object Float32Array]",U="[object Float64Array]",H="[object Int8Array]",X="[object Int16Array]",q="[object Int32Array]",W="[object Uint8Array]",F="[object Uint8ClampedArray]",ne="[object Uint16Array]",ce="[object Uint32Array]",Q={};Q[L]=Q[U]=Q[H]=Q[X]=Q[q]=Q[W]=Q[F]=Q[ne]=Q[ce]=!0,Q[o]=Q[i]=Q[S]=Q[l]=Q[O]=Q[c]=Q[d]=Q[h]=Q[g]=Q[v]=Q[y]=Q[b]=Q[x]=Q[w]=Q[T]=!1;function ye(Z){return t(Z)&&e(Z.length)&&!!Q[a(Z)]}return Ql=ye,Ql}var Zl,sg;function j0(){if(sg)return Zl;sg=1;function a(e){return function(t){return e(t)}}return Zl=a,Zl}var jo={exports:{}};jo.exports;var ag;function q0(){return ag||(ag=1,(function(a,e){var t=cp(),o=e&&!e.nodeType&&e,i=o&&!0&&a&&!a.nodeType&&a,l=i&&i.exports===o,c=l&&t.process,d=(function(){try{var h=i&&i.require&&i.require("util").types;return h||c&&c.binding&&c.binding("util")}catch(g){}})();a.exports=d})(jo,jo.exports)),jo.exports}var Jl,lg;function ns(){if(lg)return Jl;lg=1;var a=H0(),e=j0(),t=q0(),o=t&&t.isTypedArray,i=o?e(o):a;return Jl=i,Jl}var ec,cg;function U0(){if(cg)return ec;cg=1;var a=Wp(),e=Ul(),t=Vl(),o=Zr(),i=Jr(),l=ts(),c=es(),d=ns(),h="[object Map]",g="[object Set]",v=Object.prototype,y=v.hasOwnProperty;function b(x){if(x==null)return!0;if(i(x)&&(o(x)||typeof x=="string"||typeof x.splice=="function"||l(x)||d(x)||t(x)))return!x.length;var w=e(x);if(w==h||w==g)return!x.size;if(c(x))return!a(x).length;for(var T in x)if(y.call(x,T))return!1;return!0}return ec=b,ec}var W0=U0();const K0=Ne(W0);var tc,ug;function V0(){if(ug)return tc;ug=1;function a(){this.__data__=[],this.size=0}return tc=a,tc}var nc,dg;function qo(){if(dg)return nc;dg=1;function a(e,t){return e===t||e!==e&&t!==t}return nc=a,nc}var rc,fg;function rs(){if(fg)return rc;fg=1;var a=qo();function e(t,o){for(var i=t.length;i--;)if(a(t[i][0],o))return i;return-1}return rc=e,rc}var oc,hg;function $0(){if(hg)return oc;hg=1;var a=rs(),e=Array.prototype,t=e.splice;function o(i){var l=this.__data__,c=a(l,i);if(c<0)return!1;var d=l.length-1;return c==d?l.pop():t.call(l,c,1),--this.size,!0}return oc=o,oc}var ic,pg;function G0(){if(pg)return ic;pg=1;var a=rs();function e(t){var o=this.__data__,i=a(o,t);return i<0?void 0:o[i][1]}return ic=e,ic}var sc,gg;function X0(){if(gg)return sc;gg=1;var a=rs();function e(t){return a(this.__data__,t)>-1}return sc=e,sc}var ac,mg;function Y0(){if(mg)return ac;mg=1;var a=rs();function e(t,o){var i=this.__data__,l=a(i,t);return l<0?(++this.size,i.push([t,o])):i[l][1]=o,this}return ac=e,ac}var lc,vg;function os(){if(vg)return lc;vg=1;var a=V0(),e=$0(),t=G0(),o=X0(),i=Y0();function l(c){var d=-1,h=c==null?0:c.length;for(this.clear();++d<h;){var g=c[d];this.set(g[0],g[1])}}return l.prototype.clear=a,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=o,l.prototype.set=i,lc=l,lc}var cc,yg;function Q0(){if(yg)return cc;yg=1;var a=os();function e(){this.__data__=new a,this.size=0}return cc=e,cc}var uc,bg;function Z0(){if(bg)return uc;bg=1;function a(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}return uc=a,uc}var dc,kg;function J0(){if(kg)return dc;kg=1;function a(e){return this.__data__.get(e)}return dc=a,dc}var fc,wg;function eT(){if(wg)return fc;wg=1;function a(e){return this.__data__.has(e)}return fc=a,fc}var hc,Tg;function is(){if(Tg)return hc;Tg=1;var a=Tr(),e=a(Object,"create");return hc=e,hc}var pc,xg;function tT(){if(xg)return pc;xg=1;var a=is();function e(){this.__data__=a?a(null):{},this.size=0}return pc=e,pc}var gc,Eg;function nT(){if(Eg)return gc;Eg=1;function a(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return gc=a,gc}var mc,Sg;function rT(){if(Sg)return mc;Sg=1;var a=is(),e="__lodash_hash_undefined__",t=Object.prototype,o=t.hasOwnProperty;function i(l){var c=this.__data__;if(a){var d=c[l];return d===e?void 0:d}return o.call(c,l)?c[l]:void 0}return mc=i,mc}var vc,Cg;function oT(){if(Cg)return vc;Cg=1;var a=is(),e=Object.prototype,t=e.hasOwnProperty;function o(i){var l=this.__data__;return a?l[i]!==void 0:t.call(l,i)}return vc=o,vc}var yc,Bg;function iT(){if(Bg)return yc;Bg=1;var a=is(),e="__lodash_hash_undefined__";function t(o,i){var l=this.__data__;return this.size+=this.has(o)?0:1,l[o]=a&&i===void 0?e:i,this}return yc=t,yc}var bc,Ag;function sT(){if(Ag)return bc;Ag=1;var a=tT(),e=nT(),t=rT(),o=oT(),i=iT();function l(c){var d=-1,h=c==null?0:c.length;for(this.clear();++d<h;){var g=c[d];this.set(g[0],g[1])}}return l.prototype.clear=a,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=o,l.prototype.set=i,bc=l,bc}var kc,Ig;function aT(){if(Ig)return kc;Ig=1;var a=sT(),e=os(),t=Fl();function o(){this.size=0,this.__data__={hash:new a,map:new(t||e),string:new a}}return kc=o,kc}var wc,_g;function lT(){if(_g)return wc;_g=1;function a(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return wc=a,wc}var Tc,Rg;function ss(){if(Rg)return Tc;Rg=1;var a=lT();function e(t,o){var i=t.__data__;return a(o)?i[typeof o=="string"?"string":"hash"]:i.map}return Tc=e,Tc}var xc,Ng;function cT(){if(Ng)return xc;Ng=1;var a=ss();function e(t){var o=a(this,t).delete(t);return this.size-=o?1:0,o}return xc=e,xc}var Ec,Og;function uT(){if(Og)return Ec;Og=1;var a=ss();function e(t){return a(this,t).get(t)}return Ec=e,Ec}var Sc,Lg;function dT(){if(Lg)return Sc;Lg=1;var a=ss();function e(t){return a(this,t).has(t)}return Sc=e,Sc}var Cc,Dg;function fT(){if(Dg)return Cc;Dg=1;var a=ss();function e(t,o){var i=a(this,t),l=i.size;return i.set(t,o),this.size+=i.size==l?0:1,this}return Cc=e,Cc}var Bc,Pg;function Mg(){if(Pg)return Bc;Pg=1;var a=aT(),e=cT(),t=uT(),o=dT(),i=fT();function l(c){var d=-1,h=c==null?0:c.length;for(this.clear();++d<h;){var g=c[d];this.set(g[0],g[1])}}return l.prototype.clear=a,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=o,l.prototype.set=i,Bc=l,Bc}var Ac,Fg;function hT(){if(Fg)return Ac;Fg=1;var a=os(),e=Fl(),t=Mg(),o=200;function i(l,c){var d=this.__data__;if(d instanceof a){var h=d.__data__;if(!e||h.length<o-1)return h.push([l,c]),this.size=++d.size,this;d=this.__data__=new t(h)}return d.set(l,c),this.size=d.size,this}return Ac=i,Ac}var Ic,zg;function Hg(){if(zg)return Ic;zg=1;var a=os(),e=Q0(),t=Z0(),o=J0(),i=eT(),l=hT();function c(d){var h=this.__data__=new a(d);this.size=h.size}return c.prototype.clear=e,c.prototype.delete=t,c.prototype.get=o,c.prototype.has=i,c.prototype.set=l,Ic=c,Ic}var _c,jg;function pT(){if(jg)return _c;jg=1;var a="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,a),this}return _c=e,_c}var Rc,qg;function gT(){if(qg)return Rc;qg=1;function a(e){return this.__data__.has(e)}return Rc=a,Rc}var Nc,Ug;function mT(){if(Ug)return Nc;Ug=1;var a=Mg(),e=pT(),t=gT();function o(i){var l=-1,c=i==null?0:i.length;for(this.__data__=new a;++l<c;)this.add(i[l])}return o.prototype.add=o.prototype.push=e,o.prototype.has=t,Nc=o,Nc}var Oc,Wg;function vT(){if(Wg)return Oc;Wg=1;function a(e,t){for(var o=-1,i=e==null?0:e.length;++o<i;)if(t(e[o],o,e))return!0;return!1}return Oc=a,Oc}var Lc,Kg;function yT(){if(Kg)return Lc;Kg=1;function a(e,t){return e.has(t)}return Lc=a,Lc}var Dc,Vg;function $g(){if(Vg)return Dc;Vg=1;var a=mT(),e=vT(),t=yT(),o=1,i=2;function l(c,d,h,g,v,y){var b=h&o,x=c.length,w=d.length;if(x!=w&&!(b&&w>x))return!1;var T=y.get(c),S=y.get(d);if(T&&S)return T==d&&S==c;var O=-1,L=!0,U=h&i?new a:void 0;for(y.set(c,d),y.set(d,c);++O<x;){var H=c[O],X=d[O];if(g)var q=b?g(X,H,O,d,c,y):g(H,X,O,c,d,y);if(q!==void 0){if(q)continue;L=!1;break}if(U){if(!e(d,function(W,F){if(!t(U,F)&&(H===W||v(H,W,h,g,y)))return U.push(F)})){L=!1;break}}else if(!(H===X||v(H,X,h,g,y))){L=!1;break}}return y.delete(c),y.delete(d),L}return Dc=l,Dc}var Pc,Gg;function Xg(){if(Gg)return Pc;Gg=1;var a=cn(),e=a.Uint8Array;return Pc=e,Pc}var Mc,Yg;function Qg(){if(Yg)return Mc;Yg=1;function a(e){var t=-1,o=Array(e.size);return e.forEach(function(i,l){o[++t]=[l,i]}),o}return Mc=a,Mc}var Fc,Zg;function Jg(){if(Zg)return Fc;Zg=1;function a(e){var t=-1,o=Array(e.size);return e.forEach(function(i){o[++t]=i}),o}return Fc=a,Fc}var zc,em;function bT(){if(em)return zc;em=1;var a=Zi(),e=Xg(),t=qo(),o=$g(),i=Qg(),l=Jg(),c=1,d=2,h="[object Boolean]",g="[object Date]",v="[object Error]",y="[object Map]",b="[object Number]",x="[object RegExp]",w="[object Set]",T="[object String]",S="[object Symbol]",O="[object ArrayBuffer]",L="[object DataView]",U=a?a.prototype:void 0,H=U?U.valueOf:void 0;function X(q,W,F,ne,ce,Q,ye){switch(F){case L:if(q.byteLength!=W.byteLength||q.byteOffset!=W.byteOffset)return!1;q=q.buffer,W=W.buffer;case O:return!(q.byteLength!=W.byteLength||!Q(new e(q),new e(W)));case h:case g:case b:return t(+q,+W);case v:return q.name==W.name&&q.message==W.message;case x:case T:return q==W+"";case y:var Z=i;case w:var we=ne&c;if(Z||(Z=l),q.size!=W.size&&!we)return!1;var Oe=ye.get(q);if(Oe)return Oe==W;ne|=d,ye.set(q,W);var xe=o(Z(q),Z(W),ne,ce,Q,ye);return ye.delete(q),xe;case S:if(H)return H.call(q)==H.call(W)}return!1}return zc=X,zc}var Hc,tm;function kT(){if(tm)return Hc;tm=1;function a(e,t){for(var o=-1,i=t.length,l=e.length;++o<i;)e[l+o]=t[o];return e}return Hc=a,Hc}var jc,nm;function wT(){if(nm)return jc;nm=1;var a=kT(),e=Zr();function t(o,i,l){var c=i(o);return e(o)?c:a(c,l(o))}return jc=t,jc}var qc,rm;function TT(){if(rm)return qc;rm=1;function a(e,t){for(var o=-1,i=e==null?0:e.length,l=0,c=[];++o<i;){var d=e[o];t(d,o,e)&&(c[l++]=d)}return c}return qc=a,qc}var Uc,om;function xT(){if(om)return Uc;om=1;function a(){return[]}return Uc=a,Uc}var Wc,im;function ET(){if(im)return Wc;im=1;var a=TT(),e=xT(),t=Object.prototype,o=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(c){return c==null?[]:(c=Object(c),a(i(c),function(d){return o.call(c,d)}))}:e;return Wc=l,Wc}var Kc,sm;function ST(){if(sm)return Kc;sm=1;function a(e,t){for(var o=-1,i=Array(e);++o<e;)i[o]=t(o);return i}return Kc=a,Kc}var Vc,am;function lm(){if(am)return Vc;am=1;var a=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(o,i){var l=typeof o;return i=i==null?a:i,!!i&&(l=="number"||l!="symbol"&&e.test(o))&&o>-1&&o%1==0&&o<i}return Vc=t,Vc}var $c,cm;function um(){if(cm)return $c;cm=1;var a=ST(),e=Vl(),t=Zr(),o=ts(),i=lm(),l=ns(),c=Object.prototype,d=c.hasOwnProperty;function h(g,v){var y=t(g),b=!y&&e(g),x=!y&&!b&&o(g),w=!y&&!b&&!x&&l(g),T=y||b||x||w,S=T?a(g.length,String):[],O=S.length;for(var L in g)(v||d.call(g,L))&&!(T&&(L=="length"||x&&(L=="offset"||L=="parent")||w&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||i(L,O)))&&S.push(L);return S}return $c=h,$c}var Gc,dm;function fm(){if(dm)return Gc;dm=1;var a=um(),e=Wp(),t=Jr();function o(i){return t(i)?a(i):e(i)}return Gc=o,Gc}var Xc,hm;function CT(){if(hm)return Xc;hm=1;var a=wT(),e=ET(),t=fm();function o(i){return a(i,t,e)}return Xc=o,Xc}var Yc,pm;function BT(){if(pm)return Yc;pm=1;var a=CT(),e=1,t=Object.prototype,o=t.hasOwnProperty;function i(l,c,d,h,g,v){var y=d&e,b=a(l),x=b.length,w=a(c),T=w.length;if(x!=T&&!y)return!1;for(var S=x;S--;){var O=b[S];if(!(y?O in c:o.call(c,O)))return!1}var L=v.get(l),U=v.get(c);if(L&&U)return L==c&&U==l;var H=!0;v.set(l,c),v.set(c,l);for(var X=y;++S<x;){O=b[S];var q=l[O],W=c[O];if(h)var F=y?h(W,q,O,c,l,v):h(q,W,O,l,c,v);if(!(F===void 0?q===W||g(q,W,d,h,v):F)){H=!1;break}X||(X=O=="constructor")}if(H&&!X){var ne=l.constructor,ce=c.constructor;ne!=ce&&"constructor"in l&&"constructor"in c&&!(typeof ne=="function"&&ne instanceof ne&&typeof ce=="function"&&ce instanceof ce)&&(H=!1)}return v.delete(l),v.delete(c),H}return Yc=i,Yc}var Qc,gm;function AT(){if(gm)return Qc;gm=1;var a=Hg(),e=$g(),t=bT(),o=BT(),i=Ul(),l=Zr(),c=ts(),d=ns(),h=1,g="[object Arguments]",v="[object Array]",y="[object Object]",b=Object.prototype,x=b.hasOwnProperty;function w(T,S,O,L,U,H){var X=l(T),q=l(S),W=X?v:i(T),F=q?v:i(S);W=W==g?y:W,F=F==g?y:F;var ne=W==y,ce=F==y,Q=W==F;if(Q&&c(T)){if(!c(S))return!1;X=!0,ne=!1}if(Q&&!ne)return H||(H=new a),X||d(T)?e(T,S,O,L,U,H):t(T,S,W,O,L,U,H);if(!(O&h)){var ye=ne&&x.call(T,"__wrapped__"),Z=ce&&x.call(S,"__wrapped__");if(ye||Z){var we=ye?T.value():T,Oe=Z?S.value():S;return H||(H=new a),U(we,Oe,O,L,H)}}return Q?(H||(H=new a),o(T,S,O,L,U,H)):!1}return Qc=w,Qc}var Zc,mm;function IT(){if(mm)return Zc;mm=1;var a=AT(),e=wn();function t(o,i,l,c,d){return o===i?!0:o==null||i==null||!e(o)&&!e(i)?o!==o&&i!==i:a(o,i,l,c,t,d)}return Zc=t,Zc}var Jc,vm;function _T(){if(vm)return Jc;vm=1;var a=IT();function e(t,o){return a(t,o)}return Jc=e,Jc}var RT=_T();const NT=Ne(RT);var OT=Ji();const LT=Ne(OT);var eu,ym;function DT(){if(ym)return eu;ym=1;var a=Nn(),e=wn(),t="[object Number]";function o(i){return typeof i=="number"||e(i)&&a(i)==t}return eu=o,eu}var PT=DT();const MT=Ne(PT);var tu,bm;function km(){if(bm)return tu;bm=1;var a=jp(),e=a(Object.getPrototypeOf,Object);return tu=e,tu}var nu,wm;function Tm(){if(wm)return nu;wm=1;var a=Nn(),e=km(),t=wn(),o="[object Object]",i=Function.prototype,l=Object.prototype,c=i.toString,d=l.hasOwnProperty,h=c.call(Object);function g(v){if(!t(v)||a(v)!=o)return!1;var y=e(v);if(y===null)return!0;var b=d.call(y,"constructor")&&y.constructor;return typeof b=="function"&&b instanceof b&&c.call(b)==h}return nu=g,nu}var FT=Tm();const zT=Ne(FT);var ru,xm;function Em(){if(xm)return ru;xm=1;var a=Nn(),e=Zr(),t=wn(),o="[object String]";function i(l){return typeof l=="string"||!e(l)&&t(l)&&a(l)==o}return ru=i,ru}var HT=Em();const jT=Ne(HT);var ou,Sm;function qT(){if(Sm)return ou;Sm=1;function a(e){return e===void 0}return ou=a,ou}var UT=qT();const WT=Ne(UT);var iu,Cm;function su(){if(Cm)return iu;Cm=1;var a=Sp();function e(t,o,i){o=="__proto__"&&a?a(t,o,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[o]=i}return iu=e,iu}var au,Bm;function Am(){if(Bm)return au;Bm=1;var a=su(),e=qo();function t(o,i,l){(l!==void 0&&!e(o[i],l)||l===void 0&&!(i in o))&&a(o,i,l)}return au=t,au}var lu,Im;function KT(){if(Im)return lu;Im=1;function a(e){return function(t,o,i){for(var l=-1,c=Object(t),d=i(t),h=d.length;h--;){var g=d[e?h:++l];if(o(c[g],g,c)===!1)break}return t}}return lu=a,lu}var cu,_m;function VT(){if(_m)return cu;_m=1;var a=KT(),e=a();return cu=e,cu}var Uo={exports:{}};Uo.exports;var Rm;function $T(){return Rm||(Rm=1,(function(a,e){var t=cn(),o=e&&!e.nodeType&&e,i=o&&!0&&a&&!a.nodeType&&a,l=i&&i.exports===o,c=l?t.Buffer:void 0,d=c?c.allocUnsafe:void 0;function h(g,v){if(v)return g.slice();var y=g.length,b=d?d(y):new g.constructor(y);return g.copy(b),b}a.exports=h})(Uo,Uo.exports)),Uo.exports}var uu,Nm;function GT(){if(Nm)return uu;Nm=1;var a=Xg();function e(t){var o=new t.constructor(t.byteLength);return new a(o).set(new a(t)),o}return uu=e,uu}var du,Om;function XT(){if(Om)return du;Om=1;var a=GT();function e(t,o){var i=o?a(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}return du=e,du}var fu,Lm;function Dm(){if(Lm)return fu;Lm=1;function a(e,t){var o=-1,i=e.length;for(t||(t=Array(i));++o<i;)t[o]=e[o];return t}return fu=a,fu}var hu,Pm;function YT(){if(Pm)return hu;Pm=1;var a=kn(),e=Object.create,t=(function(){function o(){}return function(i){if(!a(i))return{};if(e)return e(i);o.prototype=i;var l=new o;return o.prototype=void 0,l}})();return hu=t,hu}var pu,Mm;function QT(){if(Mm)return pu;Mm=1;var a=YT(),e=km(),t=es();function o(i){return typeof i.constructor=="function"&&!t(i)?a(e(i)):{}}return pu=o,pu}var gu,Fm;function ZT(){if(Fm)return gu;Fm=1;var a=Jr(),e=wn();function t(o){return e(o)&&a(o)}return gu=t,gu}var mu,zm;function Hm(){if(zm)return mu;zm=1;function a(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}return mu=a,mu}var vu,jm;function JT(){if(jm)return vu;jm=1;var a=su(),e=qo(),t=Object.prototype,o=t.hasOwnProperty;function i(l,c,d){var h=l[c];(!(o.call(l,c)&&e(h,d))||d===void 0&&!(c in l))&&a(l,c,d)}return vu=i,vu}var yu,qm;function e1(){if(qm)return yu;qm=1;var a=JT(),e=su();function t(o,i,l,c){var d=!l;l||(l={});for(var h=-1,g=i.length;++h<g;){var v=i[h],y=c?c(l[v],o[v],v,l,o):void 0;y===void 0&&(y=o[v]),d?e(l,v,y):a(l,v,y)}return l}return yu=t,yu}var bu,Um;function t1(){if(Um)return bu;Um=1;function a(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}return bu=a,bu}var ku,Wm;function n1(){if(Wm)return ku;Wm=1;var a=kn(),e=es(),t=t1(),o=Object.prototype,i=o.hasOwnProperty;function l(c){if(!a(c))return t(c);var d=e(c),h=[];for(var g in c)g=="constructor"&&(d||!i.call(c,g))||h.push(g);return h}return ku=l,ku}var wu,Km;function Vm(){if(Km)return wu;Km=1;var a=um(),e=n1(),t=Jr();function o(i){return t(i)?a(i,!0):e(i)}return wu=o,wu}var Tu,$m;function r1(){if($m)return Tu;$m=1;var a=e1(),e=Vm();function t(o){return a(o,e(o))}return Tu=t,Tu}var xu,Gm;function o1(){if(Gm)return xu;Gm=1;var a=Am(),e=$T(),t=XT(),o=Dm(),i=QT(),l=Vl(),c=Zr(),d=ZT(),h=ts(),g=Ji(),v=kn(),y=Tm(),b=ns(),x=Hm(),w=r1();function T(S,O,L,U,H,X,q){var W=x(S,L),F=x(O,L),ne=q.get(F);if(ne){a(S,L,ne);return}var ce=X?X(W,F,L+"",S,O,q):void 0,Q=ce===void 0;if(Q){var ye=c(F),Z=!ye&&h(F),we=!ye&&!Z&&b(F);ce=F,ye||Z||we?c(W)?ce=W:d(W)?ce=o(W):Z?(Q=!1,ce=e(F,!0)):we?(Q=!1,ce=t(F,!0)):ce=[]:y(F)||l(F)?(ce=W,l(W)?ce=w(W):(!v(W)||g(W))&&(ce=i(F))):Q=!1}Q&&(q.set(F,ce),H(ce,F,U,X,q),q.delete(F)),a(S,L,ce)}return xu=T,xu}var Eu,Xm;function i1(){if(Xm)return Eu;Xm=1;var a=Hg(),e=Am(),t=VT(),o=o1(),i=kn(),l=Vm(),c=Hm();function d(h,g,v,y,b){h!==g&&t(g,function(x,w){if(b||(b=new a),i(x))o(h,g,w,v,d,y,b);else{var T=y?y(c(h,w),x,w+"",h,g,b):void 0;T===void 0&&(T=x),e(h,w,T)}},l)}return Eu=d,Eu}var Su,Ym;function s1(){if(Ym)return Su;Ym=1;var a=qo(),e=Jr(),t=lm(),o=kn();function i(l,c,d){if(!o(d))return!1;var h=typeof c;return(h=="number"?e(d)&&t(c,d.length):h=="string"&&c in d)?a(d[c],l):!1}return Su=i,Su}var Cu,Qm;function a1(){if(Qm)return Cu;Qm=1;var a=_p(),e=s1();function t(o){return a(function(i,l){var c=-1,d=l.length,h=d>1?l[d-1]:void 0,g=d>2?l[2]:void 0;for(h=o.length>3&&typeof h=="function"?(d--,h):void 0,g&&e(l[0],l[1],g)&&(h=d<3?void 0:h,d=1),i=Object(i);++c<d;){var v=l[c];v&&o(i,v,c,h)}return i})}return Cu=t,Cu}var Bu,Zm;function l1(){if(Zm)return Bu;Zm=1;var a=i1(),e=a1(),t=e(function(o,i,l,c){a(o,i,l,c)});return Bu=t,Bu}var c1=l1();const u1=Ne(c1);var Au,Jm;function d1(){if(Jm)return Au;Jm=1;var a=cn(),e=function(){return a.Date.now()};return Au=e,Au}var Iu,ev;function f1(){if(ev)return Iu;ev=1;var a=kn(),e=d1(),t=Pp(),o="Expected a function",i=Math.max,l=Math.min;function c(d,h,g){var v,y,b,x,w,T,S=0,O=!1,L=!1,U=!0;if(typeof d!="function")throw new TypeError(o);h=t(h)||0,a(g)&&(O=!!g.leading,L="maxWait"in g,b=L?i(t(g.maxWait)||0,h):b,U="trailing"in g?!!g.trailing:U);function H(Z){var we=v,Oe=y;return v=y=void 0,S=Z,x=d.apply(Oe,we),x}function X(Z){return S=Z,w=setTimeout(F,h),O?H(Z):x}function q(Z){var we=Z-T,Oe=Z-S,xe=h-we;return L?l(xe,b-Oe):xe}function W(Z){var we=Z-T,Oe=Z-S;return T===void 0||we>=h||we<0||L&&Oe>=b}function F(){var Z=e();if(W(Z))return ne(Z);w=setTimeout(F,q(Z))}function ne(Z){return w=void 0,U&&v?H(Z):(v=y=void 0,x)}function ce(){w!==void 0&&clearTimeout(w),S=0,v=T=y=w=void 0}function Q(){return w===void 0?x:ne(e())}function ye(){var Z=e(),we=W(Z);if(v=arguments,y=this,T=Z,we){if(w===void 0)return X(T);if(L)return clearTimeout(w),w=setTimeout(F,h),H(T)}return w===void 0&&(w=setTimeout(F,h)),x}return ye.cancel=ce,ye.flush=Q,ye}return Iu=c,Iu}var _u,tv;function h1(){if(tv)return _u;tv=1;var a=f1(),e=kn(),t="Expected a function";function o(i,l,c){var d=!0,h=!0;if(typeof i!="function")throw new TypeError(t);return e(c)&&(d="leading"in c?!!c.leading:d,h="trailing"in c?!!c.trailing:h),a(i,l,{leading:d,maxWait:l,trailing:h})}return _u=o,_u}var p1=h1();const g1=Ne(p1);var Ru,nv;function m1(){if(nv)return Ru;nv=1;function a(e){for(var t,o=[];!(t=e.next()).done;)o.push(t.value);return o}return Ru=a,Ru}var Nu,rv;function v1(){if(rv)return Nu;rv=1;function a(e){return e.split("")}return Nu=a,Nu}var Ou,ov;function y1(){if(ov)return Ou;ov=1;var a="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",i=e+t+o,l="\\ufe0e\\ufe0f",c="\\u200d",d=RegExp("["+c+a+i+l+"]");function h(g){return d.test(g)}return Ou=h,Ou}var Lu,iv;function b1(){if(iv)return Lu;iv=1;var a="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",i=e+t+o,l="\\ufe0e\\ufe0f",c="["+a+"]",d="["+i+"]",h="\\ud83c[\\udffb-\\udfff]",g="(?:"+d+"|"+h+")",v="[^"+a+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",w=g+"?",T="["+l+"]?",S="(?:"+x+"(?:"+[v,y,b].join("|")+")"+T+w+")*",O=T+w+S,L="(?:"+[v+d+"?",d,y,b,c].join("|")+")",U=RegExp(h+"(?="+h+")|"+L+O,"g");function H(X){return X.match(U)||[]}return Lu=H,Lu}var Du,sv;function k1(){if(sv)return Du;sv=1;var a=v1(),e=y1(),t=b1();function o(i){return e(i)?t(i):a(i)}return Du=o,Du}var Pu,av;function w1(){if(av)return Pu;av=1;function a(e,t){for(var o=-1,i=e==null?0:e.length,l=Array(i);++o<i;)l[o]=t(e[o],o,e);return l}return Pu=a,Pu}var Mu,lv;function T1(){if(lv)return Mu;lv=1;var a=w1();function e(t,o){return a(o,function(i){return t[i]})}return Mu=e,Mu}var Fu,cv;function x1(){if(cv)return Fu;cv=1;var a=T1(),e=fm();function t(o){return o==null?[]:a(o,e(o))}return Fu=t,Fu}var zu,uv;function E1(){if(uv)return zu;uv=1;var a=Zi(),e=Dm(),t=Ul(),o=Jr(),i=Em(),l=m1(),c=Qg(),d=Jg(),h=k1(),g=x1(),v="[object Map]",y="[object Set]",b=a?a.iterator:void 0;function x(w){if(!w)return[];if(o(w))return i(w)?h(w):e(w);if(b&&w[b])return l(w[b]());var T=t(w),S=T==v?c:T==y?d:g;return S(w)}return zu=x,zu}var S1=E1();const C1=Ne(S1);var dv=(a=>(a.VERBOSE="VERBOSE",a.INFO="INFO",a.WARN="WARN",a.ERROR="ERROR",a))(dv||{});const as=()=>"0.3.1-beta.8",ie={BACKSPACE:8,TAB:9,ENTER:13,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46},B1={LEFT:0},A1=1e8,I1=16,Yt=(()=>{try{return Function("return this")()}catch(a){return}})();Yt&&typeof Yt.window=="undefined"&&(Yt.window=Yt);const ls=()=>{if(Yt!=null&&Yt.window)return Yt.window},fv=()=>{if(Yt!=null&&Yt.navigator)return Yt.navigator;const a=ls();return a==null?void 0:a.navigator},Wo=(a,e,t="log",o,i="color: inherit")=>{const l=typeof console=="undefined"?void 0:console;if(!l||typeof l[t]!="function")return;const c=["info","log","warn","error"].includes(t),d=[];switch(Wo.logLevel){case"ERROR":if(t!=="error")return;break;case"WARN":if(!["error","warn"].includes(t))return;break;case"INFO":if(!c||a)return;break}o&&d.push(o);const h=`Blok ${as()}`,g=`line-height: 1em;
|
|
2
2
|
color: #006FEA;
|
|
3
3
|
display: inline-block;
|
|
4
4
|
font-size: 11px;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
padding: 4px 9px;
|
|
8
8
|
border-radius: 30px;
|
|
9
9
|
border: 1px solid rgba(56, 138, 229, 0.16);
|
|
10
|
-
margin: 4px 5px 4px 0;`,v=a?c?(d.unshift(g,i),`%c${h}%c ${e}`):`( ${h} )${e}`:e,y=c?o!==void 0?[`${v} %o`,...d]:[v,...d]:[v];try{l[t](...y)}catch(b){}};Wo.logLevel="VERBOSE";const _1=a=>{Wo.logLevel=a},Be=(a,e="log",t,o)=>{Wo(!1,a,e,t,o)},Qt=(a,e="log",t,o)=>{Wo(!0,a,e,t,o)},De=a=>LT(a),qe=a=>zT(a),un=a=>jT(a),hv=a=>N0(a),pv=a=>MT(a),R1=function(a){return WT(a)},ot=a=>K0(a),gv=a=>C1(a),cs=(a,e)=>function(...t){I0(()=>a.apply(this,t),e)},N1=a=>{var e;return(e=a.name.split(".").pop())!=null?e:""},O1=a=>/^[-\w]+\/([-+\w]+|\*)$/.test(a),mv=(a,e,t)=>{const o={timeoutId:null};return function(...i){const l=()=>{o.timeoutId=null,a.apply(this,i)};o.timeoutId!==null&&clearTimeout(o.timeoutId),o.timeoutId=setTimeout(l,e)}},Hu=(a,e,t)=>g1(a,e,t),vv=()=>{var i,l;const a={win:!1,mac:!1,x11:!1,linux:!1},e=fv(),t=(l=(i=e==null?void 0:e.userAgent)==null?void 0:i.toLowerCase())!=null?l:"",o=t?Object.keys(a).find(c=>t.indexOf(c)!==-1):void 0;return o!==void 0&&(a[o]=!0),a},us=a=>a&&a.slice(0,1).toUpperCase()+a.slice(1),L1=(a,e)=>{if(Array.isArray(e))return e},Ko=(a,...e)=>!qe(a)||e.length===0?a:e.reduce((t,o)=>qe(o)?u1(t,o,L1):t,a),yv=a=>{const e=vv(),t=a.replace(/shift/gi,"⇧").replace(/backspace/gi,"⌫").replace(/enter/gi,"⏎").replace(/up/gi,"↑").replace(/left/gi,"→").replace(/down/gi,"↓").replace(/right/gi,"←").replace(/escape/gi,"⎋").replace(/insert/gi,"Ins").replace(/delete/gi,"␡").replace(/\+/gi," + ");return e.mac?t.replace(/ctrl|cmd/gi,"⌘").replace(/alt/gi,"⌥"):t.replace(/cmd/gi,"Ctrl").replace(/windows/gi,"WIN")},D1=a=>{try{return new URL(a).href}catch(t){}const e=ls();return a.substring(0,2)==="//"?e?`${e.location.protocol}${a}`:a:e?`${e.location.origin}${a}`:a},P1=()=>u0(10),M1=a=>{const e=ls();e&&e.open(a,"_blank")},F1=(a="")=>`${a}${Math.floor(Math.random()*A1).toString(I1)}`,bv=650,Gn=()=>{const a=ls();return!a||typeof a.matchMedia!="function"?!1:a.matchMedia(`(max-width: ${bv}px)`).matches},ju=(()=>{var h;const a=fv();if(!a)return!1;const e=a.userAgent||"",t=a.userAgentData,o=t==null?void 0:t.platform;if(/iP(ad|hone|od)/.test(e)||o!==void 0&&o!==""&&/iP(ad|hone|od)/.test(o))return!0;const i=((h=a.maxTouchPoints)!=null?h:0)>1,l=()=>a.platform,c=o!==void 0&&o!==""?o:void 0;return(i?c!=null?c:l():void 0)==="MacIntel"})(),z1=(a,e)=>NT(a,e);class N{static isSingleTag(e){return!!e.tagName&&["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"].includes(e.tagName)}static isLineBreakTag(e){return!!e&&["BR","WBR"].includes(e.tagName)}static make(e,t=null,o={}){const i=document.createElement(e);if(Array.isArray(t)){const l=t.filter(c=>c!==void 0&&c!=="").flatMap(c=>c.split(" ")).filter(c=>c!=="");i.classList.add(...l)}if(typeof t=="string"&&t!==""){const l=t.split(" ").filter(c=>c!=="");i.classList.add(...l)}for(const l in o){if(!Object.prototype.hasOwnProperty.call(o,l))continue;const c=o[l];if(c!=null){if(l in i){i[l]=c;continue}i.setAttribute(l,String(c))}}return i}static text(e){return document.createTextNode(e)}static append(e,t){Array.isArray(t)?t.forEach(o=>e.appendChild(o)):e.appendChild(t)}static prepend(e,t){Array.isArray(t)?[...t].reverse().forEach(i=>e.prepend(i)):e.prepend(t)}static find(e=document,t){return e.querySelector(t)}static get(e){return document.getElementById(e)}static findAll(e=document,t){return e.querySelectorAll(t)}static get allInputsSelector(){return"[contenteditable=true], textarea, input:not([type]), "+["text","password","email","number","search","tel","url"].map(t=>`input[type="${t}"]`).join(", ")}static findAllInputs(e){return gv(e.querySelectorAll(N.allInputsSelector)).reduce((t,o)=>N.isNativeInput(o)||N.containsOnlyInlineElements(o)?[...t,o]:[...t,...N.getDeepestBlockElements(o)],[])}static getDeepestNode(e,t=!1){var v;const o=t?"lastChild":"firstChild",i=t?"previousSibling":"nextSibling";if(e===null||e.nodeType!==Node.ELEMENT_NODE)return e;const l=e[o];if(l===null)return e;const c=l;if(!(N.isSingleTag(c)&&!N.isNativeInput(c)&&!N.isLineBreakTag(c)))return this.getDeepestNode(c,t);const h=c[i];if(h)return this.getDeepestNode(h,t);const g=(v=c.parentNode)==null?void 0:v[i];return g?this.getDeepestNode(g,t):c.parentNode}static isElement(e){return pv(e)?!1:e!=null&&e.nodeType!=null&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return pv(e)?!1:e!=null&&e.nodeType!=null&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isContentEditable(e){return e.contentEditable==="true"}static isNativeInput(e){const t=["INPUT","TEXTAREA"];return e!=null&&typeof e.tagName=="string"?t.includes(e.tagName):!1}static canSetCaret(e){return N.isNativeInput(e)?!new Set(["file","checkbox","radio","hidden","submit","button","image","reset"]).has(e.type):N.isContentEditable(e)}static isNodeEmpty(e,t){var l,c;if(this.isSingleTag(e)&&!this.isLineBreakTag(e))return!1;const o=this.isElement(e)&&this.isNativeInput(e)?e.value:(l=e.textContent)==null?void 0:l.replace("",""),i=t?o==null?void 0:o.replace(new RegExp(t,"g"),""):o;return((c=i==null?void 0:i.length)!=null?c:0)===0}static isLeaf(e){return e?e.childNodes.length===0:!1}static isEmpty(e,t){const o=[e];for(;o.length>0;){const i=o.shift();if(i){if(this.isLeaf(i)&&!this.isNodeEmpty(i,t))return!1;i.childNodes&&o.push(...Array.from(i.childNodes))}}return!0}static isHTMLString(e){const t=N.make("div");return t.innerHTML=e,t.childElementCount>0}static getContentLength(e){var t,o;return N.isNativeInput(e)?e.value.length:e.nodeType===Node.TEXT_NODE?e.length:(o=(t=e.textContent)==null?void 0:t.length)!=null?o:0}static get blockElements(){return["address","article","aside","blockquote","canvas","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","ruby","section","table","tbody","thead","tr","tfoot","ul","video"]}static containsOnlyInlineElements(e){const t=un(e)?(()=>{const i=document.createElement("div");return i.innerHTML=e,i})():e,o=i=>!N.blockElements.includes(i.tagName.toLowerCase())&&Array.from(i.children).every(o);return Array.from(t.children).every(o)}static getDeepestBlockElements(e){return N.containsOnlyInlineElements(e)?[e]:Array.from(e.children).reduce((t,o)=>[...t,...N.getDeepestBlockElements(o)],[])}static getHolder(e){if(!un(e))return e;const t=document.getElementById(e);if(t!==null)return t;throw new Error(`Element with id "${e}" not found`)}static isAnchor(e){return e.tagName.toLowerCase()==="a"}static offset(e){const t=e.getBoundingClientRect(),o=window.scrollX||document.documentElement.scrollLeft,i=window.scrollY||document.documentElement.scrollTop,l=t.top+i,c=t.left+o;return{top:l,left:c,bottom:l+t.height,right:c+t.width}}static getNodeByOffset(e,t){const o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=(g,v,y,b)=>{var S;if(!g&&y){const O=v-b,L=Math.max(t-O,0),U=Math.min(L,b);return{node:y,offset:U}}if(!g)return{node:null,offset:0};const w=((S=g.textContent)!=null?S:"").length;return v+w>=t?{node:g,offset:Math.min(t-v,w)}:i(o.nextNode(),v+w,g,w)},l=o.nextNode(),{node:c,offset:d}=i(l,0,null,0);if(!c)return{node:null,offset:0};const h=c.textContent;return!h||h.length===0?{node:null,offset:0}:{node:c,offset:d}}}const qu=a=>!/[^\t\n\r \u200B]/.test(a),H1=a=>{const e=window.getComputedStyle(a),t=parseFloat(e.fontSize),o=parseFloat(e.lineHeight)||t*1.2,i=parseFloat(e.paddingTop),l=parseFloat(e.borderTopWidth),c=parseFloat(e.marginTop),d=t*.8,h=(o-t)/2;return c+l+i+h+d},kv=a=>{a.setAttribute("data-blok-empty",N.isEmpty(a)?"true":"false")},wv={ui:{blockTunes:{toggler:{"Drag to move":"","Click to open the menu":""}},inlineToolbar:{converter:{"Convert to":""}},toolbar:{toolbox:{"Click to add below":"","Option-click to add above":"","Ctrl-click to add above":""}},popover:{Filter:"","Nothing found":"","Convert to":""}},toolNames:{Text:"",Link:"",Bold:"",Italic:""},tools:{link:{"Add a link":""},stub:{"The block can not be displayed correctly.":""}},blockTunes:{delete:{Delete:"","Click to delete":""},moveUp:{"Move up":""},moveDown:{"Move down":""}}},er=class er{static ui(e,t){return er._t(e,t)}static t(e,t){return er._t(e,t)}static setDictionary(e){er.currentDictionary=e}static _t(e,t){const o=er.getNamespace(e);return!o||!o[t]?t:o[t]}static getNamespace(e){return e.split(".").reduce((o,i)=>{if(!o||!Object.keys(o).length)return{};const l=o[i];return typeof l=="string"?{}:l},er.currentDictionary)}};er.currentDictionary=wv;let $e=er;class Vo extends Error{}class $o{constructor(){this.subscribers={}}on(e,t){e in this.subscribers||(this.subscribers[e]=[]),this.subscribers[e].push(t)}once(e,t){e in this.subscribers||(this.subscribers[e]=[]);const o=i=>{const l=t(i),c=this.subscribers[e].indexOf(o);return c!==-1&&this.subscribers[e].splice(c,1),l};this.subscribers[e].push(o)}emit(e,t){ot(this.subscribers)||!this.subscribers[e]||this.subscribers[e].reduce((o,i)=>{const l=i(o);return l!==void 0?l:o},t)}off(e,t){const o=this.subscribers[e];if(o===void 0){console.warn(`EventDispatcher .off(): there is no subscribers for event "${e.toString()}". Probably, .off() called before .on()`);return}const i=o.indexOf(t);i!==-1&&o.splice(i,1)}destroy(){this.subscribers={}}}const On=function(e){return Object.setPrototypeOf(this,{get id(){return e.id},get name(){return e.name},get config(){return e.config},get holder(){return e.holder},get isEmpty(){return e.isEmpty},get selected(){return e.selected},set stretched(o){e.setStretchState(o)},get stretched(){return e.stretched},get focusable(){return e.focusable},call(o,i){return e.call(o,i)},save(){return e.save()},validate(o){return e.validate(o)},dispatchChange(){e.dispatchChange()},getActiveToolboxEntry(){return e.getActiveToolboxEntry()}}),Object.defineProperties(this,{id:{get(){return e.id},enumerable:!0,configurable:!0},name:{get(){return e.name},enumerable:!0,configurable:!0}}),this};class Go{constructor(){this.allListeners=[]}on(e,t,o,i=!1){if(this.findOne(e,t,o,i))return;const c=F1("l"),d={id:c,element:e,eventType:t,handler:o,options:i};return this.allListeners.push(d),e.addEventListener(t,o,i),c}off(e,t,o,i){const l=this.findAll(e,t,o,i);l.forEach((c,d)=>{const h=this.allListeners.indexOf(l[d]);h>-1&&(this.allListeners.splice(h,1),c.element.removeEventListener(c.eventType,c.handler,c.options))})}offById(e){const t=this.findById(e);if(!t)return;t.element.removeEventListener(t.eventType,t.handler,t.options);const o=this.allListeners.indexOf(t);o>-1&&this.allListeners.splice(o,1)}findOne(e,t,o,i){var c;return(c=this.findAll(e,t,o,i)[0])!=null?c:null}findAll(e,t,o,i){return e?this.findByEventTarget(e).filter(c=>{const d=t===void 0||c.eventType===t,h=o===void 0||c.handler===o,g=this.areOptionsEqual(c.options,i);return d&&h&&g}):[]}removeAll(){this.allListeners.forEach(e=>{e.element.removeEventListener(e.eventType,e.handler,e.options)}),this.allListeners=[]}destroy(){this.removeAll()}findByEventTarget(e){return this.allListeners.filter(t=>t.element===e)}findByType(e){return this.allListeners.filter(t=>t.eventType===e)}findByHandler(e){return this.allListeners.filter(t=>t.handler===e)}findById(e){return this.allListeners.find(t=>t.id===e)}normalizeListenerOptions(e){var t,o,i;return typeof e=="boolean"?{capture:e,once:!1,passive:!1}:e?{capture:(t=e.capture)!=null?t:!1,once:(o=e.once)!=null?o:!1,passive:(i=e.passive)!=null?i:!1,signal:e.signal}:{capture:!1,once:!1,passive:!1}}areOptionsEqual(e,t){if(t===void 0)return!0;const o=this.normalizeListenerOptions(e),i=this.normalizeListenerOptions(t);return o.capture===i.capture&&o.once===i.once&&o.passive===i.passive&&o.signal===i.signal}}class Se{constructor({config:e,eventsDispatcher:t}){if(this.nodes={},this.listeners=new Go,this.readOnlyMutableListeners={on:(o,i,l,c=!1)=>{const d=this.listeners.on(o,i,l,c);d&&this.mutableListenerIds.push(d)},clearAll:()=>{for(const o of this.mutableListenerIds)this.listeners.offById(o);this.mutableListenerIds=[]}},this.mutableListenerIds=[],new.target===Se)throw new TypeError("Constructors for abstract class Module are not allowed.");this.config=e,this.eventsDispatcher=t,this.Blok={}}set state(e){this.Blok=e}removeAllNodes(){for(const e in this.nodes){const t=this.nodes[e];t instanceof HTMLElement&&t.remove()}}get isRtl(){var e;return((e=this.config.i18n)==null?void 0:e.direction)==="rtl"}}const j1=(a,e)=>{const t=new Array(a.length+e.length);for(let o=0;o<a.length;o++)t[o]=a[o];for(let o=0;o<e.length;o++)t[a.length+o]=e[o];return t},q1=(a,e)=>({classGroupId:a,validator:e}),Tv=(a=new Map,e=null,t)=>({nextPart:a,validators:e,classGroupId:t}),ds="-",xv=[],U1="arbitrary..",W1=a=>{const e=V1(a),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return K1(c);const d=c.split(ds),h=d[0]===""&&d.length>1?1:0;return Ev(d,h,e)},getConflictingClassGroupIds:(c,d)=>{if(d){const h=o[c],g=t[c];return h?g?j1(g,h):h:g||xv}return t[c]||xv}}},Ev=(a,e,t)=>{if(a.length-e===0)return t.classGroupId;const i=a[e],l=t.nextPart.get(i);if(l){const g=Ev(a,e+1,l);if(g)return g}const c=t.validators;if(c===null)return;const d=e===0?a.join(ds):a.slice(e).join(ds),h=c.length;for(let g=0;g<h;g++){const v=c[g];if(v.validator(d))return v.classGroupId}},K1=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=a.slice(1,-1),t=e.indexOf(":"),o=e.slice(0,t);return o?U1+o:void 0})(),V1=a=>{const{theme:e,classGroups:t}=a;return $1(t,e)},$1=(a,e)=>{const t=Tv();for(const o in a){const i=a[o];Uu(i,t,o,e)}return t},Uu=(a,e,t,o)=>{const i=a.length;for(let l=0;l<i;l++){const c=a[l];G1(c,e,t,o)}},G1=(a,e,t,o)=>{if(typeof a=="string"){X1(a,e,t);return}if(typeof a=="function"){Y1(a,e,t,o);return}Q1(a,e,t,o)},X1=(a,e,t)=>{const o=a===""?e:Sv(e,a);o.classGroupId=t},Y1=(a,e,t,o)=>{if(Z1(a)){Uu(a(o),e,t,o);return}e.validators===null&&(e.validators=[]),e.validators.push(q1(t,a))},Q1=(a,e,t,o)=>{const i=Object.entries(a),l=i.length;for(let c=0;c<l;c++){const[d,h]=i[c];Uu(h,Sv(e,d),t,o)}},Sv=(a,e)=>{let t=a;const o=e.split(ds),i=o.length;for(let l=0;l<i;l++){const c=o[l];let d=t.nextPart.get(c);d||(d=Tv(),t.nextPart.set(c,d)),t=d}return t},Z1=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,J1=a=>{if(a<1)return{get:()=>{},set:()=>{}};let e=0,t=Object.create(null),o=Object.create(null);const i=(l,c)=>{t[l]=c,e++,e>a&&(e=0,o=t,t=Object.create(null))};return{get(l){let c=t[l];if(c!==void 0)return c;if((c=o[l])!==void 0)return i(l,c),c},set(l,c){l in t?t[l]=c:i(l,c)}}},Wu="!",Cv=":",ex=[],Bv=(a,e,t,o,i)=>({modifiers:a,hasImportantModifier:e,baseClassName:t,maybePostfixModifierPosition:o,isExternal:i}),tx=a=>{const{prefix:e,experimentalParseClassName:t}=a;let o=i=>{const l=[];let c=0,d=0,h=0,g;const v=i.length;for(let T=0;T<v;T++){const S=i[T];if(c===0&&d===0){if(S===Cv){l.push(i.slice(h,T)),h=T+1;continue}if(S==="/"){g=T;continue}}S==="["?c++:S==="]"?c--:S==="("?d++:S===")"&&d--}const y=l.length===0?i:i.slice(h);let b=y,x=!1;y.endsWith(Wu)?(b=y.slice(0,-1),x=!0):y.startsWith(Wu)&&(b=y.slice(1),x=!0);const w=g&&g>h?g-h:void 0;return Bv(l,x,b,w)};if(e){const i=e+Cv,l=o;o=c=>c.startsWith(i)?l(c.slice(i.length)):Bv(ex,!1,c,void 0,!0)}if(t){const i=o;o=l=>t({className:l,parseClassName:i})}return o},nx=a=>{const e=new Map;return a.orderSensitiveModifiers.forEach((t,o)=>{e.set(t,1e6+o)}),t=>{const o=[];let i=[];for(let l=0;l<t.length;l++){const c=t[l],d=c[0]==="[",h=e.has(c);d||h?(i.length>0&&(i.sort(),o.push(...i),i=[]),o.push(c)):i.push(c)}return i.length>0&&(i.sort(),o.push(...i)),o}},rx=a=>be({cache:J1(a.cacheSize),parseClassName:tx(a),sortModifiers:nx(a)},W1(a)),ox=/\s+/,ix=(a,e)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:l}=e,c=[],d=a.trim().split(ox);let h="";for(let g=d.length-1;g>=0;g-=1){const v=d[g],{isExternal:y,modifiers:b,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:T}=t(v);if(y){h=v+(h.length>0?" "+h:h);continue}let S=!!T,O=o(S?w.substring(0,T):w);if(!O){if(!S){h=v+(h.length>0?" "+h:h);continue}if(O=o(w),!O){h=v+(h.length>0?" "+h:h);continue}S=!1}const L=b.length===0?"":b.length===1?b[0]:l(b).join(":"),U=x?L+Wu:L,H=U+O;if(c.indexOf(H)>-1)continue;c.push(H);const X=i(O,S);for(let q=0;q<X.length;++q){const W=X[q];c.push(U+W)}h=v+(h.length>0?" "+h:h)}return h},Av=(...a)=>{let e=0,t,o,i="";for(;e<a.length;)(t=a[e++])&&(o=Iv(t))&&(i&&(i+=" "),i+=o);return i},Iv=a=>{if(typeof a=="string")return a;let e,t="";for(let o=0;o<a.length;o++)a[o]&&(e=Iv(a[o]))&&(t&&(t+=" "),t+=e);return t},sx=(a,...e)=>{let t,o,i,l;const c=h=>{const g=e.reduce((v,y)=>y(v),a());return t=rx(g),o=t.cache.get,i=t.cache.set,l=d,d(h)},d=h=>{const g=o(h);if(g)return g;const v=ix(h,t);return i(h,v),v};return l=c,(...h)=>l(Av(...h))},ax=[],ut=a=>{const e=t=>t[a]||ax;return e.isThemeGetter=!0,e},_v=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lx=/^\d+\/\d+$/,cx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ux=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,eo=a=>lx.test(a),ke=a=>!!a&&!Number.isNaN(Number(a)),Xn=a=>!!a&&Number.isInteger(Number(a)),Ku=a=>a.endsWith("%")&&ke(a.slice(0,-1)),Ln=a=>cx.test(a),px=()=>!0,gx=a=>ux.test(a)&&!dx.test(a),Nv=()=>!1,mx=a=>fx.test(a),vx=a=>hx.test(a),yx=a=>!J(a)&&!ee(a),bx=a=>to(a,Mv,Nv),J=a=>_v.test(a),xr=a=>to(a,Fv,gx),Vu=a=>to(a,Ex,ke),Ov=a=>to(a,Dv,Nv),kx=a=>to(a,Pv,vx),fs=a=>to(a,zv,mx),ee=a=>Rv.test(a),Xo=a=>no(a,Fv),wx=a=>no(a,Sx),Lv=a=>no(a,Dv),Tx=a=>no(a,Mv),xx=a=>no(a,Pv),hs=a=>no(a,zv,!0),to=(a,e,t)=>{const o=_v.exec(a);return o?o[1]?e(o[1]):t(o[2]):!1},no=(a,e,t=!1)=>{const o=Rv.exec(a);return o?o[1]?e(o[1]):t:!1},Dv=a=>a==="position"||a==="percentage",Pv=a=>a==="image"||a==="url",Mv=a=>a==="length"||a==="size"||a==="bg-size",Fv=a=>a==="length",Ex=a=>a==="number",Sx=a=>a==="family-name",zv=a=>a==="shadow",Ae=sx(()=>{const a=ut("color"),e=ut("font"),t=ut("text"),o=ut("font-weight"),i=ut("tracking"),l=ut("leading"),c=ut("breakpoint"),d=ut("container"),h=ut("spacing"),g=ut("radius"),v=ut("shadow"),y=ut("inset-shadow"),b=ut("text-shadow"),x=ut("drop-shadow"),w=ut("blur"),T=ut("perspective"),S=ut("aspect"),O=ut("ease"),L=ut("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],X=()=>[...H(),ee,J],q=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],F=()=>[ee,J,h],ne=()=>[eo,"full","auto",...F()],ce=()=>[Xn,"none","subgrid",ee,J],Q=()=>["auto",{span:["full",Xn,ee,J]},Xn,ee,J],ye=()=>[Xn,"auto",ee,J],Z=()=>["auto","min","max","fr",ee,J],we=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Oe=()=>["start","end","center","stretch","center-safe","end-safe"],xe=()=>["auto",...F()],_e=()=>[eo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],D=()=>[a,ee,J],le=()=>[...H(),Lv,Ov,{position:[ee,J]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",Tx,bx,{size:[ee,J]}],P=()=>[Ku,Xo,xr],ae=()=>["","none","full",g,ee,J],fe=()=>["",ke,Xo,xr],Ee=()=>["solid","dashed","dotted","double"],Re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[ke,Ku,Lv,Ov],Pe=()=>["","none",w,ee,J],ze=()=>["none",ke,ee,J],pt=()=>["none",ke,ee,J],nr=()=>[ke,ee,J],Fr=()=>[eo,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ln],breakpoint:[Ln],color:[px],container:[Ln],"drop-shadow":[Ln],ease:["in","out","in-out"],font:[yx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ln],shadow:[Ln],spacing:["px",ke],text:[Ln],"text-shadow":[Ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",eo,J,ee,S]}],container:["container"],columns:[{columns:[ke,J,ee,d]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:X()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{start:ne()}],end:[{end:ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[Xn,"auto",ee,J]}],basis:[{basis:[eo,"full","auto",d,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,eo,"auto","initial","none",J]}],grow:[{grow:["",ke,ee,J]}],shrink:[{shrink:["",ke,ee,J]}],order:[{order:[Xn,"first","last","none",ee,J]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":ye()}],"col-end":[{"col-end":ye()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":ye()}],"row-end":[{"row-end":ye()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...we(),"normal"]}],"justify-items":[{"justify-items":[...Oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...Oe()]}],"align-content":[{content:["normal",...we()]}],"align-items":[{items:[...Oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":we()}],"place-items":[{"place-items":[...Oe(),"baseline"]}],"place-self":[{"place-self":["auto",...Oe()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:xe()}],mx:[{mx:xe()}],my:[{my:xe()}],ms:[{ms:xe()}],me:[{me:xe()}],mt:[{mt:xe()}],mr:[{mr:xe()}],mb:[{mb:xe()}],ml:[{ml:xe()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:_e()}],w:[{w:[d,"screen",..._e()]}],"min-w":[{"min-w":[d,"screen","none",..._e()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},..._e()]}],h:[{h:["screen","lh",..._e()]}],"min-h":[{"min-h":["screen","lh","none",..._e()]}],"max-h":[{"max-h":["screen","lh",..._e()]}],"font-size":[{text:["base",t,Xo,xr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ee,Vu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ku,J]}],"font-family":[{font:[wx,J,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ee,J]}],"line-clamp":[{"line-clamp":[ke,"none",ee,Vu]}],leading:[{leading:[l,...F()]}],"list-image":[{"list-image":["none",ee,J]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,J]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",ee,xr]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[ke,"auto",ee,J]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee,J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xn,ee,J],radial:["",ee,J],conic:[Xn,ee,J]},xx,kx]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,ee,J]}],"outline-w":[{outline:["",ke,Xo,xr]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",v,hs,fs]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",y,hs,fs]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[ke,xr]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",b,hs,fs]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[ke,ee,J]}],"mix-blend":[{"mix-blend":[...Re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Re()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[ee,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":H()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,J]}],filter:[{filter:["","none",ee,J]}],blur:[{blur:Pe()}],brightness:[{brightness:[ke,ee,J]}],contrast:[{contrast:[ke,ee,J]}],"drop-shadow":[{"drop-shadow":["","none",x,hs,fs]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",ke,ee,J]}],"hue-rotate":[{"hue-rotate":[ke,ee,J]}],invert:[{invert:["",ke,ee,J]}],saturate:[{saturate:[ke,ee,J]}],sepia:[{sepia:["",ke,ee,J]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,J]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[ke,ee,J]}],"backdrop-contrast":[{"backdrop-contrast":[ke,ee,J]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,ee,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,ee,J]}],"backdrop-invert":[{"backdrop-invert":["",ke,ee,J]}],"backdrop-opacity":[{"backdrop-opacity":[ke,ee,J]}],"backdrop-saturate":[{"backdrop-saturate":[ke,ee,J]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,ee,J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,J]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",ee,J]}],ease:[{ease:["linear","initial",O,ee,J]}],delay:[{delay:[ke,ee,J]}],animate:[{animate:["none",L,ee,J]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,ee,J]}],"perspective-origin":[{"perspective-origin":X()}],rotate:[{rotate:ze()}],"rotate-x":[{"rotate-x":ze()}],"rotate-y":[{"rotate-y":ze()}],"rotate-z":[{"rotate-z":ze()}],scale:[{scale:pt()}],"scale-x":[{"scale-x":pt()}],"scale-y":[{"scale-y":pt()}],"scale-z":[{"scale-z":pt()}],"scale-3d":["scale-3d"],skew:[{skew:nr()}],"skew-x":[{"skew-x":nr()}],"skew-y":[{"skew-y":nr()}],transform:[{transform:[ee,J,"","none","gpu","cpu"]}],"transform-origin":[{origin:X()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Fr()}],"translate-x":[{"translate-x":Fr()}],"translate-y":[{"translate-y":Fr()}],"translate-z":[{"translate-z":Fr()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee,J]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee,J]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[ke,Xo,xr,Vu]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),yt=Av,Cx=180,Bx=400,ro="data-blok-interface",Ax="blok",Ix="inline-toolbar",$u="tooltip",Hv="[data-blok-interface=blok]",jv="[data-blok-interface=inline-toolbar]";typeof process!="undefined"&&process.platform?process.platform==="darwin"?"Meta":"Control":typeof navigator!="undefined"&&navigator.userAgent.toLowerCase().includes("mac")?"Meta":"Control";const _x="data-blok-element",Gu="[data-blok-element]",Rx="data-blok-element-content",Xu="[data-blok-element-content]",Nx="data-blok-editor",qt="[data-blok-editor]",Ox="data-blok-redactor",qv="[data-blok-redactor]",Lx="data-blok-narrow",Dx="data-blok-rtl",Px="data-blok-fake-cursor",Uv="[data-blok-fake-cursor]",Mx="data-blok-overlay",Fx="data-blok-overlay-container",zx="data-blok-overlay-rectangle",Hx="data-blok-toolbar",Wv="[data-blok-toolbar]",jx="data-blok-settings-toggler",qx="data-blok-drag-handle",Ux="[data-blok-drag-handle]",Yu="data-blok-tool",Wx="data-blok-stub",Kx="data-blok-stub-info",Vx="data-blok-stub-title",$x="data-blok-stub-subtitle",Qu="data-blok-selected",Zu="data-blok-stretched",Gx="data-blok-empty",Kv="data-blok-dragging",Vv="data-blok-toolbox-opened";class se{constructor(){this.instance=null,this.selection=null,this.savedSelectionRange=null,this.isFakeBackgroundEnabled=!1,this.fakeBackgroundElements=[]}static get anchorNode(){const e=window.getSelection();return e?e.anchorNode:null}static get anchorElement(){const e=window.getSelection();if(!e)return null;const t=e.anchorNode;return t?N.isElement(t)?t:t.parentElement:null}static get anchorOffset(){const e=window.getSelection();return e?e.anchorOffset:null}static get isCollapsed(){const e=window.getSelection();return e?e.isCollapsed:null}static get isAtBlok(){return this.isSelectionAtBlok(se.get())}static isSelectionAtBlok(e){if(!e)return!1;const t=e.anchorNode||e.focusNode,o=t&&t.nodeType===Node.TEXT_NODE?t.parentNode:t,i=o&&o instanceof Element?o.closest(qv):null;return i?i.nodeType===Node.ELEMENT_NODE:!1}static isRangeAtBlok(e){if(!e)return;const t=e.startContainer&&e.startContainer.nodeType===Node.TEXT_NODE?e.startContainer.parentNode:e.startContainer,o=t&&t instanceof Element?t.closest(qv):null;return o?o.nodeType===Node.ELEMENT_NODE:!1}static get isSelectionExists(){const e=se.get();return!!(e!=null&&e.anchorNode)}static get range(){return this.getRangeFromSelection(this.get())}static getRangeFromSelection(e){return e&&e.rangeCount?e.getRangeAt(0):null}static get rect(){const e=document.selection,t={x:0,y:0,width:0,height:0};if(e&&e.type!=="Control"){const d=e.createRange();return t.x=d.boundingLeft,t.y=d.boundingTop,t.width=d.boundingWidth,t.height=d.boundingHeight,t}const o=window.getSelection();if(!o)return Be("Method window.getSelection returned null","warn"),t;if(o.rangeCount===null||isNaN(o.rangeCount))return Be("Method SelectionUtils.rangeCount is not supported","warn"),t;if(o.rangeCount===0)return t;const i=o.getRangeAt(0).cloneRange(),l=i.getBoundingClientRect();if(l.x===0&&l.y===0){const c=document.createElement("span");c.appendChild(document.createTextNode("")),i.insertNode(c);const d=c.getBoundingClientRect(),h=c.parentNode;return h==null||h.removeChild(c),h==null||h.normalize(),d}return l}static get text(){var t;const e=window.getSelection();return(t=e==null?void 0:e.toString())!=null?t:""}static get(){return window.getSelection()}static setCursor(e,t=0){const o=document.createRange(),i=window.getSelection(),l=N.isNativeInput(e);if(l&&!N.canSetCaret(e))return e.getBoundingClientRect();if(l){const c=e;return c.focus(),c.selectionStart=t,c.selectionEnd=t,c.getBoundingClientRect()}return o.setStart(e,t),o.setEnd(e,t),i?(i.removeAllRanges(),i.addRange(o),o.getBoundingClientRect()):e.getBoundingClientRect()}static isRangeInsideContainer(e){const t=se.range;return t===null?!1:e.contains(t.startContainer)}static addFakeCursor(){const e=se.range;if(e===null)return;const t=N.make("span");t.setAttribute(Px,""),t.setAttribute("data-blok-mutation-free","true"),e.collapse(),e.insertNode(t)}static isFakeCursorInsideContainer(e){return N.find(e,Uv)!==null}static removeFakeCursor(e=document.body){const t=N.find(e,Uv);t&&t.remove()}removeFakeBackground(){var l;if(!this.fakeBackgroundElements.length){this.isFakeBackgroundEnabled=!1;return}const e=this.fakeBackgroundElements[0],t=this.fakeBackgroundElements[this.fakeBackgroundElements.length-1],o=e.firstChild,i=t.lastChild;if(this.fakeBackgroundElements.forEach(c=>{this.unwrapFakeBackground(c)}),o&&i){const c=document.createRange();c.setStart(o,0),c.setEnd(i,((l=i.textContent)==null?void 0:l.length)||0),this.savedSelectionRange=c}this.fakeBackgroundElements=[],this.isFakeBackgroundEnabled=!1}setFakeBackground(){this.removeFakeBackground();const e=window.getSelection();if(!e||e.rangeCount===0)return;const t=e.getRangeAt(0);if(t.collapsed)return;const o=this.collectTextNodes(t);if(o.length===0)return;const i=t.startContainer,l=t.startOffset,c=t.endContainer,d=t.endOffset;if(this.fakeBackgroundElements=[],o.forEach(g=>{var O,L;const v=document.createRange(),y=g===i,b=g===c,x=y?l:0,w=(L=(O=g.textContent)==null?void 0:O.length)!=null?L:0,T=b?d:w;if(x===T)return;v.setStart(g,x),v.setEnd(g,T);const S=this.wrapRangeWithFakeBackground(v);S&&this.fakeBackgroundElements.push(S)}),!this.fakeBackgroundElements.length)return;const h=document.createRange();h.setStartBefore(this.fakeBackgroundElements[0]),h.setEndAfter(this.fakeBackgroundElements[this.fakeBackgroundElements.length-1]),e.removeAllRanges(),e.addRange(h),this.isFakeBackgroundEnabled=!0}collectTextNodes(e){const t=[],{commonAncestorContainer:o}=e;if(o.nodeType===Node.TEXT_NODE)return t.push(o),t;const i=document.createTreeWalker(o,NodeFilter.SHOW_TEXT,{acceptNode:l=>e.intersectsNode(l)&&l.textContent&&l.textContent.length>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT});for(;i.nextNode();)t.push(i.currentNode);return t}wrapRangeWithFakeBackground(e){if(e.collapsed)return null;const t=N.make("span");t.setAttribute("data-blok-testid","fake-background"),t.setAttribute("data-blok-fake-background","true"),t.setAttribute("data-blok-mutation-free","true"),t.style.backgroundColor="#a8d6ff",t.style.color="inherit",t.style.display="inline",t.style.padding="0",t.style.margin="0";const o=e.extractContents();return o.childNodes.length===0?null:(t.appendChild(o),e.insertNode(t),t)}unwrapFakeBackground(e){const t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}save(){this.savedSelectionRange=se.range}restore(){if(!this.savedSelectionRange)return;const e=window.getSelection();e&&(e.removeAllRanges(),e.addRange(this.savedSelectionRange))}clearSaved(){this.savedSelectionRange=null}collapseToEnd(){const e=window.getSelection();if(!e||!e.focusNode)return;const t=document.createRange();t.selectNodeContents(e.focusNode),t.collapse(!1),e.removeAllRanges(),e.addRange(t)}findParentTag(e,t,o=10){const i=window.getSelection();if(!i||!i.anchorNode||!i.focusNode)return null;const l=[i.anchorNode,i.focusNode],c=d=>{const h=(g,v)=>{if(v<=0||!g)return null;const y=g.nodeType===Node.ELEMENT_NODE&&g.tagName===e,b=!t||g.classList&&g.classList.contains(t);if(y&&b)return g;if(!g.parentNode)return null;const x=g.parentNode,w=!t||x.classList&&x.classList.contains(t);return x.tagName===e&&w?x:h(x,v-1)};return h(d,o)};for(const d of l){const h=c(d);if(h)return h}return null}expandToTag(e){const t=window.getSelection();if(!t)return;t.removeAllRanges();const o=document.createRange();o.selectNodeContents(e),t.addRange(o)}}const Xx=(a,e)=>{const{type:t,target:o,addedNodes:i,removedNodes:l}=a;return a.type==="attributes"&&a.attributeName==="data-blok-empty"?!1:e.contains(o)?!0:t!=="childList"?!1:Array.from(i).some(h=>h===e)?!0:Array.from(l).some(h=>h===e)},Ju="redactor dom changed",$v="block changed",Gv="fake cursor is about to be toggled",Xv="fake cursor have been set",Er="blok mobile layout toggled",ed="block-settings-opened",td="block-settings-closed",nd=(a,e)=>{if(!a.conversionConfig)return!1;const t=a.conversionConfig[e];return De(t)||un(t)},ps=(a,e)=>nd(a.tool,e),Yv=(a,e)=>Object.entries(a).some((([t,o])=>e[t]&&z1(e[t],o))),Qv=async(a,e)=>{const o=(await a.save()).data,i=e.find(l=>l.name===a.name);return i!==void 0&&!nd(i,"export")?[]:e.reduce((l,c)=>{if(!nd(c,"import")||c.toolbox===void 0)return l;const d=c.toolbox.filter(h=>{if(ot(h)||h.icon===void 0)return!1;const g=h.data!==void 0;return!(g&&Yv(h.data,o)||!g&&c.name===a.name)});return l.push(Tt(be({},c),{toolbox:d})),l},[])},Zv=(a,e)=>a.mergeable?a.name===e.name?!0:ps(e,"export")&&ps(a,"import"):!1,Yx=(a,e)=>{const t=e==null?void 0:e.export;return De(t)?t(a):un(t)?a[t]:(t!==void 0&&Be("Conversion «export» property must be a string or function. String means key of saved data object to export. Function should export processed string to export."),"")},Jv=(a,e,t)=>{const o=e==null?void 0:e.import;return De(o)?o(a,t):un(o)?{[o]:a}:(o!==void 0&&Be("Conversion «import» property must be a string or function. String means key of tool data to import. Function accepts a imported string and return composed tool data."),{})};var tt=(a=>(a.Default="default",a.Separator="separator",a.Html="html",a))(tt||{}),Dn=(a=>(a.RENDERED="rendered",a.MOVED="moved",a.UPDATED="updated",a.REMOVED="removed",a.ON_PASTE="onPaste",a))(Dn||{});const tn=class tn extends $o{constructor({id:e=P1(),data:t,tool:o,readOnly:i,tunesData:l},c){super(),this.cachedInputs=[],this.lastSavedTunes={},this.toolRenderedElement=null,this.contentElement=null,this.tunesInstances=new Map,this.defaultTunesInstances=new Map,this.readyResolver=null,this.unavailableTunesData={},this.inputIndex=0,this.blokEventBus=null,this.redactorDomChangedCallback=()=>{},this.handleFocus=()=>{this.dropInputsCache(),this.updateCurrentInput()},this.didMutated=(h=void 0)=>{const g=h===void 0,v=h instanceof InputEvent;!g&&!v&&this.detectToolRootChange(h),(g||v?!0:!(h.length>0&&h.every(x=>{const{addedNodes:w,removedNodes:T,target:S}=x;return[...Array.from(w),...Array.from(T),S].every(L=>{var H;const U=N.isElement(L)?L:(H=L.parentElement)!=null?H:null;return U===null?!1:U.closest('[data-blok-mutation-free="true"]')!==null})})))&&(this.dropInputsCache(),this.updateCurrentInput(),this.toggleInputsEmptyMark(),this.call("updated"),this.emit("didMutated",this))},this.ready=new Promise(h=>{this.readyResolver=h}),this.name=o.name,this.id=e,this.settings=o.settings,this.config=this.settings,this.blokEventBus=c||null,this.blockAPI=new On(this),this.lastSavedData=t!=null?t:{},this.lastSavedTunes=l!=null?l:{},this.tool=o,this.toolInstance=o.create(t,this.blockAPI,i),this.tunes=o.tunes,this.composeTunes(l);const d=this.compose();if(d==null)throw new Error(`Tool "${this.name}" did not return a block holder element during render()`);this.holder=d,window.requestIdleCallback(()=>{this.watchBlockMutations(),this.addInputEvents(),this.toggleInputsEmptyMark()})}call(e,t){const o=this.toolInstance[e];if(De(o))try{o.call(this.toolInstance,t)}catch(i){const l=i instanceof Error?i.message:String(i);Be(`Error during '${e}' call: ${l}`,"error")}}async mergeWith(e){if(!De(this.toolInstance.merge))throw new Error(`Block tool "${this.name}" does not support merging`);await this.toolInstance.merge(e)}async save(){const e=await this.extractToolData();if(e===void 0)return;const t=be({},this.unavailableTunesData);[...this.tunesInstances.entries(),...this.defaultTunesInstances.entries()].forEach(([l,c])=>{if(De(c.save))try{t[l]=c.save()}catch(d){Be(`Tune ${c.constructor.name} save method throws an Error %o`,"warn",d)}});const o=window.performance.now();this.lastSavedData=e,this.lastSavedTunes=be({},t);const i=window.performance.now();return{id:this.id,tool:this.name,data:e,tunes:t,time:i-o}}async extractToolData(){try{const e=await this.toolInstance.save(this.pluginsContent);if(!this.isEmpty||e===void 0||e===null||typeof e!="object")return e;const t=be({},e),o=i=>{const l=t[i];if(typeof l!="string")return;const c=document.createElement("div");c.innerHTML=l,N.isEmpty(c)&&(t[i]="")};return o("text"),o("html"),t}catch(e){const t=e instanceof Error?e:new Error(String(e));Be(`Saving process for ${this.name} tool failed due to the ${t}`,"log",t);return}}async validate(e){return this.toolInstance.validate instanceof Function?await this.toolInstance.validate(e):!0}getTunes(){const e=[],t=[],o=(c,d)=>{if(c){if(N.isElement(c)){d.push({type:tt.Html,element:c});return}if(Array.isArray(c)){d.push(...c);return}d.push(c)}},i=typeof this.toolInstance.renderSettings=="function"?this.toolInstance.renderSettings():[];return o(i,e),[...this.tunesInstances.values(),...this.defaultTunesInstances.values()].map(c=>c.render()).forEach(c=>{o(c,t)}),{toolTunes:e,commonTunes:t}}updateCurrentInput(){var l;const e=se.anchorNode,t=document.activeElement,o=c=>{if(!c)return;const d=c instanceof HTMLElement?c:c.parentElement;if(d===null)return;const h=this.inputs.find(y=>y===d||y.contains(d));if(h!==void 0)return h;const g=d.closest(N.allInputsSelector);if(!(g instanceof HTMLElement))return;const v=this.inputs.find(y=>y===g);if(v!==void 0)return v};if(N.isNativeInput(t)){this.currentInput=t;return}const i=(l=o(e))!=null?l:t instanceof HTMLElement?o(t):void 0;if(i!==void 0){this.currentInput=i;return}t instanceof HTMLElement&&this.inputs.includes(t)&&(this.currentInput=t)}dispatchChange(){this.didMutated()}destroy(){this.unwatchBlockMutations(),this.removeInputEvents(),super.destroy(),De(this.toolInstance.destroy)&&this.toolInstance.destroy()}async getActiveToolboxEntry(){const e=this.tool.toolbox;if(!e)return;if(e.length===1)return Promise.resolve(e[0]);const t=await this.data;return e.find(o=>Yv(o.data,t))}async exportDataAsString(){const e=await this.data;return Yx(e,this.tool.conversionConfig)}get inputs(){if(this.cachedInputs.length!==0)return this.cachedInputs;const e=N.findAllInputs(this.holder);return this.inputIndex>e.length-1&&(this.inputIndex=e.length-1),this.cachedInputs=e,e}get currentInput(){return this.inputs[this.inputIndex]}set currentInput(e){if(e===void 0)return;const t=this.inputs.findIndex(o=>o===e||o.contains(e));t!==-1&&(this.inputIndex=t)}get firstInput(){return this.inputs[0]}get lastInput(){const e=this.inputs;return e[e.length-1]}get nextInput(){return this.inputs[this.inputIndex+1]}get previousInput(){return this.inputs[this.inputIndex-1]}get data(){return this.save().then(e=>e&&!ot(e.data)?e.data:{})}get preservedData(){var e;return(e=this.lastSavedData)!=null?e:{}}get preservedTunes(){var e;return(e=this.lastSavedTunes)!=null?e:{}}get sanitize(){return this.tool.sanitizeConfig}get mergeable(){return De(this.toolInstance.merge)}get focusable(){return this.inputs.length!==0}get isEmpty(){const e=N.isEmpty(this.pluginsContent,"/"),t=!this.hasMedia;return e&&t}get hasMedia(){const e=["img","iframe","video","audio","source","input","textarea","twitterwidget"];return!!this.holder.querySelector(e.join(","))}set selected(e){var i,l;if(e?this.holder.setAttribute(Qu,"true"):this.holder.removeAttribute(Qu),this.contentElement){const c=this.stretched?tn.styles.contentStretched:"";this.contentElement.className=e?Ae(tn.styles.content,tn.styles.contentSelected):Ae(tn.styles.content,c)}const t=e===!0&&se.isRangeInsideContainer(this.holder),o=e===!1&&se.isFakeCursorInsideContainer(this.holder);!t&&!o||((i=this.blokEventBus)==null||i.emit(Gv,{state:e}),t&&se.addFakeCursor(),o&&se.removeFakeCursor(this.holder),(l=this.blokEventBus)==null||l.emit(Xv,{state:e}))}get selected(){return this.holder.getAttribute(Qu)==="true"}setStretchState(e){e?this.holder.setAttribute(Zu,"true"):this.holder.removeAttribute(Zu),this.contentElement&&!this.selected&&(this.contentElement.className=e?Ae(tn.styles.content,tn.styles.contentStretched):tn.styles.content)}set stretched(e){this.setStretchState(e)}get stretched(){return this.holder.getAttribute(Zu)==="true"}get pluginsContent(){if(this.toolRenderedElement===null)throw new Error("Block pluginsContent is not yet initialized");return this.toolRenderedElement}compose(){var l;const e=N.make("div",tn.styles.wrapper),t=N.make("div",tn.styles.content);this.contentElement=t,e.setAttribute(_x,""),t.setAttribute(Rx,""),t.setAttribute("data-blok-testid","block-content");const o=this.toolInstance.render();e.setAttribute("data-blok-testid","block-wrapper"),this.name&&!e.hasAttribute("data-blok-component")&&e.setAttribute("data-blok-component",this.name),e.setAttribute("data-blok-id",this.id),o instanceof Promise?o.then(c=>{var d;this.toolRenderedElement=c,this.addToolDataAttributes(c,e),t.appendChild(c),(d=this.readyResolver)==null||d.call(this)}).catch(c=>{var d;Be("Tool render promise rejected: %o","error",c),(d=this.readyResolver)==null||d.call(this)}):(this.toolRenderedElement=o,this.addToolDataAttributes(o,e),t.appendChild(o),(l=this.readyResolver)==null||l.call(this));const i=[...this.tunesInstances.values(),...this.defaultTunesInstances.values()].reduce((c,d)=>{if(De(d.wrap))try{return d.wrap(c)}catch(h){return Be(`Tune ${d.constructor.name} wrap method throws an Error %o`,"warn",h),c}return c},t);return e.appendChild(i),e}addToolDataAttributes(e,t){var d;this.name&&!t.hasAttribute("data-blok-component")&&t.setAttribute("data-blok-component",this.name);const o="data-blok-placeholder",i=(d=this.config)==null?void 0:d.placeholder,l=typeof i=="string"?i.trim():"",c=["empty:before:pointer-events-none","empty:before:text-gray-text","empty:before:cursor-text","empty:before:content-[attr(data-blok-placeholder)]","[&[data-blok-empty=true]]:before:pointer-events-none","[&[data-blok-empty=true]]:before:text-gray-text","[&[data-blok-empty=true]]:before:cursor-text","[&[data-blok-empty=true]]:before:content-[attr(data-blok-placeholder)]"];if(l.length>0){e.setAttribute(o,l),e.classList.add(...c);return}i===!1&&e.hasAttribute(o)&&e.removeAttribute(o)}composeTunes(e){Array.from(this.tunes.values()).forEach(t=>{(t.isInternal?this.defaultTunesInstances:this.tunesInstances).set(t.name,t.create(e[t.name],this.blockAPI))}),Object.entries(e).forEach(([t,o])=>{this.tunesInstances.has(t)||(this.unavailableTunesData[t]=o)})}addInputEvents(){this.inputs.forEach(e=>{e.addEventListener("focus",this.handleFocus),N.isNativeInput(e)&&e.addEventListener("input",this.didMutated)})}removeInputEvents(){this.inputs.forEach(e=>{e.removeEventListener("focus",this.handleFocus),N.isNativeInput(e)&&e.removeEventListener("input",this.didMutated)})}watchBlockMutations(){var e;this.redactorDomChangedCallback=t=>{const{mutations:o}=t,i=this.toolRenderedElement;if(i===null)return;const l=o.filter(c=>Xx(c,i));l.length>0&&this.didMutated(l)},(e=this.blokEventBus)==null||e.on(Ju,this.redactorDomChangedCallback)}unwatchBlockMutations(){var e;(e=this.blokEventBus)==null||e.off(Ju,this.redactorDomChangedCallback)}refreshToolRootElement(){const e=this.holder.querySelector(Xu);if(!e)return;const t=e.firstElementChild;t&&t!==this.toolRenderedElement&&(this.toolRenderedElement=t,this.dropInputsCache())}detectToolRootChange(e){const t=this.toolRenderedElement;t!==null&&e.forEach(o=>{if(Array.from(o.removedNodes).includes(t)){const l=o.addedNodes[o.addedNodes.length-1];this.toolRenderedElement=l}})}dropInputsCache(){this.cachedInputs=[]}toggleInputsEmptyMark(){this.inputs.forEach(kv)}};tn.styles={wrapper:"relative opacity-100 animate-fade-in first:mt-0 [&_a]:cursor-pointer [&_a]:underline [&_a]:text-link [&_b]:font-bold [&_i]:italic",content:"relative mx-auto transition-colors duration-150 ease-out max-w-content",contentSelected:"bg-selection [&_[contenteditable]]:select-none [&_img]:opacity-55 [&_[data-blok-tool=stub]]:opacity-55",contentStretched:"max-w-none"};let Yo=tn;class Qx extends Se{constructor(){super(...arguments),this.insert=(e,t={},o={},i,l,c,d)=>{const h=e!=null?e:this.config.defaultBlock,g=this.Blok.BlockManager.insert({id:d,tool:h,data:t,index:i,needToFocus:l,replace:c});return new On(g)},this.composeBlockData=async e=>{const t=this.Blok.Tools.blockTools.get(e);if(t===void 0)throw new Error(`Block Tool with type "${e}" not found`);return new Yo({tool:t,api:this.Blok.API,readOnly:!0,data:{},tunesData:{}}).data},this.update=async(e,t,o)=>{const{BlockManager:i}=this.Blok,l=i.getBlockById(e);if(l===void 0)throw new Error(`Block with id "${e}" not found`);const c=await i.update(l,t,o);return new On(c)},this.convert=async(e,t,o)=>{var y,b;const{BlockManager:i,Tools:l}=this.Blok,c=i.getBlockById(e);if(!c)throw new Error(`Block with id "${e}" not found`);const d=l.blockTools.get(c.name),h=l.blockTools.get(t);if(!h)throw new Error(`Block Tool with type "${t}" not found`);const g=((y=d==null?void 0:d.conversionConfig)==null?void 0:y.export)!==void 0,v=((b=h.conversionConfig)==null?void 0:b.import)!==void 0;if(g&&v){const x=await i.convert(c,t,o);return new On(x)}else{const x=[g?!1:us(c.name),v?!1:us(t)].filter(Boolean).join(" and ");throw new Error(`Conversion from "${c.name}" to "${t}" is not possible. ${x} tool(s) should provide a "conversionConfig"`)}},this.insertMany=(e,t=this.Blok.BlockManager.blocks.length-1)=>{this.validateIndex(t);const o=e.map(({id:i,type:l,data:c})=>this.Blok.BlockManager.composeBlock({id:i,tool:l||this.config.defaultBlock,data:c}));return this.Blok.BlockManager.insertMany(o,t),o.map(i=>new On(i))}}get methods(){return{clear:()=>this.clear(),render:e=>this.render(e),renderFromHTML:e=>this.renderFromHTML(e),delete:e=>this.delete(e),move:(e,t)=>this.move(e,t),getBlockByIndex:e=>this.getBlockByIndex(e),getById:e=>this.getById(e),getCurrentBlockIndex:()=>this.getCurrentBlockIndex(),getBlockIndex:e=>this.getBlockIndex(e),getBlocksCount:()=>this.getBlocksCount(),getBlockByElement:e=>this.getBlockByElement(e),insert:this.insert,insertMany:this.insertMany,update:this.update,composeBlockData:this.composeBlockData,convert:this.convert,stretchBlock:(e,t=!0)=>this.stretchBlock(e,t)}}getBlocksCount(){return this.Blok.BlockManager.blocks.length}getCurrentBlockIndex(){return this.Blok.BlockManager.currentBlockIndex}getBlockIndex(e){const t=this.Blok.BlockManager.getBlockById(e);if(!t){Qt("There is no block with id `"+e+"`","warn");return}return this.Blok.BlockManager.getBlockIndex(t)}getBlockByIndex(e){const t=this.Blok.BlockManager.getBlockByIndex(e);if(t===void 0){Qt("There is no block at index `"+e+"`","warn");return}return new On(t)}getById(e){const t=this.Blok.BlockManager.getBlockById(e);return t===void 0?(Qt("There is no block with id `"+e+"`","warn"),null):new On(t)}getBlockByElement(e){const t=this.Blok.BlockManager.getBlock(e);if(t===void 0){Qt("There is no block corresponding to element `"+e+"`","warn");return}return new On(t)}move(e,t){this.Blok.BlockManager.move(e,t)}delete(e=this.Blok.BlockManager.currentBlockIndex){const t=this.Blok.BlockManager.getBlockByIndex(e);if(t===void 0){Qt(`There is no block at index \`${e}\``,"warn");return}try{this.Blok.BlockManager.removeBlock(t)}catch(o){Qt(o,"warn");return}this.Blok.BlockManager.blocks.length===0&&this.Blok.BlockManager.insert(),this.Blok.BlockManager.currentBlock&&this.Blok.Caret.setToBlock(this.Blok.BlockManager.currentBlock,this.Blok.Caret.positions.END),this.Blok.Toolbar.close()}async clear(){await this.Blok.BlockManager.clear(!0),this.Blok.InlineToolbar.close()}async render(e){if(e===void 0||e.blocks===void 0)throw new Error("Incorrect data passed to the render() method");this.Blok.ModificationsObserver.disable(),await this.Blok.BlockManager.clear(),await this.Blok.Renderer.render(e.blocks),this.Blok.ModificationsObserver.enable()}async renderFromHTML(e){return await this.Blok.BlockManager.clear(),this.Blok.Paste.processText(e,!0)}stretchBlock(e,t=!0){const o=this.Blok.BlockManager.getBlockByIndex(e);o&&o.setStretchState(t)}validateIndex(e){if(typeof e!="number")throw new Error("Index should be a number");if(e<0)throw new Error("Index should be greater than or equal to 0");if(e===null)throw new Error("Index should be greater than or equal to 0")}}const Zx=(a,e)=>typeof a=="number"?e.BlockManager.getBlockByIndex(a):typeof a=="string"?e.BlockManager.getBlockById(a):e.BlockManager.getBlockById(a.id);class Jx extends Se{constructor(){super(...arguments),this.setToFirstBlock=(e=this.Blok.Caret.positions.DEFAULT,t=0)=>this.Blok.BlockManager.firstBlock?(this.Blok.Caret.setToBlock(this.Blok.BlockManager.firstBlock,e,t),!0):!1,this.setToLastBlock=(e=this.Blok.Caret.positions.DEFAULT,t=0)=>this.Blok.BlockManager.lastBlock?(this.Blok.Caret.setToBlock(this.Blok.BlockManager.lastBlock,e,t),!0):!1,this.setToPreviousBlock=(e=this.Blok.Caret.positions.DEFAULT,t=0)=>this.Blok.BlockManager.previousBlock?(this.Blok.Caret.setToBlock(this.Blok.BlockManager.previousBlock,e,t),!0):!1,this.setToNextBlock=(e=this.Blok.Caret.positions.DEFAULT,t=0)=>this.Blok.BlockManager.nextBlock?(this.Blok.Caret.setToBlock(this.Blok.BlockManager.nextBlock,e,t),!0):!1,this.setToBlock=(e,t=this.Blok.Caret.positions.DEFAULT,o=0)=>{const i=Zx(e,this.Blok);return i===void 0?!1:(this.Blok.Caret.setToBlock(i,t,o),!0)},this.focus=(e=!1)=>e?this.setToLastBlock(this.Blok.Caret.positions.END):this.setToFirstBlock(this.Blok.Caret.positions.START)}get methods(){return{setToFirstBlock:this.setToFirstBlock,setToLastBlock:this.setToLastBlock,setToPreviousBlock:this.setToPreviousBlock,setToNextBlock:this.setToNextBlock,setToBlock:this.setToBlock,focus:this.focus}}}class eE extends Se{get methods(){return{emit:(e,t)=>this.emit(e,t),off:(e,t)=>this.off(e,t),on:(e,t)=>this.on(e,t)}}on(e,t){this.eventsDispatcher.on(e,t)}emit(e,t){this.eventsDispatcher.emit(e,t)}off(e,t){this.eventsDispatcher.off(e,t)}}class rd extends Se{static getNamespace(e,t){return t?`blockTunes.${e}`:`tools.${e}`}get methods(){return{t:e=>(Qt("I18n.t() method can be accessed only from Tools","warn"),"")}}getMethodsForTool(e,t){return Object.assign(this.methods,{t:o=>$e.t(rd.getNamespace(e,t),o)})}}class tE extends Se{get methods(){return{blocks:this.Blok.BlocksAPI.methods,caret:this.Blok.CaretAPI.methods,tools:this.Blok.ToolsAPI.methods,events:this.Blok.EventsAPI.methods,listeners:this.Blok.ListenersAPI.methods,notifier:this.Blok.NotifierAPI.methods,sanitizer:this.Blok.SanitizerAPI.methods,saver:this.Blok.SaverAPI.methods,selection:this.Blok.SelectionAPI.methods,styles:this.Blok.StylesAPI.classes,toolbar:this.Blok.ToolbarAPI.methods,inlineToolbar:this.Blok.InlineToolbarAPI.methods,tooltip:this.Blok.TooltipAPI.methods,i18n:this.Blok.I18nAPI.methods,readOnly:this.Blok.ReadOnlyAPI.methods,ui:this.Blok.UiAPI.methods}}getMethodsForTool(e,t){return Object.assign(this.methods,{i18n:this.Blok.I18nAPI.getMethodsForTool(e,t)})}}class nE extends Se{get methods(){return{close:()=>this.close(),open:()=>this.open()}}open(){this.Blok.InlineToolbar.tryToShow()}close(){this.Blok.InlineToolbar.close()}}class rE extends Se{get methods(){return{on:(e,t,o,i)=>this.on(e,t,o,i),off:(e,t,o,i)=>this.off(e,t,o,i),offById:e=>this.offById(e)}}on(e,t,o,i){return this.listeners.on(e,t,o,i)}off(e,t,o,i){this.listeners.off(e,t,o,i)}offById(e){this.listeners.offById(e)}}class oE{constructor(){this.notifierModule=null,this.loadingPromise=null}loadNotifierModule(){return this.notifierModule!==null?Promise.resolve(this.notifierModule):(this.loadingPromise===null&&(this.loadingPromise=Promise.resolve().then(()=>FC).then(e=>{var o;const t=(o=e==null?void 0:e.default)!=null?o:e;if(!this.isNotifierModule(t))throw new Error('notifier module does not expose a "show" method.');return this.notifierModule=t,t}).catch(e=>{throw this.loadingPromise=null,e})),this.loadingPromise)}show(e){this.loadNotifierModule().then(t=>{t.show(e)}).catch(t=>{console.error("[Blok] Failed to display notification. Reason:",t)})}isNotifierModule(e){return typeof e=="object"&&e!==null&&"show"in e&&typeof e.show=="function"}}class iE extends Se{constructor({config:e,eventsDispatcher:t}){super({config:e,eventsDispatcher:t}),this.notifier=new oE}get methods(){return{show:e=>this.show(e)}}show(e){return this.notifier.show(e)}}class sE extends Se{get methods(){const e=()=>this.isEnabled;return{toggle:t=>this.toggle(t),get isEnabled(){return e()}}}toggle(e){return this.Blok.ReadOnly.toggle(e)}get isEnabled(){return this.Blok.ReadOnly.isEnabled}}var gs={exports:{}},aE=gs.exports,ey;function lE(){return ey||(ey=1,(function(a,e){(function(t,o){a.exports=o()})(aE,function(){function t(y){var b=y.tags,x=Object.keys(b),w=x.map(function(T){return typeof b[T]}).every(function(T){return T==="object"||T==="boolean"||T==="function"});if(!w)throw new Error("The configuration was invalid");this.config=y}var o=["P","LI","TD","TH","DIV","H1","H2","H3","H4","H5","H6","PRE"];function i(y){return o.indexOf(y.nodeName)!==-1}var l=["A","B","STRONG","I","EM","SUB","SUP","U","STRIKE"];function c(y){return l.indexOf(y.nodeName)!==-1}t.prototype.clean=function(y){const b=document.implementation.createHTMLDocument(),x=b.createElement("div");return x.innerHTML=y,this._sanitize(b,x),x.innerHTML},t.prototype._sanitize=function(y,b){var x=d(y,b),w=x.firstChild();if(w)do{if(w.nodeType===Node.TEXT_NODE)if(w.data.trim()===""&&(w.previousElementSibling&&i(w.previousElementSibling)||w.nextElementSibling&&i(w.nextElementSibling))){b.removeChild(w),this._sanitize(y,b);break}else continue;if(w.nodeType===Node.COMMENT_NODE){b.removeChild(w),this._sanitize(y,b);break}var T=c(w),S;T&&(S=Array.prototype.some.call(w.childNodes,i));var O=!!b.parentNode,L=i(b)&&i(w)&&O,U=w.nodeName.toLowerCase(),H=h(this.config,U,w),X=T&&S;if(X||g(w,H)||!this.config.keepNestedBlockElements&&L){if(!(w.nodeName==="SCRIPT"||w.nodeName==="STYLE"))for(;w.childNodes.length>0;)b.insertBefore(w.childNodes[0],w);b.removeChild(w),this._sanitize(y,b);break}for(var q=0;q<w.attributes.length;q+=1){var W=w.attributes[q];v(W,H,w)&&(w.removeAttribute(W.name),q=q-1)}this._sanitize(y,w)}while(w=x.nextSibling())};function d(y,b){return y.createTreeWalker(b,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT,null,!1)}function h(y,b,x){return typeof y.tags[b]=="function"?y.tags[b](x):y.tags[b]}function g(y,b){return typeof b=="undefined"?!0:typeof b=="boolean"?!b:!1}function v(y,b,x){var w=y.name.toLowerCase();return b===!0?!1:typeof b[w]=="function"?!b[w](y.value,x):typeof b[w]=="undefined"||b[w]===!1?!0:typeof b[w]=="string"?b[w]!==y.value:!1}return t})})(gs)),gs.exports}var cE=lE();const uE=Ne(cE),dE=/^\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)/i,fE=/\s*(?:href|src)\s*=\s*(?:"\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^"]*"|'\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^']*|(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^ \t\r\n>]*)/gi,od=(a,e,t={})=>a.map(o=>{const i=De(e)?e(o.tool):e,l=i!=null?i:{};return qe(l)&&ot(l)&&ot(t)?o:Tt(be({},o),{data:id(o.data,l,t)})}),Tn=(a,e={})=>{const t={tags:e};return new uE(t).clean(a)},id=(a,e,t)=>Array.isArray(a)?hE(a,e,t):qe(a)?pE(a,e,t):un(a)?gE(a,e,t):a,hE=(a,e,t)=>a.map(o=>id(o,e,t)),pE=(a,e,t)=>{const o={},i=a;for(const l in a){if(!Object.prototype.hasOwnProperty.call(a,l))continue;const c=i[l],d=qe(e)?e:void 0,h=d==null?void 0:d[l],g=h!==void 0&&mE(h)?h:e;o[l]=id(c,g,t)}return o},gE=(a,e,t)=>{const o=TE(e,t);if(o){const i=Tn(a,o);return sd(ny(i,o))}if(!ot(t)){const i=Tn(a,t);return sd(ny(i,t))}return sd(a)},mE=a=>qe(a)||hv(a)||De(a),vE=a=>a?dE.test(a):!1,sd=a=>{if(!a||a.indexOf("<")===-1)return a;if(typeof document!="undefined"){const e=document.createElement("template");return e.innerHTML=a,e.content.querySelectorAll("[href],[src]").forEach(o=>{["href","src"].forEach(i=>{const l=o.getAttribute(i);vE(l)&&o.removeAttribute(i)})}),e.innerHTML}return a.replace(fE,"")},ad=a=>{if(ot(a))return{};const e={};for(const t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=Sr(a[t]));return e},ty=a=>function(t){const o=a.call(this,t);return o==null?{}:o},yE=new Set(["class","id","title","role","dir","lang"]),bE=a=>{const e=a.toLowerCase();return e.startsWith("data-")||e.startsWith("aria-")||yE.has(e)},kE=a=>{const e={};return Array.from(a.attributes).forEach(t=>{bE(t.name)&&(e[t.name]=!0)}),e},Sr=a=>a===!0?ty(kE):a===!1?!1:De(a)?ty(a):un(a)?a:qe(a)?Ko({},a):a,wE=(a,e)=>{if(ot(a))return ad(e);const t={};for(const o in a){if(!Object.prototype.hasOwnProperty.call(a,o))continue;const i=a[o],l=e?e[o]:void 0;if(De(l)){t[o]=Sr(l);continue}if(De(i)){t[o]=Sr(i);continue}if(qe(i)&&qe(l)){t[o]=Ko({},l,i);continue}if(l!==void 0){t[o]=Sr(l);continue}t[o]=Sr(i)}return t},TE=(a,e)=>qe(a)&&!De(a)?wE(e,a):a===!1?{}:ot(e)?null:ad(e),ld=(a,...e)=>{if(ot(a))return Object.assign({},...e);const t=ad(a);return e.forEach(o=>{if(o)for(const i in o){if(!Object.prototype.hasOwnProperty.call(o,i))continue;const l=o[i];if(!Object.prototype.hasOwnProperty.call(t,i))continue;const c=t[i];if(De(l)){t[i]=l;continue}if(!(l===!0&&De(c))){if(l===!0){const d=qe(c)&&!De(c);t[i]=d?Ko({},c):Sr(l);continue}if(qe(l)&&qe(c)){t[i]=Ko({},c,l);continue}t[i]=Sr(l)}}}),t},ny=(a,e)=>{if(typeof document=="undefined"||!a||a.indexOf("<")===-1)return a;const t=Object.entries(e).filter(([,i])=>De(i));if(t.length===0)return a;const o=document.createElement("template");return o.innerHTML=a,t.forEach(([i,l])=>{o.content.querySelectorAll(i).forEach(d=>{const h=l(d);if(!(hv(h)||De(h)||h==null))for(const[g,v]of Object.entries(h)){if(v===!1){d.removeAttribute(g);continue}v!==!0&&un(v)&&d.setAttribute(g,v)}})}),o.innerHTML};class xE extends Se{get methods(){return{clean:(e,t)=>this.clean(e,t)}}clean(e,t){return Tn(e,t)}}class EE extends Se{get methods(){return{save:()=>this.save()}}async save(){var l,c;const e="Blok's content can not be saved in read-only mode";if(this.Blok.ReadOnly.isEnabled)throw Qt(e,"warn"),new Error(e);const t=await this.Blok.Saver.save();if(t!==void 0)return t;const o=(c=(l=this.Blok.Saver).getLastSaveError)==null?void 0:c.call(l);if(o instanceof Error)throw o;const i=o!==void 0?String(o):"Blok's content can not be saved because collecting data failed";throw new Error(i)}}class SE extends Se{constructor(){super(...arguments),this.selectionUtils=new se}get methods(){return{findParentTag:(e,t)=>this.findParentTag(e,t),expandToTag:e=>this.expandToTag(e),save:()=>this.selectionUtils.save(),restore:()=>this.selectionUtils.restore(),setFakeBackground:()=>this.selectionUtils.setFakeBackground(),removeFakeBackground:()=>this.selectionUtils.removeFakeBackground()}}findParentTag(e,t){return this.selectionUtils.findParentTag(e,t)}expandToTag(e){this.selectionUtils.expandToTag(e)}}class CE extends Se{get methods(){return{getBlockTools:()=>Array.from(this.Blok.Tools.blockTools.values())}}}class BE extends Se{get classes(){return{block:"py-[theme(spacing.block-padding-vertical)] px-0 [&::-webkit-input-placeholder]:!leading-normal",inlineToolButton:"flex justify-center items-center border-0 rounded h-full p-0 w-7 bg-transparent cursor-pointer leading-normal text-black",inlineToolButtonActive:"bg-icon-active-bg text-icon-active-text",input:"w-full rounded-[3px] border border-line-gray px-3 py-2.5 outline-none shadow-input [&[data-blok-placeholder]]:before:!static [&[data-blok-placeholder]]:before:inline-block [&[data-blok-placeholder]]:before:w-0 [&[data-blok-placeholder]]:before:whitespace-nowrap [&[data-blok-placeholder]]:before:pointer-events-none",loader:"relative border border-line-gray before:absolute before:left-1/2 before:top-1/2 before:w-[18px] before:h-[18px] before:rounded-full before:content-[''] before:-ml-[11px] before:-mt-[11px] before:border-2 before:border-line-gray before:border-l-active-icon before:animate-rotation",button:"p-[13px] rounded-[3px] border border-line-gray text-[14.9px] bg-white text-center cursor-pointer text-gray-text shadow-button-base hover:bg-[#fbfcfe] hover:shadow-button-base-hover [&_svg]:h-5 [&_svg]:mr-[0.2em] [&_svg]:-mt-0.5",settingsButton:"inline-flex items-center justify-center rounded-[3px] cursor-pointer border-0 outline-none bg-transparent align-bottom text-inherit m-0 min-w-toolbox-btn min-h-toolbox-btn [&_svg]:w-auto [&_svg]:h-auto mobile:w-toolbox-btn-mobile mobile:h-toolbox-btn-mobile mobile:rounded-lg mobile:[&_svg]:w-icon-mobile mobile:[&_svg]:h-icon-mobile can-hover:hover:bg-bg-light",settingsButtonActive:"text-active-icon",settingsButtonFocused:"shadow-button-focused bg-item-focus-bg",settingsButtonFocusedAnimated:"animate-button-clicked"}}}class AE extends Se{get methods(){return{close:()=>this.close(),open:()=>this.open(),toggleBlockSettings:e=>this.toggleBlockSettings(e),toggleToolbox:e=>this.toggleToolbox(e)}}open(){this.Blok.Toolbar.moveAndOpen()}close(){this.Blok.Toolbar.close()}toggleBlockSettings(e){if(this.Blok.BlockManager.currentBlockIndex===-1){Qt("Could't toggle the Toolbar because there is no block selected ","warn");return}(e!=null?e:!this.Blok.BlockSettings.opened)?(this.Blok.Toolbar.moveAndOpen(),this.Blok.BlockSettings.open()):this.Blok.BlockSettings.close()}toggleToolbox(e){if(this.Blok.BlockManager.currentBlockIndex===-1){Qt("Could't toggle the Toolbox because there is no block selected ","warn");return}(e!=null?e:!this.Blok.Toolbar.toolbox.opened)?(this.Blok.Toolbar.moveAndOpen(),this.Blok.Toolbar.toolbox.open()):this.Blok.Toolbar.toolbox.close()}}const cd=10,IE="tooltip",_E="aria-hidden",RE="false",NE="true",OE="visibility",LE="visible",DE="hidden",tr=class tr{constructor(){this.nodes={wrapper:null,content:null},this.showed=!1,this.offsetTop=cd,this.offsetLeft=cd,this.offsetRight=cd,this.showingTimeout=null,this.hidingDelay=0,this.hidingTimeout=null,this.ariaObserver=null,this.handleWindowScroll=()=>{this.showed&&this.hide(!0)},this.prepare(),window.addEventListener("scroll",this.handleWindowScroll,{passive:!0})}get CSS(){return{tooltip:yt("absolute z-overlay top-0 left-0","bg-tooltip-bg opacity-0","select-none pointer-events-none","transition-[opacity,transform] duration-[50ms,70ms] ease-in","rounded-lg shadow-tooltip","will-change-[opacity,top,left]","before:content-[''] before:absolute before:inset-0 before:bg-tooltip-bg before:-z-10 before:rounded-lg","mobile:hidden").split(" "),tooltipContent:yt("px-2.5 py-1.5","text-tooltip-font text-xs text-center","tracking-[0.02em] leading-[1em]").split(" "),tooltipShown:["opacity-100","transform-none"],placement:{left:["-translate-x-[5px]"],bottom:["translate-y-[5px]"],right:["translate-x-[5px]"],top:["-translate-y-[5px]"]}}}static getInstance(){return tr.instance||(tr.instance=new tr),tr.instance}show(e,t,o={}){this.nodes.wrapper||this.prepare(),this.hidingTimeout&&(clearTimeout(this.hidingTimeout),this.hidingTimeout=null);const l=Object.assign({placement:"bottom",marginTop:0,marginLeft:0,marginRight:0,marginBottom:0,delay:70,hidingDelay:0},o);if(l.hidingDelay&&(this.hidingDelay=l.hidingDelay),!this.nodes.content||(this.nodes.content.innerHTML="",this.nodes.content.appendChild(this.createContentNode(t)),!this.nodes.wrapper))return;const c=Object.values(this.CSS.placement).flatMap(d=>Array.isArray(d)?d:[d]);switch(this.nodes.wrapper.classList.remove(...c),l.placement){case"top":this.placeTop(e,l);break;case"left":this.placeLeft(e,l);break;case"right":this.placeRight(e,l);break;case"bottom":default:this.placeBottom(e,l);break}if(l&&l.delay){this.showingTimeout=setTimeout(()=>{if(this.nodes.wrapper){const d=Array.isArray(this.CSS.tooltipShown)?this.CSS.tooltipShown:[this.CSS.tooltipShown];this.nodes.wrapper.classList.add(...d),this.updateTooltipVisibility()}this.showed=!0},l.delay);return}if(this.nodes.wrapper){const d=Array.isArray(this.CSS.tooltipShown)?this.CSS.tooltipShown:[this.CSS.tooltipShown];this.nodes.wrapper.classList.add(...d),this.updateTooltipVisibility()}this.showed=!0}createContentNode(e){if(typeof e=="string")return document.createTextNode(e);if(e instanceof Node)return e;throw Error("[Blok Tooltip] Wrong type of «content» passed. It should be an instance of Node or String. But "+typeof e+" given.")}hide(e=!1){const t=!!this.hidingDelay&&!e;if(t&&this.hidingTimeout&&clearTimeout(this.hidingTimeout),t){this.hidingTimeout=setTimeout(()=>{this.hide(!0)},this.hidingDelay);return}if(this.nodes.wrapper){const o=Array.isArray(this.CSS.tooltipShown)?this.CSS.tooltipShown:[this.CSS.tooltipShown];this.nodes.wrapper.classList.remove(...o),this.updateTooltipVisibility()}this.showed=!1,this.showingTimeout&&(clearTimeout(this.showingTimeout),this.showingTimeout=null)}onHover(e,t,o={}){e.addEventListener("mouseenter",()=>{this.show(e,t,o)}),e.addEventListener("mouseleave",()=>{this.hide()})}destroy(){var e;(e=this.ariaObserver)==null||e.disconnect(),this.ariaObserver=null,this.nodes.wrapper&&this.nodes.wrapper.remove(),window.removeEventListener("scroll",this.handleWindowScroll),tr.instance=null}prepare(){this.nodes.wrapper=this.make("div",this.CSS.tooltip),this.nodes.wrapper.setAttribute(ro,$u),this.nodes.wrapper.setAttribute("data-blok-testid","tooltip"),this.nodes.content=this.make("div",this.CSS.tooltipContent),this.nodes.content.setAttribute("data-blok-testid","tooltip-content"),this.nodes.wrapper&&this.nodes.content&&(this.append(this.nodes.wrapper,this.nodes.content),this.append(document.body,this.nodes.wrapper),this.ensureTooltipAttributes())}updateTooltipVisibility(){if(!this.nodes.wrapper)return;const e=Array.isArray(this.CSS.tooltipShown)?this.CSS.tooltipShown[0]:this.CSS.tooltipShown,t=this.nodes.wrapper.classList.contains(e);this.nodes.wrapper.style.setProperty(OE,t?LE:DE),this.nodes.wrapper.setAttribute(_E,t?RE:NE),this.nodes.wrapper.setAttribute("data-blok-shown",t?"true":"false")}watchTooltipVisibility(){var e;this.nodes.wrapper&&((e=this.ariaObserver)==null||e.disconnect(),this.updateTooltipVisibility(),this.ariaObserver=new MutationObserver(()=>{this.updateTooltipVisibility()}),this.ariaObserver.observe(this.nodes.wrapper,{attributes:!0,attributeFilter:["class"]}))}ensureTooltipAttributes(){this.nodes.wrapper&&((!this.nodes.wrapper.hasAttribute(ro)||this.nodes.wrapper.getAttribute(ro)!==$u)&&this.nodes.wrapper.setAttribute(ro,$u),this.nodes.wrapper.setAttribute("role",IE),this.watchTooltipVisibility())}placeBottom(e,t){var c;if(!this.nodes.wrapper)return;const o=e.getBoundingClientRect(),i=o.left+e.clientWidth/2-this.nodes.wrapper.offsetWidth/2,l=o.bottom+this.getScrollTop()+this.offsetTop+((c=t.marginTop)!=null?c:0);this.applyPlacement("bottom",i,l)}placeTop(e,t){if(!this.nodes.wrapper)return;const o=e.getBoundingClientRect(),i=o.left+e.clientWidth/2-this.nodes.wrapper.offsetWidth/2,l=o.top+this.getScrollTop()-this.nodes.wrapper.clientHeight-this.offsetTop;this.applyPlacement("top",i,l)}placeLeft(e,t){var c;if(!this.nodes.wrapper)return;const o=e.getBoundingClientRect(),i=o.left-this.nodes.wrapper.offsetWidth-this.offsetLeft-((c=t.marginLeft)!=null?c:0),l=o.top+this.getScrollTop()+e.clientHeight/2-this.nodes.wrapper.offsetHeight/2;this.applyPlacement("left",i,l)}placeRight(e,t){var c;if(!this.nodes.wrapper)return;const o=e.getBoundingClientRect(),i=o.right+this.offsetRight+((c=t.marginRight)!=null?c:0),l=o.top+this.getScrollTop()+e.clientHeight/2-this.nodes.wrapper.offsetHeight/2;this.applyPlacement("right",i,l)}applyPlacement(e,t,o){if(!this.nodes.wrapper)return;const i=Array.isArray(this.CSS.placement[e])?this.CSS.placement[e]:[this.CSS.placement[e]];this.nodes.wrapper.classList.add(...i),this.nodes.wrapper.setAttribute("data-blok-placement",e),this.nodes.wrapper.style.left=`${t}px`,this.nodes.wrapper.style.top=`${o}px`}getScrollTop(){var e,t,o;return typeof window.scrollY=="number"?window.scrollY:(o=(t=(e=document.documentElement)==null?void 0:e.scrollTop)!=null?t:document.body.scrollTop)!=null?o:0}make(e,t=null,o={}){const i=document.createElement(e);Array.isArray(t)&&i.classList.add(...t),typeof t=="string"&&i.classList.add(t);for(const l in o)Object.prototype.hasOwnProperty.call(o,l)&&(i[l]=o[l]);return i}append(e,t){Array.isArray(t)?t.forEach(o=>e.appendChild(o)):e.appendChild(t)}prepend(e,t){Array.isArray(t)?t.reverse().forEach(i=>e.prepend(i)):e.prepend(t)}};tr.instance=null;let ud=tr;const ms=()=>ud.getInstance(),PE=(a,e,t)=>{ms().show(a,e,t!=null?t:{})},Qo=(a=!1)=>{ms().hide(a)},vs=(a,e,t)=>{ms().onHover(a,e,t!=null?t:{})},ME=()=>{ms().destroy()};class FE extends Se{constructor({config:e,eventsDispatcher:t}){super({config:e,eventsDispatcher:t})}get methods(){return{show:(e,t,o)=>this.show(e,t,o),hide:()=>this.hide(),onHover:(e,t,o)=>this.onHover(e,t,o)}}show(e,t,o){PE(e,t,o)}hide(){Qo()}onHover(e,t,o){vs(e,t,o)}}class zE extends Se{get methods(){return{nodes:this.blokNodes}}get blokNodes(){return{wrapper:this.Blok.UI.nodes.wrapper,redactor:this.Blok.UI.nodes.redactor}}}const ry=(a,e)=>{const t={};return Object.entries(a).forEach(([o,i])=>{if(!qe(i)){t[o]=i;return}const l=e?`${e}.${o}`:o;if(!Object.values(i).every(d=>un(d))){t[o]=ry(i,l);return}t[o]=l}),t},it=ry(wv),Dr=class Dr{constructor(e,t){this.cursor=-1,this.items=[],this.items=e!=null?e:[],this.focusedCssClass=t}get currentItem(){return this.cursor===-1?null:this.items[this.cursor]}setCursor(e){e<this.items.length&&e>=-1&&(this.dropCursor(),this.cursor=e,this.items[this.cursor].classList.add(this.focusedCssClass),this.items[this.cursor].setAttribute("data-blok-focused","true"))}setItems(e){this.items=e}hasItems(){return this.items.length>0}next(){this.cursor=this.leafNodesAndReturnIndex(Dr.directions.RIGHT)}previous(){this.cursor=this.leafNodesAndReturnIndex(Dr.directions.LEFT)}dropCursor(){this.cursor!==-1&&(this.items[this.cursor].classList.remove(this.focusedCssClass),this.items[this.cursor].removeAttribute("data-blok-focused"),this.cursor=-1)}leafNodesAndReturnIndex(e){if(this.items.length===0)return this.cursor;const t=e===Dr.directions.RIGHT?-1:0,o=this.cursor===-1?t:this.cursor;o!==-1&&(this.items[o].classList.remove(this.focusedCssClass),this.items[o].removeAttribute("data-blok-focused"));const i=e===Dr.directions.RIGHT?(o+1)%this.items.length:(this.items.length+o-1)%this.items.length;return N.canSetCaret(this.items[i])&&cs(()=>se.setCursor(this.items[i]),50)(),this.items[i].classList.add(this.focusedCssClass),this.items[i].setAttribute("data-blok-focused","true"),i}};Dr.directions={RIGHT:"right",LEFT:"left"};let Cr=Dr;class Yn{constructor(e){var t,o;this.iterator=null,this.activated=!1,this.skipNextTabFocus=!1,this.flipCallbacks=[],this.onKeyDown=i=>{var g;const l=i.target;if(this.shouldSkipTarget(l,i))return;const c=this.getKeyCode(i),d=c===ie.LEFT||c===ie.RIGHT||c===ie.UP||c===ie.DOWN;if(!(i.shiftKey&&d||!this.isEventReadyForHandling(i))&&!(c===ie.ENTER&&!((g=this.iterator)!=null&&g.currentItem)))switch(i.stopPropagation(),i.stopImmediatePropagation(),c!==null&&Yn.usedKeys.includes(c)&&i.preventDefault(),c){case ie.TAB:this.handleTabPress(i);break;case ie.LEFT:case ie.UP:this.flipLeft();break;case ie.RIGHT:case ie.DOWN:this.flipRight();break;case ie.ENTER:this.handleEnterPress(i);break}},this.iterator=new Cr(e.items||[],(t=e.focusedItemClass)!=null?t:""),this.activateCallback=e.activateCallback,this.allowedKeys=e.allowedKeys||Yn.usedKeys,this.handleContentEditableTargets=(o=e.handleContentEditableTargets)!=null?o:!1}get isActivated(){return this.activated}static get usedKeys(){return[ie.TAB,ie.LEFT,ie.RIGHT,ie.ENTER,ie.UP,ie.DOWN]}activate(e,t){var o,i;this.activated=!0,e&&((o=this.iterator)==null||o.setItems(e)),t!==void 0&&((i=this.iterator)==null||i.setCursor(t)),document.addEventListener("keydown",this.onKeyDown,!0),window.addEventListener("keydown",this.onKeyDown,!0)}deactivate(){this.activated=!1,this.dropCursor(),this.skipNextTabFocus=!1,document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("keydown",this.onKeyDown,!0)}focusFirst(){this.dropCursor(),this.flipRight()}focusItem(e){const t=this.iterator;if(t&&t.hasItems()){if(e<0){t.dropCursor();return}!t.currentItem&&e===0&&(this.skipNextTabFocus=!0),t.setCursor(e)}}flipLeft(){var e;(e=this.iterator)==null||e.previous(),this.flipCallback()}flipRight(){var e;(e=this.iterator)==null||e.next(),this.flipCallback()}hasFocus(){var e;return!!((e=this.iterator)!=null&&e.currentItem)}onFlip(e){this.flipCallbacks.push(e)}removeOnFlip(e){this.flipCallbacks=this.flipCallbacks.filter(t=>t!==e)}dropCursor(){var e;(e=this.iterator)==null||e.dropCursor()}getKeyCode(e){var o;return(o={Tab:ie.TAB,Enter:ie.ENTER,ArrowLeft:ie.LEFT,ArrowRight:ie.RIGHT,ArrowUp:ie.UP,ArrowDown:ie.DOWN}[e.key])!=null?o:null}isEventReadyForHandling(e){const t=this.getKeyCode(e);return this.activated&&t!==null&&this.allowedKeys.includes(t)}setHandleContentEditableTargets(e){this.handleContentEditableTargets=e}handleTabPress(e){const o=e.shiftKey?Cr.directions.LEFT:Cr.directions.RIGHT;if(this.skipNextTabFocus){this.skipNextTabFocus=!1;return}switch(o){case Cr.directions.RIGHT:this.flipRight();break;case Cr.directions.LEFT:this.flipLeft();break}}handleExternalKeydown(e){this.onKeyDown(e)}handleEnterPress(e){var t,o;this.activated&&((t=this.iterator)!=null&&t.currentItem&&(e.stopPropagation(),e.preventDefault(),this.iterator.currentItem.click()),De(this.activateCallback)&&((o=this.iterator)!=null&&o.currentItem)&&this.activateCallback(this.iterator.currentItem))}flipCallback(){var e,t,o;(e=this.iterator)!=null&&e.currentItem&&((o=(t=this.iterator.currentItem).scrollIntoViewIfNeeded)==null||o.call(t)),this.flipCallbacks.forEach(i=>i())}shouldSkipTarget(e,t){if(!e)return!1;const o=e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement,i=e.getAttribute("data-blok-flipper-tab-target")==="true"&&t.key==="Tab",l=e.isContentEditable,c=e.closest('[data-blok-link-tool-input-opened="true"]')!==null,d=l&&!this.handleContentEditableTargets;return o&&!i||d||c}}var dd={exports:{}},Zo={},fd={exports:{}},Te={};var oy;function HE(){if(oy)return Te;oy=1;var a=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function b(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function S(A,P,ae){this.props=A,this.context=P,this.refs=T,this.updater=ae||x}S.prototype.isReactComponent={},S.prototype.setState=function(A,P){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,P,"setState")},S.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function O(){}O.prototype=S.prototype;function L(A,P,ae){this.props=A,this.context=P,this.refs=T,this.updater=ae||x}var U=L.prototype=new O;U.constructor=L,w(U,S.prototype),U.isPureReactComponent=!0;var H=Array.isArray,X=Object.prototype.hasOwnProperty,q={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function F(A,P,ae){var fe,Ee={},Re=null,me=null;if(P!=null)for(fe in P.ref!==void 0&&(me=P.ref),P.key!==void 0&&(Re=""+P.key),P)X.call(P,fe)&&!W.hasOwnProperty(fe)&&(Ee[fe]=P[fe]);var Pe=arguments.length-2;if(Pe===1)Ee.children=ae;else if(1<Pe){for(var ze=Array(Pe),pt=0;pt<Pe;pt++)ze[pt]=arguments[pt+2];Ee.children=ze}if(A&&A.defaultProps)for(fe in Pe=A.defaultProps,Pe)Ee[fe]===void 0&&(Ee[fe]=Pe[fe]);return{$$typeof:a,type:A,key:Re,ref:me,props:Ee,_owner:q.current}}function ne(A,P){return{$$typeof:a,type:A.type,key:P,ref:A.ref,props:A.props,_owner:A._owner}}function ce(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function Q(A){var P={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ae){return P[ae]})}var ye=/\/+/g;function Z(A,P){return typeof A=="object"&&A!==null&&A.key!=null?Q(""+A.key):P.toString(36)}function we(A,P,ae,fe,Ee){var Re=typeof A;(Re==="undefined"||Re==="boolean")&&(A=null);var me=!1;if(A===null)me=!0;else switch(Re){case"string":case"number":me=!0;break;case"object":switch(A.$$typeof){case a:case e:me=!0}}if(me)return me=A,Ee=Ee(me),A=fe===""?"."+Z(me,0):fe,H(Ee)?(ae="",A!=null&&(ae=A.replace(ye,"$&/")+"/"),we(Ee,P,ae,"",function(pt){return pt})):Ee!=null&&(ce(Ee)&&(Ee=ne(Ee,ae+(!Ee.key||me&&me.key===Ee.key?"":(""+Ee.key).replace(ye,"$&/")+"/")+A)),P.push(Ee)),1;if(me=0,fe=fe===""?".":fe+":",H(A))for(var Pe=0;Pe<A.length;Pe++){Re=A[Pe];var ze=fe+Z(Re,Pe);me+=we(Re,P,ae,ze,Ee)}else if(ze=b(A),typeof ze=="function")for(A=ze.call(A),Pe=0;!(Re=A.next()).done;)Re=Re.value,ze=fe+Z(Re,Pe++),me+=we(Re,P,ae,ze,Ee);else if(Re==="object")throw P=String(A),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.");return me}function Oe(A,P,ae){if(A==null)return A;var fe=[],Ee=0;return we(A,fe,"","",function(Re){return P.call(ae,Re,Ee++)}),fe}function xe(A){if(A._status===-1){var P=A._result;P=P(),P.then(function(ae){(A._status===0||A._status===-1)&&(A._status=1,A._result=ae)},function(ae){(A._status===0||A._status===-1)&&(A._status=2,A._result=ae)}),A._status===-1&&(A._status=0,A._result=P)}if(A._status===1)return A._result.default;throw A._result}var _e={current:null},D={transition:null},le={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:D,ReactCurrentOwner:q};function G(){throw Error("act(...) is not supported in production builds of React.")}return Te.Children={map:Oe,forEach:function(A,P,ae){Oe(A,function(){P.apply(this,arguments)},ae)},count:function(A){var P=0;return Oe(A,function(){P++}),P},toArray:function(A){return Oe(A,function(P){return P})||[]},only:function(A){if(!ce(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Te.Component=S,Te.Fragment=t,Te.Profiler=i,Te.PureComponent=L,Te.StrictMode=o,Te.Suspense=h,Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=le,Te.act=G,Te.cloneElement=function(A,P,ae){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var fe=w({},A.props),Ee=A.key,Re=A.ref,me=A._owner;if(P!=null){if(P.ref!==void 0&&(Re=P.ref,me=q.current),P.key!==void 0&&(Ee=""+P.key),A.type&&A.type.defaultProps)var Pe=A.type.defaultProps;for(ze in P)X.call(P,ze)&&!W.hasOwnProperty(ze)&&(fe[ze]=P[ze]===void 0&&Pe!==void 0?Pe[ze]:P[ze])}var ze=arguments.length-2;if(ze===1)fe.children=ae;else if(1<ze){Pe=Array(ze);for(var pt=0;pt<ze;pt++)Pe[pt]=arguments[pt+2];fe.children=Pe}return{$$typeof:a,type:A.type,key:Ee,ref:Re,props:fe,_owner:me}},Te.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:l,_context:A},A.Consumer=A},Te.createElement=F,Te.createFactory=function(A){var P=F.bind(null,A);return P.type=A,P},Te.createRef=function(){return{current:null}},Te.forwardRef=function(A){return{$$typeof:d,render:A}},Te.isValidElement=ce,Te.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:xe}},Te.memo=function(A,P){return{$$typeof:g,type:A,compare:P===void 0?null:P}},Te.startTransition=function(A){var P=D.transition;D.transition={};try{A()}finally{D.transition=P}},Te.unstable_act=G,Te.useCallback=function(A,P){return _e.current.useCallback(A,P)},Te.useContext=function(A){return _e.current.useContext(A)},Te.useDebugValue=function(){},Te.useDeferredValue=function(A){return _e.current.useDeferredValue(A)},Te.useEffect=function(A,P){return _e.current.useEffect(A,P)},Te.useId=function(){return _e.current.useId()},Te.useImperativeHandle=function(A,P,ae){return _e.current.useImperativeHandle(A,P,ae)},Te.useInsertionEffect=function(A,P){return _e.current.useInsertionEffect(A,P)},Te.useLayoutEffect=function(A,P){return _e.current.useLayoutEffect(A,P)},Te.useMemo=function(A,P){return _e.current.useMemo(A,P)},Te.useReducer=function(A,P,ae){return _e.current.useReducer(A,P,ae)},Te.useRef=function(A){return _e.current.useRef(A)},Te.useState=function(A){return _e.current.useState(A)},Te.useSyncExternalStore=function(A,P,ae){return _e.current.useSyncExternalStore(A,P,ae)},Te.useTransition=function(){return _e.current.useTransition()},Te.version="18.3.1",Te}var iy;function hd(){return iy||(iy=1,fd.exports=HE()),fd.exports}var sy;function jE(){if(sy)return Zo;sy=1;var a=hd(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,h,g){var v,y={},b=null,x=null;g!==void 0&&(b=""+g),h.key!==void 0&&(b=""+h.key),h.ref!==void 0&&(x=h.ref);for(v in h)o.call(h,v)&&!l.hasOwnProperty(v)&&(y[v]=h[v]);if(d&&d.defaultProps)for(v in h=d.defaultProps,h)y[v]===void 0&&(y[v]=h[v]);return{$$typeof:e,type:d,key:b,ref:x,props:y,_owner:i.current}}return Zo.Fragment=t,Zo.jsx=c,Zo.jsxs=c,Zo}var ay;function qE(){return ay||(ay=1,dd.exports=jE()),dd.exports}var xn=qE(),ys={},pd={exports:{}},Ot={},gd={exports:{}},md={};var ly;function UE(){return ly||(ly=1,(function(a){function e(D,le){var G=D.length;D.push(le);e:for(;0<G;){var A=G-1>>>1,P=D[A];if(0<i(P,le))D[A]=le,D[G]=P,G=A;else break e}}function t(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var le=D[0],G=D.pop();if(G!==le){D[0]=G;e:for(var A=0,P=D.length,ae=P>>>1;A<ae;){var fe=2*(A+1)-1,Ee=D[fe],Re=fe+1,me=D[Re];if(0>i(Ee,G))Re<P&&0>i(me,Ee)?(D[A]=me,D[Re]=G,A=Re):(D[A]=Ee,D[fe]=G,A=fe);else if(Re<P&&0>i(me,G))D[A]=me,D[Re]=G,A=Re;else break e}}return le}function i(D,le){var G=D.sortIndex-le.sortIndex;return G!==0?G:D.id-le.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;a.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();a.unstable_now=function(){return c.now()-d}}var h=[],g=[],v=1,y=null,b=3,x=!1,w=!1,T=!1,S=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function U(D){for(var le=t(g);le!==null;){if(le.callback===null)o(g);else if(le.startTime<=D)o(g),le.sortIndex=le.expirationTime,e(h,le);else break;le=t(g)}}function H(D){if(T=!1,U(D),!w)if(t(h)!==null)w=!0,xe(X);else{var le=t(g);le!==null&&_e(H,le.startTime-D)}}function X(D,le){w=!1,T&&(T=!1,O(F),F=-1),x=!0;var G=b;try{for(U(le),y=t(h);y!==null&&(!(y.expirationTime>le)||D&&!Q());){var A=y.callback;if(typeof A=="function"){y.callback=null,b=y.priorityLevel;var P=A(y.expirationTime<=le);le=a.unstable_now(),typeof P=="function"?y.callback=P:y===t(h)&&o(h),U(le)}else o(h);y=t(h)}if(y!==null)var ae=!0;else{var fe=t(g);fe!==null&&_e(H,fe.startTime-le),ae=!1}return ae}finally{y=null,b=G,x=!1}}var q=!1,W=null,F=-1,ne=5,ce=-1;function Q(){return!(a.unstable_now()-ce<ne)}function ye(){if(W!==null){var D=a.unstable_now();ce=D;var le=!0;try{le=W(!0,D)}finally{le?Z():(q=!1,W=null)}}else q=!1}var Z;if(typeof L=="function")Z=function(){L(ye)};else if(typeof MessageChannel!="undefined"){var we=new MessageChannel,Oe=we.port2;we.port1.onmessage=ye,Z=function(){Oe.postMessage(null)}}else Z=function(){S(ye,0)};function xe(D){W=D,q||(q=!0,Z())}function _e(D,le){F=S(function(){D(a.unstable_now())},le)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(D){D.callback=null},a.unstable_continueExecution=function(){w||x||(w=!0,xe(X))},a.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<D?Math.floor(1e3/D):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_getFirstCallbackNode=function(){return t(h)},a.unstable_next=function(D){switch(b){case 1:case 2:case 3:var le=3;break;default:le=b}var G=b;b=le;try{return D()}finally{b=G}},a.unstable_pauseExecution=function(){},a.unstable_requestPaint=function(){},a.unstable_runWithPriority=function(D,le){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var G=b;b=D;try{return le()}finally{b=G}},a.unstable_scheduleCallback=function(D,le,G){var A=a.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?A+G:A):G=A,D){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=G+P,D={id:v++,callback:le,priorityLevel:D,startTime:G,expirationTime:P,sortIndex:-1},G>A?(D.sortIndex=G,e(g,D),t(h)===null&&D===t(g)&&(T?(O(F),F=-1):T=!0,_e(H,G-A))):(D.sortIndex=P,e(h,D),w||x||(w=!0,xe(X))),D},a.unstable_shouldYield=Q,a.unstable_wrapCallback=function(D){var le=b;return function(){var G=b;b=le;try{return D.apply(this,arguments)}finally{b=G}}}})(md)),md}var cy;function WE(){return cy||(cy=1,gd.exports=UE()),gd.exports}var uy;function KE(){if(uy)return Ot;uy=1;var a=hd(),e=WE();function t(n){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s<arguments.length;s++)r+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,i={};function l(n,r){c(n,r),c(n+"Capture",r)}function c(n,r){for(i[n]=r,n=0;n<r.length;n++)o.add(r[n])}var d=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),h=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,v={},y={};function b(n){return h.call(y,n)?!0:h.call(v,n)?!1:g.test(n)?y[n]=!0:(v[n]=!0,!1)}function x(n,r,s,u){if(s!==null&&s.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return u?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function w(n,r,s,u){if(r===null||typeof r=="undefined"||x(n,r,s,u))return!0;if(u)return!1;if(s!==null)switch(s.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function T(n,r,s,u,f,p,m){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=u,this.attributeNamespace=f,this.mustUseProperty=s,this.propertyName=n,this.type=r,this.sanitizeURL=p,this.removeEmptyString=m}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){S[n]=new T(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var r=n[0];S[r]=new T(r,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){S[n]=new T(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){S[n]=new T(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){S[n]=new T(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){S[n]=new T(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){S[n]=new T(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){S[n]=new T(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){S[n]=new T(n,5,!1,n.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function L(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var r=n.replace(O,L);S[r]=new T(r,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var r=n.replace(O,L);S[r]=new T(r,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var r=n.replace(O,L);S[r]=new T(r,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){S[n]=new T(n,1,!1,n.toLowerCase(),null,!1,!1)}),S.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){S[n]=new T(n,1,!1,n.toLowerCase(),null,!0,!0)});function U(n,r,s,u){var f=S.hasOwnProperty(r)?S[r]:null;(f!==null?f.type!==0:u||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(w(r,s,f,u)&&(s=null),u||f===null?b(r)&&(s===null?n.removeAttribute(r):n.setAttribute(r,""+s)):f.mustUseProperty?n[f.propertyName]=s===null?f.type===3?!1:"":s:(r=f.attributeName,u=f.attributeNamespace,s===null?n.removeAttribute(r):(f=f.type,s=f===3||f===4&&s===!0?"":""+s,u?n.setAttributeNS(u,r,s):n.setAttribute(r,s))))}var H=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,X=Symbol.for("react.element"),q=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),ce=Symbol.for("react.provider"),Q=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),we=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),_e=Symbol.for("react.offscreen"),D=Symbol.iterator;function le(n){return n===null||typeof n!="object"?null:(n=D&&n[D]||n["@@iterator"],typeof n=="function"?n:null)}var G=Object.assign,A;function P(n){if(A===void 0)try{throw Error()}catch(s){var r=s.stack.trim().match(/\n( *(at )?)/);A=r&&r[1]||""}return`
|
|
10
|
+
margin: 4px 5px 4px 0;`,v=a?c?(d.unshift(g,i),`%c${h}%c ${e}`):`( ${h} )${e}`:e,y=c?o!==void 0?[`${v} %o`,...d]:[v,...d]:[v];try{l[t](...y)}catch(b){}};Wo.logLevel="VERBOSE";const _1=a=>{Wo.logLevel=a},Be=(a,e="log",t,o)=>{Wo(!1,a,e,t,o)},Qt=(a,e="log",t,o)=>{Wo(!0,a,e,t,o)},De=a=>LT(a),qe=a=>zT(a),un=a=>jT(a),hv=a=>N0(a),pv=a=>MT(a),R1=function(a){return WT(a)},ot=a=>K0(a),gv=a=>C1(a),cs=(a,e)=>function(...t){I0(()=>a.apply(this,t),e)},N1=a=>{var e;return(e=a.name.split(".").pop())!=null?e:""},O1=a=>/^[-\w]+\/([-+\w]+|\*)$/.test(a),mv=(a,e,t)=>{const o={timeoutId:null};return function(...i){const l=()=>{o.timeoutId=null,a.apply(this,i)};o.timeoutId!==null&&clearTimeout(o.timeoutId),o.timeoutId=setTimeout(l,e)}},Hu=(a,e,t)=>g1(a,e,t),vv=()=>{var i,l;const a={win:!1,mac:!1,x11:!1,linux:!1},e=fv(),t=(l=(i=e==null?void 0:e.userAgent)==null?void 0:i.toLowerCase())!=null?l:"",o=t?Object.keys(a).find(c=>t.indexOf(c)!==-1):void 0;return o!==void 0&&(a[o]=!0),a},us=a=>a&&a.slice(0,1).toUpperCase()+a.slice(1),L1=(a,e)=>{if(Array.isArray(e))return e},Ko=(a,...e)=>!qe(a)||e.length===0?a:e.reduce((t,o)=>qe(o)?u1(t,o,L1):t,a),yv=a=>{const e=vv(),t=a.replace(/shift/gi,"⇧").replace(/backspace/gi,"⌫").replace(/enter/gi,"⏎").replace(/up/gi,"↑").replace(/left/gi,"→").replace(/down/gi,"↓").replace(/right/gi,"←").replace(/escape/gi,"⎋").replace(/insert/gi,"Ins").replace(/delete/gi,"␡").replace(/\+/gi," + ");return e.mac?t.replace(/ctrl|cmd/gi,"⌘").replace(/alt/gi,"⌥"):t.replace(/cmd/gi,"Ctrl").replace(/windows/gi,"WIN")},D1=a=>{try{return new URL(a).href}catch(t){}const e=ls();return a.substring(0,2)==="//"?e?`${e.location.protocol}${a}`:a:e?`${e.location.origin}${a}`:a},P1=()=>u0(10),M1=a=>{const e=ls();e&&e.open(a,"_blank")},F1=(a="")=>`${a}${Math.floor(Math.random()*A1).toString(I1)}`,bv=650,Gn=()=>{const a=ls();return!a||typeof a.matchMedia!="function"?!1:a.matchMedia(`(max-width: ${bv}px)`).matches},ju=(()=>{var h;const a=fv();if(!a)return!1;const e=a.userAgent||"",t=a.userAgentData,o=t==null?void 0:t.platform;if(/iP(ad|hone|od)/.test(e)||o!==void 0&&o!==""&&/iP(ad|hone|od)/.test(o))return!0;const i=((h=a.maxTouchPoints)!=null?h:0)>1,l=()=>a.platform,c=o!==void 0&&o!==""?o:void 0;return(i?c!=null?c:l():void 0)==="MacIntel"})(),z1=(a,e)=>NT(a,e);class N{static isSingleTag(e){return!!e.tagName&&["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"].includes(e.tagName)}static isLineBreakTag(e){return!!e&&["BR","WBR"].includes(e.tagName)}static isValidClassName(e){if(e===""||/\s/.test(e))return!1;try{return document.createElement("div").classList.add(e),!0}catch(t){return!1}}static safelyAddClasses(e,t){const o=[],i=[];for(const l of t)N.isValidClassName(l)?o.push(l):i.push(l);if(o.length>0&&e.classList.add(...o),i.length>0){const l=e.className,c=l?`${l} ${i.join(" ")}`:i.join(" ");e.setAttribute("class",c)}}static make(e,t=null,o={}){const i=document.createElement(e);if(Array.isArray(t)){const l=t.filter(c=>c!==void 0&&c!=="").flatMap(c=>c.split(" ")).filter(c=>c!=="");N.safelyAddClasses(i,l)}if(typeof t=="string"&&t!==""){const l=t.split(" ").filter(c=>c!=="");N.safelyAddClasses(i,l)}for(const l in o){if(!Object.prototype.hasOwnProperty.call(o,l))continue;const c=o[l];if(c!=null){if(l in i){i[l]=c;continue}i.setAttribute(l,String(c))}}return i}static text(e){return document.createTextNode(e)}static append(e,t){Array.isArray(t)?t.forEach(o=>e.appendChild(o)):e.appendChild(t)}static prepend(e,t){Array.isArray(t)?[...t].reverse().forEach(i=>e.prepend(i)):e.prepend(t)}static find(e=document,t){return e.querySelector(t)}static get(e){return document.getElementById(e)}static findAll(e=document,t){return e.querySelectorAll(t)}static get allInputsSelector(){return"[contenteditable=true], textarea, input:not([type]), "+["text","password","email","number","search","tel","url"].map(t=>`input[type="${t}"]`).join(", ")}static findAllInputs(e){return gv(e.querySelectorAll(N.allInputsSelector)).reduce((t,o)=>N.isNativeInput(o)||N.containsOnlyInlineElements(o)?[...t,o]:[...t,...N.getDeepestBlockElements(o)],[])}static getDeepestNode(e,t=!1){var v;const o=t?"lastChild":"firstChild",i=t?"previousSibling":"nextSibling";if(e===null||e.nodeType!==Node.ELEMENT_NODE)return e;const l=e[o];if(l===null)return e;const c=l;if(!(N.isSingleTag(c)&&!N.isNativeInput(c)&&!N.isLineBreakTag(c)))return this.getDeepestNode(c,t);const h=c[i];if(h)return this.getDeepestNode(h,t);const g=(v=c.parentNode)==null?void 0:v[i];return g?this.getDeepestNode(g,t):c.parentNode}static isElement(e){return pv(e)?!1:e!=null&&e.nodeType!=null&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return pv(e)?!1:e!=null&&e.nodeType!=null&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isContentEditable(e){return e.contentEditable==="true"}static isNativeInput(e){const t=["INPUT","TEXTAREA"];return e!=null&&typeof e.tagName=="string"?t.includes(e.tagName):!1}static canSetCaret(e){return N.isNativeInput(e)?!new Set(["file","checkbox","radio","hidden","submit","button","image","reset"]).has(e.type):N.isContentEditable(e)}static isNodeEmpty(e,t){var l,c;if(this.isSingleTag(e)&&!this.isLineBreakTag(e))return!1;const o=this.isElement(e)&&this.isNativeInput(e)?e.value:(l=e.textContent)==null?void 0:l.replace("",""),i=t?o==null?void 0:o.replace(new RegExp(t,"g"),""):o;return((c=i==null?void 0:i.length)!=null?c:0)===0}static isLeaf(e){return e?e.childNodes.length===0:!1}static isEmpty(e,t){const o=[e];for(;o.length>0;){const i=o.shift();if(i){if(this.isLeaf(i)&&!this.isNodeEmpty(i,t))return!1;i.childNodes&&o.push(...Array.from(i.childNodes))}}return!0}static isHTMLString(e){const t=N.make("div");return t.innerHTML=e,t.childElementCount>0}static getContentLength(e){var t,o;return N.isNativeInput(e)?e.value.length:e.nodeType===Node.TEXT_NODE?e.length:(o=(t=e.textContent)==null?void 0:t.length)!=null?o:0}static get blockElements(){return["address","article","aside","blockquote","canvas","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","ruby","section","table","tbody","thead","tr","tfoot","ul","video"]}static containsOnlyInlineElements(e){const t=un(e)?(()=>{const i=document.createElement("div");return i.innerHTML=e,i})():e,o=i=>!N.blockElements.includes(i.tagName.toLowerCase())&&Array.from(i.children).every(o);return Array.from(t.children).every(o)}static getDeepestBlockElements(e){return N.containsOnlyInlineElements(e)?[e]:Array.from(e.children).reduce((t,o)=>[...t,...N.getDeepestBlockElements(o)],[])}static getHolder(e){if(!un(e))return e;const t=document.getElementById(e);if(t!==null)return t;throw new Error(`Element with id "${e}" not found`)}static isAnchor(e){return e.tagName.toLowerCase()==="a"}static offset(e){const t=e.getBoundingClientRect(),o=window.scrollX||document.documentElement.scrollLeft,i=window.scrollY||document.documentElement.scrollTop,l=t.top+i,c=t.left+o;return{top:l,left:c,bottom:l+t.height,right:c+t.width}}static getNodeByOffset(e,t){const o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=(g,v,y,b)=>{var S;if(!g&&y){const O=v-b,L=Math.max(t-O,0),U=Math.min(L,b);return{node:y,offset:U}}if(!g)return{node:null,offset:0};const w=((S=g.textContent)!=null?S:"").length;return v+w>=t?{node:g,offset:Math.min(t-v,w)}:i(o.nextNode(),v+w,g,w)},l=o.nextNode(),{node:c,offset:d}=i(l,0,null,0);if(!c)return{node:null,offset:0};const h=c.textContent;return!h||h.length===0?{node:null,offset:0}:{node:c,offset:d}}}const qu=a=>!/[^\t\n\r \u200B]/.test(a),H1=a=>{const e=window.getComputedStyle(a),t=parseFloat(e.fontSize),o=parseFloat(e.lineHeight)||t*1.2,i=parseFloat(e.paddingTop),l=parseFloat(e.borderTopWidth),c=parseFloat(e.marginTop),d=t*.8,h=(o-t)/2;return c+l+i+h+d},kv=a=>{a.setAttribute("data-blok-empty",N.isEmpty(a)?"true":"false")},wv={ui:{blockTunes:{toggler:{"Drag to move":"","Click to open the menu":""}},inlineToolbar:{converter:{"Convert to":""}},toolbar:{toolbox:{"Click to add below":"","Option-click to add above":"","Ctrl-click to add above":""}},popover:{Filter:"","Nothing found":"","Convert to":""}},toolNames:{Text:"",Link:"",Bold:"",Italic:""},tools:{link:{"Add a link":""},stub:{"The block can not be displayed correctly.":""}},blockTunes:{delete:{Delete:"","Click to delete":""},moveUp:{"Move up":""},moveDown:{"Move down":""}}},er=class er{static ui(e,t){return er._t(e,t)}static t(e,t){return er._t(e,t)}static setDictionary(e){er.currentDictionary=e}static _t(e,t){const o=er.getNamespace(e);return!o||!o[t]?t:o[t]}static getNamespace(e){return e.split(".").reduce((o,i)=>{if(!o||!Object.keys(o).length)return{};const l=o[i];return typeof l=="string"?{}:l},er.currentDictionary)}};er.currentDictionary=wv;let $e=er;class Vo extends Error{}class $o{constructor(){this.subscribers={}}on(e,t){e in this.subscribers||(this.subscribers[e]=[]),this.subscribers[e].push(t)}once(e,t){e in this.subscribers||(this.subscribers[e]=[]);const o=i=>{const l=t(i),c=this.subscribers[e].indexOf(o);return c!==-1&&this.subscribers[e].splice(c,1),l};this.subscribers[e].push(o)}emit(e,t){ot(this.subscribers)||!this.subscribers[e]||this.subscribers[e].reduce((o,i)=>{const l=i(o);return l!==void 0?l:o},t)}off(e,t){const o=this.subscribers[e];if(o===void 0){console.warn(`EventDispatcher .off(): there is no subscribers for event "${e.toString()}". Probably, .off() called before .on()`);return}const i=o.indexOf(t);i!==-1&&o.splice(i,1)}destroy(){this.subscribers={}}}const On=function(e){return Object.setPrototypeOf(this,{get id(){return e.id},get name(){return e.name},get config(){return e.config},get holder(){return e.holder},get isEmpty(){return e.isEmpty},get selected(){return e.selected},set stretched(o){e.setStretchState(o)},get stretched(){return e.stretched},get focusable(){return e.focusable},call(o,i){return e.call(o,i)},save(){return e.save()},validate(o){return e.validate(o)},dispatchChange(){e.dispatchChange()},getActiveToolboxEntry(){return e.getActiveToolboxEntry()}}),Object.defineProperties(this,{id:{get(){return e.id},enumerable:!0,configurable:!0},name:{get(){return e.name},enumerable:!0,configurable:!0}}),this};class Go{constructor(){this.allListeners=[]}on(e,t,o,i=!1){if(this.findOne(e,t,o,i))return;const c=F1("l"),d={id:c,element:e,eventType:t,handler:o,options:i};return this.allListeners.push(d),e.addEventListener(t,o,i),c}off(e,t,o,i){const l=this.findAll(e,t,o,i);l.forEach((c,d)=>{const h=this.allListeners.indexOf(l[d]);h>-1&&(this.allListeners.splice(h,1),c.element.removeEventListener(c.eventType,c.handler,c.options))})}offById(e){const t=this.findById(e);if(!t)return;t.element.removeEventListener(t.eventType,t.handler,t.options);const o=this.allListeners.indexOf(t);o>-1&&this.allListeners.splice(o,1)}findOne(e,t,o,i){var c;return(c=this.findAll(e,t,o,i)[0])!=null?c:null}findAll(e,t,o,i){return e?this.findByEventTarget(e).filter(c=>{const d=t===void 0||c.eventType===t,h=o===void 0||c.handler===o,g=this.areOptionsEqual(c.options,i);return d&&h&&g}):[]}removeAll(){this.allListeners.forEach(e=>{e.element.removeEventListener(e.eventType,e.handler,e.options)}),this.allListeners=[]}destroy(){this.removeAll()}findByEventTarget(e){return this.allListeners.filter(t=>t.element===e)}findByType(e){return this.allListeners.filter(t=>t.eventType===e)}findByHandler(e){return this.allListeners.filter(t=>t.handler===e)}findById(e){return this.allListeners.find(t=>t.id===e)}normalizeListenerOptions(e){var t,o,i;return typeof e=="boolean"?{capture:e,once:!1,passive:!1}:e?{capture:(t=e.capture)!=null?t:!1,once:(o=e.once)!=null?o:!1,passive:(i=e.passive)!=null?i:!1,signal:e.signal}:{capture:!1,once:!1,passive:!1}}areOptionsEqual(e,t){if(t===void 0)return!0;const o=this.normalizeListenerOptions(e),i=this.normalizeListenerOptions(t);return o.capture===i.capture&&o.once===i.once&&o.passive===i.passive&&o.signal===i.signal}}class Se{constructor({config:e,eventsDispatcher:t}){if(this.nodes={},this.listeners=new Go,this.readOnlyMutableListeners={on:(o,i,l,c=!1)=>{const d=this.listeners.on(o,i,l,c);d&&this.mutableListenerIds.push(d)},clearAll:()=>{for(const o of this.mutableListenerIds)this.listeners.offById(o);this.mutableListenerIds=[]}},this.mutableListenerIds=[],new.target===Se)throw new TypeError("Constructors for abstract class Module are not allowed.");this.config=e,this.eventsDispatcher=t,this.Blok={}}set state(e){this.Blok=e}removeAllNodes(){for(const e in this.nodes){const t=this.nodes[e];t instanceof HTMLElement&&t.remove()}}get isRtl(){var e;return((e=this.config.i18n)==null?void 0:e.direction)==="rtl"}}const j1=(a,e)=>{const t=new Array(a.length+e.length);for(let o=0;o<a.length;o++)t[o]=a[o];for(let o=0;o<e.length;o++)t[a.length+o]=e[o];return t},q1=(a,e)=>({classGroupId:a,validator:e}),Tv=(a=new Map,e=null,t)=>({nextPart:a,validators:e,classGroupId:t}),ds="-",xv=[],U1="arbitrary..",W1=a=>{const e=V1(a),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return K1(c);const d=c.split(ds),h=d[0]===""&&d.length>1?1:0;return Ev(d,h,e)},getConflictingClassGroupIds:(c,d)=>{if(d){const h=o[c],g=t[c];return h?g?j1(g,h):h:g||xv}return t[c]||xv}}},Ev=(a,e,t)=>{if(a.length-e===0)return t.classGroupId;const i=a[e],l=t.nextPart.get(i);if(l){const g=Ev(a,e+1,l);if(g)return g}const c=t.validators;if(c===null)return;const d=e===0?a.join(ds):a.slice(e).join(ds),h=c.length;for(let g=0;g<h;g++){const v=c[g];if(v.validator(d))return v.classGroupId}},K1=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=a.slice(1,-1),t=e.indexOf(":"),o=e.slice(0,t);return o?U1+o:void 0})(),V1=a=>{const{theme:e,classGroups:t}=a;return $1(t,e)},$1=(a,e)=>{const t=Tv();for(const o in a){const i=a[o];Uu(i,t,o,e)}return t},Uu=(a,e,t,o)=>{const i=a.length;for(let l=0;l<i;l++){const c=a[l];G1(c,e,t,o)}},G1=(a,e,t,o)=>{if(typeof a=="string"){X1(a,e,t);return}if(typeof a=="function"){Y1(a,e,t,o);return}Q1(a,e,t,o)},X1=(a,e,t)=>{const o=a===""?e:Sv(e,a);o.classGroupId=t},Y1=(a,e,t,o)=>{if(Z1(a)){Uu(a(o),e,t,o);return}e.validators===null&&(e.validators=[]),e.validators.push(q1(t,a))},Q1=(a,e,t,o)=>{const i=Object.entries(a),l=i.length;for(let c=0;c<l;c++){const[d,h]=i[c];Uu(h,Sv(e,d),t,o)}},Sv=(a,e)=>{let t=a;const o=e.split(ds),i=o.length;for(let l=0;l<i;l++){const c=o[l];let d=t.nextPart.get(c);d||(d=Tv(),t.nextPart.set(c,d)),t=d}return t},Z1=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,J1=a=>{if(a<1)return{get:()=>{},set:()=>{}};let e=0,t=Object.create(null),o=Object.create(null);const i=(l,c)=>{t[l]=c,e++,e>a&&(e=0,o=t,t=Object.create(null))};return{get(l){let c=t[l];if(c!==void 0)return c;if((c=o[l])!==void 0)return i(l,c),c},set(l,c){l in t?t[l]=c:i(l,c)}}},Wu="!",Cv=":",ex=[],Bv=(a,e,t,o,i)=>({modifiers:a,hasImportantModifier:e,baseClassName:t,maybePostfixModifierPosition:o,isExternal:i}),tx=a=>{const{prefix:e,experimentalParseClassName:t}=a;let o=i=>{const l=[];let c=0,d=0,h=0,g;const v=i.length;for(let T=0;T<v;T++){const S=i[T];if(c===0&&d===0){if(S===Cv){l.push(i.slice(h,T)),h=T+1;continue}if(S==="/"){g=T;continue}}S==="["?c++:S==="]"?c--:S==="("?d++:S===")"&&d--}const y=l.length===0?i:i.slice(h);let b=y,x=!1;y.endsWith(Wu)?(b=y.slice(0,-1),x=!0):y.startsWith(Wu)&&(b=y.slice(1),x=!0);const w=g&&g>h?g-h:void 0;return Bv(l,x,b,w)};if(e){const i=e+Cv,l=o;o=c=>c.startsWith(i)?l(c.slice(i.length)):Bv(ex,!1,c,void 0,!0)}if(t){const i=o;o=l=>t({className:l,parseClassName:i})}return o},nx=a=>{const e=new Map;return a.orderSensitiveModifiers.forEach((t,o)=>{e.set(t,1e6+o)}),t=>{const o=[];let i=[];for(let l=0;l<t.length;l++){const c=t[l],d=c[0]==="[",h=e.has(c);d||h?(i.length>0&&(i.sort(),o.push(...i),i=[]),o.push(c)):i.push(c)}return i.length>0&&(i.sort(),o.push(...i)),o}},rx=a=>be({cache:J1(a.cacheSize),parseClassName:tx(a),sortModifiers:nx(a)},W1(a)),ox=/\s+/,ix=(a,e)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:l}=e,c=[],d=a.trim().split(ox);let h="";for(let g=d.length-1;g>=0;g-=1){const v=d[g],{isExternal:y,modifiers:b,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:T}=t(v);if(y){h=v+(h.length>0?" "+h:h);continue}let S=!!T,O=o(S?w.substring(0,T):w);if(!O){if(!S){h=v+(h.length>0?" "+h:h);continue}if(O=o(w),!O){h=v+(h.length>0?" "+h:h);continue}S=!1}const L=b.length===0?"":b.length===1?b[0]:l(b).join(":"),U=x?L+Wu:L,H=U+O;if(c.indexOf(H)>-1)continue;c.push(H);const X=i(O,S);for(let q=0;q<X.length;++q){const W=X[q];c.push(U+W)}h=v+(h.length>0?" "+h:h)}return h},Av=(...a)=>{let e=0,t,o,i="";for(;e<a.length;)(t=a[e++])&&(o=Iv(t))&&(i&&(i+=" "),i+=o);return i},Iv=a=>{if(typeof a=="string")return a;let e,t="";for(let o=0;o<a.length;o++)a[o]&&(e=Iv(a[o]))&&(t&&(t+=" "),t+=e);return t},sx=(a,...e)=>{let t,o,i,l;const c=h=>{const g=e.reduce((v,y)=>y(v),a());return t=rx(g),o=t.cache.get,i=t.cache.set,l=d,d(h)},d=h=>{const g=o(h);if(g)return g;const v=ix(h,t);return i(h,v),v};return l=c,(...h)=>l(Av(...h))},ax=[],ut=a=>{const e=t=>t[a]||ax;return e.isThemeGetter=!0,e},_v=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lx=/^\d+\/\d+$/,cx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ux=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,eo=a=>lx.test(a),ke=a=>!!a&&!Number.isNaN(Number(a)),Xn=a=>!!a&&Number.isInteger(Number(a)),Ku=a=>a.endsWith("%")&&ke(a.slice(0,-1)),Ln=a=>cx.test(a),px=()=>!0,gx=a=>ux.test(a)&&!dx.test(a),Nv=()=>!1,mx=a=>fx.test(a),vx=a=>hx.test(a),yx=a=>!J(a)&&!ee(a),bx=a=>to(a,Mv,Nv),J=a=>_v.test(a),xr=a=>to(a,Fv,gx),Vu=a=>to(a,Ex,ke),Ov=a=>to(a,Dv,Nv),kx=a=>to(a,Pv,vx),fs=a=>to(a,zv,mx),ee=a=>Rv.test(a),Xo=a=>no(a,Fv),wx=a=>no(a,Sx),Lv=a=>no(a,Dv),Tx=a=>no(a,Mv),xx=a=>no(a,Pv),hs=a=>no(a,zv,!0),to=(a,e,t)=>{const o=_v.exec(a);return o?o[1]?e(o[1]):t(o[2]):!1},no=(a,e,t=!1)=>{const o=Rv.exec(a);return o?o[1]?e(o[1]):t:!1},Dv=a=>a==="position"||a==="percentage",Pv=a=>a==="image"||a==="url",Mv=a=>a==="length"||a==="size"||a==="bg-size",Fv=a=>a==="length",Ex=a=>a==="number",Sx=a=>a==="family-name",zv=a=>a==="shadow",Ae=sx(()=>{const a=ut("color"),e=ut("font"),t=ut("text"),o=ut("font-weight"),i=ut("tracking"),l=ut("leading"),c=ut("breakpoint"),d=ut("container"),h=ut("spacing"),g=ut("radius"),v=ut("shadow"),y=ut("inset-shadow"),b=ut("text-shadow"),x=ut("drop-shadow"),w=ut("blur"),T=ut("perspective"),S=ut("aspect"),O=ut("ease"),L=ut("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],X=()=>[...H(),ee,J],q=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],F=()=>[ee,J,h],ne=()=>[eo,"full","auto",...F()],ce=()=>[Xn,"none","subgrid",ee,J],Q=()=>["auto",{span:["full",Xn,ee,J]},Xn,ee,J],ye=()=>[Xn,"auto",ee,J],Z=()=>["auto","min","max","fr",ee,J],we=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Oe=()=>["start","end","center","stretch","center-safe","end-safe"],xe=()=>["auto",...F()],_e=()=>[eo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],D=()=>[a,ee,J],le=()=>[...H(),Lv,Ov,{position:[ee,J]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",Tx,bx,{size:[ee,J]}],P=()=>[Ku,Xo,xr],ae=()=>["","none","full",g,ee,J],fe=()=>["",ke,Xo,xr],Ee=()=>["solid","dashed","dotted","double"],Re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[ke,Ku,Lv,Ov],Pe=()=>["","none",w,ee,J],ze=()=>["none",ke,ee,J],pt=()=>["none",ke,ee,J],nr=()=>[ke,ee,J],Fr=()=>[eo,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ln],breakpoint:[Ln],color:[px],container:[Ln],"drop-shadow":[Ln],ease:["in","out","in-out"],font:[yx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ln],shadow:[Ln],spacing:["px",ke],text:[Ln],"text-shadow":[Ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",eo,J,ee,S]}],container:["container"],columns:[{columns:[ke,J,ee,d]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:X()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{start:ne()}],end:[{end:ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[Xn,"auto",ee,J]}],basis:[{basis:[eo,"full","auto",d,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,eo,"auto","initial","none",J]}],grow:[{grow:["",ke,ee,J]}],shrink:[{shrink:["",ke,ee,J]}],order:[{order:[Xn,"first","last","none",ee,J]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":ye()}],"col-end":[{"col-end":ye()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":ye()}],"row-end":[{"row-end":ye()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...we(),"normal"]}],"justify-items":[{"justify-items":[...Oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...Oe()]}],"align-content":[{content:["normal",...we()]}],"align-items":[{items:[...Oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":we()}],"place-items":[{"place-items":[...Oe(),"baseline"]}],"place-self":[{"place-self":["auto",...Oe()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:xe()}],mx:[{mx:xe()}],my:[{my:xe()}],ms:[{ms:xe()}],me:[{me:xe()}],mt:[{mt:xe()}],mr:[{mr:xe()}],mb:[{mb:xe()}],ml:[{ml:xe()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:_e()}],w:[{w:[d,"screen",..._e()]}],"min-w":[{"min-w":[d,"screen","none",..._e()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},..._e()]}],h:[{h:["screen","lh",..._e()]}],"min-h":[{"min-h":["screen","lh","none",..._e()]}],"max-h":[{"max-h":["screen","lh",..._e()]}],"font-size":[{text:["base",t,Xo,xr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ee,Vu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ku,J]}],"font-family":[{font:[wx,J,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ee,J]}],"line-clamp":[{"line-clamp":[ke,"none",ee,Vu]}],leading:[{leading:[l,...F()]}],"list-image":[{"list-image":["none",ee,J]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,J]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",ee,xr]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[ke,"auto",ee,J]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee,J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xn,ee,J],radial:["",ee,J],conic:[Xn,ee,J]},xx,kx]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,ee,J]}],"outline-w":[{outline:["",ke,Xo,xr]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",v,hs,fs]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",y,hs,fs]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[ke,xr]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",b,hs,fs]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[ke,ee,J]}],"mix-blend":[{"mix-blend":[...Re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Re()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[ee,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":H()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,J]}],filter:[{filter:["","none",ee,J]}],blur:[{blur:Pe()}],brightness:[{brightness:[ke,ee,J]}],contrast:[{contrast:[ke,ee,J]}],"drop-shadow":[{"drop-shadow":["","none",x,hs,fs]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",ke,ee,J]}],"hue-rotate":[{"hue-rotate":[ke,ee,J]}],invert:[{invert:["",ke,ee,J]}],saturate:[{saturate:[ke,ee,J]}],sepia:[{sepia:["",ke,ee,J]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,J]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[ke,ee,J]}],"backdrop-contrast":[{"backdrop-contrast":[ke,ee,J]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,ee,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,ee,J]}],"backdrop-invert":[{"backdrop-invert":["",ke,ee,J]}],"backdrop-opacity":[{"backdrop-opacity":[ke,ee,J]}],"backdrop-saturate":[{"backdrop-saturate":[ke,ee,J]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,ee,J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,J]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",ee,J]}],ease:[{ease:["linear","initial",O,ee,J]}],delay:[{delay:[ke,ee,J]}],animate:[{animate:["none",L,ee,J]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,ee,J]}],"perspective-origin":[{"perspective-origin":X()}],rotate:[{rotate:ze()}],"rotate-x":[{"rotate-x":ze()}],"rotate-y":[{"rotate-y":ze()}],"rotate-z":[{"rotate-z":ze()}],scale:[{scale:pt()}],"scale-x":[{"scale-x":pt()}],"scale-y":[{"scale-y":pt()}],"scale-z":[{"scale-z":pt()}],"scale-3d":["scale-3d"],skew:[{skew:nr()}],"skew-x":[{"skew-x":nr()}],"skew-y":[{"skew-y":nr()}],transform:[{transform:[ee,J,"","none","gpu","cpu"]}],"transform-origin":[{origin:X()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Fr()}],"translate-x":[{"translate-x":Fr()}],"translate-y":[{"translate-y":Fr()}],"translate-z":[{"translate-z":Fr()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee,J]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee,J]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[ke,Xo,xr,Vu]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),yt=Av,Cx=180,Bx=400,ro="data-blok-interface",Ax="blok",Ix="inline-toolbar",$u="tooltip",Hv="[data-blok-interface=blok]",jv="[data-blok-interface=inline-toolbar]";typeof process!="undefined"&&process.platform?process.platform==="darwin"?"Meta":"Control":typeof navigator!="undefined"&&navigator.userAgent.toLowerCase().includes("mac")?"Meta":"Control";const _x="data-blok-element",Gu="[data-blok-element]",Rx="data-blok-element-content",Xu="[data-blok-element-content]",Nx="data-blok-editor",qt="[data-blok-editor]",Ox="data-blok-redactor",qv="[data-blok-redactor]",Lx="data-blok-narrow",Dx="data-blok-rtl",Px="data-blok-fake-cursor",Uv="[data-blok-fake-cursor]",Mx="data-blok-overlay",Fx="data-blok-overlay-container",zx="data-blok-overlay-rectangle",Hx="data-blok-toolbar",Wv="[data-blok-toolbar]",jx="data-blok-settings-toggler",qx="data-blok-drag-handle",Ux="[data-blok-drag-handle]",Yu="data-blok-tool",Wx="data-blok-stub",Kx="data-blok-stub-info",Vx="data-blok-stub-title",$x="data-blok-stub-subtitle",Qu="data-blok-selected",Zu="data-blok-stretched",Gx="data-blok-empty",Kv="data-blok-dragging",Vv="data-blok-toolbox-opened";class se{constructor(){this.instance=null,this.selection=null,this.savedSelectionRange=null,this.isFakeBackgroundEnabled=!1,this.fakeBackgroundElements=[]}static get anchorNode(){const e=window.getSelection();return e?e.anchorNode:null}static get anchorElement(){const e=window.getSelection();if(!e)return null;const t=e.anchorNode;return t?N.isElement(t)?t:t.parentElement:null}static get anchorOffset(){const e=window.getSelection();return e?e.anchorOffset:null}static get isCollapsed(){const e=window.getSelection();return e?e.isCollapsed:null}static get isAtBlok(){return this.isSelectionAtBlok(se.get())}static isSelectionAtBlok(e){if(!e)return!1;const t=e.anchorNode||e.focusNode,o=t&&t.nodeType===Node.TEXT_NODE?t.parentNode:t,i=o&&o instanceof Element?o.closest(qv):null;return i?i.nodeType===Node.ELEMENT_NODE:!1}static isRangeAtBlok(e){if(!e)return;const t=e.startContainer&&e.startContainer.nodeType===Node.TEXT_NODE?e.startContainer.parentNode:e.startContainer,o=t&&t instanceof Element?t.closest(qv):null;return o?o.nodeType===Node.ELEMENT_NODE:!1}static get isSelectionExists(){const e=se.get();return!!(e!=null&&e.anchorNode)}static get range(){return this.getRangeFromSelection(this.get())}static getRangeFromSelection(e){return e&&e.rangeCount?e.getRangeAt(0):null}static get rect(){const e=document.selection,t={x:0,y:0,width:0,height:0};if(e&&e.type!=="Control"){const d=e.createRange();return t.x=d.boundingLeft,t.y=d.boundingTop,t.width=d.boundingWidth,t.height=d.boundingHeight,t}const o=window.getSelection();if(!o)return Be("Method window.getSelection returned null","warn"),t;if(o.rangeCount===null||isNaN(o.rangeCount))return Be("Method SelectionUtils.rangeCount is not supported","warn"),t;if(o.rangeCount===0)return t;const i=o.getRangeAt(0).cloneRange(),l=i.getBoundingClientRect();if(l.x===0&&l.y===0){const c=document.createElement("span");c.appendChild(document.createTextNode("")),i.insertNode(c);const d=c.getBoundingClientRect(),h=c.parentNode;return h==null||h.removeChild(c),h==null||h.normalize(),d}return l}static get text(){var t;const e=window.getSelection();return(t=e==null?void 0:e.toString())!=null?t:""}static get(){return window.getSelection()}static setCursor(e,t=0){const o=document.createRange(),i=window.getSelection(),l=N.isNativeInput(e);if(l&&!N.canSetCaret(e))return e.getBoundingClientRect();if(l){const c=e;return c.focus(),c.selectionStart=t,c.selectionEnd=t,c.getBoundingClientRect()}return o.setStart(e,t),o.setEnd(e,t),i?(i.removeAllRanges(),i.addRange(o),o.getBoundingClientRect()):e.getBoundingClientRect()}static isRangeInsideContainer(e){const t=se.range;return t===null?!1:e.contains(t.startContainer)}static addFakeCursor(){const e=se.range;if(e===null)return;const t=N.make("span");t.setAttribute(Px,""),t.setAttribute("data-blok-mutation-free","true"),e.collapse(),e.insertNode(t)}static isFakeCursorInsideContainer(e){return N.find(e,Uv)!==null}static removeFakeCursor(e=document.body){const t=N.find(e,Uv);t&&t.remove()}removeFakeBackground(){var l;if(!this.fakeBackgroundElements.length){this.isFakeBackgroundEnabled=!1;return}const e=this.fakeBackgroundElements[0],t=this.fakeBackgroundElements[this.fakeBackgroundElements.length-1],o=e.firstChild,i=t.lastChild;if(this.fakeBackgroundElements.forEach(c=>{this.unwrapFakeBackground(c)}),o&&i){const c=document.createRange();c.setStart(o,0),c.setEnd(i,((l=i.textContent)==null?void 0:l.length)||0),this.savedSelectionRange=c}this.fakeBackgroundElements=[],this.isFakeBackgroundEnabled=!1}setFakeBackground(){this.removeFakeBackground();const e=window.getSelection();if(!e||e.rangeCount===0)return;const t=e.getRangeAt(0);if(t.collapsed)return;const o=this.collectTextNodes(t);if(o.length===0)return;const i=t.startContainer,l=t.startOffset,c=t.endContainer,d=t.endOffset;if(this.fakeBackgroundElements=[],o.forEach(g=>{var O,L;const v=document.createRange(),y=g===i,b=g===c,x=y?l:0,w=(L=(O=g.textContent)==null?void 0:O.length)!=null?L:0,T=b?d:w;if(x===T)return;v.setStart(g,x),v.setEnd(g,T);const S=this.wrapRangeWithFakeBackground(v);S&&this.fakeBackgroundElements.push(S)}),!this.fakeBackgroundElements.length)return;const h=document.createRange();h.setStartBefore(this.fakeBackgroundElements[0]),h.setEndAfter(this.fakeBackgroundElements[this.fakeBackgroundElements.length-1]),e.removeAllRanges(),e.addRange(h),this.isFakeBackgroundEnabled=!0}collectTextNodes(e){const t=[],{commonAncestorContainer:o}=e;if(o.nodeType===Node.TEXT_NODE)return t.push(o),t;const i=document.createTreeWalker(o,NodeFilter.SHOW_TEXT,{acceptNode:l=>e.intersectsNode(l)&&l.textContent&&l.textContent.length>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT});for(;i.nextNode();)t.push(i.currentNode);return t}wrapRangeWithFakeBackground(e){if(e.collapsed)return null;const t=N.make("span");t.setAttribute("data-blok-testid","fake-background"),t.setAttribute("data-blok-fake-background","true"),t.setAttribute("data-blok-mutation-free","true"),t.style.backgroundColor="#a8d6ff",t.style.color="inherit",t.style.display="inline",t.style.padding="0",t.style.margin="0";const o=e.extractContents();return o.childNodes.length===0?null:(t.appendChild(o),e.insertNode(t),t)}unwrapFakeBackground(e){const t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}save(){this.savedSelectionRange=se.range}restore(){if(!this.savedSelectionRange)return;const e=window.getSelection();e&&(e.removeAllRanges(),e.addRange(this.savedSelectionRange))}clearSaved(){this.savedSelectionRange=null}collapseToEnd(){const e=window.getSelection();if(!e||!e.focusNode)return;const t=document.createRange();t.selectNodeContents(e.focusNode),t.collapse(!1),e.removeAllRanges(),e.addRange(t)}findParentTag(e,t,o=10){const i=window.getSelection();if(!i||!i.anchorNode||!i.focusNode)return null;const l=[i.anchorNode,i.focusNode],c=d=>{const h=(g,v)=>{if(v<=0||!g)return null;const y=g.nodeType===Node.ELEMENT_NODE&&g.tagName===e,b=!t||g.classList&&g.classList.contains(t);if(y&&b)return g;if(!g.parentNode)return null;const x=g.parentNode,w=!t||x.classList&&x.classList.contains(t);return x.tagName===e&&w?x:h(x,v-1)};return h(d,o)};for(const d of l){const h=c(d);if(h)return h}return null}expandToTag(e){const t=window.getSelection();if(!t)return;t.removeAllRanges();const o=document.createRange();o.selectNodeContents(e),t.addRange(o)}}const Xx=(a,e)=>{const{type:t,target:o,addedNodes:i,removedNodes:l}=a;return a.type==="attributes"&&a.attributeName==="data-blok-empty"?!1:e.contains(o)?!0:t!=="childList"?!1:Array.from(i).some(h=>h===e)?!0:Array.from(l).some(h=>h===e)},Ju="redactor dom changed",$v="block changed",Gv="fake cursor is about to be toggled",Xv="fake cursor have been set",Er="blok mobile layout toggled",ed="block-settings-opened",td="block-settings-closed",nd=(a,e)=>{if(!a.conversionConfig)return!1;const t=a.conversionConfig[e];return De(t)||un(t)},ps=(a,e)=>nd(a.tool,e),Yv=(a,e)=>Object.entries(a).some((([t,o])=>e[t]&&z1(e[t],o))),Qv=async(a,e)=>{const o=(await a.save()).data,i=e.find(l=>l.name===a.name);return i!==void 0&&!nd(i,"export")?[]:e.reduce((l,c)=>{if(!nd(c,"import")||c.toolbox===void 0)return l;const d=c.toolbox.filter(h=>{if(ot(h)||h.icon===void 0)return!1;const g=h.data!==void 0;return!(g&&Yv(h.data,o)||!g&&c.name===a.name)});return l.push(Tt(be({},c),{toolbox:d})),l},[])},Zv=(a,e)=>a.mergeable?a.name===e.name?!0:ps(e,"export")&&ps(a,"import"):!1,Yx=(a,e)=>{const t=e==null?void 0:e.export;return De(t)?t(a):un(t)?a[t]:(t!==void 0&&Be("Conversion «export» property must be a string or function. String means key of saved data object to export. Function should export processed string to export."),"")},Jv=(a,e,t)=>{const o=e==null?void 0:e.import;return De(o)?o(a,t):un(o)?{[o]:a}:(o!==void 0&&Be("Conversion «import» property must be a string or function. String means key of tool data to import. Function accepts a imported string and return composed tool data."),{})};var tt=(a=>(a.Default="default",a.Separator="separator",a.Html="html",a))(tt||{}),Dn=(a=>(a.RENDERED="rendered",a.MOVED="moved",a.UPDATED="updated",a.REMOVED="removed",a.ON_PASTE="onPaste",a))(Dn||{});const tn=class tn extends $o{constructor({id:e=P1(),data:t,tool:o,readOnly:i,tunesData:l},c){super(),this.cachedInputs=[],this.lastSavedTunes={},this.toolRenderedElement=null,this.contentElement=null,this.tunesInstances=new Map,this.defaultTunesInstances=new Map,this.readyResolver=null,this.unavailableTunesData={},this.inputIndex=0,this.blokEventBus=null,this.redactorDomChangedCallback=()=>{},this.handleFocus=()=>{this.dropInputsCache(),this.updateCurrentInput()},this.didMutated=(h=void 0)=>{const g=h===void 0,v=h instanceof InputEvent;!g&&!v&&this.detectToolRootChange(h),(g||v?!0:!(h.length>0&&h.every(x=>{const{addedNodes:w,removedNodes:T,target:S}=x;return[...Array.from(w),...Array.from(T),S].every(L=>{var H;const U=N.isElement(L)?L:(H=L.parentElement)!=null?H:null;return U===null?!1:U.closest('[data-blok-mutation-free="true"]')!==null})})))&&(this.dropInputsCache(),this.updateCurrentInput(),this.toggleInputsEmptyMark(),this.call("updated"),this.emit("didMutated",this))},this.ready=new Promise(h=>{this.readyResolver=h}),this.name=o.name,this.id=e,this.settings=o.settings,this.config=this.settings,this.blokEventBus=c||null,this.blockAPI=new On(this),this.lastSavedData=t!=null?t:{},this.lastSavedTunes=l!=null?l:{},this.tool=o,this.toolInstance=o.create(t,this.blockAPI,i),this.tunes=o.tunes,this.composeTunes(l);const d=this.compose();if(d==null)throw new Error(`Tool "${this.name}" did not return a block holder element during render()`);this.holder=d,window.requestIdleCallback(()=>{this.watchBlockMutations(),this.addInputEvents(),this.toggleInputsEmptyMark()})}call(e,t){const o=this.toolInstance[e];if(De(o))try{o.call(this.toolInstance,t)}catch(i){const l=i instanceof Error?i.message:String(i);Be(`Error during '${e}' call: ${l}`,"error")}}async mergeWith(e){if(!De(this.toolInstance.merge))throw new Error(`Block tool "${this.name}" does not support merging`);await this.toolInstance.merge(e)}async save(){const e=await this.extractToolData();if(e===void 0)return;const t=be({},this.unavailableTunesData);[...this.tunesInstances.entries(),...this.defaultTunesInstances.entries()].forEach(([l,c])=>{if(De(c.save))try{t[l]=c.save()}catch(d){Be(`Tune ${c.constructor.name} save method throws an Error %o`,"warn",d)}});const o=window.performance.now();this.lastSavedData=e,this.lastSavedTunes=be({},t);const i=window.performance.now();return{id:this.id,tool:this.name,data:e,tunes:t,time:i-o}}async extractToolData(){try{const e=await this.toolInstance.save(this.pluginsContent);if(!this.isEmpty||e===void 0||e===null||typeof e!="object")return e;const t=be({},e),o=i=>{const l=t[i];if(typeof l!="string")return;const c=document.createElement("div");c.innerHTML=l,N.isEmpty(c)&&(t[i]="")};return o("text"),o("html"),t}catch(e){const t=e instanceof Error?e:new Error(String(e));Be(`Saving process for ${this.name} tool failed due to the ${t}`,"log",t);return}}async validate(e){return this.toolInstance.validate instanceof Function?await this.toolInstance.validate(e):!0}getTunes(){const e=[],t=[],o=(c,d)=>{if(c){if(N.isElement(c)){d.push({type:tt.Html,element:c});return}if(Array.isArray(c)){d.push(...c);return}d.push(c)}},i=typeof this.toolInstance.renderSettings=="function"?this.toolInstance.renderSettings():[];return o(i,e),[...this.tunesInstances.values(),...this.defaultTunesInstances.values()].map(c=>c.render()).forEach(c=>{o(c,t)}),{toolTunes:e,commonTunes:t}}updateCurrentInput(){var l;const e=se.anchorNode,t=document.activeElement,o=c=>{if(!c)return;const d=c instanceof HTMLElement?c:c.parentElement;if(d===null)return;const h=this.inputs.find(y=>y===d||y.contains(d));if(h!==void 0)return h;const g=d.closest(N.allInputsSelector);if(!(g instanceof HTMLElement))return;const v=this.inputs.find(y=>y===g);if(v!==void 0)return v};if(N.isNativeInput(t)){this.currentInput=t;return}const i=(l=o(e))!=null?l:t instanceof HTMLElement?o(t):void 0;if(i!==void 0){this.currentInput=i;return}t instanceof HTMLElement&&this.inputs.includes(t)&&(this.currentInput=t)}dispatchChange(){this.didMutated()}destroy(){this.unwatchBlockMutations(),this.removeInputEvents(),super.destroy(),De(this.toolInstance.destroy)&&this.toolInstance.destroy()}async getActiveToolboxEntry(){const e=this.tool.toolbox;if(!e)return;if(e.length===1)return Promise.resolve(e[0]);const t=await this.data;return e.find(o=>Yv(o.data,t))}async exportDataAsString(){const e=await this.data;return Yx(e,this.tool.conversionConfig)}get inputs(){if(this.cachedInputs.length!==0)return this.cachedInputs;const e=N.findAllInputs(this.holder);return this.inputIndex>e.length-1&&(this.inputIndex=e.length-1),this.cachedInputs=e,e}get currentInput(){return this.inputs[this.inputIndex]}set currentInput(e){if(e===void 0)return;const t=this.inputs.findIndex(o=>o===e||o.contains(e));t!==-1&&(this.inputIndex=t)}get firstInput(){return this.inputs[0]}get lastInput(){const e=this.inputs;return e[e.length-1]}get nextInput(){return this.inputs[this.inputIndex+1]}get previousInput(){return this.inputs[this.inputIndex-1]}get data(){return this.save().then(e=>e&&!ot(e.data)?e.data:{})}get preservedData(){var e;return(e=this.lastSavedData)!=null?e:{}}get preservedTunes(){var e;return(e=this.lastSavedTunes)!=null?e:{}}get sanitize(){return this.tool.sanitizeConfig}get mergeable(){return De(this.toolInstance.merge)}get focusable(){return this.inputs.length!==0}get isEmpty(){const e=N.isEmpty(this.pluginsContent,"/"),t=!this.hasMedia;return e&&t}get hasMedia(){const e=["img","iframe","video","audio","source","input","textarea","twitterwidget"];return!!this.holder.querySelector(e.join(","))}set selected(e){var i,l;if(e?this.holder.setAttribute(Qu,"true"):this.holder.removeAttribute(Qu),this.contentElement){const c=this.stretched?tn.styles.contentStretched:"";this.contentElement.className=e?Ae(tn.styles.content,tn.styles.contentSelected):Ae(tn.styles.content,c)}const t=e===!0&&se.isRangeInsideContainer(this.holder),o=e===!1&&se.isFakeCursorInsideContainer(this.holder);!t&&!o||((i=this.blokEventBus)==null||i.emit(Gv,{state:e}),t&&se.addFakeCursor(),o&&se.removeFakeCursor(this.holder),(l=this.blokEventBus)==null||l.emit(Xv,{state:e}))}get selected(){return this.holder.getAttribute(Qu)==="true"}setStretchState(e){e?this.holder.setAttribute(Zu,"true"):this.holder.removeAttribute(Zu),this.contentElement&&!this.selected&&(this.contentElement.className=e?Ae(tn.styles.content,tn.styles.contentStretched):tn.styles.content)}set stretched(e){this.setStretchState(e)}get stretched(){return this.holder.getAttribute(Zu)==="true"}get pluginsContent(){if(this.toolRenderedElement===null)throw new Error("Block pluginsContent is not yet initialized");return this.toolRenderedElement}compose(){var l;const e=N.make("div",tn.styles.wrapper),t=N.make("div",tn.styles.content);this.contentElement=t,e.setAttribute(_x,""),t.setAttribute(Rx,""),t.setAttribute("data-blok-testid","block-content");const o=this.toolInstance.render();e.setAttribute("data-blok-testid","block-wrapper"),this.name&&!e.hasAttribute("data-blok-component")&&e.setAttribute("data-blok-component",this.name),e.setAttribute("data-blok-id",this.id),o instanceof Promise?o.then(c=>{var d;this.toolRenderedElement=c,this.addToolDataAttributes(c,e),t.appendChild(c),(d=this.readyResolver)==null||d.call(this)}).catch(c=>{var d;Be("Tool render promise rejected: %o","error",c),(d=this.readyResolver)==null||d.call(this)}):(this.toolRenderedElement=o,this.addToolDataAttributes(o,e),t.appendChild(o),(l=this.readyResolver)==null||l.call(this));const i=[...this.tunesInstances.values(),...this.defaultTunesInstances.values()].reduce((c,d)=>{if(De(d.wrap))try{return d.wrap(c)}catch(h){return Be(`Tune ${d.constructor.name} wrap method throws an Error %o`,"warn",h),c}return c},t);return e.appendChild(i),e}addToolDataAttributes(e,t){var d;this.name&&!t.hasAttribute("data-blok-component")&&t.setAttribute("data-blok-component",this.name);const o="data-blok-placeholder",i=(d=this.config)==null?void 0:d.placeholder,l=typeof i=="string"?i.trim():"",c=["empty:before:pointer-events-none","empty:before:text-gray-text","empty:before:cursor-text","empty:before:content-[attr(data-blok-placeholder)]","[&[data-blok-empty=true]]:before:pointer-events-none","[&[data-blok-empty=true]]:before:text-gray-text","[&[data-blok-empty=true]]:before:cursor-text","[&[data-blok-empty=true]]:before:content-[attr(data-blok-placeholder)]"];if(l.length>0){e.setAttribute(o,l),e.classList.add(...c);return}i===!1&&e.hasAttribute(o)&&e.removeAttribute(o)}composeTunes(e){Array.from(this.tunes.values()).forEach(t=>{(t.isInternal?this.defaultTunesInstances:this.tunesInstances).set(t.name,t.create(e[t.name],this.blockAPI))}),Object.entries(e).forEach(([t,o])=>{this.tunesInstances.has(t)||(this.unavailableTunesData[t]=o)})}addInputEvents(){this.inputs.forEach(e=>{e.addEventListener("focus",this.handleFocus),N.isNativeInput(e)&&e.addEventListener("input",this.didMutated)})}removeInputEvents(){this.inputs.forEach(e=>{e.removeEventListener("focus",this.handleFocus),N.isNativeInput(e)&&e.removeEventListener("input",this.didMutated)})}watchBlockMutations(){var e;this.redactorDomChangedCallback=t=>{const{mutations:o}=t,i=this.toolRenderedElement;if(i===null)return;const l=o.filter(c=>Xx(c,i));l.length>0&&this.didMutated(l)},(e=this.blokEventBus)==null||e.on(Ju,this.redactorDomChangedCallback)}unwatchBlockMutations(){var e;(e=this.blokEventBus)==null||e.off(Ju,this.redactorDomChangedCallback)}refreshToolRootElement(){const e=this.holder.querySelector(Xu);if(!e)return;const t=e.firstElementChild;t&&t!==this.toolRenderedElement&&(this.toolRenderedElement=t,this.dropInputsCache())}detectToolRootChange(e){const t=this.toolRenderedElement;t!==null&&e.forEach(o=>{if(Array.from(o.removedNodes).includes(t)){const l=o.addedNodes[o.addedNodes.length-1];this.toolRenderedElement=l}})}dropInputsCache(){this.cachedInputs=[]}toggleInputsEmptyMark(){this.inputs.forEach(kv)}};tn.styles={wrapper:"relative opacity-100 animate-fade-in first:mt-0 [&_a]:cursor-pointer [&_a]:underline [&_a]:text-link [&_b]:font-bold [&_i]:italic",content:"relative mx-auto transition-colors duration-150 ease-out max-w-content",contentSelected:"bg-selection [&_[contenteditable]]:select-none [&_img]:opacity-55 [&_[data-blok-tool=stub]]:opacity-55",contentStretched:"max-w-none"};let Yo=tn;class Qx extends Se{constructor(){super(...arguments),this.insert=(e,t={},o={},i,l,c,d)=>{const h=e!=null?e:this.config.defaultBlock,g=this.Blok.BlockManager.insert({id:d,tool:h,data:t,index:i,needToFocus:l,replace:c});return new On(g)},this.composeBlockData=async e=>{const t=this.Blok.Tools.blockTools.get(e);if(t===void 0)throw new Error(`Block Tool with type "${e}" not found`);return new Yo({tool:t,api:this.Blok.API,readOnly:!0,data:{},tunesData:{}}).data},this.update=async(e,t,o)=>{const{BlockManager:i}=this.Blok,l=i.getBlockById(e);if(l===void 0)throw new Error(`Block with id "${e}" not found`);const c=await i.update(l,t,o);return new On(c)},this.convert=async(e,t,o)=>{var y,b;const{BlockManager:i,Tools:l}=this.Blok,c=i.getBlockById(e);if(!c)throw new Error(`Block with id "${e}" not found`);const d=l.blockTools.get(c.name),h=l.blockTools.get(t);if(!h)throw new Error(`Block Tool with type "${t}" not found`);const g=((y=d==null?void 0:d.conversionConfig)==null?void 0:y.export)!==void 0,v=((b=h.conversionConfig)==null?void 0:b.import)!==void 0;if(g&&v){const x=await i.convert(c,t,o);return new On(x)}else{const x=[g?!1:us(c.name),v?!1:us(t)].filter(Boolean).join(" and ");throw new Error(`Conversion from "${c.name}" to "${t}" is not possible. ${x} tool(s) should provide a "conversionConfig"`)}},this.insertMany=(e,t=this.Blok.BlockManager.blocks.length-1)=>{this.validateIndex(t);const o=e.map(({id:i,type:l,data:c})=>this.Blok.BlockManager.composeBlock({id:i,tool:l||this.config.defaultBlock,data:c}));return this.Blok.BlockManager.insertMany(o,t),o.map(i=>new On(i))}}get methods(){return{clear:()=>this.clear(),render:e=>this.render(e),renderFromHTML:e=>this.renderFromHTML(e),delete:e=>this.delete(e),move:(e,t)=>this.move(e,t),getBlockByIndex:e=>this.getBlockByIndex(e),getById:e=>this.getById(e),getCurrentBlockIndex:()=>this.getCurrentBlockIndex(),getBlockIndex:e=>this.getBlockIndex(e),getBlocksCount:()=>this.getBlocksCount(),getBlockByElement:e=>this.getBlockByElement(e),insert:this.insert,insertMany:this.insertMany,update:this.update,composeBlockData:this.composeBlockData,convert:this.convert,stretchBlock:(e,t=!0)=>this.stretchBlock(e,t)}}getBlocksCount(){return this.Blok.BlockManager.blocks.length}getCurrentBlockIndex(){return this.Blok.BlockManager.currentBlockIndex}getBlockIndex(e){const t=this.Blok.BlockManager.getBlockById(e);if(!t){Qt("There is no block with id `"+e+"`","warn");return}return this.Blok.BlockManager.getBlockIndex(t)}getBlockByIndex(e){const t=this.Blok.BlockManager.getBlockByIndex(e);if(t===void 0){Qt("There is no block at index `"+e+"`","warn");return}return new On(t)}getById(e){const t=this.Blok.BlockManager.getBlockById(e);return t===void 0?(Qt("There is no block with id `"+e+"`","warn"),null):new On(t)}getBlockByElement(e){const t=this.Blok.BlockManager.getBlock(e);if(t===void 0){Qt("There is no block corresponding to element `"+e+"`","warn");return}return new On(t)}move(e,t){this.Blok.BlockManager.move(e,t)}delete(e=this.Blok.BlockManager.currentBlockIndex){const t=this.Blok.BlockManager.getBlockByIndex(e);if(t===void 0){Qt(`There is no block at index \`${e}\``,"warn");return}try{this.Blok.BlockManager.removeBlock(t)}catch(o){Qt(o,"warn");return}this.Blok.BlockManager.blocks.length===0&&this.Blok.BlockManager.insert(),this.Blok.BlockManager.currentBlock&&this.Blok.Caret.setToBlock(this.Blok.BlockManager.currentBlock,this.Blok.Caret.positions.END),this.Blok.Toolbar.close()}async clear(){await this.Blok.BlockManager.clear(!0),this.Blok.InlineToolbar.close()}async render(e){if(e===void 0||e.blocks===void 0)throw new Error("Incorrect data passed to the render() method");this.Blok.ModificationsObserver.disable(),await this.Blok.BlockManager.clear(),await this.Blok.Renderer.render(e.blocks),this.Blok.ModificationsObserver.enable()}async renderFromHTML(e){return await this.Blok.BlockManager.clear(),this.Blok.Paste.processText(e,!0)}stretchBlock(e,t=!0){const o=this.Blok.BlockManager.getBlockByIndex(e);o&&o.setStretchState(t)}validateIndex(e){if(typeof e!="number")throw new Error("Index should be a number");if(e<0)throw new Error("Index should be greater than or equal to 0");if(e===null)throw new Error("Index should be greater than or equal to 0")}}const Zx=(a,e)=>typeof a=="number"?e.BlockManager.getBlockByIndex(a):typeof a=="string"?e.BlockManager.getBlockById(a):e.BlockManager.getBlockById(a.id);class Jx extends Se{constructor(){super(...arguments),this.setToFirstBlock=(e=this.Blok.Caret.positions.DEFAULT,t=0)=>this.Blok.BlockManager.firstBlock?(this.Blok.Caret.setToBlock(this.Blok.BlockManager.firstBlock,e,t),!0):!1,this.setToLastBlock=(e=this.Blok.Caret.positions.DEFAULT,t=0)=>this.Blok.BlockManager.lastBlock?(this.Blok.Caret.setToBlock(this.Blok.BlockManager.lastBlock,e,t),!0):!1,this.setToPreviousBlock=(e=this.Blok.Caret.positions.DEFAULT,t=0)=>this.Blok.BlockManager.previousBlock?(this.Blok.Caret.setToBlock(this.Blok.BlockManager.previousBlock,e,t),!0):!1,this.setToNextBlock=(e=this.Blok.Caret.positions.DEFAULT,t=0)=>this.Blok.BlockManager.nextBlock?(this.Blok.Caret.setToBlock(this.Blok.BlockManager.nextBlock,e,t),!0):!1,this.setToBlock=(e,t=this.Blok.Caret.positions.DEFAULT,o=0)=>{const i=Zx(e,this.Blok);return i===void 0?!1:(this.Blok.Caret.setToBlock(i,t,o),!0)},this.focus=(e=!1)=>e?this.setToLastBlock(this.Blok.Caret.positions.END):this.setToFirstBlock(this.Blok.Caret.positions.START)}get methods(){return{setToFirstBlock:this.setToFirstBlock,setToLastBlock:this.setToLastBlock,setToPreviousBlock:this.setToPreviousBlock,setToNextBlock:this.setToNextBlock,setToBlock:this.setToBlock,focus:this.focus}}}class eE extends Se{get methods(){return{emit:(e,t)=>this.emit(e,t),off:(e,t)=>this.off(e,t),on:(e,t)=>this.on(e,t)}}on(e,t){this.eventsDispatcher.on(e,t)}emit(e,t){this.eventsDispatcher.emit(e,t)}off(e,t){this.eventsDispatcher.off(e,t)}}class rd extends Se{static getNamespace(e,t){return t?`blockTunes.${e}`:`tools.${e}`}get methods(){return{t:e=>(Qt("I18n.t() method can be accessed only from Tools","warn"),"")}}getMethodsForTool(e,t){return Object.assign(this.methods,{t:o=>$e.t(rd.getNamespace(e,t),o)})}}class tE extends Se{get methods(){return{blocks:this.Blok.BlocksAPI.methods,caret:this.Blok.CaretAPI.methods,tools:this.Blok.ToolsAPI.methods,events:this.Blok.EventsAPI.methods,listeners:this.Blok.ListenersAPI.methods,notifier:this.Blok.NotifierAPI.methods,sanitizer:this.Blok.SanitizerAPI.methods,saver:this.Blok.SaverAPI.methods,selection:this.Blok.SelectionAPI.methods,styles:this.Blok.StylesAPI.classes,toolbar:this.Blok.ToolbarAPI.methods,inlineToolbar:this.Blok.InlineToolbarAPI.methods,tooltip:this.Blok.TooltipAPI.methods,i18n:this.Blok.I18nAPI.methods,readOnly:this.Blok.ReadOnlyAPI.methods,ui:this.Blok.UiAPI.methods}}getMethodsForTool(e,t){return Object.assign(this.methods,{i18n:this.Blok.I18nAPI.getMethodsForTool(e,t)})}}class nE extends Se{get methods(){return{close:()=>this.close(),open:()=>this.open()}}open(){this.Blok.InlineToolbar.tryToShow()}close(){this.Blok.InlineToolbar.close()}}class rE extends Se{get methods(){return{on:(e,t,o,i)=>this.on(e,t,o,i),off:(e,t,o,i)=>this.off(e,t,o,i),offById:e=>this.offById(e)}}on(e,t,o,i){return this.listeners.on(e,t,o,i)}off(e,t,o,i){this.listeners.off(e,t,o,i)}offById(e){this.listeners.offById(e)}}class oE{constructor(){this.notifierModule=null,this.loadingPromise=null}loadNotifierModule(){return this.notifierModule!==null?Promise.resolve(this.notifierModule):(this.loadingPromise===null&&(this.loadingPromise=Promise.resolve().then(()=>FC).then(e=>{var o;const t=(o=e==null?void 0:e.default)!=null?o:e;if(!this.isNotifierModule(t))throw new Error('notifier module does not expose a "show" method.');return this.notifierModule=t,t}).catch(e=>{throw this.loadingPromise=null,e})),this.loadingPromise)}show(e){this.loadNotifierModule().then(t=>{t.show(e)}).catch(t=>{console.error("[Blok] Failed to display notification. Reason:",t)})}isNotifierModule(e){return typeof e=="object"&&e!==null&&"show"in e&&typeof e.show=="function"}}class iE extends Se{constructor({config:e,eventsDispatcher:t}){super({config:e,eventsDispatcher:t}),this.notifier=new oE}get methods(){return{show:e=>this.show(e)}}show(e){return this.notifier.show(e)}}class sE extends Se{get methods(){const e=()=>this.isEnabled;return{toggle:t=>this.toggle(t),get isEnabled(){return e()}}}toggle(e){return this.Blok.ReadOnly.toggle(e)}get isEnabled(){return this.Blok.ReadOnly.isEnabled}}var gs={exports:{}},aE=gs.exports,ey;function lE(){return ey||(ey=1,(function(a,e){(function(t,o){a.exports=o()})(aE,function(){function t(y){var b=y.tags,x=Object.keys(b),w=x.map(function(T){return typeof b[T]}).every(function(T){return T==="object"||T==="boolean"||T==="function"});if(!w)throw new Error("The configuration was invalid");this.config=y}var o=["P","LI","TD","TH","DIV","H1","H2","H3","H4","H5","H6","PRE"];function i(y){return o.indexOf(y.nodeName)!==-1}var l=["A","B","STRONG","I","EM","SUB","SUP","U","STRIKE"];function c(y){return l.indexOf(y.nodeName)!==-1}t.prototype.clean=function(y){const b=document.implementation.createHTMLDocument(),x=b.createElement("div");return x.innerHTML=y,this._sanitize(b,x),x.innerHTML},t.prototype._sanitize=function(y,b){var x=d(y,b),w=x.firstChild();if(w)do{if(w.nodeType===Node.TEXT_NODE)if(w.data.trim()===""&&(w.previousElementSibling&&i(w.previousElementSibling)||w.nextElementSibling&&i(w.nextElementSibling))){b.removeChild(w),this._sanitize(y,b);break}else continue;if(w.nodeType===Node.COMMENT_NODE){b.removeChild(w),this._sanitize(y,b);break}var T=c(w),S;T&&(S=Array.prototype.some.call(w.childNodes,i));var O=!!b.parentNode,L=i(b)&&i(w)&&O,U=w.nodeName.toLowerCase(),H=h(this.config,U,w),X=T&&S;if(X||g(w,H)||!this.config.keepNestedBlockElements&&L){if(!(w.nodeName==="SCRIPT"||w.nodeName==="STYLE"))for(;w.childNodes.length>0;)b.insertBefore(w.childNodes[0],w);b.removeChild(w),this._sanitize(y,b);break}for(var q=0;q<w.attributes.length;q+=1){var W=w.attributes[q];v(W,H,w)&&(w.removeAttribute(W.name),q=q-1)}this._sanitize(y,w)}while(w=x.nextSibling())};function d(y,b){return y.createTreeWalker(b,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT,null,!1)}function h(y,b,x){return typeof y.tags[b]=="function"?y.tags[b](x):y.tags[b]}function g(y,b){return typeof b=="undefined"?!0:typeof b=="boolean"?!b:!1}function v(y,b,x){var w=y.name.toLowerCase();return b===!0?!1:typeof b[w]=="function"?!b[w](y.value,x):typeof b[w]=="undefined"||b[w]===!1?!0:typeof b[w]=="string"?b[w]!==y.value:!1}return t})})(gs)),gs.exports}var cE=lE();const uE=Ne(cE),dE=/^\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)/i,fE=/\s*(?:href|src)\s*=\s*(?:"\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^"]*"|'\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^']*|(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^ \t\r\n>]*)/gi,od=(a,e,t={})=>a.map(o=>{const i=De(e)?e(o.tool):e,l=i!=null?i:{};return qe(l)&&ot(l)&&ot(t)?o:Tt(be({},o),{data:id(o.data,l,t)})}),Tn=(a,e={})=>{const t={tags:e};return new uE(t).clean(a)},id=(a,e,t)=>Array.isArray(a)?hE(a,e,t):qe(a)?pE(a,e,t):un(a)?gE(a,e,t):a,hE=(a,e,t)=>a.map(o=>id(o,e,t)),pE=(a,e,t)=>{const o={},i=a;for(const l in a){if(!Object.prototype.hasOwnProperty.call(a,l))continue;const c=i[l],d=qe(e)?e:void 0,h=d==null?void 0:d[l],g=h!==void 0&&mE(h)?h:e;o[l]=id(c,g,t)}return o},gE=(a,e,t)=>{const o=TE(e,t);if(o){const i=Tn(a,o);return sd(ny(i,o))}if(!ot(t)){const i=Tn(a,t);return sd(ny(i,t))}return sd(a)},mE=a=>qe(a)||hv(a)||De(a),vE=a=>a?dE.test(a):!1,sd=a=>{if(!a||a.indexOf("<")===-1)return a;if(typeof document!="undefined"){const e=document.createElement("template");return e.innerHTML=a,e.content.querySelectorAll("[href],[src]").forEach(o=>{["href","src"].forEach(i=>{const l=o.getAttribute(i);vE(l)&&o.removeAttribute(i)})}),e.innerHTML}return a.replace(fE,"")},ad=a=>{if(ot(a))return{};const e={};for(const t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=Sr(a[t]));return e},ty=a=>function(t){const o=a.call(this,t);return o==null?{}:o},yE=new Set(["class","id","title","role","dir","lang"]),bE=a=>{const e=a.toLowerCase();return e.startsWith("data-")||e.startsWith("aria-")||yE.has(e)},kE=a=>{const e={};return Array.from(a.attributes).forEach(t=>{bE(t.name)&&(e[t.name]=!0)}),e},Sr=a=>a===!0?ty(kE):a===!1?!1:De(a)?ty(a):un(a)?a:qe(a)?Ko({},a):a,wE=(a,e)=>{if(ot(a))return ad(e);const t={};for(const o in a){if(!Object.prototype.hasOwnProperty.call(a,o))continue;const i=a[o],l=e?e[o]:void 0;if(De(l)){t[o]=Sr(l);continue}if(De(i)){t[o]=Sr(i);continue}if(qe(i)&&qe(l)){t[o]=Ko({},l,i);continue}if(l!==void 0){t[o]=Sr(l);continue}t[o]=Sr(i)}return t},TE=(a,e)=>qe(a)&&!De(a)?wE(e,a):a===!1?{}:ot(e)?null:ad(e),ld=(a,...e)=>{if(ot(a))return Object.assign({},...e);const t=ad(a);return e.forEach(o=>{if(o)for(const i in o){if(!Object.prototype.hasOwnProperty.call(o,i))continue;const l=o[i];if(!Object.prototype.hasOwnProperty.call(t,i))continue;const c=t[i];if(De(l)){t[i]=l;continue}if(!(l===!0&&De(c))){if(l===!0){const d=qe(c)&&!De(c);t[i]=d?Ko({},c):Sr(l);continue}if(qe(l)&&qe(c)){t[i]=Ko({},c,l);continue}t[i]=Sr(l)}}}),t},ny=(a,e)=>{if(typeof document=="undefined"||!a||a.indexOf("<")===-1)return a;const t=Object.entries(e).filter(([,i])=>De(i));if(t.length===0)return a;const o=document.createElement("template");return o.innerHTML=a,t.forEach(([i,l])=>{o.content.querySelectorAll(i).forEach(d=>{const h=l(d);if(!(hv(h)||De(h)||h==null))for(const[g,v]of Object.entries(h)){if(v===!1){d.removeAttribute(g);continue}v!==!0&&un(v)&&d.setAttribute(g,v)}})}),o.innerHTML};class xE extends Se{get methods(){return{clean:(e,t)=>this.clean(e,t)}}clean(e,t){return Tn(e,t)}}class EE extends Se{get methods(){return{save:()=>this.save()}}async save(){var l,c;const e="Blok's content can not be saved in read-only mode";if(this.Blok.ReadOnly.isEnabled)throw Qt(e,"warn"),new Error(e);const t=await this.Blok.Saver.save();if(t!==void 0)return t;const o=(c=(l=this.Blok.Saver).getLastSaveError)==null?void 0:c.call(l);if(o instanceof Error)throw o;const i=o!==void 0?String(o):"Blok's content can not be saved because collecting data failed";throw new Error(i)}}class SE extends Se{constructor(){super(...arguments),this.selectionUtils=new se}get methods(){return{findParentTag:(e,t)=>this.findParentTag(e,t),expandToTag:e=>this.expandToTag(e),save:()=>this.selectionUtils.save(),restore:()=>this.selectionUtils.restore(),setFakeBackground:()=>this.selectionUtils.setFakeBackground(),removeFakeBackground:()=>this.selectionUtils.removeFakeBackground()}}findParentTag(e,t){return this.selectionUtils.findParentTag(e,t)}expandToTag(e){this.selectionUtils.expandToTag(e)}}class CE extends Se{get methods(){return{getBlockTools:()=>Array.from(this.Blok.Tools.blockTools.values())}}}class BE extends Se{get classes(){return{block:"py-[theme(spacing.block-padding-vertical)] px-0 [&::-webkit-input-placeholder]:!leading-normal",inlineToolButton:"flex justify-center items-center border-0 rounded h-full p-0 w-7 bg-transparent cursor-pointer leading-normal text-black",inlineToolButtonActive:"bg-icon-active-bg text-icon-active-text",input:"w-full rounded-[3px] border border-line-gray px-3 py-2.5 outline-none shadow-input [&[data-blok-placeholder]]:before:!static [&[data-blok-placeholder]]:before:inline-block [&[data-blok-placeholder]]:before:w-0 [&[data-blok-placeholder]]:before:whitespace-nowrap [&[data-blok-placeholder]]:before:pointer-events-none",loader:"relative border border-line-gray before:absolute before:left-1/2 before:top-1/2 before:w-[18px] before:h-[18px] before:rounded-full before:content-[''] before:-ml-[11px] before:-mt-[11px] before:border-2 before:border-line-gray before:border-l-active-icon before:animate-rotation",button:"p-[13px] rounded-[3px] border border-line-gray text-[14.9px] bg-white text-center cursor-pointer text-gray-text shadow-button-base hover:bg-[#fbfcfe] hover:shadow-button-base-hover [&_svg]:h-5 [&_svg]:mr-[0.2em] [&_svg]:-mt-0.5",settingsButton:"inline-flex items-center justify-center rounded-[3px] cursor-pointer border-0 outline-none bg-transparent align-bottom text-inherit m-0 min-w-toolbox-btn min-h-toolbox-btn [&_svg]:w-auto [&_svg]:h-auto mobile:w-toolbox-btn-mobile mobile:h-toolbox-btn-mobile mobile:rounded-lg mobile:[&_svg]:w-icon-mobile mobile:[&_svg]:h-icon-mobile can-hover:hover:bg-bg-light",settingsButtonActive:"text-active-icon",settingsButtonFocused:"shadow-button-focused bg-item-focus-bg",settingsButtonFocusedAnimated:"animate-button-clicked"}}}class AE extends Se{get methods(){return{close:()=>this.close(),open:()=>this.open(),toggleBlockSettings:e=>this.toggleBlockSettings(e),toggleToolbox:e=>this.toggleToolbox(e)}}open(){this.Blok.Toolbar.moveAndOpen()}close(){this.Blok.Toolbar.close()}toggleBlockSettings(e){if(this.Blok.BlockManager.currentBlockIndex===-1){Qt("Could't toggle the Toolbar because there is no block selected ","warn");return}(e!=null?e:!this.Blok.BlockSettings.opened)?(this.Blok.Toolbar.moveAndOpen(),this.Blok.BlockSettings.open()):this.Blok.BlockSettings.close()}toggleToolbox(e){if(this.Blok.BlockManager.currentBlockIndex===-1){Qt("Could't toggle the Toolbox because there is no block selected ","warn");return}(e!=null?e:!this.Blok.Toolbar.toolbox.opened)?(this.Blok.Toolbar.moveAndOpen(),this.Blok.Toolbar.toolbox.open()):this.Blok.Toolbar.toolbox.close()}}const cd=10,IE="tooltip",_E="aria-hidden",RE="false",NE="true",OE="visibility",LE="visible",DE="hidden",tr=class tr{constructor(){this.nodes={wrapper:null,content:null},this.showed=!1,this.offsetTop=cd,this.offsetLeft=cd,this.offsetRight=cd,this.showingTimeout=null,this.hidingDelay=0,this.hidingTimeout=null,this.ariaObserver=null,this.handleWindowScroll=()=>{this.showed&&this.hide(!0)},this.prepare(),window.addEventListener("scroll",this.handleWindowScroll,{passive:!0})}get CSS(){return{tooltip:yt("absolute z-overlay top-0 left-0","bg-tooltip-bg opacity-0","select-none pointer-events-none","transition-[opacity,transform] duration-[50ms,70ms] ease-in","rounded-lg shadow-tooltip","will-change-[opacity,top,left]","before:content-[''] before:absolute before:inset-0 before:bg-tooltip-bg before:-z-10 before:rounded-lg","mobile:hidden").split(" "),tooltipContent:yt("px-2.5 py-1.5","text-tooltip-font text-xs text-center","tracking-[0.02em] leading-[1em]").split(" "),tooltipShown:["opacity-100","transform-none"],placement:{left:["-translate-x-[5px]"],bottom:["translate-y-[5px]"],right:["translate-x-[5px]"],top:["-translate-y-[5px]"]}}}static getInstance(){return tr.instance||(tr.instance=new tr),tr.instance}show(e,t,o={}){this.nodes.wrapper||this.prepare(),this.hidingTimeout&&(clearTimeout(this.hidingTimeout),this.hidingTimeout=null);const l=Object.assign({placement:"bottom",marginTop:0,marginLeft:0,marginRight:0,marginBottom:0,delay:70,hidingDelay:0},o);if(l.hidingDelay&&(this.hidingDelay=l.hidingDelay),!this.nodes.content||(this.nodes.content.innerHTML="",this.nodes.content.appendChild(this.createContentNode(t)),!this.nodes.wrapper))return;const c=Object.values(this.CSS.placement).flatMap(d=>Array.isArray(d)?d:[d]);switch(this.nodes.wrapper.classList.remove(...c),l.placement){case"top":this.placeTop(e,l);break;case"left":this.placeLeft(e,l);break;case"right":this.placeRight(e,l);break;case"bottom":default:this.placeBottom(e,l);break}if(l&&l.delay){this.showingTimeout=setTimeout(()=>{if(this.nodes.wrapper){const d=Array.isArray(this.CSS.tooltipShown)?this.CSS.tooltipShown:[this.CSS.tooltipShown];this.nodes.wrapper.classList.add(...d),this.updateTooltipVisibility()}this.showed=!0},l.delay);return}if(this.nodes.wrapper){const d=Array.isArray(this.CSS.tooltipShown)?this.CSS.tooltipShown:[this.CSS.tooltipShown];this.nodes.wrapper.classList.add(...d),this.updateTooltipVisibility()}this.showed=!0}createContentNode(e){if(typeof e=="string")return document.createTextNode(e);if(e instanceof Node)return e;throw Error("[Blok Tooltip] Wrong type of «content» passed. It should be an instance of Node or String. But "+typeof e+" given.")}hide(e=!1){const t=!!this.hidingDelay&&!e;if(t&&this.hidingTimeout&&clearTimeout(this.hidingTimeout),t){this.hidingTimeout=setTimeout(()=>{this.hide(!0)},this.hidingDelay);return}if(this.nodes.wrapper){const o=Array.isArray(this.CSS.tooltipShown)?this.CSS.tooltipShown:[this.CSS.tooltipShown];this.nodes.wrapper.classList.remove(...o),this.updateTooltipVisibility()}this.showed=!1,this.showingTimeout&&(clearTimeout(this.showingTimeout),this.showingTimeout=null)}onHover(e,t,o={}){e.addEventListener("mouseenter",()=>{this.show(e,t,o)}),e.addEventListener("mouseleave",()=>{this.hide()})}destroy(){var e;(e=this.ariaObserver)==null||e.disconnect(),this.ariaObserver=null,this.nodes.wrapper&&this.nodes.wrapper.remove(),window.removeEventListener("scroll",this.handleWindowScroll),tr.instance=null}prepare(){this.nodes.wrapper=this.make("div",this.CSS.tooltip),this.nodes.wrapper.setAttribute(ro,$u),this.nodes.wrapper.setAttribute("data-blok-testid","tooltip"),this.nodes.content=this.make("div",this.CSS.tooltipContent),this.nodes.content.setAttribute("data-blok-testid","tooltip-content"),this.nodes.wrapper&&this.nodes.content&&(this.append(this.nodes.wrapper,this.nodes.content),this.append(document.body,this.nodes.wrapper),this.ensureTooltipAttributes())}updateTooltipVisibility(){if(!this.nodes.wrapper)return;const e=Array.isArray(this.CSS.tooltipShown)?this.CSS.tooltipShown[0]:this.CSS.tooltipShown,t=this.nodes.wrapper.classList.contains(e);this.nodes.wrapper.style.setProperty(OE,t?LE:DE),this.nodes.wrapper.setAttribute(_E,t?RE:NE),this.nodes.wrapper.setAttribute("data-blok-shown",t?"true":"false")}watchTooltipVisibility(){var e;this.nodes.wrapper&&((e=this.ariaObserver)==null||e.disconnect(),this.updateTooltipVisibility(),this.ariaObserver=new MutationObserver(()=>{this.updateTooltipVisibility()}),this.ariaObserver.observe(this.nodes.wrapper,{attributes:!0,attributeFilter:["class"]}))}ensureTooltipAttributes(){this.nodes.wrapper&&((!this.nodes.wrapper.hasAttribute(ro)||this.nodes.wrapper.getAttribute(ro)!==$u)&&this.nodes.wrapper.setAttribute(ro,$u),this.nodes.wrapper.setAttribute("role",IE),this.watchTooltipVisibility())}placeBottom(e,t){var c;if(!this.nodes.wrapper)return;const o=e.getBoundingClientRect(),i=o.left+e.clientWidth/2-this.nodes.wrapper.offsetWidth/2,l=o.bottom+this.getScrollTop()+this.offsetTop+((c=t.marginTop)!=null?c:0);this.applyPlacement("bottom",i,l)}placeTop(e,t){if(!this.nodes.wrapper)return;const o=e.getBoundingClientRect(),i=o.left+e.clientWidth/2-this.nodes.wrapper.offsetWidth/2,l=o.top+this.getScrollTop()-this.nodes.wrapper.clientHeight-this.offsetTop;this.applyPlacement("top",i,l)}placeLeft(e,t){var c;if(!this.nodes.wrapper)return;const o=e.getBoundingClientRect(),i=o.left-this.nodes.wrapper.offsetWidth-this.offsetLeft-((c=t.marginLeft)!=null?c:0),l=o.top+this.getScrollTop()+e.clientHeight/2-this.nodes.wrapper.offsetHeight/2;this.applyPlacement("left",i,l)}placeRight(e,t){var c;if(!this.nodes.wrapper)return;const o=e.getBoundingClientRect(),i=o.right+this.offsetRight+((c=t.marginRight)!=null?c:0),l=o.top+this.getScrollTop()+e.clientHeight/2-this.nodes.wrapper.offsetHeight/2;this.applyPlacement("right",i,l)}applyPlacement(e,t,o){if(!this.nodes.wrapper)return;const i=Array.isArray(this.CSS.placement[e])?this.CSS.placement[e]:[this.CSS.placement[e]];this.nodes.wrapper.classList.add(...i),this.nodes.wrapper.setAttribute("data-blok-placement",e),this.nodes.wrapper.style.left=`${t}px`,this.nodes.wrapper.style.top=`${o}px`}getScrollTop(){var e,t,o;return typeof window.scrollY=="number"?window.scrollY:(o=(t=(e=document.documentElement)==null?void 0:e.scrollTop)!=null?t:document.body.scrollTop)!=null?o:0}make(e,t=null,o={}){const i=document.createElement(e);Array.isArray(t)&&i.classList.add(...t),typeof t=="string"&&i.classList.add(t);for(const l in o)Object.prototype.hasOwnProperty.call(o,l)&&(i[l]=o[l]);return i}append(e,t){Array.isArray(t)?t.forEach(o=>e.appendChild(o)):e.appendChild(t)}prepend(e,t){Array.isArray(t)?t.reverse().forEach(i=>e.prepend(i)):e.prepend(t)}};tr.instance=null;let ud=tr;const ms=()=>ud.getInstance(),PE=(a,e,t)=>{ms().show(a,e,t!=null?t:{})},Qo=(a=!1)=>{ms().hide(a)},vs=(a,e,t)=>{ms().onHover(a,e,t!=null?t:{})},ME=()=>{ms().destroy()};class FE extends Se{constructor({config:e,eventsDispatcher:t}){super({config:e,eventsDispatcher:t})}get methods(){return{show:(e,t,o)=>this.show(e,t,o),hide:()=>this.hide(),onHover:(e,t,o)=>this.onHover(e,t,o)}}show(e,t,o){PE(e,t,o)}hide(){Qo()}onHover(e,t,o){vs(e,t,o)}}class zE extends Se{get methods(){return{nodes:this.blokNodes}}get blokNodes(){return{wrapper:this.Blok.UI.nodes.wrapper,redactor:this.Blok.UI.nodes.redactor}}}const ry=(a,e)=>{const t={};return Object.entries(a).forEach(([o,i])=>{if(!qe(i)){t[o]=i;return}const l=e?`${e}.${o}`:o;if(!Object.values(i).every(d=>un(d))){t[o]=ry(i,l);return}t[o]=l}),t},it=ry(wv),Dr=class Dr{constructor(e,t){this.cursor=-1,this.items=[],this.items=e!=null?e:[],this.focusedCssClass=t}get currentItem(){return this.cursor===-1?null:this.items[this.cursor]}setCursor(e){e<this.items.length&&e>=-1&&(this.dropCursor(),this.cursor=e,this.items[this.cursor].classList.add(this.focusedCssClass),this.items[this.cursor].setAttribute("data-blok-focused","true"))}setItems(e){this.items=e}hasItems(){return this.items.length>0}next(){this.cursor=this.leafNodesAndReturnIndex(Dr.directions.RIGHT)}previous(){this.cursor=this.leafNodesAndReturnIndex(Dr.directions.LEFT)}dropCursor(){this.cursor!==-1&&(this.items[this.cursor].classList.remove(this.focusedCssClass),this.items[this.cursor].removeAttribute("data-blok-focused"),this.cursor=-1)}leafNodesAndReturnIndex(e){if(this.items.length===0)return this.cursor;const t=e===Dr.directions.RIGHT?-1:0,o=this.cursor===-1?t:this.cursor;o!==-1&&(this.items[o].classList.remove(this.focusedCssClass),this.items[o].removeAttribute("data-blok-focused"));const i=e===Dr.directions.RIGHT?(o+1)%this.items.length:(this.items.length+o-1)%this.items.length;return N.canSetCaret(this.items[i])&&cs(()=>se.setCursor(this.items[i]),50)(),this.items[i].classList.add(this.focusedCssClass),this.items[i].setAttribute("data-blok-focused","true"),i}};Dr.directions={RIGHT:"right",LEFT:"left"};let Cr=Dr;class Yn{constructor(e){var t,o;this.iterator=null,this.activated=!1,this.skipNextTabFocus=!1,this.flipCallbacks=[],this.onKeyDown=i=>{var g;const l=i.target;if(this.shouldSkipTarget(l,i))return;const c=this.getKeyCode(i),d=c===ie.LEFT||c===ie.RIGHT||c===ie.UP||c===ie.DOWN;if(!(i.shiftKey&&d||!this.isEventReadyForHandling(i))&&!(c===ie.ENTER&&!((g=this.iterator)!=null&&g.currentItem)))switch(i.stopPropagation(),i.stopImmediatePropagation(),c!==null&&Yn.usedKeys.includes(c)&&i.preventDefault(),c){case ie.TAB:this.handleTabPress(i);break;case ie.LEFT:case ie.UP:this.flipLeft();break;case ie.RIGHT:case ie.DOWN:this.flipRight();break;case ie.ENTER:this.handleEnterPress(i);break}},this.iterator=new Cr(e.items||[],(t=e.focusedItemClass)!=null?t:""),this.activateCallback=e.activateCallback,this.allowedKeys=e.allowedKeys||Yn.usedKeys,this.handleContentEditableTargets=(o=e.handleContentEditableTargets)!=null?o:!1}get isActivated(){return this.activated}static get usedKeys(){return[ie.TAB,ie.LEFT,ie.RIGHT,ie.ENTER,ie.UP,ie.DOWN]}activate(e,t){var o,i;this.activated=!0,e&&((o=this.iterator)==null||o.setItems(e)),t!==void 0&&((i=this.iterator)==null||i.setCursor(t)),document.addEventListener("keydown",this.onKeyDown,!0),window.addEventListener("keydown",this.onKeyDown,!0)}deactivate(){this.activated=!1,this.dropCursor(),this.skipNextTabFocus=!1,document.removeEventListener("keydown",this.onKeyDown,!0),window.removeEventListener("keydown",this.onKeyDown,!0)}focusFirst(){this.dropCursor(),this.flipRight()}focusItem(e){const t=this.iterator;if(t&&t.hasItems()){if(e<0){t.dropCursor();return}!t.currentItem&&e===0&&(this.skipNextTabFocus=!0),t.setCursor(e)}}flipLeft(){var e;(e=this.iterator)==null||e.previous(),this.flipCallback()}flipRight(){var e;(e=this.iterator)==null||e.next(),this.flipCallback()}hasFocus(){var e;return!!((e=this.iterator)!=null&&e.currentItem)}onFlip(e){this.flipCallbacks.push(e)}removeOnFlip(e){this.flipCallbacks=this.flipCallbacks.filter(t=>t!==e)}dropCursor(){var e;(e=this.iterator)==null||e.dropCursor()}getKeyCode(e){var o;return(o={Tab:ie.TAB,Enter:ie.ENTER,ArrowLeft:ie.LEFT,ArrowRight:ie.RIGHT,ArrowUp:ie.UP,ArrowDown:ie.DOWN}[e.key])!=null?o:null}isEventReadyForHandling(e){const t=this.getKeyCode(e);return this.activated&&t!==null&&this.allowedKeys.includes(t)}setHandleContentEditableTargets(e){this.handleContentEditableTargets=e}handleTabPress(e){const o=e.shiftKey?Cr.directions.LEFT:Cr.directions.RIGHT;if(this.skipNextTabFocus){this.skipNextTabFocus=!1;return}switch(o){case Cr.directions.RIGHT:this.flipRight();break;case Cr.directions.LEFT:this.flipLeft();break}}handleExternalKeydown(e){this.onKeyDown(e)}handleEnterPress(e){var t,o;this.activated&&((t=this.iterator)!=null&&t.currentItem&&(e.stopPropagation(),e.preventDefault(),this.iterator.currentItem.click()),De(this.activateCallback)&&((o=this.iterator)!=null&&o.currentItem)&&this.activateCallback(this.iterator.currentItem))}flipCallback(){var e,t,o;(e=this.iterator)!=null&&e.currentItem&&((o=(t=this.iterator.currentItem).scrollIntoViewIfNeeded)==null||o.call(t)),this.flipCallbacks.forEach(i=>i())}shouldSkipTarget(e,t){if(!e)return!1;const o=e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement,i=e.getAttribute("data-blok-flipper-tab-target")==="true"&&t.key==="Tab",l=e.isContentEditable,c=e.closest('[data-blok-link-tool-input-opened="true"]')!==null,d=l&&!this.handleContentEditableTargets;return o&&!i||d||c}}var dd={exports:{}},Zo={},fd={exports:{}},Te={};var oy;function HE(){if(oy)return Te;oy=1;var a=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function b(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function S(A,P,ae){this.props=A,this.context=P,this.refs=T,this.updater=ae||x}S.prototype.isReactComponent={},S.prototype.setState=function(A,P){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,P,"setState")},S.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function O(){}O.prototype=S.prototype;function L(A,P,ae){this.props=A,this.context=P,this.refs=T,this.updater=ae||x}var U=L.prototype=new O;U.constructor=L,w(U,S.prototype),U.isPureReactComponent=!0;var H=Array.isArray,X=Object.prototype.hasOwnProperty,q={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function F(A,P,ae){var fe,Ee={},Re=null,me=null;if(P!=null)for(fe in P.ref!==void 0&&(me=P.ref),P.key!==void 0&&(Re=""+P.key),P)X.call(P,fe)&&!W.hasOwnProperty(fe)&&(Ee[fe]=P[fe]);var Pe=arguments.length-2;if(Pe===1)Ee.children=ae;else if(1<Pe){for(var ze=Array(Pe),pt=0;pt<Pe;pt++)ze[pt]=arguments[pt+2];Ee.children=ze}if(A&&A.defaultProps)for(fe in Pe=A.defaultProps,Pe)Ee[fe]===void 0&&(Ee[fe]=Pe[fe]);return{$$typeof:a,type:A,key:Re,ref:me,props:Ee,_owner:q.current}}function ne(A,P){return{$$typeof:a,type:A.type,key:P,ref:A.ref,props:A.props,_owner:A._owner}}function ce(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function Q(A){var P={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ae){return P[ae]})}var ye=/\/+/g;function Z(A,P){return typeof A=="object"&&A!==null&&A.key!=null?Q(""+A.key):P.toString(36)}function we(A,P,ae,fe,Ee){var Re=typeof A;(Re==="undefined"||Re==="boolean")&&(A=null);var me=!1;if(A===null)me=!0;else switch(Re){case"string":case"number":me=!0;break;case"object":switch(A.$$typeof){case a:case e:me=!0}}if(me)return me=A,Ee=Ee(me),A=fe===""?"."+Z(me,0):fe,H(Ee)?(ae="",A!=null&&(ae=A.replace(ye,"$&/")+"/"),we(Ee,P,ae,"",function(pt){return pt})):Ee!=null&&(ce(Ee)&&(Ee=ne(Ee,ae+(!Ee.key||me&&me.key===Ee.key?"":(""+Ee.key).replace(ye,"$&/")+"/")+A)),P.push(Ee)),1;if(me=0,fe=fe===""?".":fe+":",H(A))for(var Pe=0;Pe<A.length;Pe++){Re=A[Pe];var ze=fe+Z(Re,Pe);me+=we(Re,P,ae,ze,Ee)}else if(ze=b(A),typeof ze=="function")for(A=ze.call(A),Pe=0;!(Re=A.next()).done;)Re=Re.value,ze=fe+Z(Re,Pe++),me+=we(Re,P,ae,ze,Ee);else if(Re==="object")throw P=String(A),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.");return me}function Oe(A,P,ae){if(A==null)return A;var fe=[],Ee=0;return we(A,fe,"","",function(Re){return P.call(ae,Re,Ee++)}),fe}function xe(A){if(A._status===-1){var P=A._result;P=P(),P.then(function(ae){(A._status===0||A._status===-1)&&(A._status=1,A._result=ae)},function(ae){(A._status===0||A._status===-1)&&(A._status=2,A._result=ae)}),A._status===-1&&(A._status=0,A._result=P)}if(A._status===1)return A._result.default;throw A._result}var _e={current:null},D={transition:null},le={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:D,ReactCurrentOwner:q};function G(){throw Error("act(...) is not supported in production builds of React.")}return Te.Children={map:Oe,forEach:function(A,P,ae){Oe(A,function(){P.apply(this,arguments)},ae)},count:function(A){var P=0;return Oe(A,function(){P++}),P},toArray:function(A){return Oe(A,function(P){return P})||[]},only:function(A){if(!ce(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},Te.Component=S,Te.Fragment=t,Te.Profiler=i,Te.PureComponent=L,Te.StrictMode=o,Te.Suspense=h,Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=le,Te.act=G,Te.cloneElement=function(A,P,ae){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var fe=w({},A.props),Ee=A.key,Re=A.ref,me=A._owner;if(P!=null){if(P.ref!==void 0&&(Re=P.ref,me=q.current),P.key!==void 0&&(Ee=""+P.key),A.type&&A.type.defaultProps)var Pe=A.type.defaultProps;for(ze in P)X.call(P,ze)&&!W.hasOwnProperty(ze)&&(fe[ze]=P[ze]===void 0&&Pe!==void 0?Pe[ze]:P[ze])}var ze=arguments.length-2;if(ze===1)fe.children=ae;else if(1<ze){Pe=Array(ze);for(var pt=0;pt<ze;pt++)Pe[pt]=arguments[pt+2];fe.children=Pe}return{$$typeof:a,type:A.type,key:Ee,ref:Re,props:fe,_owner:me}},Te.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:l,_context:A},A.Consumer=A},Te.createElement=F,Te.createFactory=function(A){var P=F.bind(null,A);return P.type=A,P},Te.createRef=function(){return{current:null}},Te.forwardRef=function(A){return{$$typeof:d,render:A}},Te.isValidElement=ce,Te.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:xe}},Te.memo=function(A,P){return{$$typeof:g,type:A,compare:P===void 0?null:P}},Te.startTransition=function(A){var P=D.transition;D.transition={};try{A()}finally{D.transition=P}},Te.unstable_act=G,Te.useCallback=function(A,P){return _e.current.useCallback(A,P)},Te.useContext=function(A){return _e.current.useContext(A)},Te.useDebugValue=function(){},Te.useDeferredValue=function(A){return _e.current.useDeferredValue(A)},Te.useEffect=function(A,P){return _e.current.useEffect(A,P)},Te.useId=function(){return _e.current.useId()},Te.useImperativeHandle=function(A,P,ae){return _e.current.useImperativeHandle(A,P,ae)},Te.useInsertionEffect=function(A,P){return _e.current.useInsertionEffect(A,P)},Te.useLayoutEffect=function(A,P){return _e.current.useLayoutEffect(A,P)},Te.useMemo=function(A,P){return _e.current.useMemo(A,P)},Te.useReducer=function(A,P,ae){return _e.current.useReducer(A,P,ae)},Te.useRef=function(A){return _e.current.useRef(A)},Te.useState=function(A){return _e.current.useState(A)},Te.useSyncExternalStore=function(A,P,ae){return _e.current.useSyncExternalStore(A,P,ae)},Te.useTransition=function(){return _e.current.useTransition()},Te.version="18.3.1",Te}var iy;function hd(){return iy||(iy=1,fd.exports=HE()),fd.exports}var sy;function jE(){if(sy)return Zo;sy=1;var a=hd(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,h,g){var v,y={},b=null,x=null;g!==void 0&&(b=""+g),h.key!==void 0&&(b=""+h.key),h.ref!==void 0&&(x=h.ref);for(v in h)o.call(h,v)&&!l.hasOwnProperty(v)&&(y[v]=h[v]);if(d&&d.defaultProps)for(v in h=d.defaultProps,h)y[v]===void 0&&(y[v]=h[v]);return{$$typeof:e,type:d,key:b,ref:x,props:y,_owner:i.current}}return Zo.Fragment=t,Zo.jsx=c,Zo.jsxs=c,Zo}var ay;function qE(){return ay||(ay=1,dd.exports=jE()),dd.exports}var xn=qE(),ys={},pd={exports:{}},Ot={},gd={exports:{}},md={};var ly;function UE(){return ly||(ly=1,(function(a){function e(D,le){var G=D.length;D.push(le);e:for(;0<G;){var A=G-1>>>1,P=D[A];if(0<i(P,le))D[A]=le,D[G]=P,G=A;else break e}}function t(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var le=D[0],G=D.pop();if(G!==le){D[0]=G;e:for(var A=0,P=D.length,ae=P>>>1;A<ae;){var fe=2*(A+1)-1,Ee=D[fe],Re=fe+1,me=D[Re];if(0>i(Ee,G))Re<P&&0>i(me,Ee)?(D[A]=me,D[Re]=G,A=Re):(D[A]=Ee,D[fe]=G,A=fe);else if(Re<P&&0>i(me,G))D[A]=me,D[Re]=G,A=Re;else break e}}return le}function i(D,le){var G=D.sortIndex-le.sortIndex;return G!==0?G:D.id-le.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;a.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();a.unstable_now=function(){return c.now()-d}}var h=[],g=[],v=1,y=null,b=3,x=!1,w=!1,T=!1,S=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function U(D){for(var le=t(g);le!==null;){if(le.callback===null)o(g);else if(le.startTime<=D)o(g),le.sortIndex=le.expirationTime,e(h,le);else break;le=t(g)}}function H(D){if(T=!1,U(D),!w)if(t(h)!==null)w=!0,xe(X);else{var le=t(g);le!==null&&_e(H,le.startTime-D)}}function X(D,le){w=!1,T&&(T=!1,O(F),F=-1),x=!0;var G=b;try{for(U(le),y=t(h);y!==null&&(!(y.expirationTime>le)||D&&!Q());){var A=y.callback;if(typeof A=="function"){y.callback=null,b=y.priorityLevel;var P=A(y.expirationTime<=le);le=a.unstable_now(),typeof P=="function"?y.callback=P:y===t(h)&&o(h),U(le)}else o(h);y=t(h)}if(y!==null)var ae=!0;else{var fe=t(g);fe!==null&&_e(H,fe.startTime-le),ae=!1}return ae}finally{y=null,b=G,x=!1}}var q=!1,W=null,F=-1,ne=5,ce=-1;function Q(){return!(a.unstable_now()-ce<ne)}function ye(){if(W!==null){var D=a.unstable_now();ce=D;var le=!0;try{le=W(!0,D)}finally{le?Z():(q=!1,W=null)}}else q=!1}var Z;if(typeof L=="function")Z=function(){L(ye)};else if(typeof MessageChannel!="undefined"){var we=new MessageChannel,Oe=we.port2;we.port1.onmessage=ye,Z=function(){Oe.postMessage(null)}}else Z=function(){S(ye,0)};function xe(D){W=D,q||(q=!0,Z())}function _e(D,le){F=S(function(){D(a.unstable_now())},le)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(D){D.callback=null},a.unstable_continueExecution=function(){w||x||(w=!0,xe(X))},a.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<D?Math.floor(1e3/D):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_getFirstCallbackNode=function(){return t(h)},a.unstable_next=function(D){switch(b){case 1:case 2:case 3:var le=3;break;default:le=b}var G=b;b=le;try{return D()}finally{b=G}},a.unstable_pauseExecution=function(){},a.unstable_requestPaint=function(){},a.unstable_runWithPriority=function(D,le){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var G=b;b=D;try{return le()}finally{b=G}},a.unstable_scheduleCallback=function(D,le,G){var A=a.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?A+G:A):G=A,D){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=G+P,D={id:v++,callback:le,priorityLevel:D,startTime:G,expirationTime:P,sortIndex:-1},G>A?(D.sortIndex=G,e(g,D),t(h)===null&&D===t(g)&&(T?(O(F),F=-1):T=!0,_e(H,G-A))):(D.sortIndex=P,e(h,D),w||x||(w=!0,xe(X))),D},a.unstable_shouldYield=Q,a.unstable_wrapCallback=function(D){var le=b;return function(){var G=b;b=le;try{return D.apply(this,arguments)}finally{b=G}}}})(md)),md}var cy;function WE(){return cy||(cy=1,gd.exports=UE()),gd.exports}var uy;function KE(){if(uy)return Ot;uy=1;var a=hd(),e=WE();function t(n){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s<arguments.length;s++)r+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,i={};function l(n,r){c(n,r),c(n+"Capture",r)}function c(n,r){for(i[n]=r,n=0;n<r.length;n++)o.add(r[n])}var d=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),h=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,v={},y={};function b(n){return h.call(y,n)?!0:h.call(v,n)?!1:g.test(n)?y[n]=!0:(v[n]=!0,!1)}function x(n,r,s,u){if(s!==null&&s.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return u?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function w(n,r,s,u){if(r===null||typeof r=="undefined"||x(n,r,s,u))return!0;if(u)return!1;if(s!==null)switch(s.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function T(n,r,s,u,f,p,m){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=u,this.attributeNamespace=f,this.mustUseProperty=s,this.propertyName=n,this.type=r,this.sanitizeURL=p,this.removeEmptyString=m}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){S[n]=new T(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var r=n[0];S[r]=new T(r,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){S[n]=new T(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){S[n]=new T(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){S[n]=new T(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){S[n]=new T(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){S[n]=new T(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){S[n]=new T(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){S[n]=new T(n,5,!1,n.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function L(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var r=n.replace(O,L);S[r]=new T(r,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var r=n.replace(O,L);S[r]=new T(r,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var r=n.replace(O,L);S[r]=new T(r,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){S[n]=new T(n,1,!1,n.toLowerCase(),null,!1,!1)}),S.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){S[n]=new T(n,1,!1,n.toLowerCase(),null,!0,!0)});function U(n,r,s,u){var f=S.hasOwnProperty(r)?S[r]:null;(f!==null?f.type!==0:u||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(w(r,s,f,u)&&(s=null),u||f===null?b(r)&&(s===null?n.removeAttribute(r):n.setAttribute(r,""+s)):f.mustUseProperty?n[f.propertyName]=s===null?f.type===3?!1:"":s:(r=f.attributeName,u=f.attributeNamespace,s===null?n.removeAttribute(r):(f=f.type,s=f===3||f===4&&s===!0?"":""+s,u?n.setAttributeNS(u,r,s):n.setAttribute(r,s))))}var H=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,X=Symbol.for("react.element"),q=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),ce=Symbol.for("react.provider"),Q=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),we=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),_e=Symbol.for("react.offscreen"),D=Symbol.iterator;function le(n){return n===null||typeof n!="object"?null:(n=D&&n[D]||n["@@iterator"],typeof n=="function"?n:null)}var G=Object.assign,A;function P(n){if(A===void 0)try{throw Error()}catch(s){var r=s.stack.trim().match(/\n( *(at )?)/);A=r&&r[1]||""}return`
|
|
11
11
|
`+A+n}var ae=!1;function fe(n,r){if(!n||ae)return"";ae=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(R){var u=R}Reflect.construct(n,[],r)}else{try{r.call()}catch(R){u=R}n.call(r.prototype)}else{try{throw Error()}catch(R){u=R}n()}}catch(R){if(R&&u&&typeof R.stack=="string"){for(var f=R.stack.split(`
|
|
12
12
|
`),p=u.stack.split(`
|
|
13
13
|
`),m=f.length-1,k=p.length-1;1<=m&&0<=k&&f[m]!==p[k];)k--;for(;1<=m&&0<=k;m--,k--)if(f[m]!==p[k]){if(m!==1||k!==1)do if(m--,k--,0>k||f[m]!==p[k]){var E=`
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jackuait/blok",
|
|
3
|
-
"version": "0.3.1-beta.
|
|
3
|
+
"version": "0.3.1-beta.8",
|
|
4
4
|
"description": "Blok — headless, highly extensible rich text editor built for developers who need to implement a block-based editing experience (similar to Notion) without building it from scratch",
|
|
5
5
|
"main": "dist/blok.umd.js",
|
|
6
6
|
"module": "dist/blok.mjs",
|
|
7
7
|
"types": "./types/index.d.ts",
|
|
8
8
|
"bin": {
|
|
9
|
-
"
|
|
9
|
+
"migrate-from-editorjs": "./codemod/migrate-editorjs-to-blok.js"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"dist",
|