irongit

A better version of regex 101

downloaded statics

huncholanehuncholaneauthored
parent f26b738commit d42ec1f7aa6ff95e5c628f92d32bbae4770104c9Browse files

11 files changed, +391 -24

+330-18index.html
@@ -2,6 +2,317 @@
22 <html lang="en" class="notranslate" translate="no" data-theme="light">
33
44 <head>
5+ <style>
6+ .ͼ1.cm-focused {
7+ outline: 1px dotted #212121;
8+ }
9+
10+ .ͼ1 {
11+ position: relative !important;
12+ box-sizing: border-box;
13+ display: flex !important;
14+ flex-direction: column;
15+ }
16+
17+ .ͼ1 .cm-scroller {
18+ display: flex !important;
19+ align-items: flex-start !important;
20+ font-family: monospace;
21+ line-height: 1.4;
22+ height: 100%;
23+ overflow-x: auto;
24+ position: relative;
25+ z-index: 0;
26+ }
27+
28+ .ͼ1 .cm-content[contenteditable=true] {
29+ -webkit-user-modify: read-write-plaintext-only;
30+ }
31+
32+ .ͼ1 .cm-content {
33+ margin: 0;
34+ flex-grow: 2;
35+ flex-shrink: 0;
36+ display: block;
37+ white-space: pre;
38+ word-wrap: normal;
39+ box-sizing: border-box;
40+ padding: 4px 0;
41+ outline: none;
42+ }
43+
44+ .ͼ1 .cm-lineWrapping {
45+ white-space: pre-wrap;
46+ white-space: break-spaces;
47+ word-break: break-word;
48+ overflow-wrap: anywhere;
49+ flex-shrink: 1;
50+ }
51+
52+ .ͼ2 .cm-content {
53+ caret-color: black;
54+ }
55+
56+ .ͼ3 .cm-content {
57+ caret-color: white;
58+ }
59+
60+ .ͼ1 .cm-line {
61+ display: block;
62+ padding: 0 2px 0 6px;
63+ }
64+
65+ .ͼ1 .cm-layer>* {
66+ position: absolute;
67+ }
68+
69+ .ͼ1 .cm-layer {
70+ position: absolute;
71+ left: 0;
72+ top: 0;
73+ contain: size style;
74+ }
75+
76+ .ͼ2 .cm-selectionBackground {
77+ background: #d9d9d9;
78+ }
79+
80+ .ͼ3 .cm-selectionBackground {
81+ background: #222;
82+ }
83+
84+ .ͼ2.cm-focused>.cm-scroller>.cm-selectionLayer .cm-selectionBackground {
85+ background: #d7d4f0;
86+ }
87+
88+ .ͼ3.cm-focused>.cm-scroller>.cm-selectionLayer .cm-selectionBackground {
89+ background: #233;
90+ }
91+
92+ .ͼ1 .cm-cursorLayer {
93+ pointer-events: none;
94+ }
95+
96+ .ͼ1.cm-focused>.cm-scroller>.cm-cursorLayer {
97+ animation: steps(1) cm-blink 1.2s infinite;
98+ }
99+
100+ @keyframes cm-blink {
101+ 50% {
102+ opacity: 0;
103+ }
104+ }
105+
106+ @keyframes cm-blink2 {
107+ 50% {
108+ opacity: 0;
109+ }
110+ }
111+
112+ .ͼ1 .cm-cursor,
113+ .ͼ1 .cm-dropCursor {
114+ border-left: 1.2px solid black;
115+ margin-left: -0.6px;
116+ pointer-events: none;
117+ }
118+
119+ .ͼ1 .cm-cursor {
120+ display: none;
121+ }
122+
123+ .ͼ3 .cm-cursor {
124+ border-left-color: #444;
125+ }
126+
127+ .ͼ1 .cm-dropCursor {
128+ position: absolute;
129+ }
130+
131+ .ͼ1.cm-focused>.cm-scroller>.cm-cursorLayer .cm-cursor {
132+ display: block;
133+ }
134+
135+ .ͼ2 .cm-activeLine {
136+ background-color: #cceeff44;
137+ }
138+
139+ .ͼ3 .cm-activeLine {
140+ background-color: #99eeff33;
141+ }
142+
143+ .ͼ2 .cm-specialChar {
144+ color: red;
145+ }
146+
147+ .ͼ3 .cm-specialChar {
148+ color: #f78;
149+ }
150+
151+ .ͼ1 .cm-gutters {
152+ flex-shrink: 0;
153+ display: flex;
154+ height: 100%;
155+ box-sizing: border-box;
156+ left: 0;
157+ z-index: 200;
158+ }
159+
160+ .ͼ2 .cm-gutters {
161+ background-color: #f5f5f5;
162+ color: #6c6c6c;
163+ border-right: 1px solid #ddd;
164+ }
165+
166+ .ͼ3 .cm-gutters {
167+ background-color: #333338;
168+ color: #ccc;
169+ }
170+
171+ .ͼ1 .cm-gutter {
172+ display: flex !important;
173+ flex-direction: column;
174+ flex-shrink: 0;
175+ box-sizing: border-box;
176+ min-height: 100%;
177+ overflow: hidden;
178+ }
179+
180+ .ͼ1 .cm-gutterElement {
181+ box-sizing: border-box;
182+ }
183+
184+ .ͼ1 .cm-lineNumbers .cm-gutterElement {
185+ padding: 0 3px 0 5px;
186+ min-width: 20px;
187+ text-align: right;
188+ white-space: nowrap;
189+ }
190+
191+ .ͼ2 .cm-activeLineGutter {
192+ background-color: #e2f2ff;
193+ }
194+
195+ .ͼ3 .cm-activeLineGutter {
196+ background-color: #222227;
197+ }
198+
199+ .ͼ1 .cm-panels {
200+ box-sizing: border-box;
201+ position: sticky;
202+ left: 0;
203+ right: 0;
204+ }
205+
206+ .ͼ2 .cm-panels {
207+ background-color: #f5f5f5;
208+ color: black;
209+ }
210+
211+ .ͼ2 .cm-panels-top {
212+ border-bottom: 1px solid #ddd;
213+ }
214+
215+ .ͼ2 .cm-panels-bottom {
216+ border-top: 1px solid #ddd;
217+ }
218+
219+ .ͼ3 .cm-panels {
220+ background-color: #333338;
221+ color: white;
222+ }
223+
224+ .ͼ1 .cm-tab {
225+ display: inline-block;
226+ overflow: hidden;
227+ vertical-align: bottom;
228+ }
229+
230+ .ͼ1 .cm-widgetBuffer {
231+ vertical-align: text-top;
232+ height: 1em;
233+ width: 0;
234+ display: inline;
235+ }
236+
237+ .ͼ1 .cm-placeholder {
238+ color: #888;
239+ display: inline-block;
240+ vertical-align: top;
241+ }
242+
243+ .ͼ1 .cm-highlightSpace:before {
244+ content: attr(data-display);
245+ position: absolute;
246+ pointer-events: none;
247+ color: #888;
248+ }
249+
250+ .ͼ1 .cm-highlightTab {
251+ background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>');
252+ background-size: auto 100%;
253+ background-position: right 90%;
254+ background-repeat: no-repeat;
255+ }
256+
257+ .ͼ1 .cm-trailingSpace {
258+ background-color: #ff332255;
259+ }
260+
261+ .ͼ1 .cm-button {
262+ vertical-align: middle;
263+ color: inherit;
264+ font-size: 70%;
265+ padding: .2em 1em;
266+ border-radius: 1px;
267+ }
268+
269+ .ͼ2 .cm-button:active {
270+ background-image: linear-gradient(#b4b4b4, #d0d3d6);
271+ }
272+
273+ .ͼ2 .cm-button {
274+ background-image: linear-gradient(#eff1f5, #d9d9df);
275+ border: 1px solid #888;
276+ }
277+
278+ .ͼ3 .cm-button:active {
279+ background-image: linear-gradient(#111, #333);
280+ }
281+
282+ .ͼ3 .cm-button {
283+ background-image: linear-gradient(#393939, #111);
284+ border: 1px solid #888;
285+ }
286+
287+ .ͼ1 .cm-textfield {
288+ vertical-align: middle;
289+ color: inherit;
290+ font-size: 70%;
291+ border: 1px solid silver;
292+ padding: .2em .5em;
293+ }
294+
295+ .ͼ2 .cm-textfield {
296+ background-color: white;
297+ }
298+
299+ .ͼ3 .cm-textfield {
300+ border: 1px solid #555;
301+ background-color: inherit;
302+ }
303+
304+ .ͼ4 .cm-line ::selection {
305+ background-color: transparent !important;
306+ }
307+
308+ .ͼ4 .cm-line::selection {
309+ background-color: transparent !important;
310+ }
311+
312+ .ͼ4 .cm-line {
313+ caret-color: transparent !important;
314+ }
315+ </style>
5316 <meta charset="UTF-8">
6317 <meta name="apple-mobile-web-app-capable" content="yes">
7318 <meta name="apple-mobile-web-app-status-bar-style" content="default">
@@ -11,12 +322,12 @@
11322 <meta name="format-detection" content="telephone=no">
12323 <meta name="title" content="regex101">
13324
14- <link rel="stylesheet" type="text/css" href="/static/bundle.5f9425999a8b7f94b3ae.css" id="mainCss">
325+ <link rel="stylesheet" type="text/css" href="/static/bundle.659197b9fa4d59fb7f31.css" id="mainCss">
15326
16327 <link rel="preconnect" href="https://fonts.googleapis.com">
17- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
18- <link rel="preload"
19- href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Source+Code+Pro:wght@400;500;700&display=swap"
328+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
329+ <link rel="stylesheet"
330+ href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&amp;family=Source+Code+Pro:wght@400;500;700&amp;display=swap"
20331 as="style" onload="this.onload=null;this.rel='stylesheet'">
21332
22333 <link rel="apple-touch-icon" sizes="57x57" href="/static/assets/icon-57.png">
@@ -36,22 +347,22 @@
36347 <link rel="icon" type="image/png" sizes="192x192" href="/static/assets/icon-192.png">
37348
38349 <link rel="manifest" href="/static/assets/manifest.webmanifest">
39- <meta name="theme-color" content="#3366a4">
350+ <meta name="theme-color" content="#2c5c97">
40351
41- <link href="https://regex101.com" rel="home" />
352+ <link href="https://regex101.com" rel="home">
42353 <meta name="viewport"
43354 content="width=device-width, minimum-scale=1.0, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
44355 <meta name="keywords"
45- content="regex,regex tester,regular expression,debugger,pcre,php,golang,java,javascript,python,.net,c#">
356+ content="regex,regex tester,regular expression,debugger,pcre,php,golang,java,javascript,python,.net,c#,rust">
46357 <meta name="description"
47- content="Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET.">
358+ content="Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust.">
48359 <meta name="author" content="Firas Dib">
49360
50361 <meta property="twitter:card" content="summary_large_image">
51362 <meta property="twitter:site" content="@regex101">
52363 <meta property="twitter:title" content="regex101: build, test, and debug regex">
53364 <meta property="twitter:description"
54- content="Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET.">
365+ content="Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust.">
55366 <meta property="twitter:creator" content="@regex101">
56367 <meta property="twitter:image" content="https://regex101.com/static/assets/card.png">
57368 <meta property="twitter:domain" content="regex101.com">
@@ -61,30 +372,31 @@
61372 <meta property="og:image:height" content="630">
62373 <meta property="og:title" content="regex101: build, test, and debug regex">
63374 <meta property="og:description"
64- content="Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET.">
375+ content="Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust.">
65376 <meta property="og:url" content="https://regex101.com/">
66377 <meta property="og:site_name" content="regex101">
67378 <meta property="og:type" content="website">
68379
69- <meta name="google" content="notranslate" />
380+ <meta name="google" content="notranslate">
70381 <title>regex101: build, test, and debug regex</title>
71382 <script>var l; document.addEventListener("readystatechange", l = function (h) { if ("interactive" === h.target.readyState) { document.removeEventListener("readystatechange", l); try { var c, d, e, a = null == (d = JSON.parse(null == (c = localStorage) ? void 0 : c.getItem("regex101-state"))) ? void 0 : null == (e = d.settings) ? void 0 : e.theme, b, f, g, k = (null == (b = window) ? 0 : null == (f = b.matchMedia) ? 0 : null == (g = f.call(b, "(prefers-color-scheme: dark)")) ? 0 : g.matches) ? "dark" : "light"; document.documentElement.setAttribute("data-theme", a && "AUTO" !== a ? a : k) } catch (m) { console.error("Unable to set theme", m) } } });</script>
72383 <script>
73- window.__INITIAL_STATE__ = '%7B%22account%22%3A%7B%22data%22%3A%5B%5D%2C%22pages%22%3A0%2C%22allTags%22%3A%5B%5D%2C%22staleData%22%3Atrue%7D%2C%22general%22%3A%7B%22permalinkFragment%22%3Anull%2C%22version%22%3Anull%2C%22deleteCode%22%3Anull%2C%22userId%22%3Anull%2C%22email%22%3Anull%2C%22profilePicture%22%3Anull%2C%22serviceProvider%22%3Anull%2C%22isFavorite%22%3Afalse%2C%22isLibraryEntry%22%3Afalse%2C%22title%22%3Anull%2C%22documentTitle%22%3A%22build%2C%20test%2C%20and%20debug%20regex%22%2C%22metaDescription%22%3A%22Regular%20expression%20tester%20with%20syntax%20highlighting%2C%20explanation%2C%20cheat%20sheet%20for%20PHP%2FPCRE%2C%20Python%2C%20GO%2C%20JavaScript%2C%20Java%2C%20C%23%2F.NET.%22%2C%22tags%22%3A%5B%5D%2C%22cookie%22%3A%22%22%2C%22sponsorData%22%3Anull%2C%22currentTheme%22%3A%22AUTO%22%2C%22permalinkIsEditable%22%3Atrue%2C%22isOwner%22%3Afalse%7D%2C%22libraryEntry%22%3A%7B%22title%22%3Anull%2C%22description%22%3Anull%2C%22author%22%3Anull%7D%2C%22quiz%22%3A%7B%22allTasks%22%3A%5B%5D%7D%2C%22regexAreaParser%22%3A%7B%22tokens%22%3A%5B%5D%2C%22subpatterns%22%3A%5B%5D%2C%22captureGroupMap%22%3A%7B%7D%2C%22captureGroupCount%22%3A0%2C%22status%22%3Anull%2C%22definedSubpatterns%22%3A%5B%5D%7D%2C%22regexEditor%22%3A%7B%22flavor%22%3A%22pcre2%22%2C%22delimiter%22%3A%22%2F%22%2C%22flags%22%3A%22gm%22%2C%22regex%22%3A%22%22%2C%22testString%22%3A%22%22%2C%22matchResult%22%3A%5B%5D%2C%22error%22%3Anull%2C%22substString%22%3A%22%22%2C%22listSubstString%22%3A%22%22%2C%22hasUnsavedData%22%3Atrue%2C%22regexVersions%22%3A0%2C%22showMatchArea%22%3Atrue%2C%22showSubstitutionArea%22%3Afalse%2C%22showUnitTestArea%22%3Afalse%2C%22showListSubstitutionArea%22%3Afalse%7D%2C%22regexLibrary%22%3A%7B%22libraryData%22%3A%5B%5D%2C%22pages%22%3A0%2C%22details%22%3Anull%7D%2C%22rightSidebar%22%3A%7B%22activeSubsection%22%3A%22EXPLANATION%22%2C%22visibleSections%22%3A%5B%22EXPLANATION%22%2C%22MATCH_INFO%22%2C%22QUICKREF%22%5D%2C%22hiddenSections%22%3A%5B%5D%2C%22width%22%3Anull%7D%2C%22settings%22%3A%7B%22maxExecutionTime%22%3A2000%2C%22theme%22%3A%22AUTO%22%2C%22nonParticipatingGroups%22%3Afalse%2C%22displayWhitespace%22%3Atrue%2C%22colorizeSyntax%22%3Atrue%2C%22autoComplete%22%3Afalse%2C%22wrapLines%22%3Atrue%2C%22testAreaLineNumbers%22%3Afalse%2C%22regexAreaLineNumbers%22%3Afalse%2C%22language%22%3A%22ENGLISH%22%2C%22storageSaved%22%3Anull%2C%22storageLoaded%22%3Anull%2C%22editorTooltips%22%3Atrue%2C%22alwaysCollapseLeftSidebar%22%3Afalse%2C%22alwaysCollapseRightSidebar%22%3Afalse%2C%22defaultFlavor%22%3A%22pcre2%22%2C%22showWarningUnsavedProgress%22%3Atrue%2C%22defaultCodeGenLanguage%22%3A%22%22%2C%22calculateRegexSteps%22%3Atrue%2C%22defaultTabBehavior%22%3Atrue%2C%22disableKeyboardShortcuts%22%3Afalse%7D%2C%22unitTests%22%3A%7B%22tests%22%3A%5B%5D%2C%22testResults%22%3A%7B%7D%2C%22testsRunning%22%3Afalse%2C%22testFilter%22%3A%22ALL%22%7D%7D';
384+ window.__INITIAL_STATE__ = '%7B%22account%22%3A%7B%22data%22%3A%5B%5D%2C%22pages%22%3A0%2C%22allTags%22%3A%5B%5D%2C%22staleData%22%3Atrue%7D%2C%22general%22%3A%7B%22permalinkFragment%22%3Anull%2C%22version%22%3Anull%2C%22userId%22%3Anull%2C%22email%22%3Anull%2C%22profilePicture%22%3Anull%2C%22serviceProvider%22%3Anull%2C%22isFavorite%22%3Afalse%2C%22isLibraryEntry%22%3Afalse%2C%22title%22%3Anull%2C%22documentTitle%22%3A%22build%2C%20test%2C%20and%20debug%20regex%22%2C%22metaDescription%22%3A%22Regular%20expression%20tester%20with%20syntax%20highlighting%2C%20explanation%2C%20cheat%20sheet%20for%20PHP%2FPCRE%2C%20Python%2C%20GO%2C%20JavaScript%2C%20Java%2C%20C%23%2F.NET%2C%20Rust.%22%2C%22tags%22%3A%5B%5D%2C%22cookie%22%3A%22%22%2C%22sponsorData%22%3Anull%2C%22currentTheme%22%3A%22AUTO%22%2C%22permalinkIsEditable%22%3Atrue%2C%22isOwner%22%3Afalse%7D%2C%22libraryEntry%22%3A%7B%22title%22%3Anull%2C%22description%22%3Anull%2C%22author%22%3Anull%7D%2C%22quiz%22%3A%7B%22allTasks%22%3A%5B%5D%7D%2C%22regexAreaParser%22%3A%7B%22tokens%22%3A%5B%5D%2C%22subpatterns%22%3A%5B%5D%2C%22captureGroupMap%22%3A%7B%7D%2C%22captureGroupCount%22%3A0%2C%22status%22%3Anull%2C%22definedSubpatterns%22%3A%5B%5D%7D%2C%22regexEditor%22%3A%7B%22flavor%22%3A%22pcre2%22%2C%22delimiter%22%3A%22%2F%22%2C%22flags%22%3A%22gm%22%2C%22regex%22%3A%22%22%2C%22testString%22%3A%22%22%2C%22matchResult%22%3A%5B%5D%2C%22error%22%3Anull%2C%22substString%22%3A%22%22%2C%22listSubstString%22%3A%22%22%2C%22hasUnsavedData%22%3Atrue%2C%22regexVersions%22%3A%5B%5D%2C%22showMatchArea%22%3Atrue%2C%22showSubstitutionArea%22%3Afalse%2C%22showUnitTestArea%22%3Afalse%2C%22showListSubstitutionArea%22%3Afalse%7D%2C%22regexLibrary%22%3A%7B%22libraryData%22%3A%5B%5D%2C%22pages%22%3A0%2C%22details%22%3Anull%7D%2C%22rightSidebar%22%3A%7B%22activeSubsection%22%3A%22EXPLANATION%22%2C%22visibleSections%22%3A%5B%22EXPLANATION%22%2C%22MATCH_INFO%22%2C%22QUICKREF%22%5D%2C%22hiddenSections%22%3A%5B%5D%2C%22width%22%3Anull%7D%2C%22settings%22%3A%7B%22maxExecutionTime%22%3A2000%2C%22theme%22%3A%22AUTO%22%2C%22nonParticipatingGroups%22%3Afalse%2C%22displayWhitespace%22%3Atrue%2C%22colorizeSyntax%22%3Atrue%2C%22wrapLines%22%3Atrue%2C%22testAreaLineNumbers%22%3Afalse%2C%22regexAreaLineNumbers%22%3Afalse%2C%22language%22%3A%22ENGLISH%22%2C%22storageSaved%22%3Anull%2C%22storageLoaded%22%3Anull%2C%22editorTooltips%22%3Atrue%2C%22alwaysCollapseLeftSidebar%22%3Afalse%2C%22alwaysCollapseRightSidebar%22%3Afalse%2C%22defaultFlavor%22%3A%22pcre2%22%2C%22showWarningUnsavedProgress%22%3Atrue%2C%22defaultCodeGenLanguage%22%3A%22%22%2C%22calculateRegexSteps%22%3Atrue%2C%22defaultTabBehavior%22%3Atrue%2C%22disableKeyboardShortcuts%22%3Afalse%2C%22lineSeparator%22%3A%22%22%7D%2C%22unitTests%22%3A%7B%22tests%22%3A%5B%5D%2C%22testResults%22%3A%7B%7D%2C%22testsRunning%22%3Afalse%2C%22testFilter%22%3A%22ALL%22%7D%7D';
74385 </script>
75386
76- <script src="/static/vendors-bundle.951c75033b74008308ae.js" defer></script>
77- <script src="/static/bundle.9f9a755d912651405097.js" defer></script>
387+ <script src="/static/vendors-bundle.5f028802ce325a9745fb.js" defer=""></script>
388+ <script src="/static/bundle.bc4943f4b6820b0741dd.js" defer=""></script>
78389
79- <script defer>
390+ <script defer="">
80391 (function () { var a = "Worker" in window, b = "Promise" in window, c = "object" === typeof WebAssembly && "function" === typeof WebAssembly.instantiate; a && b && c || (window.__LEGACY__ = !0, window.addEventListener("load", function () { document.body.innerHTML = '<div style="padding: 60px; max-width: 600px;margin: 0 auto; text-align: center; font-size: 20px; line-height: 1.5;"><div><p>Unfortunately it seems your browser does not meet the criteria to properly render and utilize this website. You need a browser with support for web workers and Web Assembly.</p><a href="http://browsehappy.com/" style="color: blue;">Please upgrade your browser and come back</a></div><p><strong>Note: if you\'re running a newer version of Edge, and still getting this message, check your security settings as they can be preventing webassembly from running.</strong></p><p><strong>Debug results:</strong> Worker=' + a + ", Promise=" + b + ", WASM=" + c + "</strong></p></div>" }, { once: !0 })) })();
81392 </script>
82393
83- <link rel="preload" href="/static/quickref.2c3113f06c479a67c60a.chunk.js" as="script" />
84- <link rel="preload" href="/static/653.6e679a10c3aae1d7e364.css" as="style" />
394+ <link rel="preload" href="/static/quickref.13eedec26774e778c5fa.chunk.js" as="script">
395+ <link rel="preload" href="/static/653.de37bf83de58791edb3a.css" as="style">
85396
86- <script fetchpriority="low" defer data-domain="regex101.com"
397+ <script fetchpriority="low" defer="" data-domain="regex101.com"
87398 src="https://analytics.regex101.com/js/plausible.js"></script>
399+ <link rel="stylesheet" type="text/css" href="/static/653.de37bf83de58791edb3a.css">
88400 </head>
89401
90402
+1-0public/static/653.de37bf83de58791edb3a.css
@@ -0,0 +1 @@
1+.UDI84{background:var(--content-bg);border-radius:3px;bottom:0;left:0;padding:10px;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out;will-change:opacity}.FHG1E,.UDI84{overflow:hidden}.FHG1E{display:flex;flex-direction:column;height:100%;transform:translateY(0);transition:transform .2s ease-in-out}.Xej5E{flex:0 0 auto}.w7WwV{-webkit-overflow-scrolling:touch;flex:1 1 auto;overflow:auto}.rtoZ8,.tFlWF{line-height:1.3}.rtoZ8{display:flex;flex-direction:row}.vqMnN{flex:1 1 auto;margin-left:5px}.vqMnN p{margin:8px 0}.vqMnN p:first-child{margin-top:0}.vqMnN p:last-child{margin-bottom:0}.ZWIzy{flex:0 0 auto}.ZWIzy,.vBshH,.ycsEY{word-wrap:break-word;font-family:var(--code-font);overflow-wrap:break-word;white-space:pre-wrap;word-break:break-word}.tFlWF{background:var(--sub-content-bg);font-size:inherit;margin-top:10px;position:relative}.dS50b{position:absolute;right:10px;top:10px}.vBshH{color:var(--highlight-color);margin-bottom:10px}.XEr8P{cursor:pointer;opacity:.7;padding:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.XEr8P:hover{opacity:1}.XEr8P:active{opacity:.8}.XEr8P{color:var(--app-color);padding:0 5px}.h8bCK{opacity:0}.h8bCK .FHG1E{transform:translateY(30px)}.JmxiQ{opacity:1}.JmxiQ .FHG1E{pointer-events:none;transform:translateY(0)}.Url5q{opacity:1}.Url5q .FHG1E{transform:translateY(0)}.Z4TLl{opacity:0;pointer-events:none}.Z4TLl .FHG1E{transform:translateY(30px)}.ufFSv:nth-child(odd){background:var(--match-group-0)}.ufFSv:nth-child(2n){background:var(--match-group-0-alt)}.JcsyQ{background:var(--match-group-1)}.j4cS2{background:var(--match-group-2)}.nOrVs{background:var(--match-group-3)}.NOaAb{display:inline-block;overflow:hidden;vertical-align:middle;width:2px}.yHczy{display:flex;flex-direction:row}.y8wXX{flex:1 1 auto}.K3I6m{flex:1 0 190px;max-width:190px;overflow-x:hidden!important}.K3I6m,.y8wXX{-webkit-overflow-scrolling:touch;box-sizing:border-box;height:100%;overflow:auto}.Y8ney{border-right:1px solid var(--label-border-color);margin:0 5px}@media (max-width:600px){.yHczy{flex-direction:column}.K3I6m{max-height:35vh;max-width:none}.Y8ney{border-bottom:1px solid var(--label-border-color);border-right:0;margin:0 0 5px;padding:0 0 5px}}.QnmOe{display:block;margin-bottom:5px}.QnmOe .zVWQk{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}
+52-0public/static/assets/manifest.webmanifest
@@ -0,0 +1,52 @@
1+{
2+ "name": "regex101",
3+ "short_name": "regex101",
4+ "start_url": "/",
5+ "display": "standalone",
6+ "background_color": "#f7f7f7",
7+ "theme_color": "#3366a4",
8+ "description": "regex101: build, test, and debug regex",
9+ "icons": [
10+ {
11+ "src": "/static/assets/icon-36.png",
12+ "sizes": "36x36",
13+ "type": "image/png"
14+ },
15+ {
16+ "src": "/static/assets/icon-48.png",
17+ "sizes": "48x48",
18+ "type": "image/png"
19+ },
20+ {
21+ "src": "/static/assets/icon-72.png",
22+ "sizes": "72x72",
23+ "type": "image/png"
24+ },
25+ {
26+ "src": "/static/assets/icon-96.png",
27+ "sizes": "96x96",
28+ "type": "image/png"
29+ },
30+ {
31+ "src": "/static/assets/icon-144.png",
32+ "sizes": "144x144",
33+ "type": "image/png"
34+ },
35+ {
36+ "src": "/static/assets/icon-192.png",
37+ "sizes": "192x192",
38+ "type": "image/png"
39+ },
40+ {
41+ "src": "/static/assets/icon-512.png",
42+ "sizes": "512x512",
43+ "type": "image/png"
44+ },
45+ {
46+ "src": "/static/assets/maskable-icon-512.png",
47+ "sizes": "512x512",
48+ "type": "image/png",
49+ "purpose": "maskable"
50+ }
51+ ]
52+}
+1-0public/static/bundle.659197b9fa4d59fb7f31.css
@@ -0,0 +1 @@
1+.dYInr{border-bottom:1px solid var(--label-border-color);color:var(--label-color);font-weight:600;margin:0 0 7px;padding:0 0 4px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.z2wCE{font-size:.825rem}.yBUBH{font-size:.9rem}.m46EU{font-size:1rem}.JOzNE{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uJMuU{color:var(--danger-color);font-weight:700}.QsetX,.ZHUJ9,.wxY97,.zyVia{background:var(--sub-content-bg);border-left:5px solid;border-radius:3px;font-size:.825rem;line-height:1.5;padding:6px 8px}._2SqQ{margin:5px 0 10px}.ZHUJ9{border-color:var(--info-color)}.wxY97{border-color:var(--warning-color)}.zyVia{border-color:var(--danger-color)}.QsetX{border-color:var(--success-color)}.B5ZQm{pointer-events:none}.W1cZe{transition:opacity .1s ease,transform .1s ease;will-change:opacity,transform}.VkxC6,.W1cZe{position:relative;z-index:99999}.VkxC6 span{word-wrap:break-word;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:var(--tooltip-bg);border-radius:3px;box-shadow:0 4px 10px 0 #00000059;color:var(--tooltip-color);font-family:var(--app-font);font-size:.8rem;padding:6px 8px;position:absolute;text-align:center;transition:none;white-space:pre}.VkxC6:before{border:5px solid transparent;color:var(--tooltip-bg);content:"";height:0;pointer-events:none;position:absolute;width:0;z-index:99999}.VkxC6 span,.VkxC6:before{display:inline-block;text-decoration:none}.rRIcU span,.rxR8J span,.tpO8n span{margin-top:5px;right:50%;top:100%}.rRIcU:before,.rxR8J:before,.tpO8n:before{border-bottom-color:var(--tooltip-bg);bottom:-5px;margin-right:-5px;right:50%;top:auto}.rRIcU span{left:50%;margin-left:-15px;right:auto}.rxR8J span{margin-right:-15px}.C8D6d span,.HEiJb span,._LdAA span{bottom:100%;margin-bottom:5px;right:50%}.C8D6d:before,.HEiJb:before,._LdAA:before{border-top-color:var(--tooltip-bg);bottom:auto;margin-right:-5px;right:50%;top:-5px}.C8D6d span{left:50%;margin-left:-15px;right:auto}._LdAA span{margin-right:-15px}.HEiJb span,.tpO8n span{transform:translateX(50%)}.ItfZm span{bottom:50%;margin-right:5px;right:100%;transform:translateY(50%)}.ItfZm:before{border-left-color:var(--tooltip-bg);bottom:50%;left:-5px;margin-top:-5px;top:50%}.G0Q1B span{bottom:50%;left:100%;margin-left:5px;transform:translateY(50%)}.G0Q1B:before{border-right-color:var(--tooltip-bg);bottom:50%;margin-top:-5px;right:-5px;top:50%}.IE41R span{word-wrap:normal;border-collapse:initial;display:table-cell;max-width:250px;white-space:pre-line;width:-webkit-max-content;width:-moz-max-content;width:max-content;word-break:break-word}.IE41R.HEiJb span,.IE41R.tpO8n span{left:50%;right:auto;transform:translateX(-50%)}.IE41R.G0Q1B span,.IE41R.ItfZm span{right:100%}@media screen and (min-width:0 \0){.IE41R span{width:250px}}.prZOI span,.prZOI:before{display:inline-block}.prZOI.IE41R span{display:table-cell}._e9G1{opacity:0;will-change:opacity}.cSwfV,.y9o0V{opacity:1}.y9o0V{transform:scale(1);will-change:opacity,transform}.UuK9m{opacity:0;transform:scale(.9)}.b0Wk4{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;text-align:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}.KOowz{pointer-events:none}.KlLjA,.LHBOD,.o0XbU{border:none;border-radius:3px;box-sizing:initial;color:var(--app-contrast-color);cursor:pointer;font-family:var(--app-font);font-size:.875rem;font-weight:600;outline:0;padding:6px 20px;position:relative;text-align:center;text-transform:uppercase;transition:background .2s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;will-change:background}.KlLjA:hover:not(:active),.LHBOD:hover:not(:active),.o0XbU:hover:not(:active){--button-ok-bg-l:var(--button-hover-l);--button-bg-l:var(--button-hover-l);--button-danger-bg-l:var(--button-hover-l)}.KlLjA{background:hsl(var(--button-ok-bg-h),var(--button-ok-bg-s),var(--button-ok-bg-l))}.o0XbU{background:hsl(var(--button-bg-h),var(--button-bg-s),var(--button-bg-l))}.LHBOD{background:hsl(var(--button-danger-bg-h),var(--button-danger-bg-s),var(--button-danger-bg-l))}.TzGX0{opacity:.5}.MaQ5e,.TzGX0{pointer-events:none}.MaQ5e{background:var(--bg-0);border-radius:3px;bottom:3px;color:var(--app-color);font-size:.6rem;letter-spacing:1px;padding:3px 6px;position:absolute;right:5px}.MaQ5e.kRYUB{bottom:50%;transform:translateY(50%)}.OSM2Q{background:var(--input-bg);border:1px solid var(--input-border-color);border-radius:3px;box-sizing:border-box;color:var(--app-color);font-family:inherit;font-size:.8rem;outline:0;padding:0;position:relative;resize:none;transition:all .2s ease;transition-property:border-color,box-shadow,background;width:100%}.OSM2Q.YUotv{animation:qEAay .4s linear}.OSM2Q.qPEQx input{background:var(--input-disabled-bg)}.OSM2Q.E646T{border-color:var(--input-focused-border-color);box-shadow:var(--input-focused-box-shadow)}.vNcES{background:transparent;border:none;box-sizing:border-box;color:inherit;font-family:var(--app-font);font-size:.875rem;margin:0;outline:0;padding:6px;width:100%}.vNcES.L6fuH{padding-right:35px}.vNcES.svJgY{padding-right:30px}.vNcES.Nih6H{padding-right:65px}.zLfBM{font-family:var(--code-font)}@keyframes qEAay{41%,8%{transform:translateX(-5px)}25%,58%{transform:translateX(5px)}75%{transform:translateX(-2px)}92%{transform:translateX(2px)}0%,to{transform:translateX(0)}}.mha2w{color:var(--misc-button-icon-color)}.mha2w:hover{background:var(--misc-button-hover-bg)}.mha2w:active{background:var(--misc-button-active-bg);color:var(--misc-button-active-color)}.mha2w{border-bottom-right-radius:3px;border-left:1px solid var(--input-border-color);border-top-right-radius:3px;height:100%;overflow:hidden;padding:0;top:0;width:30px}.e8Fwv,.mha2w{position:absolute;right:0}.e8Fwv{padding:5px;top:50%;transform:translateY(-50%)}.e8Fwv svg{display:block}.HnB3F{text-decoration:none}.kKIV1,.kKIV1:active,.kKIV1:hover,.kKIV1:visited{color:var(--link-color)}.kKIV1:hover{text-decoration:underline}.Pv6NV{animation:Pv6NV 1.1s linear infinite;border:6px solid rgba(0,0,0,.2);border-left:6px solid var(--primary-color);transform:translateZ(0);z-index:1}.Pv6NV,.Pv6NV:after{border-radius:50%}.K5n25{height:60px;width:60px}.uo2S1{height:40px;width:40px}.LbYg5{height:30px;width:30px}.u06aC{height:10px;width:10px}.Pv6NV.u06aC{border-width:3px!important}.Pv6NV.LbYg5{border-width:5px!important}@keyframes Pv6NV{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.CwB4E{transition:opacity .2s ease!important}.RuPoa{opacity:0!important;will-change:opacity!important}.SkTVe,.iRxXV{opacity:1!important}.iRxXV{will-change:opacity!important}.vXhNJ{opacity:0!important;pointer-events:none!important}.PRs2u{color:var(--misc-button-icon-color)}.PRs2u:hover{background:var(--misc-button-hover-bg)}.PRs2u:active{background:var(--misc-button-active-bg);color:var(--misc-button-active-color)}.PRs2u{background:var(--misc-button-bg);border-radius:50%;cursor:pointer;overflow:hidden;position:relative;text-align:center;text-decoration:none;transition:color .15s ease,background .15s ease}.SC8TZ{opacity:.3;pointer-events:none}.ndNuf,.nstWU{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:1}.ndNuf{z-index:2}.icHQ0{display:flex}.hwtOd{flex:1 0 auto;margin-left:5px;text-align:right}.MudcX{cursor:pointer;margin:0 10px;padding:10px 0 4px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.MudcX .YTTWs{color:var(--app-color);font-size:22px;margin-top:3px;opacity:.7;position:absolute;right:0;top:50%;transform:translateY(-50%);transition:opacity .1s ease;will-change:opacity}.MudcX:hover .YTTWs{opacity:1}.gUc_7{box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:relative}.BrhQI{flex:0 0 auto}.D57o9{flex:1 1 auto;height:100%;overflow:hidden;position:relative}.KjF06{-webkit-overflow-scrolling:touch;bottom:0;left:0;overflow:auto;position:absolute!important;right:0;top:0}.EOaQm{align-items:center;cursor:pointer;display:flex;justify-content:center}.WRRyg{position:absolute;transform:translateX(-100%);transition:opacity .1s ease-in;z-index:1}.qjDbF,.sej3F{font-family:var(--code-font);white-space:pre}.YHF8J{position:relative}.Ue7my:before{content:attr(data-content);line-height:inherit}.YHF8J{color:transparent!important}.YHF8J:before,.qjDbF.Ue7my:before{font-family:var(--code-font);pointer-events:none;position:absolute}.YHF8J:before{background:var(--cm-tab-bg);background-position:100%;background-repeat:no-repeat;bottom:0;height:100%;left:0;line-height:normal;right:0;top:0}.sej3F{background:var(--cm-unknown-char-bg);color:var(--cm-unknown-char-color)}.iHZok,.qjDbF:before{color:var(--cm-whitespace-color)}.XMwPP{padding-right:1ch}html[data-theme=dark] .YHF8J:before{filter:invert(100%)}.M__Pz{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.M__Pz:focus{clip:auto!important;background-color:#eee;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}.WtMVB{background:var(--misc-button-bg);border-radius:3px;color:var(--app-color);padding:2px 6px;vertical-align:middle}.WtMVB:hover{background:var(--misc-button-hover-bg)}.WtMVB:active{background:var(--misc-button-active-bg);color:var(--misc-button-active-color)}.WtMVB svg{vertical-align:middle}.XdkXb{background:var(--primary-color);border-radius:3px;color:var(--app-contrast-color);font-size:.6rem;font-weight:700;padding:2px 5px;text-transform:uppercase;transition:opacity .2s ease-out;will-change:opacity}.jBOX8{opacity:1}.iHBIU{opacity:0}.djxIS{display:inline-block;font-size:1.2rem;font-weight:400;letter-spacing:-1px;line-height:1;text-transform:lowercase}.djxIS:hover{cursor:pointer;text-decoration:none}.djxIS:hover .kkc8H,.djxIS:hover .mNcTS{opacity:.7}.djxIS:hover .j_FSe{opacity:1}.j_FSe,.kkc8H,.mNcTS{color:var(--app-contrast-color);transition:opacity .1s ease;will-change:opacity}.kkc8H{font-size:.7rem}.j_FSe{opacity:.7}.SZppj{pointer-events:none}.a4ddH,.jm3JB{margin-left:8px;overflow:hidden;padding:2px 0;text-overflow:ellipsis;text-transform:lowercase;white-space:nowrap}.a4ddH{font-size:.8rem;text-decoration:none}.a4ddH .t1rej,.a4ddH .xfXAE{vertical-align:bottom}.a4ddH .t1rej:hover{text-decoration:underline}.xfXAE{margin-right:5px}.v_pM0{padding:0;position:relative}.v_pM0:hover{background:var(--misc-button-hover-bg)}.v_pM0:active{background:var(--misc-button-bg)}.CL1DJ{opacity:1;transition:opacity .2s ease-out;will-change:opacity;z-index:1001}.CL1DJ,.Uj2uD{bottom:0;left:0;position:absolute;right:0;top:0}.Uj2uD{align-items:center;background:var(--backdrop-bg);box-sizing:border-box;height:100%;justify-content:center;padding:20px}.Uj2uD,.pvMZe{display:flex;width:100%}.pvMZe{border-radius:3px;box-shadow:0 5px 30px var(--backdrop-box-shadow);color:var(--app-color);flex-direction:column;max-height:80vh;max-width:700px;min-height:425px;opacity:1;overflow:hidden;position:relative;transform:scale(1);transform-origin:center center;transition:transform .2s cubic-bezier(.6,.4,.2,1.4);-webkit-user-select:text;-moz-user-select:text;user-select:text;will-change:transform}.o1E1z{color:var(--app-contrast-color);cursor:pointer;font-size:1.4em;height:60px;opacity:.5;position:absolute;right:0;top:0;transition:opacity .1s ease-out;width:60px;z-index:1}.o1E1z:hover{opacity:.8}.o1E1z:active{opacity:1}.o1E1z .ghZGL{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.o1E1z.dIKNo{pointer-events:none}.UGBuq{opacity:0;will-change:transform,opacity}.UGBuq .pvMZe{transform:scale(.95)}.Mveik{opacity:1}.Mveik .pvMZe{pointer-events:none;transform:scale(1)}.T8Z3r{opacity:1}.T8Z3r .pvMZe{transform:scale(1)}.sAd7O{opacity:0;pointer-events:none}.sAd7O .pvMZe{transform:scale(.95)}.pIQMq{background:var(--primary-color);color:var(--app-contrast-color);flex:0 0 60px;font-weight:600;height:60px;line-height:60px;margin:0;padding:0 15px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.qC93k{background:var(--content-bg);flex:1 1 auto;height:100%;overflow-y:auto;padding:10px;position:relative}@supports (-moz-appearance:none){.qC93k:after{content:"";display:block;height:10px}}.xJ9FN{align-items:center;background:var(--bg-0);display:flex;flex:0 0 60px;height:60px;justify-content:flex-end;padding:0 15px;text-align:right}.KxTrS,.tjcDo{margin-right:10px}.tjcDo{color:var(--danger-color)}.GIfGY{font-size:.825rem;text-align:center}.GIfGY,.V0n59{margin:0 auto}.TnH56{margin-top:10px}.pWUrQ{word-wrap:break-word;font-size:.9rem;overflow:hidden;padding:10px;white-space:normal;word-break:break-word}.e4TKI{left:50%;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%)}.emNHs{margin:0 auto}.J0NvP{font-size:.9rem;margin-top:20px}.rZtsn{display:block;margin:5px auto}.Gceny{align-items:center;background:var(--primary-color);box-sizing:border-box;color:var(--app-contrast-color);display:flex;height:50px;padding:0 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.Gceny.V13Sk{padding-left:48px}.Gceny.wlvok{padding-right:48px}.YxYLF{display:flex;flex:2 0 0;justify-content:flex-end;overflow:hidden}@media (max-width:calc(350px - 1px)){.YxYLF *{display:none}}@media (max-width:410px) and (min-width:350px){.ZPud1{display:none}}.LTJnM{color:var(--header-twitter-color)}.paRbz{color:var(--header-donate-color)}.FRRzx{color:var(--header-sponsor-color)}.azy0N{color:var(--header-contact-color)}.h8KP1{color:var(--header-feedback-color)}.x0HyW{color:var(--header-wiki-color)}.OFFYM{color:var(--header-whatsnew-color)}.QzY4i{bottom:0;left:0;opacity:1;position:absolute;right:0;top:0;transition:opacity .5s ease-out;z-index:16}.sr6nN{pointer-events:none}.sNjVA{background:var(--bg-1);color:var(--app-color);height:100%;width:100%}.GwqPG,noscript{align-items:center;background:var(--bg-1);bottom:0;box-sizing:border-box;display:flex;flex-direction:column;font-size:1rem;font-weight:100;justify-content:center;left:0;margin:10px 0;overflow:auto;padding:0 10px;position:absolute;right:0;top:0;top:50px;-webkit-user-select:none;-moz-user-select:none;user-select:none}noscript{z-index:1}.RIMEV{margin-top:20px}.uKbj5{opacity:1}.xPMjQ{opacity:0;pointer-events:none}.tu7rF{align-items:center;cursor:pointer;display:flex;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.QTYb3{opacity:.3;pointer-events:none}.QTYb3,.QTYb3 *{color:inherit!important;font-weight:inherit!important}.WLU1r{align-items:center;box-sizing:border-box;color:var(--app-color);display:flex;flex:1 0 auto;position:relative;width:100%}.WLU1r:hover{background:var(--bg-0)}.WLU1r:active{background:var(--misc-button-active-bg);color:var(--misc-button-active-color)}.WLU1r.BcuOd{border-radius:3px;padding:5px 10px}.WLU1r.Sh1gL{border-bottom-right-radius:3px;border-top-right-radius:3px;padding:5px 10px 5px 20px}.WLU1r.k8lSR{border-bottom-left-radius:3px;border-top-left-radius:3px;padding:5px 20px 5px 10px}.FvZHv{flex:0 0 auto;line-height:1.25;margin-right:10px;text-align:center;width:15px}.rocdx{display:flex;flex:1 1 auto;overflow:hidden}.rocdx:not(:active):not(:hover) .zxc_j{color:var(--highlight-color)}.zxc_j{flex:0 0 auto;line-height:1.25;padding-left:5px;text-align:right}.wxNpu{font-weight:700}.u_Q0A{flex:1 1 auto;overflow:hidden;padding:1px 0;text-overflow:ellipsis;white-space:nowrap}.bjLBV{position:relative}.yEXrR{font-size:.825rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.xw3C1 .bjLBV{margin-left:10px}.BLlBg .bjLBV{margin-right:10px}.wcfss{margin-bottom:15px}.wHTes{font-weight:700}.QQcsx:not(:active),.XusZa:not(:active){color:var(--danger-color)}.QQcsx:not(:active):hover{background:var(--danger-color);border-bottom-right-radius:3px;border-top-right-radius:3px;color:var(--app-contrast-color)}.IC7U1{color:var(--misc-button-icon-color)}.IC7U1:hover{background:var(--misc-button-hover-bg)}.IC7U1:active{background:var(--misc-button-active-bg);color:var(--misc-button-active-color)}.IC7U1{border-radius:50%;height:16px;overflow:hidden;position:absolute;right:0;top:50%;transform:translateY(-50%);width:16px}.IC7U1:before{bottom:-5px;content:"";left:-5px;position:absolute;right:-5px;top:-5px}.IC7U1:not(:active){background:none;color:var(--label-color)!important}.PEVyC{width:100%}.iFPCp{background:var(--misc-button-bg);border-radius:3px;box-sizing:border-box;color:var(--app-color);display:inline-block;margin:0 5px 2px 0;padding:0 5px;transition:background .1s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none}.iFPCp.LNuoU:hover{background:var(--misc-button-hover-bg)}.iFPCp.LNuoU:active,.iFPCp.ociUu,.iFPCp.ociUu:hover{background:var(--misc-button-active-bg);color:var(--misc-button-active-color)}.iFPCp.EvQAt,.iFPCp.LNuoU{cursor:pointer}.iFPCp.LNuoU{max-width:204px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.iFPCp:hover .SOmBr{opacity:1}.sDfVp{font-size:.9rem;height:25px;line-height:25px}.k7DPw{font-size:.65rem;height:20px;line-height:20px}.i_U6u{align-items:center;display:flex;height:100%}.i_U6u .SOmBr{flex:0 0 auto;margin-left:4px;opacity:.8}.i_U6u .UfPXv{flex:1 1 auto}.e_47g{margin-bottom:-2px}.ECIrE,.EHJke{margin-bottom:20px;width:100%}.ECIrE:last-child,.EHJke:last-child{margin-bottom:0}.fyf3i{flex:0 0 auto;margin-left:10px}.GoqIP{flex:1 1 auto}.MPX5Z{align-items:center;display:flex}.b_UzD{opacity:1;transition:opacity .2s ease}.b_UzD.ICuz5{opacity:.5;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.LrAFA{align-items:center;background:var(--bg-1);bottom:0;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:1}.Tpbre{line-height:1.25;margin-top:10px}.BjqNv,.XXWwF{font-size:.825rem;margin-top:20px}.JySmX{margin-right:10px}.D7pB5{margin-top:20px}.xcnvY{background:var(--sub-content-bg);border:1px solid var(--content-border-color);border-radius:3px;box-sizing:border-box;height:100%;padding:0 10px 10px;width:100%}.JIZX7{align-items:center;background:var(--bg-1);border-bottom:1px solid var(--content-border-color);border-top-left-radius:3px;border-top-right-radius:3px;display:flex;margin:0 -10px 10px;padding:10px 10px 0}.KDcqY{border:1px solid transparent;border-bottom:0;border-top-left-radius:3px;border-top-right-radius:3px;cursor:pointer;display:inline-block;font-size:.8rem;line-height:35px;margin-bottom:-1px;padding:0 12px}.KDcqY:first-child{margin-right:5px}.KDcqY.hVcJX{background:var(--sub-content-bg);border-color:var(--content-border-color)}.hVcJX{-webkit-user-select:none;-moz-user-select:none;user-select:none}.tdkJ8{box-sizing:initial;overflow:hidden;padding:10px;z-index:1001}.zXY8d{z-index:1003}.NrXoa,.f6YSB{-webkit-overflow-scrolling:touch;overflow:auto}.f6YSB{background:var(--content-bg);border:1px solid var(--content-border-color);border-radius:3px;box-shadow:0 0 10px 3px var(--backdrop-box-shadow);box-sizing:border-box;color:var(--app-color);font-size:.825rem;max-height:inherit;min-width:120px;padding:5px 0;transform:translateY(0) scale(1);transition:opacity .25s ease-out,transform .25s cubic-bezier(.6,.4,.2,1.4);white-space:nowrap}.MpxoU,.NrZNZ{opacity:0}.NrZNZ{transform:translateY(-10px) scale(.95);transform-origin:center top}.MpxoU{transform:translateY(10px) scale(.95);transform-origin:center bottom}.uarNo{pointer-events:none;will-change:transform,opacity}.SSIhI,.uarNo{opacity:1;transform:translateY(0) scale(1)}.b8xoE,.oupK4{opacity:0;pointer-events:none}.oupK4{transform:translateY(10px) scale(.95)}.b8xoE{transform:translateY(-10px) scale(.95)}.TjiR_{box-sizing:border-box;color:var(--app-color);cursor:pointer;display:flex;padding:8px 20px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.TjiR_.roQ4U{opacity:.3;pointer-events:none}.TjiR_:hover{background:var(--misc-button-hover-bg)}.TjiR_:active,.TjiR_:active *{background:var(--misc-button-active-bg);color:var(--misc-button-active-color)}.TjiR_:not(:hover) .IQ0Dq{color:var(--highlight-color)}.i0q6u{flex:1 1 auto;margin-right:10px}.IQ0Dq{flex:0 0 auto}.IQ0Dq.Ung4t{visibility:hidden}.KMW6D{color:var(--label-color);font-weight:600;padding:8px 20px;text-transform:uppercase}.dYvK9{border-style:solid;border-bottom:0;border-color:var(--label-border-color);margin:5px 0}.sswmd{margin:0 10px}.sswmd:last-child{margin-right:0}@media (max-width:500px){.sswmd{margin:0}}.rYU7E{cursor:pointer;display:inline-block;font-size:.875rem;line-height:1;opacity:.5;transition:opacity .1s ease-out;white-space:nowrap}.rYU7E:hover{opacity:.8}.rYU7E:active{opacity:1}.HJfpj{padding:4px 5px}.wTcsC{margin-left:-5px}@media (max-width:500px){.rYU7E{font-size:.65rem}}.CHR_O{display:flex;flex-direction:row;justify-content:flex-end}.w0msh{background:var(--sub-content-bg)}.MafZJ{flex:1 1 auto}.YONkN{display:block;font-size:.825rem;margin-top:10px}.PhRac{position:relative}.FVje3,.w0msh{font-size:.8rem;line-height:1.45}.FVje3{height:200px;resize:vertical}.w0msh{-webkit-overflow-scrolling:touch;border-bottom:1px solid var(--label-border-color);border-top:1px solid transparent;bottom:0;left:0;overflow:auto;position:absolute;right:0;top:0;white-space:pre-wrap}.WQ5ax{margin-bottom:20px}._GCcL{opacity:1;transition:opacity .2s ease}._GCcL.sXKS3{opacity:.5;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tuaRV{font-size:.9rem;left:50%;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%);width:calc(100% - 120px)}.tuaRV p{margin:20px 0}.ns94K{color:var(--success-color);font-weight:600}.H7aJ9{margin:0}.GjCIr,.QokGJ,.ZmwNY{margin-right:10px}.QokGJ{color:var(--danger-color)}.GCjCg,.GavEV{margin-top:20px}.GCjCg{box-sizing:border-box;width:100%}.KroVF,.WaRxJ{text-align:center}.KroVF{align-items:center;display:flex;flex-direction:column;font-size:.875rem;font-weight:600;justify-content:center;line-height:1.5}.cLqcH{max-width:500px;min-height:250px}.IVPLo{flex:1 0 auto;font-weight:600;padding-left:5px;text-align:right;text-transform:none}.i8N8D{font-family:var(--code-font);font-weight:500}.Lta24{overflow:hidden;padding:1px 0;text-overflow:ellipsis;white-space:nowrap}.VZGjx:not(:active):not(:hover) .IVPLo{color:var(--highlight-color)}.sFanj{font-size:.83rem}.dyCRh{max-width:540px;min-height:350px}.HLkfc,.gYcOc{display:flex;flex-direction:column}.gYcOc{flex:1 1 auto;justify-content:center;line-height:1.4;padding:10px 10px 0;text-align:center}.gYcOc div{margin-top:10px}.gT9Zk{flex:0 0 auto}.CrJ1q,.EgtQt{text-align:center}.EgtQt{align-items:center;display:flex;flex-direction:column;font-size:.875rem;font-weight:600;justify-content:center;line-height:1.5}.LZ_87{max-width:500px;min-height:250px}.qxoBe{margin-bottom:15px}.Hp8EU{word-wrap:break-word;overflow-wrap:break-word;white-space:pre-wrap;word-break:break-word}.hvqpn{padding:10px 0}.hvqpn div{margin-top:20px}.hvqpn .A9fBo{box-sizing:border-box;width:100%}.VsHye:not(:active){color:var(--danger-color)}.VsHye:not(:active):hover{background:var(--danger-color);color:var(--app-contrast-color)}.zcg3R{margin-bottom:15px}.upLOL{margin:10px auto}.UPygB{margin-left:10px;text-align:center}.byHyj{bottom:10px;left:10px;right:10px;top:10px;transition:opacity 1s ease}.byHyj,.byHyj>*{position:absolute}.byHyj>*{left:50%;top:50%;transform:translate(-50%,-50%);width:100%}@media (prefers-reduced-motion:reduce){.byHyj{transition:opacity .2s ease}}.VUMXN{opacity:0;will-change:opacity}.WIk_o,.gGhok{opacity:1}.cQ7Yd{opacity:0;pointer-events:none}.jyUE5{line-height:1.4;padding:10px}.Di8kW,.jyUE5{position:relative}.Di8kW{height:55px}.M4byA{background:var(--primary-color);border-radius:3px 0;color:var(--app-contrast-color);font-size:.7rem;font-weight:600;left:0;padding:2px 6px;position:absolute;text-transform:uppercase;top:0}.M4byA .tSxrO{position:relative;z-index:1}.M4byA:after,.M4byA:before{background-color:initial;content:"";height:10px;position:absolute;width:10px;z-index:0}.M4byA:after{border-top-left-radius:6px;box-shadow:-6px 0 0 0 var(--primary-color);right:-10px;top:0}.M4byA:before{border-top-left-radius:6px;bottom:-10px;box-shadow:0 -6px 0 0 var(--primary-color);left:0}.EJDHZ,._gHmG{margin-top:10px;padding-top:10px}@keyframes eXFzV{0%{transform:translateX(-150px)}to{transform:translateX(100%)}}.EJDHZ{display:flex;pointer-events:none}.k0UBc{flex:0 0 auto;height:90px;margin-right:10px;width:120px}.IAz16{flex:1 1 auto}.IAz16 div{border-radius:3px;height:10px;margin-bottom:10px;width:100%}.IAz16 div:nth-child(3){width:80%}.IAz16 div,.k0UBc{background:var(--sub-content-bg);border-radius:3px;overflow:hidden;position:relative}.IAz16 div:before,.k0UBc:before{animation:eXFzV 1s cubic-bezier(.4,0,.2,1) infinite;background:linear-gradient(to right,transparent 0,var(--content-bg) 50%,transparent 100%);content:"";display:block;height:100%;position:absolute;top:0;transform:translateX(-150px);width:150px}.EJDHZ,.G3BCS{border-top:1px solid var(--label-border-color);margin:10px 0 5px;padding-top:10px}.Ct5Li{display:flex;font-size:.75rem}.Ct5Li img{background:var(--sub-content-bg);border-radius:3px;color:var(--sub-content-bg);flex:0 0 auto;font-size:0;margin-right:10px}.Ct5Li .tgFFz{flex:1 1 auto}.JLQ9d{bottom:3px;font-size:.6rem;font-variant:small-caps;left:10px;opacity:.8;position:absolute;text-transform:lowercase}.sM6Wv{max-width:550px;min-height:auto}.Q1PRl{color:var(--link-color)}.Q1PRl:hover{text-decoration:underline}.hv1JN p{font-size:.9rem;line-height:1.5;margin:10px 0;text-align:center}.RhnCb{background-position:50%;background-repeat:no-repeat;height:20px;width:100%}.duRSK{display:block;text-align:center}.duRSK .RhnCb{background-image:var(--doppler-sponsor-image);background-size:auto 16px}.uOmOI{-webkit-overflow-scrolling:touch;background:var(--bg-0);box-sizing:border-box;overflow:auto;padding:10px 0;width:50px}.eDcsT img{filter:grayscale(100%) opacity(70%);transition:filter .2s ease}._eLp0,.eDcsT{display:block;margin:0 auto 10px}.zOliV img{filter:none}._eLp0.zOliV{background:var(--misc-button-active-bg);color:var(--misc-button-active-color)}.k3zrI{height:28px;position:fixed;top:11px;width:28px;z-index:1}.k3zrI:hover{background:var(--misc-button-hover-bg)}.k3zrI:active{background:var(--misc-button-bg)}._wt32{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.wL3Ov{color:var(--app-contrast-color)}.MPQtP{background:var(--bg-1);bottom:0;box-sizing:border-box;color:var(--app-color);display:flex;flex-direction:column;left:0;position:absolute;top:50px;transform:translateX(0);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:280px}.AkJag{display:flex;flex:1 1 auto;margin-bottom:-2px;overflow:hidden;padding-bottom:2px}.i1N2B{border-bottom-right-radius:3px;flex:0 0 50px;margin-bottom:-1px}.ELopF{flex:0 0 auto;margin:0 10px 10px;text-align:center}.XNbml{flex:0 0 auto;font-size:.8rem;margin:10px}.ELopF,.XNbml,.hIvL6{background:var(--content-bg);border-radius:3px;box-shadow:0 1px 0 1px var(--content-box-shadow);z-index:1}.hIvL6{-webkit-overflow-scrolling:touch;box-sizing:border-box;flex:1 1 auto;margin:10px 10px 0;overflow:auto;padding:10px;position:relative}.hIvL6>div:last-child{margin-bottom:0}.cfODq{background:var(--primary-color);box-sizing:border-box;color:var(--app-contrast-color);flex:0 0 50px;height:50px;line-height:50px;padding:0 10px 0 48px;width:280px}.cek5f{background:var(--backdrop-bg);bottom:0;height:100%;left:0;opacity:1;position:absolute;right:0;top:0;transition:opacity .25s ease-in-out;width:100%;will-change:opacity;z-index:1000}.cek5f .MPQtP{box-shadow:0 5px 30px var(--backdrop-box-shadow);position:fixed;top:0;transition:transform .25s ease;width:280px}.cek5f .i1N2B{top:50px}.SjbhX{left:10px}.XZcdB{opacity:0;will-change:transform,opacity}.XZcdB .MPQtP{transform:translateX(-280px)}.Hf3vu{opacity:1;pointer-events:none}.Hf3vu .MPQtP{transform:translateX(0)}.LSp5h{opacity:1}.LSp5h .MPQtP{transform:translateX(0)}.rMyiN{opacity:0;pointer-events:none}.rMyiN .MPQtP{transform:translateX(-280px)}.ueGQi{background:var(--content-bg);border:1px solid var(--content-border-color);border-radius:3px;box-sizing:border-box;font-family:inherit;font-size:.83rem;line-height:1.35;outline:0;padding:10px;width:100%}.zOaGx{flex-direction:column;height:100%;margin:0 auto;max-width:1000px;width:100%}.vkmye,.zOaGx{display:flex;overflow:hidden}.vkmye{flex:1 1 auto;margin-bottom:10px}.kolUL{flex:0 0 auto;min-width:200px;padding-right:20px}.EHsbj{flex:2 1 auto}.tu4NX{word-wrap:break-word;-webkit-overflow-scrolling:touch;font-family:var(--code-font);max-height:100%;overflow:auto;overflow-wrap:break-word;position:relative;white-space:pre-wrap;word-break:break-word}.tu4NX code{line-height:1.3;margin:0;overflow:visible;padding:0}.UB_yQ{word-wrap:break-word;flex:0 0 auto;margin-bottom:10px;word-break:break-word}@media (max-width:900px){.vkmye{flex-direction:column;padding:0}.kolUL{flex:1 1 auto;margin-bottom:10px;padding:0}}.KRaGv{left:50%;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%)}.cvoeF{margin:0 auto 10px}.pWsZe{left:50%;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%)}.q_luf{margin:0 auto}._6fv9{font-weight:200;margin-top:20px}.LeB5S{align-self:center;flex:1 1 auto;text-align:center}.FAEdS{background:var(--backdrop-bg);bottom:0;left:0;position:absolute;right:0;top:0;z-index:1001}.oc96W{height:100%;margin:0 auto;max-width:1400px;max-width:min(calc(100% - 40px),1400px);width:100%}.Q0dmP{background:var(--bg-1);box-shadow:0 5px 30px var(--backdrop-box-shadow);color:var(--app-color);height:calc(100% - 60px);margin-top:60px;overflow:hidden;position:relative;width:100%}.OaNsb,.Q0dmP{border-top-left-radius:3px;border-top-right-radius:3px}.OaNsb{background:var(--primary-color);color:var(--app-contrast-color);font-weight:500;height:50px;left:0;line-height:50px;position:absolute;right:0;text-align:center;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.OaNsb h1{overflow:hidden;padding:0 50px;text-overflow:ellipsis;white-space:nowrap}.OaNsb .MGagp{cursor:pointer;height:50px;opacity:.5;position:absolute;right:0;top:0;transition:opacity .1s ease-out;width:50px;will-change:opacity}.OaNsb .MGagp:hover{opacity:.8}.OaNsb .MGagp:active{opacity:1}.OaNsb .MGagp .e1IQs{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.wy53k{-webkit-overflow-scrolling:touch;bottom:10px;box-sizing:border-box;left:0;overflow:auto;padding:0 10px;position:absolute;right:0;top:60px;-webkit-user-select:text;-moz-user-select:text;user-select:text}.luWMx{opacity:0}.luWMx .Q0dmP{opacity:0;transform:translateY(15%)}.xYbLs{opacity:1}.xYbLs .Q0dmP{opacity:1;pointer-events:none;transform:translateY(0)}.d0ccR{opacity:1}.d0ccR .Q0dmP{transform:translateY(0)}.CZqGt{opacity:0;pointer-events:none}.CZqGt .Q0dmP{transform:translateY(15%)}.CZqGt,.xYbLs{transition:opacity .3s ease;will-change:opacity;z-index:1001}.CZqGt .Q0dmP,.xYbLs .Q0dmP{transition:transform .3s cubic-bezier(.135,.45,.47,.905),opacity .3s cubic-bezier(.135,.45,.47,.905);will-change:transform,opacity}.Kmeux{cursor:ew-resize;pointer-events:auto;transition:background .2s ease-out;z-index:10}.Kmeux:after{bottom:0;content:"";left:-2px;padding:4px;position:absolute;right:0;top:0}.Kmeux:hover{background:var(--primary-color)}.Kmeux:active{background:var(--primary-contrast-color)}.PngQi{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.IPjTl{background:var(--bg-1);box-sizing:border-box;display:flex;flex-direction:column;float:right;height:100%;max-width:50vw;padding:10px;position:relative;width:50%}@media (max-width:2200px){.IPjTl{width:40%}}.RyQaE{bottom:0;left:-2px;position:absolute;top:-1px;width:4px}.NjK4I{border-left:4px solid transparent;border-right:4px solid transparent;border-top:6px solid var(--app-color);display:inline-block;height:0;opacity:.5;transition:transform .1s ease,opacity .1s ease;vertical-align:middle;width:0}.NjK4I.qtFSJ{transform:rotate(-90deg)}.UHIuh{overflow:hidden}.eZsI3{display:flex;flex-direction:row}.UF5u5{margin-left:15px}.UF5u5.qtFSJ{height:0}.ng0cj{align-self:flex-start;box-sizing:initial;cursor:pointer;flex:0 0 15px;float:left;margin:-10px;padding:10px;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:15px}.ng0cj:focus{outline-offset:-12px!important}.ng0cj:hover .NjK4I{opacity:1}.gJDSD{--mix-color:transparent 85%;background:none;border-bottom:2px solid transparent;margin-bottom:-2px}@supports not (background:color-mix(in oklab,red,blue)){.gJDSD{color:var(--app-color)!important}}.YmAvV.bb6Pd{background:none!important;border-bottom:2px solid;color:var(--app-color);margin-bottom:-2px}.BKf2X,.BuckL,.Bzxfi,.DsO3D,.HR7qQ,.Im6LO,.LEd3h,.MnwcL,.Ptqb6,.WDFFo,.aZNG2,.bSq9j,.r2GH2,.w_XEF,.xj8ZQ,.yyE4U{font-weight:500}.aZNG2{background:var(--token-quote-bg);color:var(--token-quote-color)}.aZNG2.gJDSD{background:color-mix(in oklab,var(--token-quote-bg),var(--mix-color));border-color:var(--token-quote-bg)}.DsO3D,.LEd3h,.yyE4U{background:var(--token-meta-bg);color:var(--token-meta-color)}.DsO3D.gJDSD,.LEd3h.gJDSD,.yyE4U.gJDSD{background:color-mix(in oklab,var(--token-meta-bg),var(--mix-color));border-color:var(--token-meta-bg)}.HR7qQ{background:var(--token-escaped-string-bg);color:var(--token-escaped-string-color)}.HR7qQ.gJDSD{background:color-mix(in oklab,var(--token-escaped-string-bg),var(--mix-color));border-color:var(--token-escaped-string-bg)}.Im6LO,.PQ94p{background:var(--token-char-class-bg);color:var(--token-char-class-color)}.Im6LO.gJDSD,.PQ94p.gJDSD{background:color-mix(in oklab,var(--token-char-class-bg),var(--mix-color));border-color:var(--token-char-class-bg)}.Im6LO.HR7qQ,.Im6LO.Im6LO,.Im6LO.LEd3h,.Im6LO.yyE4U,.PQ94p.HR7qQ,.PQ94p.Im6LO,.PQ94p.LEd3h,.PQ94p.yyE4U{background:var(--token-char-class-meta-bg)}.Im6LO.HR7qQ.gJDSD,.Im6LO.Im6LO.gJDSD,.Im6LO.LEd3h.gJDSD,.Im6LO.yyE4U.gJDSD,.PQ94p.HR7qQ.gJDSD,.PQ94p.Im6LO.gJDSD,.PQ94p.LEd3h.gJDSD,.PQ94p.yyE4U.gJDSD{background:color-mix(in oklab,var(--token-char-class-meta-bg),var(--mix-color))}.Im6LO.HR7qQ.bb6Pd,.Im6LO.Im6LO.bb6Pd,.Im6LO.LEd3h.bb6Pd,.Im6LO.yyE4U.bb6Pd,.PQ94p.HR7qQ.bb6Pd,.PQ94p.Im6LO.bb6Pd,.PQ94p.LEd3h.bb6Pd,.PQ94p.yyE4U.bb6Pd{border-color:var(--token-char-class-meta-bg)}.Bzxfi{background:var(--token-inline-modifiers-bg);color:var(--token-inline-modifiers-color)}.Bzxfi.gJDSD{background:color-mix(in oklab,var(--token-inline-modifiers-bg),var(--mix-color));border-color:var(--token-inline-modifiers-bg)}.BKf2X{background:var(--token-verb-bg);color:var(--token-verb-color)}.BKf2X.gJDSD{background:color-mix(in oklab,var(--token-verb-bg),var(--mix-color));border-color:var(--token-verb-bg)}.xj8ZQ{background:var(--token-subpattern-reference-bg);color:var(--token-subpattern-reference-color)}.xj8ZQ.gJDSD{background:color-mix(in oklab,var(--token-subpattern-reference-bg),var(--mix-color));border-color:var(--token-subpattern-reference-bg)}.r2GH2{background:var(--token-backreference-bg);color:var(--token-backreference-color)}.r2GH2.gJDSD{background:color-mix(in oklab,var(--token-backreference-bg),var(--mix-color));border-color:var(--token-backreference-bg)}.Ptqb6{background:var(--token-group-0-bg);color:var(--token-group-0-color)}.Ptqb6.gJDSD{background:color-mix(in oklab,var(--token-group-0-bg),var(--mix-color));border-color:var(--token-group-0-bg)}.MnwcL{background:var(--token-group-1-bg);color:var(--token-group-1-color)}.MnwcL.gJDSD{background:color-mix(in oklab,var(--token-group-1-bg),var(--mix-color));border-color:var(--token-group-1-bg)}.bSq9j{background:var(--token-group-2-bg);color:var(--token-group-2-color)}.bSq9j.gJDSD{background:color-mix(in oklab,var(--token-group-2-bg),var(--mix-color));border-color:var(--token-group-2-bg)}.WDFFo{background:var(--token-group-3-bg);color:var(--token-group-3-color)}.WDFFo.gJDSD{background:color-mix(in oklab,var(--token-group-3-bg),var(--mix-color));border-color:var(--token-group-3-bg)}.yU1q9{background:var(--token-comment-bg);color:var(--token-comment-color);font-style:italic}.yU1q9.gJDSD{background:color-mix(in oklab,var(--token-comment-bg),var(--mix-color));border-color:var(--token-comment-bg)}.w_XEF{background:var(--token-error-bg)!important;color:var(--token-error-color)!important}.w_XEF.gJDSD{background:color-mix(in oklab,var(--token-error-bg),var(--mix-color))!important;background:none!important;border-color:var(--token-error-bg);color:var(--app-color)!important}.OFUcl,.OFUcl *{background-color:var(--token-highlight-bg)!important;color:var(--token-highlight-color)!important}.kUV2_{border-left:1px solid;margin-left:-1px}.qlnVF{border-right:1px solid;margin-right:-1px}.kG5eN{border-left:2px solid;margin-left:-2px}.u8QII{border-right:2px solid;margin-right:-2px}.Hkx_o,.kUV2_,.qlnVF{border-bottom:1px solid;border-top:1px solid;margin-bottom:-1px;margin-top:-1px;z-index:1}.PqJSq,.kG5eN,.u8QII{border-bottom:2px solid;border-top:2px solid;margin-bottom:-2px;margin-top:-2px;z-index:2}.Hkx_o,.PqJSq,.kG5eN,.kUV2_,.qlnVF,.u8QII{border-color:var(--token-mouseover-border-color)!important;position:relative}.Hkx_o .gJDSD,.PqJSq .gJDSD,.kG5eN .gJDSD,.kUV2_ .gJDSD,.qlnVF .gJDSD,.u8QII .gJDSD{border:none;margin:0}.LJQ1R,.cWCLz{position:relative;z-index:2}.LJQ1R .gJDSD,.cWCLz .gJDSD{border:none;margin:0}.cWCLz{outline:2px solid var(--token-mouseover-border-color)}.LJQ1R{outline:1px solid var(--token-mouseover-border-color)}@-moz-document url-prefix(){.PqJSq:before{top:50%;transform:translateY(-50%)}}.T0laQ{word-wrap:break-word;overflow-wrap:break-word;white-space:pre-wrap;word-break:break-word}.GedSw,.KrSXE,.KzUpc,.T0laQ,.d_MyJ,.hZ6T9,.xq9Cm{font-family:var(--code-font);white-space:pre-wrap}.KzUpc{border-right:2px dotted #dc00ff;margin-right:2px;overflow:hidden;padding-left:2px}.GedSw,.d_MyJ{font-weight:500}.Vsdwm{text-decoration:line-through}.fOhwT{cursor:help;display:inline-block;margin-left:5px;opacity:.5}.fOhwT .W6jS6{vertical-align:middle}.fOhwT:hover{opacity:1}.GedSw{color:var(--explanation-keyword-color)}.T0laQ{background:var(--explanation-token-bg);color:var(--explanation-token-color)}.xq9Cm{background:var(--explanation-plain-text-bg)}.d_MyJ{color:var(--explanation-flag-color)}.aBAKk{color:var(--highlight-color)}.N3KUM,.uNm38,.zlDez{word-wrap:break-word;overflow-wrap:break-word;white-space:pre-wrap;word-break:break-word}.N3KUM,.zlDez{display:inline-block;vertical-align:top}.N3KUM.bF_Mj{font-weight:700}.N3KUM.bF_Mj>div{font-weight:400}.uNm38,.zlDez{font-family:var(--code-font)}.N3KUM{flex:1 1 auto}.L79o3{border-bottom:2px dashed var(--label-border-color);margin-bottom:5px;padding-top:5px}.mBF1Z{background:var(--explanation-plain-text-bg)}.NC6ky{word-wrap:break-word;display:flex;font-family:var(--code-font);line-height:1.5;max-width:calc(100% - 20px);overflow-wrap:break-word;white-space:pre-wrap;word-break:break-word}.kevho{flex:0 1 auto;min-width:0}.XsOAS{color:var(--app-color-metadata);flex:0 0 auto}.XsOAS.taqI9{padding-right:5px}.XsOAS.V9YRK{padding:0 5px}.m1_F1{color:var(--highlight-color);flex:0 0 auto}.AOv9F{color:var(--app-color-metadata)}.IrE8B{-webkit-overflow-scrolling:touch;font-size:.9rem;line-height:1.5;overflow:auto;overflow-x:hidden}.amvtn{word-wrap:break-word;min-width:120px;overflow-wrap:break-word;padding:8px 0 8px 8px;white-space:pre-wrap;width:100%;word-break:break-word}.amvtn em{color:var(--app-color-metadata)}.MjTIZ{cursor:pointer}.aSQIC{font-style:italic;opacity:.5}.TrT00{overflow:hidden;padding:8px 0;text-overflow:ellipsis}.TrT00.N9b7Q{cursor:pointer}.TrT00.N9b7Q:hover span{border-color:var(--match-highlight-color)!important}.CPj3q{border-right:1px solid;border-color:var(--label-border-color);color:var(--app-color-metadata);overflow:hidden;padding:8px 8px 8px 16px;text-overflow:ellipsis}.CPj3q,.TrT00{white-space:nowrap}.fxJfD{font-weight:500}.IoDqL:nth-child(2n){background:var(--content-alternating-bg)}.Q8YiL{border-bottom:5px solid;padding:0 4px}.BX3FE{border-color:var(--match-group-0)}.znTgg{border-color:var(--match-group-1)}.v1n1J{border-color:var(--match-group-2)}.CXLa2{border-color:var(--match-group-3)}.nmqJh{border-color:var(--match-group-4)}.T_XLc{border-color:var(--match-group-5)}.m94jE{border-color:var(--match-group-6)}.KzxFx{border-color:var(--match-group-0-alt)}.dftGW{border-color:var(--match-group-1-alt)}.GDx0h{border-color:var(--match-group-2-alt)}.zOJvb{border-color:var(--match-group-3-alt)}.EMlAx{border-color:var(--match-group-4-alt)}.heE6F{border-color:var(--match-group-5-alt)}.UpMUh{border-color:var(--match-group-6-alt)}.YXXyK{border-bottom:1px solid var(--label-border-color);margin-bottom:5px;padding-bottom:5px}.EFPn1{border-collapse:initial;border-spacing:0 5px;table-layout:auto;width:100%}.b62Ye{-webkit-overflow-scrolling:touch;font-family:var(--code-font);height:100%;overflow:auto;position:relative}.FfuRb,.IRvGa{margin-top:10px}.IRvGa{display:block}.LLQ0z{overflow:auto}.LLQ0z,.muBVf{color:var(--danger-color)}.luECo{cursor:pointer;display:block;font-size:.83rem;margin-bottom:10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.luECo:last-of-type{margin-bottom:0;padding-bottom:0}.luECo:after{clear:both;content:"";display:table}.luECo input{float:left;margin-right:5px}.icDzB{height:100%;max-height:600px;max-width:900px}.xTEgj{bottom:10px;display:flex;left:10px;position:absolute;right:10px;top:10px}.uzmGU{-webkit-overflow-scrolling:touch;background:var(--sub-content-bg);flex:1 1 auto;font-family:var(--code-font);line-height:1.3;overflow:auto;position:relative;white-space:pre}.zES36{display:flex;flex-direction:column;height:100%;overflow:hidden}.NgTKU{flex:0 0 auto;padding-top:5px;vertical-align:middle}@media (min-width:900px){.xTEgj{flex-direction:row}.CtTH_{flex:1 1 auto}.Nt7kG{flex:0 0 auto;min-width:175px;padding-right:20px}}@media (max-width:900px){.xTEgj{flex-direction:column}.CtTH_{flex:3 1 auto;margin-top:10px}.Nt7kG{flex:1 1 auto}}.eUlm1{align-items:center;background:var(--misc-button-bg);border-radius:3px;color:var(--app-color);cursor:pointer;display:flex;padding:6px 8px;white-space:nowrap}.eUlm1:hover{background:var(--misc-button-hover-bg)}.eUlm1:hover .YIKin{margin-right:5px;max-width:150px}.eUlm1:active{background:var(--misc-button-active-bg);color:var(--misc-button-active-color)}.YIKin{display:inline-block;max-width:0;overflow:hidden;transition:max-width .1s ease}._0eAtQ{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.P3VvM{background:var(--content-bg);border-radius:3px;box-shadow:0 1px 0 1px var(--content-box-shadow);flex-basis:calc(100% - 10px);flex:1 0 calc(33.333% - 10px);font-size:.9rem;transition:flex .25s ease;will-change:flex}@media (prefers-reduced-motion:reduce){.P3VvM{transition:none}}.fpGbf{transition:border-color .25s ease}.a0ZUJ>div{bottom:10px;left:10px;position:absolute;right:10px;top:7px}.Z1_qK{flex:0 1 37px;min-height:37px}.Z1_qK .fpGbf{border-color:transparent}.Z1_qK .a0ZUJ{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.DIFDZ{margin-bottom:10px}.KwIMW{background:var(--bg-1);border-left:1px solid var(--sidebar-border-color);bottom:0;box-shadow:-3px 0 10px -5px rgba(0,0,0,.35);box-shadow:0 5px 30px var(--backdrop-box-shadow);color:var(--app-color);opacity:1;position:fixed;right:0;top:0;transition:all .25s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:85vw;will-change:opacity,transform;z-index:2}.Vg44D{right:10px}.NtTXe{z-index:1000}.NtTXe,.jJmso{bottom:0;left:0;position:absolute;right:0;top:0}.jJmso{background:var(--backdrop-bg);height:100%;opacity:1;transition:opacity .25s ease-in-out;width:100%;will-change:opacity;z-index:1}.CsAbs .KwIMW,.CsAbs .jJmso{opacity:0}.CsAbs .KwIMW{transform:translateX(100vw)}._lvMT .KwIMW,._lvMT .jJmso{opacity:1;pointer-events:none}._lvMT .KwIMW{transform:translateX(85vw)}.mpimk .KwIMW,.mpimk .jJmso{opacity:1}.mpimk .KwIMW{transform:translateX(85vw)}.CTDda .KwIMW,.CTDda .jJmso{opacity:0;pointer-events:none}.CTDda .KwIMW{transform:translateX(100vw)}.uYpkX{background:var(--content-bg);border-radius:3px;bottom:10px;box-shadow:0 1px 0 1px var(--content-box-shadow);box-sizing:border-box;display:flex;flex-direction:column;font-size:.9rem;left:60px;padding:10px;position:absolute;right:10px;top:10px}.MY46R{-webkit-overflow-scrolling:touch;flex:1 1 auto;overflow:auto;overflow-x:hidden;position:relative;-webkit-user-select:text;-moz-user-select:text;user-select:text}.F61ks{flex:0 0 auto}.JPMcE{align-items:center;background:var(--bg-0);box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:10px 0;width:50px}.JPMcE .Cikzv{background:var(--misc-button-active-bg);color:var(--misc-button-active-color)}.CoQ5Y{color:var(--misc-button-icon-color);margin-bottom:10px}.CoQ5Y:last-of-type{margin-bottom:0}.eFWYj{color:var(--danger-color);font-weight:600;margin-bottom:10px}.sdZCP{align-items:center;display:flex}.qI7UZ{cursor:pointer;flex:0 0 auto;font-size:0;opacity:.7;padding:2px 5px;text-align:center;transition:opacity .1s ease}.qI7UZ:hover{opacity:1}.qI7UZ:active{filter:brightness(130%)}.tfiLD{opacity:.3;pointer-events:none}.eoxGV:hover{color:var(--danger-color)}.QChMj{color:var(--highlight-color);font-family:var(--code-font);font-size:.825rem}._mdci{background:var(--sub-content-bg);border-left:5px solid transparent;border-radius:3px;display:flex;margin-bottom:10px;padding:4px 10px 4px 1px;transition:border .1s ease}._mdci.RRgDA{border-color:var(--success-color)}._mdci.wdfE9{border-color:var(--danger-color)}.CIpAk{display:flex;flex:0 0 auto;padding:6px 0 6px 6px}.CIpAk svg{opacity:.7}.CIpAk:hover svg{opacity:1}.CIpAk:active svg{opacity:.9}.bjIoO{display:flex;flex:1 1 auto}.bjIoO .zr88s{align-self:center;flex:1 1 auto;margin-top:-2px;padding:6px}.oLvlF{flex:1 1 auto;margin:0 0 6px}.oLvlF .W7b7u,.oLvlF .mbbk1,.oLvlF .zr88s{border:0;box-sizing:border-box;color:inherit;display:block;padding:6px;resize:vertical;width:100%}.oLvlF .W7b7u{margin:10px 0}.oLvlF .zr88s{background:var(--sub-content-bg);border-bottom:1px solid var(--label-border-color);flex:1 1 auto}.oLvlF .W7b7u,.oLvlF .zr88s{margin-bottom:10px}.oLvlF .mbbk1{margin-top:10px}.oLvlF .nwj_2{display:flex}.oLvlF .MwoOx{border-top:1px solid var(--label-border-color);margin-top:10px;padding:6px 6px 0 0}.oLvlF .W7b7u,.oLvlF .mbbk1{background:var(--input-bg);border:1px solid var(--input-border-color)}.FHCCK{align-self:flex-start;flex:0 0 auto;margin:8px 0 0 5px}.FHCCK.RRgDA{color:var(--success-color)}.FHCCK.wdfE9{color:var(--danger-color)}.n3dVL{align-self:flex-start;flex:0 0 auto;margin-left:5px;padding-top:4px}.zr88s{font-family:var(--app-font);font-size:.875rem}.W7b7u,.mbbk1{border-radius:3px;font-family:var(--code-font);font-size:.825rem}.L5b8E,.fo_Hl{padding:0 6px}.GuvgB{-webkit-overflow-scrolling:touch;border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0;bottom:55px;left:0;overflow:auto;position:absolute;right:0;top:0}.GuvgB>:last-child{margin-bottom:0}.Yz_VU{font-weight:700;text-decoration:underline}.llECe{cursor:pointer;opacity:.7;padding:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.llECe:hover{opacity:1}.llECe:active{opacity:.8}.bc_U_{background:var(--sub-content-bg);border:1px solid var(--content-border-color);border-bottom-left-radius:3px;border-bottom-right-radius:3px;bottom:0;height:55px;padding:0 10px;right:0;text-align:right;z-index:10}.W3HLH,.bc_U_{left:0;position:absolute}.W3HLH{background:var(--primary-color);height:3px;top:-3px}.bzSeP{align-items:center;display:flex;flex-direction:row;height:100%;overflow:hidden;white-space:nowrap}.bzSeP .llbAo{flex:0 0 auto}.bzSeP .cfrN_{flex:1 1 auto;text-align:right}.KuRpm{margin-left:10px}.Av0Zr{bottom:0;display:flex;flex-direction:column;font-size:.8rem;left:0;position:absolute;right:0;top:0}.YXYOI{flex:1 1 auto;overflow-y:auto;position:relative}.esMAk{display:flex;flex:0 0 auto}.BIsZ6,.ceywG{flex:1 1 auto;text-align:right;text-transform:none}.BIsZ6{color:var(--success-color)}.ceywG{color:var(--danger-color)}.A6o5R,.E2csr{background-repeat:no-repeat;text-decoration:inherit}.E2csr{background-image:var(--cm-tab-bg);background-position:100%}.A6o5R{background-image:var(--cm-whitespace-bg);background-position:50%;background-size:50%}.b7jim{background:var(--cm-unknown-char-bg);color:var(--cm-unknown-char-color)}.h6ohF{color:var(--cm-whitespace-color);pointer-events:none}.cm-editor{background:transparent;color:var(--app-color);cursor:text;direction:ltr;height:100%;line-height:1.6em}.cm-editor .cm-selectionBackground{background:var(--cm-inactive-selected-bg);transition:background .1s ease}.cm-editor .cm-content:focus,.cm-editor.cm-focused{outline:none!important}.cm-editor .cm-content:focus .cm-selectionBackground,.cm-editor.cm-focused .cm-selectionBackground{background:var(--cm-selected-bg)!important}.cm-editor .cm-content{caret-color:var(--app-color)!important;padding:2px 0}.cm-editor .cm-line{padding:0 2px}.cm-editor .cm-cursor{border-color:var(--app-color);margin-left:.1px}.cm-editor .cm-gutters{background:var(--bg-1);border-bottom-left-radius:3px;border-right-color:transparent;border-top-left-radius:3px;color:var(--app-color-metadata);margin-right:5px}.cm-editor .cm-placeholder{color:var(--app-color);opacity:.5}.cm-editor .cm-scroller{overscroll-behavior:none}.cm-editor .cm-content,.cm-editor .cm-gutters,.cm-editor .cm-line,.cm-editor .cm-placeholder,.cm-editor .cm-scroller{font:inherit}.cm-editor .cm-content,.cm-editor .cm-line,.cm-editor .cm-scroller{color:inherit}html[data-theme=light] .cm-cursor{box-shadow:1px 0 0 0 hsla(0,0%,100%,.5)}html[data-theme=dark] .cm-cursor{box-shadow:1px 0 0 0 rgba(0,0,0,.5)}.Cfg7u{pointer-events:none;position:absolute;transition:opacity .1s ease,transform .1s ease;z-index:1002}.Cfg7u span[data-whitespace=true]{color:var(--cm-whitespace-color)!important;filter:invert(1)}.y4yFm{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:var(--tooltip-bg);border-radius:3px;box-shadow:0 4px 10px 0 #00000059;color:var(--tooltip-color);font-size:.9rem;max-width:325px;padding:8px 12px;text-decoration:none}.qzFlS{border:5px solid transparent;border-top:5px solid var(--tooltip-bg);height:0;left:50%;margin-left:-5px;pointer-events:none;position:relative;width:0}.vPQc6{opacity:0;will-change:opacity}.DF_iI,.d5Sb2{opacity:1}.DF_iI{transform:scale(1);will-change:opacity,transform}.cgJc2{opacity:0;transform:scale(.9)}.fnwkx{word-wrap:break-word;line-height:1.3em;pointer-events:none;white-space:pre-wrap;word-break:break-word}.fnwkx *{background:none!important;color:inherit!important}.G9G7z{font-family:var(--code-font);font-size:.9rem;text-align:center}.LEmfz{cursor:pointer;font-weight:700;opacity:.5;padding:6px 0 6px 8px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.LEmfz:hover{opacity:1}.LEmfz.bwhBe{pointer-events:none}.LEmfz.bwhBe .eb03W{display:none}.RW_5t{align-items:center;display:flex;padding:4px 4px 4px 0}.COW0E{width:155px}.COW0E div{color:var(--app-color-metadata);font-size:.75rem;padding-top:3px;white-space:pre-wrap}.AhIEh,.ZsQZ7:not(:hover):not(:active) strong{color:var(--highlight-color)}.AhIEh{cursor:pointer;flex:1 0 auto;outline:0;padding:6px 4px 6px 0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.AhIEh:hover{color:var(--app-color)}.AhIEh .bcp8d{display:inline-block;margin:0 3px;outline:0;resize:none}.lqj6M{align-items:baseline;display:flex;padding:4px}.n9qI6{color:var(--app-color);font-weight:700;opacity:.5}.cO83v{background:var(--input-bg);border:1px solid var(--input-border-color);border-radius:3px;box-sizing:border-box;display:flex;flex-direction:row;font-family:inherit;font-family:var(--code-font);font-size:.95rem;max-height:30vh;outline:0;padding:0;transition:all .2s ease;transition-property:border-color,box-shadow,background;width:100%}.cO83v.KkBJC{border-color:var(--input-focused-border-color);box-shadow:var(--input-focused-box-shadow)}.OkWyQ{color:var(--misc-button-icon-color)}.OkWyQ:hover{background:var(--misc-button-hover-bg)}.OkWyQ:active{background:var(--misc-button-active-bg);color:var(--misc-button-active-color)}.OkWyQ{border-bottom-right-radius:3px;border-left:1px solid var(--label-border-color)!important;border-top-right-radius:3px;cursor:pointer;flex:1 0 auto;padding:0 12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.OkWyQ.Si8g5{opacity:.3}.T886D{flex:1 1 100%;min-width:140px;padding:4px 0}.Br6dk,.odN4_{color:var(--app-contrast-color);display:block;margin-left:5px}.Br6dk:hover,.odN4_:hover{text-decoration:none}.Br6dk{background:var(--bg-0);box-shadow:0 0 0 3px var(--bg-0);position:absolute;right:0;top:0}.J9uy0{border-radius:3px;font-size:.725rem;font-weight:500;padding:3px 5px;text-transform:lowercase}.zM5RE{background:var(--match-indicator-no-match);color:var(--app-color)}.iRqgt .J9uy0:hover{background:var(--misc-button-hover-bg)}.iRqgt .J9uy0:active{background:var(--misc-button-active-bg);color:var(--misc-button-active-color)}.Z8VZM{background:var(--match-indicator-match-bg)}.JFyYg{background:var(--match-indicator-error-bg)}.JFyYg,.Z8VZM{color:var(--app-contrast-color)}.Jfsx5{color:inherit;margin-left:5px;vertical-align:middle}.Z8VZM{font-weight:600}.I7e3C{font-weight:500}.Mr8Af{max-height:50vh}.NRMSt{align-items:center;display:flex;padding:8px 20px}.XKeHF{flex:1 1 auto}.JVYN7{flex:0 0 auto}.YZA2N{position:relative}.XjlwO{background:var(--bg-0);box-shadow:0 0 0 3px var(--bg-0);display:flex;position:absolute;right:0;top:0}.CwApB{margin-left:5px}.Th_7x{font-family:var(--code-font);line-height:1.3;min-width:100px;pointer-events:none}.rameg{border-bottom:1px solid var(--tooltip-border-color);margin-bottom:5px;padding-bottom:5px}._sUW4,.rameg{font-weight:700}.p5UZM{word-wrap:break-word;overflow-wrap:break-word;white-space:pre-wrap;word-break:break-word}.p5UZM span{color:inherit}.MF2Zl{left:0;opacity:1;position:absolute;top:0;transition:opacity .25s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.MF2Zl.PepZ_{opacity:0;transition-duration:0s;will-change:opacity}.LODXi .cm-selectionBackground{background:var(--match-highlight-color)!important}.of6uh{display:flex;flex:1 1 auto;flex-direction:column;height:0;overflow:hidden}.of6uh .cm-content,.of6uh .cm-line{padding:0}.Pk2Mn{bottom:0;left:0;padding:5px;position:absolute;right:0;top:0;z-index:2}.s6TnK{background:var(--input-bg);border:1px solid var(--input-border-color);border-radius:3px;box-sizing:border-box;flex:1 0 auto;font-family:inherit;font-family:var(--code-font);font-size:.95rem;outline:0;overflow:hidden;padding:5px;position:relative;transition:all .2s ease;transition-property:border-color,box-shadow,background;width:100%}.s6TnK.AH8pc{border-color:var(--input-focused-border-color);box-shadow:var(--input-focused-box-shadow)}@media (max-height:500px){.qFwsQ{flex:0 1 auto;overflow:hidden}}.llpmv{flex:0 0 auto;position:relative}.uP9GB{display:flex;flex:1 1 auto;flex-direction:column-reverse;height:100%;overflow:hidden}.Pgoeh{background:var(--input-bg);border:1px solid var(--input-border-color);border-radius:3px;box-sizing:border-box;flex:0 0 auto;font-family:inherit;font-family:var(--code-font);font-size:.95rem;margin-bottom:5px;outline:0;padding:5px;resize:none;transition:all .2s ease;transition-property:border-color,box-shadow,background;width:100%}.Pgoeh.Vnkit{border-color:var(--input-focused-border-color);box-shadow:var(--input-focused-box-shadow)}.iuWEc{word-wrap:break-word;-webkit-overflow-scrolling:touch;background:var(--input-disabled-bg);border:1px solid var(--content-border-color);border-color:var(--input-border-color);border-radius:3px;flex:1 1 auto;font-family:inherit;font-family:var(--code-font);font-size:.95rem;line-height:1.4em;outline:0;overflow:auto;overflow-wrap:break-word;padding:5px;resize:none;transition:all .2s ease;transition-property:border-color,box-shadow,background;white-space:pre-wrap;width:100%;word-break:break-word}.AUc0W,.iuWEc{box-sizing:border-box;height:100%;position:relative}.AUc0W{display:flex;flex-direction:column;overflow:hidden;padding:10px}.rjodX{flex:0 0 auto;margin-bottom:10px}.f9BbV{flex:1 1 auto;overflow:hidden;position:relative}.F69Q6{bottom:0;left:0;position:absolute;right:0;top:0}.F69Q6,.kPafO{display:flex;flex-direction:column}.kPafO{flex:1 1 auto;margin-bottom:0;margin-top:10px;max-height:50%;position:relative}@media (max-height:500px){.kPafO{margin-top:0;max-height:100%}}.Lc3cW{height:auto;max-height:100%;max-width:450px}.cGBV0{background:var(--misc-button-bg);border-radius:3px;display:inline-block;padding:3px 6px;text-align:center}.Ooj_l{font-size:.9rem;margin:0 auto}.Ooj_l th{border-bottom:1px solid var(--label-border-color);font-weight:600;line-height:30px}.Ooj_l .iXeHu{text-align:left}.Ooj_l .P07mv{text-align:center;width:100px}.Ooj_l tbody:before{color:transparent;content:"-";display:block;line-height:1em}.tt9uJ{height:35px}.wE5nz{padding-right:4px;text-align:center;white-space:nowrap}.bkz2q,.wMRs6{bottom:0;left:0;position:absolute;right:0;top:0}.wMRs6{align-items:center;display:flex;justify-content:center}.PMAGi{opacity:.8;padding:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.J4QnP,.PMAGi:active,.PMAGi:hover{opacity:1}.J4QnP{font-weight:700;pointer-events:none}.Fa5Yt{color:var(--highlight-color);font-size:.7rem}.Fa5Yt.qE_eB{visibility:hidden}.Fa5Yt:hover:not(:active){filter:brightness(130%)}.RnWnK{vertical-align:middle}.lt5O_{align-items:center;display:flex;font-size:.875rem;height:20px;justify-content:center;padding:10px 10px 0}.lt5O_,.rQI68{text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rQI68{font-size:.83rem;width:30px}.EIMPZ{cursor:pointer;opacity:.7;padding:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.EIMPZ:hover{opacity:1}.EIMPZ:active{opacity:.8}.EIMPZ svg{display:block;margin:0 auto}.OK2mW{font-weight:700}.tMvcj{opacity:1}.IBxjT.tMvcj,.IBxjT:active,.IBxjT:hover{color:var(--success-color)}.QSQhw.tMvcj,.QSQhw:active,.QSQhw:hover,.eYKug{color:var(--danger-color)}.tKAH6{font-weight:200}.LOiuh,.tKAH6{text-transform:lowercase}.LOiuh{font-weight:600;margin-top:10px}.L3Eaj{margin-left:5px;vertical-align:middle}.fHgtW{font-size:.9rem}.EcsU0{line-height:1.35;overflow:visible;white-space:pre-wrap;word-break:break-word}.XL8nr{margin-top:15px}.UblEx{font-weight:700}.afYTT{font-style:italic}.KPMvl,.afYTT{color:var(--app-color-metadata);text-transform:lowercase}.KPMvl{margin-top:10px}.Cq6xD{display:flex;margin:0 auto;max-width:800px;width:100%}.Cq6xD .INRCS{flex:1 1 auto;margin-left:10px}.Cq6xD .Lh1uU{flex:0 0 auto;height:100%;text-align:center}.ULHf7{overflow:hidden;visibility:hidden;width:0}.jwNEi{margin-bottom:10px}.fiYVe{border-radius:3px;position:relative}.fiYVe:nth-child(odd){background:var(--content-alternating-bg)}.wqwfW{border-radius:3px;cursor:pointer;display:block;padding:10px 10px 10px 35px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.wqwfW:active,.wqwfW:active .UYk6r{background:var(--misc-button-active-bg);color:var(--misc-button-active-color)}.wqwfW:not(:active) .LHJqG,.wqwfW:not(:active) .RryPT{color:var(--app-color-metadata)}.wqwfW:not(:active) .elKva{color:var(--link-color)}.wqwfW:not(:active):hover .elKva{text-decoration:underline}.BKJlR{float:left;left:0;position:absolute;top:50%;transform:translateY(-50%)}.elKva{font-weight:600;overflow:hidden;padding-bottom:5px;text-overflow:ellipsis;white-space:nowrap}.UYk6r{background:var(--misc-button-bg);border-radius:3px;color:var(--app-color);float:right;font-weight:200;margin-left:5px;padding:2px 4px;text-transform:lowercase}.UYk6r.P736t{margin-right:27px}.aqvFS{overflow:auto}.xZqXR{word-wrap:break-word;white-space:pre-wrap}.RryPT{overflow:hidden;padding-top:5px;text-overflow:ellipsis;text-transform:lowercase;white-space:nowrap}.LHJqG{font-style:italic}.iNeUZ{font-weight:700}.JLiR2{right:10px;top:10px}.JLiR2,.Mn1lS{position:absolute}.Mn1lS{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding:10px;right:0;top:0}.m7Th9{flex:0 0 auto}.kyeKv{-webkit-overflow-scrolling:touch;flex:1 1 auto;overflow:auto;padding:10px}.SS2G3,.TkFqs{flex:0 0 auto}.SS2G3{display:block;margin-bottom:10px}.SS2G3 .m7Th9{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.qaldp{margin-bottom:20px}.qaldp:last-of-type{margin-bottom:0}.EGx_u{-webkit-overflow-scrolling:touch;bottom:0;box-sizing:border-box;left:0;overflow:auto;padding:10px;position:absolute;right:0;top:0}.EGx_u select{margin:0 0 0 5px;min-width:100px}.UClnn{margin-bottom:15px}.mCG29{transition:opacity .2s ease-out;will-change:opacity}.aQbMN{background:inherit;color:var(--highlight-color);display:flex;font-size:.7rem;font-weight:700;pointer-events:none;position:absolute;right:10px;text-transform:uppercase;top:10px}.aQbMN .Y06gr{border-left-color:var(--highlight-color);margin-left:10px}.Ln7r5{margin:10px 0 0}.Cr18H{opacity:1}.YmXqP{opacity:0}.ultvh{display:flex;flex-direction:row}.Qz9r3{flex:1 1 auto;text-align:right}.fQJFj{color:var(--link-color);font-weight:700}.cTD4v,.gTWw0,.wzCa1{margin-right:10px}.wzCa1{color:var(--danger-color)}.W2Ezh{display:flex;flex-direction:row;margin-bottom:2px}.J1eYs{flex:1 0 auto;margin:-5px 0 0 -5px}.ULefS{flex:1 1 auto;text-align:right}.YTN_p{color:var(--app-color);cursor:pointer;opacity:.5;padding:5px;transition:opacity .1s ease}.YTN_p:hover{opacity:1}.YTN_p:active:hover{filter:brightness(130%)}.YTN_p.QYMY8{opacity:1}.nbKtJ.QYMY8,.nbKtJ:hover,.wEJsJ.QYMY8,.wEJsJ:hover{color:var(--danger-color)}.lEtvT.QYMY8,.lEtvT:hover{color:var(--warning-color)}.xO8vv:hover{color:var(--success-color)}.yHCCV{border-radius:3px;padding:10px}.yHCCV:nth-child(odd){background:var(--content-alternating-bg)}.fyIbf,.o699z{margin-top:10px}.o699z{border-radius:3px;display:flex;font-family:var(--code-font)}.o699z .J2B0P,.o699z .ZZ5Pq{flex:0 0 auto}.o699z .cp1os{flex:0 1 auto;overflow:hidden;padding:0 5px;text-overflow:ellipsis;white-space:nowrap}.o699z .J2B0P{padding-left:5px}.WdG4k{margin:0 0 10px}.dQeBH{font-weight:700;text-decoration:underline}.Pw4UW{display:flex;flex-direction:column;height:100%;width:100%}.mdzfm{-webkit-overflow-scrolling:touch;flex:1 1 auto;overflow:auto}.StUEG,.rtGnE{flex:0 0 auto}.bl5fq{margin:10px 0}.cX9NU{bottom:0;display:flex;flex-direction:row;left:0;overflow:hidden;padding:10px;position:absolute;right:0;top:0}@media (max-width:900px){.cX9NU{flex-direction:column;overflow:initial}}.bSN9D{-webkit-overflow-scrolling:touch;box-sizing:border-box;display:flex;flex-direction:column;height:100%;overflow:auto;padding:10px;position:relative}.WnWGc{flex:0 0 auto}.uoWfq{background:var(--sub-content-bg);border-radius:3px;font-family:var(--code-font);margin-top:10px;padding:4px 8px}.Z2tPY{margin:10px auto 0}.xEiQv{text-align:center}.oJnCW,.xEiQv{margin-top:10px}.jGEqA{bottom:0;left:0;position:absolute;right:0;top:0}.k3Ut5{flex:0 0 auto;margin:0 0 10px}.d9Wg4{-webkit-overflow-scrolling:touch;flex:1 1 auto;overflow:auto}.H513J,.tYBLb{flex:0 0 auto;margin:10px 0}.qdCR1{flex:0 0 auto;margin:0 0 10px}.chvbW{flex:0 0 auto;margin:10px 0}.O_glM{display:flex;flex:0 0 auto;margin:5px 0}.O_glM .nfzMY{flex:0 0 auto;margin-left:auto}.O_glM .asiz9{color:var(--app-color-metadata);flex:1 1 auto;font-size:.825rem;margin-right:10px}.ICHlo{margin:0}.Npsea{margin:0 auto}.ZVVpX,.c7Tes{overflow:hidden;word-break:break-word}.ityDl{display:inline-block;margin-top:10px}.vMhEV{margin:10px 0}.Qx04x{list-style:circle;list-style:disc;padding:10px 30px}.c7Tes{color:var(--danger-color)}.HPRlT{background:var(--bg-0);color:var(--app-color);height:100%;width:100%}.QtZzw{bottom:0;left:280px;position:absolute;right:0;top:50px}.QtZzw.rxgkz{left:0}@media (max-width:1080px){.QtZzw{left:0}}.DmUSm{font-size:18px;left:50%;line-height:1.5;max-width:450px;position:fixed;text-align:center;top:50%;transform:translate(-50%,-50%)}.DmUSm h1{font-size:24px;font-weight:700;margin-bottom:16px}.DmUSm a{color:blue}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font:inherit;font-size:100%;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}:root[data-theme=light]{--doppler-sponsor-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAAvCAMAAABuQAddAAAAeFBMVEUAAAAREREcgv8QEBAQEBAQEBAQEBAvpP8PDw8PDw8QEBAQEBAQEBAQEBAQEBAPDw8QEBAQEBAQEBAQEBAafv8llP8lk/8Xev8jj/8ijf8mlP8kkv8omP8llP8tov8dhf8wqP8llf8qnf8bgf8hjP8Xev8WdP8xrP+OywXIAAAAIXRSTlMA/gmSqg3s/i0cz7edVt0+fW9JX7XrwOStFz8qZpHUf+gpOYVRAAAGw0lEQVRo3u2bi3abMAyGKQaGDZhbkjaXJksCzfu/4QrEyEh2HNJs5+yc/GVdi1WDP0tCdqn3cToqnbB+7Ve7jffSqPVyAHU8DZ8HSurjcvm13629l67anUbP6pzrqNP6/uKb1++d99JVq9OIqg/FI9BSuFYv57pqewQBrl/w8Y1rv/XukA/H3abuvtwGj2v+1Q+nYzOggrQ10IJY/D0v0Ts4uA2JyXwD/0FOjhMr3bMgcQGvjpbTt3gc51VW11mV89BhG5csSJIgLfPQOKyQ9311ncUctSGDPA5nkgrN0gziuMoydXHU26bzrEbhGlAdcZ7f35ypQsg3TTIpcjvVQoBllBLDMJ12JtKaT1EHItLaI8Eqw3zUQeqZxCKjVBd1Mh1JUKLZ+lSoUMmlZ67L5y1Y8o1IlKFxXhk2TGIEk/YVMf2Oa2ogy8k1Kia6jo0uF7wZpW42oU1BPOlh2dNqBs9SaR7TupW2hOn6MjNMuMmyJrAoLs0mMxkIbUTsOgumaLTASm42F940EJvG+FQEXpe9CxYVw3Y5MqA34ytYWCWCRQS0UgDggEV7D9wD+bjSaqDkIpF42bhgUaXIr94sKolnUeUOWDL8AawYNWOV01VPg5yL+NZl5YYVSSkj65SEEhpEMknTuQGW/JYeaAgWuViBYM3IWQKxJJ1H3APtjs1AC0ouWs9vXbBYGHZP3iyNNAogNl664D28TIxgKKxsKBGKCM9+pt1/yHNGXCu9I2clsS5OmsO+higFuJZh1TNKfQf1/I0HokBzy1OYMxqECR+rF0ZvhiPMXCjPQbBCnAjjGWEYGBt90szeDJ2tPz90rZanE7C7etb+DlgKQ6lGUEHeVfy6UeKT0gLLB8gBhoWvVc+E5cNBm1Xnkrg+1Xq3pPX81gkLpihFQ/RC3QHATgJUBAv3npg9yx9pFhiW23XcjpfC1UA+Jr290gJWl50TFsxRGKGrZOYnZI1PU1iJimgEC/8Ec+QsRMOH0Vph+WMccu+mNqfj1Lcun05YxLVg0ClyLARVPOpZHnjWc3MW2MPV7PrsacFT8bJywwJVkLp1G2krfLgNFrflLOyc5QxYogRlZsfrDw5ziYQob9SG87gpfycsGhzgQQG+SoE8jkMS8yc0ydMQl2/5g3VWane8WICNA9cSrayX/v05C+hgdqiTDGV4PoEXVgku2RSsq3mtWEV31llEuaUMq8oA2Ti3nE+wO79cu2DpkgCLJha6Xsxw1DGWBgmUtxLTTTsDgRxk3nIHINsdD/pyw1I6zYYlfgKLKkOwiPiDsALcTCX5nbDAuX7kWdwMy/cqcxjSxOKAVXsPrg1rJywBrFw5S60WZ+YsPh1laMtZNV7euDZJMiurGTkrYqO4A1ZUeHdoo/YElXvNehrmyJWkZb4ZeRpSicyjsOhu5lPqLJA7t9NdLvjVz6w6q0C5JrFUdwKdJ7BkqiLUAkswQDUDlq8Ok+MFQSDRWtblWJ20Ha5ZFbxEeZcheKj8TnD4iiAIUlZmMZ58BSsZDCrenwaDZ60NeWTYlPPNa8PNcoCl/epn5/l356wS79Hk6ARaBRXW5Y6lMIvQCGblLDcs3YUr1xsjh0YJnOvuXQffy+lGlURn0GYUhYXDBFfwpP3Ja0PYPwoVlMVicegWggtdq86tMK2V54Sl7r6KaMVXjBMFGOIIohDDwhwoLCQMC8cKzVlwGLe7wmkgrt/P53Oz+G45N+fGrj4KDy5Yymfi1LDTD5d+K9Q46/FUboBllG+B9eScBfMCfr84t2177mC9n5EoLucefJBVVVay4TuaoGp4wLEsz7NCkJKTwnrcs6JEVzylIRmSOUoTfRzn1g4L4cJRSGFRSY6mzWYXPhkWVXX7HoQZVqzXvK0Gq71CgmMKazMbloyRXWK2i8AO5ax/Bqu05H8G0zmBdR5wgbBjzYWVcGwXBi6m/s9z1kOwYgusMAKaX180DMG3dF7H7UxYsjZZFtQwAKb/IAxTcwxYK4sSXOurowVh2FoT13HmWzRJZhlLnEZTQzUKDAudp88JK6xgvmelKFEk1BGY99VJwepRtT0i+AdB6Ho7TciokxRBUXHPLl4HUj2vipg0h+NmgG+52NBeeFaazKCYNNJWaM7I5RiG1faous8K1ZXWkexk2V+qs758pzfwOM9jHnr/lXpY7QgLR6LyreXW/caq/q3TGr50dzffwKcHanM2094wLISrUf8Dq+e+EPyficJSgQiomo/Xe/AA63zoYLVKA6NWPQyXr7+w0GC17+se1hfgasdAXO3+u2gB/QVYi603wNJo9XpfHF5/FQb6A2A975gtbm1sAAAAAElFTkSuQmCC);--primary-color:#2c5c97;--primary-contrast-color:#2b64ad;--app-color:#333;--app-color-metadata:#6c6c6c;--app-contrast-color:#f7f7f7;--link-color:#3464a3;--highlight-color:#145c26;--bg-0:#e5e5e5;--bg-1:#f7f7f7;--content-bg:#fdfdfd;--content-border-color:#e3e3e3;--content-box-shadow:rgba(0,0,0,.04);--content-alternating-bg:rgba(0,0,0,.03);--sub-content-bg:#f0f0f0;--info-color:#6c6c6c;--success-color:#1e6933;--warning-color:#b77f2b;--danger-color:#993636;--misc-button-icon-color:#505050;--misc-button-bg:rgba(0,0,0,.1);--misc-button-hover-bg:rgba(0,0,0,.2);--misc-button-active-bg:#585858;--misc-button-active-color:#f7f7f7;--button-bg-h:0;--button-bg-s:0%;--button-bg-l:40%;--button-ok-bg-h:213;--button-ok-bg-s:55%;--button-ok-bg-l:38%;--button-danger-bg-h:0;--button-danger-bg-s:48%;--button-danger-bg-l:41%;--button-hover-l:50%;--backdrop-bg:hsla(0,0%,40%,.6);--backdrop-box-shadow:rgba(51,51,51,.3);--input-bg:#fff;--input-disabled-bg:#f2f2f2;--input-border-color:#d2d2d2;--input-focused-border-color:var(--primary-color);--input-focused-box-shadow:inset 0 1px 2px #ddd,0 0 5px rgba(69,122,187,.4);--label-color:#344f71;--label-border-color:rgba(58,58,58,.1);--tooltip-color:var(--app-contrast-color);--tooltip-bg:rgba(0,0,0,.8);--tooltip-border-color:hsla(0,0%,100%,.1);--quiz-bar-color:#debc4e;--quiz-my-bar-color:#a77e00;--quiz-grid-color:rgba(0,0,0,.5);--quiz-dashed-grid-color:rgba(0,0,0,.3);--match-indicator-no-match:#c5c5c5;--match-indicator-match-bg:#4e8475;--match-indicator-error-bg:#bf4343;--debugger-backtrack-bg:#d20000;--debugger-regex-bg:#129163;--debugger-slider-bg:rgba(0,0,0,.2);--header-twitter-color:#94c5ff;--header-donate-color:#ffd17b;--header-contact-color:#81ae8e;--header-feedback-color:#c49f83;--header-wiki-color:#97cbd0;--header-whatsnew-color:#ceac6e;--header-sponsor-color:#b36793;--cm-whitespace-bg:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAaUlEQVQoU2NkQAUyQK4EEPNAhb8A6RdA/ASmjBHKYAHSBkgK0cxhAGm8AMR/YBpM8CiGaQZpOgPSAHKGCrqROPh3QBqIMR1uC0iDA5Gmg5WRpYFkJ5HsaZDTiLEFHqwgDSRHHCygCCYNADkjFS0ZxPtRAAAAAElFTkSuQmCC);--cm-tab-bg:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=);--cm-whitespace-color:rgba(0,0,0,.25);--cm-unknown-char-color:#151520;--cm-unknown-char-bg:#9696e1;--cm-selected-bg:rgba(184,215,255,.8);--cm-inactive-selected-bg:hsla(0,0%,81%,.8);--match-group-0:#d5ebff;--match-group-1:#c4e8ac;--match-group-2:#f6d7a6;--match-group-3:#c8c8ff;--match-group-4:#f2cfff;--match-group-5:#ffc5bf;--match-group-6:#c8e7d6;--match-group-0-alt:#9fcfff;--match-group-1-alt:#9fcba1;--match-group-2-alt:#e0bf8b;--match-group-3-alt:#acadfc;--match-group-4-alt:#e1abf5;--match-group-5-alt:#ef9b95;--match-group-6-alt:#abe2d0;--match-highlight-color:#e4e440e0;--match-zero-width:#dc00ff;--match-mix-hex-color:#000;--match-mix-amount:50;--explanation-keyword-color:#185429;--explanation-token-bg:#f3db90;--explanation-token-color:#382c06;--explanation-plain-text-bg:#eee;--explanation-flag-color:#743b7d;--token-quote-color:#7500ff;--token-quote-bg:none;--token-meta-bg:#99beff;--token-meta-color:#1b2432;--token-escaped-string-color:var(--app-color);--token-escaped-string-bg:#d6d6d6aa;--token-char-class-bg:#f0c99e;--token-char-class-color:#5f3103;--token-char-class-meta-bg:#d9aa79;--token-inline-modifiers-bg:#fed1ff;--token-inline-modifiers-color:#312b36;--token-verb-bg:#deceff;--token-verb-color:#22162d;--token-subpattern-reference-bg:#cbcaff;--token-subpattern-reference-color:#181031;--token-backreference-bg:#c4ddff;--token-backreference-color:#30363e;--token-group-0-bg:#c5e893;--token-group-0-color:#192110;--token-group-1-bg:#a7bb5a;--token-group-1-color:#131c08;--token-group-2-bg:#d5ce6f;--token-group-2-color:#423e0d;--token-group-3-bg:#ceae63;--token-group-3-color:#312409;--token-comment-bg:none;--token-comment-color:#888;--token-error-bg:#ed5c65;--token-error-color:#fff;--token-highlight-bg:#98edff;--token-highlight-color:#1b3440;--token-mouseover-border-color:rgba(0,0,0,.5);color-scheme:light}:root[data-theme=dark]{--doppler-sponsor-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAAvCAMAAABuQAddAAAAkFBMVEUAAAD///////////////////////////////////////////////////////8afv////////////////8eg/////////////8Yef8kkP////8jkf8jkv////8hi/////8nl/8kk/8llP8rof8onP8gjP8mlf8cgv////8pnf8llP8bgP8Xd/8ijf8eh/8uqf/9i3N9AAAAKHRSTlMAlO2nDtBatx+fQeB8LnG0NUoZrwrYJ2TkrIQ26FIYwrxdkOvPfCfIONI02gAABmJJREFUaN7tmwl3ojAQx5NwCoKABXZR1N7iUb//t1ug5hwgG7d7vee/9L3WjIn5MTOZREXfm0OvZkDPz7vXFbqLabM+XGlJvC6f1+XSvLw+oLuuemworYZdnFgH7PkR3XXVrqUFnetyRdXj2m3QXb3eelDcubh3cVzP99R11Wsj4uJiqO60BL2ItHrfoqjob0vrDU3LzookSN1WaeLbGuOoxJbnLXEc2KOdpXXbVx1E2aCBH30OVgeFjcxkD0swaGdSf84EDr6ipDguFoksGl8mF8XKCcmeK/TmyaitXznckswCMJmZE+65iDNzMxm15RDJAKcIqCitGRoSJoOiL8P1crHz3Cp9JOmpEWlRUop3PaEJhXsgJ7YH72tFFEOvUGDCvggWcbnQII+lMVLsdB2jIVn7IRH6Yj3YZEVI0MN63Ld43ppKW85+QHkNDaMhyxLAAiKuBAvKEWaE2/8NYXmTzXOp2DqcZd86wDR/edHBgsKqXUAG7eYAFlQswYIiPPBn5rBi1qyfyHdKi+LimZ4H4qMOFpSl+BUZsYsBLKhEggUV2r8Aq5CaoUp513Mec64DXRF3elhhmIcSkErKJbkQNt5STNPBAKwwlzrbqrBIa0DAWDfBckAzkWdCbDkQz4pzwfp0pYOFbbtbeWtMhiggzIae+z08l3lkDmHVXV9ZMmd9JTIs4qPOIMDctQxgbSNRmdrs2V3nUeww3we7noZLrVAvkwuio+SeDMN7hgrmIxnkVwJYFHPm0MymwLLVRJgYwKIJQteM9wOdbZ6+i9qtO6dSatQXPSymmFJIed6l/GyEwIPhKCyU0AQIYCljlQawljpYVCF9fRPaPK7hmvimgwUp8FdlE55MueyQQgWw1N63Y7AK7npfDwuz0ab0tlZ96/JoAMsmyiguWIbBwyOwtlJEQ1jZdajq78FCK7WcvzwZwEJYmfRMzCwQqmPuWeozqt+Qs5ClhcW3QTTf97B2JrBSuo7INjlStLzaZWOwMl3Ocm/IWU7M5U7Ayti91GilllwvJrB8Ob5sMnJL57LHQVgWdRwASynfghvrLDwOq6BL8Qxp9LDud9jct9YPBrAUOtnYFqhWMrwvwbNTj5VsCqxrv2XOCscbYQWw2SuiKEnjJbDRHTlz33reGMBCuZRKfbZkKQpoEarAWmKMrS3h+3I16mYYz8RtAL6xgic2aAbyDM7nm1tgORKsQgfL1ewNXRkWlG8Ki7RX7/paWGFmcoZqDIuXc5bGs1IQhrJA0nA1ME09q9RvHX00JXjOdXPOwuBfWSXNCpOwMNLAKpERrBAzZRpYZI6gtOfNZqthorhSKFVLsB4rICzCbm0tlbHQYBmxZvM6S5//9YKnXEZ11lxJ3N5IdefIj0PPCmcpqPklOZiWHV9WwZPl0gr5XlYreGzTGFXwoZJ3K5ZbJEVsvVFgOZZlzXBcU58BsLzWAFdxyhPK1253fMJSgFar9bmXAMtkbxjTOaurngNmRp8L6iwgUGdxfT0sVP9sIG5ez1SclsGpQwJPzULwiIBwX4C9oQ6W/bth8fMjm0JZLBav3UZwIer9fDirtBrteVbFGRBY8c35ERc8lffQPwjLlgNx8+3jePx4R+jhdP7oRAGxPzmuRntSGlMEGLwVIQ69n9N5lvzM+A/DsjSwlLWkT5yL4+l0Oi5aWN+OTB+9IK03HaxlnaZujB3lXQa4jIXYDZK64oYz9PWwiCcqAXWWpGqYpSfO43SSYX18XkO4Gt27O/ptgrUfs7O/GBZUOv0anGFYBW13AaxJ52pWxrDCQrHbDtuRCP1tWPFIlFbsdiqwTj2m/gfSOuyQKSwPbD/t5SDTBP11WJECCyTaWIZ16nBRgUg8rAxh5eWQ5ZwAQytDfwIWaCTClY/m/5K5lgKrV+9cAJe4FELlILA8d2QuBZZxeXQWKqxUA2s/CsuagrWc3qd7YCV1qIkEq/ur/WHARFqHdzSlpMTW1slD0ip0rCrNJoyz0srZ57gi0GzjT/mjg8nrF5SLB1RMNfLNZYl7ueJwdLxTLwbrRH1LjcX15qc/VId+RlkUBIlvo/9KCqwe14nHImN1/0wphNXT6nAx3VkNwjpRUUzUuc7f75+D57COr1dYx+5qJZYQ5/X9GxYirG8b0bOONHF1IXh8f7x/d0eE9b5CFJYUiudvi/u3wgT9ABOH5rS11g7nAAAAAElFTkSuQmCC);--primary-color:#1a2c42;--primary-contrast-color:#6596cb;--app-color:#c6c6c6;--app-color-metadata:#959595;--app-contrast-color:#e8e8e8;--link-color:#6596cb;--highlight-color:#43a564;--bg-0:#191919;--bg-1:#1e1e1e;--content-bg:#232323;--content-border-color:#262626;--content-box-shadow:rgba(0,0,0,.04);--content-alternating-bg:hsla(0,0%,100%,.03);--sub-content-bg:#2c2c2c;--info-color:#959595;--success-color:#21703c;--warning-color:#a57909;--danger-color:#b54d4d;--misc-button-icon-color:#a7a7a7;--misc-button-bg:hsla(0,0%,78%,.05);--misc-button-hover-bg:hsla(0,0%,78%,.15);--misc-button-active-bg:#7d7d7d;--misc-button-active-color:#0e0e0e;--button-bg-h:0;--button-bg-s:0%;--button-bg-l:24%;--button-ok-bg-h:213;--button-ok-bg-s:43%;--button-ok-bg-l:18%;--button-danger-bg-h:0;--button-danger-bg-s:39%;--button-danger-bg-l:29%;--button-hover-l:35%;--backdrop-bg:hsla(0,0%,40%,.6);--backdrop-box-shadow:rgba(0,0,0,.5);--input-bg:#272727;--input-disabled-bg:#1c1c1c;--input-border-color:#2c2c2c;--input-focused-border-color:#363636;--input-focused-box-shadow:inset 0 1px 2px #272727,0 0 5px rgba(0,0,0,.4);--label-color:#b3b3b3;--label-border-color:hsla(0,0%,61%,.1);--tooltip-color:#181818;--tooltip-bg:hsla(0,0%,78%,.9);--tooltip-border-color:rgba(0,0,0,.1);--quiz-bar-color:#ad8a1d;--quiz-my-bar-color:#6b4c00;--quiz-grid-color:hsla(0,0%,100%,.5);--quiz-dashed-grid-color:hsla(0,0%,100%,.2);--match-indicator-no-match:#363636;--match-indicator-match-bg:#2b4230;--match-indicator-error-bg:#8a2d2d;--debugger-backtrack-bg:#a22e2e;--debugger-regex-bg:#185a42;--debugger-slider-bg:hsla(0,0%,100%,.2);--header-twitter-color:#7c9cc3;--header-donate-color:#d0b10e;--header-contact-color:#63794f;--header-feedback-color:#b87358;--header-wiki-color:#519299;--header-whatsnew-color:#ac730a;--header-sponsor-color:#b83582;--cm-whitespace-bg:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAdElEQVQoU2NkQAL///8XA3JFgJgTKvwdSL9hZGR8BVPGCGIAFTIDKXUkhcjmgNggjTeBGv/CNGjhUQzT/B2o4Roj1Bmy6Ebi4D8GaSDGdIQtQA3GRJoOVgaygWQNJDsJFPbEexoaD8TYAglWsiIOFkrEJA0A2cY44cCTWRMAAAAASUVORK5CYII=);--cm-tab-bg:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAqklEQVRIS2NkGOKAcYi7n2HUA/SIwVWrVjFfv37djo+P73xhYeGHxsZG7/r6+q0gu4dMDLS3tyv9+vVLl42N7RCQtgN6YCPYA0DfuNMjFKlhBxMTEzfQnH9AwAz0wNohFQMdHR1yv3//NgF64sGfP39k4TFAjZChtRmgPHDz5k1XRkbGNzU1NWeAqcZ/SHkAFkD///8H+oHxP3KADZlMjCuWRz1A6/RPyHwARDQ6DR6ShH4AAAAASUVORK5CYII=);--cm-whitespace-color:hsla(0,0%,100%,.2);--cm-unknown-char-color:#e3d0e2;--cm-unknown-char-bg:#5b2f59;--cm-selected-bg:rgba(69,96,129,.86);--cm-inactive-selected-bg:rgba(74,74,74,.8);--match-group-0:#1f496f;--match-group-1:#3d571c;--match-group-2:#654e20;--match-group-3:#493c8d;--match-group-4:#823f87;--match-group-5:#7f3835;--match-group-6:#215c4b;--match-group-0-alt:#0e3457;--match-group-1-alt:#293e0c;--match-group-2-alt:#4e380e;--match-group-3-alt:#31246c;--match-group-4-alt:#5c245f;--match-group-5-alt:#5c2524;--match-group-6-alt:#154738;--match-highlight-color:rgba(115,85,0,.9);--match-zero-width:#ab28c4;--match-mix-hex-color:#fff;--match-mix-amount:25;--explanation-keyword-color:#1da06d;--explanation-token-bg:#b5942f;--explanation-token-color:#231b02;--explanation-plain-text-bg:#2d2d2d;--explanation-flag-color:#b37dcc;--token-quote-color:#b77aff;--token-quote-bg:none;--token-meta-bg:#223c6e;--token-meta-color:#d6deec;--token-escaped-string-color:var(--app-color);--token-escaped-string-bg:#3c3c3c;--token-char-class-bg:#bd946c;--token-char-class-color:#221302;--token-char-class-meta-bg:#a47d55;--token-inline-modifiers-bg:#5d2261;--token-inline-modifiers-color:#fff;--token-verb-bg:#513c8c;--token-verb-color:#f0e9ff;--token-subpattern-reference-bg:#3b347b;--token-subpattern-reference-color:#e8e5ff;--token-backreference-bg:#2e5c77;--token-backreference-color:#e3ecf9;--token-group-0-bg:#38590b;--token-group-0-color:#dae0cf;--token-group-1-bg:#555715;--token-group-1-color:#dbdbca;--token-group-2-bg:#59460e;--token-group-2-color:#ddd8ca;--token-group-3-bg:#593804;--token-group-3-color:#e1dacf;--token-comment-bg:none;--token-comment-color:#aaa;--token-error-bg:#8a2d2d;--token-error-color:#fff;--token-highlight-bg:#006964;--token-highlight-color:#eee;--token-mouseover-border-color:hsla(0,0%,78%,.7);color-scheme:dark}:root{--code-font:"Source Code Pro",monospace;--app-font:"Open Sans",Helvetica,"Lucida Sans Unicode","Lucida Grande",Arial,Verdana,sansSerif;--font-size:16px}body,html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;font-family:var(--app-font);font-size:var(--font-size);line-height:16px;margin:0;overflow:hidden;padding:0;-moz-tab-size:4;tab-size:4}#regex-app,body,html{height:100%;width:100%}sub{font-size:.7rem;font-weight:400;vertical-align:sub}::-moz-selection{background:var(--cm-selected-bg)}::selection{background:var(--cm-selected-bg)}::-moz-placeholder{opacity:.75}::placeholder{opacity:.75}strong{font-weight:700}em{font-style:italic}a{color:inherit;text-decoration:none}:focus{outline:none}::-moz-focus-inner{border:0}body.using-keyboard :focus{opacity:1;outline:2px solid var(--primary-contrast-color);outline-offset:-2px}
+1-0public/static/bundle.bc4943f4b6820b0741dd.js
@@ -0,0 +1 @@
1+(()=>{var e,t,s,n,r,a={61607:(e,t,s)=>{"use strict";s.d(t,{CJ:()=>v,MX:()=>le,K_:()=>b,jb:()=>Y,jJ:()=>y,s1:()=>re,v0:()=>me,xv:()=>fe,Of:()=>M,zp:()=>D,sk:()=>_e,Ak:()=>Te,ew:()=>j,xz:()=>he,by:()=>W,Ot:()=>a,hK:()=>g,IU:()=>Ee,Dk:()=>X,tP:()=>ge,bL:()=>xe,kB:()=>ve,fd:()=>Ze,ak:()=>$,Ub:()=>Q,Bq:()=>H,zO:()=>K,uf:()=>T,G6:()=>R,QF:()=>w,Ez:()=>ae,dL:()=>I.Z,o6:()=>O,fU:()=>oe,JO:()=>ie,rS:()=>P,ML:()=>ue,_1:()=>de,Gj:()=>m,I2:()=>r,ZI:()=>L,E0:()=>E,Jh:()=>A,UZ:()=>C,vn:()=>B,Iu:()=>G,ux:()=>U,rI:()=>F,h5:()=>Z,dM:()=>o,UF:()=>i,NS:()=>Ne,Tr:()=>be,SD:()=>p,BF:()=>h,ZD:()=>Ce,og:()=>V,$9:()=>Se,_v:()=>je});var n=s(45703);const r=function(e){return{type:n.jo,value:e}},a=function(){return{type:n.rx}},i=function(){return{type:n.fB}},o=function(e){return{type:n.sk,value:e}};var l=s(31807),c=s.n(l),u=s(61724),d=s(86565);function h(e,t=!0){if(!c())return;const n=u[e]||u.ENGLISH;return()=>fetch(n.file).then((e=>e.json())).then(d.a).then((()=>{t&&s(16548).P()}))}const p=function(e){return{type:n.ro,value:{subsection:e}}},g=function(e){return{type:n.WV,value:e}},m=function(e){return{type:n.CJ,value:e}};var x=s(16386),f=s(96546);const v=function(e){return{type:n.lA,value:e||{description:null,testString:"",compareString:"",target:f.m,criteria:x.FS}}},b=function(e){return{type:n.rT,value:e}},j=function(e,t){return{type:n.mo,value:{oldIndex:e,newIndex:t}}},C=function(e,t,s,r){return{type:n.ES,value:{testKey:e,error:t,steps:s,time:r}}},Z=function(){return{type:n.p2}},y=function(){return{type:n.lZ}},E=function(e){return{type:n.Jb,value:e}},T=function(e){return{type:n.a0,value:e}};var k=s(75573),N=s(56538);const S=[N.Y8,N.D9,N.ik,N.VE,N.ek,N.Rp,N.Fo,N.ed,N.wm,N.Vu,N.e0,N.UA,N.Gv].map((e=>(""+e).toLowerCase().trim())),_=["recursive call could loop indefinitely","regular expression is too large","too much recursion"],w=function(e){const t=(""+e).toLowerCase().trim();if(e&&!S.includes(t)&&!_.some((e=>t.includes(e)))){const t=new Error("Unhandled error while matching regex. Code: "+e);k.O7(t)}return{type:n.Nl,value:e}},A=function(e){return{type:n.Cy,value:e}},O=function(e){return{type:n.hl,value:e}};var I=s(68692);const R=function(e){return{type:n.Sr,value:e}};function P(e){return{type:n.KE,value:e}}const L=function(e){return{type:n.u8,value:e}};function M(e,t){return(s,n)=>{if(!e)return Promise.resolve();const r=n().general.cookie;return fetch(`/api/regex/${e}/${t}`,{method:"GET",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json",cookie:r}}).then((e=>e.json())).then((n=>{const r=n.regex,a=n.testString,i=void 0===a?"":a,o=n.flavor,l=n.delimiter,c=n.flags,u=n.substitution,d=n.listSubstitution,h=n.unitTests,p=n.isFavorite,g=n.isLibraryEntry,m=n.title,x=n.tags,f=n.libraryTitle,b=n.libraryDescription,j=n.libraryAuthor,C=n.isEditable,Z=n.isOwner;s(T(r)),s(A(null!=i?i:"")),s(O(o)),s(R(l)),s(I.Z("",c,o)),null!=d&&(s(B()),s($(null!=d?d:""))),null!=u&&(s(U()),s(L(null!=u?u:""))),h.forEach((e=>s(v(e)))),null==d&&null==u&&""===i&&h.length>0&&s(F()),s(ve(f,b,j)),s(H(e,t,null,null,g,m||f,x,Z)),s(Y(p)),s(K(C))}))}}function D(e){return t=>fetch("/api/regex/"+e,{method:"GET",credentials:"same-origin"}).then((e=>e.json())).then((({versions:e})=>t(function(e){return{type:n.r0,value:e}}(e))))}const U=function(){return{type:n.T_}},F=function(){return{type:n.YW}},G=function(){return{type:n.RS}};function V(e){return{type:n.NJ,value:e}}const B=function(){return{type:n.R8}};function $(e){return{type:n.r$,value:e}}const H=function(e,t,s,r,a,i="",o=[],l){return t=parseInt(t,10)||null,{type:n.nU,value:{permalinkFragment:e,version:t,regexDeleteCode:isNaN(s)?void 0:s,versionDeleteCode:r,isLibraryEntry:a,title:i,tags:o,isOwner:l}}};var q=s(69574),z=s(79615);function W(e=!1){return(t,s)=>{q.ZP.emit(q.P);const n=s(),r=n.unitTests.tests.map((e=>({criteria:e.criteria,description:e.description,target:e.target,testString:e.testString,compareString:e.compareString}))),a=n.regexEditor,i=a.regex,o=a.testString,l=a.flags,c=a.delimiter,u=a.flavor,d=a.substString,h=a.listSubstString,p=a.showSubstitutionArea,g=a.showListSubstitutionArea,m={regex:i,testString:o,flags:l,delimiter:c,flavor:u,unitTests:r,substitution:d||(p?"":null),listSubstitution:h||(g?"":null)};let x,f;return e&&(m.permalinkFragment=n.general.permalinkFragment),e&&(x=n.general.title,f=n.general.tags),fetch("/api/regex/",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(m)}).then((e=>e.json())).then((s=>{const n=s.permalinkFragment,r=s.version,a=s.isLibraryEntry,i=s.regexDeleteCode,o=s.versionDeleteCode;return null==i&&null==o||(0,z.m4)(n,r,{regexDeleteCode:i,versionDeleteCode:o}),t(H(n,r,i,o,a,x,f,!e||void 0)),{permalinkFragment:n,version:r,regexDeleteCode:i,versionDeleteCode:o}}))}}const Y=function(e){return{type:n.yF,value:e}},K=function(e){return{type:n._,value:e}};var J=s(26086);const X=function(e){return{type:n.ol,value:e||J.DEFAULT_PAGE_TITLE}},Q=function(e){return{type:n.lK,value:e||J.DEFAULT_META_DESCRIPTION}};var ee=s(77891),te=s(96881),se=s.n(te);const ne=function(e,t=!1){return{type:n.sH,value:Object.assign(Object.assign({},e),{},{staleData:t})}};function re(e=se().ALL,t=1,s=[]){return(n,r)=>{const a=r().general.cookie;return fetch(`/api/user/history/${e}/${t}/?${ee.B({filterTags:s})}`,{method:"GET",credentials:"same-origin",headers:{cookie:a}}).then((e=>e.json())).then((e=>n(ne(e))))}}function ae(e,t,s){return r=>fetch(`/api/user/favorite/${e}`,{method:"PUT",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({isFavorite:s})}).then((()=>{null!=t&&r({type:n.Ht,value:{itemIndex:t,isFavorite:s}})}))}function ie(e,t,s){return r=>fetch(`/api/user/history/${e}/private`,{method:"PUT",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({isPrivate:s})}).then((()=>r({type:n.Ht,value:{itemIndex:t,isPrivate:s}})))}function oe(e,t,s){return r=>fetch(`/api/user/history/${e}/lock`,{method:"PUT",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({isLocked:s})}).then((()=>r({type:n.Ht,value:{itemIndex:t,isLocked:s}})))}function le(e,t,s){return()=>fetch(`/api/regex/${null!=t?t:""}`,{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({deleteCode:s})}).then((()=>(0,z.rP)(e,t))).catch((s=>{var n;const r=(null==s||null==(n=s.response)?void 0:n.status)||0;if(r>=400&&r<=499)return(0,z.rP)(e,t);throw s}))}var ce=s(48186);function ue(e,t,s){const r=(0,ce.Z)(e);return(a,i)=>fetch(`/api/user/history/${s}/tags`,{method:"PUT",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({tags:r})}).then((()=>{null!=t&&a(function(e,t){return{type:n.Xm,value:{tags:e,itemIndex:t}}}(e,t));const o=i().general.permalinkFragment;null!=o&&s===o&&a({type:n.CN,value:r})}))}function de(e,t,s){return(r,a)=>fetch(`/api/user/history/${s}/title`,{method:"PUT",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({title:e})}).then((()=>{null!=t&&r({type:n.Ht,value:{itemIndex:t,title:e}});const i=a().general.permalinkFragment;null!=i&&s===i&&r({type:n.se,value:e})}))}function he(){return{type:n.go}}var pe=s(27782);const ge=function(e,t=0){return{type:n.b9,value:{libraryData:e,pages:t}}};function me(e=1,t="",s=pe.MOST_RECENT,n=[]){const r=ee.B({search:t,orderBy:s,filterFlavors:n});return(t,s)=>{const n=s().general.cookie;return fetch(`/api/library/${e}/?${r}`,{method:"GET",credentials:"same-origin",headers:{cookie:n}}).then((e=>e.json())).then((e=>t(ge(e.data,e.pages))))}}const xe=function(e){return{type:n.mX,value:e}};function fe(e){return(t,s)=>{const n=s().general.cookie;return fetch(`/api/library/details/${e}`,{method:"GET",credentials:"same-origin",headers:{cookie:n}}).then((e=>e.json())).then((e=>t(xe(e))))}}const ve=function(e,t,s){return{type:n.DE,value:{title:e,description:t,author:s}}};function be(e,t,s){return(n,r)=>{q.ZP.emit(q.P);const a=r(),i=a.unitTests.tests.map((e=>({criteria:e.criteria,description:e.description,target:e.target,testString:e.testString,compareString:e.compareString}))),o=a.regexEditor,l=o.regex,c=o.testString,u=o.flags,d=o.delimiter,h=o.flavor,p=o.showSubstitutionArea,g=o.substString;return fetch("/api/library/",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({regex:l,testString:c,flags:u,delimiter:d,flavor:h,unitTests:i,author:s,description:t,title:e,substitution:p?g||"":null})}).then((e=>e.json())).then((({permalinkFragment:r})=>(n(ve(e,t,s)),r)))}}function je(e,t){return s=>fetch(`/api/library/${e}/vote`,{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({vote:t})}).then((()=>s(function(e,t){return{type:n.BS,value:{permalinkFragment:t,vote:e}}}(t,e))))}function Ce(e,t,s){return(n,r)=>{const a=r();return fetch("/api/library/",{method:"PUT",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({permalinkFragment:a.general.permalinkFragment,author:s,description:t,title:e})}).then((e=>e.json())).then((({permalinkFragment:r,version:a})=>(n(ve(e,t,s)),{permalinkFragment:r,version:a})))}}function Ze(e,t){return s=>(s({type:n.Kg,value:{isFavorite:t,permalinkFragment:e}}),s(ae(e,null,t)))}var ye=s(40378);const Ee=function(e,t){if(!t)return{type:n.qI,value:{}};const s=Object.assign({firstSeen:new Date,lastSeen:new Date,allTimeCount:0,todayCount:0},e&&e[t.bannerid]||{});s.allTimeCount++,s.todayCount++;const r=Object.assign(Object.assign({},e),{},{[t.bannerid]:s});return ye.Z.save("regex101-sponsor",r),{type:n.qI,value:t}};function Te(){return(e,t)=>{const s=t().general.cookie;return fetch("/api/quiz/tasks",{method:"GET",credentials:"same-origin",headers:{cookie:s}}).then((e=>e.json())).then((t=>e(ke(t))))}}function ke(e){return{type:n.te,value:e}}function Ne(e,t){return s=>{const r={regex:t.regex,flags:t.flags,delimiter:t.delimiter,substitution:t.substitution};return fetch(`/api/quiz/verify/${e}`,{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r)}).then((e=>e.json())).then((t=>{if(t.errorMessage)s(function(e,t){const s=t.errorMessage,r=t.totalTests,a=t.testNumber;return{type:n.nA,value:{taskNumber:e,errorMessage:s,totalTests:r,testNumber:a}}}(e-1,t));else{const r=t.successMessage,a=t.tasks;s(function(e,t){return{type:n.Sb,value:{taskNumber:e,successMessage:t}}}(e-1,r)),s(ke(a))}}))}}function Se(e,t){return{type:n.F,value:Object.assign({taskIdx:e},t)}}function _e(e,t){return(s,r)=>{const a=r().general.cookie;return fetch("/api/quiz/statistics/"+t,{method:"GET",credentials:"same-origin",headers:{cookie:a}}).then((e=>e.json())).then((t=>s(function(e,t){return{type:n.$Z,value:{taskIdx:e,stats:t}}}(e,t))))}}},45703:(e,t,s)=>{"use strict";s.d(t,{$Z:()=>ae,BS:()=>J,CJ:()=>k,CN:()=>l,Cy:()=>P,DA:()=>w,DE:()=>Q,ES:()=>q,F:()=>re,Ht:()=>m,Jb:()=>Y,KE:()=>O,Kg:()=>ee,LM:()=>$,NJ:()=>U,Nl:()=>I,R8:()=>F,RS:()=>_,RT:()=>r,Sb:()=>ne,Sr:()=>A,T_:()=>N,WV:()=>T,Xm:()=>x,YW:()=>S,_:()=>d,a0:()=>L,b9:()=>K,fB:()=>j,go:()=>f,hl:()=>y,jo:()=>v,lA:()=>V,lK:()=>p,lZ:()=>W,mX:()=>X,mo:()=>H,nA:()=>se,nU:()=>n,ol:()=>h,p2:()=>z,qI:()=>c,r$:()=>G,r0:()=>D,rT:()=>B,ro:()=>E,rx:()=>b,sH:()=>g,se:()=>o,sk:()=>C,tc:()=>M,te:()=>te,th:()=>i,u8:()=>R,xw:()=>Z,yF:()=>a,yM:()=>u});const n="SET_PERMALINK_FRAGMENT",r="SET_USER_DATA",a="FAVORITE_CURRENT_REGEX",i="SET_COOKIE",o="SET_GENERAL_TITLE",l="SET_GENERAL_TAGS",c="SET_CARBON_SPONSOR",u="SET_CURRENT_THEME",d="SET_PERMALINK_EDITABLE",h="SET_DOCUMENT_TITLE",p="SET_META_DESCRIPTION",g="SET_USER_HISTORY",m="UPDATE_ACCOUNT_DATA",x="SET_REGEX_TAGS",f="RESET_USER_HISTORY",v="SET_SETTINGS",b="SAVE_STORAGE",j="STORAGE_SAVED",C="STORAGE_LOADED",Z="SAVE_REGEX_EDITOR_STATE",y="SET_REGEX_FLAVOR",E="TOGGLE_RIGHT_SIDEBAR_SUBSECTION",T="SET_ACTIVE_SUBSECTION",k="SET_RIGHT_SIDEBAR_WIDTH",N="SHOW_SUBSTITUTION_AREA",S="SHOW_UNIT_TEST_AREA",_="SHOW_MATCH_AREA",w="SET_REGEX_FLAGS",A="SET_REGEX_DELIMITER",O="SET_REGEX_RESULT",I="SET_REGEX_ERROR",R="SET_SUBSTITUTION",P="SET_TEST_STRING",L="SET_REGEX",M="SET_UNIT_TESTS_ACTIVE",D="SET_REGEX_VERSIONS",U="UPDATE_REGEX_AREA_PARSER",F="SHOW_LIST_SUBSTITUTION_AREA",G="SET_LIST_SUBSTITUTION",V="ADD_UNIT_TEST",B="DELETE_UNIT_TEST",$="EDIT_UNIT_TEST",H="MOVE_UNIT_TEST",q="SET_UNIT_TEST_STATUS",z="START_UNIT_TESTING",W="FINISH_UNIT_TESTING",Y="SET_UNIT_TEST_FILTER",K="SET_LIBRARY_DATA",J="VOTE_LIBRARY_ENTRY",X="SET_LIBRARY_DETAILS",Q="SET_LIBRARY_ENTRY_METADATA",ee="SET_LIBRARY_FAVORITE",te="SET_QUIZ_TASKS",se="SET_QUIZ_TASK_ERROR",ne="SET_QUIZ_TASK_DONE",re="UPDATE_QUIZ_TASK_ENTRY",ae="SET_QUIZ_STATISTICS"},68692:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c,e:()=>u});var n=s(48186),r=s(45703),a=s(55511),i=s.n(a),o=s(61348),l=s.n(o);const c=function(e,t,s){let n=t;s!==l().PCRE&&s!==l().PCRE2||!e.includes("y")?s===l().JAVASCRIPT&&e.includes("A")&&(n=n.replace("A","y")):n=n.replace("y","A"),s===l().DOTNET&&(e.includes("N")&&t.includes("R")?n=n.replace("N",""):e.includes("R")&&t.includes("N")&&(n=n.replace("R","")));let a=u(n,s);if(s===l().PYTHON){const t=a.includes("u"),s=a.includes("a");e.includes("a")&&t?a=a.replace("a",""):(e.includes("u")&&s||t&&s)&&(a=a.replace("u",""))}return{type:r.DA,value:a}};function u(e,t){return(0,n.Z)(e.replace(new RegExp(`[^${i()[t]}]`,"g"),"")).join("")}},73963:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var n=s(45703);function r(e){return{type:n.yM,value:e}}},75558:(e,t,s)=>{"use strict";s.d(t,{Bt:()=>m,Go:()=>d,OH:()=>o,SX:()=>g,Wr:()=>v,aQ:()=>a,bU:()=>h,dg:()=>u,sh:()=>l,tZ:()=>i,tp:()=>c,uZ:()=>p,uv:()=>x,vI:()=>f});var n=s(61348),r=s.n(n);const a="javascript",i="php",o="python",l="csharp",c="java",u="ruby",d="rust",h="golang",p="perl",g="autoit",m="SED",x="swift5_2",f=[{value:a,string:"JavaScript",referencePage:"https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions"},{value:i,string:"PHP",referencePage:"http://php.net/manual/en/ref.pcre.php"},{value:o,string:"Python",referencePage:"https://docs.python.org/3/library/re.html"},{value:l,string:"C#",referencePage:"https://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex(v=vs.110).aspx"},{value:c,string:"Java",referencePage:"https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html"},{value:u,string:"Ruby",referencePage:"http://ruby-doc.org/core-2.2.0/Regexp.html"},{value:d,string:"Rust",referencePage:"https://docs.rs/regex/latest/regex/"},{value:h,string:"Golang",referencePage:"https://golang.org/pkg/regexp/"},{value:p,string:"Perl",referencePage:"http://perldoc.perl.org/perlre.html"},{value:g,string:"AutoIt",referencePage:"https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm"},{value:m,string:"SED",referencePage:"https://www.gnu.org/software/sed/manual/html_node/The-_0022s_0022-Command.html"},{value:x,string:"Swift 5.2",referencePage:"https://developer.apple.com/documentation/foundation/nsregularexpression"}].sort(((e,t)=>e.string.localeCompare(t.string)));function v(e){switch(e){case r().PCRE2:case r().PCRE:return i;case r().GOLANG:return h;case r().JAVASCRIPT:return a;case r().PYTHON:return o;case r().JAVA:return c;case r().DOTNET:return l;case r().RUST:return d;default:return a}}},17650:(e,t,s)=>{"use strict";s.d(t,{Z:()=>p});var n=s(45987),r=s(67294),a=s(94184),i=s.n(a),o=s(85893);const l=["className","children"],c=e=>{let t=e.className,s=e.children,r=(0,n.Z)(e,l);return(0,o.jsx)("div",Object.assign(Object.assign({className:i()("WLU1r","BcuOd",t)},r),{},{children:s}))},u=(0,r.memo)(c),d=["icon","children"],h=e=>{let t=e.icon,s=e.children,r=(0,n.Z)(e,d);return(0,o.jsxs)(u,Object.assign(Object.assign({},r),{},{children:[t&&(0,o.jsx)(t,{size:14,className:"FvZHv"}),s]}))},p=(0,r.memo)(h)},45524:(e,t,s)=>{"use strict";s.d(t,{Z:()=>d});var n=s(45987),r=s(67294),a=s(94184),i=s.n(a),o=s(79352),l=s(85893);const c=["isActive","className","children"],u=e=>{let t=e.isActive,s=e.className,r=e.children,a=(0,n.Z)(e,c);return(0,l.jsxs)("div",Object.assign(Object.assign({className:i()("rocdx",t&&"wxNpu",s)},a),{},{children:[(0,l.jsx)("div",{className:"u_Q0A",children:r}),t&&(0,l.jsx)(o.xuy,{size:16,className:"zxc_j"})]}))},d=(0,r.memo)(u)},58294:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var n=s(45987),r=s(67294),a=s(46175),i=s(17650),o=s(85893);const l=["icon","children","className"],c=e=>{let t=e.icon,s=e.children,r=e.className,c=(0,n.Z)(e,l);return(0,o.jsx)(a.Z,Object.assign(Object.assign({},c),{},{children:(0,o.jsx)(i.Z,{icon:t,children:s,className:r})}))},u=(0,r.memo)(c)},46175:(e,t,s)=>{"use strict";s.d(t,{Z:()=>d});var n=s(45987),r=s(67294),a=s(94184),i=s.n(a),o=s(68821),l=s(85893);const c=["isDisabled","className","children","onClick"],u=e=>{let t=e.isDisabled,s=e.className,r=e.children,a=e.onClick,u=(0,n.Z)(e,c);const d=i()("tu7rF",s,t&&"QTYb3");return null!=a?(0,l.jsx)(o.Yd,Object.assign(Object.assign({tag:"li",disabled:t,className:d,onClick:a},u),{},{children:r})):(0,l.jsx)("li",Object.assign(Object.assign({className:d},u),{},{children:r}))},d=(0,r.memo)(u)},62238:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var n=s(45987),r=s(67294),a=s(68821),i=s(85893);const o=["className","children","header","headerChildren"],l=e=>{let t=e.className,s=e.children,r=e.header,l=e.headerChildren,c=(0,n.Z)(e,o);return(0,i.jsxs)("div",Object.assign(Object.assign({className:t},c),{},{children:[!!r&&(0,i.jsx)(a.__,{text:r,className:"bjLBV",children:l}),(0,i.jsx)("ul",{className:"yEXrR",children:s})]}))},c=(0,r.memo)(l)},6527:(e,t,s)=>{"use strict";s.d(t,{Z:()=>d});var n=s(45987),r=s(67294),a=s(94184),i=s.n(a),o=s(58294),l=s(85893);const c=["children","className","rightElement","monospace"],u=e=>{let t=e.children,s=e.className,r=e.rightElement,a=e.monospace,u=void 0===a||a,d=(0,n.Z)(e,c);return(0,l.jsxs)(o.Z,Object.assign(Object.assign({className:i()("VZGjx",s)},d),{},{children:[(0,l.jsx)("div",{className:"Lta24",children:t}),(0,l.jsx)("div",{className:i()("IVPLo",u&&"i8N8D"),children:r})]}))},d=(0,r.memo)(u)},80362:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var n=s(45987),r=s(67294),a=s(58294),i=s(45524),o=s(85893);const l=["isActive","children"],c=e=>{let t=e.isActive,s=e.children,r=(0,n.Z)(e,l);return(0,o.jsx)(a.Z,Object.assign(Object.assign({},r),{},{children:(0,o.jsx)(i.Z,{children:s,isActive:t})}))},u=(0,r.memo)(c)},42613:(e,t,s)=>{"use strict";s.d(t,{Z:()=>f});var n=s(67294),r=s(94184),a=s.n(r),i=s(79352),o=s(69574),l=s(86565),c=s(59747),u=s(14882),d=s(68821);const h="UGBuq",p="Mveik";var g=s(85893);const m=(0,c.Z)(u.E2),x={appear:h,appearActive:p,enter:h,enterActive:p,exit:"T8Z3r",exitActive:"sAd7O"},f=({children:e,isOpen:t,className:s,isLoading:r,onModalClose:c})=>{const u=(0,n.useCallback)((e=>{r||(e.stopPropagation(),c())}),[c,r]),h=(0,n.useCallback)((e=>e.stopPropagation()),[]);return(0,n.useEffect)((()=>(t&&o.ZP.on("key:escape",u),()=>o.ZP.off("key:escape",u))),[t,u]),(0,g.jsx)(d.h_,{isOpen:t,closeTimeout:m,children:(0,g.jsx)(d.uT,{className:"CL1DJ",classNames:x,timeout:m,in:t,children:(0,g.jsx)(d.iQ,{children:(0,g.jsx)("div",{className:"Uj2uD",role:"dialog",onClick:u,children:(0,g.jsxs)("div",{className:a()("pvMZe",s),onClick:h,children:[(0,g.jsx)(d.Yd,{className:a()("o1E1z",r&&"dIKNo"),onClick:u,"aria-label":(0,l.Z)("Close"),children:(0,g.jsx)(i.eSQ,{size:24,className:"ghZGL"})}),e]})})})})})}},45527:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(45987),r=s(94184),a=s.n(r),i=s(85893);const o=["children","className"],l=e=>{let t=e.children,s=e.className,r=(0,n.Z)(e,o);return(0,i.jsx)("div",Object.assign(Object.assign({className:a()("qC93k",s)},r),{},{children:t}))}},52936:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var n=s(45987),r=s(79352),a=s(68821),i=s(58090),o=s(85893);const l=["children","isLoading","hasError","errorText"],c=e=>{let t=e.children,s=e.isLoading,c=e.hasError,u=e.errorText,d=(0,n.Z)(e,l);return(0,o.jsxs)("div",Object.assign(Object.assign({className:"xJ9FN"},d),{},{children:[s&&(0,o.jsx)(a.$j,{className:"KxTrS",size:i.J7.TC}),c&&(0,o.jsx)(a.lx,{text:u,direction:i.qF.N,children:(0,o.jsx)("div",{className:"tjcDo",role:"alert",children:(0,o.jsx)(r.j6O,{size:20})})}),t]}))}},50006:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(45987),r=s(94184),a=s.n(r),i=s(85893);const o=["children","className"],l=e=>{let t=e.children,s=e.className,r=(0,n.Z)(e,o);return(0,i.jsx)("h3",Object.assign(Object.assign({className:a()("pIQMq",s)},r),{},{children:t}))}},61399:(e,t,s)=>{"use strict";s.d(t,{Z:()=>h});var n=s(67294),r=s(86565),a=s(68821),i=s(58090),o=s(42613),l=s(50006),c=s(45527),u=s(52936),d=s(85893);const h=({shortcuts:e,onModalClose:t,isOpen:s})=>(0,d.jsxs)(o.Z,{onModalClose:t,isOpen:s,className:"Lc3cW",children:[(0,d.jsx)(l.Z,{children:(0,r.Z)("Keyboard Shortcuts")}),(0,d.jsx)(c.Z,{children:(0,d.jsxs)("table",{className:"Ooj_l",children:[(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"P07mv",children:(0,r.Z)("Shortcut")}),(0,d.jsx)("th",{className:"iXeHu",children:(0,r.Z)("Description")})]})}),(0,d.jsx)("tbody",{children:e.map((({description:e,shortcuts:t},s)=>(0,d.jsxs)("tr",{className:"tt9uJ",children:[(0,d.jsx)("td",{className:"wE5nz",children:t.map(((e,s)=>(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:"cGBV0",children:(0,d.jsx)(a.aX,{shortcut:e})}),s!==t.length-1&&` ${(0,r.Z)("or")} `]},`shortcut-${e}-${s}`)))}),(0,d.jsx)("td",{children:e})]},`shortcut-${s}`)))})]})}),(0,d.jsx)(u.Z,{children:(0,d.jsx)(a.zx,{text:(0,r.Z)("Close"),onClick:t,type:i.V5.n1})})]})},16386:(e,t,s)=>{"use strict";s.d(t,{DC:()=>u,FS:()=>i,GU:()=>h,VO:()=>p,Xg:()=>o,u0:()=>l,wU:()=>c,xz:()=>d});var n=s(86565),r=s(68821),a=s(85893);const i="DOES_MATCH",o="DOES_NOT_MATCH",l="STARTS_WITH",c="ENDS_WITH",u="CONTAINS",d="EQUALS",h="IS_NULL",p={[i]:(0,n.Z)("does match"),[o]:(0,a.jsx)(r.vV,{text:"does {1} match",ph1:(0,a.jsx)("em",{style:{textDecoration:"underline"},children:(0,n.Z)("not")})}),[l]:(0,n.Z)("starts with"),[c]:(0,n.Z)("ends with"),[u]:(0,n.Z)("contains"),[d]:(0,n.Z)("equals"),[h]:(0,n.Z)("is null")}},96546:(e,t,s)=>{"use strict";s.d(t,{H:()=>a,m:()=>r});var n=s(86565);const r="REGEX";function a(e,t={}){if(e===r)return(0,n.Z)("regex");if(0===e)return(0,n.Z)("full match");let s=e;const a=t[e];return null!=a&&e!=a&&(s+=` (${a})`),(0,n.Z)("capture group {1}",s)}},56264:(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s(70743),r=s(68821),a=s(69537),i=s(85893);const o=({className:e,children:t,to:s="debugger"})=>{const o=(0,n.v9)((e=>e.regexEditor.flavor));return(0,a.G)(o)?(0,i.jsx)(r.rU,{to:s,className:e,children:t}):null}},56315:(e,t,s)=>{"use strict";s.d(t,{Z:()=>p});var n=s(45987),r=s(67294),a=s(94184),i=s.n(a),o=s(68821),l=s(58090),c=s(68654),u=s(85893);const d=["tooltip","tooltipDirection","children","size","className","style"],h=e=>{let t=e.tooltip,s=e.tooltipDirection,a=void 0===s?l.qF.N:s,h=e.children,p=e.size,g=void 0===p?22:p,m=e.className,x=e.style,f=void 0===x?{}:x,v=(0,n.Z)(e,d);return!h||h.length>1?null:(0,u.jsx)(o.lx,{text:t,direction:a,children:(0,u.jsxs)(o.rU,Object.assign(Object.assign({className:i()(c.Z.iconButton,m),style:Object.assign(Object.assign({},f),{},{width:g,height:g})},v),{},{children:[(0,u.jsx)(o._G,{children:t}),(0,r.cloneElement)(h,Object.assign(Object.assign({},h.props),{},{className:i()(h.props.className,c.Z.icon)}))]}))})},p=(0,r.memo)(h)},34061:(e,t,s)=>{"use strict";s.d(t,{$0:()=>f,ZP:()=>v,mc:()=>x});var n=s(45987),r=s(67294),a=s(94184),i=s.n(a),o=s(31807),l=s.n(o),c=s(17159),u=s(11124),d=s(59747),h=s(14882),p=s(84682),g=s(85893);const m=["children","className","component","appear","enter","exit","unmountOnExit","mountOnEnter","timeout","classNames","style","in","forceAnimation","onMount"],x=(0,d.Z)(h.mc),f={appear:p.Z.enter,appearActive:p.Z.enterActive,enter:p.Z.enter,enterActive:p.Z.enterActive,exit:p.Z.leave,exitActive:p.Z.leaveActive},v=(0,r.forwardRef)(((e,t)=>{let s=e.children,a=e.className,o=e.component,d=void 0===o?"div":o,h=e.appear,v=void 0===h||h,b=e.enter,j=void 0===b||b,C=e.exit,Z=void 0===C||C,y=e.unmountOnExit,E=void 0===y||y,T=e.mountOnEnter,k=void 0===T||T,N=e.timeout,S=e.classNames,_=e.style,w=e.in,A=e.forceAnimation,O=e.onMount,I=(0,n.Z)(e,m),R=(0,u.Z)();A&&(R=!1);const P=(0,r.useRef)(null),L=(0,g.jsx)(d,{className:i()(a,R&&p.Z.reduceMotion),style:_,ref:t||P,children:s});return(0,r.useEffect)((()=>{null==O||O()}),[O]),l()?"visible"===document.visibilityState||!1===document.hidden||document.hasFocus()?(0,g.jsx)(c.Z,Object.assign(Object.assign({classNames:R?f:S,timeout:R?x:N,appear:v,enter:j,exit:Z,mountOnEnter:k,unmountOnExit:E,in:w,nodeRef:t||P},I),{},{children:L})):(0,g.jsx)(c.Z,Object.assign(Object.assign({className:i()(a,R&&p.Z.reduceMotion),classNames:R?f:S,timeout:R?x:N,appear:!1,enter:!1,exit:Z,mountOnEnter:k,unmountOnExit:E,in:w,nodeRef:t||P},I),{},{children:L})):L}))},47519:(e,t,s)=>{"use strict";s.d(t,{L:()=>h,Z:()=>g});var n=s(98152),r=s(45987),a=s(67294),i=s(94184),o=s.n(i),l=s(70743);const c="qjDbF";var u=s(85893);const d=["text","removeNewlines","className","markerClassName","minimal"],h={0:"NUL",1:"SOH",2:"STX",3:"ETX",4:"EOT",5:"ENQ",6:"ACK",7:"BEL",8:"BKSP",9:"HT",10:"LF",11:"VT",12:"FF",13:"CR",27:"ESC"},p=e=>{let t=e.text,s=e.removeNewlines,a=e.className,i=e.markerClassName,p=e.minimal,g=(0,r.Z)(e,d);const m=(0,l.v9)((e=>e.settings.displayWhitespace));if(!m&&!s)return(0,u.jsx)("span",Object.assign(Object.assign({className:a},g),{},{children:t}));const x=!m&&s?/\r\n?|\n/g:/\r\n?|[ \n\t\f\v\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,f=t.split(x);if(f.length<=1)return p?t:(0,u.jsx)("span",Object.assign(Object.assign({className:a},g),{},{children:t}));const v=t.match(x);return f.reduce(((e,t,r)=>{const l=v[r];if(!l)return[...e,t];const d="\n"===l||"\r"===l||"\r\n"===l,p=" "===l||d,g=function(e){if(/[\r\n]/.test(e))return[c,"\u21b5"];if(e.length>1)throw new Error(`Marker length greater than 1, string: "${e}"`);if(" "===e)return[c,"\u2022"];if("\t"===e)return["YHF8J"," "];const t=e.codePointAt(0);return["sej3F",h[t]||`U+${("0000"+t.toString(16).toUpperCase()).slice(-4)}`]}(l),m=(0,n.Z)(g,2),x=m[0],f=m[1],b=s&&d?(0,u.jsx)("span",{className:o()(a,i,x,"iHZok"),"data-whitespace":p,children:f},`special-char-${r}`):(0,u.jsx)("span",{className:o()(a,i,x,"Ue7my",d&&"XMwPP"),"data-content":f,"data-whitespace":p,children:d?"\n":l},`special-char-${r}`);return[...e,t,b]}),[])},g=(0,a.memo)(p)},68821:(e,t,s)=>{"use strict";s.d(t,{Yd:()=>L,zx:()=>F,FX:()=>Ce,gx:()=>ye,qi:()=>Se,Yi:()=>Ae.Z,SV:()=>Pe,Tv:()=>_e,iQ:()=>De,aX:()=>We,hU:()=>xe,x6:()=>Ue.Z,CP:()=>$e,__:()=>u,rU:()=>te,Po:()=>ve,A5:()=>we,qX:()=>m,h_:()=>V,l_:()=>Ge,_G:()=>Ie,I2:()=>Le,$j:()=>ae,vV:()=>A,Yv:()=>he,oi:()=>K,lx:()=>k,uT:()=>ie.ZP,K:()=>Oe.Z});var n=s(45987),r=s(94184),a=s.n(r),i=s(58090);const o={root:"dYInr",small:"z2wCE",medium:"yBUBH",large:"m46EU",overflow:"JOzNE",required:"uJMuU"};var l=s(85893);const c=["size","text","className","children","allowOverflow","required"],u=e=>{let t=e.size,s=void 0===t?i.J7.HC:t,r=e.text,u=e.className,d=e.children,h=e.allowOverflow,p=e.required,g=(0,n.Z)(e,c);return(0,l.jsxs)("h2",Object.assign(Object.assign({className:a()(o.root,!h&&o.overflow,o[s],u)},g),{},{children:[(0,l.jsx)("span",{className:a()(!h&&o.overflow),children:r}),p&&(0,l.jsx)("span",{className:o.required,children:" *"}),d]}))};var d=s(67294);const h={error:"zyVia",warn:"wxY97",info:"ZHUJ9",success:"QsetX",margin:"_2SqQ"},p=["type","children","className","noMargin"],g=e=>{let t=e.type,s=void 0===t?i.gr.H_:t,r=e.children,o=e.className,c=e.noMargin,u=(0,n.Z)(e,p);return s===i.gr.pn&&(u.role=u.role||"alert",c=!0),(0,l.jsx)("div",Object.assign(Object.assign({className:a()(h[s],!c&&h.margin,o)},u),{},{children:r}))},m=(0,d.memo)(g);var x=s(98152),f=s(31807),v=s.n(f),b=s(83950),j=s(59747),C=s(14882);const Z={portal:"B5ZQm",animation:"W1cZe",tooltipped:"VkxC6","tooltipped-s":"tpO8n","tooltipped-se":"rRIcU","tooltipped-sw":"rxR8J","tooltipped-n":"HEiJb","tooltipped-ne":"C8D6d","tooltipped-nw":"_LdAA","tooltipped-w":"ItfZm","tooltipped-e":"G0Q1B",multiline:"IE41R","tooltipped-sticky":"prZOI",enter:"_e9G1",enterActive:"cSwfV",leave:"y9o0V",leaveActive:"UuK9m"},y=v()&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),E=(0,j.Z)(C.DP),T={appear:Z.enter,appearActive:Z.enterActive,enter:Z.enter,enterActive:Z.enterActive,exit:Z.leave,exitActive:Z.leaveActive},k=({direction:e=i.qF.S,text:t,children:s,disableTooltip:n,multiline:r})=>{const o=(0,d.useRef)({}),c=(0,d.useState)(!1),u=(0,x.Z)(c,2),h=u[0],p=u[1],g=(0,d.useRef)(null),m=d.Children.only(s),f=m.ref||g,v=(0,b.Sf)((()=>p(!0)),175,"cancel");if((0,d.useEffect)((()=>{const e=f.current,t=()=>{var e,t;null!=(e=document)&&null!=(t=e.body)&&t.classList.contains("using-keyboard")&&p(!0)},s=()=>{var e,t;v.cancel(),null!=(e=document)&&null!=(t=e.body)&&t.classList.contains("using-keyboard")&&p(!1)},n=()=>{v.cancel(),p(!1)},r=t=>{null!=e&&e.contains(t.target)||e===t.target||n()};return e.addEventListener("focus",t,{passive:!0}),e.addEventListener("blur",s,{passive:!0}),e.addEventListener("mouseenter",v,{passive:!0}),e.addEventListener("mouseleave",n,{passive:!0}),document.body.addEventListener("click",r,{passive:!0}),()=>{v.cancel(),e.removeEventListener("focus",t,{passive:!0}),e.removeEventListener("blur",s,{passive:!0}),e.removeEventListener("mouseenter",v,{passive:!0}),e.removeEventListener("mouseleave",n,{passive:!0}),document.body.removeEventListener("click",r,{passive:!0})}}),[f,v]),(0,d.useEffect)((()=>{(m.props.disabled||m.props.isDisabled)&&(v.cancel(),p(!1))}),[m.props.disabled,m.props.isDisabled,v]),f.current&&h){const t=f.current.getBoundingClientRect();let s,n;switch(o.current={position:"absolute",height:t.height,width:t.width},e){case i.qF.SE:case i.qF.SW:case i.qF.S:s=t.top+t.height,n=t.left;break;case i.qF.NW:case i.qF.NE:case i.qF.N:s=t.top,n=t.left;break;case i.qF.W:case i.qF.E:s=t.top+t.height/2,n=t.left;break;default:throw new Error(`Unhandled tooltip direction ${e}`)}o.current.top=Math.round(s),o.current.left=Math.round(n)}const j=!n&&!y&&h;return(0,l.jsxs)(l.Fragment,{children:[(0,d.cloneElement)(m,{ref:f,"aria-label":m.props["aria-label"]||t}),(0,l.jsx)(V,{isOpen:j,closeTimeout:E,className:Z.portal,children:(0,l.jsx)(ie.ZP,{className:Z.animation,classNames:T,timeout:E,style:o.current,in:j,children:(0,l.jsx)("div",{className:a()(Z.tooltipped,r&&Z.multiline,Z[`tooltipped-${e}`]),role:"tooltip",children:(0,l.jsx)("span",{children:t})})})})]})};var N=s(86565);const S=["text","tag","className","style"],_=/{[1-9]\d*}/g,w=e=>{let t=e.text,s=e.tag,r=void 0===s?"span":s,a=e.className,i=e.style,o=(0,n.Z)(e,S);const c=t.match(_);if(!c)return(0,l.jsx)(r,{className:a,style:i,children:(0,N.Z)(t,...Object.values(o))});const u=t.split(_);return(0,l.jsx)(r,{className:a,style:i,children:u.reduce(((e,t,s)=>{if(!c[s])return[...e,t];const n=c[s].slice(1,-1),r=o[`ph${n}`];return[...e,t,(0,l.jsx)(d.Fragment,{children:r},t+s)]}),[])})},A=(0,d.memo)(w);var O=s(45697),I=s.n(O);const R=["tag","className","onClick","disabled"],P=(0,d.forwardRef)(((e,t)=>{let s=e.tag,r=void 0===s?"button":s,i=e.className,o=e.onClick,c=e.disabled,u=(0,n.Z)(e,R);const h=(0,d.useCallback)((e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o(e))}),[o]);return"button"!==r&&(u.role=u.role||"button",u.tabIndex=u.tabIndex||0,c||(u.onKeyUp=h)),c&&(u.tabIndex=-1,u.disabled=!0),"button"===r&&(u.type="button"),(0,l.jsx)(r,Object.assign({className:a()("b0Wk4",c&&"KOowz",i),onClick:c?void 0:o,ref:t,"aria-disabled":c},u))})),L=(0,d.memo)(P),M={okButton:"KlLjA",cancelButton:"o0XbU",dangerButton:"LHBOD",disabled:"TzGX0"},D=["text","type","className","disabled"],U=(0,d.forwardRef)(((e,t)=>{let s=e.text,r=e.type,o=void 0===r?i.V5.OK:r,c=e.className,u=e.disabled,d=(0,n.Z)(e,D);return(0,l.jsx)(L,Object.assign(Object.assign({className:a()(M[o],c,u&&M.disabled),"aria-label":s,disabled:u,ref:t},d),{},{children:s}))}));U.propTypes={text:I().string.isRequired,type:I().oneOf(i.V5.$6),className:I().string,disabled:I().bool};const F=(0,d.memo)(U);var G=s(73935);const V=({className:e,children:t,onPortalRef:s,isOpen:n=!0,closeTimeout:r=0,portalTarget:a})=>{const i=null==a&&v()?document.body:a,o=(0,d.useState)(!1),c=(0,x.Z)(o,2),u=c[0],h=c[1],p=(0,d.useRef)(),g=(0,d.useRef)();(0,d.useLayoutEffect)((()=>{u&&(null==s||s(p.current))}),[s,u]),(0,d.useEffect)((()=>(n&&(clearTimeout(g.current),null==p.current&&(p.current=document.createElement("div"),i.appendChild(p.current)),h(!0)),()=>{null!=p.current&&(clearTimeout(g.current),g.current=setTimeout((()=>{var e;h(!1),null==(e=p.current)||e.remove(),p.current=null,null==s||s(null)}),r))})),[n,i,r,s]),(0,d.useEffect)((()=>{null!=p.current&&null!=e&&(p.current.className=e)}),[n,e]),(0,d.useEffect)((()=>()=>{var e;clearTimeout(g.current),null==(e=p.current)||e.remove(),p.current=null,null==s||s(null)}),[s]);const m=d.Children.only(t);return v()?u&&null!=m&&null!=p.current?G.createPortal(m,p.current):null:(0,l.jsx)("div",{style:{display:"none"},children:m})};var B=s(79352),$=s(69574),H=s(35579);const q=({maxLength:e,currentLength:t=0,multiline:s})=>{const n=a()("MaQ5e",!s&&"kRYUB");return e?(0,l.jsx)("div",{className:n,children:`${t}/${e}`}):(0,l.jsx)("div",{className:n,children:t})},z=(0,d.memo)(q),W=["onChange","className","codeInput","value","defaultValue","multiline","readOnly","maxlength","validation","showLengthCounter","selectOnMount","selectOnFocus","focusOnMount","wrappedClassName","copyButton","clearButton"],Y=(0,d.forwardRef)(((e,t)=>{let s=e.onChange,r=e.className,o=e.codeInput,c=e.value,u=e.defaultValue,h=e.multiline,p=void 0!==h&&h,g=e.readOnly,m=e.maxlength,f=e.validation,v=e.showLengthCounter,b=e.selectOnMount,j=e.selectOnFocus,C=e.focusOnMount,Z=e.wrappedClassName,y=e.copyButton,E=e.clearButton,T=(0,n.Z)(e,W);const S=(0,d.useState)(""),_=(0,x.Z)(S,2),w=_[0],A=_[1],O=(0,d.useState)(!1),I=(0,x.Z)(O,2),R=I[0],P=I[1],M=(0,d.useState)(!1),D=(0,x.Z)(M,2),U=D[0],F=D[1],G=(0,d.useRef)(null),V=t||G;(0,d.useEffect)((()=>{let e=null;return R&&(e=setTimeout((()=>P(!1)),400)),()=>{clearTimeout(e)}}),[R]),(0,d.useEffect)((()=>{null!=c&&A(c)}),[c]);const q=(0,d.useCallback)((()=>{$.ZP.emit($.B3,H.LEFT_ARROW),$.ZP.emit($.B3,H.RIGHT_ARROW),$.ZP.emit($.B3,H.SHIFT_LEFT_ARROW),$.ZP.emit($.B3,H.SHIFT_RIGHT_ARROW),F(!0)}),[]),Y=(0,d.useCallback)((()=>{$.ZP.emit($.LG,H.LEFT_ARROW),$.ZP.emit($.LG,H.RIGHT_ARROW),$.ZP.emit($.LG,H.SHIFT_LEFT_ARROW),$.ZP.emit($.LG,H.SHIFT_RIGHT_ARROW),F(!1)}),[]),K=(0,d.useCallback)((e=>{if(g)return;const t=e.target.value;f&&!f.test(t)||m&&m<t.length?(P(!0),null==s||s(w)):(P(!1),A(t),null==s||s(t))}),[w,m,f,s,g]),J=(0,d.useCallback)((()=>{P(!1),A(""),null==s||s("")}),[s]);(0,d.useEffect)((()=>{null!=u&&A(u)}),[u]),(0,d.useEffect)((()=>{(b||C)&&setTimeout((()=>{var e;return null==(e=V.current)?void 0:e.focus()}))}),[]),(0,d.useEffect)((()=>{U&&j&&V.current.select()}),[V,j,U]);const X=p?"textarea":"input",Q=E&&!g&&!p&&!m&&!v&&w.length>0;return(0,l.jsxs)("div",{className:a()("OSM2Q",R&&"YUotv",U&&"E646T",g&&"qPEQx",Z),children:[(0,l.jsx)(X,Object.assign(Object.assign({},T),{},{className:a()("vNcES",o&&"zLfBM",y&&"L6fuH",Q&&"svJgY",(m||v)&&!p&&"Nih6H",r),onChange:K,onFocus:q,onBlur:Y,value:w,ref:V})),Q&&(0,l.jsx)(k,{text:(0,N.Z)("Clear"),direction:i.qF.NW,children:(0,l.jsx)(L,{onClick:J,className:"e8Fwv",children:(0,l.jsx)(B.eSQ,{size:20})})}),(m||v)&&(0,l.jsx)(z,{maxLength:m,currentLength:w.length,multiline:p}),y&&(0,l.jsx)(Se,{className:"mha2w",copyText:w,basic:!0})]})})),K=(0,d.memo)(Y);var J=s(89250),X=s(79655);const Q=["to","absolute","children","noTheme","className","activeClassName","activeRegex"],ee=(0,d.forwardRef)(((e,t)=>{let s=e.to,r=e.absolute,i=void 0!==r&&r,o=e.children,c=e.noTheme,u=void 0!==c&&c,d=e.className,h=e.activeClassName,p=e.activeRegex,g=(0,n.Z)(e,Q);const m=(0,J.TH)().pathname,x=null!=p&&p.test(m),f=a()("HnB3F",!u&&"kKIV1",x&&h,d);return i?(0,l.jsx)("a",Object.assign(Object.assign({href:s,className:f,rel:"noopener",ref:t},g),{},{children:o})):(0,l.jsx)(X.rU,Object.assign(Object.assign({to:s,className:f,ref:t},g),{},{children:o}))})),te=(0,d.memo)(ee),se={loading:"Pv6NV",large:"K5n25",medium:"uo2S1",small:"LbYg5",tiny:"u06aC"},ne=["className","size"],re=e=>{let t=e.className,s=e.size,r=void 0===s?i.J7.M2:s,o=(0,n.Z)(e,ne);return(0,l.jsx)("div",Object.assign({className:a()(se.loading,t,se[r]),"aria-label":(0,N.Z)("Loading...")},o))},ae=(0,d.memo)(re);var ie=s(34061),oe=s(37731),le=s(25913),ce=s(12541);const ue=["target","placement"],de={name:"applyMaxSize",enabled:!0,phase:"beforeWrite",requires:["maxSize"],fn({state:e}){const t=e.modifiersData.maxSize.height;e.styles.popper.maxHeight=`${t}px`}},he=e=>{let t=e.target,s=e.placement,r=(0,n.Z)(e,ue);const a=(0,d.useRef)(null);(0,d.useEffect)((()=>()=>{var e;return null==(e=a.current)?void 0:e.destroy()}),[]);const i=(0,d.useCallback)((e=>{var n;e?a.current=(0,oe.fi)(t,e,{placement:s,modifiers:[Object.assign(Object.assign({},ce.Z),{},{options:{padding:10}}),de,le.Z],rootBoundary:"viewport"}):null==(n=a.current)||n.destroy()}),[t,s]);return(0,l.jsx)(V,Object.assign(Object.assign({},r),{},{onPortalRef:i}))};var pe=s(68654);const ge=["tooltip","tooltipDirection","className","children","disabled","size","isLoading"],me=(0,d.forwardRef)(((e,t)=>{let s=e.tooltip,r=e.tooltipDirection,o=void 0===r?i.qF.N:r,c=e.className,u=e.children,h=e.disabled,p=e.size,g=void 0===p?22:p,m=e.isLoading,x=void 0!==m&&m,f=(0,n.Z)(e,ge);return!u||u.length>1?null:(0,l.jsx)(k,{text:s,direction:o,children:(0,l.jsxs)(L,Object.assign(Object.assign({className:a()(pe.Z.iconButton,h&&pe.Z.disabled,c),disabled:h},f),{},{style:{width:g,height:g},ref:t,children:[(0,d.cloneElement)(u,Object.assign(Object.assign({},u.props),{},{className:a()(u.props.className,pe.Z.icon)})),x&&(0,l.jsx)("div",{className:pe.Z.spinner,children:(0,l.jsx)(ae,{style:{width:g-12,height:g-12},size:i.J7.HC})})]}))})})),xe=(0,d.memo)(me),fe=["children","className"],ve=e=>{let t=e.children,s=e.className,r=(0,n.Z)(e,fe);return(0,l.jsx)(u,Object.assign(Object.assign({className:a()("icHQ0",s)},r),{},{children:(0,l.jsx)("div",{className:"hwtOd",children:t})}))},be=["collapsed","className","onClick"],je=e=>{let t=e.collapsed,s=e.className,r=e.onClick,i=(0,n.Z)(e,be);return(0,l.jsx)(L,{onClick:r,children:(0,l.jsx)(u,Object.assign(Object.assign({className:a()("MudcX",s)},i),{},{children:(0,l.jsx)("div",{className:"YTTWs",children:t?(0,l.jsx)(B.gcy,{}):(0,l.jsx)(B.ZXJ,{})})}))})},Ce=(0,d.memo)(je),Ze=["header","children","className","contentClassName","isVisible"],ye=e=>{let t=e.header,s=e.children,r=e.className,i=e.contentClassName,o=e.isVisible,c=void 0===o||o,u=(0,n.Z)(e,Ze);return(0,l.jsxs)("div",Object.assign(Object.assign({className:a()("gUc_7",r)},u),{},{children:[(0,d.cloneElement)(t,{className:a()("BrhQI",t.props.className)}),c&&(0,l.jsx)("div",{className:a()("D57o9",i),children:(0,d.cloneElement)(s,{className:a()(s.props.className,"KjF06")})})]}))};var Ee=s(55030);const Te=["className","basic","getCopyComponent","copyText"];let ke;v()&&(ke=s(42152));const Ne=e=>{let t=e.className,s=e.basic,r=e.getCopyComponent,o=e.copyText,c=(0,n.Z)(e,Te);const u=(0,d.useRef)(null),h=(0,d.useState)(null),p=(0,x.Z)(h,2),g=p[0],m=p[1];return(0,d.useEffect)((()=>{const e=new ke(u.current,{container:u.current,text(){if(null==r)return o;const e=r();return e.textContent||e.value||""}});let t;const s=e=>{var s;e.clearSelection(),m((0,N.Z)("Copied!")),null==(s=u.current)||s.focus(),clearTimeout(t),t=setTimeout((()=>m(null)),1e3)},n=()=>{m((0,N.Z)("Press {1} to copy",(0,Ee.W5)("c"))),clearTimeout(t),t=setTimeout((()=>m(null)),1e3)};return e.on("success",s),e.on("error",n),()=>{clearTimeout(t),e.off("success",s),e.off("error",n),e.destroy()}}),[r,o]),s?(0,l.jsx)(k,{direction:i.qF.NW,text:g||(0,N.Z)("Copy to clipboard"),children:(0,l.jsx)(L,Object.assign(Object.assign({className:a()("EOaQm",t),onMouseOut:()=>m(null),ref:u},c),{},{children:(0,l.jsx)(B.qA2,{size:16})}))}):(0,l.jsx)(xe,Object.assign(Object.assign({tooltip:g||(0,N.Z)("Copy to clipboard"),tooltipDirection:i.qF.NW,onMouseOut:()=>m(null),size:28,ref:u,className:t},c),{},{children:(0,l.jsx)(B.qA2,{size:14})}))},Se=(0,d.memo)(Ne),_e=({className:e,topPadding:t=0,rightPos:s=0,children:n})=>{const r=(0,d.useRef)(null);return(0,d.useEffect)((()=>{var e;let n;const a=null==(e=r.current)?void 0:e.parentNode,i=()=>{r.current&&(r.current.style.opacity=.01,clearTimeout(n),n=setTimeout((()=>{if(!a||!r.current)return;const e=a.scrollTop,n=a.scrollLeft;r.current.style.opacity=1,r.current.style.top=t+e+"px",r.current.style.left=`calc(100% + ${n-s}px)`}),250))};return a.addEventListener("scroll",i,{capture:!1,passive:!0}),()=>{clearTimeout(n),a.removeEventListener("scroll",i,{capture:!1,passive:!0})}}),[t,s]),(0,l.jsx)("div",{className:a()("WRRyg",e),ref:r,style:{top:t,left:`calc(100% - ${s}px)`},children:n})};function we(){return(0,l.jsx)("noscript",{children:(0,l.jsx)(te,{to:"https://turnonjs.com",absolute:!0,children:(0,N.Z)("Please enable JavaScript to use this web application.")})})}var Ae=s(56264),Oe=s(47519);const Ie=({children:e})=>(0,l.jsx)("span",{className:"M__Pz",children:e});class Re extends d.Component{constructor(...e){super(...e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){}render(){const e=this.props,t=e.fallback,s=e.children,n=e.className;return this.state.hasError?void 0===t?(0,l.jsx)(m,{type:i.gr.pn,className:n,children:(0,N.Z)("An error occurred while fetching the resource")}):t:s}}const Pe=Re,Le=({fallback:e,errorClassName:t,children:s,errorFallback:n})=>v()?(0,l.jsx)(Pe,{className:t,fallback:n,children:(0,l.jsx)(d.Suspense,{fallback:e,children:s})}):e;var Me=s(44291);const De=({children:e})=>{const t=d.Children.only(e),s=(0,d.useRef)(null),n=t.ref||s;return(0,d.useEffect)((()=>{let e;return n.current&&(e=(0,Me.v)(n.current,{returnFocusOnDeactivate:!0,allowOutsideClick:!0}),e.activate()),()=>{var t;clearTimeout(void 0),null==(t=e)||t.deactivate()}}),[n]),(0,d.cloneElement)(t,{ref:n})};var Ue=s(56315),Fe=s(64700);const Ge=e=>((0,d.useContext)(Fe.U),(0,l.jsx)(J.Fg,Object.assign({},e))),Ve=["className","children"],Be=(0,d.forwardRef)(((e,t)=>{let s=e.className,r=e.children,i=(0,n.Z)(e,Ve);return(0,l.jsxs)(L,Object.assign(Object.assign({className:a()("WtMVB",s),ref:t},i),{},{children:[r,(0,l.jsx)(B.ZXJ,{})]}))}));Be.propTypes={className:I().string,children:I().node};const $e=Be;var He=s(70743),qe=s(41664);const ze=({shortcut:e})=>{if((0,He.v9)((e=>e.settings.disableKeyboardShortcuts)))return null;const t=[];e.metaKey&&(Ee.yg&&Ee.yg!==qe.B?Ee.yg===qe.v&&t.push("\u2318"):t.push("ctrl")),e.shiftKey&&t.push("\u21e7"),e.altKey&&t.push("\u2325");let s=null;switch(e.key){case"ArrowLeft":s="\u2190";break;case"ArrowUp":s="\u2191";break;case"ArrowRight":s="\u2192";break;case"ArrowDown":s="\u2193";break;case"PageDown":s="PgDn";break;case"PageUp":s="PgUp";break;case"Enter":s="enter";break;default:s=e.key}return t.push(s),t.join("+")};ze.propTypes={shortcut:I().object.isRequired};const We=(0,d.memo)(ze);s(40378),(0,j.Z)(C.RA)},58090:(e,t,s)=>{"use strict";s.d(t,{qF:()=>r,gr:()=>c,J7:()=>n,V5:()=>a});var n={};s.r(n),s.d(n,{M2:()=>i,HC:()=>o,TC:()=>l});var r={};s.r(r),s.d(r,{E:()=>x,N:()=>m,NE:()=>p,NW:()=>g,S:()=>h,SE:()=>u,SW:()=>d,W:()=>f});var a={};s.r(a),s.d(a,{n1:()=>v,T:()=>j,OK:()=>b,$6:()=>C});const i="medium",o="small",l="tiny";var c=s(79192);const u="se",d="sw",h="s",p="ne",g="nw",m="n",x="e",f="w",v="cancelButton",b="okButton",j="dangerButton",C=[b,v,j]},79192:(e,t,s)=>{"use strict";s.d(t,{H_:()=>a,MR:()=>i,pn:()=>n,u_:()=>r});const n="error",r="warn",a="info",i="success"},26086:e=>{e.exports={ROOT_ELEMENT:"#regex-app",UPDATE_RESULT_DELAY:500,DONATION_LINK:"https://www.paypal.com/donate/?hosted_button_id=83QZGPDJEX4MN",WEBCHAT_LINK:"https://web.libera.chat/?nick=<NICKNAME>&chan=#regex",GROUP_COUNT:6,DELETE_CODES:"regex101-delete-codes",CACHE_NAME:"regex101-cache",SPONSOR_LINK:"https://github.com/sponsors/firasdib",STATE_STORAGE_KEY:"regex101-state",STATE_TEMP_REGEX_EDITOR_KEY:"regex101-temp",DEFAULT_PAGE_TITLE:"build, test, and debug regex",DEFAULT_META_DESCRIPTION:"Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust.",LIBRARY_META_DESCRIPTION:"Search, filter and view user submitted regular expressions in the regex library. Over 20,000 entries, and counting!",QUIZ_META_DESCRIPTION:"Learn regex and challenge yourself in a unique regex quiz: play progressively harder levels and compete with orders in creating the shortest solutions.",SETTINGS_META_DESCRIPTION:"Customize your regex101 experience to suit your needs. Extensive options available: themes, default flavor, site language, and much more.",ACCOUNT_META_DESCRIPTION:"Manage all your regular expressions using your personal account. Add favorites, organize entries with titles and tags, make entries private, and more!"}},18757:(e,t,s)=>{const n=s(61348),r=["/","~","@",";","%","`","#"];e.exports={[n.PCRE2]:r,[n.PCRE]:r,[n.PYTHON]:['"',"'",'"""',"'''"],[n.JAVASCRIPT]:["/","`",'"',"'"],[n.GOLANG]:["`"],[n.JAVA]:['"'],[n.DOTNET]:['"'],[n.RUST]:['"',"#","##","###","####"]}},61348:e=>{const t="pcre",s="pcre2",n="javascript",r="python",a="golang",i="java",o="dotnet",l="rust",c=[t,s,n,r,a,i,o,l];e.exports={PCRE2:s,PCRE:t,PYTHON:r,JAVASCRIPT:n,GOLANG:a,JAVA:i,DOTNET:o,RUST:l,all:c}},35579:(e,t,s)=>{"use strict";s.r(t),s.d(t,{COMMA:()=>u,DOT:()=>d,END:()=>f,ESC:()=>n,HOME:()=>x,LEFT_ARROW:()=>i,META_LEFT_ARROW:()=>h,META_RIGHT_ARROW:()=>p,MINUS:()=>m,PAGE_DOWN:()=>b,PAGE_UP:()=>v,PLUS:()=>g,RIGHT_ARROW:()=>o,RUN_UNIT_TESTS:()=>j,SAVE_REGEX:()=>a,SHIFT_LEFT_ARROW:()=>l,SHIFT_RIGHT_ARROW:()=>c,SHOW_CODE_GEN:()=>N,SHOW_DEBUGGER:()=>k,SHOW_SHORTCUTS:()=>C,SWITCH_TO_LIST:()=>E,SWITCH_TO_MATCH:()=>Z,SWITCH_TO_SUBST:()=>y,SWITCH_TO_UNIT_TESTS:()=>T,UPDATE_REGEX:()=>r});const n={name:"escape",keyCode:[27],key:"Escape",overrideInput:!0},r={name:"updateRegex",key:"s",keyCode:[83],shiftKey:!0,metaKey:!0,alwaysConsume:!0,overrideInput:!0},a={name:"saveRegex",key:"s",keyCode:[83],metaKey:!0,alwaysConsume:!0,overrideInput:!0},i={name:"leftArrow",key:"ArrowLeft",keyCode:[37],overrideInput:!1},o={name:"rightArrow",key:"ArrowRight",keyCode:[39],overrideInput:!1},l={name:"shiftLeftArrow",key:"ArrowLeft",keyCode:[37],shiftKey:!0,overrideInput:!1},c={name:"shiftRightArrow",key:"ArrowRight",keyCode:[39],shiftKey:!0,overrideInput:!1},u={name:"comma",key:",",keyCode:[44],overrideInput:!1},d={name:"dot",key:".",keyCode:[46],overrideInput:!1},h={name:"metaArrowLeft",key:"ArrowLeft",keyCode:[37],metaKey:!0,overrideInput:!1},p={name:"metaArrowRight",key:"ArrowRight",keyCode:[39],metaKey:!0,overrideInput:!1},g={name:"plus",key:"+",keyCode:[107,171],overrideInput:!1},m={name:"minus",key:"-",keyCode:[109,173],overrideInput:!1},x={name:"home",key:"Home",keyCode:[36],overrideInput:!1},f={name:"end",key:"End",keyCode:[35],overrideInput:!1},v={name:"pageUp",key:"PageUp",keyCode:[33],overrideInput:!1},b={name:"pageDown",key:"PageDown",keyCode:[34],overrideInput:!1},j={name:"ctrlEnter",key:"Enter",keyCode:[13],metaKey:!0,overrideInput:!0},C={name:"question",key:"?",keyCode:[171],shiftKey:!0,overrideInput:!1},Z={name:"ctrl1",key:"1",keyCode:[49],metaKey:!0,overrideInput:!0},y={name:"ctrl2",key:"2",keyCode:[50],metaKey:!0,overrideInput:!0},E={name:"ctrl3",key:"3",keyCode:[51],metaKey:!0,overrideInput:!0},T={name:"ctrl4",key:"4",keyCode:[52],metaKey:!0,overrideInput:!0},k={name:"ctrlB",key:"b",keyCode:[66],metaKey:!0,overrideInput:!0},N={name:"ctrlG",key:"g",keyCode:[71],metaKey:!0,overrideInput:!0}},61724:(e,t,s)=>{"use strict";s.r(t),s.d(t,{CHINESE:()=>v,DUTCH:()=>m,ENGLISH:()=>g,FRENCH:()=>x,GERMAN:()=>f,ITALIAN:()=>E,PORTOGUESE:()=>C,ROMANIAN:()=>y,RUSSIAN:()=>Z,SPANISH:()=>j,SWEDISH:()=>b});const n=s.p+"assets/english.ea2c10a3.json",r=s.p+"assets/dutch.369dac6d.json",a=s.p+"assets/french.d01d6013.json",i=s.p+"assets/german.5c9183b8.json",o=s.p+"assets/zh.bfc3cc89.json",l=s.p+"assets/sv.08a2194f.json",c=s.p+"assets/spanish.81673b81.json",u=s.p+"assets/pt_BR.a5542d5f.json",d=s.p+"assets/ru.b80c536b.json",h=s.p+"assets/ro.2477a61c.json",p=s.p+"assets/it.e9f24d1d.json",g={text:"English",file:n},m={text:"Dutch",file:r},x={text:"French",file:a},f={text:"German",file:i},v={text:"Chinese",file:o},b={text:"Swedish",file:l},j={text:"Spanish",file:c},C={text:"Portuguese (Brazil)",file:u},Z={text:"Russian",file:d},y={text:"Romanian",file:h},E={text:"Italian",file:p}},27782:e=>{const t="MOST_RECENT",s="MOST_POINTS",n="LEAST_POINTS",r="RELEVANCE",a=[t,s,n,r];e.exports={MOST_RECENT:t,MOST_POINTS:s,LEAST_POINTS:n,RELEVANCE:r,all:a}},56538:(e,t,s)=>{"use strict";s.d(t,{D9:()=>n,Fo:()=>h,Gv:()=>x,Hg:()=>i,Rp:()=>c,UA:()=>m,VE:()=>o,Vu:()=>g,Y8:()=>a,e0:()=>u,ed:()=>d,ek:()=>l,ik:()=>r,wm:()=>p});const n="PATTERN_ERROR",r="TIMEOUT_ERROR",a="FAILED_TO_INITIALIZE_ENGINE",i=-1,o=-8,l=-11,c=-21,u=-26,d=-33,h=-36,p=-47,g=-52,m=-53,x="JAVA_STACK_ERROR"},41664:(e,t,s)=>{"use strict";s.d(t,{B:()=>r,v:()=>n});const n="OSX",r="WINDOWS"},31360:(e,t,s)=>{"use strict";s.d(t,{$H:()=>A,Af:()=>O,As:()=>x,BC:()=>k,BL:()=>le,Bj:()=>v,CL:()=>r,Cc:()=>C,Ct:()=>de,Ey:()=>X,Gz:()=>p,HT:()=>ue,Hh:()=>j,IA:()=>y,Iu:()=>W,Jf:()=>U,K0:()=>G,KE:()=>ce,M3:()=>Q,O3:()=>F,Oy:()=>oe,Qc:()=>se,Qi:()=>f,RH:()=>L,RY:()=>b,Rf:()=>H,VM:()=>S,Vt:()=>Z,XD:()=>J,Xu:()=>a,Y4:()=>w,YY:()=>q,Yo:()=>V,bb:()=>R,bk:()=>c,cs:()=>l,d3:()=>_,eB:()=>u,f0:()=>n,fA:()=>N,gN:()=>m,i0:()=>T,jV:()=>d,jW:()=>he,jb:()=>K,jz:()=>I,kU:()=>o,mB:()=>ee,mi:()=>Y,n2:()=>g,nv:()=>P,oH:()=>$,of:()=>ne,rs:()=>re,sb:()=>ie,sw:()=>E,t0:()=>D,wW:()=>te,wY:()=>pe,wi:()=>i,wn:()=>h,xX:()=>ae,xi:()=>z,y1:()=>B,zX:()=>M});const n="UNMATCHED_PARENTHESIS",r="INCOMPLETE_GROUP",a="INVALID_CONDITION",i="DUPLICATE_SUBPATTERN_NAME",o="BAD_SUBPATTERN_NAME",l="TOO_MANY_ALTERNATIVES",c="TOO_LONG_SUBPATTERN_NAME",u="LOOKBEHIND_VARIABLE_WIDTH",d="TOKEN_NOT_ALLOWED_IN_LOOKBEHIND",h="DUPLICATE_SUBPATTERN_BAD_INDEX",p="INVALID_HYPHEN_INLINE_MODIFIERS",g="TOO_MANY_NESTED_GROUPS",m="UNKNOWN_VERB",x="VERB_NOT_AT_START",f="VERB_NAME_TOO_LONG",v="INVALID_REFERENCE",b="NOT_QUANTIFIABLE",j="QUANTIFIER_OUT_OF_ORDER",C="QUANTIFIER_LOOKBEHIND_DISALLOWED",Z="QUANTIFIER_TOO_LARGE",y="LONE_BRACKET",E="INCOMPLETE_CHARCLASS",T="CHARCLASS_RANGE_OUT_OF_ORDER",k="INVALID_CHARCLASS_RANGE_META",N="POSIX_OUTSIDE_CHARCLASS",S="UNKNOWN_POSIX_CLASS",_="INVALID_CHARCLASS_RANGE_PCRE_BUG",w="CHARCLASS_RANGE_INVALID",A="INVALID_POSIX_WORD_BOUNDARY",O="BAD_CHARCLASS_RANGE_SURROGATES",I="INVALID_CHARCLASS_INTERSECTION",R="INVALID_CHARCLASS_SUBTRACTION",P="INVALID_CHARCLASS_SYMMETRIC_DIFFERENCE",L="UNSUPPORTED_ESCAPE_SEQUENCE",M="TRAILING_BACKSLASH",D="UNESCAPED_DELIMITER",U="TOO_LARGE_NUMBER",F="NULL_BYTE_NOT_ALLOWED",G="INVALID_UNICODE_ESCAPE",V="INCOMPLETE_HEX_TOKEN",B="HEX_VALUE_TOO_LARGE",$="HEX_SURROGATES",H="OCTAL_VALUE_TOO_LARGE",q="INCOMPLETE_TOKEN",z="UNKNOWN_UNICODE_SCRIPT",W="INVALID_CONTROL_CHAR",Y="INVALID_ESCAPE_SEQUENCE",K="BACKSPACE_NOT_SUPPORTED",J="EMPTY_QUOTE",X="LONELY_END_QUOTE_ERROR",Q="PYTHON_INLINE_MODIFIERS_BAD_POS",ee="PYTHON_CONFLICTING_FLAGS_A_U",te="PYTHON_BOGUS_ESCAPE",se="GOLANG_INVALID_ESCAPE_BACKTICK",ne="JS_NOT_ALLOWED_IN_STRICT_MODE",re="UNMATCHED_BRACKET",ae="TOO_MANY_CONDITIONALS",ie="JAVA_BACKREF_PREMATURE_USE",oe="BACKREFERENCE_IN_CHAR_CLASS",le="INVALID_CHAR_RANGE_CLOSE_TOKEN",ce="DOTNET_RANGE_BRACKET",ue="INLINE_MODIFIERS_CONDITIONAL",de="NON_BACKTRACKING_ERROR",he="DUPLICATE_FLAG_DEFINITION",pe="RUST_BROKEN_UNICODE_SCRIPT"},55511:(e,t,s)=>{const n=s(31807),r=s(61348);let a="gmi";n||(a+="syud"),e.exports={[r.PCRE2]:"gmixsuUAJD",[r.PCRE]:"gmixXsuUAJD",[r.JAVASCRIPT]:a,[r.PYTHON]:"gmixsua",[r.GOLANG]:"gmisU",[r.JAVA]:"gmisxuU",[r.DOTNET]:"gimsnxRN",[r.RUST]:"gmisUx",extendFlags(t,s){e.exports[t]+=s}}},56468:(e,t,s)=>{"use strict";s.d(t,{$U:()=>o,Ao:()=>I,Az:()=>pe,Bi:()=>re,Bx:()=>ge,Cz:()=>ae,ET:()=>de,Eb:()=>x,Gs:()=>W,HI:()=>k,Jy:()=>B,L3:()=>d,MW:()=>n,O3:()=>j,PG:()=>K,Pg:()=>u,Qp:()=>l,RW:()=>p,Tf:()=>f,Ty:()=>z,U6:()=>N,Ud:()=>le,WE:()=>E,Wj:()=>a,Ws:()=>M,XR:()=>A,Xq:()=>ee,Yb:()=>h,Yz:()=>U,ZH:()=>T,_w:()=>b,aM:()=>te,bJ:()=>Z,bO:()=>v,be:()=>_,cF:()=>g,df:()=>F,dz:()=>c,eq:()=>y,fy:()=>J,gg:()=>me,hL:()=>oe,hb:()=>C,hs:()=>r,ix:()=>R,jf:()=>H,jl:()=>w,jt:()=>S,lA:()=>m,no:()=>V,oK:()=>D,py:()=>se,qh:()=>X,qi:()=>P,sS:()=>G,sr:()=>ue,t:()=>$,t0:()=>i,tI:()=>ie,tK:()=>he,ul:()=>ce,up:()=>Y,vU:()=>q,w_:()=>ne,xT:()=>L,zB:()=>O,zl:()=>Q});const n="META",r="ALTERNATOR",a="QUANTIFIER",i="ESCAPED_LITERAL",o="QUOTED_LITERALS",l="LONELY_END_QUOTE",c="UNICODE_PROPERTY",u="OCTAL",d="HEX",h="UNICODE_ESCAPE",p="INLINE_MODIFIERS",g="DELIMITER",m="CONTROL_SEQUENCE",x="GLOBAL_FLAGS",f="VERTICAL_TAB",v="SURROGATE_PAIR",b="SUBPATTERN_REFERENCE_GROUP",j="NAMED_BACKREFERENCE",C="BACKREFERENCE_G",Z="BACKREFERENCE_K",y="SUBPATTERN_REFERENCE_G",E="NUMERIC_BACKREFERENCE",T="BACKSPACE",k="OPEN_CHARCLASS",N="CLOSE_CHARCLASS",S="CHARCLASS_RANGE",_="POSIX",w="EMPTY_CHARCLASS",A="POSIX_WORD_BOUNDARY",O="CHARCLASS_INTERSECTION",I="CHARCLASS_SUBTRACTION",R="CHARCLASS_SYMMETRIC_DIFFERENCE",P="LINE_COMMENT",L="GROUP",M="DEFINE",D="CONDITIONAL",U="CONDITIONAL_CONDITION",F="MODIFIER_GROUP",G="NAMED_GROUP",V="BRANCH_RESET_GROUP",B="ATOMIC_GROUP",$="CAPTURING_GROUP",H="GROUP_COMMENT",q="VERB",z="NEGATIVE_LOOKBEHIND",W="POSITIVE_LOOKBEHIND",Y="NEGATIVE_LOOKAHEAD",K="POSITIVE_LOOKAHEAD",J="NON_ATOMIC_POSITIVE_LOOKAHEAD",X="NON_ATOMIC_POSITIVE_LOOKBEHIND",Q="PLAIN_TEXT",ee="ERROR_TOKEN",te="START_CASE_MODIFIER",se="END_CASE_MODIFIER",ne="SUBST_CONDITIONAL",re="INSERT_SUBST_MARK",ae="INSERT_PRECEDES_MATCH",ie="INSERT_FOLLOWS_MATCH",oe="INSERT_FULL_MATCH",le="INSERT_INPUT_STRING",ce="INSERT_LAST_GROUP",ue="NAMED_BALANCING_GROUP",de="BALANCING_GROUP";function he(e){return e===L||e===M||e===D||e===F||e===G||e===V||e===B||e===$||e===ue||e===de||e===ne||pe(e)}function pe(e){return e===z||e===W||e===Y||e===K||e===J||e===X}function ge(e){return e===k||e===r||he(e)}function me(e){return e===R||e===O||e===I}},2636:e=>{e.exports={GOOGLE:"google",TWITTER:"twitter",GITHUB:"github"}},14112:(e,t,s)=>{"use strict";s.d(t,{B7:()=>a,Py:()=>r,rp:()=>n});const n="light",r="dark",a="AUTO"},96881:e=>{e.exports={MINE:"mine",FAVORITES:"favorites",LIBRARY:"library"}},3641:(e,t,s)=>{"use strict";s.d(t,{Z:()=>h});var n=s(45987),r=s(67294),a=s(45697),i=s.n(a),o=s(94184),l=s.n(o),c=s(85893);const u=["children","className"],d=(0,r.forwardRef)(((e,t)=>{let s=e.children,r=e.className,a=(0,n.Z)(e,u);return(0,c.jsx)("div",Object.assign(Object.assign({className:l()("ueGQi",r),ref:t},a),{},{children:s}))}));d.propTypes={children:i().node,className:i().string};const h=d},79615:(e,t,s)=>{"use strict";s.d(t,{Hz:()=>l,m4:()=>i,rP:()=>o});var n=s(10084),r=s(40378),a=s(26086);function i(e,t,s){const i=s.regexDeleteCode,o=s.versionDeleteCode,l=r.Z.get(a.DELETE_CODES)||[],c=l.find((t=>t.permalinkFragment===e)),u={permalinkFragment:e,deleteCode:i||(null==c?void 0:c.deleteCode)||null,versions:(null==c?void 0:c.versions)||[]};if(null!=t&&o&&u.versions.push({version:t,deleteCode:o}),null!=c){const e=l.indexOf(c);l[e]=u}else l.push(u);r.Z.save(a.DELETE_CODES,l),n.Z.info(`Saved new delete code for permalink fragment '${e}' and version ${t}`)}function o(e,t){try{const i=r.Z.get(a.DELETE_CODES,!1)||[],o=i.find((t=>t.permalinkFragment===e));if(null!=o){const l=i.indexOf(o);var s;return null==t?i.splice(l,1):i[l]=Object.assign(Object.assign({},i[l]),{},{versions:(null==(s=i[l].versions)?void 0:s.filter((e=>e.version!==t)))||[]}),n.Z.info(`Removed delete code for ${null!=t?`version ${t} of `:""}permalink fragment '${e}'`),r.Z.save(a.DELETE_CODES,i,!1)}throw new Error}catch(s){n.Z.warn(`Unable to remove delete code for permalink fragment '${e}' and version ${t}`,s)}}function l(e){try{const s=(r.Z.get(a.DELETE_CODES,!1)||[]).find((t=>t.permalinkFragment===e));if(null!=s){var t;const r=s.deleteCode;if(null!=r||(null==(t=s.versions)?void 0:t.length)>0)return n.Z.info(`Retrieved delete code for permalink fragment '${e}'`),{deleteCode:r,versions:s.versions||[]}}n.Z.warn(`Unable to get delete code for permalink fragment '${e}'`)}catch(t){n.Z.error(`Unable to get delete code for permalink fragment '${e}'`,t)}return null}},25613:(e,t,s)=>{"use strict";s.d(t,{i:()=>r,t:()=>n});const n=/^\\u[dD](?:[89]|[ABab])[\dA-Fa-f]{2}\\u[dD][C-Fc-f][\dA-Fa-f]{2}/,r=/^\\(?:[WwDdSsVvHhaefntrXBbRKCGAZzQEckgPpuLlUo]|N(?:{\w*}?)?)/},99506:(e,t,s)=>{"use strict";s.d(t,{ZP:()=>G,FY:()=>F});var n=s(75573),r=s(56468),a=s(4779),i=s(64475);const o=e=>{const t=(0,a.ZP)(e,r.jl);return t.quantifiable=!0,t.length=1,(0,a.A_)(t,i.Z.charClass),t};var l=s(1974),c=s(7656),u=s(69678),d=s(9961),h=s(32428);const p=(e,t)=>{const s=(0,h.Z)(e,r.WE),n=t.replace(/\D/g,"");return s.reference=parseInt(n,10),(0,a.A_)(s,i.Z.backreference),s};var g=s(29856);const m=(e,t,s)=>{const n=s.indexOf(e),o=s[n+1];if(e.string.length<4&&(null==o?void 0:o.type)===r.zl&&!isNaN(null==o?void 0:o.string))return!1;const l=parseInt(e.string.slice(1),10);return l>0&&t.captureGroupCount>=l&&(e.type=r.WE,e.length=1,e.quantifiable=!0,e.reference=l,(0,a.A_)(e,i.Z.backreference)),!1},x=(e,t)=>{const s=(0,g.Z)(e,t);return e.inCharClass||(0,a.kV)(s,m),s};var f=s(92250),v=s(43453),b=s(62170),j=s(40916),C=s(92572),Z=s(38676),y=s(57093),E=s(91435),T=s(1274),k=s(31360),N=s(26850);const S=(e,t)=>{const s=(0,N.Z)(e,t);return("\\x"===t||e.isSubstitution&&!/^\\x..$/.test(t))&&(0,a.sT)(s,k.YY),s};var _=s(78347),w=s(98529),A=s(89570),O=s(79075),I=s(60438),R=s(750),P=s(90256);const L=e=>{const t=(0,a.ZP)(e,r.zl);return(0,a.sT)(t,k.IA),t};var M=s(27428),D=s(25613),U=s(68165);const F=(e,t,s)=>{if("\\"===t&&s.unicodeEnabled&&e.match(D.t))return T.Z},G=[(e,t,s)=>{if(!s.inCharClass&&"["===t&&e.match(/^\[\^?/))return e.eat("]")?o:l.Z},U.q1,(e,t,s)=>{if(s.inCharClass&&e.eat("-"))return c.ZP},(e,t,s)=>{if(s.unicodeEnabled&&"\\"===t)return!s.inCharClass&&e.match(/^\\[1-9]\d*/)?u.Z:e.match(/^\\0\d*/)?d.Z:void 0;let n;if("\\"===t&&(n=e.match(/^\\(\d{1,3})/))){const t=parseInt(n[1],10);if(!s.inCharClass&&t>0&&t<=s.captureGroupCount)return p;const r=n[1].match(/^(?:[0-3][0-7]{1,2}|[0-7]{1,2})/);let a=0;return r?(a=n[1].length-r[0].length,a>0&&e.backUp(a),x):(n[0].length>2&&e.backUp(n[0].length-2),f.Z)}},(e,t,s)=>{if(M.SC.namedGroup&&"\\"===t&&!s.inCharClass&&e.match(/^\\k(?:<\w+>)?/))return R.Z},(e,t,s)=>{if(!s.inCharClass&&"("===t){const t=new RegExp(`^\\((?:\\?(?:${M.SC.namedGroup?"<\\w+>|":""}[=!:]${M.SC.lookbehind?"|<[=!]":""}))?`),s=e.match(t);if(null!=s){const e=s[0].replace(/\w+/g,"");if("("===s[0])return _.Z;if("(?:"===s[0])return w.Z;if("(?="===e)return A.bO;if("(?!"===e)return A.y3;if("(?<>"===e)return O.Z;if(M.SC.lookbehind&&"(?<="===e)return I.nc;if(M.SC.lookbehind&&"(?<!"===e)return I.lw;n.O7(new Error(`Unknown group structure '${e}'`))}}},U.fF,U.MH,U.is,(e,t,s)=>{if("\\"===t){const t=s.unicodeEnabled?/^\\x(?:[0-9A-Fa-f]{2})?/:/^\\x[0-9A-Fa-f]{2}/;if(e.match(t))return S}},F,(e,t,s)=>{if("\\"===t){const t=s.unicodeEnabled?/^\\u(?:[0-9A-Fa-f]{4}|{[^}]*}?)/:/^\\u[0-9A-Fa-f]{4}/;if(e.match(t))return E.Z}},(e,t,s)=>{if(M.SC.unicodeProperty&&"\\"===t&&s.unicodeEnabled&&e.match(/^\\[pP](?:{[\w=]+}?)?/))return y.Z},(e,t,s)=>{if("\\"===t){if(e.match(/^\\c./)||s.unicodeEnabled&&e.match(/^\\c/))return Z.Z;if(e.match(/^\\(?=c)/))return C.Z}},U.Nk,(e,t,s)=>{let n;if("\\"===t&&(n=e.match(/^\\[WwDdSsvfntrBb]/)))return"\\v"===n[0]?j.Z:s.inCharClass?"\\b"===n[0]?b.Z:/^\\[trnfaedDsSwW]/.test(n[0])?v.Z:f.Z:v.Z},(0,U.eb)(f.Z),U.k_,(e,t,s)=>{if(!s.inCharClass&&e.eat(s.delimiter))return P.Z},(e,t,s)=>{if(!s.inCharClass&&s.unicodeEnabled&&"]{}".includes(t))return e.next(),L},U.NY]},62738:(e,t,s)=>{"use strict";s.d(t,{Z:()=>A,K:()=>w});var n=s(75573),r=s(750),a=s(29856),i=s(31360),o=s(69678),l=s(4779);const c=(e,t)=>{const s=(0,o.Z)(e,t);return e.inCharClass&&(0,l.sT)(s,i.wW),s};var u=s(52111);const d=(e,t,s)=>{const n=(0,u.Z)(e,t);return 0!==s.start?(0,l.sT)(n,i.M3):n.flags.includes("u")&&n.flags.includes("a")&&(0,l.sT)(n,i.mB),n};var h=s(78347),p=s(98529),g=s(79075),m=s(38325),x=s(89570),f=s(60438),v=s(16835);const b=(e,t,s)=>{const n=e.condition;return t.captureGroupMap[n]||(0,l.sT)(e,i.Bj),e.reference=isNaN(n)?n:parseInt(n,10),e.error},j=(e,t)=>{const s=(0,v.Z)(e,t);return s.condition||(0,l.sT)(s,i.CL),(0,l.kV)(s,b),s.backreference=!0,s};var C=s(24474),Z=s(26850);const y=(e,t)=>{const s=(0,Z.Z)(e,t);return"\\x"===t&&(0,l.sT)(s,i.YY),s};var E=s(80430),T=s(40916),k=s(62170),N=s(43453),S=s(51836),_=s(68165);const w=(e,t,s)=>{if("\\"===t&&e.match(/^\\x(?:[0-9A-Fa-f]{2})?/))return y},A=[_.iT,_.q1,_.VI,(e,t,s)=>{if(!s.inCharClass&&"("===t&&e.match(/^\(\?P=\w+\)/))return r.Z},(0,_.UB)(2147483639),(e,t,s)=>{if("\\"===t&&(e.match(/^\\(?:0[0-7]?[0-7]?|[0-3][0-7]{2})/)||s.inCharClass&&e.match(/^\\[0-7][0-7]{0,2}/)))return a.Z},(e,t,s)=>{if("\\"===t&&e.match(/^\\\d{1,2}/))return c},(e,t,s)=>{if(!s.inCharClass&&"("===t&&e.match(/^\(\?[imsuax-]*\)/))return d},_.mw,(e,t,s)=>{let r;if(!s.inCharClass&&"("===t&&(r=e.match(/^\((?:\?(?:<[!=]|[!=]|:|P<\w+>)?)?/))){const t=r[0].replace(/\w+/g,"");if("("===r[0])return h.Z;if("(?:"===r[0])return p.Z;if("(?<>"===t)return g.Z;if(/^\(\?[imsuax-]+:/.test(r[0]))return m.Z;if("(?="===t)return x.bO;if("(?!"===t)return x.y3;if("(?<="===t)return f.nc;if("(?<!"===t)return f.lw;if("(?"===t)return e.match(/^\(\w+\)/),j;n.O7(new Error(`Unknown group structure '${t}'`))}},_.fF,_.MH,(e,t,s)=>{if(!s.inCharClass&&e.match(/^(?:[*+?]|{(?:\d+,?\d*|,\d+)})/))return C.Z},w,(e,t,s)=>{if("\\"===t&&e.match(/^\\(?:u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|[uU])/))return E.Z},_.Nk,(e,t,s)=>{let n;if("\\"===t&&(n=e.match(/^\\[WwDdSsvaefntrBbAZ]/)))return"\\v"===n[0]?T.Z:s.inCharClass?"\\b"===n[0]?k.Z:/^\\[trnfaedDsSvwW]/.test(n[0])?N.Z:S.Z:N.Z},(0,_.eb)(),_.tP,_.k_,_.sN,_.NY]},68165:(e,t,s)=>{"use strict";s.d(t,{eb:()=>L,UB:()=>M,MH:()=>N,VI:()=>F,q1:()=>U,fF:()=>k,tP:()=>_,oY:()=>P,_3:()=>V,mw:()=>w,Nk:()=>R,iT:()=>D,NY:()=>I,is:()=>S,k_:()=>A,sN:()=>O,fR:()=>G});var n=s(56468),r=s(41061),a=s(68072),i=s(18346);const o=e=>{const t=(0,i.Z)(e);return e.alternatives++,e.parents.push(t),t.alternativeNumber=e.alternatives,t};var l=s(82542),c=s(70520),u=s(4779),d=s(64475);const h=(e,t)=>{const s=e.previousToken,r=(0,u.ZP)(e,n.jf);return e.previousToken=s,r.comment=t.slice(3,-1),(0,u.A_)(r,d.Z.comment),r};var p=s(11497),g=s(90256),m=s(92572),x=s(43453),f=s(42066),v=s(51836),b=s(64610),j=s(1974);const C=e=>{const t=(0,u.ZP)(e,n.U6),s=t.parent;return e.charClasses.pop(),e.parents.pop(),e.inCharClass=0!==e.charClasses.length,t.openCharClass=s,s.closeCharClass=t,t.quantifiable=!0,t.length=1,(0,u.Cv)(s,t),(0,u.A_)(t,d.Z.charClass),t};var Z=s(7656),y=s(91435),E=s(25035);const T=e=>{const t=(0,E.Z)(e,n.zB);return t.parent.charClassIntersection=!0,t},k=(e,t,s)=>{if(!s.inCharClass&&e.eat(")"))return r.Z},N=(e,t,s)=>{if(!s.inCharClass&&e.eat("|"))return s.groups.length>0?a.Z:o},S=(e,t,s)=>{if(!s.inCharClass&&e.match(/^(?:[*+?]|{\d+,?\d*})/))return l.Z},_=(e,t,s)=>{if(!s.inCharClass&&"#"===t&&s.flags.includes("x")&&"#"!==s.delimiter&&e.match(/^#.*/))return c.Z},w=(e,t,s)=>{if(!s.inCharClass&&"#"!==s.delimiter&&"("===t&&e.match(/^\(\?#[^)]*\)/))return h},A=(e,t,s)=>{if("\\"===t)return e.next(),p.Z},O=(e,t,s)=>{if(e.matchString(s.delimiter))return g.Z},I=(e,t,s)=>(e.next(),m.Z),R=(e,t,s)=>{if(!s.inCharClass&&e.match(/^[$^.]/))return x.Z},P=(e,t,s)=>{if("\\"===t&&e.match(/^\\c.?/))return f.Z},L=(e=v.Z)=>(t,s,n)=>{if("\\"===s&&t.position+1<=t.stringLength){const s=t.position;return t.next(),t.next(),t.position===s+1?(t.backUp(1),null):e}},M=e=>(t,s,n)=>{let r;if("\\"===s&&(r=t.match(/^\\\d+/))){if(parseInt(r[0].slice(1),10)>e)return b.Z;t.backUp(r[0].length)}},D=(e,t,s)=>{if(!s.inCharClass&&"["===t&&e.match(/^\[\^?/))return j.Z},U=(e,t,s)=>{if(s.inCharClass&&e.eat("]"))return s.previousToken.type===n.HI?m.Z:C},F=(e,t,s)=>{if(s.inCharClass&&e.eat("-"))return Z.ZP},G=(e,t,s)=>{if("\\"===t&&e.match(/^\\u[0-9A-Fa-f]{4}/))return y.Z},V=(e,t,s)=>{if(s.inCharClass&&e.matchString("&&"))return T}},30317:(e,t,s)=>{"use strict";s.d(t,{Z:()=>_t});var n=s(42568),r=s.n(n),a=s(99221),i=s(79090),o=s(61348),l=s.n(o),c=s(27428),u=s(29856),d=s(31360),h=s(4779),p=s(51836);const g=(e,t)=>{const s=e.flags,n=e.flavor,r=(0,p.Z)(e,t);return(n===l().PCRE2||s.includes("X"))&&/^\\[a-z]/i.test(t)&&(0,h.sT)(r,d.mi),"\0"===t.slice(1)&&(0,h.sT)(r,d.O3),r};var m=s(52111),x=s(42066),f=s(69678),v=s(91435),b=s(75573),j=s(56468);const C=e=>{const t=(0,h.ZP)(e,j.Qp);return(0,h.sT)(t,d.Ey),t};var Z=s(64475);const y=(e,t)=>{const s=(0,h.ZP)(e,j.$U);return"\\Q\\E"===t&&(0,h.sT)(s,d.XD),s.error||(s.startCharCode=t.charCodeAt(2),s.startCodePoint=t.codePointAt(2),s.endCharCode=t.charCodeAt(t.length-3),s.endCodePoint=t.codePointAt(t.length-3)),s.length=t.length-4,(0,h.A_)(s,Z.Z.quote),s},E=e=>{const t=(0,h.ZP)(e,j.XR);return t.quantifiable=!1,t.length=0,(0,h.A_)(t,Z.Z.charClass),t},T=/^(?:alnum|ascii|alpha|word|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit)$/,k=(e,t)=>{const s=e.flavor,n=e.inCharClass,r=(0,h.ZP)(e,j.be),a=s===l().PCRE||s===l().PCRE2,i=t.replace(/^\[:\^?|:\]$/g,"");return n?a&&/^[<>]$/.test(i)?(0,h.sT)(r,d.$H):T.test(i)||(0,h.sT)(r,d.VM):(0,h.sT)(r,d.fA),r.posixClass=i,(0,h.A_)(r,Z.Z.meta),r};var N=s(99309),S=s(7656);const _=(e,t,s)=>{const n=e.rightToken;return(null==n?void 0:n.type)===j.t0&&/^\\[a-z]/i.test(n.string)&&(0,h.sT)(e,d.d3),e.error},w=e=>{const t=(0,S.ZP)(e);return(0,h.U3)(t,_),t};var A=s(32428);const O=(e,t,s)=>{const n=e.string,r=e.reference,a=e.captureGroupCount;if("(?0)"===n||"(?R)"===n)return e.reference=null,!1;const i=r.charAt(0);let o;if("+"===i){const s=parseInt(r.slice(1),10);o=a+s,(0===s||a+s>t.captureGroupCount)&&(0,h.sT)(e,d.Bj)}else if("-"===i){const t=parseInt(r.slice(1),10);o=a-t+1,(0===t||a-t<0)&&(0,h.sT)(e,d.Bj)}else isNaN(r)||"&"===n.charAt(2)||"(?P>"===n.slice(0,4)?t.subpatterns.includes(r)||(0,h.sT)(e,d.Bj):(o=parseInt(r,10),t.captureGroupCount<o&&(0,h.sT)(e,d.Bj));return e.reference=o||r,e.error},I=(e,t)=>{const s=(0,A.Z)(e,j._w),n=t.replace(/^(?:\\g|\(\?P>)|[^\w\-+]/g,"");return n||(0,h.sT)(s,d.YY),s.reference=n,s.captureGroupCount=e.captureGroupCount,(0,h.kV)(s,O),(0,h.A_)(s,Z.Z.subpattern_reference),s};var R=s(750),P=s(98152);const L=/^(?:ACCEPT(?::[^)]*)?|F(?:AIL)?|COMMIT|PRUNE(?::[^)]*)?|SKIP(?::[^)]*)?|(?:MARK)?:[^)]+|THEN(?::[^)]*)?)$/,M=/^(?:LIMIT_MATCH=\d{1,9}|LIMIT_RECURSION=\d{1,9}|NO_AUTO_POSSESS|NO_START_OPT|CR|LF|CRLF|ANYCRLF|ANY|BSR_ANYCRLF|BSR_UNICODE|UTF(?:16)?|UCP)$/,D=/^(?:LIMIT_DEPTH=\d{1,9}|LIMIT_HEAP=\d{1,9}|NOTEMPTY|NOTEMPTY_ATSTART|NO_DOTSTAR_ANCHOR|NUL|NO_JIT)$/,U=(e,t,s)=>{const n=e.adjacentToken,r=(0,h.ZP)(e,j.vU),a=t.slice(2,-1),i=e.flavor===l().PCRE2,o=M.test(a)||i&&D.test(a);o||L.test(a)?!o||0===s.start||(null==n?void 0:n.type)===j.vU&&null==n.error&&n.isStartVerb||(0,h.sT)(r,d.As):(0,h.sT)(r,d.gN);const c=a.split(/[=:]/),u=(0,P.Z)(c,2),p=u[0],g=u[1];return null!=g&&g.length>65535&&(0,h.sT)(r,d.Qi),"CR"===a?e.lineTerminators=["\\r"]:"LF"===a?e.lineTerminators=["\\n"]:"CRLF"===a?e.lineTerminators=["\\r\\n"]:"ANYCRLF"===a?e.lineTerminators=["\\n","\\r","\\r\\n"]:"ANY"===a&&(e.lineTerminators=["\\n","\\r","\\r\\n","\\f","\\v","\\x85","\\u2028","\\u2029"]),r.error||"UCP"!==a||(e.unicodeEnabled=!0,e.ucpVerb=!0),a.startsWith("UTF")&&(e.unicodeEnabled=!0),r.isStartVerb=o,r.quantifiable=i&&"ACCEPT"===a,r.verb=a,r.verbType=p||"MARK",r.verbDetail=g,(0,h.A_)(r,Z.Z.verb),r};var F=s(24474),G=s(81669),V=s(62170),B=s(43453),$=s(98529),H=s(78347),q=s(48401);const z=e=>{const t=(0,q.Z)(e,j.Jy);return e.flavor===l().DOTNET&&e.flags.includes("N")&&(0,h.sT)(t,d.Ct),t.willBeQuantifiable=!0,t};var W=s(43406),Y=s(79075),K=s(38325),J=s(89570),X=s(60438);const Q=e=>{const t=(0,q.Z)(e,j.Ws);return e.inDEFINE=!0,t};var ee=s(16835);const te=(e,t)=>{const s=e.condition,n=e.closeGroup,r=e.captureGroupCount,a=t.captureGroupCount,i=t.subpatterns;if(!s||!n)return(0,h.sT)(e,d.CL),!0;if("string"!=typeof s)return!1;let o=!1,l=!1,c=null;if(/^R?\d+$/.test(s))c=parseInt(s.replace(/\D/g,""),10),c>a&&(0,h.sT)(e,d.Bj),"R"===s.charAt(0)?o=!0:(l=!0,0===c&&(0,h.sT)(e,d.Bj));else if("R"!==s||i.includes("R")){if(/^(?:<\w+>|'\w+'|\w+)$/.test(s))l=!0,c=s.replace(/\W/g,""),i.includes(c)||(0,h.sT)(e,d.Bj);else if(/^R&/.test(s))c=s.slice(2),o=!0,i.includes(c)||(0,h.sT)(e,d.Bj);else if(s.includes("+")){const t=parseInt(s.slice(1),10);c=r+t,l=!0,(0===t||c>a)&&(0,h.sT)(e,d.Bj)}else if(s.includes("-")){const t=parseInt(s.slice(1),10);c=r-t+1,l=!0,(0===t||c<1)&&(0,h.sT)(e,d.Bj)}}else c=null,o=!0;return e.subroutine=o,e.backreference=l,e.reference=c,e.error},se=(e,t)=>{const s=(0,ee.Z)(e,t);return(0,h.kV)(s,te),s};var ne=s(29215);const re=["Arabic","Armenian","Avestan","Balinese","Bamum","Bassa_Vah","Batak","Bengali","Bopomofo","Brahmi","Braille","Buginese","Buhid","Canadian_Aboriginal","Car-ian","Caucasian_Albanian","Chakma","Cham","Cherokee","Common","Coptic","Cunei-form","Cypriot","Cyrillic","Deseret","Devanagari","Duployan","Egyptian_Hiero-glyphs","Elbasan","Ethiopic","Georgian","Glagolitic","Gothic","Grantha","Greek","Gujarati","Gurmukhi","Han","Hangul","Hanunoo","Hebrew","Hiragana","Imperial_Aramaic","Inherited","Inscriptional_Pahlavi","Inscrip-tional_Parthian","Javanese","Kaithi","Kannada","Katakana","Kayah_Li","Kharoshthi","Khmer","Khojki","Khudawadi","Lao","Latin","Lepcha","Limbu","Lin-ear_A","Linear_B","Lisu","Lycian","Lydian","Mahajani","Malayalam","Mandaic","Manichaean","Meetei_Mayek","Mende_Kikakui","Meroitic_Cursive","Meroitic_Hieroglyphs","Miao","Modi","Mongolian","Mro","Myanmar","Nabataean","New_Tai_Lue","Nko","Ogham","Ol_Chiki","Old_Italic","Old_North_Arabian","Old_Permic","Old_Persian","Old_South_Arabian","Old_Turkic","Oriya","Osmanya","Pahawh_Hmong","Palmyrene","Pau_Cin_Hau","Phags_Pa","Phoenician","Psalter_Pahlavi","Rejang","Runic","Samaritan","Saurashtra","Sharada","Sha-vian","Siddham","Sinhala","Sora_Sompeng","Sundanese","Syloti_Nagri","Syriac","Tagalog","Tagbanwa","Tai_Le","Tai_Tham","Tai_Viet","Takri","Tamil","Telugu","Thaana","Thai","Tibetan","Tifinagh","Tirhuta","Ugaritic","Vai","Warang_Citi","Yi","C","Cc","Cf","Cn","Co","Cs","L","Ll","Lm","Lo","Lt","Lu","L&","M","Mc","Me","Mn","N","Nd","Nl","No","P","Pc","Pd","Pe","Pf","Pi","Po","Ps","S","Sc","Sk","Sm","So","Z","Zl","Zp","Zs"],ae=(e,t)=>{const s=(0,ne.Z)(e,t);return re.includes(s.script)||(0,h.sT)(s,d.xi),s};var ie=s(25613),oe=s(68165);const le=(e,t,s)=>{if("\\"===t&&e.matchString("\\E"))return C},ce=(e,t,s)=>{if("\\"===t&&e.match(/^\\Q(?:(?!\\E)[\s\S])*(?:\\E)?/))return y},ue=(e,t,s)=>{if("["===t&&!s.inCharClass&&e.match(/^\[\[:[<>]:]]/))return E},de=(e,t,s)=>{if("["===t&&e.match(/^\[:(?:(?!\[:[a-z]+:])(?:\\[\s\S]|[^\\\]]))*?\\?:]/))return k},he=(e,t,s)=>{if("["===t&&e.match(/^\[([.=])(?:\\[\s\S]|[^\]\\])*?\\?\1]/))return N.Z},pe=(e,t,s)=>{var n;if("-"===t&&s.inCharClass&&(null==(n=s.previousToken)||!n.partOfRange)&&null!=(0,S.oA)(s.previousToken,"end")&&e.eat("-"))return w},ge=(e,t,s)=>{if(!s.inCharClass&&"("===t&&e.match(/^\(\?(?:[0R]|[+-]?[1-9]+\d*|P>\w+|&\w+)\)/))return I},me=(e,t,s)=>{if(!s.inCharClass&&"("===t&&e.match(/^\(\?P=\w+\)/))return R.Z},xe=(e,t,s)=>{if(!s.inCharClass&&"("===t&&e.match(/^\(\*(?:[A-Z\d_]+(?:=\d+|:[^)]*)?|:[^)]+)\)/))return U},fe=(e,t,s)=>{if(!s.inCharClass&&"("===t&&e.match(/^\(\?C\d*\)/))return N.Z},ve=(e,t,s)=>{if(!s.inCharClass&&e.match(/^(?:[*+?]|{\d+,?\d*})/))return F.Z},be=(e,t,s)=>{if("\\"===t&&e.match(/^\\[pP]([CLMNPSZ]|{\^?(?:L&|\w+)}?)?/))return ae},je=(e,t,s)=>{if(!s.inCharClass&&"\\"===t&&e.match(/^(?:\\g{\w+}|\\k(?:'\w+'|<\w+>|{\w+})?)/))return R.Z},Ce=(e,t,s)=>{if(!s.inCharClass&&"\\"===t&&e.match(/^\\g(?:<\w+>|'\w+'|'[+-]\d+'|<[+-]\d+>)?/))return I},Ze=(e,t,s)=>{if("\\"===t&&e.match(/^\\x(?:{[0-9A-Fa-f]*}?|[0-9A-Fa-f]{0,2})/))return G.Z},ye=(e,t,s)=>{if("\\"===t&&e.match(/^\\o(?:{([0-7]+)}?)?/))return u._},Ee=(e,t,s)=>{let n;if("\\"===t&&(n=e.match(ie.i)))return/^\\[lu]/i.test(n[0])||"\\N"===n[0].slice(0,2)&&(n[0].length>2||s.inCharClass)?N.Z:s.inCharClass?"\\b"===n[0]?V.Z:/^\\[trnfaedDhHpPsSvVwWN]/.test(n[0])?B.Z:g:B.Z},Te=e=>(t,s,n)=>{let r;if(!n.inCharClass&&"("===s&&(r=t.match(e))){const e=r[0],s=e.replace(/\w+/g,"");if("("===e)return n.flags.includes("n")?$.Z:H.Z;if("(?:"===e)return $.Z;if("(?>"===e)return z;if("(?|"===e)return W.ZP;if("(?<>"===s||"(?''"===s)return Y.Z;if(/^\(\?[\^a-z-]+:/i.test(e))return K.Z;if("(?="===s||"(*pla:"===e||"(*positive_lookahead:"===e)return J.bO;if("(?!"===s||"(*nla:"===e||"(*negative_lookahead:"===e)return J.y3;if("(?<="===s||"(*plb:"===e||"(*positive_lookbehind:"===e)return X.nc;if("(?<!"===s||"(*nlb:"===e||"(*negative_lookbehind:"===e)return X.lw;if("(?*"===s||"(*napla:"===e||"(*non_atomic_positive_lookahead:"===e)return J.T0;if("(?<*"===s||"(*naplb:"===e||"(*non_atomic_positive_lookbehind:"===e)return X.fy;if("(?"===s){const e=t.match(/^\((?:R(?:&\w+)?|R?\d+|[+-]?\d+|\w+|'\w+'|<\w+>)\)/);return"(DEFINE)"!==(null==e?void 0:e[0])||n.subpatterns.includes("DEFINE")?(n.expectingCondition=!e&&!!t.match(/^\((?:\?<?[=!]|\*(?:[pn]l[ab]|(?:positive|negative)_lookahead|(?:positive|negative)_lookbehind):)/,!1),se):Q}b.O7(new Error(`Unknown group structure '${s}'`))}},ke=[le,ce,he,ue,de,oe.iT,oe.q1,pe,ge,me,(0,oe.UB)(2147483639),(e,t,s)=>{let n;if("\\"===t&&(n=e.match(/^\\(\d{1,3})/))){const t=parseInt(n[1],10);if(!s.inCharClass&&t>0&&"0"!==n[1].charAt(0)&&(t<10&&1===n[1].length||t<=s.captureGroupCount))return f.Z;const r=n[1].match(/^[0-7]{1,3}/);let a=0;return r?(a=n[1].length-r[0].length,a>0&&e.backUp(a),u.Z):(n[0].length>2&&e.backUp(n[0].length-2),p.Z)}},(e,t,s)=>{if(!s.inCharClass&&"("===t&&e.match(/^\(\?[mixXsUJ-]*\)/))return m.Z},xe,oe.mw,fe,Te(/^\((?:\?(?:[mixXsUJ-]*:|[>!=|]|<[=!]|'\w+'|P?<\w+>)?)?/),oe.fF,oe.MH,ve,be,(e,t,s)=>{if(!s.inCharClass&&"\\"===t&&e.match(/^\\g(?:\d+|{-?\d+})/))return f.Z},je,Ce,Ze,ye,oe.oY,oe.Nk,Ee,(0,oe.eb)(g),oe.tP,oe.k_,oe.sN,oe.NY],Ne=[le,ce,he,ue,de,oe.iT,oe.q1,oe.VI,ge,me,(e,t,s)=>{let n;if("\\"===t&&(n=e.match(/^\\(\d{1,3})/))){const t=parseInt(n[1],10);if(!s.inCharClass&&t>0&&"0"!==n[1].charAt(0)){if(t<10&&1===n[1].length||t<=s.captureGroupCount)return f.Z;if(/^\\[89]\d/.test(n[0]))return e.backUp(n[0].length-3),f.Z}const r=n[1].match(/^[0-7]{1,3}/);let a=0;return r?(a=n[1].length-r[0].length,a>0&&e.backUp(a),u.Z):(n[0].length>2&&e.backUp(n[0].length-2),g)}},(e,t,s)=>{if(!s.inCharClass&&"("===t&&e.match(/^\(\?(?:\^[mixsUJn]*|[nmixsUJ-]*)\)/))return m.Z},xe,oe.mw,fe,Te(/^\((?:\?(?:[mixsUJn-]*:|\^[mixsUJn]*:|[>!=|]|<[=!]|'\w+'|P?<\w+>|<?\*)?|\*(?:napl[ab]|[pn]l[ab]|(?:positive|negative)_lookahead|(?:positive|negative)_lookbehind|non_atomic_positive_(?:lookbehind|lookahead)):)?/),oe.fF,oe.MH,ve,be,(e,t,s)=>{if(!s.inCharClass&&"\\"===t&&e.match(/^\\g(?:\d+|{[+-]?\d+})/))return f.Z},je,Ce,Ze,ye,(e,t,s)=>{if("\\"===t&&e.match(/^\\c[\x20-\x7f]?/))return x.Z},oe.Nk,(e,t,s)=>{if("\\"===t&&s.unicodeEnabled&&e.match(/^\\N{U\+[0-9A-Fa-f]+}/))return v.Z},Ee,(0,oe.eb)(g),oe.tP,oe.k_,oe.sN,oe.NY];var Se=s(99506),_e=s(82542);const we=(e,t)=>{const s=(0,_e.Z)(e,t),n=s.from,r=s.to;return(n>1e3||r!==1/0&&r>1e3)&&(0,h.sT)(s,d.Vt),s},Ae=["Ahom","Anatolian_Hieroglyphs","Arabic","Armenian","Avestan","Balinese","Bamum","Bassa_Vah","Batak","Bengali","Bopomofo","Brahmi","Braille","Buginese","Buhid","Canadian_Aboriginal","Carian","Caucasian_Albanian","Chakma","Cham","Cherokee","Common","Coptic","Cuneiform","Cypriot","Cyrillic","Deseret","Devanagari","Duployan","Egyptian_Hieroglyphs","Elbasan","Ethiopic","Georgian","Glagolitic","Gothic","Grantha","Greek","Gujarati","Gurmukhi","Han","Hangul","Hanunoo","Hatran","Hebrew","Hiragana","Imperial_Aramaic","Inherited","Inscriptional_Pahlavi","Inscriptional_Parthian","Javanese","Kaithi","Kannada","Katakana","Kayah_Li","Kharoshthi","Khmer","Khojki","Khudawadi","Lao","Latin","Lepcha","Limbu","Linear_A","Linear_B","Lisu","Lycian","Lydian","Mahajani","Malayalam","Mandaic","Manichaean","Meetei_Mayek","Mende_Kikakui","Meroitic_Cursive","Meroitic_Hieroglyphs","Miao","Modi","Mongolian","Mro","Multani","Myanmar","Nabataean","New_Tai_Lue","Nko","Ogham","Ol_Chiki","Old_Hungarian","Old_Italic","Old_North_Arabian","Old_Permic","Old_Persian","Old_South_Arabian","Old_Turkic","Oriya","Osmanya","Pahawh_Hmong","Palmyrene","Pau_Cin_Hau","Phags_Pa","Phoenician","Psalter_Pahlavi","Rejang","Runic","Samaritan","Saurashtra","Sharada","Shavian","Siddham","SignWriting","Sinhala","Sora_Sompeng","Sundanese","Syloti_Nagri","Syriac","Tagalog","Tagbanwa","Tai_Le","Tai_Tham","Tai_Viet","Takri","Tamil","Telugu","Thaana","Thai","Tibetan","Tifinagh","Tirhuta","Ugaritic","Vai","Warang_Citi","Yi","C","Cc","Cf","Co","Cs","L","Ll","Lm","Lo","Lt","Lu","M","Mc","Me","Mn","N","Nd","Nl","No","P","Pc","Pd","Pe","Pf","Pi","Po","Ps","S","Sc","Sk","Sm","So","Z","Zl","Zp","Zs"],Oe=(e,t)=>{const s=(0,ne.Z)(e,t);return Ae.includes(s.script)||(0,h.sT)(s,d.xi),s};var Ie=s(26850),Re=s(40916),Pe=s(62284);const Le=(e,t,s)=>{if("\\"===t&&e.match(/^\\x(?:[0-9A-Fa-f]{2}|{[0-9A-Fa-f]+}?)/))return Ie.Z},Me=(e,t,s)=>{let n;if("\\"===t&&(n=e.match(/^\\[WwDdSsABbzaftnrv]/)))return"\\v"===n[0]?Re.Z:s.inCharClass?/^\\[trnfaedDsSvwW]/.test(n[0])?B.Z:Pe.Z:B.Z},De=e=>{const t=new RegExp(`^\\((?:\\?(?:[${e}]*(?:-[${e}]+)?:|P<\\w+>))?`);return(e,s,n)=>{let r;if(!n.inCharClass&&"("===s&&(r=e.match(t))){const e=r[0];if("("===e)return H.Z;if("(?:"===e)return $.Z;if(e.startsWith("(?P<"))return Y.Z;if(e.startsWith("(?"))return K.Z;b.O7(new Error(`Unknown group structure '${e}'`))}}},Ue=[ce,oe.iT,oe.q1,(e,t,s)=>{if("["===t&&e.match(/^\[:\^?([^:]*):]/))return k},(e,t,s)=>{if(s.inCharClass&&e.eat("-"))return S.ZP},(e,t,s)=>{if("\\"===t&&e.match(/^\\(?:[1-7][0-7]{1,2}|[0-7]{2,3})/))return u.Z},(e,t,s)=>{if(!s.inCharClass&&"("===t&&e.match(/^\(\?[imsU]*(?:-[imsU]+)?\)/))return m.Z},De("imsU"),oe.fF,oe.MH,(e,t,s)=>{if(!s.inCharClass&&e.match(/^(?:[*+?]|{\d+,?\d*})/))return we},(e,t,s)=>{if("\\"===t&&e.match(/^\\[pP](?:C[cfos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?|{\^?\w*}?)?/))return Oe},Le,oe.Nk,Me,(0,oe.eb)(Pe.Z),oe.k_,oe.sN,oe.NY];var Fe=s(62738);const Ge=(e,t)=>{const s=(0,u.Z)(e,t);return"\\0"===t&&(0,h.sT)(s,d.mi),s},Ve=(e,t)=>{const s=(0,f.Z)(e,t);return e.inCharClass&&(0,h.sT)(s,d.Oy),s},Be=["LD","Lower","Upper","ASCII","Alpha","Digit","Alnum","Punct","Graph","Print","Blank","Cntrl","XDigit","Space","javaLowerCase","javaUpperCase","javaAlphabetic","javaIdeographic","javaTitleCase","javaDigit","javaDefined","javaLetter","javaLetterOrDigit","javaJavaIdentifierStart","javaJavaIdentifierPart","javaUnicodeIdentifierStart","javaUnicodeIdentifierPart","javaIdentifierIgnorable","javaSpaceChar","javaWhitespace","javaISOControl","javaMirrored","IsAlphabetic","IsIdeographic","IsLetter","IsLowercase","IsUppercase","IsTitlecase","IsPunctuation","IsControl","IsWhite_Space","IsDigit","IsHex_Digit","IsNoncharacter_Code_Point","IsAssigned"],$e=["Mc","Pc","Cc","Sc","Pd","Nd","L","S","Me","Pe","Pf","Cf","Pi","Nl","Zl","Ll","Sm","Lm","Sk","Mn","Lo","No","Po","So","Zp","Co","Zs","Ps","Cs","Lt","Cn","Lu"],He=["Arabic","Armenian","Avestan","Balinese","Bamum","Batak","Bengali","Bopomofo","Brahmi","Braille","Buginese","Buhid","Canadian_Aboriginal","Carian","Cham","Cherokee","Common","Coptic","Cuneiform","Cypriot","Cyrillic","Deseret","Devanagari","Egyptian_Hieroglyphs","Ethiopic","Georgian","Glagolitic","Gothic","Greek","Gujarati","Gurmukhi","Han","Hangul","Hanunoo","Hebrew","Hiragana","Imperial_Aramaic","Inherited","Inscriptional_Pahlavi","Inscriptional_Parthian","Javanese","Kaithi","Kannada","Katakana","Kayah_Li","Kharoshthi","Khmer","Lao","Latin","Lepcha","Limbu","Linear_B","Lisu","Lycian","Lydian","Malayalam","Mandaic","Meetei_Mayek","Mongolian","Myanmar","New_Tai_Lue","Nko","Ogham","Ol_Chiki","Old_Italic","Old_Persian","Old_South_Arabian","Old_Turkic","Oriya","Osmanya","Phags_Pa","Phoenician","Rejang","Runic","Samaritan","Saurashtra","Shavian","Sinhala","Sundanese","Syloti_Nagri","Syriac","Tagalog","Tagbanwa","Tai_Le","Tai_Tham","Tai_Viet","Tamil","Telugu","Thaana","Thai","Tibetan","Tifinagh","Ugaritic","Unknown","Vai","Yi"],qe=["Aegean_Numbers","Alchemical_Symbols","Alphabetic_Presentation_Forms","Ancient_Greek_Musical_Notation","Ancient_Greek_Numbers","Ancient_Symbols","Arabic","Arabic_Presentation_Forms_A","Arabic_Presentation_Forms_B","Arabic_Supplement","Armenian","Arrows","Avestan","Balinese","Bamum","Bamum_Supplement","Basic_Latin","Batak","Bengali","Block_Elements","Bopomofo","Bopomofo_Extended","Box_Drawing","Brahmi","Braille_Patterns","Buginese","Buhid","Byzantine_Musical_Symbols","Carian","Cham","Cherokee","CJK_Compatibility","CJK_Compatibility_Forms","CJK_Compatibility_Ideographs","CJK_Compatibility_Ideographs_Supplement","CJK_Radicals_Supplement","CJK_Strokes","CJK_Symbols_and_Punctuation","CJK_Unified_Ideographs","CJK_Unified_Ideographs_Extension_A","CJK_Unified_Ideographs_Extension_B","CJK_Unified_Ideographs_Extension_C","CJK_Unified_Ideographs_Extension_D","Combining_Diacritical_Marks","Combining_Diacritical_Marks_Supplement","Combining_Half_Marks","Common_Indic_Number_Forms","Control_Pictures","Coptic","Counting_Rod_Numerals","Cuneiform","Cuneiform_Numbers_and_Punctuation","Currency_Symbols","Cypriot_Syllabary","Cyrillic","Cyrillic_Extended_A","Cyrillic_Extended_B","Cyrillic_Supplementary","Deseret","Devanagari","Devanagari_Extended","Dingbats","Domino_Tiles","Egyptian_Hieroglyphs","Emoticons","Enclosed_Alphanumeric_Supplement","Enclosed_Alphanumerics","Enclosed_CJK_Letters_and_Months","Enclosed_Ideographic_Supplement","Ethiopic","Ethiopic_Extended","Ethiopic_Extended_A","Ethiopic_Supplement","General_Punctuation","Geometric_Shapes","Georgian","Georgian_Supplement","Glagolitic","Gothic","Greek_Extended","Gujarati","Gurmukhi","Halfwidth_and_Fullwidth_Forms","Hangul_Compatibility_Jamo","Hangul_Jamo","Hangul_Jamo_Extended_A","Hangul_Jamo_Extended_B","Hangul_Syllables","Hanunoo","Hebrew","High_Private_Use_Surrogates","High_Surrogates","Hiragana","Ideographic_Description_Characters","Imperial_Aramaic","Inscriptional_Pahlavi","Inscriptional_Parthian","IPA_Extensions","Javanese","Kaithi","Kana_Supplement","Kanbun","Kangxi_Radicals","Kannada","Katakana","Katakana_Phonetic_Extensions","Kayah_Li","Kharoshthi","Khmer","Khmer_Symbols","Lao","Latin-1_Supplement","Latin_Extended_A","Latin_Extended_Additional","Latin_Extended_B","Latin_Extended_C","Latin_Extended_D","Lepcha","Letterlike_Symbols","Limbu","Linear_B_Ideograms","Linear_B_Syllabary","Lisu","Low_Surrogates","Lycian","Lydian","Mahjong_Tiles","Malayalam","Mandaic","Mathematical_Alphanumeric_Symbols","Mathematical_Operators","Meetei_Mayek","Miscellaneous_Mathematical_Symbols_A","Miscellaneous_Mathematical_Symbols_B","Miscellaneous_Symbols","Miscellaneous_Symbols_and_Arrows","Miscellaneous_Symbols_And_Pictographs","Miscellaneous_Technical","Modifier_Tone_Letters","Mongolian","Musical_Symbols","Myanmar","Myanmar_Extended_A","New_Tai_Lue","NKo","Number_Forms","Ogham","Ol_Chiki","Old_Italic","Old_Persian","Old_South_Arabian","Old_Turkic","Optical_Character_Recognition","Oriya","Osmanya","Phags-pa","Phaistos_Disc","Phoenician","Phonetic_Extensions","Phonetic_Extensions_Supplement","Playing_Cards","Private_Use_Area","Rejang","Rumi_Numeral_Symbols","Runic","Samaritan","Saurashtra","Shavian","Sinhala","Small_Form_Variants","Spacing_Modifier_Letters","Specials","Sundanese","Superscripts_and_Subscripts","Supplemental_Arrows_A","Supplemental_Arrows_B","Supplemental_Mathematical_Operators","Supplemental_Punctuation","Supplementary_Private_Use_Area_A","Supplementary_Private_Use_Area_B","Syloti_Nagri","Syriac","Tagalog","Tagbanwa","Tags","Tai_Le","Tai_Tham","Tai_Viet","Tai_Xuan_Jing_Symbols","Tamil","Telugu","Thaana","Thai","Tibetan","Tifinagh","Transport_And_Map_Symbols","Ugaritic","Unified_Canadian_Aboriginal_Syllabics","Unified_Canadian_Aboriginal_Syllabics_Extended","Vai","Variation_Selectors","Variation_Selectors_Supplement","Vedic_Extensions","Vertical_Forms","Yi_Radicals","Yi_Syllables","Yijing_Hexagram_Symbols"],ze=(e,t)=>{const s=(0,ne.Z)(e,t),n=s.script.match(/^(?:(\w+)=(\w+)|(I[ns])(\w+)|()(\w+))$/)||[],r=(0,P.Z)(n,7),a=r[1],i=r[2],o=r[3],l=r[4],c=r[5],u=r[6],p=a||o||c,g=i||l||u;let m=!1;return"Is"===p?m=$e.includes(g)||He.includes(g)||Be.includes(p+g):"In"===p||"blk"===p||"block"===p?m=qe.includes(g):"script"===p||"sc"===p?m=He.includes(g):"general_category"===p||"gc"===p?m=$e.includes(g):p||(m=Be.includes(g)||$e.includes(g)),m||(0,h.sT)(s,d.xi),s.category=p,s.script=g,s},We=(e,t)=>{const s=(0,R.Z)(e,t);return e.subpatterns.includes(s.reference)||(0,h.sT)(s,d.sb),s};var Ye=s(1274),Ke=s(95790),Je=s(70520),Xe=s(1974);const Qe=(e,t,s)=>{if(!s.inCharClass&&e.match(/^(?:[*+?]|{\d+,?\d*}|{)/))return F.Z},et=[ce,(e,t,s)=>{if("["===t&&e.match(/^\[\^?/))return Xe.Z},oe._3,oe.q1,pe,(e,t,s)=>{if("\\"===t&&e.match(/^\\0(?:[0-3]?[0-7]{1,2})?/))return Ge},(e,t,s)=>{if("\\"===t){const t=e.match(/^\\[1-9]\d*/);if(t){let n=parseInt(t[0].slice(1),10);for(;(""+n).length>0&&n>s.captureGroupCount;)n=Math.floor(n/10);return e.backUp(t[0].length-("\\"+n).length),Ve}}},(e,t,s)=>{if(!s.inCharClass&&"("===t&&e.match(/^\(\?[misxu-]*\)/))return m.Z},(e,t,s)=>{let n;if(!s.inCharClass&&"("===t&&(n=e.match(/^\((?:\?(?:[misxu-]*:|[>!=]|<[=!]|<[a-zA-Z0-9]+>))?/))){const e=n[0].replace(/\w+/g,"");if("("===n[0])return H.Z;if("(?:"===n[0])return $.Z;if("(?>"===n[0])return z;if("(?="===e)return J.bO;if("(?!"===e)return J.y3;if("(?<>"===e)return Y.Z;if("(?<="===e)return X.nc;if("(?<!"===e)return X.lw;if(/^\(\?[misxu-]+:/.test(n[0]))return K.Z;b.O7(new Error(`Unknown group structure '${e}'`))}},oe.fF,oe.MH,Qe,(e,t,s)=>{if("\\"===t&&e.match(/^\\[Pp]{(?:\w+=)?\w*}?/))return ze},(e,t,s)=>{if(!s.inCharClass&&"\\"===t&&e.match(/^\\k<\w+>/))return We},Le,(e,t,s)=>{if("\\"===t&&e.match(ie.t))return Ye.Z},oe.oY,oe.Nk,(e,t,s)=>{let n;if("\\"===t&&(n=e.match(/^\\[dDsSwWbBAGZztrnfaeRhHvV]/)))return s.inCharClass?/^\\[trnfaedDsSwWhHvV]/.test(n[0])?B.Z:Ke.Z:B.Z},oe.fR,(0,oe.eb)(Ke.Z),(e,t,s)=>{if("#"===t&&s.flags.includes("x")&&e.match(/^#.*/))return Je.Z},oe.k_,oe.sN,oe.NY],tt=e=>{const t=e.parent.children;return t.indexOf(e)!==t.length-3&&(0,h.sT)(e,d.bb),e.error},st=e=>{const t=(0,h.ZP)(e,j.Ao);return t.parent.classModifier=!0,(0,h.kV)(t,tt),(0,h.A_)(t,Z.Z.meta),t},nt=(e,t)=>{const s=e.reference,n=e.string;return null==t.captureGroupMap[s]&&(/^\\[0-7]{2,3}$/.test(n)?(e.type=j.Pg,e.charCode=parseInt(n.slice(1),8)||0):(0,h.sT)(e,d.Bj)),e.error},rt=(e,t)=>{const s=(0,A.Z)(e,j.WE);return s.reference=parseInt(t.slice(1),10),(0,h.kV)(s,nt),(0,h.A_)(s,Z.Z.backreference),s};var at=s(38844);const it=(e,t)=>{const s=(0,_e.Z)(e,t),n=s.from,r=s.to;return(n>2147483647||r!==1/0&&r>2147483647)&&(0,h.sT)(s,d.Vt),s},ot=["IsBasicLatin","IsLatin-1Supplement","IsLatinExtended-A","IsLatinExtended-B","IsIPAExtensions","IsSpacingModifierLetters","IsCombiningDiacriticalMarks","IsGreek","IsGreekandCoptic","IsCyrillic","IsCyrillicSupplement","IsArmenian","IsHebrew","IsArabic","IsSyriac","IsThaana","IsDevanagari","IsBengali","IsGurmukhi","IsGujarati","IsOriya","IsTamil","IsTelugu","IsKannada","IsMalayalam","IsSinhala","IsThai","IsLao","IsTibetan","IsMyanmar","IsGeorgian","IsHangulJamo","IsEthiopic","IsCherokee","IsUnifiedCanadianAboriginalSyllabics","IsOgham","IsRunic","IsTagalog","IsHanunoo","IsBuhid","IsTagbanwa","IsKhmer","IsMongolian","IsLimbu","IsTaiLe","IsKhmerSymbols","IsPhoneticExtensions","IsLatinExtendedAdditional","IsGreekExtended","IsGeneralPunctuation","IsSuperscriptsandSubscripts","IsCurrencySymbols","IsCombiningDiacriticalMarksforSymbols","IsCombiningMarksforSymbols","IsLetterlikeSymbols","IsNumberForms","IsArrows","IsMathematicalOperators","IsMiscellaneousTechnical","IsControlPictures","IsOpticalCharacterRecognition","IsEnclosedAlphanumerics","IsBoxDrawing","IsBlockElements","IsGeometricShapes","IsMiscellaneousSymbols","IsDingbats","IsMiscellaneousMathematicalSymbols-A","IsSupplementalArrows-A","IsBraillePatterns","IsSupplementalArrows-B","IsMiscellaneousMathematicalSymbols-B","IsSupplementalMathematicalOperators","IsMiscellaneousSymbolsandArrows","IsCJKRadicalsSupplement","IsKangxiRadicals","IsIdeographicDescriptionCharacters","IsCJKSymbolsandPunctuation","IsHiragana","IsKatakana","IsBopomofo","IsHangulCompatibilityJamo","IsKanbun","IsBopomofoExtended","IsKatakanaPhoneticExtensions","IsEnclosedCJKLettersandMonths","IsCJKCompatibility","IsCJKUnifiedIdeographsExtensionA","IsYijingHexagramSymbols","IsCJKUnifiedIdeographs","IsYiSyllables","IsYiRadicals","IsHangulSyllables","IsHighSurrogates","IsHighPrivateUseSurrogates","IsLowSurrogates","IsPrivateUse","IsPrivateUseArea","IsCJKCompatibilityIdeographs","IsAlphabeticPresentationForms","IsArabicPresentationForms-A","IsVariationSelectors","IsCombiningHalfMarks","IsCJKCompatibilityForms","IsSmallFormVariants","IsArabicPresentationForms-B","IsHalfwidthandFullwidthForms","IsSpecials","Lu","Ll","Lt","Lm","Lo","L","Mn","Mc","Me","M","Nd","Nl","No","N","Pc","Pd","Ps","Pe","Pi","Pf","Po","P","Sm","Sc","Sk","So","S","Zs","Zl","Zp","Z","Cc","Cf","Cs","Co","Cn","C"],lt=(e,t)=>{const s=(0,ne.Z)(e,t),n=t.slice(2).replace(/[^\w-]+/g,"");return t.endsWith("}")?ot.includes(n)||(0,h.sT)(s,d.xi):(0,h.sT)(s,d.YY),s.script=n,s},ct=(e,t)=>(null==t.captureGroupMap[e.balancedGroup]&&(0,h.sT)(e,d.Bj),e.error),ut=(e,t)=>{const s=(0,q.Z)(e,j.ET),n=t.slice(3,-1).split("-"),r=(0,P.Z)(n,2)[1];return e.flavor===l().DOTNET&&e.flags.includes("N")&&(0,h.sT)(s,d.Ct),s.willBeQuantifiable=!0,s.balancedGroup=r,(0,h.kV)(s,ct),s},dt=(e,t)=>(null==t.captureGroupMap[e.balancedGroup]&&(0,h.sT)(e,d.Bj),e.error),ht=(e,t)=>{const s=(0,Y.Z)(e,t),n=t.slice(3,-1).split("-"),r=(0,P.Z)(n,2),a=r[0],i=r[1];return e.flavor===l().DOTNET&&e.flags.includes("N")&&(0,h.sT)(s,d.Ct),s.type=j.sr,s.subpattern=a,s.balancedGroup=i,(0,h.kV)(s,dt),s},pt=(e,t)=>{const s=e.backreference,n=e.condition,r=e.reference;return s||n?r&&null==t.captureGroupMap[r]&&(0,h.sT)(e,d.Bj):(0,h.sT)(e,d.CL),e.error},gt=(e,t)=>{const s=(0,ee.Z)(e,t),n="(?"!==t;return e.flavor===l().DOTNET&&e.flags.includes("N")&&(0,h.sT)(s,d.Ct),s.backreference=n,n&&(s.reference=s.condition),(0,h.kV)(s,pt),s};var mt=s(38676);const xt=(e,t,s)=>{if(2===e.children.length){const n=(0,P.Z)(e.children,1)[0];let r="";for(let e=0,t=n.children.length;e<t;e++){const t=n.children[e];if(t.type!==j.zl)return!1;r+=t.string}if(t.subpatterns.includes(r)){const n=e.parent,a=n.parent,i=`(${r})`;n.children.splice(0,1),a.string+=i,a.backreference=!0,a.lookaround=!1,a.subroutine=!1,a.position.end+=i.length,a.condition=r,a.reference=r;const o=s.findIndex((t=>t===e));for(let e=0,t=i.length;e<t;e++)s.splice(o,1);t.lookaroundCount--}}return!1},ft=e=>{const t=(0,J.bO)(e);return e.addImplicitLookahead=!1,(0,h.kV)(t,xt),t},vt=[(e,t,s)=>{if(s.addImplicitLookahead&&e.matchString("("))return ft},(e,t,s)=>{if((!s.inCharClass||s.previousToken.type===j.Ao)&&"["===t&&e.match(/^\[\^?/))return Xe.Z},(e,t,s)=>{if(s.inCharClass&&e.matchString("[::]"))return N.Z},oe.q1,(e,t,s)=>{if(s.inCharClass&&s.previousToken.type!==j.HI&&e.match(/^-(?=\[)/))return st},oe.VI,(e,t,s)=>{if(!s.inCharClass&&e.match(/^\\k?(?:<\w+>|'\w+')/))return R.Z},(e,t,s)=>{let n;if("\\"===t&&(n=e.match(/^\\(\d+)/))){if(!s.inCharClass&&"0"!==n[1].charAt(0))return rt;const t=n[1].match(/^[0-7]{2,3}/);let r=0;return t?(r=n[1].length-t[0].length,r>0&&e.backUp(r),u.Z):(n[0].length>2&&e.backUp(n[0].length-2),at.Z)}},(e,t,s)=>{if(!s.inCharClass&&"("===t&&e.match(/^\(\?[imnsx]*(?:-[imnsx]+)?\)/))return m.Z},oe.mw,(e,t,s)=>{let n;if(!s.inCharClass&&"("===t&&(n=e.match(/^\((?:\?(?:[imnsx-]*:|[>!=]|<[=!]|'\w+'|'\w*-\w+'|<\w+>|<\w*-\w+>)?)?/))){const t=n[0];if("("===t)return s.flags.includes("n")?$.Z:H.Z;if("(?:"===t)return $.Z;if("(?>"===t)return z;if("(?="===t)return J.bO;if("(?!"===t)return J.y3;if("(?<="===t)return X.nc;if("(?<!"===t)return X.lw;if(/^\(\?[a-z-]+:/i.test(t))return K.Z;if(t.startsWith("(?<-")||t.startsWith("(?'-"))return ut;if(t.startsWith("(?<")||t.startsWith("(?'"))return t.includes("-")?ht:Y.Z;if("(?"===t){const t=e.match(/^\(\w+\)/);if(t){const n=t[0].slice(1,-1);if(null!=s.captureGroupMap[n]||/^\d/.test(n))return gt;e.backUp(t[0].length)}const n=e.match(/^\((?:\?<?[!=]|(?!\d))/,!1);return s.addImplicitLookahead="("===(null==n?void 0:n[0]),s.expectingCondition=!!n,gt}b.O7(new Error(`Unknown group structure '${t}'`))}},oe.fF,oe.MH,(e,t,s)=>{if(!s.inCharClass&&e.match(/^(?:[*+?]|{\d+,?\d*})/))return it},(e,t,s)=>{if("\\"===t&&e.match(/^\\[pP]{[-\w]+}?/))return lt},Fe.K,oe.fR,(e,t,s)=>{if(e.match(/^\\c[a-zA-Z]/))return mt.Z},oe.Nk,(e,t,s)=>{let n;if("\\"===t&&(n=e.match(/^\\[atrvfnewWsSdDAZzGbB]/)))return"\\v"===n[0]?Re.Z:s.inCharClass?"\\b"===n[0]?V.Z:/^\\[atrvfnewWsSdD]/.test(n[0])?B.Z:at.Z:B.Z},(e,t,s)=>{if('"'===t&&e.matchString('""'))return at.Z},(0,oe.eb)(at.Z),oe.tP,oe.k_,oe.sN,oe.NY];var bt=s(80430),jt=s(57093),Ct=s(25035);const Zt=e=>{const t=(0,Ct.Z)(e,j.ix);return t.parent.charClassSymmetricDifference=!0,t},yt=e=>{const t=(0,Ct.Z)(e,j.Ao);return t.parent.charClassSubtraction=!0,t};var Et=s(69741),Tt=s(63231);const kt=(e,t)=>{const s=(0,Ie.Z)(e,t);return(0,Tt.i)(s.hex)&&(0,h.sT)(s,d.oH),s},Nt=e=>{switch(e){case'"':return'"';case"#":return'"#';case"##":return'"##';case"###":return'"###';case"####":return'"####';default:throw new Error(`Unknown Rust delimiter '${e}'`)}},St=[(e,t,s)=>{if(s.inCharClass&&"["===t&&e.match(/^\[:\^?(?:alnum|alpha|ascii|blank|cntrl|digit|graph|lower|print|punct|space|upper|word|xdigit):]/))return k},(e,t,s)=>{var n;if("["===t&&(null==(n=s.previousToken)?void 0:n.type)!==j.jt&&e.match(/^\[\^?/))return Xe.Z},oe._3,(e,t,s)=>{if(s.inCharClass&&e.matchString("--"))return yt},(e,t,s)=>{if(s.inCharClass&&e.matchString("~~"))return Zt},oe.q1,(e,t,s)=>{var n,r;if("-"===t&&s.inCharClass&&!(null==(n=s.previousToken)?void 0:n.partOfRange)&&(null==(r=s.previousToken)?void 0:r.type)!==j.HI&&e.eat("-"))return S.ZP},(e,t,s)=>{if(!s.inCharClass&&"("===t&&e.match(/^\(\?[imsUx]*(?:-[imsUx]+)?\)/))return m.Z},De("imsUx"),oe.fF,oe.MH,Qe,(e,t,s)=>{if(s.unicodeEnabled&&"\\"===t&&e.match(/^\\[pP][LMNSPZC]/))return ne.Z},(e,t,s)=>{if(s.unicodeEnabled&&"\\"===t&&e.match(/^\\[pP]{(?:\w+!?[:=])?\w*}?/))return jt.Z},(e,t,s)=>{if("\\"===t&&e.match(/^\\x(?:[0-9A-Fa-f]{2}|{[0-9A-Fa-f]+}?)/))return kt},(e,t,s)=>{if("\\"===t&&e.match(/^\\(?:u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8}|[uU]{[0-9A-Fa-f]*}?)/))return bt.Z},oe.Nk,Me,(0,oe.eb)(Et.Z),(e,t,s)=>{const n=Nt(s.delimiter),r=new RegExp(`^#(?:(?!${n}).)*`);if("#"===t&&s.flags.includes("x")&&e.match(r))return Je.Z},oe.k_,(e,t,s)=>{const n=Nt(s.delimiter);if(('"'===t||"#"===t)&&e.matchString(n))return N.Z},oe.NY],_t=r()(((e,t={})=>{const s=((e={})=>Object.assign({alternatives:0,parents:[],previousToken:null,adjacentToken:null,lineTerminators:null,captureGroups:[],captureGroupCount:0,numericCaptureGroupCount:0,captureGroupMap:Object.create(null),dotnetCaptureMap:Object.create(null),subpatterns:[],definedSubpatterns:[],groups:[],conditionals:[],lookbehinds:[],lookbehindCount:0,lookaroundCount:0,inDEFINE:!1,branchResetGroups:[],inCharClass:!1,charClasses:[],ranges:[],condition:null,expectingCondition:!1,addImplicitLookahead:!1,unicodeEnabled:!1,ucpVerb:!1,flags:null,flavor:l().PCRE2,delimiter:null,isSubstitution:!1,patternError:!1,revalidateTokens:[],revalidateTokensNext:[]},e))(t);s.unicodeEnabled=(0,c.sH)(t.flags,t.flavor),s.lineTerminators=(0,c.m0)(t.flavor);const n=(0,a.Z)(s),r=(e=>{switch(e){case l().PCRE2:return Ne;case l().PCRE:return ke;case l().JAVASCRIPT:return Se.ZP;case l().GOLANG:return Ue;case l().PYTHON:return Fe.Z;case l().JAVA:return et;case l().DOTNET:return vt;case l().RUST:return St;default:throw new Error(`There is no tokenizer for '${e}'`)}})(t.flavor),o=(0,i.Q)(r,e,s);return o.unshift(n),{tokens:o,patternError:s.patternError,state:s}}))},27428:(e,t,s)=>{"use strict";s.d(t,{SC:()=>d,jj:()=>l,m0:()=>c,sH:()=>u,sx:()=>o});var n=s(98152),r=s(48186),a=s(61348),i=s.n(a);const o=(e,t)=>e.some((e=>t.includes(e))),l=(e,t,s=i().PCRE)=>{let a=t.match(/^\^?([^-]*)-?(.*)/),o=(0,n.Z)(a,3),l=o[1],c=o[2];if(s!==i().PCRE){if(c.includes("-"))return[null,null,null];if(t.includes("^")){const t="imsnx".replace(new RegExp(`[${l}]`,"g"),"");c+=e.replace(new RegExp(`[^${t}]`,"g"),"")}}c=c.replace(/-/g,"");const u=(0,r.Z)(e+l).join("").replace(new RegExp(`[${c}]`,"g"),"");if(s===i().PCRE2)return[l.includes("xx")||e.includes("xx")?u.replace("x","xx"):u,(0,r.Z)(l.includes("xx")?l.match(/xx|./g):l),(0,r.Z)(c.includes("xx")?c.match(/xx|./g):c)];const d=(0,r.Z)(l),h=(0,r.Z)(c);return[u,d,h,d.length!==l.length||h.length!==c.length]},c=e=>{switch(e){case i().JAVA:return["\\r\\n","\\n","\\r","\\u2028","\\u2029","\\u0085"];case i().RUST:case i().PCRE2:case i().PYTHON:case i().GOLANG:case i().PCRE:return["\\n"];case i().JAVASCRIPT:return["\\n","\\r","\\u2028","\\u2029"];case i().DOTNET:return["\\n","\\r"];default:throw new Error(`Unknown line terminator for ${e}`)}},u=(e="",t=i().PCRE2)=>t===i().GOLANG||t===i().RUST||!(t!==i().JAVA||!e.includes("U"))||e.includes("u"),d={lookbehind:!1,namedGroup:!1,unicodeProperty:!1}},12313:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});const n=(e,t,s,n)=>{if((null==e[n=""+n]||t[s]!==n)&&null!=t[s]){const r=t[n];for(let n=s+1;;n++)if(null==t[n]){e[r]=n,e[n]=r,t[n]=r;break}}t[s]=n}},38844:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(31360),r=s(51836),a=s(4779);const i=(e,t)=>{const s=(0,r.Z)(e,t);return/^(?:\\[!#$%&'()*+,\-./:;<=>?@[\\\]^`{|}~]$|"")/i.test(t)||(0,a.sT)(s,n.mi),s}},62284:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(31360),r=s(51836),a=s(4779);const i=(e,t)=>{const s=(0,r.Z)(e,t);return/^\\[!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~]$/i.test(t)?"\\`"===t?(0,a.sT)(s,n.Qc):e.isSubstitution&&!/^\\[\\"]$/.test(t)&&(0,a.sT)(s,n.mi):(0,a.sT)(s,n.mi),s}},95790:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(31360),r=s(51836),a=s(4779);const i=(e,t)=>{const s=(0,r.Z)(e,t);return/^\\[a-z]$/i.test(t)&&(0,a.sT)(s,n.mi),s}},9961:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(31360),r=s(29856),a=s(4779);const i=(e,t)=>{const s=(0,r.Z)(e,t);return"\\0"!==t&&(0,a.sT)(s,n.mi),s}},38676:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(31360),r=s(42066),a=s(4779);const i=(e,t)=>{const s=(0,r.Z)(e,t);return/^\\c[a-zA-Z]$/.test(t)||(0,a.sT)(s,n.Iu),s}},92250:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(31360),r=s(51836),a=s(4779);const i=(e,t)=>{const s=e.unicodeEnabled,i=e.inCharClass,o=e.isSubstitution,l=(0,r.Z)(e,t);return!s||i&&"\\-"===t||/^\\[$()*+./?[\\\]^{|}]$/i.test(t)?i&&"\\k"===t?(0,a.sT)(l,n.mi):o&&/^\\[89]$/.test(t)&&(0,a.sT)(l,n.of):(0,a.sT)(l,n.mi),l}},81669:(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s(31360),r=s(26850),a=s(4779),i=s(63231);const o=(e,t)=>{const s=e.unicodeEnabled,o=(0,r.Z)(e,t),l=o.hex;return l.length>4&&!s?(0,a.sT)(o,n.y1):s&&(0,i.i)(l)?(0,a.sT)(o,n.oH):"\\x{}"===t&&(0,a.sT)(o,n.Yo),o}},24474:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(31360),r=s(82542),a=s(4779);const i=(e,t)=>{const s=(0,r.Z)(e,t),i=s.from,o=s.to;return(i>65535||o!==1/0&&o>65535)&&(0,a.sT)(s,n.Vt),e.flags.includes("U")&&(s.lazy=!s.lazy),s}},64610:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(56468),r=s(31360),a=s(4779);const i=e=>{const t=(0,a.ZP)(e,n.MW);return(0,a.sT)(t,r.Jf),t}},80430:(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s(31360),r=s(91435),a=s(4779),i=s(63231);const o=(e,t)=>{const s=(0,r.Z)(e,t);return(0,i.i)(s.hex)&&(0,a.sT)(s,n.oH),s}},69741:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(31360),r=s(51836),a=s(4779);const i=(e,t)=>{const s=(0,r.Z)(e,t);return(e.isSubstitution?/^\\["\\]/:/^\\[-\\.+*?()|[\]{}^$#]$/i).test(t)||(0,a.sT)(s,n.mi),s}},57093:(e,t,s)=>{"use strict";s.d(t,{F:()=>h,Z:()=>v});var n=s(98152),r=s(61348),a=s.n(r),i=s(31360),o=s(29215),l=s(4779);const c=["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"],u=["Cased_Letter","LC","Close_Punctuation","Pe","Connector_Punctuation","Pc","Control","Cc","cntrl","Currency_Symbol","Sc","Dash_Punctuation","Pd","Decimal_Number","Nd","digit","Enclosing_Mark","Me","Final_Punctuation","Pf","Format","Cf","Initial_Punctuation","Pi","Letter","L","Letter_Number","Nl","Line_Separator","Zl","Lowercase_Letter","Ll","Mark","M","Combining_Mark","Math_Symbol","Sm","Modifier_Letter","Lm","Modifier_Symbol","Sk","Nonspacing_Mark","Mn","Number","N","Open_Punctuation","Ps","Other","C","Other_Letter","Lo","Other_Number","No","Other_Punctuation","Po","Other_Symbol","So","Paragraph_Separator","Zp","Private_Use","Co","Punctuation","P","punct","Separator","Z","Space_Separator","Zs","Spacing_Mark","Mc","Surrogate","Cs","Symbol","S","Titlecase_Letter","Lt","Unassigned","Cn","Uppercase_Letter","Lu"],d=["Adlam","Adlm","Ahom","Anatolian_Hieroglyphs","Hluw","Arabic","Arab","Armenian","Armn","Avestan","Avst","Balinese","Bali","Bamum","Bamu","Bassa_Vah","Bass","Batak","Batk","Bengali","Beng","Bhaiksuki","Bhks","Bopomofo","Bopo","Brahmi","Brah","Braille","Brai","Buginese","Bugi","Buhid","Buhd","Canadian_Aboriginal","Cans","Carian","Cari","Caucasian_Albanian","Aghb","Chakma","Cakm","Cham","Chorasmian","Chrs","Cherokee","Cher","Common","Zyyy","Coptic","Copt","Qaac","Cuneiform","Xsux","Cypriot","Cprt","Cyrillic","Cyrl","Deseret","Dsrt","Devanagari","Deva","Dives_Akuru","Diak","Dogra","Dogr","Duployan","Dupl","Egyptian_Hieroglyphs","Egyp","Elbasan","Elba","Elymaic","Elym","Ethiopic","Ethi","Georgian","Geor","Glagolitic","Glag","Gothic","Goth","Grantha","Gran","Greek","Grek","Gujarati","Gujr","Gunjala_Gondi","Gong","Gurmukhi","Guru","Han","Hani","Hangul","Hang","Hanifi_Rohingya","Rohg","Hanunoo","Hano","Hatran","Hatr","Hebrew","Hebr","Hiragana","Hira","Imperial_Aramaic","Armi","Inherited","Zinh","Qaai","Inscriptional_Pahlavi","Phli","Inscriptional_Parthian","Prti","Javanese","Java","Kaithi","Kthi","Kannada","Knda","Katakana","Kana","Kayah_Li","Kali","Kharoshthi","Khar","Khitan_Small_Script","Kits","Khmer","Khmr","Khojki","Khoj","Khudawadi","Sind","Lao","Laoo","Latin","Latn","Lepcha","Lepc","Limbu","Limb","Linear_A","Lina","Linear_B","Linb","Lisu","Lycian","Lyci","Lydian","Lydi","Mahajani","Mahj","Makasar","Maka","Malayalam","Mlym","Mandaic","Mand","Manichaean","Mani","Marchen","Marc","Medefaidrin","Medf","Masaram_Gondi","Gonm","Meetei_Mayek","Mtei","Mende_Kikakui","Mend","Meroitic_Cursive","Merc","Meroitic_Hieroglyphs","Mero","Miao","Plrd","Modi","Mongolian","Mong","Mro","Mroo","Multani","Mult","Myanmar","Mymr","Nabataean","Nbat","Nandinagari","Nand","New_Tai_Lue","Talu","Newa","Nko","Nkoo","Nushu","Nshu","Nyiakeng_Puachue_Hmong","Hmnp","Ogham","Ogam","Ol_Chiki","Olck","Old_Hungarian","Hung","Old_Italic","Ital","Old_North_Arabian","Narb","Old_Permic","Perm","Old_Persian","Xpeo","Old_Sogdian","Sogo","Old_South_Arabian","Sarb","Old_Turkic","Orkh","Oriya","Orya","Osage","Osge","Osmanya","Osma","Pahawh_Hmong","Hmng","Palmyrene","Palm","Pau_Cin_Hau","Pauc","Phags_Pa","Phag","Phoenician","Phnx","Psalter_Pahlavi","Phlp","Rejang","Rjng","Runic","Runr","Samaritan","Samr","Saurashtra","Saur","Sharada","Shrd","Shavian","Shaw","Siddham","Sidd","SignWriting","Sgnw","Sinhala","Sinh","Sogdian","Sogd","Sora_Sompeng","Sora","Soyombo","Soyo","Sundanese","Sund","Syloti_Nagri","Sylo","Syriac","Syrc","Tagalog","Tglg","Tagbanwa","Tagb","Tai_Le","Tale","Tai_Tham","Lana","Tai_Viet","Tavt","Takri","Takr","Tamil","Taml","Tangut","Tang","Telugu","Telu","Thaana","Thaa","Thai","Tibetan","Tibt","Tifinagh","Tfng","Tirhuta","Tirh","Ugaritic","Ugar","Vai","Vaii","Wancho","Wcho","Warang_Citi","Wara","Yezidi","Yezi","Yi","Yiii","Zanabazar_Square","Zanb"],h=(e,t=!1)=>null==e?null:t||e.length>2?e.replace(/[-_\s]/g,"").toLowerCase():e,p=["LC","Sc"],g=["Surrogate","Cs","Changes_When_NFKC_Casefolded","CWKCF"].map((e=>h(e)));let m,x,f;const v=(e,t)=>{const s=(0,o.Z)(e,t),r=e.flavor===a().RUST,v=r;v&&(m||(m=c.map((e=>h(e)))),x||(x=u.map((e=>h(e)))),f||(f=d.map((e=>h(e)))));const b=v?m:c,j=v?x:u,C=v?f:d;let Z=s.script.split(/[:=]/),y=(0,n.Z)(Z,2),E=y[0],T=y[1];null==T&&(T=E,E=null);const k=T,N=E;v&&(E=h(E,!0),T=h(T));let S=!1;return null==E?(S=b.includes(T)||j.includes(T),r&&(S=S||C.includes(T),p.includes(T)&&(0,l.sT)(s,i.wY))):"gc"===E||"General_Category"===E||v&&"generalcategory"===E?S=j.includes(T):("Script"===E||"Script_Extension"===E||"sc"===E||"scx"===E||v&&("script"===E||"scriptextensions"===E))&&(S=C.includes(T)),g.includes(T)?(0,l.sT)(s,i.wY):S||(0,l.sT)(s,i.xi),s.category=N,s.script=k,s}},18346:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(56468),r=s(4779),a=s(64475);const i=e=>{e.parents.pop();const t=(0,r.ZP)(e,n.hs);return t.parent&&(0,r.Cv)(t.parent,t),t.alternativeNumber=null,(0,r.A_)(t,a.Z.alternator),t}},62170:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(56468),r=s(4779),a=s(64475);const i=e=>{const t=(0,r.ZP)(e,n.ZH);return t.length=1,t.charCode="\b".charCodeAt(0),(0,r.A_)(t,a.Z.meta),t}},43406:(e,t,s)=>{"use strict";s.d(t,{Q_:()=>i,ZP:()=>l,lC:()=>o});var n=s(48186),r=s(56468),a=s(48401);const i=(e,t)=>{e.finalCaptureGroupCount=Math.max(e.finalCaptureGroupCount,t.captureGroupCount),e.captureGroupMap=Object.assign(Object.assign({},e.captureGroupMap),t.captureGroupMap),e.subpatterns=(0,n.Z)(e.subpatterns.concat(t.subpatterns))},o=e=>({finalCaptureGroupCount:e.finalCaptureGroupCount,captureGroupCount:e.captureGroupCount,captureGroupMap:e.captureGroupMap,subpatterns:e.subpatterns}),l=e=>{const t=(0,a.Z)(e,r.no);return e.branchResetGroups.push(t),t.willBeQuantifiable=!0,t.captureGroupCount=e.captureGroupCount,t.subpatterns=[],t.captureGroupMap={},t.finalCaptureGroupCount=0,i(t,e),t}},78347:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(56468),r=s(61348),a=s.n(r),i=s(12313),o=s(48401);const l=e=>{const t=e.definedSubpatterns,s=e.inDEFINE,r=e.captureGroups,l=e.captureGroupMap,c=e.flavor,u=e.captureGroupCount,d=e.numericCaptureGroupCount,h=e.dotnetCaptureMap,p=(0,o.Z)(e,n.t),g=c===a().DOTNET,m=(g?d:u)+1;if(s&&t.push(u),g){const e=""+m;(0,i.Z)(l,h,m,e),l[e]=m}else l[m]=m;return r.push(p),e.captureGroupCount++,e.numericCaptureGroupCount++,p.willBeQuantifiable=!0,p.groupNumber=m,p}},25035:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(4779),r=s(56468),a=s(31360),i=s(64475);const o=(e,t,s)=>{const i=e.previousToken,o=s[s.length-1];if(!i||!o||i.type===r.HI||i.type===r.zB||i.type===r.ix||i.type===r.Ao||o.type===r.U6||o.type===r.zB||o.type===r.ix||o.type===r.Ao){let t;switch(e.type){case r.Ao:t=a.bb;break;case r.zB:t=a.jz;break;case r.ix:t=a.nv;break;default:throw new Error(`Unknown charclass modifier '${e.string}'`)}(0,n.sT)(e,t)}return e.error},l=(e,t)=>{const s=e.previousToken,r=(0,n.ZP)(e,t);return r.previousToken=s,r.parent.classModifier=!0,(0,n.U3)(r,o),(0,n.A_)(r,i.Z.meta),r}},7656:(e,t,s)=>{"use strict";s.d(t,{ZP:()=>g,oA:()=>h});var n=s(56468),r=s(31360),a=s(61348),i=s.n(a),o=s(4779),l=s(64475);const c=parseInt("0xd800",16),u=parseInt("0xdfff",16),d=(e,t,s)=>{const a=t.unicodeEnabled,l=t.flavor,d=e.previousToken,g=s[s.length-1],m=h(d,"end"),x=h(g,"start");let f=!1;return!g||g.type===n.U6&&l!==i().JAVA||d.type===n.HI||g.type===n.HI||d.type===n.jt||d.partOfRange||g.partOfRange?f=!0:(l!==i().JAVASCRIPT||a||null!=x)&&(l!==i().DOTNET&&l!==i().GOLANG||null!=m)||(f=!0),f||((null==g?void 0:g.type)===n.U6&&l===i().JAVA?(0,o.sT)(e,r.BL):null==m||null==x?(0,o.sT)(e,r.BC):m>x?(0,o.sT)(e,r.i0):!t.unicodeEnabled&&((null==d?void 0:d.type)===n.zl&&m>=c&&m<=u||(null==g?void 0:g.type)===n.zl&&x>=c&&x<=u)?(0,o.sT)(e,r.Af):(null!=d&&d.error||null!=g&&g.error)&&(0,o.sT)(e,r.Y4)),f?p(e,d,g):(d.rangeToken=e,g.rangeToken=e,d.partOfRange=!0,g.partOfRange=!0,e.leftToken=d,e.rightToken=g),e.error},h=(e,t)=>e?e.type===n.$U?"start"===t?e.startCodePoint||e.startCharCode:e.endCodePoint||e.endCharCode:e.codePoint||e.charCode:null,p=(e,t,s)=>{e.type=n.zl,e.length=1,e.charCode="-".charCodeAt(0),e.isPoorlyPlaced=(null==s?void 0:s.type)!==n.U6&&(null==t?void 0:t.type)!==n.HI,e.leftToken=null,e.rightToken=null,(0,o.A_)(e,"")},g=e=>{const t=e.previousToken,s=(0,o.ZP)(e,n.jt);return s.charCode="-".charCodeAt(0),s.codePoint="-".codePointAt(0),s.previousToken=t,(0,o.U3)(s,d),(0,o.A_)(s,l.Z.meta),s}},41061:(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s(31360),r=s(56468),a=s(4779),i=s(43406);const o=e=>{var t;e.parents.pop();const s=(0,a.ZP)(e,null),o=s.parent,l=null==o?void 0:o.type;if(o?o.error&&(0,a.sT)(s,o.error):(0,a.sT)(s,n.f0),e.flags=null!=(t=null==o?void 0:o.previousFlags)?t:e.flags,e.parents.pop(),e.groups.pop(),!s.error&&o&&(e.previousToken=o),l===r.Ws)e.inDEFINE=!1;else if(l===r.PG||l===r.up||l===r.fy)e.lookbehindCount=o.lookbehindCount,e.lookaroundCount--;else if(l===r.Gs||l===r.Ty||l===r.qh)e.lookbehindCount--,e.lookaroundCount--;else if(l===r.no){(0,i.Q_)(o,e),e.branchResetGroups.pop();const t=(0,i.lC)(o),s=t.finalCaptureGroupCount,n=t.captureGroupMap,r=t.subpatterns;e.captureGroupCount=s,e.captureGroupMap=n,e.subpatterns=r}if(s.type=l,o){const e=o.groupNumber,t=o.subpattern,n=o.willBeQuantifiable;s.openGroup=o,s.groupNumber=e,s.subpattern=t,s.quantifiable=n,o.closeGroup=s,o.quantifiable=n,(0,a.Cv)(o,s)}return o&&(0,a.A_)(s,o.style),s}},16835:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var n=s(56468),r=s(48401);const a=(e,t)=>{const s=(0,r.Z)(e,n.oK),a=t.slice(3,-1);return e.conditionals.push(s),s.willBeQuantifiable=!0,s.condition=a,s.reference=null,s.lookaround=!1,s.backreference=!1,s.subroutine=!1,s.captureGroupCount=e.captureGroupCount,s}},42066:(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s(56468),r=s(31360),a=s(4779),i=s(64475);const o=(e,t)=>{const s=(0,a.ZP)(e,n.lA),o=t.slice(2),l=o?64^o.toUpperCase().charCodeAt(0):null;return/^[\u0000-\u007F]$/.test(o)||(0,a.sT)(s,r.Iu),s.quantifiable=!0,s.length=1,s.charCode=l,(0,a.A_)(s,i.Z.meta),s}},51836:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(56468),r=s(4779),a=s(64475);const i=(e,t)=>{const s=(0,r.ZP)(e,n.t0);return s.quantifiable=!0,s.length=1,s.charCode=t.charCodeAt(1),s.codePoint=t.codePointAt(1),(0,r.A_)(s,a.Z.escaped_string),s}},68072:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(31360),r=s(56468),a=s(4779),i=s(18346),o=s(43406);const l=e=>{const t=(0,i.Z)(e),s=t.parent;return(s.type===r.Ws||s.type===r.oK&&s.alternatives>0)&&(0,a.sT)(t,n.cs),e.parents.push(t),s.type===r.no&&((0,o.Q_)(s,e),e.captureGroupCount=s.captureGroupCount),s.alternatives++,t.alternativeNumber=s.alternatives,(0,a.A_)(t,s.style),t}},48401:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(31360),r=s(99221),a=s(4779),i=s(64475);const o=e=>(e.closeGroup||(0,a.sT)(e,n.CL),e.error),l=(e,t)=>{const s=e.flags,l=e.groups,c=e.parents,u=(0,a.ZP)(e,t),d=`group-${Math.min(l.length,3)}`;return l.length>=250&&(0,a.sT)(u,n.n2),u.quantifiable=!1,u.alternatives=0,u.closeGroup=null,u.previousFlags=s,u.lookbehindCount=e.lookbehindCount,c.push(u),l.push(u),(0,a.kV)(u,o),(0,r.Z)(e),(0,a.A_)(u,i.Z[d]),u}},26850:(e,t,s)=>{"use strict";s.d(t,{Z:()=>d});var n=s(56468),r=s(31360),a=s(61348),i=s.n(a),o=s(4779),l=s(64475);const c=parseInt("0x10ffff",16),u=parseInt("0xfffff",16),d=(e,t)=>{const s=(0,o.ZP)(e,n.L3),a=e.flavor===i().GOLANG?u:c,d=t.slice(2).replace(/[{}]/g,"")||"00";let h=parseInt(d,16);return"{"===t.charAt(2)&&"}"!==t.slice(-1)?(0,o.sT)(s,r.YY):parseInt(d,16)>a&&((0,o.sT)(s,r.y1),h=null),s.quantifiable=!0,s.length=1,s.hex=d,s.charCode=h,(0,o.A_)(s,l.Z.meta),s}},52111:(e,t,s)=>{"use strict";s.d(t,{Z:()=>d});var n=s(98152),r=s(56468),a=s(31360),i=s(27428),o=s(61348),l=s.n(o),c=s(4779),u=s(64475);const d=(e,t)=>{var s,o;const d=e.flavor,h=e.flags,p=(0,c.ZP)(e,r.RW);d===l().PCRE||d===l().PCRE2||"(?)"!==t?d===l().DOTNET&&(null==(s=p.parent)||null==(o=s.parent)?void 0:o.type)===r.oK&&(0,c.sT)(p,a.HT):(0,c.sT)(p,a.YY);const g=(0,i.jj)(h,t.slice(2,-1),d),m=(0,n.Z)(g,4),x=m[0],f=m[1],v=m[2],b=m[3];return null==x&&(0,c.sT)(p,a.Gz),d===l().RUST&&(b||(0,i.sx)(f,v))&&(0,c.sT)(p,a.jW),e.flags=null!=x?x:h,e.unicodeEnabled=(0,i.sH)(e.flags,d),p.flags=e.flags,p.onFlags=f,p.offFlags=v,(0,c.A_)(p,u.Z.inline_modifiers),p}},99221:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var n=s(56468),r=s(4779);const a=e=>{const t=e.previousToken,s=(0,r.ZP)(e,n.hs);return e.parents.push(s),e.previousToken=t,s.alternativeNumber=0,s.invisible=!0,s}},70520:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(56468),r=s(4779),a=s(64475);const i=(e,t)=>{const s=e.previousToken,i=(0,r.ZP)(e,n.qi);return e.previousToken=s,i.comment=t.slice(1),(0,r.A_)(i,a.Z.comment),i}},89570:(e,t,s)=>{"use strict";s.d(t,{T0:()=>o,bO:()=>a,y3:()=>i});var n=s(56468),r=s(43934);const a=e=>l(e,n.PG),i=e=>l(e,n.up),o=e=>l(e,n.fy),l=(e,t)=>{const s=(0,r.Z)(e,t);return e.lookbehindCount=0,s}},43934:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(61348),r=s.n(n),a=s(31360),i=s(48401),o=s(4779);const l=(e,t)=>{const s=e.expectingCondition,n=e.previousToken,l=e.flavor,c=(0,i.Z)(e,t);return e.flavor===r().DOTNET&&e.flags.includes("N")&&(0,o.sT)(c,a.Ct),s&&(n.lookaround=!0,n.condition=c,e.expectingCondition=!1),e.lookaroundCount++,c.isCondition=s,c.willBeQuantifiable=!s&&(l===r().PCRE||l===r().PCRE2||l===r().DOTNET),c}},60438:(e,t,s)=>{"use strict";s.d(t,{fy:()=>d,lw:()=>u,nc:()=>c});var n=s(56468),r=s(31360),a=s(61348),i=s.n(a),o=s(43934),l=s(4779);const c=e=>h(e,n.Gs),u=e=>h(e,n.Ty),d=e=>h(e,n.qh),h=(e,t)=>{const s=(0,o.Z)(e,t);return e.lookbehinds.push(s),e.lookbehindCount++,(0,l.kV)(s,p),s},p=(e,t)=>{const s=t.flavor;if(s===i().JAVA||s===i().JAVASCRIPT||s===i().DOTNET)return!1;const n={foundError:!1};if(s===i().PYTHON)g(e.children,n);else for(let t=0,s=e.children.length;t<s;t++)g(e.children[t].children,n);return n.foundError},g=(e,t)=>{let s=null,a=0;for(let i=0,o=e.length;i<o;i++){const o=e[i];if(o.type===n.hs){const e=g(o.children,t);null==s?(s=e,a+=e):s!==e&&((0,l.sT)(o.parent,r.eB),t.foundError=!0)}else if((0,n.tK)(o.type)&&!(0,n.Az)(o.type)){let s=g(o.children,t);const r=e[i+1];(null==r?void 0:r.type)===n.Wj&&(s*=r.length,i+=r.quantifier?2:1),a+=s}else a+=o.length}return a}},43453:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var n=s(56468),r=s(31360),a=s(61348),i=s.n(a),o=s(4779),l=s(64475);const c=/^(?:\\[zZbBAGK]|[$^])$/,u=(e,t)=>{const s=e.flavor,a=e.lookbehindCount,u=e.lookaroundCount,d=e.unicodeEnabled,h=(0,o.ZP)(e,n.MW),p=s===i().PCRE2||s===i().PCRE,g=!c.test(t);let m;switch(p&&(a>0&&("\\X"===t||"\\R"===t||"\\C"===t&&d)||u>0&&"\\K"===t)&&(0,o.sT)(h,r.jV),e.flavor===i().DOTNET&&e.flags.includes("N")&&"\\G"===t&&(0,o.sT)(h,r.Ct),t){case"\\a":m=7;break;case"\\b":m=8;break;case"\\f":m=12;break;case"\\n":m=10;break;case"\\r":m=13;break;case"\\t":m=9;break;case"\\e":m=27;break;default:m=null}return s===i().JAVA&&e.inCharClass&&"\\v"===t&&(m=8),h.charCode=m,h.quantifiable=g,h.length=g?1:0,(0,o.A_)(h,l.Z.meta),h}},38325:(e,t,s)=>{"use strict";s.d(t,{Z:()=>d});var n=s(98152),r=s(61348),a=s.n(r),i=s(56468),o=s(27428),l=s(31360),c=s(48401),u=s(4779);const d=(e,t)=>{const s=e.flags,r=e.flavor,d=(0,c.Z)(e,i.df),h=(0,o.jj)(s,t.slice(2,-1),r),p=(0,n.Z)(h,4),g=p[0],m=p[1],x=p[2],f=p[3];return null==g&&(0,u.sT)(d,l.Gz),r===a().RUST&&(f||(0,o.sx)(m,x))&&(0,u.sT)(d,l.jW),e.flags=null!=g?g:e.flags,e.unicodeEnabled=(0,o.sH)(e.flags,r),d.flags=e.flags,d.onFlags=m,d.offFlags=x,d.willBeQuantifiable=!0,d}},750:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var n=s(56468),r=s(31360),a=s(32428),i=s(4779),o=s(64475);const l=(e,t)=>(t.subpatterns.includes(e.reference)||(0,i.sT)(e,r.Bj),e.error),c=(e,t)=>{const s=(0,a.Z)(e,n.O3),c=t.replace(/^(?:\(\?P=|\\[kg])|\W/g,"");return c||(0,i.sT)(s,r.YY),(0,i.kV)(s,l),s.reference=c,(0,i.A_)(s,o.Z.backreference),s}},79075:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var n=s(61348),r=s.n(n),a=s(56468),i=s(31360),o=s(12313),l=s(48401),c=s(4779);const u=(e,t)=>{const s=e.flavor,n=e.flags,u=e.branchResetGroups,d=e.captureGroupCount,h=e.captureGroupMap,p=e.subpatterns,g=e.inDEFINE,m=e.dotnetCaptureMap,x=e.definedSubpatterns,f=e.captureGroups,v=(0,l.Z)(e,a.sS),b=s===r().DOTNET,j=s===r().PCRE||s===r().PCRE2||s===r().PYTHON,C=t.replace(/^\(\?P?|[<>']/g,""),Z=!isNaN(C),y=b&&Z?parseInt(C,10):d+1,E=b?/^(?:\d+\D|0)/:/^\d/,T=j?32:2147483647;C.length>T?(0,c.sT)(v,i.bk):(E.test(C)||b&&Z&&parseInt(C)>2147483647)&&(0,c.sT)(v,i.kU);let k=!1;return u.length>0&&("string"==typeof h[y]?(h[y]!==C&&(0,c.sT)(v,i.wn),k=!0):"number"==typeof h[y]&&(0,c.sT)(v,i.wn)),k||s===r().DOTNET||!p.includes(C)||n.includes("J")||(0,c.sT)(v,i.wi),g&&x.push(d),b?(null!=h[C]&&m[y]===C||e.captureGroupCount++,(0,o.Z)(h,m,y,C)):e.captureGroupCount++,h[y]=C,h[C]=y,f.push(v),p.push(C),v.subpattern=C,v.groupNumber=y,v.willBeQuantifiable=!0,v}},98529:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var n=s(56468),r=s(48401);const a=e=>{const t=(0,r.Z)(e,n.xT);return t.willBeQuantifiable=!0,t}},69678:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c});var n=s(56468),r=s(31360),a=s(4779),i=s(32428),o=s(64475);const l=(e,t)=>{const s=e.reference;return null!=s&&(s>t.captureGroupCount||s<1)&&(0,a.sT)(e,r.Bj),e.error},c=(e,t)=>{const s=e.captureGroupCount,c=(0,i.Z)(e,n.WE),u=t.replace(/\D/g,"");let d=null;if(u)if(e.isSubstitution&&"0"===u)d=0;else{const e=parseInt(u,10);t.includes("-")?(d=s-e+1,0===e&&(0,a.sT)(c,r.Bj)):t.includes("+")?(d=s+e,0===e&&(0,a.sT)(c,r.Bj)):d=e,(0,a.kV)(c,l)}else(0,a.sT)(c,r.YY);return c.reference=d,(0,a.A_)(c,o.Z.backreference),c}},29856:(e,t,s)=>{"use strict";s.d(t,{Z:()=>c,_:()=>l});var n=s(56468),r=s(31360),a=s(4779),i=s(64475);const o=(e,t)=>{const s=(0,a.ZP)(e,n.Pg),o=parseInt(t.replace(/\D/g,""),8)||0;return e.unicodeEnabled&&o>=parseInt("0xd800",16)&&o<=parseInt("0xdfff",16)&&(0,a.sT)(s,r.oH),s.quantifiable=!0,s.length=1,s.charCode=o,(0,a.A_)(s,i.Z.meta),s},l=(e,t)=>{const s=e.unicodeEnabled,n=o(e,t);return"}"!==t.slice(-1)?(0,a.sT)(n,r.YY):(!s&&n.charCode>65535||s&&n.charCode>parseInt("0x10FFFF",16))&&(0,a.sT)(n,r.Rf),n},c=o},1974:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(56468),r=s(31360),a=s(4779),i=s(64475);const o=e=>(e.closeCharClass||(0,a.sT)(e,r.sw),e.error),l=e=>{const t=(0,a.ZP)(e,n.HI);return e.inCharClass=!0,e.charClasses.push(t),e.parents.push(t),t.closeCharClass=null,t.length=1,t.quantifiable=!0,(0,a.kV)(t,o),(0,a.A_)(t,i.Z.charClass),t}},92572:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(56468),r=s(61348),a=s.n(r),i=s(31360),o=s(4779);const l=(e,t)=>{const s=e.flavor,r=e.flags,l=e.inCharClass,c=e.previousToken,u=(0,o.ZP)(e,n.zl),d=t.charCodeAt(0),h=t.codePointAt(0),p=s===a().PCRE||s===a().PCRE2||s===a().PYTHON,g=s===a().JAVA,m=s===a().RUST;0===d&&p&&(0,o.sT)(u,i.O3);const x=(r.includes("x")&&(m||g||!l)||r.includes("xx"))&&/[ \t\r\n\f]/.test(t);return x&&(e.previousToken=c),u.quantifiable=!0,u.charCode=d,u.codePoint=h,x?(u.ignoreToken=!0,u.length=0):u.length=1,(0,o.A_)(u,""),u}},82542:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var n=s(56468),r=s(31360),a=s(61348),i=s.n(a),o=s(27428),l=s(4779),c=s(64475);const u=(e,t)=>{const s=(0,l.ZP)(e,n.Wj),a=e.flavor,u=s.previousToken,d=a===i().PCRE||a===i().PCRE2||a===i().JAVA;(a===i().RUST||a===i().JAVA)&&"{"===t.charAt(0)&&"}"!==t.slice(-1)&&(0,l.sT)(s,r.YY);const h=((e,t,s)=>{const n=t.flavor,a=t.lookbehindCount,l=s.charAt(0),c=a>0;let u=null,d=null,h=null;const p=n===i().JAVASCRIPT&&o.SC.lookbehind||n===i().DOTNET;if("{"===l){const e=s.replace(/[^\d,]/g,"").split(",");u=e[0]?Math.min(Number.MAX_VALUE,parseInt(e[0],10)):0,d=void 0===e[1]?u:""===e[1]?1/0:Math.min(Number.MAX_VALUE,parseInt(e[1],10)),u>d?h=r.Hh:c&&!p&&(n===i().JAVA?d===1/0&&(h=r.Cc):u!==d?h=r.Cc:n!==i().PCRE&&n!==i().PYTHON||0!==d||(h=r.Cc))}else c&&!p&&(n===i().JAVA?"?"!==l&&(h=r.Cc):h=r.Cc),"*"===l?(u=0,d=1/0):"+"===l?(u=1,d=1/0):(u=0,d=1);return{error:h,to:d,from:u}})(0,e,t),p=h.to,g=h.from,m=h.error;let x=0,f=!0,v=!1,b=!1;if(null==u||!u.quantifiable||null!=u&&u.error)(0,l.sT)(s,r.RY);else if(m)(0,l.sT)(s,m);else{const e=u.type,a=u.length,i=u.lazy;e===n.Wj?(x=a,f=!1,"?"===t?v=!i:"+"===t&&d?b=!0:(0,l.sT)(s,r.RY)):x=g===p?g*Math.max(a,1)-a:1/0}return s.quantifiable=f,s.lazy=v,s.possessive=b,s.to=p,s.from=g,s.length=x,!s.error&&u&&(s.quantifiedToken=u,u.lazy=v,u.possessive=b,(0,l.vT)(u,s),(0,l.Cv)(u,s)),(0,l.A_)(s,u&&((0,n.tK)(u.type)||u.type===n.Wj)?u.style:c.Z.quantifier),s}},32428:(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s(61348),r=s.n(n),a=s(31360),i=s(4779);const o=(e,t)=>{const s=e.lookbehindCount,n=e.flavor,o=(0,i.ZP)(e,t);return s>0&&n!==r().JAVASCRIPT&&n!==r().DOTNET&&(0,i.sT)(o,a.jV),e.flavor===r().DOTNET&&e.flags.includes("N")&&(0,i.sT)(o,a.Ct),o.quantifiable=!0,o.length=0,o}},1274:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(56468),r=s(4779),a=s(64475);const i=(e,t)=>{const s=(0,r.ZP)(e,n.bO),i=t.slice(2,6),o=t.slice(8),l=parseInt("0x10000",16)+(parseInt(i,16)-parseInt("0xd800",16))*parseInt("0x400",16)+(parseInt(o,16)-parseInt("0xdc00",16));return s.highBits=i,s.lowBits=o,s.charCode=s.codePoint=l,s.length=1,s.quantifiable=!0,(0,r.A_)(s,a.Z.meta),s}},4779:(e,t,s)=>{"use strict";s.d(t,{A_:()=>o,Cv:()=>c,U3:()=>d,ZP:()=>h,kV:()=>u,sT:()=>i,vT:()=>l});var n=s(94184),r=s.n(n),a=s(64475);const i=(e,t)=>{e.error||(e.error=t,e.style=r()(a.Z.error,a.Z.token),e.quantifier&&i(e.quantifier,t),e.closeGroup&&i(e.closeGroup,t))},o=(e,t)=>{if(e.error)return;const s=t||e.inQuote||e.inCharClass;e.style=r()(t,e.inCharClass&&a.Z.inCharClass,e.inQuote&&a.Z.inQuote,s&&a.Z.token)},l=(e,t)=>{const s=e.quantifiable,n=e.willBeQuantifiable,r=e.openCharClass,a=e.closeGroup;if(!s&&!n)throw new Error("Trying to add quantifier to non-quantifiable token");t.error||(e.quantifier=t,r&&(r.quantifier=t),a&&(a.quantifier=t))},c=(e,t)=>{e.relatedTokens.includes(t)||(e.relatedTokens.push(t),c(t,e))},u=(e,t)=>{e.error||e.state.revalidateTokens.push({token:e,revalidateFn:t})},d=(e,t)=>{e.error||e.state.revalidateTokensNext.push({token:e,revalidateFn:t})},h=(e,t)=>{const s=e.lineTerminators,n=e.flavor,r=e.flags,a=e.parents,i=e.adjacentToken,o=e.previousToken,l=e.isSubstitution,c=e.inCharClass,u=e.inQuote,d=e.unicodeEnabled,h=null==a?void 0:a[a.length-1],p={state:e,type:t,string:"",error:null,parent:h,children:[],position:{},editorPosition:null,style:null,quantifiable:!1,quantifier:null,partOfRange:!1,rangeToken:null,relatedTokens:[],ignoreToken:!1,length:0,charCode:null,codePoint:null,isPoorlyPlaced:!1,charClassIntersection:!1,charClassSubtraction:!1,adjacentToken:i,previousToken:o,isSubstitution:l,unicodeEnabled:d,flags:r,inCharClass:c,inQuote:u,flavor:n,lineTerminators:null==s?void 0:s.slice()};if(h&&h.children.push(p),e.previousToken=p,e.adjacentToken=p,l){const t=e.lowercase,s=e.uppercase;p.lowercase=t,p.uppercase=s}return p}},11497:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(56468),r=s(31360),a=s(4779);const i=e=>{const t=(0,a.ZP)(e,n.zl);return(0,a.sT)(t,r.zX),t}},90256:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(56468),r=s(31360),a=s(4779);const i=e=>{const t=(0,a.ZP)(e,n.cF);return(0,a.sT)(t,r.t0),t}},91435:(e,t,s)=>{"use strict";s.d(t,{Z:()=>u});var n=s(56468),r=s(31360),a=s(61348),i=s.n(a),o=s(4779),l=s(64475);const c=parseInt("10ffff",16),u=(e,t)=>{const s=(0,o.ZP)(e,n.Yb),a=t.replace(/^\\(?:u|N{U\+)|[{}]/gi,""),u="{"===t.charAt(2),d=parseInt(a,16);return u&&"}"!==t.slice(-1)||""===a?(0,o.sT)(s,r.YY):/[^a-f0-9]/i.test(a)?(0,o.sT)(s,r.K0):d>c?(0,o.sT)(s,r.y1):e.isSubstitution&&(!u&&!/^\\u.{4}$/.test(t)||e.flavor===i().JAVA&&"\\u0024"===t||e.flavor===i().RUST&&a.length>6)&&(0,o.sT)(s,r.K0),s.quantifiable=!0,s.length=1,s.hex=a,s.charCode=d,(0,o.A_)(s,l.Z.meta),s}},29215:(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s(56468),r=s(31360),a=s(4779),i=s(64475);const o=(e,t)=>{const s=(0,a.ZP)(e,n.dz),o=t.slice(2).replace(/[^&\w\-=]/g,"");return(!o||"{"===t.charAt(2)&&"}"!==t.slice(-1))&&(0,a.sT)(s,r.YY),s.script=o,s.length=1,s.quantifiable=!0,(0,a.A_)(s,i.Z.meta),s}},99309:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(56468),r=s(31360),a=s(4779);const i=e=>{const t=(0,a.ZP)(e,n.MW);return(0,a.sT)(t,r.RH),t}},40916:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(56468),r=s(4779),a=s(64475);const i=e=>{const t=(0,r.ZP)(e,n.Tf);return t.quantifiable=!1,t.charCode="\v".charCodeAt(0),t.length=1,(0,r.A_)(t,a.Z.meta),t}},79090:(e,t,s)=>{"use strict";s.d(t,{Q:()=>r});var n=s(63231);const r=(e,t,s)=>{const r=[],o=new class{constructor(e="",t=!1){this.position=0,this.string=null,this.stringLength=0,this.string=e,this.stringLength=this.string.length,this.position=0,this.unicodeEnabled=t}eof(){return this.position>=this.stringLength}sof(){return 0===this.position}peek(){return this._getCharAt(this.position).ch}next(){if(this.position<this.stringLength){const e=this._getCharAt(this.position),t=e.ch,s=e.idx;return this.position=s+1,t}return null}eat(e){const t=this._getCharAt(this.position),s=t.ch,n=t.idx;return s===e?(this.position=n+1,s):null}backUp(e){this.position-=e}match(e,t=!0){const s=this.string.slice(this.position).match(e);if(s&&s.index>0)throw new Error(`Regex match did not happen at the beginning of string ${e.toString()}`);return s&&t&&(this.position+=s[0].length),s}matchString(e,t=!0){return!!e&&this.string.substr(this.position,e.length)===e&&(t&&(this.position+=e.length),!0)}_getCharAt(e){return this.unicodeEnabled?(0,n.t)(this.string,e):{ch:this.string.charAt(e),idx:e}}}(t,s.unicodeEnabled),l=[];for(;!o.eof();){const t=i(e,o,s);if(r.push(t),s.patternError=s.patternError||!!t.error,l.length>0&&!t.ignoreToken){const e=a(l.pop(),r,s);s.patternError=s.patternError||e}s.revalidateTokensNext.length>0&&(l.push(s.revalidateTokensNext.slice()),s.revalidateTokensNext=[])}for(let e=0,t=l.length;e<t;e++){const e=a(l.pop(),r,s);s.patternError=s.patternError||e}const c=a(s.revalidateTokens,r,s);return s.patternError=s.patternError||c,s.revalidateTokensNext=[],r},a=(e,t,s)=>{let n=s.patternError;for(let r=0,a=e.length;r<a;r++){const a=e[r],i=a.token;n=!!a.revalidateFn.call(void 0,i,s,t)||n}return n},i=(e,t,s)=>{const n=t.position;for(let r=0,a=e.length;r<a;r++){const a=e[r].call(void 0,t,t.peek(),s);if(null!=a){const e=t.position,r={start:n,end:e},i=t.string.slice(n,e),o=a(s,i,r);return o.string=i,o.position=r,o.state=null,o}}throw new Error(`There was no tokenizer that could parse the regex '${t.current}'`)}},63231:(e,t,s)=>{"use strict";s.d(t,{i:()=>a,t:()=>r});var n=s(10084);const r=(e,t)=>{const s=e.charCodeAt(t);if(isNaN(s))return{ch:null,idx:t};if(s<55296||s>57343)return{ch:e.charAt(t),idx:t};if(55296<=s&&s<=56319){if(e.length<=t+1)return n.Z.error("High surrogate without following low surrogate"),{ch:e.charAt(t),idx:t};const s=e.charCodeAt(t+1);return 56320>s||s>57343?(n.Z.error("High surrogate without following low surrogate"),{ch:e.charAt(t),idx:t}):{ch:e.charAt(t)+e.charAt(t+1),idx:t+1}}if(0===t)return n.Z.error("Low surrogate without preceding high surrogate"),{ch:e.charAt(t),idx:t};const r=e.charCodeAt(t-1);return 55296>r||r>56319?(n.Z.error("Low surrogate without preceding high surrogate"),{ch:e.charAt(t),idx:t}):{ch:e.charAt(t+1),idx:t+1}},a=e=>{const t=parseInt(e,16);return t>=parseInt("0xd800",16)&&t<=parseInt("0xdfff",16)}},14882:e=>{e.exports.JL="0.2s",e.exports.RA="0.6s",e.exports.mc="0.2s",e.exports.t2="0.25s",e.exports.E2="0.2s",e.exports.DP="0.1s",e.exports.ug="0.5s",e.exports.oA="0.3s",e.exports.s_="0.25s",e.exports.K0="1s"},97930:e=>{e.exports.zj="5px",e.exports.Pt="785px",e.exports.bP="900px",e.exports.D6="900px",e.exports.p4="1080px"},75573:(e,t,s)=>{"use strict";s.d(t,{O7:()=>m,uT:()=>x,S1:()=>p,PC:()=>g,fo:()=>f});var n=s(10084),r=s(69574),a=s(45987);const i=["regexAreaParser"];var o=s(2043),l=s.n(o);function c(e){const t=window.location.href;return"?"===e.function&&("<anonymous>"===e.filename||e.filename===t)}const u=function(e){var t,s,n,r;const a=null==(t=e.exception)||null==(s=t.values)?void 0:s[0];if(!a||!a.mechanism||"onerror"!==a.mechanism.type||a.mechanism.handled)return e;const i=null==(n=a.stacktrace)?void 0:n.frames,o=null==(r=a.type)?void 0:r.toLowerCase();return i&&o&&i.length<=2&&function(e){return["syntaxerror","referenceerror","typeerror"].includes(e)}(o)&&function(e){const t=e.every(c),s=2===e.length&&c(e[0]);return t||s}(i)?(l().warn("Dropping error due to suspicious stack frames."),null):e};let d=null,h=null;function p(){window.onerror=(e,t,s,r,a)=>{null==a?n.Z.error({message:e,url:t,line:s,column:r}):m(a)},window.onunhandledrejection=e=>m(e.reason,e.promise)}async function g(){return null==h&&(h=Promise.all([s.e(530).then(s.bind(s,61002)),s.e(530).then(s.bind(s,9867))]).then((([e,t])=>(window.onerror=null,window.onunhandledrejection=null,e.init({dsn:"https://5f9e813965e0433598973663dff85743@sentry.io/102476",release:"9.0.8",normalizeDepth:6,allowUrls:["regex101.com"],denyUrls:[/extensions\//i,/^chrome:\/\//i,/chrome-extension:/i,/moz-extension:/i,/analytics\.regex101\.com/i,/safari-extension:/i],ignoreErrors:["BetterJsPop","googletag","webkitExitFullScreen","chrome-extension","moz-extension","bannerNight","SpeedKit","HintedWidget","grecaptcha","plausible.js","Possible side-effect in debug-evaluate","Unexpected end of input","Invalid or unexpected token","Identifier 'originalPrompt' has already been declared","can't access dead object","suggestionDisplayed","jQuery","Not implemented on this platform"],integrations:[new t.BrowserTracing],tracesSampleRate:.1,autoSessionTracking:!1,beforeSend:u}),e)))),h}async function m(e,t=null){try{r.ZP.emit(r.P),n.Z.error(e);const s=await g();s.withScope((n=>{null!=d&&function(e,t,s){const n=s.regexEditor,r=n.regex,o=n.delimiter,l=n.flavor,c=n.flags,u=n.testString,d=n.substString,h=s.general,p=h.permalinkFragment,g=h.version,m=h.userId,x=h.email;e.setUser({id:m,email:x}),t.setContext("permalink",{permalinkFragment:p,version:g}),t.setContext("editor",{regex:r,delimiter:o,flavor:l,flags:c,testString:u,substString:d}),t.setTag("flavor",l),t.setTag("permalink",p),s.regexAreaParser;const f=(0,a.Z)(s,i);t.setContext("redux.state",f)}(s,n,d.getState()),null!=t?(n.setExtra("unhandledPromiseRejection",!0),s.captureException(e,{originalException:t})):s.captureException(e)}))}catch(e){n.Z.error("Unable to submit error report",e),window.onerror=null,window.onunhandledrejection=null}}async function x(e,t){(await g()).captureMessage(e,t)}function f(e){d=e}},40378:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(31807),r=s.n(n),a=s(10084);const i=new class{get(e,t=!0){if(!r())return{};try{if(!window.localStorage||"function"!=typeof window.localStorage.getItem)throw new Error("localStorage not accessible or function `getItem` missing. Aborting.");const t=window.localStorage.getItem(e);return JSON.parse(t)||null}catch(e){if(a.Z.error(e),!t)throw e}}save(e,t,s=!0){if(r())try{if(!window.localStorage||"function"!=typeof window.localStorage.setItem)throw new Error("localStorage not accessible or function `setItem` missing. Aborting.");const s=JSON.stringify(t);window.localStorage.setItem(e,s)}catch(e){if(a.Z.error(e),!s)throw e}}delete(e,t=!0){if(r())try{if(!window.localStorage||"function"!=typeof window.localStorage.removeItem)throw new Error("localStorage not accessible or function `removeItem` missing. Aborting.");window.localStorage.removeItem(e)}catch(e){if(a.Z.error(e),!t)throw e}}}},61939:(e,t,s)=>{"use strict";s.d(t,{C:()=>r});var n=s(42568);const r=s.n(n)()(((e,t,s)=>{if(!e)throw new Error("Missing first color");if(!e)throw new Error("Missing second color");if(isNaN(s))throw new Error(`Invalid amount '${s}'`);const n=a(e),r=a(t),i=s/100;return`rgb(${(r.r-n.r)*i+n.r}, ${(r.g-n.g)*i+n.g}, ${(r.b-n.b)*i+n.b})`}),{maxSize:50});function a(e){(e=e.trim()).length<7&&(e+=e.slice(1));const t=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(t)return{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)};throw new Error(`Invalid color '${e}'`)}},59747:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var n=s(10084);function r(e){const t=parseFloat(e);let s=e.match(/m?s/);switch(s&&(s=s[0]),s){case"s":return 1e3*t;case"ms":return t;default:return n.Z.error(new Error(`Unknown unit '${s}'`)),0}}},69574:(e,t,s)=>{"use strict";s.d(t,{B3:()=>d,En:()=>C,Fx:()=>v,LG:()=>h,P:()=>p,Rd:()=>m,UJ:()=>g,ZP:()=>u,fZ:()=>j,ji:()=>b,l2:()=>x,yM:()=>f});var n=s(31807),r=s.n(n),a=s(10084);class i{constructor(){this.hasStoppedPropagation=!1}stopPropagation(){this.hasStoppedPropagation=!0}}function o(e){return"string"==typeof e}function l(e){return"function"==typeof e}function c(e){return"object"==typeof e&&null!==e}const u=new class{constructor(){this._events={},this._maxListeners=10}setMaxListeners(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this}emit(e){let t;this._events||(this._events={});const s=this._events[e];if(void 0===s)return!1;const n=new i;if(l(s))switch(arguments.length){case 1:s.call(this,n);break;case 2:s.call(this,n,arguments[1]);break;case 3:s.call(this,n,arguments[1],arguments[2]);break;default:t=[n,...Array.prototype.slice.call(arguments,1)],s.apply(this,t)}else if(c(s)){t=[n,...Array.prototype.slice.call(arguments,1)];const e=s.slice();for(let s=e.length-1;s>=0&&(e[s].apply(this,t),!n.hasStoppedPropagation);s--);}return!0}addListener(e,t){if(r()){if(!l(t))throw TypeError("listener must be a function");return this._events[e]?c(this._events[e])?this._events[e].includes(t)?a.Z.error(new Error(`Listener for ${e} added multiple times. Name: '${t.name}'`)):this._events[e].push(t):this._events[e]===t?a.Z.error(new Error(`Listener for ${e} already added. Name: '${t.name}'`)):this._events[e]=[this._events[e],t]:this._events[e]=t,c(this._events[e])&&!this._events[e].warned&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,a.Z.error(new Error(`Possible EventEmitter memory leak detected. ${this._events[e].length} listeners added. Use setMaxListeners() to increase limit.`))),this}}on(e){if(o(e))return this.addListener.apply(this,arguments);for(const t in e)e.hasOwnProperty(t)&&this.addListener.call(this,t,e[t]);return this}once(e,t){if(!l(t))throw TypeError("listener must be a function");let s=!1;function n(){this.removeListener(e,n),s||(s=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this}removeListener(e,t){if(!l(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;const s=this._events[e];if(s===t||l(s.listener)&&s.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(c(s)){let n=-1;for(let e=s.length-1;e>=0;e--)if(s[e]===t||s[e].listener&&s[e].listener===t){n=e;break}if(n<0)return this;1===s.length?(s.length=0,delete this._events[e]):s.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this}off(e){if(o(e))return this.removeListener.apply(this,arguments);for(const t in e)e.hasOwnProperty(t)&&this.removeListener(t,e[t]);return this}removeAllListeners(e){if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(const e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}const t=this._events[e];if(l(t))this.removeListener(e,t);else if(t)for(;t.length;)this.removeListener(e,t[t.length-1]);return delete this._events[e],this}listeners(e){return this._events&&this._events[e]?l(this._events[e])?[this._events[e]]:this._events[e].slice():[]}listenerCount(e){if(this._events){const t=this._events[e];if(l(t))return 1;if(t)return t.length}return 0}},d="disable:shortcut",h="enable:shortcut",p="flush:state",g="rightSidebar:resize",m="closeLeftSidebar",x="set:substString",f="testlist:open",v="testlist:close",b="matchGroup:click",j="quickref:loadExample",C="loading:finish"},69537:(e,t,s)=>{"use strict";s.d(t,{G:()=>a});var n=s(61348),r=s.n(n);const a=e=>e===r().PCRE||e===r().PCRE2},20279:(e,t,s)=>{"use strict";s.d(t,{R:()=>o,n:()=>l});var n=s(42568),r=s.n(n),a=s(10084),i=s(26086);const o=r()((e=>{const t=getComputedStyle(document.documentElement).getPropertyValue(e);if(""===t){const t=new Error(`CSS Variable '${e}' was empty`);a.Z.error(t)}return t}),{maxSize:50}),l=(e,t)=>o(`--match-group-${(e-1)%i.GROUP_COUNT+1}${t?"-alt":""}`)},83950:(e,t,s)=>{"use strict";s.d(t,{Sf:()=>i.Z,vI:()=>r,$5:()=>o.Z,DB:()=>l,aL:()=>C.ZP,kF:()=>p,PS:()=>Z.Z,YX:()=>j,Sj:()=>a.Z});var n=s(67294);const r=(e,t)=>{const s=(0,n.useRef)(!1);(0,n.useEffect)((()=>{let t;return s.current?t=e():s.current=!0,()=>{var e;return null==(e=t)?void 0:e()}}),t),(0,n.useEffect)((()=>()=>s.current=!1),[])};var a=s(56458),i=s(20946),o=s(64700);const l=(e,t)=>{(0,n.useRef)(!1),(0,n.useLayoutEffect)(e,t)};var c=s(70743),u=s(89250),d=s(61607),h=s(26086);const p=(e,t=h.DEFAULT_META_DESCRIPTION)=>{const s=(0,c.I0)(),r=(0,u.TH)();(0,n.useEffect)((()=>{var n;document.title=`regex101: ${e||h.DEFAULT_PAGE_TITLE}`,null==(n=document.querySelector('meta[name="description"]'))||n.setAttribute("content",t),s((0,d.Dk)(e)),s((0,d.Ub)(t))}),[e,t,s,r])};var g=s(98152),m=s(61939),x=s(20279),f=s(73963),v=s(14112);function b(e){e.cache.keys.length=0,e.cache.values.length=0}const j=()=>{const e=(0,c.I0)(),t=(0,c.v9)((e=>e.general.currentTheme)),s=(0,c.v9)((e=>e.settings.theme)),r=(0,n.useState)(t),a=(0,g.Z)(r,2),i=a[0],o=a[1];(0,n.useEffect)((()=>o(t)),[t]),(0,n.useEffect)((()=>{var e,t,n;const r=e=>{var t;if(s!==v.B7||null!=(t=window)&&t.matchMedia("print").matches)return;const n=e.matches?v.Py:v.rp;o(n)};return null==(e=window)||null==(t=e.matchMedia("(prefers-color-scheme: dark)"))||null==(n=t.addEventListener)||n.call(t,"change",r),()=>{var e,t,s;return null==(e=window)||null==(t=e.matchMedia("(prefers-color-scheme: dark)"))||null==(s=t.removeEventListener)?void 0:s.call(t,"change",r)}}),[s,e]),(0,n.useEffect)((()=>{document.documentElement.setAttribute("data-theme",i),function(){const e=document.querySelector("meta[name=theme-color]");e&&e.setAttribute("content",(0,x.R)("--primary-color"))}(),b(x.R),b(m.C),e((0,f.Z)(i))}),[e,i])};var C=s(55030),Z=s(11124)},20946:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var n=s(67294),r=s(91296),a=s.n(r);const i=function(e,t,s="flush"){const r=(0,n.useCallback)(a()(((...t)=>e(...t)),t),[t]);return(0,n.useEffect)((()=>()=>{switch(s){case"flush":return r.flush();case"cancel":return r.cancel();default:throw new Error(`Unknown cleanup '${s}'`)}}),[r,s]),r}},64700:(e,t,s)=>{"use strict";s.d(t,{U:()=>c,Z:()=>u});var n=s(98152),r=s(67294),a=s(70743),i=s(31807),o=s.n(i),l=s(10084);const c=(0,r.createContext)({promises:[],resolvedData:{},redirect:{},addPromise:()=>{},setResolvedData:()=>{},getResolvedData:()=>{},setRedirectTo:()=>{},SSR:!1}),u=e=>{const t=(0,r.useRef)(null),s=(0,a.I0)(),i=(0,r.useContext)(c),u=i.getResolvedData(e),d=(0,r.useState)(u||{loading:!1,error:null}),h=(0,n.Z)(d,2),p=h[0],g=h[1],m=(0,r.useCallback)((n=>{var r,a,c;null==u&&(g({loading:!0,error:null}),null==(r=t.current)||null==(a=r.cancel)||a.call(r),t.current=s(n).then((()=>{t.current=null;const s={loading:!1,error:null};i.setResolvedData(e,s),g(s)})).catch((t=>{if(o()&&t.code===DOMException.ABORT_ERR)l.Z.warn(`Data fetch for '${e}' aborted because the parent has unmounted`),i.setResolvedData(e,{loading:!1,error:null});else{const s={loading:!1,error:t};i.setResolvedData(e,s),g(s)}})),o()&&null==(null==(c=t.current)?void 0:c.cancel)&&l.Z.error(`Fetch '${e}' has no cancel`),i.addPromise(t.current))}),[s,i,e,u]);return(0,r.useEffect)((()=>()=>{var e,s;null==(e=t.current)||null==(s=e.cancel)||s.call(e),t.current=null}),[]),[p.loading,p.error,m]}},55030:(e,t,s)=>{"use strict";s.d(t,{W5:()=>v,ZP:()=>b,yg:()=>f});var n,r,a,i,o,l,c,u=s(67294),d=s(70743),h=s(31807),p=s.n(h),g=s(69574),m=s(41664),x=s(35579);const f=p()&&(null!=(n=navigator)&&null!=(r=n.userAgentData)&&null!=(a=r.platform)&&null!=(i=a.toLowerCase())&&i.includes("mac")||null!=(o=navigator)&&null!=(l=o.userAgent)&&null!=(c=l.toLowerCase())&&c.includes("mac"))?m.v:m.B,v=e=>`${f===m.B?"Ctrl":"\u2318"}+${e}`,b=()=>{const e=(0,d.v9)((e=>e.settings.disableKeyboardShortcuts)),t=(0,u.useRef)([]),s=(0,u.useCallback)((e=>{var s,n,r,a,i,o;const l=e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||"input"===(null==(s=e.target)||null==(n=s.tagName)?void 0:n.toLowerCase())||"textarea"===(null==(r=e.target)||null==(a=r.tagName)?void 0:a.toLowerCase())||(null==(i=e.target)||null==(o=i.className)?void 0:o.includes("cm-content"));for(const s in x)if(Object.prototype.hasOwnProperty.call(x,s)){const n=x[s],r=!!n.metaKey==!!(f===m.v?e.metaKey:e.ctrlKey),a=!!n.altKey==!!e.altKey,i=!!n.shiftKey==!!e.shiftKey,o=n.overrideInput||!l;if((!e.key&&n.keyCode.includes(e.which)||e.key&&n.key.toLowerCase()===e.key.toLowerCase())&&r&&a&&i&&o&&!t.current.includes(n.name)){const t=`key:${n.name}`;(g.ZP.listeners(t).length>0||n.alwaysConsume)&&(e.preventDefault(),e.stopPropagation(),g.ZP.emit(t))}}}),[]);(0,u.useEffect)((()=>{const n=(e,s)=>{t.current=t.current.filter((e=>e!==s.name))},r=(e,s)=>t.current.push(s.name);return e||(document.addEventListener("keydown",s),g.ZP.on({[g.LG]:n,[g.B3]:r})),()=>{document.removeEventListener("keydown",s),g.ZP.off({[g.LG]:n,[g.B3]:r})}}),[e,s])}},11124:(e,t,s)=>{"use strict";s.d(t,{Z:()=>o});var n=s(98152),r=s(67294),a=s(31807),i=s.n(a);const o=function(){var e,t;const s=(0,r.useState)(!!i()&&!(null==(e=window)||null==(t=e.matchMedia("(prefers-reduced-motion: reduce)"))||!t.matches)),a=(0,n.Z)(s,2),o=a[0],l=a[1];return(0,r.useEffect)((()=>{var e;const t=null==(e=window)?void 0:e.matchMedia("(prefers-reduced-motion: reduce)");if(null!=(null==t?void 0:t.addEventListener)){const e=()=>{l(null==t?void 0:t.matches)};return null==t||t.addEventListener("change",e),()=>null==t?void 0:t.removeEventListener("change",e)}}),[]),o}},56458:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(98152),r=s(67294),a=s(31807),i=s.n(a);const o=(0,r.createContext)({isMobile:!1}),l=(...e)=>{const t=(()=>{const e=(0,r.useContext)(o).isMobile;return i()?{width:window.innerWidth,height:window.innerHeight}:e?{width:414,height:896}:{width:1920,height:1080}})(),s=t.width,a=t.height,l=(0,r.useState)({width:s,height:a}),c=(0,n.Z)(l,2),u=c[0],d=c[1];return(0,r.useEffect)((()=>{let t,s=u.width;return window.addEventListener("resize",t=()=>{const t=window.innerWidth,n=window.innerHeight;for(let r=0,a=e.length;r<a;r++){const a=e[r];if(t<a&&a<s||t>=a&&s<=a){d({width:t,height:n}),s=t;break}}},{passive:!0}),()=>{window.removeEventListener("resize",t,{passive:!0})}}),[u,e]),u}},10084:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var n=s(2043);const r=s.n(n)()},32092:(e,t,s)=>{"use strict";s.d(t,{Et:()=>a,Gz:()=>r,uf:()=>n});const n=e=>e.toString().replace(/\B(?=(?:.{3})+$)/g,"\u2009");function r(e){const t=["th","st","nd","rd"],s=e%100;return e+(t[(s-20)%10]||t[s]||t[0])}const a=e=>Math.max(0,e+(e>0?.5:-.5)<<0)},77891:(e,t,s)=>{"use strict";s.d(t,{B:()=>r});var n=s(98152);const r=(e,t)=>{const s=new URLSearchParams(null!=t?Array.from(t.entries()):[]);for(const t of Object.entries(e)){var r=(0,n.Z)(t,2);const e=r[0],a=r[1];Array.isArray(a)?(s.delete(e),a.forEach((t=>s.append(e,t)))):s.set(e,a)}return s.toString()}},86565:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r,a:()=>a});let n={};const r=function(e){return(n[e]||e).replace(/#?{[1-9]\d*}/g,(t=>{if("#"===t.charAt(0))return t.slice(1);const s=parseInt(t.slice(1,-1),10);if(null==arguments[s])throw new Error(`Placeholder '${s}' referencing invalid argument: '${e}'`);if("string"!=typeof arguments[s]&&"number"!=typeof arguments[s])throw new Error(`Placeholder '${s}' is not a string: '${typeof arguments[s]}'`);return arguments[s]}))};function a(e){n=e}},48186:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});const n=e=>{const t="string"==typeof e?e.split(""):e;return t.filter(((e,s)=>t.indexOf(e)===s))}},67333:(e,t,s)=>{"use strict";s.d(t,{Z:()=>b});var n=s(61348),r=s.n(n);function a(){return new Worker(s.p+"golang.worker.24ce49bb639142208752.js")}function i(){return new Worker(s.p+"pcre2.worker.b129e26ccdd47409e923.js")}function o(){return new Worker(s.p+"pcre.worker.39384b9f7ddb082d6c60.js")}function l(){return new Worker(s.p+"javascript.worker.89fda8453390beb8cf38.js")}function c(){return new Worker(s.p+"java.worker.79ec1d1c8623e9b31ed6.js")}function u(){return new Worker(s.p+"dotnet.worker.51df172998c7a6ecfc31.js")}function d(){return new Worker(s.p+"rust.worker.54f002ade56812950ca8.js")}var h=s(30317),p=s(25613),g=s(56468);let m={regex:null,flags:null};function x(e,t,s){return t===g.MW&&"\\Z"===e?"\\z":t===g.MW&&"\\v"===e?"\\x{0B}":t===g.Wj&&"{,"===e.slice(0,2)?"{0,"+e.slice(2):t===g.Yb&&"\\u"===e.slice(0,2).toLowerCase()?"\\x{"+e.slice(2)+"}":t===g.t0&&p.i.test(e)?e.slice(1):s&&t===g.zl&&".=:".includes(e)?"\\"+e:t===g.RW?e.replace(/[au]/g,""):t===g.MW&&"\\v"===e?"\\x0B":e}var f=s(34426);class v extends f.Z{getWorker(e){switch(e){case r().PCRE2:return i;case r().PCRE:case r().PYTHON:return o;case r().JAVASCRIPT:return l;case r().GOLANG:return a;case r().JAVA:return c;case r().DOTNET:return u;case r().RUST:return d;default:throw new Error(`No worker file exists for flavor '${e}'`)}}runMatch(e,t,s,n,a={},i){let o={regex:null!=e?e:"",delimiter:null!=t?t:"",flags:null!=s?s:"",testString:null!=n?n:"",options:{isDebugging:!!a.debugging,calculateSteps:!!a.calculateRegexSteps}};return a.flavor===r().PYTHON&&(o=function(e){if(null!=m.regex&&null!=m.flags&&m.regex===e.regex&&m.flags===e.flags)return Object.assign(Object.assign({},e),{},{regex:m.cachedRegex,flags:m.cachedFlags,options:Object.assign(Object.assign({},e.options),{},{bumpalong:!0})});const t=(0,h.Z)(e.regex,{flavor:r().PYTHON,flags:e.flags}),s=t.tokens;if(t.patternError)throw new Error(`Python pattern error: ${e.regex}`);let n="",a="";for(let e=0,t=s.length;e<t;e++){const t=s[e],r=t.type;n+=x(t.string,r,t.inCharClass)}const i=(s[0].children.length>0?s[0].children[0]:s[0]).flags;a=i.includes("a")?i.replace(/[au]/g,"")+"P":i.replace(/a/g,"")+"u";const o=Object.assign(Object.assign({},e),{},{regex:n,flags:a,options:Object.assign(Object.assign({},e.options),{},{bumpalong:!0})});return m={regex:e.regex,flags:e.flags,cachedRegex:n,cachedFlags:a},o}(o)),super.runWorker(o,a,i)}}const b=v},34426:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(56538),r=s(26086),a=s(61348),i=s.n(a),o=s(10084);const l=class{constructor(){this._worker=null,this._timeout=null,this._currentFlavor=null,this._runTimeout=null,this._recentReset=!1}getWorker(){throw new Error("Method not implemented")}runWorker(e,t,s){this.isRunning()&&(this._recentReset=!0,this.resetWorker()),clearTimeout(this._runTimeout),this._runTimeout=setTimeout((()=>{this._recentReset=!1,this._runWorker(e,t,s)}),this._recentReset?r.UPDATE_RESULT_DELAY:1)}async _runWorker(e,t={},s){if(t.maxExecutionTime||(t.maxExecutionTime=2e3),t.flavor||(t.flavor=i().PCRE2),t.flavor!==this._currentFlavor&&(this._currentFlavor=t.flavor,this.resetWorker()),!this._worker)try{await this._createWorker(),this._worker.callback=s,this._worker.onmessage=e=>{clearTimeout(this._timeout),this._timeout=null,this._worker.callback(e.data,e.data.error||null)},this._worker.onerror=e=>{e.preventDefault(),o.Z.warn("Web worker encountered an unhandled error:",e.filename,"Line:",e.lineno,"Col:",e.colno,"Msg:",e.message),(this._worker.callback||s)(null,n.Y8)}}catch(e){return o.Z.error(e),void s(null,n.Y8)}this._worker&&(this._worker.callback=s),this._timeout=setTimeout((()=>{this._worker.callback(null,n.ik),this.resetWorker()}),t.maxExecutionTime),this._worker.postMessage(e)}isRunning(){return null!=this._timeout}resetWorker(){clearTimeout(this._runTimeout),clearTimeout(this._timeout),this._timeout=null,this._runTimeout=null,this._worker&&(this._worker.callback=()=>{},this._worker.terminate(),this._worker=null)}async _createWorker(){return clearTimeout(this._timeout),this._timeout=null,new Promise(((e,t)=>{const s=this.getWorker(this._currentFlavor);this._worker=new s,this._timeout=setTimeout((()=>(this.resetWorker(),t(new Error("Unable to load worker, timeout after 10s")))),1e4),this._worker.onmessage=t=>{"onload"===t.data&&(clearTimeout(this._timeout),e())},this._worker.onerror=e=>{e.stopPropagation(),e.preventDefault(),t(e)}}))}}},16548:(e,t,s)=>{"use strict";s.d(t,{P:()=>eh});var n={};s.r(n),s.d(n,{account:()=>G,general:()=>L,libraryEntry:()=>q,quiz:()=>Y,regexAreaParser:()=>J,regexEditor:()=>j,regexLibrary:()=>$,rightSidebar:()=>g,settings:()=>y,unitTests:()=>w});var r=s(20745);function a(e){if(e.status>=200&&e.status<300)return e;const t=new Error(e.statusText);throw t.response=e,t}var i=s(10084),o=s(14890),l=s(53894);const c="EXPLANATION",u="MATCH_INFO",d="QUICKREF";var h=s(45703);const p={activeSubsection:c,visibleSections:[c,u,d],hiddenSections:[],width:null},g=function(e=p,t={}){switch(t.type){case h.CJ:return Object.assign(Object.assign({},e),{},{width:t.value});case h.ro:const s=t.value.subsection;return e.visibleSections.includes(s)?Object.assign(Object.assign({},e),{},{visibleSections:e.visibleSections.filter((e=>e!==s)),hiddenSections:[...e.hiddenSections,s]}):Object.assign(Object.assign({},e),{},{visibleSections:[...e.visibleSections,s],hiddenSections:e.hiddenSections.filter((e=>e!==s))});case h.WV:return Object.assign(Object.assign({},e),{},{activeSubsection:t.value});case h.tc:return Object.assign(Object.assign({},e),{},{activeSubsection:c});default:return e}};var m=s(61348),x=s.n(m),f=s(18757),v=s.n(f);const b={flavor:m.PCRE2,delimiter:"/",flags:"gm",regex:"",testString:"",matchResult:[],error:null,substString:"",listSubstString:"",hasUnsavedData:!1,regexVersions:[],showMatchArea:!0,showSubstitutionArea:!1,showUnitTestArea:!1,showListSubstitutionArea:!1};function j(e=b,t={}){var s;switch(t.type){case h.r$:return Object.assign(Object.assign({},e),{},{listSubstString:t.value});case h.R8:return Object.assign(Object.assign({},e),{},{showMatchArea:!1,showSubstitutionArea:!1,showUnitTestArea:!1,showListSubstitutionArea:!0,hasUnsavedData:""!==e.regex||""!==e.testString});case h.YW:return Object.assign(Object.assign({},e),{},{showMatchArea:!1,showSubstitutionArea:!1,showUnitTestArea:!0,showListSubstitutionArea:!1});case h.T_:return Object.assign(Object.assign({},e),{},{showMatchArea:!1,showSubstitutionArea:!0,showUnitTestArea:!1,showListSubstitutionArea:!1,hasUnsavedData:""!==e.regex||""!==e.testString});case h.RS:return Object.assign(Object.assign({},e),{},{showMatchArea:!0,showSubstitutionArea:!1,showUnitTestArea:!1,showListSubstitutionArea:!1});case h.hl:return Object.assign(Object.assign({},e),{},{flavor:t.value,hasUnsavedData:!0});case h.DA:return Object.assign(Object.assign({},e),{},{flags:t.value,hasUnsavedData:!0});case h.Sr:return Object.assign(Object.assign({},e),{},{delimiter:t.value,hasUnsavedData:!0});case h.KE:const n=t.value;return 0!==n.length||0!==e.matchResult.length&&0===n.length?Object.assign(Object.assign({},e),{},{matchResult:n}):e;case h.u8:return Object.assign(Object.assign({},e),{},{substString:t.value,hasUnsavedData:t.value!==e.substString||e.hasUnsavedData});case h.a0:return Object.assign(Object.assign({},e),{},{regex:t.value,hasUnsavedData:t.value!==e.regex||e.hasUnsavedData});case h.Cy:return Object.assign(Object.assign({},e),{},{testString:t.value,hasUnsavedData:t.value!==e.testString||e.hasUnsavedData});case h.Nl:return Object.assign(Object.assign({},e),{},{error:t.value});case h.lA:case h.rT:case h.LM:case h.mo:return Object.assign(Object.assign({},e),{},{hasUnsavedData:!0});case h.nU:return Object.assign(Object.assign({},e),{},{hasUnsavedData:!t.value.permalinkFragment});case h.sk:let r=e.flavor||m.PCRE2;""===e.regex&&e.flavor===m.PCRE2&&null!=(s=t.value.settings)&&s.defaultFlavor&&(r=t.value.settings.defaultFlavor);let a=e.delimiter;return v()[r].includes(a)||(a=v()[r][0]),Object.assign(Object.assign({},e),{},{flavor:r,delimiter:a,hasUnsavedData:!1});case h.r0:return Object.assign(Object.assign({},e),{},{regexVersions:t.value});default:return e}}var C=s(14112);const Z={maxExecutionTime:2e3,theme:C.B7,nonParticipatingGroups:!1,displayWhitespace:!0,colorizeSyntax:!0,wrapLines:!0,testAreaLineNumbers:!1,regexAreaLineNumbers:!1,language:"ENGLISH",storageSaved:null,storageLoaded:null,editorTooltips:!0,alwaysCollapseLeftSidebar:!1,alwaysCollapseRightSidebar:!1,defaultFlavor:m.PCRE2,showWarningUnsavedProgress:!0,defaultCodeGenLanguage:"",calculateRegexSteps:!0,defaultTabBehavior:!0,disableKeyboardShortcuts:!1,lineSeparator:""},y=function(e=Z,t={}){switch(t.type){case h.jo:return Object.assign(Object.assign({},e),t.value);case h.sk:return Object.assign(Object.assign({},e),{},{storageLoaded:(new Date).getTime()});case h.fB:return Object.assign(Object.assign({},e),{},{storageSaved:(new Date).getTime()});default:return e}};var E=s(45987);const T="PASS",k="FAIL",N="ALL";function S(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var s=e[Symbol.toPrimitive];if(void 0!==s){var n=s.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}const _={tests:[],testResults:{},testsRunning:!1,testFilter:N},w=function(e=_,t={}){let s;switch(t.type){case h.lA:return Object.assign(Object.assign({},e),{},{tests:[...e.tests,Object.assign(Object.assign({},t.value),{},{key:Math.random().toString(36).slice(2)})]});case h.rT:const n=e.tests[t.value].key,r=e.testResults,a=(r[n],(0,E.Z)(r,[n].map(S)));return Object.assign(Object.assign({},e),{},{tests:[...e.tests.slice(0,t.value),...e.tests.slice(t.value+1)],testResults:a});case h.LM:{const s=t.value,n=s.testKey,r=s.test,a=e.tests.findIndex((e=>e.key===n));return null==a?(i.Z.warn(`Tried to update unit test with ${n} but could not find it`),e):Object.assign(Object.assign({},e),{},{tests:[...e.tests.slice(0,a),Object.assign(Object.assign({},e.tests[a]),r),...e.tests.slice(a+1)]})}case h.mo:const o=t.value.oldIndex,l=t.value.newIndex;return s=e.tests.slice(),s.splice(l,0,s.splice(o,1)[0]),Object.assign(Object.assign({},e),{},{tests:s});case h.p2:return Object.assign(Object.assign({},e),{},{testsRunning:!0});case h.lZ:return Object.assign(Object.assign({},e),{},{testsRunning:!1});case h.ES:{const s=t.value,n=s.testKey,r=s.error,a=s.steps,i=s.time;return Object.assign(Object.assign({},e),{},{testResults:Object.assign(Object.assign({},e.testResults),{},{[n]:{error:r,hasError:!!r,steps:a||null,time:i}})})}case h.Jb:return Object.assign(Object.assign({},e),{},{testFilter:t.value});default:return e}};var A=s(73963);function O(e){const t=e.getState().settings.theme;e.dispatch((0,A.Z)(t===C.B7?I():t))}function I(){var e,t,s;return null!=(e=window)&&null!=(t=e.matchMedia)&&null!=(s=t.call(e,"(prefers-color-scheme: dark)"))&&s.matches?C.Py:C.rp}var R=s(26086);const P={permalinkFragment:null,version:null,userId:null,email:null,profilePicture:null,serviceProvider:null,isFavorite:!1,isLibraryEntry:!1,title:null,documentTitle:R.DEFAULT_PAGE_TITLE,metaDescription:R.DEFAULT_META_DESCRIPTION,tags:[],cookie:"",sponsorData:null,currentTheme:C.B7,permalinkIsEditable:!0,isOwner:!1},L=function(e=P,t={}){switch(t.type){case h._:return Object.assign(Object.assign({},e),{},{permalinkIsEditable:t.value});case h.jo:return Object.assign(Object.assign({},e),{},{currentTheme:t.value.theme===C.B7?I():t.value.theme});case h.yM:return Object.assign(Object.assign({},e),{},{currentTheme:t.value});case h.qI:return Object.assign(Object.assign({},e),{},{sponsorData:t.value||null});case h.nU:const s=t.value,n=s.permalinkFragment,r=s.version,a=s.isLibraryEntry,i=void 0===a?e.isLibraryEntry:a,o=s.title,l=void 0===o?e.title:o,c=s.tags,u=void 0===c?e.tags:c,d=s.isOwner,p=void 0===d?e.isOwner:d;return Object.assign(Object.assign({},e),{},{error:null,isFavorite:n===e.permalinkFragment&&e.isFavorite,permalinkFragment:n,version:r,isLibraryEntry:i||n===e.permalinkFragment&&e.isLibraryEntry,title:l,tags:u,isOwner:p,permalinkIsEditable:!0});case h.RT:const g=t.value,m=g.userId,x=g.email,f=g.profilePicture,v=g.serviceProvider;return Object.assign(Object.assign({},e),{},{userId:m,email:x,profilePicture:f,serviceProvider:v});case h.yF:return Object.assign(Object.assign({},e),{},{isFavorite:t.value});case h.th:return Object.assign(Object.assign({},e),{},{cookie:t.value});case h.se:return Object.assign(Object.assign({},e),{},{title:t.value});case h.CN:return Object.assign(Object.assign({},e),{},{tags:t.value});case h.ol:return Object.assign(Object.assign({},e),{},{documentTitle:t.value});case h.lK:return Object.assign(Object.assign({},e),{},{metaDescription:t.value});default:return e}};var M=s(48186);const D=["itemIndex"],U={data:[],pages:0,allTags:[],staleData:!0};function F(e,t,s){return{data:[...e.data.slice(0,t),s,...e.data.slice(t+1)]}}const G=function(e=U,t={}){switch(t.type){case h.sH:return Object.assign(Object.assign({},e),t.value);case h.Ht:const s=t.value,n=s.itemIndex,r=(0,E.Z)(s,D),a=Object.assign(Object.assign({},e.data[n]),r);return Object.assign(Object.assign({},e),F(e,n,a));case h.Xm:const i=t.value,o=i.itemIndex,l=i.tags,c=Object.assign(Object.assign({},e.data[o]),{},{tags:[...l]}),u=(0,M.Z)(e.allTags.concat(l));return Object.assign(Object.assign(Object.assign({},e),F(e,o,c)),{},{allTags:u});case h.go:return U;default:return e}},V={libraryData:[],pages:0,details:null};function B(e,t){let s=e.userVote>0?e.upvotes-1:e.upvotes,n=e.userVote<0?e.downvotes-1:e.downvotes;return t>0?s++:t<0&&n++,Object.assign(Object.assign({},e),{},{userVote:t,upvotes:s,downvotes:n})}const $=function(e=V,t={}){switch(t.type){case h.b9:const n=t.value,r=n.libraryData,a=n.pages;return Object.assign(Object.assign({},e),{},{libraryData:r,pages:a});case h.BS:{const s=t.value,n=s.vote,r=s.permalinkFragment,a=e.libraryData.findIndex((e=>e.permalinkFragment===r));return-1===a||null==e.libraryData[a]?e:Object.assign(Object.assign({},e),{},{libraryData:[...e.libraryData.slice(0,a),B(e.libraryData[a],n),...e.libraryData.slice(a+1)]})}case h.mX:return Object.assign(Object.assign({},e),{},{details:t.value});case h.Kg:{var s;const n=t.value,r=n.permalinkFragment,a=n.isFavorite,i=e.libraryData.findIndex((e=>e.permalinkFragment===r));return Object.assign(Object.assign({},e),{},{libraryData:null==i?e.libraryData:[...e.libraryData.slice(0,i),Object.assign(Object.assign({},e.libraryData[i]),{},{isFavorite:a}),...e.libraryData.slice(i+1)],details:(null==(s=e.details)?void 0:s.permalinkFragment)===r?Object.assign(Object.assign({},e.details),{},{isFavorite:a}):e.details})}default:return e}},H={title:null,description:null,author:null},q=function(e=H,t={}){if(t.type===h.DE){const s=t.value,n=s.title,r=s.description,a=s.author;return Object.assign(Object.assign({},e),{},{title:n,description:r,author:a})}return e},z=["taskIdx"],W={allTasks:[]},Y=function(e=W,t={}){switch(t.type){case h.te:return Object.assign(Object.assign({},e),{},{allTasks:t.value.reduce(((t,s,n)=>e.allTasks[n]?[...t,Object.assign(Object.assign({},e.allTasks[n]),s)]:[...t,s]),[])});case h.nA:const s=t.value,n=s.errorMessage,r=s.testNumber,a=s.totalTests;return Object.assign(Object.assign({},e),{},{allTasks:[...e.allTasks.slice(0,t.value.taskNumber),Object.assign(Object.assign({},e.allTasks[t.value.taskNumber]),{},{errorMessage:n,failingTestNumber:r,totalTests:a}),...e.allTasks.slice(t.value.taskNumber+1)]});case h.Sb:const i=t.value,o=i.taskNumber,l=i.successMessage;return Object.assign(Object.assign({},e),{},{allTasks:[...e.allTasks.slice(0,o),Object.assign(Object.assign({},e.allTasks[o]),{},{successMessage:l,errorMessage:null,hasSolved:!0}),...e.allTasks.slice(o+1)]});case h.F:const c=t.value,u=c.taskIdx,d=(0,E.Z)(c,z);return Object.assign(Object.assign({},e),{},{allTasks:[...e.allTasks.slice(0,u),Object.assign(Object.assign({},e.allTasks[u]),{},{latest:Object.assign(Object.assign({},e.allTasks[u].latest),d)}),...e.allTasks.slice(u+1)]});case h.$Z:const p=t.value,g=p.taskIdx,m=p.stats;return Object.assign(Object.assign({},e),{},{allTasks:[...e.allTasks.slice(0,g),Object.assign(Object.assign({},e.allTasks[g]),{},{stats:m}),...e.allTasks.slice(g+1)]});default:return e}},K={tokens:[],subpatterns:[],captureGroupMap:{},captureGroupCount:0,status:null,definedSubpatterns:[]},J=function(e=K,t={}){return t.type===h.NJ?Object.assign(Object.assign({},e),t.value):e};var X=s(61607);const Q=function(e,t){const s={};return t.forEach((t=>s[t]=e[t])),s};var ee=s(40378),te=s(31807),se=s.n(te);const ne=(e,t)=>re(e,t);function re(...e){const t=e=>e&&"object"==typeof e;return e.reduce(((e,s)=>(Object.keys(s).forEach((n=>{const r=e[n],a=s[n];Array.isArray(a)?e[n]=a:t(r)&&t(a)?e[n]=re(r,a):e[n]=a})),e)),{})}const ae={[h.rx]:{reducersToSave:["settings","rightSidebar"],key:R.STATE_STORAGE_KEY},[h.xw]:{reducersToSave:["regexEditor"],key:R.STATE_TEMP_REGEX_EDITOR_KEY}};function ie(){se()&&(window.plausible=window.plausible||function(){(window.plausible.q=window.plausible.q||[]).push(arguments)})}var oe=s(2043),le=s.n(oe),ce=s(55511),ue=s.n(ce);function de(){const e=/test/,t=void 0!==e.unicode,s=void 0!==e.dotAll;let n=void 0!==e.sticky;const r=void 0!==e.hasIndices;try{"aaa".match(/^a/gy).length>1&&(n=!1,i.Z.warn("Sticky flag for JS has been disabled as behavior in this browser is non-standard"))}catch(e){i.Z.warn("Unable to test for sticky flag, continuing...")}ue().extendFlags(x().JAVASCRIPT,(n?"y":"")+(t?"u":"")+(s?"s":"")+(r?"d":""))}var he=s(27428);function pe(){try{new RegExp("(?<=test)regex").test("testregex")&&(he.SC.lookbehind=!0)}catch(e){i.Z.warn("This browser does not have lookbehind support for the javascript flavor")}try{new RegExp("(?<name>test)").test("test")&&(he.SC.namedGroup=!0)}catch(e){i.Z.warn("This browser does not have named group support for the javascript flavor")}try{new RegExp("\\p{Letter}","u").test("test")&&(he.SC.unicodeProperty=!0)}catch(e){i.Z.warn("This browser does not have named group support for the javascript flavor")}}function ge(){"serviceWorker"in navigator&&window.addEventListener("load",(()=>{navigator.serviceWorker.register("/sw.js").then((()=>i.Z.info("Successfully registered service worker")),(e=>i.Z.warn("Unable to initializer service worker, proceeding.",e)))}),{once:!0})}var me=s(14144),xe=s.n(me);function fe(e){window.addEventListener("load",(()=>ve(e)),{once:!0})}const ve=e=>{const t=ee.Z.get("regex101-sponsor"),s=!Array.isArray(t)&&t||null;if(s){const e=(new Date).toDateString();Object.keys(s).forEach((t=>{const n=s[t];new Date(n.lastSeen).toDateString()!==e&&(n.lastSeen=new Date,n.todayCount=0)}))}const n="https://srv.buysellads.com/ads/CESIEKJM.json"+(s?"?freqcap="+Object.keys(s).map((e=>{const t=s[e],n=t.allTimeCount;return`${e}:${t.todayCount},${n}`})).join(";"):"");new Promise((e=>setTimeout(e,500))).then((()=>xe()(n))).then((e=>e.json())).then((t=>{t&&t.ads&&Array.isArray(t.ads)&&e.dispatch((0,X.IU)(s,t.ads.find((e=>!(null==e||!e.statlink)))))})).catch((t=>{le().error("Unable to load sponsor data",t),e.dispatch({type:h.qI,value:{adBlock:!0}})}))};async function be(e){const t=e.getState().settings.language;null!=t&&"ENGLISH"!==t&&await e.dispatch((0,X.BF)(t,!1))}function je(){document.body.addEventListener("mousedown",(()=>{document.body.classList.remove("using-keyboard")})),document.body.addEventListener("keydown",(e=>{"Tab"!==e.key&&9!==e.which&&9!==e.keyCode||document.body.classList.add("using-keyboard")}))}function Ce(){ee.Z.delete(R.STATE_TEMP_REGEX_EDITOR_KEY)}var Ze=s(75573);async function ye(){var e;null!=(e=location)&&e.hostname.startsWith("regex101.com")||(0,Ze.uT)("Unknown location",{location:location.href})}var Ee=s(67294),Te=s(70743),ke=s(79655),Ne=s(89250),Se=s(94184),_e=s.n(Se),we=s(83950),Ae=s(86565),Oe=s(69574),Ie=s(68821),Re=s(98152),Pe=s(79352),Le=s(47516),Me=s(5434),De=s(56458),Ue=s(97930);const Fe="mNcTS",Ge="j_FSe";var Ve=s(85893);const Be=parseFloat(Ue.bP),$e=({noClick:e,className:t})=>{const s=(0,De.Z)(Be);return(0,Ve.jsx)("h1",{children:(0,Ve.jsxs)(Ie.rU,{className:_e()("djxIS",e&&"SZppj",t),to:"/",absolute:!0,tabIndex:e?-1:0,"aria-label":"regular expressions 101",children:[Be>=s.width?(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("span",{className:Fe,children:"Reg"}),(0,Ve.jsx)("span",{className:Ge,children:"Ex"})]}):(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("span",{className:Fe,children:"Regular"})," ",(0,Ve.jsx)("span",{className:Ge,children:"Expressions"})," "]}),(0,Ve.jsx)("span",{className:"kkc8H",children:"101"})]})})};var He=s(58090);const qe=parseFloat(Ue.Pt),ze=(0,Ee.forwardRef)((({link:e,icon:t,text:s,label:n,className:r,direction:a=He.qF.S,onClick:i},o)=>{const l=(0,De.Z)(qe);return qe>=l.width?(0,Ve.jsx)(Ie.x6,{to:e,noTheme:!0,absolute:!0,target:"_blank",tooltip:n,onClick:i,tooltipDirection:a,size:28,className:_e()("jm3JB","v_pM0"),ref:o,children:(0,Ve.jsx)(t,{className:r,size:16})}):(0,Ve.jsxs)(Ie.rU,{className:"a4ddH",to:e,noTheme:!0,absolute:!0,target:"_blank","aria-label":n,onClick:i,children:[(0,Ve.jsx)(t,{className:_e()("xfXAE",r),size:14}),(0,Ve.jsx)("span",{className:"t1rej",children:s})]})})),We=(0,Ee.memo)(ze);var Ye=s(42613),Ke=s(50006),Je=s(45527),Xe=s(52936);const Qe=["fallback","className"],et=se()?(0,Ee.lazy)((()=>Promise.all([s.e(215),s.e(101)]).then(s.bind(s,71102)))):()=>{},tt=e=>{let t=e.fallback,s=e.className,n=(0,E.Z)(e,Qe);const r=(0,Ve.jsxs)("div",{className:_e()("GIfGY",s),children:[(0,Ve.jsx)(Ie.$j,{className:"V0n59",size:He.J7.TC}),(0,Ve.jsx)("div",{className:"TnH56",children:(0,Ae.Z)("Loading markdown...")})]});return(0,Ve.jsx)(Ie.I2,{fallback:t||r,children:(0,Ve.jsx)(et,Object.assign(Object.assign({},n),{},{className:s}))})},st=({isOpen:e,onModalClose:t,title:s,textUrl:n,maxLineCount:r=50})=>{const a=(0,Ee.useState)(""),o=(0,Re.Z)(a,2),l=o[0],c=o[1],u=(0,Ee.useState)(!1),d=(0,Re.Z)(u,2),h=d[0],p=d[1],g=(0,Ee.useState)({isFetching:!1,fetchError:!1}),m=(0,Re.Z)(g,2),x=m[0],f=m[1],v=(0,Ee.useCallback)((()=>p(!0)),[]);(0,Ee.useEffect)((()=>{let t=null;return e&&(c(""),f({isFetching:!0,fetchError:!1}),t=fetch(n).then((e=>e.text())).then((e=>{c(e),f({isFetching:!1,fetchError:!1})})).catch((e=>{e.code!==DOMException.ABORT_ERR&&(i.Z.error("Unable to fetch text",e),f({isFetching:!1,fetchError:!0}))}))),()=>{var e;null==(e=t)||e.cancel()}}),[e,n]),(0,Ee.useEffect)((()=>()=>p(!1)),[e]);const b=(0,Ve.jsxs)("div",{className:"e4TKI",children:[(0,Ve.jsx)(Ie.$j,{className:"emNHs"}),(0,Ve.jsx)("div",{className:"J0NvP",children:(0,Ae.Z)("Loading content...")})]}),j=l.split("\n").slice(0,r).join("\n"),C=j===l;return(0,Ve.jsxs)(Ye.Z,{onModalClose:t,isOpen:e,children:[(0,Ve.jsx)(Ke.Z,{children:s}),(0,Ve.jsxs)(Je.Z,{children:[x.isFetching&&b,x.fetchError&&(0,Ve.jsx)(Ie.qX,{type:He.gr.pn,children:(0,Ae.Z)("Unable to fetch content, please try again later")}),!x.isFetching&&!x.fetchError&&(0,Ve.jsx)(tt,{className:"pWUrQ",fallback:b,children:h?l:j}),!h&&!C&&(0,Ve.jsx)(Ie.zx,{onClick:v,text:(0,Ae.Z)("Show all"),className:"rZtsn"})]}),(0,Ve.jsx)(Xe.Z,{children:(0,Ve.jsx)(Ie.zx,{text:(0,Ae.Z)("Close"),onClick:t,type:He.V5.n1})})]})},nt="Gceny",rt=parseFloat(Ue.p4),at=parseFloat(Ue.D6),it=({alwaysCollapseLeftSidebar:e,alwaysCollapseRightSidebar:t})=>{const s=(0,De.Z)(rt,at),n=(0,Ee.useState)(!1),r=(0,Re.Z)(n,2),a=r[0],i=r[1],o=(0,Ne.TH)(),l=!/^\/(?:account.*|settings.*|library.*|quiz\/?)$/.test(o.pathname),c=e||s.width<=rt,u=t||s.width<at;return(0,Ve.jsxs)("header",{className:_e()(nt,c&&"V13Sk",l&&u&&"wlvok"),children:[(0,Ve.jsx)($e,{className:"ZPud1"}),(0,Ve.jsxs)("div",{className:"YxYLF",children:[(0,Ve.jsx)(We,{className:"LTJnM",label:(0,Ae.Z)("Follow me on twitter!"),text:"@regex101",icon:Pe.x2F,link:"https://twitter.com/regex101"}),(0,Ve.jsx)(We,{className:"paRbz",label:(0,Ae.Z)("Like regex101? Support it by donating!"),text:(0,Ae.Z)("Donate"),icon:Le.pu9,link:R.DONATION_LINK}),(0,Ve.jsx)(We,{className:"FRRzx",label:(0,Ae.Z)("Become a sponsor!"),text:(0,Ae.Z)("Sponsor"),icon:Pe.iB2,link:R.SPONSOR_LINK}),(0,Ve.jsx)(We,{className:"azy0N",label:(0,Ae.Z)("Send me an email"),text:(0,Ae.Z)("Contact"),icon:Pe.YTS,link:"mailto:contact@regex101.com"}),(0,Ve.jsx)(We,{className:"h8KP1",label:(0,Ae.Z)("Bugs or suggestions go here"),text:(0,Ae.Z)("Bug Reports & Feedback"),icon:Me.mvF,link:"https://github.com/firasdib/Regex101/issues"}),(0,Ve.jsx)(We,{className:"x0HyW",label:(0,Ae.Z)("Wiki (Info & FAQ)"),text:(0,Ae.Z)("Wiki"),icon:Pe.qvv,link:"https://github.com/firasdib/Regex101/wiki"}),(0,Ve.jsx)(We,{direction:He.qF.SW,className:"OFFYM",label:(0,Ae.Z)("What's new?"),text:(0,Ae.Z)("What's new?"),icon:Pe.lBz,link:"/static/assets/changelog.md",onClick:e=>{e.preventDefault(),e.stopPropagation(),i(!0)}})]}),(0,Ve.jsx)(st,{isOpen:a,onModalClose:()=>i(!1),textUrl:"/static/assets/changelog.md",title:(0,Ae.Z)("What's new?")})]})},ot=(0,Ee.memo)(it);var lt=s(59747),ct=s(14882);const ut=(0,lt.Z)(ct.ug),dt={exit:"uKbj5",exitActive:"xPMjQ"},ht=()=>{const e=(0,Ee.useState)(!0),t=(0,Re.Z)(e,2),s=t[0],n=t[1],r=(0,Ee.useState)(!0),a=(0,Re.Z)(r,2),i=a[0],o=a[1];return(0,Ee.useEffect)((()=>(Oe.ZP.once(Oe.En,(()=>{n(!1),setTimeout((()=>o(!1)),ut)})),()=>clearTimeout(void 0))),[]),i?(0,Ve.jsx)(Ie.uT,{className:_e()("QzY4i",!s&&"sr6nN"),classNames:dt,appear:!1,enter:!1,timeout:ut,in:s,forceAnimation:!0,children:(0,Ve.jsxs)("div",{className:"sNjVA",children:[(0,Ve.jsx)("div",{className:nt,children:(0,Ve.jsx)($e,{noClick:!0})}),(0,Ve.jsxs)("div",{className:"GwqPG",children:[(0,Ve.jsx)(Ie.$j,{}),(0,Ve.jsx)("div",{className:"RIMEV",children:(0,Ae.Z)("Please wait while the app is loading...")})]}),(0,Ve.jsx)(Ie.A5,{})]})}):null},pt=(0,Ee.memo)(ht),gt=(e,t)=>{!se()&&window.plausible||window.plausible(e,t)};var mt=s(80362),xt=s(62238),ft=s(56315);const vt="wcfss",bt=[{flavor:x().PCRE2,text:"PCRE2 (PHP >=7.3)"},{flavor:x().PCRE,text:"PCRE (PHP <7.3)"},{flavor:x().JAVASCRIPT,text:"ECMAScript (JavaScript)"},{flavor:x().PYTHON,text:"Python"},{flavor:x().GOLANG,text:"Golang"},{flavor:x().JAVA,text:"Java 8"},{flavor:x().DOTNET,text:".NET (C#)"},{flavor:x().RUST,text:"Rust"}],jt=()=>{const e=(0,Te.I0)(),t=(0,Ee.useState)(!1),s=(0,Re.Z)(t,2),n=s[0],r=s[1],a=(0,Te.v9)((e=>e.regexEditor.flavor)),i=(0,Te.v9)((e=>e.regexEditor.flags)),o=(0,Ee.useCallback)((t=>{gt("Change flavor",{props:{flavor:t}});const s=v()[t][0];e(X.o6(t)),e(X.G6(s)),e(X.dL(i,i,t))}),[e,i]),l=(0,Ee.useCallback)((e=>{e.preventDefault(),r(!0)}),[]),c=(0,Ee.useCallback)((()=>r(!1)),[]);return(0,Ve.jsxs)(xt.Z,{className:vt,header:(0,Ae.Z)("Flavor"),headerChildren:(0,Ve.jsx)(ft.Z,{to:"/static/assets/flavors.md",onClick:l,className:"IC7U1",tooltip:(0,Ae.Z)("Need help selecting flavor?"),size:16,children:(0,Ve.jsx)(Pe.zXH,{size:16})}),children:[bt.map((({flavor:e,text:t})=>(0,Ve.jsx)(mt.Z,{icon:Pe.mV1,onClick:()=>o(e),isActive:a===e,children:t},`flavor-item-${e}`))),(0,Ve.jsx)(st,{title:(0,Ae.Z)("Flavor Help"),onModalClose:c,textUrl:"/static/assets/flavors.md",isOpen:n})]})};var Ct=s(80471),Zt=s(35579),yt=s(56538),Et=s(46175),Tt=s(17650);const kt="PEVyC",Nt=["children","icon","absolute","to","className","isDisabled"],St=e=>{let t=e.children,s=e.icon,n=e.absolute,r=e.to,a=e.className,i=e.isDisabled,o=(0,E.Z)(e,Nt);return(0,Ve.jsx)(Et.Z,Object.assign(Object.assign({isDisabled:i,className:a},o),{},{children:(0,Ve.jsx)(Ie.rU,{tabIndex:i?-1:void 0,to:r,absolute:n,className:kt,noTheme:!0,children:(0,Ve.jsx)(Tt.Z,{icon:s,children:t,className:a})})}))},_t=(0,Ee.memo)(St);var wt=s(58294);function At(e,t=1){return e?`/r/${e}/${t}`:"/"}var Ot=s(77891);const It="SOmBr",Rt="UfPXv",Pt=({text:e,onDelete:t,clickable:s=!1,index:n,size:r=He.J7.M2,isSelected:a=!1,to:i})=>{const o=_e()("iFPCp",t&&"EvQAt",s&&"LNuoU",r===He.J7.M2&&"sDfVp",r===He.J7.HC&&"k7DPw",a&&"ociUu");return t?(0,Ve.jsx)(Ie.Yd,{className:o,onClick:()=>t(n),children:(0,Ve.jsxs)("div",{className:"i_U6u",children:[(0,Ve.jsx)("div",{className:Rt,children:e}),t&&(0,Ve.jsx)(Pe.eSQ,{className:It})]})}):s?(0,Ve.jsx)(Ie.rU,{className:o,to:i,noTheme:!0,children:e}):(0,Ve.jsxs)("span",{className:o,children:[(0,Ve.jsx)("span",{className:Rt,children:e}),t&&(0,Ve.jsx)(Pe.eSQ,{className:It})]})},Lt=(0,Ee.memo)(Pt),Mt=["className","tags","ignoreEmpty"],Dt=e=>{let t=e.className,s=e.tags,n=e.ignoreEmpty,r=(0,E.Z)(e,Mt);const a=(0,Ne.TH)(),i=(0,ke.lr)(),o=(0,Re.Z)(i,1)[0];if(0===s.length)return n?null:(0,Ve.jsx)(Ie.qX,{children:(0,Ae.Z)("No tags to display for this entry.")});const l=[].concat(o.getAll("filterTags")||[]);return(0,Ve.jsx)("div",{className:_e()("e_47g",t),children:s.sort().map(((e,t)=>{const s=l.includes(e),n=Object.assign(Object.assign({},a),{},{search:Ot.B({filterTags:s?l.filter((t=>t!==e)):[...l,e]},o)});return(0,Ve.jsx)(Lt,Object.assign({text:e,index:t,isSelected:s,to:n},r),`tag-${t}`)}))})},Ut=(0,Ee.memo)(Dt),Ft="EHJke",Gt=({title:e="",libraryTitle:t,tags:s=[],onTagsChange:n,onTitleChange:r,disabled:a,className:i})=>{const o=(0,Ee.useState)(""),l=(0,Re.Z)(o,2),c=l[0],u=l[1],d=(0,Ee.useCallback)((e=>u(e)),[]),h=e=>{e.stopPropagation(),e.preventDefault(),c.length>0&&n([...s,c]),u("")};return(0,Ve.jsxs)("div",{className:_e()("b_UzD",a&&"ICuz5",i),children:[(0,Ve.jsxs)("div",{className:Ft,children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Edit personal title")}),(0,Ve.jsx)(Ie.oi,{value:e,onChange:r,placeholder:t||(0,Ae.Z)("Insert a personal title"),maxlength:150})]}),(0,Ve.jsxs)("div",{className:Ft,children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Tags")}),(0,Ve.jsx)(Ut,{tags:s,onDelete:e=>n([...s.slice(0,e),...s.slice(e+1)])})]}),(0,Ve.jsxs)("form",{className:"ECIrE",onSubmit:h,children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Add tag")}),(0,Ve.jsxs)("div",{className:"MPX5Z",children:[(0,Ve.jsx)(Ie.oi,{onChange:d,placeholder:(0,Ae.Z)("Any word can be used as a tag"),value:c,maxlength:125,className:"GoqIP",validation:/^\w*$/u}),(0,Ve.jsx)(Ie.hU,{tooltip:(0,Ae.Z)("Add tag"),className:"fyf3i",disabled:0===c.length,size:28,onClick:h,children:(0,Ve.jsx)(Pe.p22,{size:22})})]})]})]})},Vt="LrAFA",Bt="Tpbre",$t="XXWwF",Ht=({permalink:e,error:t,userId:s,isOwner:n,regexDeleteUrl:r,versionDeleteUrl:a,isLoading:i})=>t?(0,Ve.jsx)("div",{className:Vt,children:(0,Ve.jsx)(Ie.qX,{type:He.gr.pn,children:(0,Ae.Z)("There was an error trying to save your regex. Please try again later.")})}):i?(0,Ve.jsxs)("div",{className:Vt,children:[(0,Ve.jsx)(Ie.$j,{}),(0,Ve.jsx)("div",{className:"BjqNv",children:(0,Ae.Z)("Please wait while your request is being processed...")})]}):(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Link to regular expression")}),(0,Ve.jsx)(Ie.oi,{type:"text",value:e,selectOnMount:!0,selectOnFocus:!0,readOnly:!0,copyButton:!0}),(0,Ve.jsxs)(Ie.qX,{className:Bt,type:He.gr.MR,children:[(0,Ae.Z)("Your regex has been saved and may be accessed with this link by anybody you give it to.")," ",null!=s&&n&&(0,Ae.Z)("This entry has also been automatically been linked to your account for your convenience.")]}),null==s&&n&&null!=r&&(0,Ve.jsxs)("div",{className:$t,children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Delete regular expression")}),(0,Ve.jsx)(Ie.oi,{type:"text",value:r,readOnly:!0,copyButton:!0,selectOnFocus:!0}),(0,Ve.jsx)(Ie.qX,{className:Bt,children:(0,Ae.Z)("Because you are not signed in this entry has not been linked to an account. It is recommended you sign in so that your entries are never lost and you can manage them from the account page whenever you like.")})]}),null==s&&null!=a&&(0,Ve.jsxs)("div",{className:$t,children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Delete this version")}),(0,Ve.jsx)(Ie.oi,{type:"text",value:a,readOnly:!0,copyButton:!0,selectOnFocus:!0})]})]}),qt=(0,Ee.memo)(Ht),zt=[],Wt=e=>new Promise((t=>setTimeout(t,e))),Yt=({isUpdating:e,onModalClose:t,isOpen:s})=>{const n=(0,Ne.s0)(),r=(0,Te.I0)(),a=(0,Te.v9)((e=>e.general.permalinkFragment)),o=(0,Te.v9)((e=>e.general.userId)),l=(0,Te.v9)((e=>e.general.title))||"",c=(0,Te.v9)((e=>e.general.tags))||zt,u=(0,Te.v9)((e=>e.general.isOwner)),d=(0,Te.v9)((e=>e.general.isFavorite)),h=(0,Ee.useState)(!1),p=(0,Re.Z)(h,2),g=p[0],m=p[1],x=(0,Ee.useState)(l),f=(0,Re.Z)(x,2),v=f[0],b=f[1],j=(0,Ee.useState)(c),C=(0,Re.Z)(j,2),Z=C[0],y=C[1],E=(0,Ee.useState)({isLoadingRegex:!1,hasRegexError:!1,isLoadingAcc:!1,hasAccError:!1}),T=(0,Re.Z)(E,2),k=T[0],N=T[1],S=(0,Ee.useState)(null),_=(0,Re.Z)(S,2),w=_[0],A=_[1],O=(0,Ee.useState)(null),I=(0,Re.Z)(O,2),R=I[0],P=I[1],L=(0,Ee.useState)(null),M=(0,Re.Z)(L,2),D=M[0],U=M[1],F=(0,Ee.useState)(!1),G=(0,Re.Z)(F,2),V=G[0],B=G[1];(0,Ee.useEffect)((()=>{s&&(B(!1),m(!1),A(null),P(null),U(null))}),[s]);const $=(0,Ee.useCallback)((e=>{y(e),m(!0)}),[]),H=(0,Ee.useCallback)((e=>{b(e),m(!0)}),[]);(0,Ee.useEffect)((()=>{b(l),y(c)}),[c,l]),(0,Ee.useEffect)((()=>{s&&!V&&(B(!0),N({isLoadingRegex:!0,hasRegexError:!1,isLoadingAcc:!1,hasAccError:!1}),Promise.all([r((0,X.by)(e)),Wt(250)]).then((([e])=>{const t=e.permalinkFragment,s=e.version,r=e.regexDeleteCode,a=e.versionDeleteCode,i=`${window.location.protocol}//${window.location.hostname}`,o=At(t,s);n(o,{replace:!0}),A(`${i}${o}`),P(`${i}/delete/${r}`),U(`${i}/delete/${s}/${a}`),N({isLoadingAcc:!1,isLoadingRegex:!1,hasAccError:!1,hasRegexError:!1})})).catch((e=>{i.Z.error("Unable to save regex",e),N({isLoadingAcc:!1,isLoadingRegex:!1,hasAccError:!1,hasRegexError:!0})})))}),[s,r,n,e,V]);const q=e?(0,Ae.Z)("Update Regular Expression"):(0,Ae.Z)("Save Regular Expression"),z=!k.isLoadingRegex&&null!=o&&!k.hasRegexError&&(u||d);return(0,Ve.jsxs)(Ye.Z,{isOpen:s,onModalClose:t,isLoading:k.isLoadingRegex||k.isLoadingAcc,children:[(0,Ve.jsx)(Ke.Z,{children:q}),(0,Ve.jsxs)(Je.Z,{children:[(0,Ve.jsx)(qt,{error:k.hasRegexError,permalink:w,userId:o,isOwner:u,regexDeleteUrl:R,versionDeleteUrl:D,isLoading:k.isLoadingRegex}),z&&w&&(0,Ve.jsx)(Gt,{title:v,tags:Z,onTagsChange:$,onTitleChange:H,disabled:k.isLoadingAcc,className:"D7pB5"})]}),(0,Ve.jsxs)(Xe.Z,{isLoading:k.isLoadingAcc,hasError:k.hasAccError,errorText:(0,Ae.Z)("Unable to save changes, please try again"),children:[z&&(0,Ve.jsx)(Ie.zx,{onClick:async()=>{N({isLoadingRegex:!1,hasRegexError:!1,isLoadingAcc:!0,hasAccError:!1});try{await Promise.all([r((0,X.ML)(Z,null,a)),r((0,X._1)(v,null,a)),Wt(500)]),N({isLoadingRegex:!1,hasRegexError:!1,isLoadingAcc:!1,hasAccError:!1}),t()}catch(e){i.Z.error("Unable to save account data",e),N({isLoadingRegex:!1,hasRegexError:!1,isLoadingAcc:!1,hasAccError:!0})}},text:(0,Ae.Z)("Save title and tags"),className:"JySmX",disabled:!g||k.isLoadingAcc}),(0,Ve.jsx)(Ie.zx,{type:He.V5.n1,onClick:t,text:z&&g?(0,Ae.Z)("Cancel"):(0,Ae.Z)("Close"),disabled:k.isLoadingRegex||k.isLoadingAcc})]})]})};function Kt(e,t,s){let n=0;return Ee.Children.map(e,(e=>{if((0,Ee.isValidElement)(e)){const r=n;return n++,t.call(s,e,r)}return e}))}function Jt(e,t){let s;return function(e,t,s){let n=0;Ee.Children.forEach(e,(e=>{(0,Ee.isValidElement)(e)&&(t.call(void 0,e,n),n++)}))}(e,((n,r)=>{!s&&t(n,r,e)&&(s=n)})),s}var Xt=s(45697),Qt=s.n(Xt);const es=({children:e})=>e;es.propTypes={children:Qt().node.isRequired};const ts=es,ss=({children:e,className:t,tabs:s,renderToolbar:n})=>{const r=(0,Ee.useState)(0),a=(0,Re.Z)(r,2),i=a[0],o=a[1];return(0,Ve.jsxs)("div",{className:_e()("xcnvY",t),children:[(0,Ve.jsxs)("div",{className:"JIZX7",children:[s.map(((e,t)=>(0,Ve.jsx)(Ie.Yd,{className:_e()("KDcqY",t===i&&"hVcJX"),onClick:()=>o(t),children:e},`tabview-tab-${t}`))),n&&n(i)]}),Jt(e,((e,t)=>i===t))]})};var ns=s(89583);const rs={menuPortal:"tdkJ8",insideModal:"zXY8d",menuScroll:"NrXoa",menu:"f6YSB",enterBottom:"NrZNZ",enterTop:"MpxoU",enterActive:"uarNo",leave:"SSIhI",leaveActiveBottom:"oupK4",leaveActiveTop:"b8xoE"},as=["className","children","target","isOpen","onMenuClose","closeOnClick","insideModal","placement"],is=(0,lt.Z)(ct.t2),os=e=>{let t=e.className,s=e.children,n=e.target,r=e.isOpen,a=e.onMenuClose,i=e.closeOnClick,o=void 0!==i&&i,l=e.insideModal,c=e.placement,u=void 0===c?"bottom":c,d=(0,E.Z)(e,as);const h=(0,Ee.useRef)(null),p=(0,Ee.useCallback)((e=>{e.stopPropagation(),a()}),[a]);(0,Ee.useEffect)((()=>{let e;const t=e=>{var t;null!=(t=h.current)&&t.contains(e.target)||null!=n&&n.contains(e.target)||n===e.target||a()};return r&&(e=setTimeout((()=>{var e,s;Oe.ZP.once("key:escape",p),null==(e=document.body)||e.addEventListener("mousedown",t,{passive:!0}),null==(s=document.body)||s.addEventListener("touchend",t,{passive:!0})}),is)),()=>{var s,n;clearTimeout(e),Oe.ZP.off("key:escape",p),null==(s=document.body)||s.removeEventListener("mousedown",t,{passive:!0}),null==(n=document.body)||n.removeEventListener("touchend",t,{passive:!0})}}),[r,a,n,p]);const g={appear:"bottom"===u?rs.enterBottom:rs.enterTop,appearActive:rs.enterActive,enter:rs.enter,enterActive:rs.enterActive,exit:rs.leave,exitActive:"bottom"===u?rs.leaveActiveBottom:rs.leaveActiveTop};return(0,Ve.jsx)(Ie.Yv,{className:rs.menuPortal,target:n,isOpen:r,closeTimeout:is,placement:u,children:(0,Ve.jsx)(Ie.iQ,{children:(0,Ve.jsx)(Ie.uT,Object.assign(Object.assign({className:_e()(rs.menu,t,l&&rs.insideModal),classNames:g,timeout:is,in:r,ref:h},d),{},{children:Kt(s,(e=>{return(0,Ee.cloneElement)(e,{onClick:e.props.onClick&&(t=e.props.onClick,e=>{o&&a(),null==t||t(e)})});var t}))}))})})},ls="TjiR_",cs="IQ0Dq",us="i0q6u",ds="Ung4t",hs=["isActive","children","className"],ps=e=>{let t=e.isActive,s=e.children,n=e.className,r=(0,E.Z)(e,hs);return(0,Ve.jsxs)(Ie.Yd,Object.assign(Object.assign({className:_e()(ls,n)},r),{},{children:[(0,Ve.jsx)("div",{className:us,children:s}),(0,Ve.jsx)(Pe.xuy,{size:18,className:_e()(cs,!t&&ds)})]}))},gs=(0,Ee.memo)(ps),ms=["text"],xs=e=>{let t=e.text,s=(0,E.Z)(e,ms);return(0,Ve.jsx)("h4",Object.assign(Object.assign({className:"KMW6D"},s),{},{children:t}))},fs=(0,Ee.memo)(xs),vs=()=>(0,Ve.jsx)("hr",{className:"dYvK9"}),bs=["isActive","children","className","disabled"],js=e=>{let t=e.isActive,s=e.children,n=e.className,r=e.disabled,a=(0,E.Z)(e,bs);return(0,Ve.jsxs)(Ie.rU,Object.assign(Object.assign({className:_e()(ls,r&&"roQ4U",n),tabIndex:r?-1:void 0,"aria-disabled":r,noTheme:!0},a),{},{children:[(0,Ve.jsx)("div",{className:us,children:s}),(0,Ve.jsx)(Pe.xuy,{size:18,className:_e()(cs,!t&&ds)})]}))},Cs=(0,Ee.memo)(js),Zs=["onHeaderClick"],ys=e=>{let t=e.onHeaderClick,s=(0,E.Z)(e,Zs);return(0,Ve.jsxs)(os,Object.assign(Object.assign({closeOnClick:!0,insideModal:!0},s),{},{children:[(0,Ve.jsx)(fs,{text:(0,Ae.Z)("Headers")}),(0,Ve.jsx)(vs,{}),(0,Ve.jsx)(gs,{onClick:()=>t("# "),children:"H1"}),(0,Ve.jsx)(gs,{onClick:()=>t("## "),children:"H2"}),(0,Ve.jsx)(gs,{onClick:()=>t("### "),children:"H3"})]}))},Es=({children:e})=>(0,Ve.jsx)("div",{className:"sswmd",children:e}),Ts=["tooltip","lastGroup","icon","isMenu"],ks=(0,Ee.forwardRef)(((e,t)=>{let s=e.tooltip,n=e.lastGroup,r=e.icon,a=e.isMenu,i=(0,E.Z)(e,Ts);return(0,Ve.jsx)(Ie.lx,{text:s,direction:n?He.qF.NW:He.qF.N,children:(0,Ve.jsxs)(Ie.Yd,Object.assign(Object.assign({className:"rYU7E"},i),{},{ref:t,children:[(0,Ve.jsx)(r,{className:"HJfpj"}),a&&(0,Ve.jsx)(Pe.ZXJ,{className:"wTcsC"})]}))})}));ks.propTypes={tooltip:Qt().string.isRequired,icon:Qt().elementType.isRequired,onClick:Qt().func.isRequired,lastGroup:Qt().bool,isMenu:Qt().bool};const Ns=ks,Ss=({onTextChange:e,className:t,getStart:s,getEnd:n,value:r})=>{const a=(0,Ee.useRef)(),i=(0,Ee.useState)(!1),o=(0,Re.Z)(i,2),l=o[0],c=o[1],u=(t="",r="")=>{const a=t+p()+r;e(h(a),s()+t.length,n()+t.length)},d=t=>{const r=p(),a=r.split("\n").map(t).join("\n");e(h(a),s(),n()+a.length-r.length)},h=e=>r.substring(0,s())+e+r.substring(n()),p=()=>r.substring(s(),n());return(0,Ve.jsxs)("div",{className:_e()("CHR_O",t),children:[(0,Ve.jsxs)(Es,{children:[(0,Ve.jsx)(Ns,{icon:ns.YHB,tooltip:(0,Ae.Z)("Add header"),onClick:()=>c(!0),isMenu:!0,ref:a}),(0,Ve.jsx)(Ns,{icon:ns.PKR,tooltip:(0,Ae.Z)("Add bold text"),onClick:()=>u("**","**")}),(0,Ve.jsx)(Ns,{icon:ns.Mef,tooltip:(0,Ae.Z)("Add italic text"),onClick:()=>u("_","_")})]}),(0,Ve.jsxs)(Es,{children:[(0,Ve.jsx)(Ns,{icon:ns.fkU,tooltip:(0,Ae.Z)("Insert quote"),onClick:()=>d((e=>"> "+e))}),(0,Ve.jsx)(Ns,{icon:ns.tvD,tooltip:(0,Ae.Z)("Insert code snippet"),onClick:()=>{-1!==p().indexOf("\n")?d((e=>" ".repeat(4)+e)):u("`","`")}}),(0,Ve.jsx)(Ns,{icon:ns.gjK,tooltip:(0,Ae.Z)("Insert link"),onClick:()=>{const t=p(),n=`[${t}](url)`,r=s()+t.length+3,a=r+3;e(h(n),r,a)}})]}),(0,Ve.jsxs)(Es,{children:[(0,Ve.jsx)(Ns,{icon:ns.AeW,tooltip:(0,Ae.Z)("Add bulleted list"),onClick:()=>d((e=>"- "+e)),lastGroup:!0}),(0,Ve.jsx)(Ns,{icon:ns.Fe1,tooltip:(0,Ae.Z)("Add numbered list"),onClick:()=>d(((e,t)=>t+1+". "+e)),lastGroup:!0})]}),(0,Ve.jsx)(ys,{isOpen:l,onMenuClose:()=>c(!1),onHeaderClick:e=>u(e),target:a.current})]})},_s=(0,Ee.memo)(Ss),ws="YONkN",As="PhRac",Os="FVje3",Is=["defaultValue","value","onChange","containerClassName","className"],Rs=e=>{let t=e.defaultValue,s=e.value,n=e.onChange,r=(e.containerClassName,e.className),a=(0,E.Z)(e,Is);const i=(0,Ee.useRef)(),o=(0,Ee.useState)(t||s||""),l=(0,Re.Z)(o,2),c=l[0],u=l[1],d=(0,Ee.useCallback)((()=>{var e;return(null==(e=i.current)?void 0:e.selectionStart)||0}),[]),h=(0,Ee.useCallback)((()=>{var e;return(null==(e=i.current)?void 0:e.selectionEnd)||0}),[]),p=(0,Ee.useCallback)((e=>{u(e),n&&n(e)}),[n]),g=(0,Ee.useCallback)(((e,t,s)=>{n&&n(e),i.current&&(u(e),setTimeout((()=>{i.current&&(i.current.focus(),i.current.setSelectionRange(t,s))})))}),[n]),m=[(0,Ae.Z)("Write"),(0,Ae.Z)("Preview")];return(0,Ve.jsxs)(ss,{className:r,tabs:m,renderToolbar:e=>0!==e?null:(0,Ve.jsx)(_s,{className:"MafZJ",onTextChange:g,getStart:d,getEnd:h,value:c}),children:[(0,Ve.jsxs)(ts,{children:[(0,Ve.jsx)("div",{className:As,children:(0,Ve.jsx)(Ie.oi,Object.assign(Object.assign({},a),{},{onChange:p,className:Os,value:c,ref:i,multiline:!0}))}),(0,Ve.jsx)(Ie.rU,{to:"http://whatismarkdown.com/",absolute:!0,target:"_blank",className:ws,children:(0,Ae.Z)("Styling with Markdown is supported")})]}),(0,Ve.jsxs)(ts,{children:[(0,Ve.jsxs)("div",{className:As,children:[(0,Ve.jsx)(Ie.oi,Object.assign(Object.assign({},a),{},{className:Os,value:c,multiline:!0,disabled:!0})),(0,Ve.jsx)(tt,{className:"w0msh",children:c||(0,Ae.Z)("Nothing to preview")})]}),(0,Ve.jsx)(Ie.rU,{to:"http://whatismarkdown.com/",absolute:!0,target:"_blank",className:ws,children:(0,Ae.Z)("Styling with Markdown is supported")})]})]})},Ps=(0,Ee.memo)(Rs),Ls=({title:e,children:t,required:s})=>(0,Ve.jsxs)("div",{className:"WQ5ax",children:[(0,Ve.jsx)(Ie.__,{text:e,required:s}),t]}),Ms=(0,Ee.memo)(Ls),Ds=({onModalClose:e,isOpen:t})=>{const s=(0,Te.I0)(),n=(0,Te.v9)((e=>e.general.isLibraryEntry)),r=(0,Te.v9)((e=>e.libraryEntry.description))||"",a=(0,Te.v9)((e=>e.libraryEntry.title))||"",o=(0,Te.v9)((e=>e.libraryEntry.author))||"",l=(0,Te.v9)((e=>e.general.permalinkIsEditable)),c=n&&l,u=(0,Ee.useState)(!1),d=(0,Re.Z)(u,2),h=d[0],p=d[1],g=(0,Ee.useState)(c?a:""),m=(0,Re.Z)(g,2),x=m[0],f=m[1],v=(0,Ee.useState)(c?o:""),b=(0,Re.Z)(v,2),j=b[0],C=b[1],Z=(0,Ee.useState)(c?r:""),y=(0,Re.Z)(Z,2),E=y[0],T=y[1],k=(0,Ee.useState)(""),N=(0,Re.Z)(k,2),S=N[0],_=N[1],w=(0,Ee.useState)({isLoading:!1,hasError:!1,success:!1}),A=(0,Re.Z)(w,2),O=A[0],I=A[1],R=(0,Ee.useCallback)((e=>{f(e),p(!0)}),[]),P=(0,Ee.useCallback)((e=>{C(e),p(!0)}),[]),L=(0,Ee.useCallback)((e=>{T(e),p(!0)}),[]);return(0,Ee.useEffect)((()=>{t&&(c?(f(a),C(o),T(r)):(f(""),C(""),T("")),I({isLoading:!1,hasError:!1,success:!1}))}),[t,a,o,r,c]),(0,Ve.jsxs)(Ye.Z,{onModalClose:e,isOpen:t,isLoading:O.isLoading,children:[(0,Ve.jsx)(Ke.Z,{children:c?(0,Ae.Z)("Update Library Entry"):(0,Ae.Z)("Submit Workspace to Regex Library")}),(0,Ve.jsx)(Je.Z,{children:(0,Ve.jsxs)("div",{className:_e()("_GCcL",O.isLoading&&"sXKS3"),children:[O.success&&(0,Ve.jsxs)("div",{className:"tuaRV",children:[(0,Ve.jsx)("div",{className:"ns94K",children:(0,Ae.Z)("Your workspace has been successfully submitted to the library!")}),(0,Ve.jsx)(Ie.vV,{tag:"p",text:"You can find the library entry here: {1}",ph1:(0,Ve.jsx)(Ie.rU,{to:`/library/${S}`,absolute:!0,children:`/library/${S}`})}),(0,Ve.jsx)(Ie.vV,{tag:"p",text:"Any changes to the library entry, both the expression, as well as title/description/etc, can be made at the following url: {1}",ph1:(0,Ve.jsx)(Ie.rU,{to:At(S),absolute:!0,children:At(S)})}),(0,Ve.jsx)("p",{children:(0,Ae.Z)("You can continue to edit in this workspace without affecting the entry you just submitted.")}),(0,Ve.jsx)("strong",{children:(0,Ae.Z)("Thank you for your contribution")})]}),!O.success&&(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ms,{title:(0,Ae.Z)("Title"),required:!0,children:(0,Ve.jsx)(Ie.oi,{maxlength:150,onChange:R,defaultValue:x,placeholder:(0,Ae.Z)("Title of regular expression")})}),(0,Ve.jsx)(Ms,{title:(0,Ae.Z)("Description"),required:!0,children:(0,Ve.jsx)(Ps,{maxlength:5e3,onChange:L,placeholder:(0,Ae.Z)("Description of regular expression"),defaultValue:E})}),(0,Ve.jsx)(Ms,{title:(0,Ae.Z)("Author"),className:"H7aJ9",children:(0,Ve.jsx)(Ie.oi,{maxlength:150,onChange:P,defaultValue:j,placeholder:(0,Ae.Z)("Name or other identifier of the author")})})]})]})}),(0,Ve.jsxs)(Xe.Z,{children:[O.isLoading&&(0,Ve.jsx)(Ie.$j,{className:"GjCIr",size:He.J7.TC}),O.hasError&&(0,Ve.jsx)(Ie.lx,{text:(0,Ae.Z)("There was a problem while trying to submit your regex to the library. Please try again later."),direction:He.qF.N,children:(0,Ve.jsx)("div",{className:"QokGJ",role:"alert",children:(0,Ve.jsx)(Pe.j6O,{size:20})})}),!O.success&&(0,Ve.jsx)(Ie.zx,{text:n?(0,Ae.Z)("Update"):(0,Ae.Z)("Submit"),disabled:!h||0===x.length||0===E.length||O.isLoading,onClick:async()=>{I({isLoading:!0,hasError:!1,success:!1});try{const t=await s(n&&l?(0,X.ZD)(x,E,j):(0,X.Tr)(x,E,j));c?e():(_(t),I({isLoading:!1,hasError:!1,success:!0}))}catch(e){i.Z.error("Unable to create or update library entry",e),I({isLoading:!1,hasError:!0,success:!1})}},className:"ZmwNY"}),(0,Ve.jsx)(Ie.zx,{text:O.success?(0,Ae.Z)("Close"):(0,Ae.Z)("Cancel"),onClick:e,type:He.V5.n1,disabled:O.isLoading})]})]})},Us=["permalinkFragment","onConfirmClick","onModalClose","deleteCodes","className"],Fs="DELETE_ALL",Gs=e=>{let t=e.permalinkFragment,s=e.onConfirmClick,n=e.onModalClose,r=e.deleteCodes,a=e.className,i=(0,E.Z)(e,Us);const o=(0,Te.I0)(),l=(0,Ee.useState)(null),c=(0,Re.Z)(l,2),u=c[0],d=c[1],h=(0,Ee.useState)({isLoading:!1,hasError:!1}),p=(0,Re.Z)(h,2),g=p[0],m=p[1],x=(0,Ee.useCallback)((async()=>{m({isLoading:!0,error:!1});const e=u===Fs?r.deleteCode:r.versions.find((e=>e.version===u)).deleteCode;try{await o((0,X.MX)(t,u===Fs?null:u,e)),m({isLoading:!1,hasError:!1}),s(u)}catch(e){m({isLoading:!1,hasError:!0})}}),[s,u,r,o,t]),f=(0,Ee.useCallback)((e=>{const t=e.target.value;d(t===Fs?t:parseInt(t,10))}),[]),v=(0,Ee.useMemo)((()=>{const e=[];return r.deleteCode&&e.push({text:(0,Ae.Z)("All versions"),value:Fs}),e.push(...r.versions.map((e=>({text:`Version ${e.version}`,value:e.version})))),e}),[r]);return(0,Ve.jsxs)(Ye.Z,Object.assign(Object.assign({onModalClose:n,className:_e()("cLqcH",a),isLoading:g.isLoading},i),{},{children:[(0,Ve.jsx)(Ke.Z,{className:"WaRxJ",children:(0,Ae.Z)("Which version do you want to delete?")}),(0,Ve.jsxs)(Je.Z,{className:"KroVF",children:[(0,Ae.Z)("Are you sure you want to delete this regex? This action is non-reversible and will delete all versions of this regex."),(0,Ve.jsxs)("div",{className:"GavEV",children:[(0,Ae.Z)("Pick version to delete")," ",(0,Ve.jsxs)("select",{defaultValue:null,onChange:f,disabled:g.isLoading,children:[(0,Ve.jsx)("option",{value:null},"delete-code-null"),v.map((e=>{const t=e.text,s=e.value;return(0,Ve.jsx)("option",{value:s,children:t},`delete-code-${s}`)}))]})]}),(0,Ve.jsx)(Ie.qX,{type:He.gr.pn,className:"GCjCg",children:(0,Ae.Z)("The data can never be recovered again!")})]}),(0,Ve.jsxs)(Xe.Z,{isLoading:g.isLoading,hasError:g.hasError,errorText:(0,Ae.Z)("Unable to delete entry, please try again"),children:[(0,Ve.jsx)(Ie.zx,{text:(0,Ae.Z)("Yes, delete"),onClick:x,style:{marginRight:10},type:He.V5.T,disabled:!u||g.isLoading}),(0,Ve.jsx)(Ie.zx,{text:(0,Ae.Z)("Close"),onClick:n,type:He.V5.n1,disabled:g.isLoading})]})]}))};var Vs=s(6527),Bs=s(79615);const $s=()=>{const e=(0,Te.I0)(),t=(0,Te.v9)((e=>e.regexEditor.regex)),s=(0,Te.v9)((e=>e.regexEditor.error)),n=(0,Te.v9)((e=>e.regexEditor.hasUnsavedData)),r=(0,Te.v9)((e=>{const t=e.unitTests.tests,s=e.regexEditor,n=s.regex,r=s.testString;return""!==n||""!==r||t.length>0})),a=(0,Te.v9)((e=>e.general.permalinkFragment)),i=(0,Te.v9)((e=>e.general.version)),o=(0,Te.v9)((e=>e.general.isOwner)),l=(0,Te.v9)((e=>e.general.userId)),c=(0,Te.v9)((e=>e.general.isFavorite)),u=(0,Te.v9)((e=>e.general.isLibraryEntry)),d=(0,Te.v9)((e=>e.general.permalinkIsEditable)),h=(0,Ee.useState)(!1),p=(0,Re.Z)(h,2),g=p[0],m=p[1],x=(0,Ee.useState)(!1),f=(0,Re.Z)(x,2),v=f[0],b=f[1],j=(0,Ee.useState)(!1),C=(0,Re.Z)(j,2),Z=C[0],y=C[1],E=(0,Ee.useState)(!1),T=(0,Re.Z)(E,2),k=T[0],N=T[1],S=(0,Ee.useCallback)((()=>y(!0)),[]),_=(0,Ee.useCallback)((e=>{e.preventDefault(),N(!0)}),[]),w=(0,Ee.useCallback)((()=>N(!1)),[]),A=(0,Ee.useCallback)((()=>y(!1)),[]),O=(0,Ee.useCallback)((e=>{N(!1),window.location.href=e===Fs?"/":At(a,"latest")}),[a]),I=(0,Ee.useCallback)((async()=>{await e(X.Ez(a,null,!c)),e(X.jb(!c))}),[e,c,a]),R=(0,Ee.useCallback)((()=>{m(!1),b(!1)}),[]),P=(0,Ee.useCallback)((e=>{gt("Save Regex"),e.stopPropagation(),r&&n&&m(!0)}),[r,n]),L=(0,Ee.useCallback)((e=>{gt("Update Regex"),e.stopPropagation(),r&&n&&null!=a&&d&&(b(!0),m(!0))}),[r,n,a,d]);(0,Ee.useEffect)((()=>(Oe.ZP.on({"key:updateRegex":L,"key:saveRegex":P}),()=>{Oe.ZP.off({"key:updateRegex":L,"key:saveRegex":P})})),[L,P]);const M=(0,Ee.useMemo)((()=>null!=a?(0,Bs.Hz)(a,i):null),[a,i]);return(0,Ve.jsxs)(xt.Z,{className:vt,header:(0,Ae.Z)("Save & Share"),children:[(0,Ve.jsx)(Vs.Z,{icon:Pe.d26,onClick:P,isDisabled:!r||!n,className:"wHTes",rightElement:(0,Ve.jsx)(Ie.aX,{shortcut:Zt.SAVE_REGEX}),monospace:!1,children:(0,Ae.Z)("Save Regex")}),null!=a&&d&&(0,Ve.jsx)(Vs.Z,{icon:Pe.PwW,onClick:L,isDisabled:!r||!n,rightElement:(0,Ve.jsx)(Ie.aX,{shortcut:Zt.UPDATE_REGEX}),monospace:!1,children:u?(0,Ae.Z)("Update Library Regex"):(0,Ae.Z)("Update Regex")}),null!=M&&(0,Ve.jsx)(_t,{to:"/delete/",icon:Pe.M$4,className:"QQcsx",onClick:_,absolute:!0,tabIndex:-1,children:(0,Ae.Z)("Delete Regex")}),u&&o&&(0,Ve.jsx)(wt.Z,{isDisabled:""===t||s===yt.D9,icon:Pe.tuW,onClick:S,children:(0,Ae.Z)("Edit Library Entry")}),!u&&null!=l&&(0,Ve.jsx)(wt.Z,{isDisabled:""===t||s===yt.D9,icon:Pe.tuW,onClick:S,children:(0,Ae.Z)("Add to Public Library")}),null!=l&&null!=a&&(0,Ve.jsx)(wt.Z,{icon:Pe.iB2,className:"XusZa",onClick:I,children:c?(0,Ae.Z)("Unfavorite Regex"):(0,Ae.Z)("Favorite Regex")}),u&&(0,Ve.jsx)(_t,{to:`/library/${a}`,icon:Ct.bwQ,children:(0,Ae.Z)("Go to library entry")}),(0,Ve.jsx)(Yt,{isUpdating:v,onModalClose:R,isOpen:g}),(0,Ve.jsx)(Ds,{isOpen:Z,onModalClose:A}),null!=M&&(0,Ve.jsx)(Gs,{permalinkFragment:a,isOpen:k,onModalClose:w,onConfirmClick:O,deleteCodes:M})]})},Hs=()=>{const e=(0,Te.I0)(),t=(0,Te.v9)((e=>e.regexEditor.showMatchArea)),s=(0,Te.v9)((e=>e.regexEditor.showSubstitutionArea)),n=(0,Te.v9)((e=>e.regexEditor.showListSubstitutionArea)),r=(0,Te.v9)((e=>e.regexEditor.showUnitTestArea)),a=(0,Te.v9)((e=>e.unitTests.tests.length)),i=(0,Ee.useCallback)((t=>{t.stopPropagation(),gt("Change regex function",{props:{function:"match"}}),e(X.Iu())}),[e]),o=(0,Ee.useCallback)((t=>{t.stopPropagation(),gt("Change regex function",{props:{function:"subst"}}),e(X.ux())}),[e]),l=(0,Ee.useCallback)((t=>{t.stopPropagation(),gt("Change regex function",{props:{function:"unit-test"}}),e(X.rI())}),[e]),c=(0,Ee.useCallback)((t=>{t.stopPropagation(),gt("Change regex function",{props:{function:"list-subst"}}),e(X.vn())}),[e]);return(0,Ee.useEffect)((()=>(Oe.ZP.on({"key:ctrl1":i,"key:ctrl2":o,"key:ctrl3":c,"key:ctrl4":l}),()=>{Oe.ZP.off({"key:ctrl1":i,"key:ctrl2":o,"key:ctrl3":c,"key:ctrl4":l})})),[i,o,c,l]),(0,Ve.jsxs)(xt.Z,{className:vt,header:(0,Ae.Z)("Function"),children:[(0,Ve.jsx)(mt.Z,{icon:Pe.tJT,onClick:i,isActive:t,children:(0,Ae.Z)("Match")}),(0,Ve.jsx)(mt.Z,{icon:Pe.EgU,onClick:o,isActive:s&&!r,children:(0,Ae.Z)("Substitution")}),(0,Ve.jsx)(mt.Z,{icon:Pe.dR_,onClick:c,isActive:n,children:(0,Ae.Z)("List")}),(0,Ve.jsx)(mt.Z,{icon:Pe.aJY,onClick:l,isActive:r,children:(0,Ae.Z)("Unit Tests {1}",a>0?`(${a})`:"")})]})};var qs=s(14578),zs=s(69537),Ws=s(75558);const Ys=()=>{const e=(0,Ne.s0)(),t=(0,Te.v9)((e=>e.regexEditor.flavor)),s=(0,Te.v9)((e=>e.regexEditor.regex)),n=(0,Te.v9)((e=>e.regexEditor.error)),r=(0,Te.v9)((e=>e.regexEditor.showListSubstitutionArea)),a=(0,Te.v9)((e=>e.regexEditor.showUnitTestArea)),i=(0,Te.v9)((e=>e.settings.defaultCodeGenLanguage)),o=(0,Ee.useCallback)((n=>{n.stopPropagation(),""!==s&&e(`codegen?language=${i||(0,Ws.Wr)(t)}`)}),[s,i,t,e]),l=(0,Ee.useCallback)((t=>{t.stopPropagation(),""===s||n===yt.D9||a||e("debugger")}),[s,n,a,e]);return(0,Ee.useEffect)((()=>(Oe.ZP.on({"key:ctrlB":l,"key:ctrlG":o}),()=>{Oe.ZP.off({"key:ctrlB":l,"key:ctrlG":o})})),[l,o]),(0,Ve.jsxs)(xt.Z,{header:(0,Ae.Z)("Tools"),children:[(0,Ve.jsx)(_t,{icon:qs.xv9,isDisabled:""===s||r,to:`codegen?language=${i||(0,Ws.Wr)(t)}`,children:(0,Ae.Z)("Code Generator")}),(0,zs.G)(t)&&(0,Ve.jsx)(_t,{icon:Pe.RwU,isDisabled:""===s||n===yt.D9||a,to:"debugger",children:(0,Ae.Z)("Regex Debugger")})]})},Ks=()=>(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)($s,{}),(0,Ve.jsx)(jt,{}),(0,Ve.jsx)(Hs,{}),(0,Ve.jsx)(Ys,{})]});var Js=s(8193),Xs=s(45524);const Qs=["to","children","icon","isDisabled","isActive"],en=e=>{let t=e.to,s=e.children,n=e.icon,r=e.isDisabled,a=e.isActive,i=(0,E.Z)(e,Qs);const o=(0,Ne.bS)(t);return(0,Ve.jsx)(Et.Z,Object.assign(Object.assign({isDisabled:r},i),{},{children:(0,Ve.jsx)(Ie.rU,{tabIndex:r?-1:0,to:t,className:kt,noTheme:!0,children:(0,Ve.jsx)(Tt.Z,{icon:n,children:(0,Ve.jsx)(Xs.Z,{children:s,isActive:a||!!o})})})}))},tn=(0,Ee.memo)(en);var sn=s(27782),nn=s.n(sn);function rn(e){switch(e){case nn().MOST_RECENT:return(0,Ae.Z)("Most Recent");case nn().MOST_POINTS:return(0,Ae.Z)("Most Points");case nn().LEAST_POINTS:return(0,Ae.Z)("Fewest Points");case nn().RELEVANCE:return(0,Ae.Z)("Relevance");default:throw new Error(`Unknown order ${e}`)}}const an=[{flavor:x().PCRE2,string:"PCRE2"},{flavor:x().PCRE,string:"PCRE"},{flavor:x().JAVASCRIPT,string:"ECMAScript"},{flavor:x().PYTHON,string:"Python"},{flavor:x().GOLANG,string:"Golang"},{flavor:x().JAVA,string:"Java"},{flavor:x().DOTNET,string:".NET"}],on=e=>{switch(e){case nn().MOST_RECENT:return Js.dT6;case nn().MOST_POINTS:return Le.PNI;case nn().LEAST_POINTS:return Le.a7d;case nn().RELEVANCE:return Js.Ehc;default:throw new Error(`Unknown library sorting order "${e}"`)}},ln=()=>{const e=(0,ke.lr)(),t=(0,Re.Z)(e,1)[0],s=t.getAll("filterFlavors"),n=t.get("orderBy")||nn().MOST_RECENT,r=t.get("search")||"";return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(xt.Z,{header:(0,Ae.Z)("Order By"),className:vt,children:nn().all.filter((e=>!(e===nn().RELEVANCE&&0===r.length))).map((e=>(0,Ve.jsx)(tn,{to:`?${Ot.B({filterFlavors:s,search:r,orderBy:e},t)}`,isActive:n===e,icon:on(e),children:rn(e)},`library-order-menu-${e}`)))}),(0,Ve.jsx)(xt.Z,{header:(0,Ae.Z)("Filter by Flavor"),children:an.map((e=>{let a=[].concat(s);const i=a.includes(e.flavor);return i?a=a.filter((t=>t!==e.flavor)):a.push(e.flavor),(0,Ve.jsx)(tn,{icon:Pe.mV1,isActive:i,to:`?${Ot.B({search:r,orderBy:n,filterFlavors:a},t)}`,children:e.string},`library-flavor-${e.flavor}`)}))})]})},cn=()=>(0,Ve.jsxs)("div",{className:"sFanj",children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Settings")}),(0,Ve.jsxs)("div",{children:[(0,Ae.Z)("All settings to control the application are located here."),(0,Ve.jsx)("br",{}),(0,Ve.jsx)("br",{}),(0,Ae.Z)("They are automatically saved as you change them and will be automatically loaded every time.")]})]}),un=(0,Ee.memo)(cn);var dn=s(60155),hn=s(96881),pn=s.n(hn),gn=s(2636),mn=s.n(gn);const xn=[{string:"Google",icon:Pe.D27,to:"/connect/google"},{string:"Github",icon:Pe.q7V,to:"/connect/github"},{string:"Twitter",icon:Pe.x2F,to:"/connect/twitter"}],fn=({onModalClose:e,isOpen:t,returnTo:s="/account/all"})=>{const n=(0,Te.I0)(),r=(0,Ee.useCallback)((()=>n({type:h.xw})),[n]);return(0,Ve.jsxs)(Ye.Z,{onModalClose:e,isOpen:t,className:"dyCRh",children:[(0,Ve.jsx)(Ke.Z,{children:(0,Ae.Z)("Sign In")}),(0,Ve.jsxs)(Je.Z,{className:"HLkfc",children:[(0,Ve.jsx)(xt.Z,{header:(0,Ae.Z)("Select a service provider"),className:"gT9Zk",children:xn.map((e=>(0,Ve.jsx)(_t,{to:`${e.to}?returnTo=${s}`,icon:e.icon,onClick:r,absolute:!0,children:e.string},`provider-${e.string}`)))}),(0,Ve.jsxs)("div",{className:"gYcOc",children:[(0,Ve.jsx)(Ie.qX,{noMargin:!0,children:(0,Ae.Z)("Only the bare minimum information is retrieved and saved in order to identify your account.")}),(0,Ve.jsx)(Ie.qX,{noMargin:!0,type:He.gr.u_,children:(0,Ae.Z)("Note that clicking any of the links above will refresh the page. Your data will be saved to local storage and restored once you return to the website.")})]})]}),(0,Ve.jsx)(Xe.Z,{children:(0,Ve.jsx)(Ie.zx,{text:(0,Ae.Z)("Close"),onClick:e,type:He.V5.n1})})]})},vn=()=>{const e=(0,Te.v9)((e=>e.account.allTags)),t=(0,Te.v9)((e=>e.account.staleData));return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Tags")}),t?(0,Ve.jsx)(Ie.$j,{size:He.J7.TC,style:{margin:"0 auto"}}):(0,Ve.jsx)(Ut,{tags:e,clickable:!0})]})},bn=({title:e,children:t,onModalClose:s,isOpen:n,onConfirmClick:r,confirmText:a=(0,Ae.Z)("Ok"),isDanger:i,isLoading:o,className:l,disabled:c})=>(0,Ve.jsxs)(Ye.Z,{onModalClose:s,isOpen:n,className:_e()("LZ_87",l),isLoading:o,children:[(0,Ve.jsx)(Ke.Z,{className:"CrJ1q",children:e}),(0,Ve.jsx)(Je.Z,{className:"EgtQt",children:t}),(0,Ve.jsxs)(Xe.Z,{children:[(0,Ve.jsx)(Ie.zx,{text:a,onClick:r,style:{marginRight:10},type:i?He.V5.T:He.V5.OK,disabled:c||o}),(0,Ve.jsx)(Ie.zx,{text:(0,Ae.Z)("Close"),onClick:s,type:He.V5.n1,disabled:o})]})]}),jn="qxoBe";function Cn(e){switch(e){case mn().GOOGLE:return Pe.D27;case mn().TWITTER:return Pe.x2F;case mn().GITHUB:return Pe.q7V;default:throw new Error("Unknown service provider "+e)}}const Zn=()=>{const e=(0,Te.v9)((e=>e.general.userId)),t=(0,Te.v9)((e=>e.general.email)),s=(0,Te.v9)((e=>e.general.serviceProvider)),n=(0,Ee.useState)(!1),r=(0,Re.Z)(n,2),a=r[0],i=r[1],o=(0,Ee.useState)(!1),l=(0,Re.Z)(o,2),c=l[0],u=l[1],d=(0,Ee.useState)(!1),h=(0,Re.Z)(d,2),p=h[0],g=h[1],m=(0,Ee.useCallback)((()=>i(!0)),[]),x=(0,Ee.useCallback)((()=>u(!0)),[]),f=(0,Ee.useCallback)((()=>{i(!1),u(!1)}),[]),v=(0,Ee.useCallback)((async()=>{g(!0);try{await fetch("/api/user/",{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}})}finally{window.location.href="/account"}}),[]),b=[{string:(0,Ae.Z)("My Expressions"),icon:Pe.U$J,scope:pn().MINE},{string:(0,Ae.Z)("My Favorites"),icon:Pe.iB2,scope:pn().FAVORITES},{string:(0,Ae.Z)("My Library Entries"),icon:dn.Q0w,scope:pn().LIBRARY}];return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsxs)(xt.Z,{header:(0,Ae.Z)("Control"),className:jn,children:[null==e&&(0,Ve.jsx)(wt.Z,{onClick:m,icon:Pe.yrM,children:(0,Ae.Z)("Sign In")}),null!=e&&null!=t&&null!=s&&(0,Ve.jsx)(wt.Z,{className:"Hp8EU",icon:Cn(s),isDisabled:!0,children:t}),null!=e&&(0,Ve.jsx)(wt.Z,{icon:Pe.Xgw,className:"VsHye",onClick:x,children:(0,Ae.Z)("Delete account")}),null!=e&&(0,Ve.jsx)(_t,{to:"/login/destroy",absolute:!0,icon:Pe.Xgw,children:(0,Ae.Z)("Sign out")})]}),null!=e&&(0,Ve.jsx)(xt.Z,{header:(0,Ae.Z)("Category"),className:jn,children:b.map((e=>(0,Ve.jsx)(tn,{to:`/account/${e.scope}`,icon:e.icon,children:e.string},`account-category-${e.scope}`)))}),null!=e&&(0,Ve.jsx)(vn,{}),(0,Ve.jsx)(fn,{onModalClose:f,isOpen:a}),(0,Ve.jsx)(bn,{onModalClose:f,title:(0,Ae.Z)("Delete Account and Data"),isLoading:p,isOpen:c,onConfirmClick:v,isDanger:!0,confirmText:(0,Ae.Z)("Yes, delete everything"),children:(0,Ve.jsxs)("div",{className:"hvqpn",children:[(0,Ve.jsx)("strong",{children:(0,Ae.Z)("Are you sure you want to delete your account?")}),(0,Ve.jsx)("div",{children:(0,Ae.Z)("All associated data with your account will be permanently deleted, such as your saved expressions, your library entries, and your quiz progression.")}),(0,Ve.jsx)(Ie.qX,{type:He.gr.pn,className:"A9fBo",children:(0,Ae.Z)("Your data can never be recovered again!")})]})})]})},yn="zcg3R",En=()=>null==(0,Te.v9)((e=>e.general.userId))?null:(0,Ve.jsxs)(xt.Z,{header:(0,Ae.Z)("Tasks"),className:yn,children:[(0,Ve.jsx)(tn,{icon:Pe.iB2,to:"/quiz",children:(0,Ae.Z)("Introduction")}),(0,Ve.jsx)(Tn,{})]}),Tn=()=>{const e=(0,Te.v9)((e=>e.general.userId)),t=(0,Te.v9)((e=>e.quiz.allTasks)),s=(0,we.$5)("getQuizTasks"),n=(0,Re.Z)(s,3),r=n[0],a=n[1],i=n[2];return(0,we.DB)((()=>{e&&0===t.length&&i((0,X.Ak)())}),[i,t.length,e]),null==e?null:r?(0,Ve.jsx)(Ie.$j,{size:He.J7.TC,className:"upLOL"}):a?(0,Ve.jsx)(Ie.qX,{type:He.gr.pn,className:"UPygB",children:(0,Ae.Z)("There was an error fetching the quiz data. Please try again later.")}):t.map(((e,t)=>{const s=t+1;return(0,Ve.jsxs)(tn,{icon:Pe.XBp,to:`/quiz/${s}`,isDisabled:!e.canSolve,children:[s,". ",e.title," ",e.isOptional&&`(${(0,Ae.Z)("optional")})`]},`task-${e.taskNumber}`)}))},kn=()=>{const e=(0,Ee.useState)(!1),t=(0,Re.Z)(e,2),s=t[0],n=t[1],r=(0,Te.v9)((e=>e.general.userId)),a=(0,Ee.useCallback)((()=>n(!0)),[]),i=(0,Ee.useCallback)((()=>n(!1)),[]);return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(En,{}),(0,Ve.jsxs)(xt.Z,{header:(0,Ae.Z)("Control"),className:yn,children:[null==r&&(0,Ve.jsx)(wt.Z,{onClick:a,icon:Pe.yrM,children:(0,Ae.Z)("Sign In")}),null!=r&&(0,Ve.jsx)(_t,{to:"/login/destroy",absolute:!0,icon:Pe.Xgw,children:(0,Ae.Z)("Sign out")})]}),(0,Ve.jsx)(fn,{onModalClose:i,isOpen:s,returnTo:"/quiz"})]})};var Nn=s(70666);const Sn="VUMXN",_n="WIk_o",wn=(0,lt.Z)(ct.K0),An={appear:Sn,appearActive:_n,enter:Sn,enterActive:_n,exit:"gGhok",exitActive:"cQ7Yd"},On=({children:e,className:t})=>{const s=Ee.Children.toArray(e),n=(0,Ee.useState)((o=s.length,Math.floor(Math.random()*o))),r=(0,Re.Z)(n,2),a=r[0],i=r[1];var o;return(0,Ee.useEffect)((()=>{let e;return s.length>1&&(e=setTimeout((()=>i((a+1)%s.length)),3e4)),()=>clearTimeout(e)}),[a,s.length]),(0,Ve.jsx)(Nn.Z,{children:(0,Ve.jsx)(Ie.uT,{in:!0,classNames:An,className:_e()("byHyj",t),timeout:wn,children:s[a]},`carousel-child-${a}`)})},In="jyUE5",Rn="M4byA",Pn="tSxrO",Ln=({className:e})=>{var t;const s=(0,Ee.useState)(!1),n=(0,Re.Z)(s,2),r=n[0],a=n[1],i=(0,Te.v9)((e=>e.general.sponsorData)),o=(0,Ee.useCallback)((()=>gt("Click Sponsor",{props:{sponsor:"doppler"}})),[]),l=(0,Ee.useCallback)((()=>gt("Click Sponsor",{props:{sponsor:"carbon"}})),[]),c=(0,Ee.useCallback)((()=>a(!0)),[]),u=(0,Ee.useCallback)((()=>a(!1)),[]),d=null==i?void 0:i.statlink,h=null==i?void 0:i.adBlock,p=null==i&&!h;return h?(0,Ve.jsxs)("div",{className:_e()(In,e),children:[(0,Ve.jsx)("div",{className:Rn,children:(0,Ve.jsx)("div",{className:Pn,children:(0,Ae.Z)("Please support regex101")})}),(0,Ve.jsx)("div",{className:"_gHmG",children:(0,Ve.jsxs)(Ie.qX,{noMargin:!0,children:[(0,Ae.Z)("If you're running an ad blocker, consider whitelisting regex101 to support the website.")," ",(0,Ve.jsx)(Ie.Yd,{onClick:c,className:"Q1PRl",children:(0,Ae.Z)("Read more")}),"."]})}),(0,Ve.jsxs)(Ye.Z,{isOpen:r,onModalClose:u,className:"sM6Wv",children:[(0,Ve.jsx)(Ke.Z,{children:(0,Ae.Z)("Advertisements and your privacy")}),(0,Ve.jsxs)(Je.Z,{className:"hv1JN",children:[(0,Ve.jsxs)("p",{children:[(0,Ae.Z)("The advertisements are provided by Carbon, but implemented by regex101."),(0,Ve.jsx)("br",{}),(0,Ve.jsx)("strong",{children:(0,Ae.Z)("No cookies will be used for tracking and no third party scripts will be loaded.")})]}),(0,Ve.jsx)(Ie.vV,{text:"The information is fetched using a JSONP request, which contains the ad text and a link to the ad image. The JSON file and images are fetched from {1} or {2}.",ph1:(0,Ve.jsx)("em",{children:"buysellads.com"}),ph2:(0,Ve.jsx)("em",{children:"buysellads.net"}),tag:"p"}),(0,Ve.jsx)(Ie.vV,{text:"If you have any questions or concerns, please feel free to {1}.",ph1:(0,Ve.jsx)(Ie.rU,{to:"mailto:contact@regex101.com",absolute:!0,children:(0,Ae.Z)("send an email")}),tag:"p"})]}),(0,Ve.jsx)(Xe.Z,{children:(0,Ve.jsx)(Ie.zx,{onClick:u,text:(0,Ae.Z)("Close"),type:He.V5.n1})})]})]}):(0,Ve.jsxs)("div",{className:_e()(In,e),children:[(0,Ve.jsx)("div",{className:Rn,children:(0,Ve.jsx)("div",{className:Pn,children:(0,Ae.Z)("Sponsors")})}),(0,Ve.jsx)("div",{className:"Di8kW",children:(0,Ve.jsx)(On,{children:(0,Ve.jsxs)(Ie.rU,{className:"duRSK",to:"https://www.doppler.com/?utm_campaign=github_repo&utm_medium=referral&utm_content=regex101&utm_source=github",onClick:o,onAuxClick:o,target:"_blank",rel:"nofollow noopener",absolute:!0,children:[(0,Ve.jsx)("div",{className:"RhnCb"}),"All your environment variables, in one place"]})})}),d&&(0,Ve.jsxs)("div",{className:"G3BCS",children:[(0,Ve.jsxs)(Ie.rU,{className:"Ct5Li",to:`${i.statlink}?segment=placement:regex101com`,rel:"nofollow noopener",onClick:l,onAuxClick:l,target:"_blank",absolute:!0,children:[(0,Ve.jsx)("img",{src:i.smallImage,width:120,height:90,loading:"lazy",alt:i.description,children:i.title}),(0,Ve.jsx)("div",{className:"tgFFz",children:i.description}),null==(t=i.pixel)?void 0:t.split("||").map(((e,t)=>(0,Ve.jsx)("img",{src:e.replace("[timestamp]",i.timestamp),style:{display:"none"},height:0,width:0,alt:"",fetchpriority:"low"},`pixel-${t}`)))]}),(0,Ve.jsx)(Ie.rU,{to:i.ad_via_link,className:"JLQ9d",rel:"nofollow noopener",target:"_blank",absolute:!0,children:"Ads via Carbon"})]}),p&&(0,Ve.jsxs)("div",{className:"EJDHZ",children:[(0,Ve.jsx)("div",{className:"k0UBc"}),(0,Ve.jsxs)("div",{className:"IAz16",children:[(0,Ve.jsx)("div",{}),(0,Ve.jsx)("div",{}),(0,Ve.jsx)("div",{})]})]})]})},Mn=(0,Ee.memo)(Ln),Dn="regex101-nickname",Un="_eLp0",Fn="zOliV",Gn=34,Vn=({className:e})=>{const t=(0,Te.v9)((e=>e.general.permalinkFragment)),s=(0,Te.v9)((e=>e.general.version)),n=(0,Te.v9)((e=>e.general.profilePicture)),r=(0,Ee.useRef)(function(){let e=ee.Z.get(Dn);return(!e||"string"!=typeof e||e.length>16||e.includes("..."))&&(e=function(){const e=["Adelie","Hound","Civet","Ainu","Akbash","Akita","Ant","Fox","Hare","Wolf","Mist","Avocet","Baboon","Camel","Badger","Barb","Bat","Beagle","Bear","Collie","Beaver","Beetle","Bichon","Bird","Birman","Bison","Bobcat","Bombay","Bongo","Bonobo","Booby","Boykin","Budgie","Fish","Caiman","Lizard","Canaan","Cat","Cesky","Fousek","Coati","Coral","Cougar","Cow","Coyote","Crab","Crane","Cuscus","Frog","Deer","Bracke","Dhole","Dingo","Discus","Dodo","Dog","Dogo","Donkey","Drever","Duck","Dugong","Dunker","Dusky","Eagle","Mau","Emu","Falcon","Fennec","Ferret","Spitz","Fly","Fossa","Gar","Gecko","Gerbil","Gibbon","Goat","Oriole","Goose","Gopher","Grouse","Guppy","Shark","Heron","Horse","Human","Hyena","Ibis","Iguana","Impala","Indri","Insect","Setter","Jackal","Jaguar","Kakapo","Kiwi","Koala","Kudu","Lemur","Liger","Lion","Llama","Owl","Lynx","Macaw","Magpie","Mayfly","Mole","Molly","Monkey","Moose","Eel","Moray","Moth","Mouse","Mule","Newt","Numbat","Ocelot","Okapi","Olm","Otter","Oyster","Parrot","Pig","Pika","Pike","Poodle","Possum","Prawn","Puffin","Pug","Puma","Pygmy","Quail","Quokka","Quoll","Rabbit","Rat","Robin","Saola","Seal","Serval","Sheep","Shrimp","Skunk","Sloth","Snail","Snake","Somali","Sponge","Squid","Stoat","Swan","Tang","Tapir","Tetra","Tiger","Toucan","Turkey","Uakari","Uguisu","Walrus","Wasp","Weasel","Wombat","Wrasse","Yak","Yorkie","Zebra","Zebu","Zonkey","Zorse"];return`re101-${e[Math.floor(Math.random()*e.length)].toLowerCase()}-?`}(),ee.Z.save(Dn,e)),e}()||"re101-guest-?").current,a=(0,Ee.useCallback)((()=>{Oe.ZP.emit(Oe.Rd)}),[]);return(0,Ve.jsxs)("nav",{className:_e()("uOmOI",e),children:[(0,Ve.jsx)(Ie.x6,{tooltip:(0,Ae.Z)("Regex Editor"),tooltipDirection:He.qF.E,to:null!=t?At(t,s):"/",onClick:a,size:Gn,className:Un,activeClassName:Fn,activeRegex:/^\/(?!library|account|quiz|settings)/i,noTheme:!0,children:(0,Ve.jsx)(Pe.mV1,{size:18})}),(0,Ve.jsx)(Ie.x6,{tooltip:(0,Ae.Z)("Regex Library"),tooltipDirection:He.qF.E,to:"/library",onClick:a,size:Gn,className:Un,activeClassName:Fn,activeRegex:/^\/library/i,noTheme:!0,children:(0,Ve.jsx)(dn.Q0w,{size:18})}),(0,Ve.jsx)(Ie.x6,{tooltip:(0,Ae.Z)("Account"),tooltipDirection:He.qF.E,to:"/account/mine",onClick:a,size:Gn,className:n?"eDcsT":Un,activeClassName:Fn,activeRegex:/^\/account/i,noTheme:!0,children:n?(0,Ve.jsx)("img",{src:n,style:{height:Gn,width:Gn},alt:""}):(0,Ve.jsx)(Pe.dgb,{size:18})}),(0,Ve.jsx)(Ie.x6,{tooltip:(0,Ae.Z)("Regex Quiz"),tooltipDirection:He.qF.E,to:"/quiz",onClick:a,size:Gn,className:Un,activeClassName:Fn,activeRegex:/^\/quiz/i,noTheme:!0,children:(0,Ve.jsx)(Pe.Xhu,{size:18})}),(0,Ve.jsx)(Ie.x6,{tooltip:(0,Ae.Z)("Settings"),tooltipDirection:He.qF.E,to:"/settings",onClick:a,size:Gn,className:Un,activeClassName:Fn,activeRegex:/^\/settings/i,noTheme:!0,children:(0,Ve.jsx)(Me.b9P,{size:18})}),(0,Ve.jsx)(Ie.x6,{tooltip:(0,Ae.Z)("Live Help"),tooltipDirection:He.qF.E,to:R.WEBCHAT_LINK.replace("<NICKNAME>",r),target:"_blank",size:Gn,className:Un,noTheme:!0,absolute:!0,children:(0,Ve.jsx)(Pe.IGw,{})})]})},Bn=["tooltipDirection","tooltipText","onClick","className"],$n=e=>{let t=e.tooltipDirection,s=e.tooltipText,n=e.onClick,r=e.className,a=(0,E.Z)(e,Bn);return(0,Ve.jsx)(Ie.hU,Object.assign(Object.assign({tooltip:s,tooltipDirection:t,size:28,onClick:n,className:_e()("k3zrI",r),tag:"div"},a),{},{children:(0,Ve.jsx)("div",{className:"_wt32",children:(0,Ve.jsx)(Pe.B4m,{size:16,className:"wL3Ov"})})}))},Hn=(0,Ee.memo)($n),qn=["onClick"],zn=(0,lt.Z)(ct.s_),Wn=["key:updateRegex","key:saveRegex","key:ctrl1","key:ctrl2","key:ctrl3","key:ctrl4","key:ctrlB","key:ctrlG"],Yn=e=>{let t=e.onClick,s=(0,E.Z)(e,qn);return(0,Ee.useEffect)((()=>{const e=Wn.map((e=>{const s=(e=>(...s)=>{t(),setTimeout((()=>{Oe.ZP.listenerCount(e)>1&&Oe.ZP.emit(e,...s)}),zn)})(e);return Oe.ZP.on(e,s),{key:e,listener:s}}));return()=>e.forEach((({key:e,listener:t})=>Oe.ZP.off(e,t)))}),[t]),(0,Ve.jsx)(Hn,Object.assign({onClick:t},s))},Kn="MPQtP",Jn="XZcdB",Xn="Hf3vu",Qn=(0,lt.Z)(ct.s_),er={appear:Jn,appearActive:Xn,enter:Jn,enterActive:Xn,exit:"LSp5h",exitActive:"rMyiN"},tr=({children:e})=>{const t=(0,Ee.useState)(!1),s=(0,Re.Z)(t,2),n=s[0],r=s[1],a=(0,Ee.useCallback)((e=>{e.stopPropagation(),r(!1)}),[]),i=(0,Ee.useCallback)((()=>r(!0)),[]),o=(0,Ee.useCallback)((e=>{e.stopPropagation(),e.preventDefault()}),[]);return(0,Ee.useEffect)((()=>(n&&(Oe.ZP.once("key:escape",a),Oe.ZP.once(Oe.Rd,a)),()=>{Oe.ZP.off("key:escape",a),Oe.ZP.off(Oe.Rd,a)})),[n,a]),(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)(Yn,{className:"SjbhX",tooltipDirection:He.qF.SE,tooltipText:(0,Ae.Z)("Show Sidebar"),onClick:i}),(0,Ve.jsx)(Ie.h_,{isOpen:n,closeTimeout:Qn,children:(0,Ve.jsx)(Ie.uT,{className:"cek5f",classNames:er,timeout:Qn,in:n,onMouseUp:a,children:(0,Ve.jsx)(Ie.iQ,{children:(0,Ve.jsxs)("div",{className:Kn,onMouseUp:o,children:[(0,Ve.jsx)($e,{className:"cfODq",noClick:!0}),e]})})})})]})},sr=parseFloat(Ue.p4),nr=({alwaysCollapseLeftSidebar:e})=>{const t=(0,we.Sj)(sr),s=(0,Ee.useState)(!se()||window.navigator.onLine),n=(0,Re.Z)(s,2),r=n[0],a=n[1];(0,Ee.useEffect)((()=>{const e=()=>a(!0),t=()=>a(!1);return window.addEventListener("online",e),window.addEventListener("offline",t),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",t)}}),[]);const i=(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsxs)("div",{className:"AkJag",children:[(0,Ve.jsx)(Vn,{className:"i1N2B"}),(0,Ve.jsx)("div",{className:"hIvL6",children:(0,Ve.jsxs)(Ne.Z5,{children:[(0,Ve.jsx)(Ne.AW,{path:"library/*",element:(0,Ve.jsx)(ln,{})}),(0,Ve.jsx)(Ne.AW,{path:"/settings/*",element:(0,Ve.jsx)(un,{})}),(0,Ve.jsx)(Ne.AW,{path:"/quiz/*",element:(0,Ve.jsx)(kn,{})}),(0,Ve.jsx)(Ne.AW,{path:"/account/*",element:(0,Ve.jsx)(Zn,{})}),(0,Ve.jsx)(Ne.AW,{path:"/r/:permalinkFragment/:version/*",element:(0,Ve.jsx)(Ks,{})}),(0,Ve.jsx)(Ne.AW,{path:"/*",element:(0,Ve.jsx)(Ks,{})})]})})]}),(0,Ve.jsx)(Mn,{className:"XNbml"}),!r&&(0,Ve.jsx)(Ie.qX,{type:He.gr.pn,className:"ELopF",children:(0,Ae.Z)("No Internet Connection")})]});return e||t.width<=sr?(0,Ve.jsx)(tr,{children:i}):(0,Ve.jsx)("div",{className:Kn,children:i})};var rr=s(3641);const ar=se()?(0,Ee.lazy)((()=>Promise.all([s.e(648),s.e(961)]).then(s.bind(s,81623)))):()=>{},ir=()=>{const e=(0,Te.v9)((e=>e.regexEditor.regex)),t=(0,Te.v9)((e=>e.regexEditor.flags)),s=(0,Te.v9)((e=>e.regexEditor.delimiter)),n=(0,Te.v9)((e=>e.regexEditor.testString)),r=(0,Te.v9)((e=>e.regexEditor.showSubstitutionArea||e.regexEditor.showListSubstitutionArea)),a=(0,Te.v9)((e=>e.regexEditor.substString)),i=(0,Te.v9)((e=>e.regexEditor.flavor)),o=(0,ke.lr)({language:Ws.aQ}),l=(0,Re.Z)(o,1)[0];if(!e)return(0,Ve.jsx)(Ie.l_,{to:"/"});const c=l.get("language"),u=Ws.vI.find((e=>e.value===c))||Ws.vI[0],d=(0,Ve.jsxs)("div",{className:"KRaGv",children:[(0,Ve.jsx)(Ie.$j,{className:"cvoeF",size:He.J7.TC}),(0,Ae.Z)("Loading code sample...")]});return(0,Ve.jsxs)("div",{className:"zOaGx",children:[(0,Ve.jsxs)("div",{className:"vkmye",children:[(0,Ve.jsx)(Ie.gx,{header:(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Language")}),className:"kolUL",children:(0,Ve.jsx)(xt.Z,{children:Ws.vI.map((e=>(0,Ve.jsx)(tn,{isActive:e.value===u.value,icon:Pe.mV1,to:`?language=${e.value}`,children:e.string},`codegen-${e.value}`)))})}),(0,Ve.jsx)(Ie.gx,{header:(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Generated Code")}),className:"EHsbj",children:(0,Ve.jsx)(rr.Z,{className:"tu4NX",children:(0,Ve.jsx)(Ie.I2,{fallback:d,children:(0,Ve.jsx)(ar,{regex:e,flags:t,delimiter:s,testString:n,isSubstituting:r,substString:a,flavor:i,isGlobal:t.includes("g"),language:u.value})})})})]}),(0,Ve.jsx)(Ie.qX,{className:"UB_yQ",children:(0,Ve.jsxs)("p",{children:[(0,Ae.Z)("Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report.")," ",(0,Ae.Z)("For a full regex reference for {1}, please visit:",u.string)," ",(0,Ve.jsx)(Ie.rU,{to:u.referencePage,absolute:!0,target:"_blank",children:u.referencePage})]})})]})},or=se()?(0,Ee.lazy)((()=>s.e(153).then(s.bind(s,4758)))):()=>{},lr=()=>{const e=(0,Ne.UO)(),t=e.permalinkFragment,s=e.version,n=(0,ke.lr)(),r=(0,Re.Z)(n,1)[0].get("testId"),a=(0,Te.v9)((e=>e.regexEditor.showUnitTestArea)),i=(0,Te.v9)((e=>isNaN(r)?null:e.unitTests.tests[r])),o=(0,Te.v9)((e=>e.regexEditor.regex)),l=(0,Te.v9)((e=>e.regexEditor.delimiter)),c=(0,Te.v9)((e=>e.regexEditor.flags)),u=(0,Te.v9)((e=>e.regexEditor.testString)),d=(0,Te.v9)((e=>e.regexEditor.flavor));if(!(0,zs.G)(d)||""===o||a&&null==i){const e=null!=t?`/r/${t}/${s}`:"/";return(0,Ve.jsx)(Ie.l_,{to:e})}const h=(0,Ve.jsxs)("div",{className:"pWsZe",children:[(0,Ve.jsx)(Ie.$j,{className:"q_luf"}),(0,Ve.jsx)("div",{className:"_6fv9",children:(0,Ae.Z)("Please wait while your expression is being debugged...")})]});return(0,Ve.jsx)(Ie.I2,{fallback:h,errorClassName:"LeB5S",children:(0,Ve.jsx)(or,{regex:o,flags:c,testString:(null==i?void 0:i.testString)||u,flavor:d,delimiter:l})})};var cr=s(17159),ur=s(12599),dr=s(34061),hr=s(84682);const pr="luWMx",gr="xYbLs",mr=(0,lt.Z)(ct.oA),xr={appear:pr,appearActive:gr,enter:pr,enterActive:gr,exit:"d0ccR",exitActive:"CZqGt"},fr=({children:e,title:t,preserveLocation:s,location:n})=>{const r=(0,Ne.s0)(),a=(0,we.PS)(),i=(0,Ee.useMemo)((()=>{const e=(0,ur.i3)("..",n.pathname);return s?Object.assign(Object.assign({},n),{},{pathname:e.pathname}):e}),[n,s]),o=(0,Ee.useCallback)((e=>{e.stopPropagation(),r(i)}),[r,i]);(0,Ee.useEffect)((()=>(Oe.ZP.once("key:escape",o),Oe.ZP.emit(Oe.B3,Zt.UPDATE_REGEX),Oe.ZP.emit(Oe.B3,Zt.SAVE_REGEX),()=>{Oe.ZP.off("key:escape",o),Oe.ZP.emit(Oe.LG,Zt.UPDATE_REGEX),Oe.ZP.emit(Oe.LG,Zt.SAVE_REGEX)})),[o]);const l=(0,Ee.useCallback)((e=>e.stopPropagation()),[]);return(0,Ve.jsx)(Ie.iQ,{children:(0,Ve.jsx)("div",{className:_e()("FAEdS",a&&hr.Z.reduceMotion),onClick:o,children:(0,Ve.jsx)("div",{className:"oc96W",children:(0,Ve.jsxs)("div",{className:"Q0dmP",onClick:l,children:[(0,Ve.jsxs)("div",{className:"OaNsb",children:[(0,Ve.jsx)("h1",{children:t}),(0,Ve.jsx)(Ie.Yd,{className:"MGagp",onClick:o,"aria-label":(0,Ae.Z)("Close"),children:(0,Ve.jsx)(Pe.eSQ,{size:24,className:"e1IQs"})})]}),(0,Ve.jsx)("div",{className:"wy53k",children:e})]})})})})},vr=({children:e,title:t,preserveLocation:s=!1,path:n})=>{const r=(0,Ne.TH)(),a=(0,we.PS)();return(0,Ve.jsx)(Ie.h_,{isOpen:!0,closeTimeout:mr,children:(0,Ve.jsx)(Nn.Z,{component:null,children:(0,Ve.jsx)(cr.Z,{classNames:a?dr.$0:xr,timeout:a?dr.mc:mr,children:(0,Ve.jsx)(Ne.Z5,{location:r,children:(0,Ve.jsx)(Ne.AW,{path:n,element:(0,Ve.jsx)(fr,{children:e,title:t,preserveLocation:s,location:r})})})},r.pathname)})})},br=()=>{const e=(0,Ne.UO)().permalinkFragment,t=(0,Te.v9)((e=>e.regexEditor.regexVersions)),s=(0,we.$5)("getRegexVersions"),n=(0,Re.Z)(s,3),r=n[0],a=n[1],i=n[2];if((0,we.DB)((()=>{i((0,X.zp)(e))}),[e]),r)return null;if(a)return(0,Ve.jsx)(Ie.l_,{to:"/"});const o=t[t.length-1];return(0,Ve.jsx)(Ie.l_,{to:`/r/${e}/${o}`})};var jr=s(20946);const Cr="PngQi",Zr=({onResize:e,className:t})=>{const s=(0,Ee.useState)(!1),n=(0,Re.Z)(s,2),r=n[0],a=n[1],i=(0,Ee.useState)(0),o=(0,Re.Z)(i,2),l=o[0],c=o[1],u=(0,Ee.useState)(0),d=(0,Re.Z)(u,2),h=d[0],p=d[1],g=(0,Ee.useCallback)((e=>{a(!0),c(e.clientX),p(e.clientY)}),[]);return(0,Ee.useEffect)((()=>{const t=t=>e({x:t.clientX,y:t.clientY,dx:Math.abs(l-t.clientX),dy:Math.abs(h-t.clientY)}),s=()=>{document.body.classList.remove(Cr),window.removeEventListener("mouseup",s,{passive:!0}),window.removeEventListener("mousemove",t,{passive:!0}),a(!1)};return r&&(document.body.classList.add(Cr),window.addEventListener("mouseup",s,{passive:!0}),window.addEventListener("mousemove",t,{passive:!0})),()=>{document.body.classList.remove(Cr),window.removeEventListener("mouseup",s,{passive:!0}),window.removeEventListener("mousemove",t,{passive:!0})}}),[r,e,l,h]),(0,Ve.jsx)("div",{className:_e()("Kmeux",t),onMouseDown:g})},yr=(0,Ee.memo)(Zr),Er=({children:e})=>{const t=(0,Te.I0)(),s=(0,Te.v9)((e=>e.rightSidebar.width)),n=(0,Ee.useState)(s),r=(0,Re.Z)(n,2),a=r[0],i=r[1],o=(0,Ee.useRef)(null),l=(0,jr.Z)((e=>{t((0,X.Gj)(e)),t((0,X.Ot)()),i(e)}),R.UPDATE_RESULT_DELAY),c=(0,Ee.useCallback)((e=>{var t;Oe.ZP.emit(Oe.UJ);const s=window.innerWidth-e.x;l(s),null!=(t=o.current)&&t.style&&(o.current.style.width=`${s}px`)}),[l]);return(0,Ee.useEffect)((()=>()=>l.cancel()),[l]),(0,Ve.jsxs)("div",{className:"IPjTl",style:{width:`${a}px`},ref:o,children:[(0,Ve.jsx)(yr,{className:"RyQaE",onResize:c}),e]})},Tr=["className","nodeLabel","children","defaultCollapsed","onClick"],kr=e=>{let t=e.className,s=e.nodeLabel,n=e.children,r=e.defaultCollapsed,a=void 0!==r&&r,i=e.onClick,o=(0,E.Z)(e,Tr);const l=(0,Ee.useState)(a),c=(0,Re.Z)(l,2),u=c[0],d=c[1],h=(0,Ee.useCallback)(((...e)=>{d((e=>!e)),i&&i(...e)}),[i]);return(0,Ve.jsxs)("div",Object.assign(Object.assign({className:_e()("UHIuh",t),onClick:i},o),{},{children:[(0,Ve.jsxs)("div",{className:"eZsI3",children:[(0,Ve.jsx)(Ie.Yd,{className:"ng0cj",onClick:h,"aria-label":u?(0,Ae.Z)("Expand Subtree"):(0,Ae.Z)("Collapse Subtree"),children:(0,Ve.jsx)("div",{className:_e()("NjK4I",u&&"qtFSJ")})}),s]}),!u&&(0,Ve.jsx)("div",{className:"UF5u5",children:n})]}))};var Nr=s(30317),Sr=s(56468),_r=s(31360),wr=s(68417);const Ar=e=>(0,Ve.jsx)("span",{className:wr.Z.tokenSample,children:(0,Ve.jsx)(Ie.K,{text:e})}),Or=e=>(0,Ve.jsx)("span",{className:wr.Z.keyword,children:e}),Ir=e=>(0,Ve.jsx)("span",{className:wr.Z.plainText,children:(0,Ve.jsx)(Ie.K,{text:e,removeNewlines:!0})}),Rr=e=>(0,Ve.jsx)(Ie.qX,{type:He.gr.u_,children:e?(0,Ae.Z)("This modifier may not be supported in all browsers"):(0,Ae.Z)("This construct may not be supported in all browsers")});function Pr(e){return e.map(((e,t)=>e.error?(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("span",{className:_e()(wr.Z.token,e.style),children:e.string})," ",Lr(e.error)]},`error-explanation-${t}`):null))}function Lr(e){switch(e){case _r.CL:return(0,Ae.Z)("Incomplete group structure");case _r.Xu:return(0,Ae.Z)("The condition is invalid (you may be referencing a non-existent subpattern or group)");case _r.wi:return(0,Ae.Z)("A subpattern name must be unique");case _r.kU:return(0,Ae.Z)("Bad subpattern name. Ensure it is alpha numeric and does not begin with a digit");case _r.cs:return(0,Ae.Z)("There are too many alternatives within the parent structure");case _r.gN:return(0,Ae.Z)("This verb is unknown or invalid");case _r.As:return(0,Ae.Z)("This verb must be placed at the start of the regex");case _r.Bj:return(0,Ae.Z)("This token references a non-existent or invalid subpattern");case _r.RY:return(0,Ae.Z)("The preceding token is not quantifiable");case _r.Hh:return(0,Ae.Z)("The quantifier range is out of order");case _r.sw:return(0,Ae.Z)("Character class missing closing bracket");case _r.i0:return(0,Ae.Z)("Character range is out of order");case _r.fA:return(0,Ae.Z)("A posix character class may only appear inside a character class");case _r.VM:return(0,Ae.Z)("The posix class is unknown/invalid");case _r.RH:return(0,Ae.Z)("This token is either not supported by the selected flavor or by regex101");case _r.zX:return(0,Ae.Z)("Pattern may not end with a trailing backslash");case _r.t0:return(0,Ve.jsx)(Ie.vV,{text:"An unescaped delimiter must be escaped; in most languages with a backslash ({1})",ph1:Ar("\\")});case _r.Yo:return(0,Ae.Z)("No hex code was specified");case _r.y1:return(0,Ae.Z)("The character offset is too large");case _r.oH:return(0,Ae.Z)("Surrogate in unicode/hex escape is disallowed");case _r.Rf:return(0,Ae.Z)("The value specified is too large");case _r.XD:return(0,Ae.Z)("A quote without content has ambiguous behavior and should be avoided");case _r.YY:return(0,Ae.Z)("The token is incomplete");case _r.xi:return(0,Ae.Z)("This script is unknown/invalid");case _r.Iu:return(0,Ae.Z)("Invalid control character");case _r.mi:return(0,Ae.Z)("This token has no special meaning and has thus been rendered erroneous");case _r.bk:return(0,Ae.Z)("The name of this subpattern is too long");case _r.eB:return(0,Ae.Z)("A lookbehind assertion has to be fixed width");case _r.jV:return(0,Ae.Z)("This token can not be used in a lookaround due to either making it non-fixed width or interfering with the pattern matching");case _r.Cc:return(0,Ae.Z)("A quantifier inside a lookbehind makes it non-fixed width");case _r.M3:return(0,Ae.Z)("Regex101 only supports inline modifiers to be placed at the start of the regex for python (which is also best practice)");case _r.mB:return(0,Ve.jsx)(Ie.vV,{text:"You can not set both the {1} and {2} flag simultaneously",ph1:(0,Ve.jsx)("strong",{className:wr.Z.flags,children:"a"}),ph2:(0,Ve.jsx)("strong",{className:wr.Z.flags,children:"u"})});case _r.BC:return(0,Ae.Z)("You cannot create a range with shorthand escape sequences");case _r.jb:return(0,Ae.Z)("The escape sequence to match backspace is not supported in the selected flavor");case _r.d3:return(0,Ae.Z)("Due to a bug in PCRE creating ranges with an escaped literal is unsafe. To avoid this, simply use the literal representation instead");case _r.K0:return(0,Ae.Z)("Invalid unicode escape");case _r.Vt:return(0,Ae.Z)("Quantifier range is too large");case _r.wn:return(0,Ae.Z)("Groups with the same index must either have the same name or both be non-named groups");case _r.f0:return(0,Ae.Z)("Unmatched parenthesis");case _r.IA:return(0,Ve.jsx)(Ie.vV,{text:"This token must be escaped when the {1} flag is enabled unless they form a valid quantifier",ph1:(0,Ve.jsx)("strong",{className:wr.Z.flag,children:"u"})});case _r.Y4:return(0,Ae.Z)("The range is invalid because either the left or right token is erroneous");case _r.wW:return(0,Ae.Z)("Bogus escape: this escape is not recognized in the python flavor");case _r.Qc:return(0,Ve.jsx)(Ie.vV,{text:"Backticks can not be used in a raw string, use {1} instead",ph1:Ar("\\x60")});case _r.$H:return(0,Ae.Z)("POSIX Word Boundaries must be the only item inside a character class");case _r.Af:return(0,Ae.Z)("Character range with surrogate pairs without unicode enabled results in ambiguous behavior");case _r.of:return(0,Ve.jsx)(Ie.vV,{text:"This token is not valid under strict mode, and may cause certain browsers to throw errors. If you need to reference this subpattern, use the {1} syntax, otherwise use the token literally.",ph1:Ar("$n")});case _r.Gz:return(0,Ae.Z)("Invalid placement of hyphen; there may only be one inside the group");case _r.rs:return(0,Ae.Z)("Unmatched opening bracket");case _r.Jf:return(0,Ae.Z)("The number is too large");case _r.O3:return(0,Ae.Z)("You may not use a null byte in your regex, as that effectively terminates it at that position");case _r.sb:return(0,Ae.Z)("Named backreference may not be used before group definition");case _r.Oy:return(0,Ae.Z)("Backreferences may not be placed inside character classes. If you meant to create an octal escape, prefix the escape with a 0.");case _r.Ey:return(0,Ve.jsx)(Ie.vV,{text:"End quote literals without a corresponding open quote literal {1} match null, and only serve to create visual noise. If you meant to match the literal {2}, remove the backslash.",ph1:Ar("\\Q"),ph2:Ir("E")});case _r.xX:return(0,Ae.Z)("You cannot nest conditional replacements more than 10 levels deep");case _r.KE:return(0,Ae.Z)("You cannot create a range with an opening bracket");case _r.HT:return(0,Ae.Z)("Inline modifiers cannot be placed in the root of a conditional due to a bug in the .NET regex engine");case _r.BL:return(0,Ae.Z)("You cannot create character ranges with the terminating character class token");case _r.Qi:return(0,Ae.Z)("The name of the verb is too long");case _r.Ct:return(0,Ve.jsx)(Ie.vV,{text:"This construct cannot be used with the {1} option",ph1:Or("NonBacktracking")});case _r.jW:return(0,Ae.Z)("You cannot modify the same flag multiple times in the same definition");case _r.bb:return(0,Ae.Z)("Malplaced character class subtraction operator");case _r.jz:return(0,Ae.Z)("Malplaced character class intersection operator");case _r.nv:return(0,Ae.Z)("Malplaced symmetric character class difference operator");case _r.wY:return(0,Ae.Z)("Due to a bug in Rust this script is unavailable. Try specifying the category to work around this issue.");case _r.n2:return(0,Ae.Z)("Groups have been nested too deeply, consider simplifying your pattern");default:return Ze.O7(new Error(`Unknown error type '${e}'`)),null}}const Mr=function(e){const t=e.type,s=e.string;let n=null;if(t===Sr.Cz?n=(0,Ae.Z)("inserts the portion of the string that precedes the matched substring"):t===Sr.tI?n=(0,Ae.Z)("inserts the portion of the string that follows the matched substring"):t===Sr.hL?n=(0,Ae.Z)("inserts the matched substring"):t===Sr.ul?n=(0,Ae.Z)("inserts the last group that was most recently captured by the regex"):t===Sr.Ud&&(n=(0,Ae.Z)("inserts the entire input string")),n)return{explanation:(0,Ve.jsx)("span",{children:n})};throw new Error(`Unknown subst token '${s}' (${t})`)},Dr=e=>{if(!e)return null;const t=e.partOfRange,s=e.rangeToken,n=e.openCharClass,r=e.openGroup,a=e.quantifiedToken,i=e.error;return t?s:(null==a?void 0:a.type)===Sr.Wj?a:i?e:n||r||e};function Ur(e,t=!1,s=!1){const n=e.lineTerminators;let r="";t&&n.includes("\\r")&&n.includes("\\n")&&!n.includes("\\r\\n")&&(r=`(${(0,Ae.Z)("with no special consideration for the \\r\\n sequence")})`);let a="";return a=s?(0,Ae.Z)("Lines are delimited by: {1} {2}",n.join(", "),r):(0,Ae.Z)("Line terminator(s) are: {1} {2}",n.join(", "),r),(0,Ve.jsx)(Ie.lx,{text:a,direction:He.qF.NW,multiline:!0,children:(0,Ve.jsx)("div",{className:wr.Z.tooltip,role:"figure",children:(0,Ve.jsx)(Pe.zXH,{size:16,className:wr.Z.icon})})})}const Fr=function(e,t){const s=e.string,n=e.flags,r=e.flavor,a=e.type,i=e.isSubstitution,o=e.unicodeEnabled,l=s.length>1?s.charAt(1):s.charAt(0),c=o,u=n.includes("m"),d=n.includes("s"),h=n.includes("D"),p=r===x().JAVASCRIPT,g=r===x().PYTHON,m=r===x().DOTNET;if("w"===l)return c&&!p||m?{explanation:(0,Ve.jsx)(Ie.vV,{text:"match any word character in any script (equivalent to {1})",ph1:Ar(m?"[\\p{L}\\p{Mn}\\p{Nd}\\p{Pc}]":"[\\p{L}\\p{N}_]")})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches any word character (equivalent to {1})",ph1:Ar("[a-zA-Z0-9_]")})};if("W"===l)return c&&!p||m?{explanation:(0,Ve.jsx)(Ie.vV,{text:"match any non-word character in any script (equivalent to {1})",ph1:Ar(m?"[^\\p{L}\\p{Mn}\\p{Nd}\\p{Pc}]":"[^\\p{L}\\p{N}_]")})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches any non-word character (equivalent to {1})",ph1:Ar("[^a-zA-Z0-9_]")})};if("d"===l)return c&&!p||m?{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a digit zero through nine in any script except ideographic scripts (equivalent to {1})",ph1:Ar("\\p{Nd}")})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a digit (equivalent to {1})",ph1:Ar("[0-9]")})};if("D"===l)return c&&!p||m?{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches any non-numeric character in any script (equivalent to {1})",ph1:Ar("\\P{Nd}")})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches any character that's not a digit (equivalent to {1})",ph1:Ar("[^0-9]")})};if("s"===l){if(p)return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches any whitespace character (equivalent to {1})",ph1:Ar("[\\r\\n\\t\\f\\v \\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]")})};if(c||m)return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches any kind of invisible character (equivalent to {1})",ph1:Ar(m?"[\\f\\n\\r\\t\\v\x85\\p{Z}]":"[\\p{Z}\\h\\v]")})};const e=Ar(g?"[\\r\\n\\t\\f\\v \xa0]":"[\\r\\n\\t\\f\\v ]");return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches any whitespace character (equivalent to {1})",ph1:e})}}if("S"===l)return p?{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches any non-whitespace character (equivalent to {1})",ph1:Ar("[^\\r\\n\\t\\f\\v \\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]")})}:c||m?{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches any kind of visible character (equivalent to {1})",ph1:Ar(m?"[^\\f\\n\\r\\t\\v\x85\\p{Z}]":"[^\\p{Z}\\h\\v]")})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches any non-whitespace character (equivalent to {1})",ph1:Ar("[^\\r\\n\\t\\f\\v ]")})};if("h"===l)return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches any horizontal whitespace character (equivalent to {1})",ph1:Ar("[[:blank:]]")})};if("H"===l)return{explanation:(0,Ae.Z)("matches any character that's not a horizontal whitespace character")};if("v"===l)return{explanation:(0,Ae.Z)("matches any vertical whitespace character")};if("V"===l)return{explanation:(0,Ae.Z)("matches any character that's not a vertical whitespace character")};if("N"===l)return{explanation:(0,Ae.Z)("matches any non-newline character")};if("R"===l)return{explanation:(0,Ae.Z)("matches any Unicode newline sequence")};if("C"===l)return{explanation:(0,Ae.Z)("matches one data unit, even in UTF mode (best avoided)")};if("X"===l)return{explanation:(0,Ae.Z)("matches any number of Unicode characters that form an extended Unicode sequence")};if("t"===l)return i?{explanation:(0,Ve.jsx)(Ie.vV,{text:"inserts a tab character {1}",ph1:Or("(ASCII 9)")})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a tab character {1}",ph1:Or("(ASCII 9)")})};if("r"===l)return i?{explanation:(0,Ve.jsx)(Ie.vV,{text:"inserts a carriage return {1}",ph1:Or("(ASCII 13)")})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a carriage return {1}",ph1:Or("(ASCII 13)")})};if("n"===l)return i?{explanation:(0,Ve.jsx)(Ie.vV,{text:"inserts a line-feed (newline) character {1}",ph1:Or("(ASCII 10)")})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a line-feed (newline) character {1}",ph1:Or("(ASCII 10)")})};if("f"===l)return i?{explanation:(0,Ve.jsx)(Ie.vV,{text:"inserts a form-feed character {1}",ph1:Or("(ASCII 12)")})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a form-feed character {1}",ph1:Or("(ASCII 12)")})};if("a"===l)return i?{explanation:(0,Ve.jsx)(Ie.vV,{text:"inserts the bell character {1}",ph1:Or("(ASCII 7)")})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches the bell character {1}",ph1:Or("(ASCII 7)")})};if("e"===l)return i?{explanation:(0,Ve.jsx)(Ie.vV,{text:"inserts esc {1}",ph1:Or("(ASCII 7)")})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches esc {1}",ph1:Or("(ASCII 7)")})};if("b"===l){if(i)return{explanation:(0,Ve.jsx)(Ie.vV,{text:"inserts a backspace character {1}",ph1:Or("(ASCII 8)")})};const e=(0,Ve.jsx)("span",{className:wr.Z.zeroWidth}),t=(0,Ve.jsxs)("span",{className:wr.Z.tokenSample,children:["(^",e,"\\w|\\w",e,"$|\\W",e,"\\w|\\w",e,"\\W)"]});return{explanation:(0,Ve.jsx)(Ie.vV,{text:"assert position at a word boundary: {1}",ph1:t})}}if("B"===l)return{explanation:(0,Ve.jsx)(Ie.vV,{text:"assert position where {1} does not match",ph1:Ar("\\b")})};if("A"===l)return{explanation:(0,Ae.Z)("asserts position at start of the string")};if("z"===l)return{explanation:(0,Ae.Z)("asserts position at the end of the string")};if("G"===l)return{explanation:(0,Ae.Z)("asserts position at the end of the previous match or the start of the string for the first match")};if("K"===l)return{explanation:(0,Ae.Z)("resets the starting point of the reported match. Any previously consumed characters are no longer included in the final match")};if("."===l){let s="";return d||(s=(0,Ae.Z)("(except for line terminators)")),{explanation:(0,Ve.jsxs)("span",{children:[c&&(0,Ae.Z)("matches any character, including unicode {1}",s),!c&&(0,Ae.Z)("matches any character {1}",s),!d&&!t.brief&&Ur(e)]})}}if("^"===l){let s=(0,Ae.Z)("the string");return u&&(s=(0,Ae.Z)("a line")),{explanation:(0,Ve.jsxs)("span",{children:[(0,Ae.Z)("asserts position at start of {1}",s),u&&!t.brief&&Ur(e,!0,!0)]})}}if("Z"===l)return{explanation:(0,Ae.Z)("asserts position at the end of the string, or before the line terminator right at the end of the string (if any)")};if("$"===l){let s="";return s=u?(0,Ae.Z)("asserts position at the end of a line"):h||p||r===x().GOLANG?(0,Ae.Z)("asserts position at the end of the string"):(0,Ae.Z)("asserts position at the end of the string, or before the line terminator right at the end of the string (if any)"),{explanation:(0,Ve.jsxs)("span",{children:[s,!h&&!t.brief&&Ur(e,!0,u)]})}}return Ze.O7(new Error(`Unable to explain token '${a}': '${s}'`)),{explanation:null}};function Gr(e,t){return Vr(e,t)}function Vr(e,t,s=!1){const n=e.flags,r=e.flavor,a=e.inCharClass,i=e.type,o=e.codePoint,l=e.charCode,c=e.isSubstitution,u=e.isPoorlyPlaced,d=n.includes("x"),h=n.includes("xx"),p=n.includes("i");let g=t;if(s||(!d||a&&r!==x().JAVA&&r!==x().RUST)&&!h||i===Sr.$U||(g=g.replace(/[ \t\r\n\f]/g,"")),""===g)return{explanation:null};const m=o||l;if(c)return{explanation:(0,Ve.jsx)(Ie.vV,{text:"inserts the character {1} with index {2} ({3} or {4})",ph1:Ir(g),ph2:Or((0,Ve.jsxs)(Ve.Fragment,{children:[m,(0,Ve.jsx)("sub",{children:"10"})]})),ph3:Or((0,Ve.jsxs)(Ve.Fragment,{children:[m.toString(16).toUpperCase(),(0,Ve.jsx)("sub",{children:"16"})]})),ph4:Or((0,Ve.jsxs)(Ve.Fragment,{children:[m.toString(8).toUpperCase(),(0,Ve.jsx)("sub",{children:8})]}))})};const f=a?(0,M.Z)(g).join(""):g,v=[...f].length,b=p?(0,Ae.Z)("case insensitive"):(0,Ae.Z)("case sensitive");if(a&&v>1)return{explanation:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ae.Z)("matches a single character in the list")," ",Ir(f)," (",b,")"]})};const j=a&&u&&"-"===t?(0,Ve.jsx)(Ie.qX,{children:(0,Ae.Z)("This hyphen is treated literally, which might be confusing for others. Consider escaping it or placing at the start or end of the class.")}):null;return 1===v&&i!==Sr.$U?{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches the character {1} with index {2} ({3} or {4}) literally ({5})",ph1:Ir(f),ph2:Or((0,Ve.jsxs)(Ve.Fragment,{children:[m,(0,Ve.jsx)("sub",{children:"10"})]})),ph3:Or((0,Ve.jsxs)(Ve.Fragment,{children:[m.toString(16).toUpperCase(),(0,Ve.jsx)("sub",{children:"16"})]})),ph4:Or((0,Ve.jsxs)(Ve.Fragment,{children:[m.toString(8).toUpperCase(),(0,Ve.jsx)("sub",{children:8})]})),ph5:b}),notice:j}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches the characters {1} literally ({2})",ph1:Ir(g),ph2:b}),notice:j}}function Br(e){return 0===e?(0,Ae.Z)("zero"):1===e?(0,Ae.Z)("one"):e===1/0?(0,Ae.Z)("unlimited"):e}const $r=function(e){const t=e.previousToken.type;let s;"?"===e.string||"??"===e.string||e.flavor===x().DOTNET||t!==Sr.t&&t!==Sr.sS?(0,Sr.Az)(t)&&t!==Sr.qh&&t!==Sr.fy&&(s=(0,Ve.jsx)(Ie.qX,{type:He.gr.u_,children:(0,Ae.Z)("A quantifier following a lookaround serves no purpose, and can safely be removed from the regular expression")})):s=(0,Ve.jsx)(Ie.qX,{type:He.gr.u_,children:(0,Ae.Z)("A repeated capturing group will only capture the last iteration. Put a capturing group around the repeated group to capture all iterations or use a non-capturing group instead if you're not interested in the data")});const n=e.to===1/0||e.to<=1?Br(e.to):e.to,r=e.to===1/0||e.to<=1?Br(e.from):e.from;if(e.from===e.to){let t;return 1===e.from?t=(0,Ae.Z)("meaningless quantifier"):0===e.from&&(t=(0,Ae.Z)("causes token to be ignored")),{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches the previous token exactly {1} {2} {3}",ph1:Or(r),ph2:1!==e.from?(0,Ae.Z)("times"):(0,Ae.Z)("time"),ph3:t?`(${t})`:""}),notice:s}}let a,i;return e.possessive?(a=(0,Ae.Z)("as many times as possible, without giving back"),i=(0,Ae.Z)("possessive")):e.lazy?(a=(0,Ae.Z)("as few times as possible, expanding as needed"),i=(0,Ae.Z)("lazy")):(a=(0,Ae.Z)("as many times as possible, giving back as needed"),i=(0,Ae.Z)("greedy")),{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches the previous token between {1} and {2} times, {3} {4}",ph1:Or(r),ph2:Or(n),ph3:a,ph4:(o="("+i+")",(0,Ve.jsx)("span",{className:wr.Z.info,children:o}))}),notice:s};var o};var Hr=s(32092);const qr=function(e,{alternatives:t,brief:s}){var n;if(s)return(null==(n=e.parent)?void 0:n.type)===Sr.oK?{explanation:(0,Ae.Z)("Separates the true and false case of the parent conditional.")}:{explanation:(0,Ae.Z)("Equivalent to boolean OR")};if(e.parent){if(e.parent.type===Sr.oK)return 0===e.alternativeNumber?{explanation:(0,Ae.Z)("If condition is met, match the following regex")}:{explanation:(0,Ae.Z)("Else match the following regex")};if(0===e.parent.alternatives)return{explanation:null}}else if(0===t)return{explanation:null};return{explanation:(0,Ae.Z)("{1} Alternative",(0,Hr.Gz)(e.alternativeNumber+1))}},zr=function(e){const t=e.string.replace(/^\\Q|\\E$/g,"");return""===t?{explanation:(0,Ae.Z)("matches an empty string (any position)")}:Gr(e,t)};function Wr(e,t,s,n){const r=function(e,t,s){if("g"===t)return(0,Ve.jsx)(Ie.vV,{text:"{1}. All matches (don't return after first match)",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"g"}),"lobal"]})});if("i"===t)return s?(0,Ve.jsx)(Ie.vV,{text:"{1}. Case insensitive match (ignores case of {2})",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"i"}),"nsensitive"]}),ph2:Ar("[a-zA-Z]")}):(0,Ve.jsx)(Ie.vV,{text:"{1}. Case sensitive match",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:["-",(0,Ve.jsx)("strong",{children:"i"}),"nsensitive"]})});if("J"===t)return s?(0,Ae.Z)("Allow duplicate subpattern names"):(0,Ae.Z)("Disallow duplicate subpattern names");if("s"===t)return s?(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ie.vV,{text:"{1}. Dot matches newline characters",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"s"}),"ingle line"]})}),e===x().JAVASCRIPT&&Rr(!0)]}):(0,Ve.jsx)(Ie.vV,{text:"{1}. A dot won't match {2}",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:["-",(0,Ve.jsx)("strong",{children:"s"}),"ingle line"]}),ph2:Ar("\\n")});if("m"===t)return s?(0,Ve.jsx)(Ie.vV,{text:"{1}. Causes {2} and {3} to match the begin/end of each line (not only begin/end of string)",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"m"}),"ulti line"]}),ph2:Ar("^"),ph3:Ar("$")}):(0,Ve.jsx)(Ie.vV,{text:"{1}. Causes {2} and {3} to match begin/end of string",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:["-",(0,Ve.jsx)("strong",{children:"m"}),"ulti line"]}),ph2:Ar("^"),ph3:Ar("$")});if("xx"===t)return s?(0,Ve.jsx)(Ie.vV,{text:"{1}. Spaces and text after a {2} in the pattern are ignored (even whitespace inside character classes)",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:["e",(0,Ve.jsx)("strong",{children:"x"}),"tra e",(0,Ve.jsx)("strong",{children:"x"}),"tended"]}),ph2:Or("#")}):(0,Ve.jsx)(Ie.vV,{text:"{1}. Whitespaces and {2} in the pattern are treated literally",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:["-e",(0,Ve.jsx)("strong",{children:"x"}),"tra e",(0,Ve.jsx)("strong",{children:"x"}),"tended"]}),ph2:Or("#")});if("x"===t)return s?(0,Ve.jsx)(Ie.vV,{text:"{1}. Spaces and text after a {2} in the pattern are ignored",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:["e",(0,Ve.jsx)("strong",{children:"x"}),"tended"]}),ph2:Or("#")}):(0,Ve.jsx)(Ie.vV,{text:"{1}. Whitespaces and {2} in the pattern are treated literally",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:["-e",(0,Ve.jsx)("strong",{children:"x"}),"tended"]}),ph2:Or("#")});if("X"===t)return(0,Ve.jsx)(Ie.vV,{text:"{1}. A {2} followed by a letter with no special meaning is faulted",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:["e",(0,Ve.jsx)("strong",{children:"X"}),"tra"]}),ph2:Or("\\")});if("A"===t)return(0,Ve.jsx)(Ie.vV,{text:"{1}. The pattern is forced to become anchored at the start of the search, or at the position of the last successful match, equivalent to a {2}",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"A"}),"nchored"]}),ph2:Ar("\\G")});if("U"===t)return e===x().JAVA?(0,Ve.jsx)(Ie.vV,{text:"{1}. Enable the built in character classes to also match unicode characters",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"U"}),"nicode"]})}):s?(0,Ve.jsx)(Ie.vV,{text:"{1}. The match becomes lazy by default. Now a {2} following a quantifier makes it greedy",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"U"}),"ngreedy"]}),ph2:Ar("?")}):(0,Ve.jsx)(Ie.vV,{text:"{1}. The match becomes greedy by default",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:["-",(0,Ve.jsx)("strong",{children:"U"}),"ngreedy"]})});if("u"===t){const t=e===x().RUST;if(e===x().PCRE||e===x().PCRE2||t)return(0,Ve.jsx)(Ie.vV,{text:"{1}. Pattern strings are treated as {2}. Also causes escape sequences to match unicode characters",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"u"}),"nicode"]}),ph2:Or(t?"UTF-8":"UTF-16")});if(e===x().PYTHON)return(0,Ve.jsx)(Ie.vV,{text:"{1}. Make {2}, {3}, {4}, {5}, {6}, {7}, {8} and {9} perform matching with Unicode semantic (redundant in Python 3)",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"u"}),"nicode"]}),ph2:Ar("\\w"),ph3:Ar("\\W"),ph4:Ar("\\b"),ph5:Ar("\\B"),ph6:Ar("\\d"),ph7:Ar("\\D"),ph8:Ar("\\s"),ph9:Ar("\\S")});if(e===x().JAVASCRIPT)return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ie.vV,{text:"{1}. Enable all unicode features and interpret all unicode escape sequences as such",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"u"}),"nicode"]})}),Rr(!0)]});if(e===x().JAVA)return s?(0,Ve.jsx)(Ie.vV,{text:"{1}. Apply case insensitive matching to unicode characters in accordance with the unicode standard",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"u"}),"nicode case"]})}):(0,Ve.jsx)(Ie.vV,{text:"{1}. Case insensitive matching is only applied to the US-ASCII character set",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:["-",(0,Ve.jsx)("strong",{children:"u"}),"nicode case"]})})}return"a"===t?(0,Ve.jsx)(Ie.vV,{text:"{1}. Force the escape sequences {2}, {3}, {4}, {5}, {6}, {7}, {8} and {9} to perform ASCII-only matching instead of full Unicode matching",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"a"}),"scii"]}),ph2:Ar("\\w"),ph3:Ar("\\W"),ph4:Ar("\\b"),ph5:Ar("\\B"),ph6:Ar("\\d"),ph7:Ar("\\D"),ph8:Ar("\\s"),ph9:Ar("\\S")}):"D"===t?(0,Ve.jsx)(Ie.vV,{text:"{1}. Force the a dollar sign, {2}, to always match end of the string, instead of end of the line. This option is ignored if the {3}-flag is set",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"D"}),"ollar"]}),ph2:Ar("$"),ph3:Ar("m")}):"y"===t?(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ie.vV,{text:"{1}. Force the pattern to only match consecutive matches from where the previous match ended.",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:["stick",(0,Ve.jsx)("strong",{children:"y"})]})}),Rr(!0)]}):"n"===t?s?(0,Ve.jsx)(Ie.vV,{text:"{1}. All capturing groups {2} are instead treated as if they were non-capturing groups {3}.",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"n"}),"o capture"]}),ph2:Ar("()"),ph3:Ar("(?:)")}):(0,Ve.jsx)(Ie.vV,{text:"{1}. Capturing groups {2} are no longer treated as if they were non-capturing groups {3}.",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"n"}),"o capture"]}),ph2:Ar("()"),ph3:Ar("(?:)")}):"d"===t?(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ie.vV,{text:"{1}. The JavaScript regex engine now returns the indices at which the regex matched in the subject string.",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:["in",(0,Ve.jsx)("strong",{children:"d"}),"ices"]})}),Rr(!0)]}):"R"===t?(0,Ve.jsx)(Ie.vV,{text:"{1}. The .NET regex engine now now performs matches from right to left, instead of left ro right.",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"R"}),"ight to left"]})}):"N"===t?(0,Ve.jsx)(Ie.vV,{text:"{1}. Enable matching using an approach that avoids backtracking and guarantees linear-time processing in the length of the input.",ph1:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:"N"}),"o backtracking"]})}):void 0}(e,t,n);return r?(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("span",{className:_e()(wr.Z.flag,!n&&wr.Z.flagDisabled),children:(0,Ae.Z)("{1} modifier:",t)})," ",r]},`flag-${t}-${n}-${s}`):(Ze.O7(new Error(`Unable to explain '${t}'`)),null)}const Yr=function(e,t,s){return[].concat(null==e?void 0:e.map(((e,t)=>Wr(s,e,t,!0))),null==t?void 0:t.map(((e,t)=>Wr(s,e,t,!1))))},Kr=function(e){return{explanation:(0,Ve.jsx)(Ie.vV,{text:"match the remainder of the pattern with the following effective flags: {1}",ph1:Or(e.flags)}),children:Yr(e.onFlags,e.offFlags,e.flavor)}},Jr=function(e){const t=e.flavor===x().JAVASCRIPT;switch(e.type){case Sr.t:return{explanation:(0,Ae.Z)("{1} Capturing Group",(0,Hr.Gz)(e.groupNumber))};case Sr.df:return{explanation:(0,Ve.jsx)(Ie.vV,{text:"Non-capturing Group. Matches the tokens contained with the following effective flags: {1}",ph1:Or(e.flags)}),children:Yr(e.onFlags,e.offFlags,e.flavor)};case Sr.xT:return{explanation:(0,Ae.Z)("Non-capturing group")};case Sr.Ws:return{explanation:(0,Ae.Z)("Subpattern definition construct"),notice:(0,Ve.jsx)(Ie.qX,{children:(0,Ae.Z)("May only be used to define functions. No matching is done in this group.")})};case Sr.oK:return{explanation:(0,Ae.Z)("Conditional")};case Sr.Ty:return{explanation:(0,Ae.Z)("Negative Lookbehind"),notice:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ie.qX,{children:(0,Ae.Z)("Assert that the Regex below does not match")})," ",t&&Rr(!1)]})};case Sr.Gs:return{explanation:(0,Ae.Z)("Positive Lookbehind"),notice:(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ie.qX,{children:(0,Ae.Z)("Assert that the Regex below matches")}),t&&Rr(!1)]})};case Sr.up:return{explanation:(0,Ae.Z)("Negative Lookahead"),notice:(0,Ve.jsx)(Ie.qX,{children:(0,Ae.Z)("Assert that the Regex below does not match")})};case Sr.PG:return{explanation:(0,Ae.Z)("Positive Lookahead"),notice:(0,Ve.jsx)(Ie.qX,{children:(0,Ae.Z)("Assert that the Regex below matches")})};case Sr.fy:return{explanation:(0,Ae.Z)("Non-atomic Positive Lookahead"),notice:(0,Ve.jsx)(Ie.qX,{children:(0,Ae.Z)("Assert that the Regex below matches")})};case Sr.qh:return{explanation:(0,Ae.Z)("Non-atomic Positive Lookbehind"),notice:(0,Ve.jsx)(Ie.qX,{children:(0,Ae.Z)("Assert that the Regex below matches")})};case Sr.sS:return{explanation:(0,Ve.jsx)(Ie.vV,{text:"Named Capture Group {1}",ph1:Or(e.subpattern)})};case Sr.no:return{explanation:(0,Ae.Z)("Branch Reset Group"),notice:(0,Ve.jsx)(Ie.qX,{children:(0,Ae.Z)("Subpatterns declared within each alternative of this construct will start over from the same index.")})};case Sr.Jy:return{explanation:(0,Ae.Z)("Atomic Group"),notice:(0,Ve.jsx)(Ie.qX,{children:(0,Ae.Z)("Non-capturing group that discards backtracking positions once matched.")})};case Sr.sr:return{explanation:(0,Ve.jsx)(Ie.vV,{text:"Balancing Named Capturing Group {1}",ph1:Or(e.subpattern)}),notice:(0,Ve.jsx)(Ie.qX,{children:(0,Ve.jsx)(Ie.vV,{text:"Removes the most recently matched text from the group {1} if the contained pattern matches, and captures the text between the two groups in {2}",ph1:Or(e.balancedGroup),ph2:Or(e.subpattern)})})};case Sr.ET:return{explanation:(0,Ae.Z)("Balancing Non-capturing Group"),notice:(0,Ve.jsx)(Ie.qX,{children:(0,Ve.jsx)(Ie.vV,{text:"Removes the most recently matched text from the group {1} if the contained pattern matches",ph1:Or(e.balancedGroup)})})};case Sr.w_:const s=isNaN(e.reference)?(0,Ve.jsx)(Ie.vV,{text:"subpattern {1}",ph1:Or(e.reference)}):(0,Ve.jsx)(Ie.vV,{text:"{1} subpattern",ph1:Or((0,Hr.Gz)(e.reference))});return{explanation:(0,Ve.jsx)(Ie.vV,{text:"Replaces the text conditionally depending on if the {1} matched",ph1:s})};default:return Ze.O7(new Error(`Unable to match group type '${e.type}' to a component: '${e.string}'`)),null}},Xr=function(e,t){const s=e.string.includes("^");let n,r;if(t.brief)n=s?(0,Ae.Z)("match a single character not present in the set"):(0,Ae.Z)("match a single character present in the set");else{if(e.parent.type===Sr.HI){var a;const t=null==(a=e.previousToken)?void 0:a.type;if((0,Sr.gg)(t))switch(t){case Sr.zB:n=s?(0,Ae.Z)("that is also present in complement of the sub-list below"):(0,Ae.Z)("that is also present in the sub-list below");break;case Sr.Ao:n=s?(0,Ae.Z)("that is also not present in the complement of the sub-list below"):(0,Ae.Z)("that is also not present in the sub-list below");break;case Sr.ix:n=s?(0,Ae.Z)("that is also present in either the sub-list above or in the complement of the sub-list below, but not in both"):(0,Ae.Z)("that is also present in either the sub-list above or below, but not in both");break;default:throw new Error(`Unable to explain '${e.type}'`)}else n=s?(0,Ae.Z)("including a single character not present in the list below"):(0,Ae.Z)("including a single character present in the list below");n=`\u2026 ${n}`}else n=s?(0,Ae.Z)("Match a single character not present in the list below"):(0,Ae.Z)("Match a single character present in the list below");e.classModifier&&(n+=" \u2026 ",r=(0,Ve.jsx)(Ie.qX,{children:(0,Ae.Z)("Class modifiers are computed from left to right, and the descriptions below (leading with three dots) must be interpreted with this in mind.")}))}return{explanation:n,notice:r}};var Qr=s(7656);const ea=function(e){const t=e.leftToken,s=e.rightToken,n=(0,Qr.oA)(t,"end"),r=(0,Qr.oA)(s,"start"),a=String.fromCodePoint(n),i=String.fromCodePoint(r),o=e.flags.includes("i")?(0,Ae.Z)("case insensitive"):(0,Ae.Z)("case sensitive");return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a single character in the range between {1} {2} and {3} {4} ({5})",ph1:Ir(a),ph2:Or("(index "+n+")"),ph3:Ir(i),ph4:Or("(index "+r+")"),ph5:o}),string:t.string+e.string+s.string}};var ta=s(57093);const sa=function(e){const t=e.flavor,s=e.string,n=e.script,r=e.category,a=(0,ta.F)(n),i=(0,ta.F)(r,!0),o=t===x().JAVASCRIPT?Rr(!1):null;if("\\P"===s.slice(0,2)||s.includes("^")){const e=s.includes("{")?`\\p{${n}}`:`\\p${n}`;return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches any characters that {1} does not",ph1:Ar(e)}),notice:o}}const l=(e=>{switch(e){case"Letter":case"letter":case"L":return(0,Ae.Z)("matches any kind of letter from any language");case"Lowercase_Letter":case"lowercaseletter":case"Ll":return(0,Ae.Z)("matches a lowercase letter that has an uppercase variant");case"Uppercase_Letter":case"uppercaseletter":case"Lu":return(0,Ae.Z)("matches an uppercase letter that has a lowercase variant");case"Titlecase_Letter":case"titlecaseletter":case"Lt":return(0,Ae.Z)("matches a letter that appears at the start of a word when only the first letter of the word is capitalized");case"Cased_Letter":case"casedletter":case"LC":case"L&":return(0,Ve.jsx)(Ie.vV,{text:"matches a letter that exists in lowercase and uppercase variants (combination of {1}, {2} and {3})",ph1:Ar("Ll"),ph2:Ar("Lu"),ph3:Ar("Lt")});case"Modifier_Letter":case"modifierletter":case"Lm":return(0,Ae.Z)("matches a special character that is used like a letter");case"Other_Letter":case"otherletter":case"Lo":return(0,Ae.Z)("matches a letter or ideograph that does not have lowercase and uppercase variants");case"Mark":case"mark":case"M":return(0,Ae.Z)("matches a character intended to be combined with another character (e.g. accents, umlauts, enclosing boxes, etc.)");case"Nonspacing_Mark":case"nonspacingmark":case"Mn":return(0,Ae.Z)("matches a character intended to be combined with another character without taking up extra space (e.g. accents, umlauts, etc.)");case"Spacing_Mark":case"spacingmark":case"Mc":return(0,Ae.Z)("matches a character intended to be combined with another character that takes up extra space (vowel signs in many Eastern languages)");case"Enclosing_Mark":case"enclosingmark":case"Me":return(0,Ae.Z)("matches a character that encloses the character is is combined with (circle, square, keycap, etc.)");case"Separator":case"separator":case"Z":return(0,Ae.Z)("matches any kind of whitespace or invisible separator");case"Space_Separator":case"spaceseparator":case"Zs":return(0,Ae.Z)("matches a whitespace character that is invisible, but does take up space");case"Line_Separator":case"lineseparator":case"Zl":return(0,Ve.jsx)(Ie.vV,{text:"matches a line separator character {1}",ph1:Or("U+2028")});case"Paragraph_Separator":case"paragraphseparator":case"Zp":return(0,Ve.jsx)(Ie.vV,{text:"matches a paragraph separator character {1}",ph1:Or("U+2029")});case"Symbol":case"S":return(0,Ae.Z)("matches any math symbols, currency signs, dingbats, box-drawing characters, etc");case"Math_Symbol":case"mathsymbol":case"Sm":return(0,Ae.Z)("matches any mathematical symbol");case"Currency_Symbol":case"currencysymbol":case"Sc":return(0,Ae.Z)("matches any currency sign");case"Modifier_Symbol":case"modifiersymbol":case"Sk":return(0,Ae.Z)("matches a combining character (mark) as a full character on its own");case"Other_Symbol":case"othersymbol":case"So":return(0,Ae.Z)("matches various symbols that are not math symbols, currency signs, or combining characters");case"Number":case"number":case"N":return(0,Ae.Z)("matches any kind of numeric character in any script");case"Decimal_Number":case"decimalnumber":case"Nd":return(0,Ae.Z)("matches a digit zero through nine in any script except ideographic scripts");case"Letter_Number":case"letternumber":case"Nl":return(0,Ae.Z)("matches a number that looks like a letter, such as a Roman numeral");case"Other_Number":case"othernumber":case"No":return(0,Ae.Z)("matches a superscript or subscript digit, or a number that is not a digit (excluding numbers from ideographic scripts)");case"Punctuation":case"punctuation":case"P":return(0,Ae.Z)("matches any kind of punctuation character");case"Dash_Punctuation":case"dashpunctuation":case"Pd":return(0,Ae.Z)("matches any kind of hyphen or dash");case"Open_Punctuation":case"openpunctuation":case"Ps":return(0,Ae.Z)("matches any kind of opening bracket");case"Close_Punctuation":case"closepunctuation":case"Pe":return(0,Ae.Z)("matches any kind of closing bracket");case"Initial_Punctuation":case"initialpunctuation":case"Pi":return(0,Ae.Z)("matches any kind of opening quote");case"Final_Punctuation":case"finalpunctuation":case"Pf":return(0,Ae.Z)("matches any kind of closing quote");case"Connector_Punctuation":case"connectorpunctuation":case"Pc":return(0,Ae.Z)("matches a punctuation character such as an underscore that connects words");case"Other_Punctuation":case"otherpunctuation":case"Po":return(0,Ae.Z)("matches any kind of punctuation character that is not a dash, bracket, quote or connector");case"Other":case"other":case"C":return(0,Ae.Z)("matches invisible control characters and unused code points");case"Control":case"control":case"Cc":return(0,Ve.jsx)(Ie.vV,{text:"matches an ASCII {1} or Latin-1 {2} control character",ph1:Ar("[\\x00-\\x1F]"),ph2:Ar("[\\x80-\\x9F]")});case"Format":case"format":case"Cf":return(0,Ae.Z)("matches invisible formatting indicator");case"Private_Use":case"privateuse":case"Co":return(0,Ae.Z)("matches any code point reserved for private use");case"Surrogate":case"surrogate":case"Cs":return(0,Ve.jsx)(Ie.vV,{text:"matches one half of a surrogate pair in {1} encoding",ph1:Or("UTF-16")});case"Unassigned":case"unassigned":case"Cn":return(0,Ae.Z)("matches any code point to which no character has been assigned");default:return null}})(a);if(null!=l)return{explanation:(0,Ve.jsx)("span",{children:l}),notice:o};const c=null==r||"sc"===i||"script"===i?(0,Ae.Z)("script"):(0,Ae.Z)("script extension");return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches any characters in the {1} {2}",ph1:Or(n),ph2:c}),notice:o}},na=function(e){return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches the control sequence {1} {2}",ph1:Ar("CTRL+"+e.controlChar),ph2:Or("(ASCII "+e.charCode+")")})}},ra=function(e){return{explanation:(0,Ae.Z)("Global pattern flags"),children:Yr(e.globalFlags.split(""),[],e.flavor)}},aa=function(e){return 0===e.reference?e.isSubstitution?{explanation:(0,Ae.Z)("inserts the same text as most recently matched by the entire pattern")}:{explanation:(0,Ae.Z)("matches the same text as most recently matched by the entire pattern")}:/^\d+$/.test(e.reference)?e.isSubstitution?{explanation:(0,Ve.jsx)(Ie.vV,{text:"inserts the same text as most recently matched by the {1} capturing group",ph1:Or((0,Hr.Gz)(e.reference))})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches the same text as most recently matched by the {1} capturing group",ph1:Or((0,Hr.Gz)(e.reference))})}:e.isSubstitution?{explanation:(0,Ve.jsx)(Ie.vV,{text:"inserts the same text as most recently matched by the capturing group named {1}",ph1:Or(e.reference)})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches the same text as most recently matched by the capturing group named {1}",ph1:Or(e.reference)})}},ia=function(e){return null===e.reference?{explanation:(0,Ae.Z)("matches the entire pattern")}:/^\d+$/.test(e.reference)?{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches the expression defined in the {1} capture group",ph1:Or((0,Hr.Gz)(e.reference))})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:'matches the expression defined in the capture group "{1}"',ph1:Or(e.reference)})}};function oa(e,t,s){const n=e.codePoint||e.charCode,r=String.fromCodePoint(n);if(e.isSubstitution)return{explanation:(0,Ve.jsx)(Ie.vV,{text:"inserts the character {1} with index {2} ({3} or {4})",ph1:Ir(r),ph2:Or((0,Ve.jsxs)(Ee.Fragment,{children:[n.toString(t).toUpperCase(),(0,Ve.jsx)("sub",{children:t})]})),ph3:Or((0,Ve.jsxs)(Ee.Fragment,{children:[n,(0,Ve.jsx)("sub",{children:"10"})]})),ph4:Or((0,Ve.jsxs)(Ee.Fragment,{children:[n.toString(s).toUpperCase(),(0,Ve.jsx)("sub",{children:s})]}))})};const a=e.flags.includes("i")?(0,Ae.Z)("case insensitive"):(0,Ae.Z)("case sensitive");return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches the character {1} with index {2} ({3} or {4}) literally ({5})",ph1:Ir(r),ph2:Or((0,Ve.jsxs)(Ee.Fragment,{children:[n.toString(t).toUpperCase(),(0,Ve.jsx)("sub",{children:t})]})),ph3:Or((0,Ve.jsxs)(Ee.Fragment,{children:[n,(0,Ve.jsx)("sub",{children:"10"})]})),ph4:Or((0,Ve.jsxs)(Ee.Fragment,{children:[n.toString(s).toUpperCase(),(0,Ve.jsx)("sub",{children:s})]})),ph5:a})}}const la=function(e,t){return t.brief?{explanation:(0,Ve.jsx)("span",{children:(0,Ae.Z)("Inline comment, discarded by the engine when matching the regex")})}:{explanation:(0,Ve.jsxs)("span",{children:[" ",e.comment]}),string:(0,Ae.Z)("Comment")+":"}},ca=function(e){return"UTF"===e.verb.slice(0,3)?{explanation:(0,Ve.jsx)(Ie.vV,{text:"sets the property mode to {1}",ph1:Or("UTF-"+(e.verb.replace(/\D+/g,"")||"16"))})}:"UCP"===e.verb?{explanation:(0,Ae.Z)("sets the property mode to Unicode")}:"NO_START_OPT"===e.verb?{explanation:(0,Ae.Z)("suppresses the start-of-match optimizations that are otherwise run by Perl")}:"CR"===e.verb?{explanation:(0,Ae.Z)("specifies a newline convention: carriage return")}:"LF"===e.verb?{explanation:(0,Ae.Z)("specifies a newline convention: line-feed")}:"CRLF"===e.verb?{explanation:(0,Ve.jsx)(Ie.vV,{text:"specifies a newline convention: {1}, followed by {2}",ph1:Ar("(*CR)"),ph2:Ar("(*LF)")})}:"ANYCRLF"===e.verb?{explanation:(0,Ve.jsx)(Ie.vV,{text:"specifies a newline convention: {1}, {2} or {3}",ph1:Ar("(*CR)"),ph2:Ar("(*LF)"),ph3:Ar("(*CRLF)")})}:"ANY"===e.verb?{explanation:(0,Ve.jsx)(Ie.vV,{text:"specifies a newline convention: all unicode newline sequences {1}",ph1:Ar("(?:\\r\\n|[\\r\\n\\v\\f\\x85\\u2028\\u2029])")})}:"BSR_ANYCRLF"===e.verb?{explanation:(0,Ve.jsx)(Ie.vV,{text:"specifies a newline convention: {1}, {2} or {3} only",ph1:Ar("(*CR)"),ph2:Ar("(*LF)"),ph3:Ar("(*CRLF)")})}:"BSR_UNICODE"===e.verb?{explanation:(0,Ae.Z)("specifies a newline convention: any Unicode newline sequence")}:"MARK"===e.verbType?{explanation:(0,Ae.Z)("marker verb whose main purpose is to track how a match was arrived at")}:"FAIL"===e.verb?{explanation:(0,Ve.jsx)(Ie.vV,{text:"verb synonymous with {1}. Forces a matching failure at the given position in the pattern",ph1:Ar("(?!)")})}:"F"===e.verb?{explanation:(0,Ve.jsx)(Ie.vV,{text:"shorthand for {1}",ph1:Ar("(*FAIL)")})}:"PRUNE"===e.verbType?{explanation:(0,Ae.Z)("this verb causes the match to fail at the current starting position in the subject if the rest of the pattern does not match")}:"COMMIT"===e.verb?{explanation:(0,Ae.Z)("causes the whole match to fail outright if the rest of the pattern does not match")}:"THEN"===e.verbType?{explanation:(0,Ae.Z)("causes a skip to the next innermost alternative if the rest of the pattern does not match")}:"SKIP"===e.verbType?{explanation:(0,Ve.jsx)(Ie.vV,{text:"acts like {1}, except that if the pattern is unanchored, the bumpalong advance is not to the next character, but to the position in the subject where {2} was encountered",ph1:Ar("(*PRUNE)"),ph2:Ar("(*SKIP)")})}:"ACCEPT"===e.verbType?{explanation:(0,Ae.Z)("this verb causes the match to end successfully, skipping the remainder of the pattern")}:"LIMIT_RECURSION"===e.verbType?{explanation:(0,Ae.Z)("this verb sets the recursion limit (max depth) for the pattern")}:"LIMIT_MATCH"===e.verbType?{explanation:(0,Ae.Z)("this verb sets the match limit (max iterations) for the pattern")}:"NO_AUTO_POSSESS"===e.verb?{explanation:(0,Ae.Z)("this verb disables the internal `auto-possessification` optimization in PCRE")}:"NOTEMPTY"===e.verb?{explanation:(0,Ae.Z)("this verb disables matching of empty strings")}:"NOTEMPTY_ATSTART"===e.verb?{explanation:(0,Ae.Z)("this verb disables matching of empty strings at the start of the subject string")}:"NO_JIT"===e.verb?{explanation:(0,Ae.Z)("this verb disables JIT compilation of the pattern")}:{explanation:(0,Ae.Z)("Undescribed specific verb; No description for it yet (nothing's perfect)")}},ua=function(e){return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a backspace character {1}",ph1:Or("(ASCII 8)")})}},da=function(e){const t=e.string,s=e.posixClass,n=e.unicodeEnabled;if(t.includes("^"))return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches the negation of {1}",ph1:Ar(s)})};switch(s){case"ascii":return n?{explanation:(0,Ve.jsx)(Ie.vV,{text:"equivalent to {1}",ph1:Ar("\\p{InBasicLatin}")})}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a character with {1} value {2} through {3}",ph1:Or("ASCII"),ph2:Or("0"),ph3:Or("127")})};case"alnum":return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a alphanumeric character {1}",ph1:Ar(n?"\\p{Xan}":"[a-zA-Z0-9]")})};case"word":return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a alphanumeric character or {1} {2} (also written as {3})",ph1:Or("_"),ph2:Ar(n?"[\\p{Xwd}]":"[A-Za-z0-9_]"),ph3:Ar("\\w")})};case"alpha":return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a alphabetic character {1}",ph1:Ar(n?"\\p{L}":"[a-zA-Z]")})};case"blank":return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a whitespace character, excluding line breaks {1}",ph1:Ar(n?"\\h":"[ \\t]")})};case"cntrl":return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a control character {1}",ph1:Ar(n?"\\p{Cc}":"[\\x00-\\x1F\\x7F]")})};case"digit":return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a digit {1} (also written as {2})",ph1:Ar(n?"\\p{Nd}":"[0-9]"),ph2:Ar("\\d")})};case"graph":return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a visible character {1}",ph1:Ar(n?"[\\pL\\pM\\pN\\pP\\pS\\p{Cf}]":"[\\x21-\\x7E]")})};case"lower":return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a lowercase letter {1}",ph1:Ar(n?"\\p{Ll}":"[a-z]")})};case"print":return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a visible character or the space character {1}",ph1:Ar(n?"[\\pL\\pM\\pN\\pP\\pS\\p{Cf}\\p{Zs}]":"[\\x20-\\x7E]")})};case"punct":return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a punctuation character {1}",ph1:Ar(n?"[\\p{P}\\p{S}]":"[!\"#$%&'()*+,\\-./:;<=>?@[\\]^_`{|}~]")})};case"upper":return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a uppercase letter {1}",ph1:Ar(n?"\\p{Lu}":"[A-Z]")})};case"xdigit":return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a hexadecimal digit {1}",ph1:Ar("[A-Fa-f0-9]")})};case"space":return{explanation:(0,Ve.jsx)(Ie.vV,{text:"matches a whitespace character, including a line break {1} (also written as {2})",ph1:Ar(n?"[\\p{xps}]":"[ \\t\\r\\n\\v\\f]"),ph2:Ar("\\s")})};default:return Ze.O7(new Error(`Unknown posix class '${t}': '${s}'`)),{explanation:null}}};function ha(e){const t=isNaN(e.reference)||null==e.reference?e.reference:(0,Hr.Gz)(e.reference);if(e.backreference)return(0,Ve.jsx)(Ie.vV,{tag:"span",text:"Conditionally matches one of two options depending on whether the {1} capturing group matched",ph1:Or(t)});if(e.subroutine)return null===t&&"R"===e.condition?(0,Ve.jsx)(Ie.vV,{tag:"span",text:"Checks whether the whole pattern matches",ph1:Or(t)}):(0,Ve.jsx)(Ie.vV,{tag:"span",text:"Checks whether the {1} subroutine matches",ph1:Or(t)});throw new Error("Condition type is not specified")}const pa=function(e){const t=e.conditional;return t.lookaround?{explanation:(0,Ae.Z)("Conditionally matches one of two options depending on whether the lookaround matches")}:{explanation:ha(t)}},ga=function(e){return e.isSubstitution?{explanation:(0,Ve.jsx)(Ie.vV,{text:"inserts a vertical tab character {1}",ph1:Or("(ASCII 11)")})}:{explanation:(0,Ae.Z)("matches a vertical tab character")}},ma=function(e){return"\\E"===e.string?{explanation:(0,Ve.jsx)("span",{children:(0,Ae.Z)("Terminates any previous text transformation (initiated with either \\U or \\L)")})}:"\\l"===e.string||"\\u"===e.string?{explanation:(0,Ve.jsx)("span",{children:(0,Ae.Z)("Converts the subsequent token to their {1} equivalence","\\u"===e.string?(0,Ae.Z)("uppercase"):(0,Ae.Z)("lowercase"))})}:{explanation:(0,Ve.jsx)("span",{children:(0,Ve.jsx)(Ie.vV,{text:"Converts all subsequent tokens to their {1} equivalence until {2} is encountered",ph1:"\\U"===e.string?(0,Ae.Z)("uppercase"):(0,Ae.Z)("lowercase"),ph2:Or("\\E")})})}},xa=function(e){return e.string.includes("^")?{explanation:(0,Ae.Z)("matches any character, including newline")}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"empty character class \u2014 matches {1}",ph1:(0,Ve.jsx)("em",{children:(0,Ae.Z)("empty string")})})}};var fa=s(79192);const va=function(e){const t=(0,Ve.jsx)(Ie.qX,{type:fa.u_,children:(0,Ae.Z)("Avoid using this legacy syntax for any new patterns.")});return"[[:<:]]"===e.string?{explanation:(0,Ve.jsx)(Ie.vV,{text:"Matches start of word (POSIX syntax), equivalent to {1}",ph1:Ar("\\b(?=\\w)")}),notice:t}:{explanation:(0,Ve.jsx)(Ie.vV,{text:"Matches end of word (POSIX syntax), equivalent to {1}",ph1:Ar("\\b(?<=\\w)")}),notice:t}},ba=function(e,t){let s;switch(e.type){case Sr.zB:s=t.brief?(0,Ae.Z)("matches the intersection of the tokens to the left and right of this token"):(0,Ae.Z)("that is also present in the sub-list below");break;case Sr.Ao:s=t.brief?(0,Ae.Z)("matches the tokens to the left of this, minus any of the tokens present on the right"):(0,Ae.Z)("that is also not present in the sub-list below");break;case Sr.ix:s=t.brief?(0,Ae.Z)("matches the symmetric difference between the tokens to the left and right of this"):(0,Ae.Z)("that is also present in either the sub-list above or below, but not in both");break;default:throw new Error(`Unable to explain '${e.type}'`)}return t.brief||(s=`\u2026 ${s} \u2026`),{explanation:s}},ja=function(){return{explanation:(0,Ae.Z)("inserts the name from the last encountered backtracking control verb on the matching path that has a name")}};function Ca(e,t){const s=e.token,n=e.string,r=s.type;return r===Sr.MW?Fr(s,t):r===Sr.t0?function(e){return Vr(e,e.string.slice(1),!0)}(s):r===Sr.zl?Gr(s,n):r===Sr.hs?qr(s,t):r===Sr.$U?zr(s,t):r===Sr.RW?Kr(s,t):r===Sr.Pg?function(e){return oa(e,8,16)}(s):r===Sr.bO||r===Sr.L3||r===Sr.Yb?function(e){return oa(e,16,8)}(s):r===Sr.dz?sa(s):r===Sr.lA?na(s):r===Sr.Eb?ra(s):Sr.tK(r)?Jr(s):r===Sr.Wj?$r(s):r===Sr._w||r===Sr.eq?ia(s):r===Sr.WE||r===Sr.O3||r===Sr.bJ||r===Sr.hb?aa(s):r===Sr.qi||r===Sr.jf?la(s,t):r===Sr.vU?ca(s):r===Sr.Yz?pa(s):r===Sr.ZH?ua(s):r===Sr.Tf?ga(s):r===Sr.HI?Xr(s,t):r===Sr.jt?ea(s):r===Sr.be?da(s):r===Sr.jl?xa(s):r===Sr.aM||r===Sr.py?ma(s):r===Sr.XR?va(s):r===Sr.tI||r===Sr.hL||r===Sr.Cz||r===Sr.ul||r===Sr.Ud?Mr(s):r===Sr.zB||r===Sr.Ao||r===Sr.ix?ba(s,t):r===Sr.Bi?ja():(Ze.O7(new Error(`Unable to explain token '${r}': '${n}'`)),{explanation:null})}function Za(e,t={}){if(e.error)return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:(0,Ae.Z)("Error")})," \u2014 ",Lr(e.error)]});const s=Dr(e),n={string:s.string,children:[],nodeLabel:[],token:s};t.brief=!0;const r=s.type===Sr.oK?pa({conditional:s}).explanation:Ca(n,t).explanation;return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("strong",{children:ya(e)})," \u2014 ",r]})}function ya(e){switch(e.type){case Sr.$U:return(0,Ae.Z)("Quote");case Sr.MW:return(0,Ae.Z)("Meta Escape");case Sr.hs:return(0,Ae.Z)("Alternative");case Sr.Wj:return(0,Ae.Z)("Quantifier");case Sr.zl:case Sr.t0:return(0,Ae.Z)("Text");case Sr.Qp:return(0,Ae.Z)("Lonely End Quote");case Sr.dz:return(0,Ae.Z)("Unicode Property");case Sr.Pg:return(0,Ae.Z)("Octal");case Sr.L3:return(0,Ae.Z)("Hex");case Sr.Yb:return(0,Ae.Z)("Unicode");case Sr.RW:return(0,Ae.Z)("Modifier");case Sr.lA:return(0,Ae.Z)("Control Character");case Sr.Tf:return(0,Ae.Z)("Vertical Tab");case Sr.bO:return(0,Ae.Z)("Surrogate Pair");case Sr.eq:case Sr._w:return(0,Ae.Z)("Subroutine");case Sr.O3:case Sr.hb:case Sr.bJ:case Sr.WE:return(0,Ae.Z)("Backreference");case Sr.ZH:return(0,Ae.Z)("Backspace");case Sr.jl:case Sr.HI:case Sr.U6:return(0,Ae.Z)("Character Class");case Sr.jt:return(0,Ae.Z)("Range");case Sr.XR:case Sr.be:return(0,Ae.Z)("Posix Class");case Sr.jf:case Sr.qi:return(0,Ae.Z)("Comment");case Sr.df:case Sr.sS:case Sr.no:case Sr.xT:case Sr.Jy:case Sr.t:case Sr.sr:case Sr.ET:return(0,Ae.Z)("Group");case Sr.Ws:return(0,Ae.Z)("Definition");case Sr.oK:case Sr.w_:return(0,Ae.Z)("Conditional");case Sr.Bi:case Sr.vU:return(0,Ae.Z)("Verb");case Sr.Ty:case Sr.Gs:case Sr.up:case Sr.PG:case Sr.fy:case Sr.qh:return(0,Ae.Z)("Lookaround");case Sr.aM:case Sr.py:return(0,Ae.Z)("Case Modifier");case Sr.Cz:return(0,Ae.Z)("Before Match");case Sr.tI:return(0,Ae.Z)("After Match");case Sr.hL:return(0,Ae.Z)("Full Match");case Sr.zB:return(0,Ae.Z)("Class Intersection");case Sr.Ao:return(0,Ae.Z)("Class Subtraction");case Sr.ix:return(0,Ae.Z)("Class Symmetric Difference");case Sr.ul:return(0,Ae.Z)("Last Group");case Sr.Ud:return(0,Ae.Z)("Input String");default:Ze.O7(Error(`Unable to map title for '${e.type}'`))}}const Ea=e=>{const t=[];let s=null;for(let n=0,r=e.length;n<r;n++){const r=e[n],a=r.string,i=r.style,o=r.position;if(!a)continue;const l=o.start,c=o.end,u={string:a,style:i,position:{start:l,end:c}};s&&s.style===u.style?(s.string+=u.string,s.position.end=c):(t.push(u),s=u)}return t},Ta="N3KUM",ka="mBF1Z",Na=({className:e,tokens:t})=>{const s=Ea(t);return 0===s.length?null:(0,Ve.jsx)("div",{className:_e()("zlDez",e),children:s.map((({string:e,style:t},s)=>{const n=`node-label-token-${s}`;return t?(0,Ve.jsx)("span",{className:t,children:(0,Ve.jsx)(Ie.K,{text:e,minimal:!0})},n):(0,Ve.jsx)(Ie.K,{text:e,minimal:!0},n)}))})},Sa=(0,Ee.memo)(Na),_a=({tokenWrapper:e,explanation:t,notice:s,className:n})=>{const r=e.token;if(r.type===Sr.Yz)return(0,Ve.jsx)("strong",{children:t});const a=(0,Ve.jsx)(Sa,{tokens:e.nodeLabel,className:n});return Sr.Bx(r.type)||r.type===Sr.Eb?(0,Ve.jsxs)("span",{className:_e()(Ta,"bF_Mj"),children:[t," ",a,s]}):(0,Ve.jsxs)("span",{className:Ta,children:[a," ",t,s]})},wa=(0,Ee.memo)(_a),Aa=({tokens:e,tokenCounter:t,alternatives:s,maxExpandedTokens:n})=>e.map(((r,a)=>{const i=r.token,o=Ca(r,{alternatives:s}),l=o.explanation,c=o.children,u=o.notice,d=o.string;if(!l)return(0,Ve.jsx)(Aa,{tokens:r.children,tokenCounter:t,alternatives:s,maxExpandedTokens:n},`only-children-${a}`);if(i.children.length>0||Sr.Bx(i.type)){const e=r.children.length,t=r.children[0];if(0===e||1===e&&t.token.type===Sr.Wj||1===e&&t.token.type===Sr.hs&&0===t.children.length){const e=!Sr.Az(i.type),t=i.type===Sr.Ty||i.type===Sr.up?(0,Ae.Z)("{1} always fails to match","\u2014"):(0,Ae.Z)("{1} always finds a zero-length match","\u2014");return(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)(wa,{tokenWrapper:r,explanation:l})," ",t,e?u:""]},`null-match-${i.string}-${a}`)}}const h=i.type===Sr.zl,p=!!i.quantifier,g=d||r.string,m=h&&/^\s+$/.test(g);if(r.children.length>(h&&!p?1:0)||h&&p||Sr.Bx(i.type)||c&&0!==c.length)return(0,Ve.jsxs)(kr,{nodeLabel:(0,Ve.jsx)(wa,{tokenWrapper:r,explanation:l,notice:u,className:_e()(m&&ka)}),defaultCollapsed:h&&!p||t.count++>n,children:[c,(0,Ve.jsx)(Aa,{tokens:r.children,tokenCounter:t,alternatives:s,maxExpandedTokens:n})]},`treeview-parent-${i.children.length}-${a}`);if(Sr.gg(i.type)){const t=(e[a+1]||{}).token;return(null==t?void 0:t.type)===Sr.HI?null:(0,Ve.jsxs)("strong",{children:[l,u]},`token-explanation-${i.string}-${a}`)}return(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("span",{className:_e()(i.style,"uNm38",m&&ka),children:(0,Ve.jsx)(Ie.K,{text:g,removeNewlines:!0,minimal:!0})})," ",l,u]},`token-explanation-${i.string}-${a}`)})),Oa=Aa,Ia=({tokens:e})=>(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ie.qX,{children:(0,Ae.Z)("All the errors detected are listed below, from left to right, as they appear in the pattern.")}),Pr(e)]}),Ra=(e,t,s)=>{let n=null;for(let r=0,a=t.length;r<a;r++){const a=t[r];if(s.has(a))continue;if(s.set(a,!0),Ma(e,a),a.type===Sr.U6||a.type===Sr.Wj||Sr.tK(a.type)&&")"===a.string||a.partOfRange)continue;const i=Pa(e,a);if(a.quantifier){const e=Pa(i,a.quantifier);a.quantifier.quantifier&&(e.string+=a.quantifier.quantifier.string),i.children.push(e)}else if(La(a)){const e=n.token.ignoreToken&&!a.ignoreToken;if(e&&(n.token=a),0===n.children.length){const t=e?i:n;n.children.push(Object.assign(Object.assign({},t),{},{children:[]}))}!(e||a.ignoreToken||a.inCharClass&&n.string.includes(a.string))&&n.children.push(i),n.string+=a.string,n.nodeLabel.push(a);continue}if(e.children.push(i),a.type===Sr.oK){const e={children:[],conditional:a,type:Sr.Yz,string:"",state:a.state};a.lookaround&&e.children.push(a.condition),Ra(i,[e].concat(a.children),s)}else a.type!==Sr.zl&&Ra(i,a.children,s);n=i;const o=n.token;if(o.quantifier&&Sr.tK(o.type)){const a=o.quantifier.quantifier||o.quantifier;for(let i=r+1;i<t.length;i++){const r=t[i];if(Ma(n,r),s.set(r,!0),r.ignoreToken||r.type===Sr.Wj||e.children.push(Pa(e,r)),r===a)break}}}},Pa=(e,t)=>({parent:e,string:t.string,children:[],nodeLabel:t.type!==Sr.hs?[t]:[],token:t}),La=e=>{const t=e.adjacentToken;return t&&e.type===Sr.zl&&t.type===Sr.zl&&!e.quantifier&&!e.partOfRange&&!t.partOfRange&&!e.isPoorlyPlaced&&!t.isPoorlyPlaced},Ma=(e,t)=>{null!=e.parent&&Ma(e.parent,t),e.nodeLabel.push(t)},Da=(e,t)=>{switch(e){case x().PYTHON:return[`r${t}`,t];case x().RUST:const e='"'===t;return["r"+(e?'"':`${t}"`),e?'"':`"${t}`];case x().DOTNET:return[`@${t}`,t];default:return[t,t]}},Ua="XsOAS",Fa=({flavor:e,flags:t,tokens:s,delimiter:n})=>{const r=Da(e,n),a=(0,Re.Z)(r,2),i=a[0],o=a[1];return(0,Ve.jsxs)("div",{className:"NC6ky",children:[(0,Ve.jsx)("div",{className:_e()("taqI9",Ua),children:i}),(0,Ve.jsx)(Sa,{className:"kevho",tokens:s}),(0,Ve.jsx)("div",{className:_e()("V9YRK",Ua),children:o}),(0,Ve.jsx)("div",{className:"m1_F1",children:t})]})},Ga=(0,Ee.memo)(Fa),Va=["tokens"],Ba=e=>{let t=e.tokens,s=(0,E.Z)(e,Va);const n=t.reduce(((e,t)=>e.concat(t.token.type===Sr.hs?t.token:[],t.nodeLabel)),[]);return(0,Ve.jsx)(Ga,Object.assign({tokens:n},s))},$a=({regex:e,flags:t,delimiter:s,flavor:n,className:r})=>{const a=(0,Nr.Z)(e,{flags:t,delimiter:s,flavor:n}),i=a.tokens,o=a.state,l=a.patternError,c=((e,t)=>{const s=new WeakMap,n=Pa(null,{string:"",type:Sr.hs,children:[]});return Ra(n,e,s),t&&n.children.push({children:[],nodeLabel:[],token:{type:Sr.Eb,globalFlags:t,flavor:e[0].flavor,children:[]}}),n.children})(i,t);return(0,Ve.jsx)("div",{className:r,children:(0,Ve.jsx)(kr,{nodeLabel:(0,Ve.jsx)(Ba,{tokens:c,delimiter:s,flags:t,flavor:n}),children:l?(0,Ve.jsx)(Ia,{tokens:i}):(0,Ve.jsx)(Oa,{tokens:c,tokenCounter:{count:0},alternatives:o.alternatives,maxExpandedTokens:25})})})},Ha=(0,Ee.memo)($a),qa=({text:e})=>(0,Ve.jsx)("div",{className:"AOv9F",children:e}),za=(0,Ee.memo)(qa),Wa=({regex:e,flavor:t,delimiter:s,flags:n})=>null==e||0===e.length?(0,Ve.jsx)(za,{text:(0,Ae.Z)("An explanation of your regex will be automatically generated as you type.")}):(0,Ve.jsx)(Ha,{regex:e,flavor:t,delimiter:s,flags:n,className:"IrE8B"});var Ya=s(56264);const Ka={matchData:"amvtn",textTruncated:"MjTIZ",didNotParticipate:"aSQIC",groupNum:"TrT00",clickable:"N9b7Q",matchPos:"CPj3q",groupName:"fxJfD",row:"IoDqL",groupText:"Q8YiL","group-0":"BX3FE","group-1":"znTgg","group-2":"v1n1J","group-3":"CXLa2","group-4":"nmqJh","group-5":"T_XLc","group-6":"m94jE","group-0-alt":"KzxFx","group-1-alt":"dftGW","group-2-alt":"GDx0h","group-3-alt":"zOJvb","group-4-alt":"EMlAx","group-5-alt":"heE6F","group-6-alt":"UpMUh"},Ja=({group:e,evenMatch:t,showNonParticipatingGroups:s,matchNumber:n})=>{const r=(0,Ee.useState)(!1),a=(0,Re.Z)(r,2),i=a[0],o=a[1],l=(0,Ee.useCallback)((()=>Oe.ZP.emit(Oe.ji,e)),[e]),c=(0,Ee.useCallback)((()=>o((e=>!e))),[]),u=(0,Te.v9)((e=>e.regexAreaParser.captureGroupMap));if(!e.isParticipating&&!s)return null;const d=Ka[`group-${(e.groupNum-1)%R.GROUP_COUNT+1}${t?"":"-alt"}`],h=void 0!==e.start&&e.isParticipating?`${e.start}-${e.end}`:"n/a",p=i?e.content:function(e,t=20){if(null==e)return"";const s=e.match(new RegExp(`^.*${"\\n[^\\n]*".repeat(4)}\\n`));if(s){const t=Math.min(s.index+s[0].length-1,100);return e.slice(0,t)+"..."}return e.length>t+3?e.slice(0,t)+"...":e}(e.content,100),g=null!=e.content&&(e.content.length>100||(e.content.match(/\n/g)||[]).length>=5);return(0,Ve.jsxs)("tr",{className:_e()(Ka.row,!e.isParticipating&&Ka.didNotParticipate),children:[(0,Ve.jsx)(Ie.Yd,{tag:"td",disabled:null==e.start||!e.isParticipating,className:_e()(Ka.groupNum,null!=e.start&&e.isParticipating&&Ka.clickable),onClick:l,children:0===e.groupNum?(0,Ve.jsx)(Ie.vV,{text:"Match {1}",ph1:(0,Ve.jsx)("span",{className:Ka.groupName,children:n}),className:_e()(Ka.groupText,d)}):(0,Ve.jsx)(Ie.vV,{text:"Group {1}",ph1:(0,Ve.jsxs)("span",{className:Ka.groupName,children:[e.groupName||u[e.groupNum],null!=e.captureNum&&-1!==e.captureNum&&`.${e.captureNum+1}`]}),className:_e()(Ka.groupText,d)})}),(0,Ve.jsx)("td",{className:Ka.matchPos,children:h}),(0,Ve.jsx)("td",{className:_e()(Ka.matchData,g&&Ka.textTruncated),onClick:g?c:null,children:e.isParticipating?""===p?(0,Ve.jsx)("em",{children:(0,Ae.Z)("empty string")}):(0,Ve.jsx)(Ie.K,{text:p}):(0,Ae.Z)("group did not participate in match")})]})},Xa=(0,Ee.memo)(Ja),Qa=({groups:e,matchId:t,showNonParticipatingGroups:s,isLast:n})=>(0,Ve.jsx)("div",{className:_e()(!n&&"YXXyK"),children:(0,Ve.jsx)("table",{className:"EFPn1",children:(0,Ve.jsx)("tbody",{children:e.map(((e,n)=>(0,Ve.jsx)(Xa,{group:e,showNonParticipatingGroups:s,evenMatch:t%2==0,matchNumber:t+1},`match-${t}-group-${n}`)))})})}),ei="IRvGa",ti="LLQ0z",si=({matchError:e})=>{switch(e){case yt.Y8:return(0,Ve.jsx)(Ie.vV,{tag:"div",className:ti,text:"Unable to initialize the regex engine! Please try to reload the web page. If the issue persists, please open an issue here: {1}",ph1:(0,Ve.jsx)(Ie.rU,{to:"https://github.com/firasdib/Regex101/issues",absolute:!0,children:"https://github.com/firasdib/Regex101/issues"})});case yt.D9:return(0,Ve.jsx)("div",{className:ti,children:(0,Ae.Z)("Your pattern contains one or more errors, please see the explanation section above.")});case yt.ik:return(0,Ve.jsxs)("div",{className:ti,children:[(0,Ve.jsx)("div",{children:(0,Ae.Z)("Your expression took too long to finish and was terminated. Please increase the timeout and try again.")}),(0,Ve.jsx)("br",{}),(0,Ve.jsxs)("div",{children:[(0,Ae.Z)("This may be an indication of catastrophic backtracking. To find out more and what this is, please read the following article:")," ",(0,Ve.jsx)(Ie.rU,{to:"http://www.regular-expressions.info/catastrophic.html",absolute:!0,children:"Runaway Regular Expressions"})]})]});case yt.wm:case yt.VE:return(0,Ve.jsxs)("div",{className:ti,children:[(0,Ae.Z)("Catastrophic backtracking has been detected and the execution of your expression has been halted. To find out more and what this is, please read the following article:")," ",(0,Ve.jsx)(Ie.rU,{to:"http://www.regular-expressions.info/catastrophic.html",absolute:!0,children:"Runaway Regular Expressions"}),(0,Ve.jsx)("br",{}),(0,Ve.jsx)("br",{}),(0,Ve.jsx)(Ie.Yi,{className:ei,children:(0,Ae.Z)("Try launching the debugger to find out why.")})]});case yt.Fo:case yt.ek:return(0,Ve.jsx)("div",{className:ti,children:(0,Ae.Z)("The match was halted because the offset does not point to the beginning of a valid UTF-16 character.")});case yt.Vu:case yt.e0:return(0,Ve.jsx)("div",{className:ti,children:(0,Ae.Z)("The match was halted because your expression contains a recursive loop. This means either that the whole pattern, or a subpattern, has been called recursively for the second time at the same position in the subject string.")});case yt.UA:case yt.Rp:return(0,Ve.jsx)("div",{className:ti,children:(0,Ae.Z)("The internal recursion limit was reached.")});case yt.Gv:return(0,Ve.jsxs)("div",{className:ti,children:[(0,Ae.Z)("The Java regex engine reached the maximum call stack size."),(0,Ve.jsx)("br",{}),(0,Ve.jsx)("br",{}),(0,Ae.Z)("This is due to the fact that the regex engine is implemented using recursion, and is severely limited by it.")," ",(0,Ae.Z)("This indicates that your expression is not optimized for Java, and you are likely to run into similar issues in your Java code.")]});default:return(0,Ve.jsxs)("div",{className:ti,children:[(0,Ae.Z)("Your expression caused an unhandled error:"),(0,Ve.jsx)("br",{}),(0,Ve.jsx)("br",{})," ",(0,Ve.jsx)("strong",{children:e})]})}},ni=(0,Ee.memo)(si),ri=({className:e,children:t})=>(0,Ve.jsx)("label",{className:_e()("luECo",e),children:t}),ai=(0,Ee.memo)(ri),ii="JSON",oi="CSV",li="TEXT",ci=function(e,t,s){const n=function(e,t){return e.map((e=>e.map((e=>{const s=e.start,n=e.end,r=e.content,a=e.isParticipating,i=e.groupNum,o=e.groupName;if(!t&&0===i)return null;let l={content:r,isParticipating:a,groupNum:i,groupName:o};return null!=e.start&&(l=Object.assign(Object.assign({},l),{},{startPos:s,endPos:n})),l})).filter(Boolean)))}(t,s);switch(e){case ii:return JSON.stringify(n,null,2);case oi:return function(e){let t="",s=!1;return e.forEach(((e,n)=>{e.forEach((e=>{t+=n+1+","+(null!=e.groupName?e.groupName:e.groupNum)+","+(e.isParticipating?"yes":"no")+",",null!=e.startPos&&(t+=e.startPos+","+e.endPos+",",s=!0),null!=e.content&&(-1!==e.content.indexOf(",")?t+=`"${e.content.replace(/"/g,'""')}"`:t+=e.content),t+="\n"}))})),"match,group,is_participating"+(s?",start,end":"")+",content\n"+t}(n);default:return function(e){return e.map((e=>e.filter((e=>e.isParticipating)).map((e=>e.content)).join("\n"))).join("\n")}(n)}},ui=({matchData:e,isOpen:t,onModalClose:s})=>{const n=(0,Ee.useState)(ii),r=(0,Re.Z)(n,2),a=r[0],i=r[1],o=(0,Ee.useState)(!0),l=(0,Re.Z)(o,2),c=l[0],u=l[1],d=(0,Ee.useRef)(null);return(0,Ve.jsxs)(Ye.Z,{onModalClose:s,isOpen:t,className:"icDzB",children:[(0,Ve.jsx)(Ke.Z,{children:(0,Ae.Z)("Export Matches")}),(0,Ve.jsx)(Je.Z,{children:(0,Ve.jsxs)("div",{className:"xTEgj",children:[(0,Ve.jsx)(Ie.gx,{header:(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Export Method")}),className:"Nt7kG",children:(0,Ve.jsxs)(xt.Z,{children:[(0,Ve.jsx)(mt.Z,{isActive:a===ii,icon:"file-code",onClick:()=>i(ii),children:"JSON"}),(0,Ve.jsx)(mt.Z,{isActive:a===oi,icon:"file-excel",onClick:()=>i(oi),children:"CSV"}),(0,Ve.jsx)(mt.Z,{isActive:a===li,icon:"doc-text",onClick:()=>i(li),children:(0,Ae.Z)("Plain Text")})]})}),(0,Ve.jsx)(Ie.gx,{className:"CtTH_",header:(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Data")}),children:(0,Ve.jsxs)("div",{className:"zES36",children:[(0,Ve.jsxs)(rr.Z,{className:"uzmGU",ref:d,children:[t&&ci(a,e,c),(0,Ve.jsx)(Ie.Tv,{topPadding:5,rightPos:5,children:(0,Ve.jsx)(Ie.qi,{getCopyComponent:()=>d.current})})]}),(0,Ve.jsxs)(ai,{className:"NgTKU",children:[(0,Ve.jsx)("input",{type:"checkbox",checked:c,onChange:()=>u(!c)}),(0,Ae.Z)("Include full match in exported data")]})]})})]})}),(0,Ve.jsx)(Xe.Z,{children:(0,Ve.jsx)(Ie.zx,{text:(0,Ae.Z)("Close"),onClick:s,type:He.V5.n1})})]})},di=({matchData:e})=>{const t=(0,Ee.useState)(!1),s=(0,Re.Z)(t,2),n=s[0],r=s[1],a=(0,Ee.useCallback)((()=>r(!0)),[]),i=(0,Ee.useCallback)((()=>r(!1)),[]);return(0,Ve.jsx)(Ie.Tv,{children:(0,Ve.jsxs)(Ie.Yd,{onClick:a,className:"eUlm1",children:[(0,Ve.jsx)("span",{className:"YIKin",children:(0,Ae.Z)("Export Matches")})," ",(0,Ve.jsx)(Ct.bwQ,{size:16}),(0,Ve.jsx)(ui,{isOpen:n,onModalClose:i,matchData:e})]})})},hi=()=>{const e=(0,Te.v9)((e=>e.regexEditor.matchResult)),t=(0,Te.v9)((e=>e.regexEditor.regex)),s=(0,Te.v9)((e=>e.regexEditor.error)),n=(0,Te.v9)((e=>e.settings.nonParticipatingGroups)),r=(0,Ee.useState)(25),a=(0,Re.Z)(r,2),i=a[0],o=a[1],l=(0,Ee.useRef)(),c=(0,Ee.useCallback)((()=>{if(null==l.current)return;const t=l.current,s=t.scrollTop,n=t.scrollHeight,r=t.offsetHeight;e.length>i&&s>=.9*(n-r)&&o((e=>2*e))}),[i,e.length]),u=(0,Ee.useMemo)((()=>{const t=[],s=Math.min(i,e.length);for(let r=0;r<s;r++){const a=e[r];t.push((0,Ve.jsx)(Qa,{groups:a,matchId:r,showNonParticipatingGroups:n,isLast:r===i||r+1===s},`match-${r}`))}return t}),[e,i,n]);return null!=s?(0,Ve.jsx)(ni,{matchError:s}):""===t?(0,Ve.jsx)(za,{text:(0,Ae.Z)("Detailed match information will be displayed here automatically.")}):0===e.length?(0,Ve.jsxs)("div",{className:"muBVf",children:[(0,Ae.Z)("Your regular expression does not match the subject string."),(0,Ve.jsx)(Ya.Z,{className:ei,children:(0,Ae.Z)("Try launching the debugger to find out why.")})]}):0===u.length?(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("div",{children:(0,Ae.Z)("No match groups were extracted.")}),(0,Ve.jsx)("div",{className:"FfuRb",children:(0,Ae.Z)("This means that your pattern did match but there were no capturing groups that matched anything in the subject string.")})]}):(0,Ve.jsxs)("div",{className:"b62Ye",onScroll:c,ref:l,children:[(0,Ve.jsx)(di,{matchData:e}),u]})},pi=se()?(0,Ee.lazy)((()=>Promise.all([s.e(483),s.e(653)]).then(s.bind(s,5036)))):()=>{},gi=e=>{const t=(0,Ve.jsx)("div",{children:(0,Ve.jsx)("div",{className:"_0eAtQ",children:(0,Ve.jsx)(Ie.$j,{})})});return(0,Ve.jsx)(Ie.I2,{fallback:t,children:(0,Ve.jsx)(pi,Object.assign({},e))})},mi=({subsection:e,children:t,title:s,resizable:n,id:r})=>{const a=(0,Te.I0)(),i=(0,Te.v9)((e=>e.rightSidebar.visibleSections)),o=(0,Ee.useCallback)((()=>{a((0,X.SD)(e)),a((0,X.Ot)())}),[a,e]),l=i.includes(e);return(0,Ve.jsx)(Ie.gx,{className:_e()("P3VvM",n&&"DIFDZ",!l&&"Z1_qK"),header:(0,Ve.jsx)(Ie.FX,{collapsed:!l,text:s,className:"fpGbf",onClick:o}),contentClassName:"a0ZUJ",isVisible:l,id:r,children:t})},xi="CsAbs",fi="_lvMT",vi=(0,lt.Z)(ct.s_),bi={appear:xi,appearActive:fi,enter:xi,enterActive:fi,exit:"mpimk",exitActive:"CTDda"},ji=({children:e})=>{const t=(0,Ee.useRef)(),s=(0,Ee.useState)(!1),n=(0,Re.Z)(s,2),r=n[0],a=n[1],i=(0,Ee.useCallback)((()=>a(!0)),[]),o=(0,Ee.useCallback)((e=>{null!=t.current&&t.current.contains(e.target)||a(!1)}),[]);return(0,Ee.useEffect)((()=>{const e=()=>a(!1);return Oe.ZP.on("key:escape",e),()=>Oe.ZP.off("key:escape",e)}),[]),(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)(Hn,{tooltipDirection:He.qF.SW,tooltipText:(0,Ae.Z)("Show Sidebar"),onClick:i,className:"Vg44D"}),(0,Ve.jsx)(Ie.h_,{isOpen:r,closeTimeout:vi,children:(0,Ve.jsx)(Ie.uT,{className:"NtTXe",classNames:bi,timeout:vi,in:r,children:(0,Ve.jsx)(Ie.iQ,{children:(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("div",{className:"jJmso",onClick:o,onTouchEnd:o}),(0,Ve.jsx)("nav",{ref:t,className:"KwIMW",children:e})]})})})})]})},Ci=["title","children"],Zi=e=>{let t=e.title,s=e.children,n=(0,E.Z)(e,Ci);return(0,Ve.jsxs)("div",Object.assign(Object.assign({className:"uYpkX"},n),{},{children:[(0,Ve.jsx)(Ie.__,{text:t,className:"F61ks"}),(0,Ve.jsx)("div",{className:"MY46R",children:s})]}))},yi=({subsections:e})=>{const t=(0,Te.I0)(),s=(0,Te.v9)((e=>e.rightSidebar.activeSubsection));return(0,Ve.jsx)("div",{className:"JPMcE",children:e.map((e=>{const n=e.tooltip,r=e.icon,a=e.key;return(0,Ve.jsx)(Ie.hU,{onClick:()=>t((0,X.hK)(a)),size:34,tooltip:n,tooltipDirection:He.qF.SE,className:_e()("CoQ5Y",s===a&&"Cikzv"),children:(0,Ve.jsx)(r,{size:18})},`smallRightSidebarBtn-${a}`)}))})},Ei=parseFloat(Ue.D6),Ti=()=>{const e=(0,Te.v9)((e=>e.rightSidebar.activeSubsection)),t=(0,Te.v9)((e=>e.regexEditor.delimiter)),s=(0,Te.v9)((e=>e.regexEditor.flags)),n=(0,Te.v9)((e=>e.regexEditor.regex)),r=(0,Te.v9)((e=>e.regexEditor.flavor));switch(e){case c:return(0,Ve.jsx)(Zi,{title:(0,Ae.Z)("Explanation"),children:(0,Ve.jsx)(Wa,{regex:n,flags:s,delimiter:t,flavor:r})});case u:return(0,Ve.jsx)(Zi,{title:(0,Ae.Z)("Match Information"),children:(0,Ve.jsx)(hi,{})});case d:return(0,Ve.jsx)(Zi,{title:(0,Ae.Z)("Quick Reference"),id:"quickrefParent",children:(0,Ve.jsx)(gi,{})});default:throw new Error(`Unknown subsection '${e}'`)}},ki=()=>{const e=(0,we.Sj)(Ei),t=(0,Te.v9)((e=>e.regexEditor.showUnitTestArea)),s=(0,Te.v9)((e=>e.settings.alwaysCollapseRightSidebar)),n=(0,Te.v9)((e=>e.regexEditor.delimiter)),r=(0,Te.v9)((e=>e.regexEditor.flags)),a=(0,Te.v9)((e=>e.regexEditor.regex)),i=(0,Te.v9)((e=>e.regexEditor.flavor));if(s||e.width<Ei){const e=[{tooltip:(0,Ae.Z)("View Explanation"),icon:Ct.UCm,key:c}];return t||e.push({tooltip:(0,Ae.Z)("View Match Information"),icon:qs.n2W,key:u}),e.push({tooltip:(0,Ae.Z)("View Regex Quick Reference"),icon:Pe.CA9,key:d,id:"quickrefParent"}),(0,Ve.jsxs)(ji,{children:[(0,Ve.jsx)(yi,{subsections:e}),(0,Ve.jsx)(Ti,{})]})}return(0,Ve.jsxs)(Er,{children:[(0,Ve.jsx)(mi,{title:(0,Ae.Z)("Explanation"),subsection:c,resizable:!0,children:(0,Ve.jsx)(Wa,{regex:a,flags:r,delimiter:n,flavor:i})}),!t&&(0,Ve.jsx)(mi,{title:(0,Ae.Z)("Match Information"),subsection:u,resizable:!0,children:(0,Ve.jsx)(hi,{})}),(0,Ve.jsx)(mi,{title:(0,Ae.Z)("Quick Reference"),subsection:d,id:"quickrefParent",children:(0,Ve.jsx)(gi,{})})]})},Ni=({result:e,className:t})=>{if(null==e.time&&null==e.steps)return null;const s=Math.round(1e3*e.time)/1e3;return(0,Ve.jsxs)("div",{className:t,children:[null!=e.error&&(0,Ve.jsx)("div",{className:"eFWYj",children:e.error}),(0,Ve.jsx)(Ie.vV,{tag:"div",text:"Test finished in {1}{2}",ph1:null!=e.steps?`${e.steps} ${1===e.steps?(0,Ae.Z)("step"):(0,Ae.Z)("steps")}`:(0,Ae.Z)("approximately {1} ms",s),ph2:null!=e.steps?`, ${(0,Ae.Z)("approximately {1} ms",s)}`:""})]})},Si="qI7UZ",_i="tfiLD",wi="eoxGV",Ai=({disabled:e,isFirstItem:t,isLastItem:s,testNumber:n,className:r})=>{const a=(0,Te.I0)(),i=(0,Ee.useCallback)((()=>a((0,X.ew)(n,n+1))),[n,a]),o=(0,Ee.useCallback)((()=>a((0,X.ew)(n,n-1))),[n,a]),l=(0,Ee.useCallback)((()=>a((0,X.K_)(n))),[n,a]),c=(0,Te.v9)((e=>(0,zs.G)(e.regexEditor.flavor)));return(0,Ve.jsxs)("div",{className:_e()("sdZCP",r),children:[(0,Ve.jsx)(Ie.lx,{text:(0,Ae.Z)("Move down"),direction:He.qF.N,children:(0,Ve.jsx)(Ie.Yd,{onClick:i,disabled:s||e,className:_e()(Si,(s||e)&&_i),children:(0,Ve.jsx)(Pe.ebp,{size:22})})}),(0,Ve.jsx)(Ie.lx,{text:(0,Ae.Z)("Move up"),direction:He.qF.N,children:(0,Ve.jsx)(Ie.Yd,{onClick:o,disabled:t||e,className:_e()(Si,(t||e)&&_i),children:(0,Ve.jsx)(Pe.Tvk,{size:22})})}),c&&(0,Ve.jsx)(Ie.lx,{text:(0,Ae.Z)("Debug Test"),direction:He.qF.N,children:(0,Ve.jsx)(Ie.rU,{to:`debugger?testId=${n}`,className:_e()(Si,wi),noTheme:!0,children:(0,Ve.jsx)(Pe.RwU,{size:18})})}),(0,Ve.jsx)(Ie.lx,{text:(0,Ae.Z)("Delete"),direction:He.qF.NW,children:(0,Ve.jsx)(Ie.Yd,{onClick:l,disabled:e,className:_e()(Si,wi,e&&_i),children:(0,Ve.jsx)(Pe.M$4,{size:18})})})]})};var Oi=s(96546),Ii=s(16386);const Ri=(e,t)=>{let s;return null==e||e===Oi.m?s=[Ii.FS,Ii.Xg]:(s=[Ii.u0,Ii.wU,Ii.DC,Ii.xz],t!==x().GOLANG&&"0"!==e&&s.push(Ii.GU)),s.map((e=>({value:e,text:Ii.VO[e]})))},Pi=({onChange:e,currentTarget:t})=>{const s=(0,Ee.useRef)(null),n=(0,Te.v9)((e=>e.regexAreaParser.captureGroupCount)),r=(0,Te.v9)((e=>e.regexAreaParser.definedSubpatterns)),a=(0,Te.v9)((e=>e.regexAreaParser.captureGroupMap)),i=(0,Ee.useState)(!1),o=(0,Re.Z)(i,2),l=o[0],c=o[1],u=((e=0,t,s)=>{const n=[{value:Oi.m,text:Oi.H(Oi.m)},{value:0,text:Oi.H(0)}];for(let r=0;r<e;r++){const e=r+1;t.includes(r)||n.push({value:e,text:Oi.H(e,s)})}return n})(n,r,a);return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ie.CP,{onClick:()=>c(!0),ref:s,disabled:l,children:(0,Oi.H)(t,a)}),(0,Ve.jsxs)(os,{isOpen:l,onMenuClose:()=>c(!1),target:s.current,closeOnClick:!0,children:[(0,Ve.jsx)(fs,{text:(0,Ae.Z)("Select target")}),(0,Ve.jsx)(vs,{}),u.map((s=>(0,Ve.jsx)(gs,{isActive:s.value==t,onClick:()=>e(s.value),children:s.text},`test-target-${s.value}`)))]})]})},Li=({onChange:e,currentTarget:t,currentCriteria:s})=>{const n=(0,Te.v9)((e=>e.regexEditor.flavor)),r=(0,Ee.useRef)(null),a=Ri(t,n),i=(0,Ee.useState)(!1),o=(0,Re.Z)(i,2),l=o[0],c=o[1];return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ie.CP,{onClick:()=>c(!0),ref:r,disabled:l,children:Ii.VO[s]}),(0,Ve.jsxs)(os,{isOpen:l,onMenuClose:()=>c(!1),target:r.current,closeOnClick:!0,children:[(0,Ve.jsx)(fs,{text:(0,Ae.Z)("Select assertion")}),(0,Ve.jsx)(vs,{}),a.map((t=>(0,Ve.jsx)(gs,{isActive:t.value===s,onClick:()=>e(t.value),children:t.text},`test-criteria-${t.value}`)))]})]})},Mi="QChMj",Di=e=>{return 0===(e||"").length?(0,Ve.jsx)("em",{className:Mi,children:(0,Ae.Z)("empty string")}):(0,Ve.jsx)("span",{className:Mi,children:(0,Ve.jsx)(Ie.K,{text:(t=e||"",t.length>40?t.slice(0,40)+String.fromCharCode(8230):t)})});var t},Ui=({test:e})=>{const t=(0,Te.v9)((e=>e.regexAreaParser.captureGroupMap)),s=e.description,n=e.testString,r=e.target,a=e.criteria,i=e.compareString;return s||(0,Ve.jsx)(Ie.vV,{text:"given the string {1} assert that {2} {3} {4}",ph1:Di(n),ph2:Oi.H(r,t),ph3:Ii.VO[a],ph4:null==r||r===Oi.m?"":Di(i)})},Fi="RRgDA",Gi="wdfE9",Vi="zr88s",Bi="FHCCK",$i="n3dVL",Hi=({testKey:e,testNumber:t,viewDetails:s,onViewDetailsClick:n,existingTest:r={},isLastItem:a,isFirstItem:i,result:o={}})=>{const l=(0,Te.I0)(),c=(0,Te.v9)((e=>e.unitTests.testsRunning)),u=(0,Te.v9)((e=>e.settings.defaultTabBehavior)),d=r.description,p=r.testString,g=r.compareString,m=r.target,x=r.criteria,f=o.hasError,v=(0,Ee.useRef)(null),b=(0,Ee.useState)(d||""),j=(0,Re.Z)(b,2),C=j[0],Z=j[1],y=(0,Ee.useState)(p||""),E=(0,Re.Z)(y,2),T=E[0],k=E[1],N=(0,Ee.useState)(g||""),S=(0,Re.Z)(N,2),_=S[0],w=S[1],A=(0,Ee.useState)(m),O=(0,Re.Z)(A,2),I=O[0],R=O[1],P=(0,Ee.useState)(x),L=(0,Re.Z)(P,2),M=L[0],D=L[1],U=(0,we.Sf)(((e,t)=>l(function(e,t){return{type:h.LM,value:{testKey:e,test:t}}}(e,t))),500),F=(0,Ee.useCallback)((e=>{if(!u&&9===e.keyCode&&!e.shiftKey){e.preventDefault(),e.stopPropagation();const t=e.target,s=t.selectionStart,n=t.selectionEnd,r=t.value,a=r.substring(0,s)+"\t"+r.substring(n);e.target.selectionStart=e.target.selectionEnd=s+1,k(a)}}),[u]);(0,Ee.useEffect)((()=>{s&&v.current.focus()}),[s]),(0,we.vI)((()=>{U(e,{description:C,testString:T,compareString:_,target:I,criteria:M})}),[e,U,C,T,_,I,M]);const G=!1===f,V=f;return(0,Ve.jsxs)("div",{className:_e()("_mdci",V&&Gi,G&&Fi),children:[(0,Ve.jsx)(Ie.Yd,{className:"CIpAk",onClick:()=>n(e),tag:"div","aria-label":s?(0,Ae.Z)("Expand test"):(0,Ae.Z)("Collapse test"),children:s?(0,Ve.jsx)(Pe.ebp,{size:22}):(0,Ve.jsx)(Pe.jZo,{size:22})}),!s&&(0,Ve.jsxs)("div",{className:"bjIoO",children:[(0,Ve.jsx)("div",{className:Vi,children:(0,Ve.jsx)(Ui,{test:r})}),(0,Ve.jsxs)("div",{className:_e()(Bi,G&&Fi,V&&Gi),children:[G&&(0,Ve.jsx)(Pe.xuy,{size:18}),V&&(0,Ve.jsx)(Pe.eSQ,{size:18})]}),(0,Ve.jsx)(Ai,{isFirstItem:i,isLastItem:a,disabled:c,testNumber:t,className:$i})]}),s&&(0,Ve.jsxs)("div",{className:"oLvlF",children:[(0,Ve.jsxs)("div",{className:"nwj_2",children:[(0,Ve.jsx)("input",{placeholder:(0,Ae.Z)("insert test description"),className:Vi,onChange:e=>Z(e.target.value),value:C,ref:v,spellCheck:"false"}),(0,Ve.jsxs)("div",{className:_e()(Bi,G&&Fi,V&&Gi),children:[G&&(0,Ve.jsx)(Pe.xuy,{size:18}),V&&(0,Ve.jsx)(Pe.eSQ,{size:18})]}),(0,Ve.jsx)(Ai,{isFirstItem:i,isLastItem:a,disabled:c,testNumber:t,className:$i})]}),(0,Ve.jsx)("div",{className:"fo_Hl",children:(0,Ae.Z)("given the following test string")}),(0,Ve.jsx)("textarea",{placeholder:(0,Ae.Z)("insert test string"),className:"W7b7u",onChange:e=>k(e.target.value),value:T,rows:2,spellCheck:"false",onKeyDown:F}),(0,Ve.jsx)(Ie.vV,{tag:"div",className:"L5b8E",text:"assert that {1} {2}",ph1:(0,Ve.jsx)(Pi,{currentTarget:I,onChange:e=>{R(e);const t=Ri(e);t.find((e=>e.value===M))||D(t[0].value)}}),ph2:(0,Ve.jsx)(Li,{currentTarget:I,currentCriteria:M,onChange:D})}),null!=I&&I!==Oi.m&&M!==Ii.GU&&(0,Ve.jsx)("textarea",{placeholder:(0,Ae.Z)("insert comparison string"),className:"mbbk1",onChange:e=>w(e.target.value),value:_}),null!=o&&(0,Ve.jsx)(Ni,{result:o,className:"MwoOx"})]})]})},qi="Yz_VU",zi=()=>{const e=(0,Te.I0)(),t=(0,Te.v9)((e=>e.unitTests.tests)),s=(0,Te.v9)((e=>e.unitTests.testResults)),n=(0,Te.v9)((e=>e.unitTests.testFilter)),r=(0,Ee.useState)([]),a=(0,Re.Z)(r,2),i=a[0],o=a[1],l=e=>{const t=i.filter((t=>t!==e));t.length===i.length&&t.push(e),o(t)};(0,Ee.useEffect)((()=>{const e=()=>o(t.map((e=>e.key))),s=()=>o([]);return Oe.ZP.on({[Oe.yM]:e,[Oe.Fx]:s}),()=>Oe.ZP.off({[Oe.yM]:e,[Oe.Fx]:s})}),[e,t]);const c=(0,Ee.useCallback)((()=>e((0,X.CJ)())),[e]),u=(0,Ee.useCallback)((()=>e((0,X.E0)(N))),[e]),d=(0,Ee.useMemo)((()=>n===N?t:t.filter((e=>{const t=s[e.key];return(null==t?void 0:t.hasError)===(n!==T)}))),[t,n,s]);return(0,Ve.jsx)(rr.Z,{className:"GuvgB",children:0===t.length?(0,Ve.jsx)(Ie.vV,{text:"There are no unit tests, click {1} to add some.",ph1:(0,Ve.jsx)(Ie.Yd,{onClick:c,className:qi,children:(0,Ae.Z)("here")})}):0===d.length?(0,Ve.jsx)(Ie.vV,{text:"No tests matched your filter, click {1} to show all.",ph1:(0,Ve.jsx)(Ie.Yd,{onClick:u,className:qi,children:(0,Ae.Z)("here")})}):d.map(((e,n)=>(0,Ve.jsx)(Hi,{existingTest:e,testKey:e.key,testNumber:n,viewDetails:i.includes(e.key),onViewDetailsClick:l,isLastItem:n===t.length-1,isFirstItem:0===n,result:s[e.key]},`unit-test-list-${e.key}`)))})};var Wi=s(67333);const Yi=({className:e})=>{const t=(0,Ee.useRef)(),s=(0,Ee.useState)(!1),n=(0,Re.Z)(s,2),r=n[0],a=n[1],i=(0,Te.I0)(),o=(0,Te.v9)((e=>e.unitTests.testFilter)),l=(0,Ee.useCallback)((()=>a(!0)),[]),c=(0,Ee.useCallback)((()=>a(!1)),[]),u=(0,Ee.useCallback)((()=>Oe.ZP.emit(Oe.yM)),[]),d=(0,Ee.useCallback)((()=>Oe.ZP.emit(Oe.Fx)),[]),h=(0,Ee.useCallback)((()=>i((0,X.E0)(N))),[i]),p=(0,Ee.useCallback)((()=>i((0,X.E0)(T))),[i]),g=(0,Ee.useCallback)((()=>i((0,X.E0)(k))),[i]);return(0,Ve.jsxs)("div",{className:e,children:[(0,Ve.jsx)(Ie.lx,{text:(0,Ae.Z)("Tools and Filters"),direction:He.qF.NE,children:(0,Ve.jsx)(Ie.Yd,{onClick:l,className:"llECe",ref:t,children:(0,Ve.jsx)(Pe.LB8,{size:18})})}),(0,Ve.jsxs)(os,{onMenuClose:c,isOpen:r,target:t.current,placement:"top",closeOnClick:!0,children:[(0,Ve.jsx)(fs,{text:(0,Ae.Z)("Tools and Filters")}),(0,Ve.jsx)(vs,{}),(0,Ve.jsx)(gs,{onClick:u,children:(0,Ae.Z)("Expand all tests")}),(0,Ve.jsx)(gs,{onClick:d,children:(0,Ae.Z)("Collapse all tests")}),(0,Ve.jsx)(vs,{}),(0,Ve.jsx)(gs,{onClick:h,isActive:o===N,children:(0,Ae.Z)("Show all tests")}),(0,Ve.jsx)(gs,{onClick:p,isActive:o===T,children:(0,Ae.Z)("Show only passed tests")}),(0,Ve.jsx)(gs,{onClick:g,isActive:o===k,children:(0,Ae.Z)("Show only failed tests")})]})]})},Ki=(0,Ee.memo)(Yi),Ji=["criteria","target","testString","compareString"];function Xi(e,t){const s=t.criteria,n=t.compareString||"";if(s===Ii.GU)return e&&null!=e.content?(0,Ae.Z)("Group {1} was not expected to participate in the match but did anyway",t.target):null;if(!e)return(0,Ae.Z)("Group {1} no longer exists in the pattern or did not participate in the match",t.target);let r;switch(r=e.groupName?`${e.groupNum} (${e.groupName})`:0===e.groupNum?`${e.groupNum} (${(0,Ae.Z)("full match")})`:e.groupNum,s){case Ii.DC:return null!=e.content&&-1!==e.content.indexOf(n)?null:(0,Ae.Z)("Expected group {1} to contain `{2}` but did not",r,n);case Ii.xz:return e.content===n?null:(0,Ae.Z)("Expected group {1} to equal `{2}` but was instead `{3}`",r,n,e.content||"");case Ii.u0:const t=null==e.content?"":e.content.slice(0,n.length);return t===n?null:(0,Ae.Z)("Expected group {1} to start with `{2}` but was instead `{3}`",r,n,t);case Ii.wU:const a=null==e.content?"":e.content.slice(-1*n.length);return a===n?null:(0,Ae.Z)("Expected group {1} to end with `{2}` but was instead `{3}`",r,n,a);default:throw new Error(`Unknown unit test criteria '${s}'`)}}const Qi=()=>{const e=(0,Te.I0)(),t=(0,Te.v9)((e=>e.regexEditor.flavor)),s=(0,Te.v9)((e=>e.regexEditor.regex)),n=(0,Te.v9)((e=>e.regexEditor.delimiter)),r=(0,Te.v9)((e=>e.regexEditor.flags)),a=(0,Te.v9)((e=>e.settings.maxExecutionTime)),i=(0,Te.v9)((e=>!!e.regexAreaParser.status)),o=(0,Te.v9)((e=>e.regexAreaParser.tokens.length>0)),l=(0,Te.v9)((e=>e.unitTests.tests),((e,t)=>{if(e.length!==t.length)return!1;const s=t.reduce(((e,t)=>{if(null==t.key)throw new Error("Invalid unit test");return e[t.key]=t,e}),{});return e.every((e=>(0,Te.wU)(Q(e,Ji),Q(s[e.key]||{},Ji))))})),c=(0,Ee.useRef)(new Wi.Z).current,u=(0,Ee.useState)(0),d=(0,Re.Z)(u,2),h=d[0],p=d[1],g=(0,Ee.useState)(!1),m=(0,Re.Z)(g,2),x=m[0],f=m[1],v=(0,Ee.useCallback)((()=>{c.resetWorker(),p(0),f(!1),e((0,X.jJ)())}),[e,c]),b=(0,Ee.useCallback)(((s,r,i,o,l)=>{const u={maxExecutionTime:a,flavor:t,calculateRegexSteps:!0};c.runMatch(r,n,i.replace(/g/g,""),o.testString,u,((t={},s)=>{e(s?(0,X.UZ)(o.key,(0,Ae.Z)("Internal engine error: {1}",s)):(0,X.UZ)(o.key,function(e,t){switch(e.criteria){case Ii.FS:return 0===t.length?(0,Ae.Z)("Expected regex to match, but did not."):null;case Ii.Xg:return t.length>0?(0,Ae.Z)("Expected regex to not match, but did."):null;default:return function(e,t){if(!t||0===t.length)return(0,Ae.Z)("The regex did not match the subject string.");const s=t.filter((t=>t.groupNum==e.target));0===s.length&&s.push({captureNum:-1,content:null,end:-1,groupName:isNaN(e.target)?e.target:null,groupNum:e.target,isParticipating:!1,match:-1,start:-1});for(let t=0,n=s.length;t<n;t++){const n=Xi(s[t],e);if(null!=n)return n}return null}(e,t[0])}}(o,t.matchResult),t.steps,t.time)),p((e=>e+1)),l.next()}))}),[a,n,t,e,c]),j=(0,Ee.useCallback)((()=>{c.resetWorker(),p(0),f(!0),e((0,X.h5)()),function(e,t,n){let a=0,i=!1;const o={next(){i||(a<e?(a++,(e=>{b(e.iteration(),s,r,l[e.iteration()],e)})(o)):(i=!0,n()))},iteration:()=>a-1,break(){i=!0,n()}};o.next()}(l.length,0,(()=>{f(!1),e((0,X.jJ)())}))}),[e,b,l,s,r,c]),C=v,Z=(0,Ee.useCallback)((()=>e((0,X.CJ)())),[e]);(0,Ee.useEffect)((()=>{const e=()=>{x&&v(),o&&!i&&j()};return Oe.ZP.on("key:ctrlEnter",e),()=>Oe.ZP.off("key:ctrlEnter",e)}),[o,i,j,x,v]),(0,Ee.useEffect)((()=>{""===s||i||j()}),[j,i]),(0,Ee.useEffect)((()=>v),[v]);const y=Math.max(0,l.length>0?(l.length-h)/l.length*100:100);return(0,Ve.jsxs)("div",{className:"bc_U_",children:[(0,Ve.jsxs)("div",{className:"bzSeP",children:[(0,Ve.jsx)(Ki,{className:"llbAo"}),(0,Ve.jsxs)("div",{className:"cfrN_",children:[!x&&(0,Ve.jsx)(Ie.zx,{text:(0,Ae.Z)("Run tests"),disabled:0===l.length||""===s||i,onClick:()=>{!o||""===s||i||x||j(!0)}}),x&&(0,Ve.jsx)(Ie.zx,{type:He.V5.T,text:(0,Ae.Z)("Cancel"),onClick:C}),(0,Ve.jsx)(Ie.zx,{text:(0,Ae.Z)("Add test"),onClick:Z,className:"KuRpm"})]})]}),(0,Ve.jsx)("div",{className:"W3HLH",style:{right:`${y}%`}})]})},eo=()=>{const e=(0,Te.v9)((e=>e.unitTests.testResults)),t=Object.values(e).reduce(((e,t)=>{const s=(0,Re.Z)(e,2),n=s[0],r=s[1];return[n+(!1===t.hasError?1:0),r+(t.hasError?1:0)]}),[0,0]),s=(0,Re.Z)(t,2),n=s[0],r=s[1],a=(n>0||r>0)&&(r>0?(0,Ve.jsx)("span",{className:"ceywG",children:1===r?(0,Ae.Z)("{1} test failed",r):(0,Ae.Z)("{1} tests failed",r)}):(0,Ve.jsx)("span",{className:"BIsZ6",children:(0,Ae.Z)("All tests passed")}));return(0,Ve.jsx)(Ie.__,{className:"esMAk",text:(0,Ae.Z)("Unit Tests"),children:a})},to=(0,Ee.memo)(eo),so=()=>(0,Ve.jsxs)("div",{className:"Av0Zr",children:[(0,Ve.jsx)(to,{}),(0,Ve.jsxs)("div",{className:"YXYOI",children:[(0,Ve.jsx)(zi,{}),(0,Ve.jsx)(Qi,{})]})]});var no=s(32864),ro=s(78120),ao=s(94462),io=s(47519);const oo=no.p.mark({class:"A6o5R",attributes:{"data-widget":"true"}}),lo=no.p.mark({class:"E2csr",attributes:{"data-widget":"true"}}),co=new no.Y1({regexp:/[ \t]/g,decoration:e=>" "===e[0]?oo:lo,boundary:/[^ \t]/}),uo=no.lg.define((e=>({decorations:co.createDeco(e),update(e){this.decorations=co.updateDeco(e,this.decorations)}})),{decorations:e=>e.decorations});class ho extends no.l9{eq(e){return e===this}toDOM(){const e=document.createElement("span");return e.className="h6ohF",e.innerText="\u21b5",e.setAttribute("data-widget","true"),e}ignoreEvent(){return!1}}const po=e=>{const t=[];for(let s=0,n=e.viewportLineBlocks.length-1;s<n;s++){const n=e.viewportLineBlocks[s],r=no.p.widget({widget:new ho,side:1});t.push(r.range(n.to))}return no.p.set(t)},go=no.lg.fromClass(class{constructor(e){this.decorations=void 0,this.decorations=po(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=po(e.view))}},{decorations:e=>e.decorations}),mo=({onChange:e,onFocus:t,onBlur:s,onPaste:n,onCreate:r,onScroll:a,onEnterClick:i,defaultValue:o,singleLine:l,className:c,readOnly:u=!1,wrapLines:d=!0,showLineNumbers:h=!1,placeholder:p,extensions:g,autoFocus:m=!1,onMouseMove:x})=>{const f=(0,Te.v9)((e=>!e.settings.defaultTabBehavior)),v=(0,Te.v9)((e=>e.settings.displayWhitespace)),b=(0,Te.v9)((e=>e.settings.lineSeparator)),j=(0,Ee.useRef)(),C=(0,Ee.useRef)();return(0,Ee.useEffect)((()=>{const c=(({onChange:e,onFocus:t,onBlur:s,onPaste:n,onScroll:r,onMouseMove:a,onEnterClick:i,singleLine:o,readOnly:l,wrapLines:c,showLineNumbers:u,placeholderText:d,extraExtensions:h=[],enableInsertTab:p,visualizeWhitespace:g,lineSeparator:m})=>{const x="function"==typeof e,f=no.tk.updateListener.of((t=>{if(x&&t.docChanged){const s=t.state.doc.toString();e(s,t)}})),v=no.tk.domEventHandlers({focus:t,blur:s,scroll:r,paste:n,mousemove:a}),b=null!=d&&(0,no.W$)(d),j=u&&(0,no.Eu)(),C=c&&no.tk.lineWrapping,Z=(0,no.AE)({render:(e,t)=>{const s=document.createElement("span");let n;return g?(s.className="b7jim",n=io.L[e]||`U+${("0000"+e.toString(16).toUpperCase()).slice(-4)}`):n="\u25a1",s["aria-label"]=t,s.setAttribute("data-widget","true"),s.appendChild(document.createTextNode(n)),s}}),y=o&&ro.yy.transactionFilter.of((e=>{if(e.newDoc.lines>1){const t=e.startState.selection,s=t.ranges[t.mainIndex].from;return[{changes:{from:0,to:e.startState.doc.length,insert:e.newDoc.toString().split(/[\r\n]+/g).join("")},selection:{anchor:s,head:s}}]}return e})),E=l&&ro.yy.transactionFilter.of((e=>e.isUserEvent("select")||e.annotation(ro.YW.remote)?e:[]));let T;switch(m){case"\\r\\n":T="\r\n";break;case"\\r":T="\r";break;case"\\n":T="\n";break;default:T=null}return[...[f,(0,ao.m8)(),no.$f.of([{key:"Enter",run:null!=i?()=>(i(),[]):ao.PR,preventDefault:!0}]),p&&no.$f.of([{key:"Tab",run:ao.PN,preventDefault:!0}]),no.$f.of([...ao.wQ,...ao.f$]),E,C,b,j,y,v,Z,g&&uo,g&&go,(0,no.Uw)(),null!=T&&ro.yy.lineSeparator.of(T)].filter(Boolean),...h]})({onChange:e,readOnly:u,wrapLines:d,placeholderText:p,extraExtensions:g,showLineNumbers:h,enableInsertTab:f,onFocus:t,onBlur:s,onPaste:n,visualizeWhitespace:v,lineSeparator:b,onMouseMove:x,singleLine:l,onEnterClick:i,onScroll:a});if(null==C.current){const t=new no.tk({state:ro.yy.create({doc:o||"",extensions:c}),parent:j.current});C.current=t,null==r||r(t),null==e||e(o)}else{var m;null==(m=C.current)||m.dispatch({effects:ro.Py.reconfigure.of(c)})}}),[e,u,d,p,g,h,f,t,s,n,v,b,x,l,i,a,r,o]),(0,Ee.useEffect)((()=>{var e;m&&(null==(e=C.current)||e.focus())}),[m]),(0,Ee.useEffect)((()=>()=>{var e;return null==(e=C.current)?void 0:e.destroy()}),[]),(0,Ve.jsx)("div",{className:c,translate:"no",ref:j,"aria-label":p,dir:"ltr"})},xo=(e,t,s=!1)=>{const n=e.scrollDOM,r=e.state,a=e.dispatch,i=n.scrollTop,o=n.scrollLeft;a({changes:{from:0,to:r.doc.length,insert:t},annotations:ro.YW.remote.of(!0)}),s&&(n.scrollTop=i,n.scrollLeft=o)},fo=(0,Ee.memo)(mo),vo=(e,t)=>{if(null==t||t<0)return null;let s=0,n=e.length-1;for(;s<=n;){const r=s+n>>1;let a=e[r];a.invisible&&r>0&&(a=e[r-1]);const i=a.position,o=i.start,l=i.end;if(t>=o&&t<l)return a;t<o?n=r-1:s=r+1}return null};var bo=s(73935);const jo="vPQc6",Co="d5Sb2",Zo=(0,lt.Z)(ct.DP),yo={appear:jo,appearActive:Co,enter:jo,enterActive:Co,exit:"DF_iI",exitActive:"cgJc2"},Eo=({cmInstance:e,getContent:t,onShow:s,onHide:n})=>{const r=(0,Te.v9)((e=>e.settings.editorTooltips)),a=(0,Ee.useRef)(),i=(0,Ee.useRef)(),o=(0,Ee.useRef)({pos:-1,x:0,y:0}),l=(0,Ee.useState)(-1),c=(0,Re.Z)(l,2),u=c[0],d=c[1],h=(0,Ee.useState)(null),p=(0,Re.Z)(h,2),g=p[0],m=p[1],x=(0,Ee.useCallback)((()=>{const e=a.current,t=i.current;if(!e||!t)return;const s=o.current,n=s.x,r=s.y,l=e.offsetWidth,c=e.offsetHeight,u=Math.min(Math.max(5,Math.max(0,n-l/2)),window.innerWidth-l-5);e.style.left=`${u}px`,e.style.top=`${Math.max(0,r-c+5)}px`,e.style.visibility="visible",t.style.left=n-u+"px"}),[]),f=(0,Ee.useCallback)(((e,t)=>{(0,bo.flushSync)((()=>{d(e),m(t)})),null==s||s(e)}),[s]),v=(0,Ee.useCallback)((()=>{o.current={pos:-1,x:0,y:0},d(-1),null==n||n()}),[n]),b=(0,Ee.useCallback)((s=>{if(1==(1&(null!=s.buttons?s.buttons:s.which))||0!==e.updateState)return v();const n=s.clientX,r=s.clientY,a=s.target;let i,l=!1;var c;if(e.contentDOM.contains(a)&&(l="span"===(null==(c=a.tagName)?void 0:c.toLowerCase())&&"true"===a.getAttribute("data-widget"),i=l?e.posAtDOM(a):e.posAtCoords({x:n,y:r})),null==i||i<0||i>e.state.doc.length)return v();const u=e.coordsAtPos(i);if(null==u)return v();const d=e.bidiSpans(e.state.doc.lineAt(i)).find((e=>e.from<=i&&e.to>=i)),h=(null==d?void 0:d.dir)===no.Nm.RTL;let p,g,m,b=!1;h&&u.left<n||!h&&u.left>n?(m=-1,b=!0):m=1;const j=((e,t,s,n)=>{const r=e.state.doc.length;let a=t;for(;a+=n,!(a<0||a>r);){const t=e.coordsAtPos(a);if(null==t)break;if(t.left!==s.left)return{pos:a,posCoords:t}}return{pos:a,posCoords:null}})(e,i,u,m),C=j.pos,Z=j.posCoords;if(null==Z)return v();if(b?(p=Z.left,g=u.left,i=C):(p=u.left,g=Z.left),h){const e=p;p=g,g=e}if(p=(0,Hr.Et)(p),g=(0,Hr.Et)(g),!l&&(r<u.top||r>u.bottom||n<p||n>g))return v();const y=t(i);if(null==y)return v();const E=o.current.pos;o.current={pos:i,x:n,y:u.top},E!==i&&f(i,y),x()}),[t,e,v,f,x]);(0,Ee.useEffect)((()=>{const t={passive:!0,capture:!0},s=()=>v(),n=t=>{t.target!==e.dom&&e.dom.contains(t.target)||v()};return r&&(e.dom.addEventListener("mouseleave",n,t),e.dom.addEventListener("mousemove",b,t),e.scrollDOM.addEventListener("scroll",s,t)),()=>{v(),e.dom.removeEventListener("mouseleave",n,t),e.dom.removeEventListener("mousemove",b,t),e.scrollDOM.removeEventListener("scroll",s,t)}}),[r,e,b,v]);const j=-1!==u&&null!=g;return(0,Ee.useEffect)((()=>{const t=t=>{e.dom.contains(t.relatedTarget)||v()};return r&&j&&document.body.addEventListener("mouseout",t,{passive:!0}),()=>{document.body.removeEventListener("mouseout",t,{passive:!0})}}),[r,j,v,e]),(0,Ve.jsx)(Ie.h_,{isOpen:j,closeTimeout:Zo,children:(0,Ve.jsxs)(Ie.uT,{classNames:yo,timeout:Zo,in:j,className:"Cfg7u",ref:a,onMount:x,children:[(0,Ve.jsx)("div",{className:"y4yFm",children:g}),(0,Ve.jsx)("div",{className:"qzFlS",ref:i})]})})},To=({token:e})=>(0,Ve.jsx)("div",{className:"fnwkx",children:Za(e)}),ko=(0,Ee.memo)(To),No=e=>{const t=e.parent,s=e.type,n=e.error;if(s===Sr.jt){const t=e.leftToken,s=e.rightToken;return{primary:{start:(t||e).position.start,end:(s||e).position.end}}}if(e.partOfRange)return No(e.rangeToken);if(n)return{primary:e.position};if(s===Sr.Wj){var r;let t=e.quantifiedToken;t.type===Sr.Wj&&(t=t.quantifiedToken);const s=No(t).primary;let n=e,a=e;return e.quantifier?a=e.quantifier:(null==(r=e.quantifiedToken)?void 0:r.type)===Sr.Wj&&(n=e.quantifiedToken),{primary:{start:n.position.start,end:a.position.end},secondary:s}}if(s===Sr.zB||s===Sr.Ao||s===Sr.ix){const s=t?No(t).primary:null;return{primary:e.position,secondary:s}}if(s===Sr.HI||s===Sr.U6){const t=e.openCharClass,s=e.closeCharClass;return{primary:{start:(t||e).position.start,end:(s||e).position.end}}}if(Sr.tK(s)){const t=e.openGroup,s=e.closeGroup;return{primary:{start:(t||e).position.start,end:(s||e).position.end}}}return{primary:e.position}},So=No;var _o=s(64475);const wo=ro.Py.define(),Ao=ro.Py.define(),Oo=ro.QQ.define({create:()=>no.p.none,update(e,t){e=e.map(t.changes);for(const s of t.effects)s.is(wo)?e=e.update({add:s.value,sort:!0}):s.is(Ao)&&(e=e.update({filter:s.value}));return e},provide:e=>no.tk.decorations.from(e)}),Io=e=>e.dispatch({effects:Ao.of((()=>!1))}),Ro=(e,t,s=!1)=>{if(e+1===t)return[no.p.mark({class:s?_o.Z.mouseoverOutlineRelated:_o.Z.mouseoverOutline,inclusive:!0}).range(e,t)];const n="mouseover"+(s?"Related":""),r=no.p.mark({class:_o.Z[`${n}Left`]}),a=no.p.mark({class:_o.Z[n]}),i=no.p.mark({class:_o.Z[`${n}Right`]}),o=[r.range(e,e+1),i.range(t-1,t)];return e+2!==t&&o.push(a.range(e+1,t-1)),o},Po=Oo;var Lo=s(42568),Mo=s.n(Lo);function Do(e,t){for(let s=0,n=e.length;s<n;s++){const n=e[s];t.includes(n)||(t.push(n),Do(n.relatedTokens,t))}}const Uo=e=>{const t=[];return Do(e.relatedTokens,t),t},Fo=Mo()(Ea),Go=(e,t,s)=>no.lg.fromClass(class{constructor(e){this.view=void 0,this.marks=no.p.none,this.value="",this.tokens=[],this.patternError=null,this.state={},this.view=e,this._parseDoc(),this.marks=this._highlightTokens()}update(e){const t=e.startState.selection.main,s=t.from,n=t.to,r=e.state.selection.main,a=r.from,i=r.to,o=s!==n,l=a!==i;if(e.docChanged?(this._parseDoc(),this.marks=this._highlightTokens()):l?this.marks=this._highlightTokens({from:a,to:i}):o&&(this.marks=this._highlightTokens()),!l){const e=vo(this.tokens,a);if(null==e)return;const t=Uo(e),s=[];t.forEach((e=>{const t=e.position,n=t.start,r=t.end,a=no.p.mark({class:_o.Z.cursorover,cursorOver:!0}).range(n,r);s.push(a)})),this.marks=this.marks.update({add:s,filter:(e,t,s)=>!s.spec.cursorOver,sort:!0})}}_parseDoc(){const s=this.view.state.doc.toString(),n=e(s,t),r=n.tokens,a=n.patternError,i=n.state;this.value=s,this.tokens=r,this.patternError=a,this.state=i}_highlightTokens(e){if(!s)return no.p.none;const t=[],n=Fo(this.tokens),r=e||{from:Number.MAX_SAFE_INTEGER,to:Number.MAX_SAFE_INTEGER},a=r.from,i=r.to;for(let e=0,s=n.length;e<s;e++){const s=n[e],r=s.style,o=s.position,l=o.start,c=o.end,u=_e()(r,_o.Z.selected);if(c<a||l>i)t.push(no.p.mark({class:r}).range(l,c));else{a>l&&t.push(no.p.mark({class:r}).range(l,a));const e=a<l?l:a,s=i>c?c:i;e<s&&t.push(no.p.mark({class:u}).range(e,s)),i<c&&t.push(no.p.mark({class:r}).range(i,c))}}return no.p.set(t)}},{decorations:e=>e.marks}),Vo=["onCreate","onFocusChange","defaultValue","parser","onChange","parserOptions"],Bo=e=>{let t=e.onCreate,s=e.onFocusChange,n=e.defaultValue,r=e.parser,a=e.onChange,i=e.parserOptions,o=(0,E.Z)(e,Vo);const l=(0,Te.v9)((e=>e.settings.colorizeSyntax)),c=(0,Ee.useRef)(null),u=(0,Ee.useRef)(null),d=(0,Ee.useMemo)((()=>Go(r,i,l)),[r,i,l]),h=(0,Ee.useMemo)((()=>[d,Po]),[d]),p=(0,Ee.useCallback)((()=>{const e=u.current,t=e.value,s=e.tokens,n=e.patternError,r=e.state;a(t,n?yt.D9:null,s,i,r)}),[a,i]),g=(0,Ee.useCallback)((e=>{c.current=e,u.current=c.current.plugin(d),null==t||t(e)}),[t,d]),m=(0,Ee.useCallback)((()=>s(!0)),[s]),x=(0,Ee.useCallback)((()=>s(!1)),[s]),f=(0,Ee.useCallback)((e=>{const t=vo(u.current.tokens,e);if(null==t)return null;const s=Dr(t);return s.ignoreToken?null:(((e,t)=>{Io(e);const s=So(t),n=s.primary,r=s.secondary,a=Ro(n.start,n.end);null!=r&&a.push(...Ro(r.start,r.end,!0)),e.dispatch({effects:wo.of(a)})})(c.current,s),(0,Ve.jsx)(ko,{token:Dr(t)}))}),[]),v=(0,Ee.useCallback)((()=>Io(c.current)),[]);return(0,we.vI)((()=>{u.current=c.current.plugin(d),p()}),[d,p]),(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(fo,Object.assign({onChange:p,onFocus:m,onBlur:x,onCreate:g,defaultValue:n,extensions:h},o)),null!=c.current&&(0,Ve.jsx)(Eo,{cmInstance:c.current,getContent:f,onHide:v})]})},$o=["availableDelimiters","delimiter","onChange"],Ho=e=>{let t=e.availableDelimiters,s=e.delimiter,n=e.onChange,r=(0,E.Z)(e,$o);return(0,Ve.jsxs)(os,Object.assign(Object.assign({closeOnClick:!0},r),{},{children:[(0,Ve.jsx)(fs,{text:(0,Ae.Z)("Delimiters")}),(0,Ve.jsx)(vs,{}),t.map((e=>(0,Ve.jsx)(gs,{isActive:e===s,onClick:()=>{e!==s&&n(e)},className:"G9G7z",children:e},`delimiter-${e}`)))]}))},qo=(0,Ee.memo)(Ho),zo=({flavor:e,delimiter:t,availableDelimiters:s,onChange:n})=>{const r=(0,Ee.useRef)(),a=(0,Ee.useState)(!1),i=(0,Re.Z)(a,2),o=i[0],l=i[1],c=(0,Ee.useCallback)((()=>l(!0)),[]),u=(0,Ee.useCallback)((()=>l(!1)),[]),d=s.length<2,h=Da(e,t),p=(0,Re.Z)(h,1)[0];return(0,Ve.jsx)(Ie.lx,{direction:He.qF.NE,text:(0,Ae.Z)("Change delimiter"),children:(0,Ve.jsxs)(Ie.Yd,{disabled:d,className:_e()("LEmfz",d&&"bwhBe"),onClick:c,tag:"div",children:[(0,Ve.jsxs)("div",{className:"RW_5t",ref:r,children:[(0,Ve.jsx)(ns.EAB,{className:"eb03W",size:12}),p]}),(0,Ve.jsx)(qo,{availableDelimiters:s,delimiter:t,isOpen:o,target:r.current,onMenuClose:u,onChange:n})]})})};function Wo(e,t,s){switch(e){case"g":return(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"g"}),"lobal",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Don't return after first match")})]});case"i":return(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"i"}),"nsensitive",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Case insensitive match")})]});case"m":return(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"m"}),"ulti line",(0,Ve.jsx)("div",{children:(0,Ae.Z)("^ and $ match start/end of line")})]});case"s":return(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"s"}),"ingle line",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Dot matches newline")})]});case"S":return null;case"x":return(0,Ve.jsxs)("div",{className:t,children:["e",(0,Ve.jsx)("strong",{children:"x"}),"tended",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Ignore whitespace")})]});case"J":return(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"J"}),"changed",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Allow duplicate subpattern names")})]});case"u":return s===x().JAVA?(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"u"}),"nicode case",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Case insensitive matching affects unicode characters as well")})]}):(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"u"}),"nicode",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Match with full unicode")})]});case"U":return s===x().JAVA?(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"U"}),"nicode matching",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Enables unicode support for predefined classes")})]}):(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"U"}),"ngreedy",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Make quantifiers lazy")})]});case"X":return(0,Ve.jsxs)("div",{className:t,children:["e",(0,Ve.jsx)("strong",{children:"X"}),"tra",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Disallow meaningless escapes")})]});case"A":return(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"A"}),"nchored",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Anchor to start of pattern, or at the end of the most recent match")})]});case"D":return(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"D"}),"ollar end only",(0,Ve.jsx)("div",{children:(0,Ae.Z)("$ matches only end of pattern")})]});case"a":return(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"a"}),"scii",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Make escape sequences perform ASCII-only matching")})]});case"y":return(0,Ve.jsxs)("div",{className:t,children:["stick",(0,Ve.jsx)("strong",{children:"y"}),(0,Ve.jsx)("div",{children:(0,Ae.Z)("Anchor to start of pattern, or at the end of the most recent match")})]});case"d":return(0,Ve.jsxs)("div",{className:t,children:["in",(0,Ve.jsx)("strong",{children:"d"}),"ices",(0,Ve.jsx)("div",{children:(0,Ae.Z)("The regex engine returns match indices")})]});case"n":return(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"n"}),"on-capturing",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Groups are no longer implicitly capturing")})]});case"R":return(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"R"}),"ight to left",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Perform matching from right to left")})]});case"N":return(0,Ve.jsxs)("div",{className:t,children:[(0,Ve.jsx)("strong",{children:"N"}),"o backtracking",(0,Ve.jsx)("div",{children:(0,Ae.Z)("Disable backtracking when matching")})]});default:return Ze.O7(new Error(`Unknown flag '${e}'`)),null}}const Yo=["isOpen","flavor","flags","onChange"],Ko=e=>{let t=e.isOpen,s=e.flavor,n=e.flags,r=e.onChange,a=(0,E.Z)(e,Yo);const i=(0,Ee.useCallback)(((e,t,s)=>{let a=n;s?a+=t:a=a.replace(t,""),r(a)}),[n,r]),o=(0,Ee.useCallback)((e=>{if(!e.ctrlKey&&!e.altKey&&!e.metaKey){const t=e.which||e.keyCode||e.charCode,s=e.char||e.key||String.fromCharCode(t);1===s.length&&(e.preventDefault(),i(e,s,-1===n.indexOf(s)))}}),[i,n]);(0,Ee.useEffect)((()=>(t&&window.addEventListener("keypress",o),()=>window.removeEventListener("keypress",o))),[t,o]);const l=ue()[s].split("");return(0,Ve.jsxs)(os,Object.assign(Object.assign({isOpen:t},a),{},{children:[(0,Ve.jsx)(fs,{text:(0,Ae.Z)("Regex Flags")}),(0,Ve.jsx)(vs,{}),l.map((e=>{const t=-1!==n.indexOf(e);return(0,Ve.jsx)(gs,{isActive:t,onClick:s=>i(s,e,!t),className:"ZsQZ7",children:Wo(e,"COW0E",s)},`flag-${e}`)}))]}))},Jo=({flags:e,delimiter:t,flavor:s,onChange:n})=>{const r=(0,Ee.useRef)(null),a=(0,Ee.useState)(!1),i=(0,Re.Z)(a,2),o=i[0],l=i[1],c=Da(s,t),u=(0,Re.Z)(c,2)[1];return(0,Ve.jsx)(Ie.lx,{direction:He.qF.NW,text:(0,Ae.Z)("Set Regex Options"),children:(0,Ve.jsxs)(Ie.Yd,{tag:"div",className:"AhIEh",onClick:()=>l(!0),children:[(0,Ve.jsxs)("div",{className:"lqj6M",ref:r,children:[(0,Ve.jsx)("div",{className:"n9qI6",children:u}),(0,Ve.jsx)("div",{className:"bcp8d",children:e})]}),(0,Ve.jsx)(Ko,{flags:e,flavor:s,isOpen:o,target:r.current,onMenuClose:()=>l(!1),onChange:n})]})})},Xo=(0,Ee.memo)(Jo),Qo=["onRegexPaste","onRegexChange","onDelimiterChange","onFlagsChange","flags","flavor","delimiter","regex"],el=e=>{let t=e.onRegexPaste,s=e.onRegexChange,n=e.onDelimiterChange,r=e.onFlagsChange,a=e.flags,o=e.flavor,l=e.delimiter,c=e.regex,u=(0,E.Z)(e,Qo);const d=(0,Te.v9)((e=>e.settings.wrapLines)),h=(0,Te.v9)((e=>e.settings.regexAreaLineNumbers)),p=(0,Ee.useState)(!1),g=(0,Re.Z)(p,2),m=g[0],x=g[1],f=(0,Ee.useRef)(null),b=(0,Ee.useMemo)((()=>({flavor:o,flags:a,delimiter:l})),[o,a,l]),j=(0,Ee.useCallback)((e=>x(e)),[]),C=(0,Ee.useCallback)(((e,s)=>{var n,r;const a=s.state.selection.main,l=a.from,c=a.to;if(0!==l||c!==s.state.doc.length)return;const u=(null==(n=window.clipboardData)?void 0:n.getData("Text"))||(null==(r=e.clipboardData)?void 0:r.getData("text/plain"));if(null==u)return void i.Z.warn("User pasted data but could not retrieve it");const d=v()[o],h=new RegExp(`^\\s*([sm]?)(${d.join("|")})([\\s\\S]+)\\2([a-zA-Z]*)\\s*$`),p=u.match(h);if(null!=p){const n=p[1],r=p[2];let a=p[3],i="";const o=p[4];if("s"===n){const e=((e,t)=>{let s=0,n=-1,r=!1;for(let a=e.length-1;0<=a;a--){const i=e.charAt(a);if(r)if("\\"===i)s++;else{if(s%2==0)return n;s=0,n=-1,r=!1}else i===t&&(n=a,r=!0)}return n})(a,r);if(-1===e)return;const t=a;a=t.slice(0,e),i=t.slice(e+1)}e.preventDefault(),e.stopPropagation(),xo(s,a),null==t||t({delimiter:r,flags:o,regex:a,isSub:"s"===n,substText:i})}}),[t,o]),Z=(0,Ee.useCallback)((e=>f.current=e),[]);return(0,Ee.useEffect)((()=>{const e=(e,t)=>xo(f.current,t);return Oe.ZP.on(Oe.fZ,e),()=>Oe.ZP.off(Oe.fZ,e)}),[f]),(0,Ve.jsxs)("div",{className:_e()("cO83v",m&&"KkBJC"),children:[(0,Ve.jsx)(zo,{availableDelimiters:v()[o],delimiter:l,flavor:o,onChange:n}),(0,Ve.jsx)(Bo,Object.assign({defaultValue:c,parser:Nr.Z,onFocusChange:j,onPaste:C,onChange:s,parserOptions:b,className:"T886D",onCreate:Z,showLineNumbers:h,placeholder:(0,Ae.Z)("insert your regular expression here"),wrapLines:d,autoFocus:!0},u)),(0,Ve.jsx)(Xo,{flags:a,delimiter:l,flavor:o,onChange:r}),(0,Ve.jsx)(Ie.qi,{basic:!0,className:_e()("OkWyQ",""===c&&"Si8g5"),disabled:""===c,copyText:l+c+l+a})]})},tl="odN4_",sl="J9uy0",nl="zM5RE",rl="Z8VZM",al="JFyYg",il="I7e3C";function ol(e){return e>999?+(e/1e3).toFixed(1)+"s":e.toFixed(1)+"ms"}const ll=({error:e,matchNum:t,isMatching:s,time:n,steps:r,flavor:a,hasRegex:i})=>{let o,l=!1,c=!1,u="",d="";if(s)o=nl,u=(0,Ae.Z)("Processing...");else if(e)switch(o=al,e){case yt.D9:u=(0,Ae.Z)("Pattern Error");break;case yt.ik:u=(0,Ae.Z)("Timeout"),l=!0;break;case yt.wm:case yt.VE:u=(0,Ae.Z)("Catastrophic Backtracking"),l=!0;break;default:u=(0,Ae.Z)("Engine Error"),c=!0}else t?(o=rl,u=t>1?(0,Ae.Z)("{1} matches",(0,Hr.uf)(t)):(0,Ae.Z)("{1} match",t)):(o=nl,u=(0,Ae.Z)("No Match"),l=!0),i&&(null!=r&&(d+=1!==r?(0,Ae.Z)("{1} steps",(0,Hr.uf)(r)):(0,Ae.Z)("{1} step",r)),null!=n&&(null!=r&&(d+=", "),d+=ol(n)));return l&&i&&(0,zs.G)(a)?(0,Ve.jsx)(Ie.Yi,{className:_e()(tl,"iRqgt"),children:(0,Ve.jsxs)("div",{className:_e()(sl,o),children:[u,d&&(0,Ve.jsxs)("span",{className:il,children:[" (",d,")"]}),(0,Ve.jsx)(Pe.RwU,{className:"Jfsx5"})]})}):(0,Ve.jsx)(Ie.lx,{disableTooltip:!c,direction:He.qF.N,text:null!=e?(0,Ae.Z)("Error reported by engine: {1}",e):"",children:(0,Ve.jsx)("div",{className:tl,children:(0,Ve.jsxs)("div",{className:_e()(sl,o),children:[u,d&&(0,Ve.jsxs)("span",{className:il,children:[" (",d,")"]})]})})})},cl=(0,Ee.memo)(ll),ul="NRMSt",dl="XKeHF",hl=({permalinkFragment:e,version:t,isOpen:s,target:n,onMenuClose:r})=>{const a=(0,Te.v9)((e=>e.regexEditor.regexVersions)),i=(0,we.$5)("getRegexVersions"),o=(0,Re.Z)(i,3),l=o[0],c=o[1],u=o[2];(0,we.DB)((()=>{s&&e&&u((0,X.zp)(e))}),[s,e]);let d="";return d=c?(0,Ve.jsx)("div",{className:ul,role:"alert",children:(0,Ve.jsx)(Ie.qX,{type:He.gr.pn,className:dl,children:(0,Ae.Z)("Unable to fetch versions")})}):l?(0,Ve.jsxs)("div",{className:ul,children:[(0,Ve.jsx)("div",{className:dl,children:(0,Ae.Z)("Loading...")}),(0,Ve.jsx)(Ie.$j,{size:He.J7.TC,className:"JVYN7"})]}):a.map((s=>{const n=s===t;return(0,Ve.jsx)(Cs,{isActive:n,disabled:n,to:At(e,s),absolute:!0,children:(0,Ae.Z)("Version {1}",s)},`version-${s}`)})),(0,Ve.jsxs)(os,{target:n,isOpen:s,onMenuClose:r,closeOnClick:!0,className:"Mr8Af",children:[(0,Ve.jsx)(fs,{text:(0,Ae.Z)("Regex Versions"),tabIndex:0}),(0,Ve.jsx)(vs,{}),d]})},pl=({children:e})=>{const t=(0,Te.v9)((e=>e.general.version)),s=(0,Te.v9)((e=>e.general.permalinkFragment)),n=(0,Te.v9)((e=>e.general.title)),r=(0,Ee.useState)(!1),a=(0,Re.Z)(r,2),i=a[0],o=a[1],l=(0,Ee.useRef)(null),c=(0,Ee.useCallback)((()=>o(!0)),[]),u=(0,Ee.useCallback)((()=>o(!1)),[]);return(0,we.kF)(n),(0,Ve.jsx)("div",{className:"YZA2N",children:(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Regular Expression"),children:(0,Ve.jsxs)("div",{className:"XjlwO",children:[e,null!=s&&(0,Ve.jsx)(Ie.lx,{text:(0,Ae.Z)("Select Regex Version"),direction:He.qF.NW,children:(0,Ve.jsxs)(Ie.CP,{className:"CwApB",onClick:c,ref:l,children:["v",t]})}),(0,Ve.jsx)(hl,{isOpen:i,onMenuClose:u,permalinkFragment:s,version:t,target:l.current})]})})})},gl=e=>{var t,s;const n=null!=(t=e.startUtf16)?t:e.start,r=null!=(s=e.endUtf16)?s:e.end;return{groupStart:Math.min(n,r),groupEnd:Math.max(n,r)}},ml=({matchNum:e,groupName:t,groupNum:s,start:n,end:r,content:a,captureNum:i})=>{const o=(0,Te.v9)((e=>e.regexAreaParser.captureGroupMap)),l=a.length>100?a.slice(0,100)+"\u2026":a,c=null!=i&&i>-1?`.${i+1}`:"",u=t||o[s]||s;return(0,Ve.jsxs)("div",{className:"Th_7x",children:[(0,Ve.jsx)(Ie.vV,{tag:"div",className:"rameg",text:"Match {1}",ph1:(0,Ve.jsx)("span",{children:e+1})}),(0,Ve.jsxs)("div",{className:"p5UZM",children:[(0,Ve.jsx)(Ie.vV,{text:"Group {1}",ph1:u+c,className:"_sUW4"}),":"," ",(0,Ve.jsx)("span",{children:""===a?(0,Ve.jsx)("em",{children:(0,Ae.Z)("empty string")}):(0,Ve.jsx)(Ie.K,{text:l,removeNewlines:!0})})]}),null!=n&&(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("strong",{children:"Pos:"})," ",n,"-",r]})]})},xl=(0,Ee.memo)(ml);var fl=s(20279),vl=s(61939);const bl=new Map,jl=parseFloat(Ue.zj),Cl=(e,t,s,n)=>({left:(0,Hr.Et)(e+jl),right:(0,Hr.Et)(s+jl),top:(0,Hr.Et)(t+1),bottom:(0,Hr.Et)(n-1)}),Zl=(e,t,s,n,r,a)=>{const i=Cl(s,n,r,a),o=i.left,l=i.right,c=i.top,u=i.bottom;e.beginPath(),e.lineWidth=2,e.setLineDash([]),e.moveTo(o-t.scrollX-1,u-t.scrollY+1),e.lineTo(l-t.scrollX+1,u-t.scrollY+1),e.moveTo(o-t.scrollX-1,c-t.scrollY-1),e.lineTo(l-t.scrollX+1,c-t.scrollY-1),e.moveTo(o-t.scrollX-1,c-t.scrollY-1),e.lineTo(o-t.scrollX-1,u-t.scrollY+1),e.moveTo(l-t.scrollX+1,c-t.scrollY-1),e.lineTo(l-t.scrollX+1,u-t.scrollY+1),e.closePath(),e.stroke()},yl=(e,t,s,n,r,a)=>{const i=e.fillStyle;e.fillStyle=(0,vl.C)(i,(0,fl.R)("--content-bg"),40),e.fillRect(s-t.scrollX,n-t.scrollY,r,a),e.fillStyle=i},El=(e,t,s,n,r,a,i,o)=>{const l=Cl(s,n,r,a),c=l.left,u=l.right,d=l.top,h=l.bottom,p=u-c;p<0||(i&&yl(e,t,c-jl,d,jl,h-d),o&&yl(e,t,u,d,jl,h-d),e.fillRect(c-t.scrollX,d-t.scrollY,p,h-d))},Tl=(e,t,s)=>{const n=Cl(s.left,s.top,0,s.bottom),r=n.left,a=n.top,i=n.bottom;e.strokeStyle=(0,fl.R)("--match-zero-width"),e.setLineDash([1,2]),e.beginPath(),e.moveTo(r-t.scrollX,a-t.scrollY),e.lineTo(r-t.scrollX,i-t.scrollY),e.closePath(),e.stroke()},kl=(e,t,s,n,r,a)=>{const i=Nl(t,s);if(!i)return;const o=(0,Re.Z)(i,2),l=o[0],c=o[1];if(e.fillStyle=r,e.strokeStyle=(0,vl.C)(r,(0,fl.R)("--match-mix-hex-color"),(0,fl.R)("--match-mix-amount")),l.bottom===c.bottom){const t=l.left===c.right||s.start===s.end;a(e,n,l.left,l.top,t?l.left+2:c.right,c.bottom)}else{const s=n.width-t.__gutterWidth+n.scrollX,r=t.defaultLineHeight;a(e,n,l.left,l.top,s,l.bottom,!1,!0);let i=l.top;for(;(i+=r)<c.top-1;)a(e,n,0,i,s,i+l.bottom-l.top,!0,!0);a(e,n,0,c.top,c.right,c.bottom,!0,!1)}},Nl=(e,t)=>{const s=bl.get(t);if(s)return s;const n=gl(t),r=n.groupStart,a=n.groupEnd,i=e.viewport,o=i.from,l=i.to;let c=Sl(e,Math.max(o,r),1),u=Sl(e,Math.min(l,a),-1);if(!c||!u)return console.warn(`Unable to paint group, startRect=${!!c}, endRect=${!!u}`,t),null;if(c.left>u.left&&c.top>=u.top||c.left>=u.left&&c.top>u.top){const e=c;c=u,u=e}const d=e.defaultLineHeight,h=c,p=h.top,g=h.left,m=u,x=m.top,f=m.left,v=x-p,b=(0,Hr.Et)(v/d),j=(0,Hr.Et)(p/d)*d,C=(0,Hr.Et)(x/d)*d,Z={top:j,left:g,right:g,bottom:j+d},y={top:b>0?C:j,left:f,right:f,bottom:j+d*(b+1)};return r>=o&&a<=l&&bl.set(t,[Z,y]),[Z,y]},Sl=(e,t,s)=>{const n=e.coordsAtPos(t,s);if(!n)return null;const r=e.__scrollRect,a=e.__gutterWidth,i=r.top-e.scrollDOM.scrollTop,o=r.left-e.scrollDOM.scrollLeft,l=n.top-i,c=n.bottom-i;return{left:n.left-o-a,top:l,right:n.right-o-a,bottom:c}},_l=parseFloat(Ue.zj),wl=function(){try{const e=document.createElement("canvas");if(!e||!e.getContext("2d")||!("setLineDash"in e.getContext("2d")))return!1}catch(e){return!1}return!0}()?({cmInstance:e,matchMap:t,waiting:s})=>{const n=(0,Te.v9)((e=>e.settings.wrapLines)),r=(0,Te.v9)((e=>e.settings.testAreaLineNumbers)),a=(0,Te.v9)((e=>e.general.currentTheme)),i=(0,Ee.useRef)(null),o=(0,Ee.useRef)(null),l=(0,Ee.useRef)(0),c=(0,Ee.useRef)(null),u=(0,Ee.useRef)(null),d=(0,Ee.useState)(!0),h=(0,Re.Z)(d,2),p=h[0],g=h[1],m=(0,Ee.useState)(!1),x=(0,Re.Z)(m,2),f=x[0],v=x[1],b=(0,Ee.useCallback)((()=>{const t=i.current,s=null==t?void 0:t.parentNode;if(null!=s){const n=s.getBoundingClientRect(),r=n.bottom-n.top,a=n.right-n.left-2;t.style.left=`${l.current}px`;const i=a-l.current|0,o=0|r;t.width===i&&t.height===o||(bl.clear(),t.width=i,t.height=o,e.__scrollRect=e.scrollDOM.getBoundingClientRect(),e.__gutterWidth=l.current)}}),[e]),j=(0,Ee.useCallback)((s=>{clearTimeout(u.current),u.current=setTimeout((()=>((e,t,s,n)=>{if(null==e||!e.canvas||!t.__scrollRect)return;const r=(e=>{var t;const s=e.__scrollRect,n=e.__gutterWidth,r=s.left,a=s.right,i=s.top,o=s.bottom,l=e.posAtCoords({x:r+n,y:i}),c=e.posAtCoords({x:a+n,y:o}),u=(null==(t=e.visibleRanges)?void 0:t[0])||{from:0,to:Number.MAX_SAFE_INTEGER},d=u.from,h=u.to;return{firstVisibleIndex:Math.max(d,l),lastVisibleIndex:Math.min(h,c)}})(t),a=r.firstVisibleIndex,i=r.lastVisibleIndex,o=t.scrollDOM,l=o.clientWidth,c=o.clientHeight,u=o.scrollTop,d={width:l,height:c,scrollX:0|o.scrollLeft,scrollY:u-jl|0};e.clearRect(0,0,e.canvas.width,e.canvas.height);const h={},p=[];for(let n=i;a<=n;n--){const r=s[n];if(null!=r)for(let s=0;s<r.length;s++){const n=r[s];if(null==n||!n.isParticipating)continue;const a=n.match,i=n.groupNum,o=n.captureNum,l=`${a}_${i}_${void 0===o?0:o}`;if(null!=h[l])continue;if(h[l]=!0,null!=n.start&&n.start===n.end){p.push(n);continue}const c=(0,fl.n)(n.groupNum,n.match%2!=0);kl(e,t,n,d,c,El)}}for(let s=0,n=p.length;s<n;s++){const n=p[s],r=Nl(t,n);if(!r)continue;const a=(0,Re.Z)(r,1)[0];Tl(e,d,a)}if(e.clearRect(0,0,e.canvas.width,jl),e.clearRect(0,e.canvas.height-jl,e.canvas.width,e.canvas.height),null!=n){const s=(0,fl.n)(n.groupNum,n.match%2!=0);kl(e,t,n,d,s,El),kl(e,t,n,d,s,Zl)}})(o.current,e,t,s)),1)}),[e,t]),C=(0,Ee.useCallback)((e=>{const s=function(e){if(!e||0===e.length)return null;for(let t=e.length-1;0<=t;t--){const s=e[t];if(s.start!==s.end)return s}return e[0]}(t[e]);return null==s?null:(j(s),(0,Ve.jsx)(xl,{matchNum:s.match,groupNum:s.groupNum,groupName:s.groupName,captureNum:s.captureNum,start:s.start,end:s.end,content:s.content}))}),[j,t]);return(0,Ee.useEffect)((()=>(o.current=i.current.getContext("2d",{alpha:!0,antialias:!1}),(e=>{["imageSmoothingEnabled","mozImageSmoothingEnabled","webkitImageSmoothingEnabled","msImageSmoothingEnabled"].some((t=>null!=e[t]&&(e[t]=!1,!0)))})(o),()=>{clearTimeout(u.current),clearTimeout(c.current)})),[]),(0,Ee.useEffect)((()=>{bl.clear(),j()}),[j,n,r,a]),(0,Ee.useEffect)((()=>{const t={passive:!0},s=()=>j();e.scrollDOM.addEventListener("scroll",s,t);const n=()=>e.dispatch({effects:Al.reconfigure(no.tk.editorAttributes.of({class:""}))}),r=(t,s)=>{const r=gl(s),a=r.groupStart,i=r.groupEnd;e.focus(),e.dispatch({effects:[Al.reconfigure(no.tk.editorAttributes.of({class:"LODXi"})),no.tk.scrollIntoView(a,{y:"center",x:"center"})],selection:{anchor:a,head:i}}),e.dom.addEventListener("mouseover",n,{once:!0})};return Oe.ZP.on(Oe.ji,r),()=>{e.scrollDOM.removeEventListener("scroll",s,t),e.dom.removeEventListener(n,{once:!0}),n&&Oe.ZP.off(Oe.ji,r)}}),[e,j]),(0,Ee.useEffect)((()=>{f&&(b(),j(),v(!1),g(!1),c.current=null)}),[f,b,j]),(0,Ee.useEffect)((()=>{if(r){const t=e.scrollDOM.firstChild,s=_l+(t.offsetWidth||0);s!==l.current&&(l.current=s,b())}})),(0,Ee.useEffect)((()=>{const e=i.current.parentNode,t=new ResizeObserver((()=>{clearTimeout(c.current),g(!0),c.current=setTimeout((()=>v(!0)),500)}));return t.observe(e),()=>{t.disconnect(),clearTimeout(c.current)}}),[b,e]),(0,Ee.useEffect)((()=>{const e=setTimeout((()=>{!s&&c.current||g(s)}),100);return()=>clearTimeout(e)}),[s]),(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("canvas",{ref:i,className:_e()("MF2Zl",p&&"PepZ_")}),(0,Ve.jsx)(Eo,{cmInstance:e,getContent:C,onHide:j})]})}:()=>null,Al=new ro.F6,Ol=[Al.of(no.tk.editorAttributes.of({class:""}))],Il=({matchMap:e,onInput:t,waiting:s})=>{const n=(0,Te.v9)((e=>e.regexEditor.showSubstitutionArea)),r=(0,Te.v9)((e=>e.regexEditor.showListSubstitutionArea)),a=(0,Te.v9)((e=>e.regexEditor.testString)),i=(0,Te.v9)((e=>e.settings.wrapLines)),o=(0,Te.v9)((e=>e.settings.testAreaLineNumbers)),l=(0,Ee.useState)(!1),c=(0,Re.Z)(l,2),u=c[0],d=c[1],h=(0,Ee.useState)(null),p=(0,Re.Z)(h,2),g=p[0],m=p[1],x=(0,Ee.useCallback)((()=>d(!0)),[]),f=(0,Ee.useCallback)((()=>d(!1)),[]),v=(0,Ee.useCallback)((e=>m(e)),[]);return(0,Ee.useEffect)((()=>{const e=(e,t,s)=>xo(g,s);return Oe.ZP.on(Oe.fZ,e),()=>Oe.ZP.off(Oe.fZ,e)}),[g]),(0,Ve.jsxs)("div",{className:_e()("of6uh",(n||r)&&"qFwsQ"),children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Test String")}),(0,Ve.jsxs)("div",{className:_e()("s6TnK",u&&"AH8pc"),children:[(0,Ve.jsx)(fo,{onCreate:v,className:"Pk2Mn",onChange:t,onFocus:x,onBlur:f,defaultValue:a,showLineNumbers:o,placeholder:(0,Ae.Z)("insert your test string here"),wrapLines:i,extensions:Ol}),null!=g&&(0,Ve.jsx)(wl,{cmInstance:g,matchMap:e,waiting:s})]})]})};function Rl(){return new Worker(s.p+"pcre2.worker.3883509ee9c5e3f20934.js")}function Pl(){return new Worker(s.p+"generic.worker.e7ae3ee9e8b9b71f6a54.js")}function Ll(){return new Worker(s.p+"javascript.worker.a10e707dccb487a4e5b9.js")}function Ml(){return new Worker(s.p+"java.worker.eae84edd4389c042bae2.js")}function Dl(){return new Worker(s.p+"dotnet.worker.e2b799a3b13c8527bb83.js")}function Ul(){return new Worker(s.p+"rust.worker.b404ceba3b1140ac7f3a.js")}var Fl=s(34426);class Gl extends Fl.Z{getWorker(e){switch(e){case x().PCRE2:return Rl;case x().JAVASCRIPT:return Ll;case x().PYTHON:case x().PCRE:case x().GOLANG:return Pl;case x().JAVA:return Ml;case x().DOTNET:return Dl;case x().RUST:return Ul;default:throw new Error(`No worker file exists for flavor '${e}'`)}}runSubst(e,t,s,n,r,a,i,o){const l={regex:null!=e?e:"",delimiter:null!=t?t:"",flags:null!=s?s:"",testString:null!=n?n:"",substString:null!=r?r:"",listMode:i.listMode};if([x().PCRE,x().PYTHON,x().GOLANG].includes(i.flavor)){const e=Object.assign(Object.assign({},l),a);return super.runWorker(e,i,o)}return super.runWorker(l,i,o)}}const Vl=Gl;var Bl=s(79090),$l=s(4779);const Hl=e=>{const t=(0,$l.ZP)(e,Sr.Xq);return(0,$l.sT)(t,_r.YY),t};var ql=s(51836),zl=s(750),Wl=s(81669),Yl=s(68165),Kl=s(48401);const Jl=(e,t)=>{const s=t.subpatterns,n=t.captureGroupCount,r=e.reference;return("string"==typeof r?!s.includes(r):n<r)&&(0,$l.sT)(e,_r.Bj),e.error},Xl=(e,t)=>{const s=e.conditionals,n=e.allConditionals,r=(0,Kl.Z)(e,Sr.w_),a=t.includes("-");let i=t.replace(/\W/g,"");return isNaN(i)||(i=parseInt(i,10)),s.length>9&&(0,$l.sT)(r,_r.xX),s.push(r),n.push(r),r.hasAlternative=a,r.reference=i,(0,$l.kV)(r,Jl),r};var Ql=s(68072);const ec=e=>{const t=(0,Ql.Z)(e),s=t.parent;return s.hasAlternative=!0,t.conditional=s,t.type=s.type,t};var tc=s(41061);const sc=e=>{const t=(0,tc.Z)(e);return t.parent||(0,$l.sT)(t,_r.rs),e.conditionals.pop(),t},nc=(e,t)=>{const s=(0,$l.ZP)(e,Sr.Bi);return(0,$l.A_)(s,_o.Z.meta),s};var rc=s(69678),ac=s(62170),ic=s(26850);const oc=(e,t)=>{const s=(0,$l.ZP)(e,Sr.aM),n="\\U"===t,r=!n;return e.uppercase=n,e.lowercase=r,(0,$l.A_)(s,_o.Z.meta),s},lc=e=>{const t=(0,$l.ZP)(e,Sr.py);return e.uppercase=!1,e.lowercase=!1,(0,$l.A_)(t,_o.Z.meta),t};var cc=s(11497),uc=s(92572),dc=s(40916),hc=s(43453);const pc=(e,t,s)=>{if("$"===t&&e.matchString("$$"))return ql.Z},gc=(e,t,s)=>"\\"===e.next()?cc.Z:uc.Z,mc=(e,t,s)=>{if("\\"===t&&e.matchString("\\v"))return dc.Z},xc=(e,t,s)=>{if("\\"===t&&e.match(/^\\[trnfae]/))return hc.Z},fc=(e,t,s)=>{if("$"===t&&e.eat("$"))return Hl},vc=(e,t,s)=>"\\"===t&&e.match(/^\\[UL]/)?oc:"\\"===t&&e.matchString("\\E")?lc:void 0,bc=[(e,t,s)=>{const n=e.match(/^[\\$]\d+/);if(n){let t=parseInt(n[0].slice(1),10);for(;(""+t).length>0&&t>s.captureGroupCount;)t=Math.floor(t/10);return e.backUp(n[0].length-("$"+t).length),rc.Z}},(e,t,s)=>{if(("$"===t||"\\"===t)&&e.match(/^(?:\${\d+}|\\g<\d+>)/))return rc.Z},(e,t,s)=>{if(("$"===t||"\\"===t)&&e.match(/^(?:\${\w+}|\\g<\w+>)/))return zl.Z},xc,(e,t,s)=>{if("\\"===t&&e.matchString("\\b"))return ac.Z},mc,(e,t,s)=>{if("\\"===t&&e.match(/^\\x(?:[a-fA-F0-9]{2}|{[a-fA-F0-9]+})/))return ic.Z},vc,(0,Yl.eb)(),gc],jc=[(e,t,s)=>{if("$"===t&&(e.matchString("${*MARK}")||e.matchString("$*MARK")))return nc},(e,t,s)=>{if(s.conditionals.length>0&&e.matchString("{"))return Hl},pc,(e,t,s)=>{if("$"===t&&e.match(/^\$(?:[a-z]\w*|{[a-z]\w*})/i))return zl.Z},(e,t,s)=>{if("$"===t&&e.match(/^\${(?:\d{1,2}|[a-z]\w+):[+-]/i))return Xl},(e,t,s)=>{if("$"===t&&e.match(/^\$(?:\d+|{\d{1,2}})/))return rc.Z},(e,t,s)=>{const n=s.conditionals.length;if(n>0&&":"===t&&!s.conditionals[n-1].hasAlternative&&e.eat(":"))return ec},(e,t,s)=>{if(s.conditionals.length>0&&e.eat("}"))return sc},xc,(e,t,s)=>{if("\\"===t&&e.match(/^\\x(?:[a-fA-F0-9]{2}|{[a-fA-F0-9]*}?)/))return Wl.Z},vc,(0,Yl.eb)(((e,t)=>{const s=(0,ql.Z)(e,t);return/^\\[\da-z]/i.test(t)&&(0,$l.sT)(s,_r.mi),s})),fc,gc];var Cc=s(99506);const Zc=e=>{const t=(0,$l.ZP)(e,Sr.hL);return(0,$l.A_)(t,_o.Z.meta),t},yc=e=>{const t=(0,$l.ZP)(e,Sr.Cz);return(0,$l.A_)(t,_o.Z.meta),t},Ec=e=>{const t=(0,$l.ZP)(e,Sr.tI);return(0,$l.A_)(t,_o.Z.meta),t};var Tc=s(32428);const kc=(e,t)=>(t.subpatterns.includes(e.reference)||(0,$l.sT)(e,_r.Bj),e.error),Nc=(e,t)=>{const s=(0,Tc.Z)(e,Sr.O3);return t.replace(/^\\?\$</,"").slice(0,-1)||(0,$l.sT)(s,_r.YY),s.reference=t.replace(/^\\?\$</,"").slice(0,-1),(0,$l.kV)(s,kc),(0,$l.A_)(s,_o.Z.backreference),s};var Sc=s(9961),_c=s(99309),wc=s(91435),Ac=s(92250),Oc=s(62738);const Ic=(e,t,s)=>{const n=e.match(/^\\?\$([1-9]\d?)/);if(n){let t=parseInt(n[1],10);for(;(""+t).length>0&&t>s.captureGroupCount;)t=Math.floor(t/10);return e.backUp(n[1].length-(""+t).length),rc.Z}},Rc=(e,t,s)=>{if("\\"===t&&e.match(/^\\0\d*/))return Sc.Z},Pc=(e,t,s)=>{if("\\"===t&&e.match(/^\\(?:[0-3][0-7]{1,2}|[0-7]{1,2})/))return _c.Z},Lc=(e,t,s)=>{if("\\"===t&&e.match(/^\\[trnfab]/))return hc.Z},Mc=(e,t,s)=>{if("\\"===t&&e.matchString("\\v"))return dc.Z},Dc=(e,t,s)=>{if("\\"===t&&e.match(/^\\u[0-9A-Fa-f]{0,4}/))return wc.Z},Uc=[(e,t,s)=>{if(e.matchString("$$")||e.matchString("\\$$"))return ql.Z},(e,t,s)=>{if(e.matchString("$&")||e.matchString("\\$&"))return Zc},(e,t,s)=>{if(e.matchString("$`")||e.matchString("\\$`"))return yc},(e,t,s)=>{if(e.matchString("$'")||e.matchString("\\$'"))return Ec},(e,t,s)=>{if(he.SC.namedGroup&&e.match(/^\\?\$<[^>]*>/))return Nc},Ic,Rc,Pc,Lc,Mc,Oc.K,Cc.FY,Dc,(0,Yl.eb)(Ac.Z),gc];var Fc=s(29856);const Gc=(e,t)=>{const s=(0,Fc.Z)(e,t);return 4!==t.length&&(0,$l.sT)(s,_r.mi),s};var Vc=s(90256),Bc=s(62284);const $c=(e,t,s)=>{if(e.match(/^\$(?:\d+\b|{\d+})/))return rc.Z},Hc=(e,t,s)=>{if(e.match(/^\$(?:\w+|{\w+})/))return zl.Z},qc=(e,t,s)=>{if(e.matchString('"'))return Vc.Z},zc=[$c,Hc,(e,t,s)=>{if(e.match(/^\\[0-7]{1,3}/))return Gc},xc,mc,(e,t,s)=>{if(e.match(/^\\x[a-fA-F0-9]{0,2}/))return ic.Z},Cc.FY,Dc,(e,t,s)=>{if(e.matchString("\\U"))return _c.Z},qc,(0,Yl.eb)(Bc.Z),fc,gc],Wc=[(e,t,s)=>{if("\\"===t&&e.match(/^\\(?:[1-9]\d?|g<\d+>)/))return rc.Z},(e,t,s)=>{if("\\"===t&&e.match(/^\\g<\w+>/))return zl.Z},(e,t,s)=>{if("\\"===t&&e.matchString("\\g"))return Hl},xc,mc,(0,Yl.eb)(),gc];var Yc=s(95790);const Kc=(e,t,s)=>{if("$"===t&&e.match(/^\${\w+}/))return zl.Z},Jc=[Ic,Kc,(e,t,s)=>{if("\\"===t&&e.match(/^\\[trnfb]/))return hc.Z},Cc.FY,Dc,(e,t,s)=>{if("$"===t){if(e.matchString("$0"))return rc.Z;if(e.eat("$"))return Hl}},Pc,(0,Yl.eb)(Yc.Z),gc],Xc=e=>{const t=(0,$l.ZP)(e,Sr.Ud);return(0,$l.A_)(t,_o.Z.meta),t},Qc=e=>{const t=(0,$l.ZP)(e,Sr.ul);return(0,$l.A_)(t,_o.Z.meta),t};var eu=s(38844),tu=s(64610);const su=[pc,(e,t,s)=>{if("$"===t&&e.matchString("$&"))return Zc},(e,t,s)=>{if("$"===t&&e.matchString("$`"))return yc},(e,t,s)=>{if("$"===t&&e.matchString("$'"))return Ec},(e,t,s)=>{if("$"===t&&e.matchString("$_"))return Xc},(e,t,s)=>{if("$"===t&&e.matchString("$+"))return Qc},Kc,(e,t,s)=>{const n=e.match(/^\$(\d+)/);if(n){let t=parseInt(n[1],10);if(t>=2147483648)return tu.Z;for(;(""+t).length>0&&t>s.captureGroupCount;)t=Math.floor(t/10);return e.backUp(n[1].length-(""+t).length),rc.Z}},Rc,Lc,Mc,Oc.K,Yl.fR,(0,Yl.eb)(eu.Z),gc];var nu=s(69741),ru=s(80430);const au=[pc,$c,Hc,(e,t,s)=>{if("\\"===t&&e.match(/^\\[trn]/))return hc.Z},Oc.K,(e,t,s)=>{if("\\"===t&&e.match(/^\\0/))return Sc.Z},(e,t,s)=>{if("\\"===t&&e.match(/^\\u{[0-9A-Fa-f]*}?/))return ru.Z},qc,(0,Yl.eb)(nu.Z),fc,gc],iu=Mo()(((e,t={})=>{const s=t.flavor,n=((e={})=>Object.assign({uppercase:!1,lowercase:!1,inCharClass:!1,subpatterns:[],captureGroupCount:0,captureGroupMap:{},conditionals:[],allConditionals:[],groups:[],parents:[],unicodeEnabled:!1,flags:"",flavor:x().PCRE2,delimiter:null,isSubstitution:!0,patternError:!1,revalidateTokens:[],revalidateTokensNext:[]},e))(t);n.unicodeEnabled=s===x().GOLANG||s===x().DOTNET;const r=(e=>{switch(e){case x().PCRE2:return jc;case x().PCRE:return bc;case x().JAVASCRIPT:return Uc;case x().GOLANG:return zc;case x().PYTHON:return Wc;case x().JAVA:return Jc;case x().DOTNET:return su;case x().RUST:return au;default:throw new Error(`There is no tokenizer for '${e}'`)}})(s);return{tokens:(0,Bl.Q)(r,e,n),patternError:n.patternError,state:n}})),ou=["subpatterns","captureGroupCount","defaultValue","onChange","flavor","className"],lu=e=>{let t=e.subpatterns,s=e.captureGroupCount,n=e.defaultValue,r=e.onChange,a=e.flavor,i=e.className,o=(0,E.Z)(e,ou);const l=(0,Ee.useRef)(null),c=(0,Ee.useMemo)((()=>({flavor:a,subpatterns:t,captureGroupCount:s})),[t,s,a]),u=(0,Ee.useState)(!1),d=(0,Re.Z)(u,2),h=d[0],p=d[1],g=(0,Ee.useCallback)((e=>p(e)),[]),m=(0,Ee.useCallback)((e=>l.current=e),[]);return(0,Ee.useEffect)((()=>{const e=(e,t)=>xo(l.current,t);return Oe.ZP.on(Oe.l2,e),()=>Oe.ZP.off(Oe.l2,e)}),[]),(0,Ve.jsx)(Bo,Object.assign({onCreate:m,onChange:r,defaultValue:n,onFocusChange:g,parser:iu,parserOptions:c,className:_e()("Pgoeh",h&&"Vnkit",i),placeholder:(0,Ae.Z)("insert your replacement value here"),singleLine:!0,wrapLines:!1},o))},cu=({isSubst:e,error:t,time:s,hasResult:n})=>{let r=null,a=null,i=!1;if(e)r=nl,a=(0,Ae.Z)("Processing...");else if(t)switch(r=al,t){case yt.D9:a=(0,Ae.Z)("Pattern Error");break;case yt.ik:a=(0,Ae.Z)("Timeout");break;default:a=(0,Ae.Z)("Engine Error"),i=!0}else n?(a=(0,Ae.Z)("Success"),r=rl):(a=(0,Ae.Z)("No result"),r=nl);return(0,Ve.jsx)(Ie.lx,{disableTooltip:!i,direction:He.qF.N,text:null!=t?(0,Ae.Z)("Error reported by engine: {1}",t):"",children:(0,Ve.jsx)("div",{className:"Br6dk",children:(0,Ve.jsxs)("div",{className:_e()(sl,r),children:[a,null!=s&&(0,Ve.jsxs)("span",{className:il,children:[" (",ol(s),")"]})]})})})},uu=(0,Ee.memo)(cu),du=[yt.Y8,yt.wm,yt.Vu,yt.D9,yt.ik,yt.Gv],hu=({regex:e,substString:t,matchResult:s,testString:n,regexParserStatus:r,captureGroupMap:a,subpatterns:o,captureGroupCount:l,label:c,listMode:u,onValueChange:d})=>{const h=(0,Te.v9)((e=>e.settings.wrapLines)),p=(0,Te.v9)((e=>e.settings.testAreaLineNumbers)),g=(0,Te.v9)((e=>e.settings.maxExecutionTime)),m=(0,Te.v9)((e=>e.regexEditor.flavor)),x=(0,Te.v9)((e=>e.regexEditor.flags)),f=(0,Te.v9)((e=>e.regexEditor.delimiter)),v=(0,Ee.useRef)(null),b=(0,Ee.useRef)(new Vl),j=(0,Ee.useState)({substString:t,tokens:[],status:null}),C=(0,Re.Z)(j,2),Z=C[0],y=C[1],E=(0,Ee.useState)({isSubst:!0,time:null,substError:null,hasResult:!1}),T=(0,Re.Z)(E,2),k=T[0],N=T[1],S=(0,we.Sf)((e=>d(e)),R.UPDATE_RESULT_DELAY),_=(0,we.Sf)(((e,t)=>{null==t||du.includes(t)||(i.Z.error("Subst error reported by engine:",t),Ze.O7(new Error(t))),N({isSubst:!1,time:null==e?null:e.time,substError:t,hasResult:null!=(null==e?void 0:e.result)})}),R.UPDATE_RESULT_DELAY,"cancel"),w=(0,Ee.useCallback)(((e,t,s)=>y({substString:e,status:t,tokens:s})),[]),A=(0,Ee.useCallback)((e=>xo(v.current,e,!0)),[]);(0,Ee.useEffect)((()=>{if(S(Z.substString),_.cancel(),""===e||null!=Z.status||0===s.length||null!=r)b.current.resetWorker(),""===e?N({hasResult:!1,isSubst:!1,time:null,substError:null}):_({time:null,result:null},Z.status||r),A(n||"");else{N({hasResult:!1,isSubst:!0,time:null,substError:null});const t={maxExecutionTime:g,flavor:m,listMode:u},r={matchResult:s,tokens:Z.tokens,captureGroupMap:a};b.current.runSubst(e,f,x,n,Z.substString,r,t,((e,t)=>{_(e,t),A(null==(null==e?void 0:e.result)?n:e.result)}))}}),[g,s,Z.substString,Z.tokens,Z.status,x,f,r,_,S,u,A]);const O=(0,Ee.useCallback)((e=>v.current=e),[]);return(0,Ee.useEffect)((()=>{const e=()=>S.flush();return Oe.ZP.on(Oe.P,e),()=>Oe.ZP.off(Oe.P,e)}),[S]),(0,Ee.useEffect)((()=>()=>b.current.resetWorker()),[]),(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ie.__,{text:c,className:"llpmv"}),(0,Ve.jsx)(uu,{isSubst:k.isSubst,error:k.substError,time:k.time,hasResult:k.hasResult}),(0,Ve.jsxs)("div",{className:"uP9GB",children:[(0,Ve.jsx)(fo,{className:"iuWEc",onCreate:O,wrapLines:h,showLineNumbers:p,readOnly:!0}),(0,Ve.jsx)(lu,{onChange:w,defaultValue:t,flavor:m,captureGroupCount:l,subpatterns:o})]})]})},pu=({matchResult:e,testString:t,regex:s,regexParserStatus:n,captureGroupMap:r,subpatterns:a,captureGroupCount:i})=>{const o=(0,Te.I0)(),l=(0,Te.v9)((e=>e.regexEditor.substString)),c=(0,Ee.useCallback)((e=>o((0,X.ZI)(e))),[o]);return(0,Ve.jsx)(hu,{label:(0,Ae.Z)("Substitution"),substString:l,testString:t,matchResult:e,regex:s,regexParserStatus:n,captureGroupMap:r,subpatterns:a,captureGroupCount:i,onValueChange:c})},gu=({matchResult:e,testString:t,regex:s,regexParserStatus:n,captureGroupMap:r,subpatterns:a,captureGroupCount:i})=>{const o=(0,Te.I0)(),l=(0,Te.v9)((e=>e.regexEditor.listSubstString)),c=(0,Ee.useCallback)((e=>o((0,X.ak)(e))),[o]);return(0,Ve.jsx)(hu,{label:(0,Ae.Z)("List"),substString:l,testString:t,matchResult:e,regex:s,regexParserStatus:n,captureGroupMap:r,subpatterns:a,captureGroupCount:i,onValueChange:c,listMode:!0})},mu=()=>{const e=(0,Te.I0)(),t=(0,Te.v9)((e=>e.regexEditor.regex)),s=(0,Te.v9)((e=>e.regexEditor.flags)),n=(0,Te.v9)((e=>e.regexEditor.flavor)),r=(0,Te.v9)((e=>e.regexEditor.delimiter)),a=(0,Te.v9)((e=>e.regexEditor.testString)),i=(0,Te.v9)((e=>e.regexEditor.showUnitTestArea)),o=(0,Te.v9)((e=>e.settings.maxExecutionTime)),l=(0,Te.v9)((e=>e.settings.calculateRegexSteps)),c=(0,Te.v9)((e=>e.regexEditor.error)),u=(0,Te.v9)((e=>e.regexEditor.matchResult.length)),d=(0,Te.v9)((e=>e.regexEditor.showSubstitutionArea)),h=(0,Te.v9)((e=>e.regexEditor.showListSubstitutionArea)),p=(0,Ee.useRef)(new Wi.Z).current,g=(0,Ee.useState)(a),m=(0,Re.Z)(g,2),f=m[0],v=m[1],b=(0,Ee.useState)({regex:"",status:null,tokens:[],flavor:n,flags:s,captureGroupMap:{},subpatterns:[],captureGroupCount:0,definedSubpatterns:[],delimiter:""}),j=(0,Re.Z)(b,2),C=j[0],Z=j[1],y=(0,Ee.useState)({isMatching:!1,time:null,steps:null}),E=(0,Re.Z)(y,2),T=E[0],k=E[1],N=(0,Ee.useState)({matchResult:[],matchMap:{}}),S=(0,Re.Z)(N,2),_=S[0],w=S[1],A=(0,Ee.useRef)(0),O=(0,Ee.useState)(!1),I=(0,Re.Z)(O,2),P=I[0],L=I[1],M=(0,jr.Z)(((t,s)=>{const n=t||{},r=n.steps,a=n.time,i=n.matchResult,o=n.matchMap;null!=s?(k({isMatching:!1,time:null,steps:null}),e((0,X.QF)(s))):(e((0,X.QF)(null)),k({isMatching:!1,steps:r,time:a})),e((0,X.rS)(s?[]:i)),w(s?{matchResult:[],matchMap:{}}:{matchResult:i,matchMap:o})}),R.UPDATE_RESULT_DELAY,"cancel"),D=(0,jr.Z)(((t,s,n,r)=>{const a=r.subpatterns,i=r.captureGroupMap,o=r.definedSubpatterns,l=r.captureGroupCount;e((0,X.og)({status:s,tokens:n,subpatterns:a,captureGroupMap:i,captureGroupCount:l,definedSubpatterns:o})),e((0,X.uf)(t))}),R.UPDATE_RESULT_DELAY),U=(0,jr.Z)((t=>e((0,X.Jh)(t))),R.UPDATE_RESULT_DELAY),F=(0,Ee.useCallback)((t=>{const s=t.delimiter,r=t.flags,a=t.isSub,i=t.substText;[x().PCRE,x().PCRE2].includes(n)&&e((0,X.G6)(s)),e((0,X.dL)("",r,n)),a&&(e((0,X.ux)()),requestAnimationFrame((()=>Oe.ZP.emit(Oe.l2,i))))}),[n,e]),G=(0,Ee.useCallback)((t=>e((0,X.G6)(t))),[e]),V=(0,Ee.useCallback)((t=>e((0,X.dL)(s,t,n))),[s,n,e]),B=(0,Ee.useCallback)(((e,t,s,n,r)=>{const a=n.flavor,i=n.flags,o=n.delimiter,l=r.subpatterns,c=r.captureGroupMap,u=r.captureGroupCount,d=r.definedSubpatterns;Z({regex:e,status:t,tokens:s,flavor:a,flags:i,subpatterns:l,captureGroupMap:c,captureGroupCount:u,definedSubpatterns:d,delimiter:o}),D(e,t,s,r)}),[D]),$=(0,Ee.useCallback)((e=>{U(e),v(e)}),[U]);(0,Ee.useEffect)((()=>{M.cancel();const e=1e9*Math.random()|0;A.current=e;const t=C.regex,s=C.status,n=C.flavor,r=C.flags,a=C.delimiter;if(""===t||null!=s)w({matchResult:[],matchMap:{}}),M({matchResult:[],matchMap:{},steps:null,time:null},s),L(!1);else{k({isMatching:!0,time:null,steps:null}),L(!0);const s={maxExecutionTime:o,calculateRegexSteps:l,flavor:n};p.runMatch(t,a,r,f,s,((t,s)=>{e===A.current&&(w({matchResult:(null==t?void 0:t.matchResult)||[],matchMap:(null==t?void 0:t.matchMap)||{}}),M(t,s),L(!1))}))}}),[C,p,f,M,D,o,l]),(0,Ee.useEffect)((()=>{const e=()=>{D.flush(),U.flush()};return Oe.ZP.on(Oe.P,e),()=>Oe.ZP.off(Oe.P,e)}),[D,U]),(0,Ee.useEffect)((()=>()=>p.resetWorker()),[p]);const H=d?pu:gu;return(0,Ve.jsxs)("div",{className:"AUc0W",children:[(0,Ve.jsxs)("div",{className:"rjodX",children:[(0,Ve.jsx)(pl,{children:!i&&(0,Ve.jsx)(cl,{isMatching:T.isMatching,matchNum:u,steps:T.steps,time:T.time,error:c,flavor:n,hasRegex:t.length>0})}),(0,Ve.jsx)(el,{onRegexChange:B,onRegexPaste:F,onDelimiterChange:G,onFlagsChange:V,regex:t,flavor:n,flags:s,delimiter:r})]}),(0,Ve.jsx)("div",{className:"f9BbV",children:i?(0,Ve.jsx)(so,{}):(0,Ve.jsxs)("div",{className:"F69Q6",children:[(0,Ve.jsx)(Il,{onInput:$,matchMap:_.matchMap,waiting:P}),(h||d)&&(0,Ve.jsx)("div",{className:"kPafO",children:(0,Ve.jsx)(H,{matchResult:_.matchResult,testString:f,regex:C.regex,regexParserStatus:C.status,captureGroupMap:C.captureGroupMap,subpatterns:C.subpatterns,captureGroupCount:C.captureGroupCount})})]})})]})};var xu=s(61399);const fu=()=>{const e=(0,Ee.useState)(!1),t=(0,Re.Z)(e,2),s=t[0],n=t[1],r=[{description:(0,Ae.Z)("Switch to regex matching"),shortcuts:[Zt.SWITCH_TO_MATCH]},{description:(0,Ae.Z)("Switch to regex substitution"),shortcuts:[Zt.SWITCH_TO_SUBST]},{description:(0,Ae.Z)("Switch to regex list substitution"),shortcuts:[Zt.SWITCH_TO_LIST]},{description:(0,Ae.Z)("Switch to unit tests"),shortcuts:[Zt.SWITCH_TO_UNIT_TESTS]},{description:(0,Ae.Z)("Open regex debugger"),shortcuts:[Zt.SHOW_DEBUGGER]},{description:(0,Ae.Z)("Open code generator"),shortcuts:[Zt.SHOW_CODE_GEN]},{description:(0,Ae.Z)("Run unit tests (when view is open)"),shortcuts:[Zt.RUN_UNIT_TESTS]}];return(0,Ee.useEffect)((()=>{const e=()=>n(!0);return Oe.ZP.on("key:question",e),()=>Oe.ZP.off("key:question",e)}),[]),(0,Ve.jsx)(xu.Z,{onModalClose:()=>n(!1),isOpen:s,shortcuts:r})},vu=(0,Ee.memo)(fu),bu=()=>{const e=(0,Ne.UO)(),t=e.permalinkFragment,s=e.version,n=(0,we.$5)("getRegex"),r=(0,Re.Z)(n,3),a=r[1],i=r[2];if((0,we.DB)((e=>{e&&null!=t&&!isNaN(s)&&i((0,X.Of)(t,s))}),[i,t,s]),null!=t){if(a)return isNaN(s)||"1"===s?(0,Ve.jsx)(Ie.l_,{to:"/"}):(0,Ve.jsx)(Ie.l_,{to:`/r/${t}/1`});if(isNaN(s))return(0,Ve.jsx)(br,{})}const o=t?`${t}-${s}`:"plain";return(0,Ve.jsxs)("div",{className:"bkz2q",children:[(0,Ve.jsx)(ki,{}),(0,Ve.jsx)(mu,{}),(0,Ve.jsx)(vr,{path:"/codegen",title:(0,Ae.Z)("Code Generator"),children:(0,Ve.jsx)(ir,{})},`code-gen-${o}`),(0,Ve.jsx)(vr,{path:"/debugger",title:(0,Ae.Z)("Regex Debugger"),children:(0,Ve.jsx)(lr,{})},`debugger-${o}`),(0,Ve.jsxs)(Ne.Z5,{children:[(0,Ve.jsx)(Ne.AW,{path:"/codegen",element:(0,Ve.jsx)(Ve.Fragment,{})}),(0,Ve.jsx)(Ne.AW,{path:"/debugger",element:(0,Ve.jsx)(Ve.Fragment,{})}),(0,Ve.jsx)(Ne.AW,{path:"/",element:(0,Ve.jsx)(Ve.Fragment,{})}),(0,Ve.jsx)(Ne.AW,{path:"*",element:(0,Ve.jsx)(Ie.l_,{to:null!=t?`/r/${t}/${s}`:"/"})})]}),(0,Ve.jsx)(vu,{})]})},ju=({isVisible:e})=>e?(0,Ve.jsx)("div",{className:"wMRs6",children:(0,Ve.jsx)(Ie.$j,{size:He.J7.HC})}):null,Cu=(0,Ee.memo)(ju),Zu=({isLoading:e,children:t})=>(0,Ve.jsxs)(Ve.Fragment,{children:[!e&&t,(0,Ve.jsx)(Cu,{isVisible:e})]}),yu=({active:e,page:t})=>{const s=(0,Ne.TH)(),n=(0,ke.lr)(),r=(0,Re.Z)(n,1)[0],a=Object.assign(Object.assign({},s),{},{search:Ot.B({page:t},r)});return(0,Ve.jsx)(Ie.rU,{to:a,className:_e()("PMAGi",e&&"J4QnP"),noTheme:!0,children:t})},Eu="RnWnK",Tu=({left:e,right:t,nextPage:s,className:n,visible:r})=>{const a=(0,Ne.TH)(),i=(0,ke.lr)(),o=(0,Re.Z)(i,1)[0],l=Object.assign(Object.assign({},a),{},{search:Ot.B({page:s},o)});return(0,Ve.jsxs)(Ie.rU,{to:l,className:_e()("Fa5Yt",!r&&"qE_eB",n),noTheme:!0,"aria-label":e?(0,Ae.Z)("Previous page"):(0,Ae.Z)("Next page"),children:[e&&(0,Ve.jsx)(Pe.jW7,{size:20,className:Eu}),t&&(0,Ve.jsx)(Pe.jfD,{size:20,className:Eu})]})},ku=(0,Ee.memo)(Tu);function Nu(e,t){const s=[];for(let n=e;n<=t;n++)s.push(n);return s}const Su=({pages:e,className:t,currentPage:s})=>{if(e<2)return null;const n=Math.min(e,s),r=(0,M.Z)([].concat(Nu(Math.max(1,n-3),n),Nu(n,Math.min(e,n+3)))).filter((t=>1!==t&&t!==e));return(0,Ve.jsxs)("div",{className:_e()("lt5O_",t),children:[(0,Ve.jsx)(ku,{nextPage:n-1,visible:n>1,left:!0}),(0,Ve.jsx)(yu,{page:1,active:1===n}),r[0]>2&&"...",r.map((e=>(0,Ve.jsx)(yu,{page:e,active:n===e},`page-${e}`))),r[r.length-1]+1<e&&"...",(0,Ve.jsx)(yu,{page:e,active:e===n}),(0,Ve.jsx)(ku,{nextPage:n+1,visible:n<e,right:!0})]})},_u=(0,Ee.memo)(Su),wu="EIMPZ",Au="tMvcj",Ou=({upvotes:e,downvotes:t,userVote:s,permalinkFragment:n,className:r})=>{const a=(0,Te.I0)(),i=(0,Te.v9)((e=>e.general.userId)),o=(0,Ee.useState)(e),l=(0,Re.Z)(o,2),c=l[0],u=l[1],d=(0,Ee.useState)(t),h=(0,Re.Z)(d,2),p=h[0],g=h[1],m=(0,Ee.useState)(s),x=(0,Re.Z)(m,2),f=x[0],v=x[1];(0,Ee.useEffect)((()=>{u(e),g(t),v(s)}),[e,t,s]);const b=(e,t)=>{e.preventDefault(),f===t&&(t=0);let s=f>0?c-1:c,r=f<0?p-1:p;t>0?s++:t<0&&r++,u(s),g(r),v(t),a((0,X._v)(n,t))},j=null!=i,C=Math.round(c-p),Z=Math.max(0,Math.round(c/Math.max(1,c+p)*100)),y=(0,Ae.Z)("{1} upvotes, {2} downvotes ({3}% like it)",Math.round(c),Math.round(p),Z)+(j?"":"\n("+(0,Ae.Z)("You must be signed in to vote")+")");let E=null;return 0===c&&0===p||(E=`hsl(${(Z/100*120).toString(10)}, 100%, 25%)`),(0,Ve.jsx)(Ie.lx,{direction:He.qF.E,text:y,children:(0,Ve.jsxs)("div",{className:_e()("rQI68",r),children:[(0,Ve.jsx)(Ie.Yd,{className:_e()(wu,"IBxjT",f>0&&Au),onClick:e=>b(e,1),disabled:!j,"aria-label":(0,Ae.Z)("Upvote"),children:(0,Ve.jsx)(ns.s$2,{size:16})}),(0,Ve.jsx)("div",{className:"OK2mW",style:{color:E},children:C}),(0,Ve.jsx)(Ie.Yd,{className:_e()(wu,"QSQhw",f<0&&Au),onClick:e=>b(e,-1),disabled:!j,"aria-label":(0,Ae.Z)("Downvote"),children:(0,Ve.jsx)(ns.RiI,{size:16})})]})})},Iu=(0,Ee.memo)(Ou),Ru={fill:"eYKug"},Pu=(0,Ee.memo)((({isFavorite:e,permalinkFragment:t,tooltipDirection:s=He.qF.NW,className:n})=>{const r=(0,Te.I0)(),a=(0,Ee.useCallback)((()=>{r((0,X.fd)(t,!e))}),[t,e,r]);return(0,Ve.jsx)(Ie.hU,{tooltip:e?(0,Ae.Z)("Remove from favorites"):(0,Ae.Z)("Add to favorites"),tooltipDirection:s,onClick:a,className:_e()(Ru.root,e&&Ru.fill,n),children:(0,Ve.jsx)(Pe.iB2,{})})})),Lu=({delimiter:e,flags:t,regex:s,flavor:n,permalinkFragment:r,version:a})=>{const i=(0,Nr.Z)(s,{delimiter:e,flags:t,flavor:n}).tokens;return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ie.Po,{text:(0,Ae.Z)("Regular Expression"),children:(0,Ve.jsx)("div",{children:(0,Ve.jsx)("span",{className:"tKAH6",children:n})})}),(0,Ve.jsxs)(rr.Z,{className:"fHgtW",children:[(0,Ve.jsx)(Ga,{tokens:i,delimiter:e,flags:t,flavor:n}),(0,Ve.jsx)("div",{className:"LOiuh",children:(0,Ve.jsxs)(Ie.rU,{to:At(r,a),absolute:!0,children:[(0,Ae.Z)("Open regex in editor"),(0,Ve.jsx)(dn.xXr,{className:"L3Eaj"})]})})]})]})},Mu=(0,Ee.memo)(Lu);var Du=s(27484),Uu=s.n(Du),Fu=s(70178),Gu=s.n(Fu),Vu=s(84110),Bu=s.n(Vu);Uu().extend(Bu()),Uu().extend(Gu());const $u=Uu(),Hu=({date:e,author:t,description:s})=>(0,Ve.jsxs)("div",{className:"XL8nr",children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Description")}),(0,Ve.jsxs)(rr.Z,{children:[(0,Ve.jsx)(tt,{className:_e()("EcsU0",!s&&"afYTT"),children:s||(0,Ae.Z)("no description available")}),(0,Ve.jsxs)("div",{className:"KPMvl",children:[(0,Ae.Z)("Submitted by")," ",(0,Ve.jsx)("span",{className:"UblEx",children:t||(0,Ae.Z)("anonymous")})," - ",$u.utc(e).fromNow()]})]})]}),qu=(0,Ee.memo)(Hu),zu=()=>{const e=(0,Te.I0)(),t=(0,Te.v9)((e=>e.regexLibrary.details)),s=(0,Te.v9)((e=>null!=e.general.userId)),n=(0,Ne.UO)().libraryId,r=(0,we.$5)("libraryDetails"),a=(0,Re.Z)(r,3),i=a[0],o=a[1],l=a[2];var c;if((0,we.DB)((()=>{null==t&&l((0,X.xv)(n))}),[l,n,t]),(0,we.kF)((null==t?void 0:t.title)||"Regex Library",R.LIBRARY_META_DESCRIPTION),(0,Ee.useEffect)((()=>()=>e((0,X.bL)(null))),[e]),o)return 404===(null==(c=o.response)?void 0:c.status)?(0,Ve.jsx)(Ie.l_,{to:"/library"}):(0,Ve.jsx)(Ie.qX,{type:He.gr.pn,children:(0,Ae.Z)("There was a problem when trying to fetch the details for this entry. Please try again later.")});if(i||null==t)return(0,Ve.jsx)(Cu,{isVisible:!0});const u=t.regex,d=t.flags,h=t.flavor,p=t.delimiter,g=t.permalinkFragment,m=t.version,x=t.dateModified,f=t.description,v=t.author,b=t.upvotes,j=t.downvotes,C=t.userVote,Z=t.isFavorite;return(0,Ve.jsxs)("div",{className:"Cq6xD",children:[(0,Ve.jsxs)("div",{className:"Lh1uU",children:[!s&&(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Vote"),className:"ULHf7"}),s&&(0,Ve.jsx)(Pu,{isFavorite:!!Z,permalinkFragment:g,tooltipDirection:He.qF.NE,className:"jwNEi"}),(0,Ve.jsx)(Iu,{upvotes:b,downvotes:j,userVote:C,permalinkFragment:g})]}),(0,Ve.jsxs)("div",{className:"INRCS",children:[(0,Ve.jsx)(Mu,{regex:u,flags:d,flavor:h,delimiter:p,permalinkFragment:g,version:m}),(0,Ve.jsx)(qu,{date:x,description:f||void 0,author:v||void 0})]})]})};var Wu=s(26525),Yu=s.n(Wu);function Ku(e){let t=e;return e&&e.length>303&&(t=e.slice(0,300)+"..."),t.split("\n").length>6&&(t=t.split("\n").slice(0,6).join("\n")+"..."),t}const Ju=({title:e,flavor:t,date:s,upvotes:n,downvotes:r,author:a=(0,Ae.Z)("anonymous"),userVote:i,description:o,permalinkFragment:l,isFavorite:c})=>{const u=(0,Te.v9)((e=>null!=e.general.userId)),d=(0,Ne.TH)().search;return(0,Ve.jsxs)("div",{className:"fiYVe",children:[(0,Ve.jsx)(Iu,{upvotes:n,downvotes:r,userVote:i,permalinkFragment:l,className:"BKJlR"}),u&&(0,Ve.jsx)(Pu,{isFavorite:c,permalinkFragment:l,className:"JLiR2"}),(0,Ve.jsx)(Ie.rU,{noTheme:!0,to:`${l}${d}`,className:"wqwfW",children:(0,Ve.jsxs)("div",{children:[(0,Ve.jsxs)("div",{className:"aqvFS",children:[(0,Ve.jsx)("div",{className:_e()("UYk6r",u&&"P736t"),children:t}),(0,Ve.jsx)("h3",{className:"elKva",children:e})]}),(0,Ve.jsx)("div",{className:_e()("xZqXR",!o&&"LHJqG"),children:Ku(Yu()(o||(0,Ae.Z)("no description available")))}),(0,Ve.jsxs)("div",{className:"RryPT",children:[(0,Ae.Z)("Submitted by")," ",(0,Ve.jsx)("span",{className:"iNeUZ",children:a})," - ",(0,Ve.jsx)("span",{children:$u.utc(s).fromNow()})]})]})})]})},Xu=(0,Ee.memo)(Ju),Qu="m7Th9",ed=({libraryData:e,fetchError:t,didSearch:s})=>t?(0,Ve.jsx)(Ie.qX,{type:He.gr.pn,children:(0,Ae.Z)("There was a problem trying to fetch the library data. Please try again later.")}):0===e.length?(0,Ve.jsx)(Ie.qX,{noMargin:!0,children:s?(0,Ae.Z)("Your search did not match anything"):(0,Ae.Z)("There does not seem to be anything here")}):e.map(((e,t)=>(0,Ve.jsx)(Xu,{title:e.title,description:e.description||void 0,flavor:e.flavor,date:e.dateModified,upvotes:e.upvotes,downvotes:e.downvotes,permalinkFragment:e.permalinkFragment,author:e.author||void 0,userVote:e.userVote||void 0,isFavorite:!!e.isFavorite},`library-entry-${t}`))),td=()=>{const e=(0,Te.I0)(),t=(0,Te.v9)((e=>e.regexLibrary.libraryData)),s=(0,Te.v9)((e=>e.regexLibrary.pages)),n=(0,Te.v9)((e=>{var t;return null==(t=e.regexLibrary.details)?void 0:t.title})),r=(0,ke.lr)(),a=(0,Re.Z)(r,2),i=a[0],o=a[1],l=i.getAll("filterFlavors"),c=i.get("orderBy")||nn().MOST_RECENT,u=i.get("search")||"",d=i.get("page")||1,h=(0,we.$5)("regexLibrary"),p=(0,Re.Z)(h,3),g=p[0],m=p[1],x=p[2];(0,we.vI)((()=>{x((0,X.v0)(d,u,c,l))}),[x,l.join(""),c,u,d]),(0,we.DB)((()=>{0===t.length&&x((0,X.v0)(d,u,c,l))}),[x,l.join(""),c,u,d,t.length]);const f=(0,we.Sf)(o,500,"cancel"),v=(0,Ee.useCallback)(((e="")=>{let t;t=0===u.length&&0!==e.length?nn().RELEVANCE:0===e.length&&c===nn().RELEVANCE?nn().MOST_RECENT:c,f({filterFlavors:l,orderBy:t,search:e})}),[f,l,c,u.length]);return(0,Ee.useEffect)((()=>()=>e((0,X.tP)([]))),[e]),(0,we.kF)("Regex Library",R.LIBRARY_META_DESCRIPTION),(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsxs)("div",{className:"Mn1lS",children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Library entries"),className:Qu}),(0,Ve.jsxs)("label",{className:"SS2G3",children:[(0,Ve.jsx)("span",{className:Qu,children:(0,Ae.Z)("Search library")}),(0,Ve.jsx)(Ie.oi,{defaultValue:u||"",onChange:v,placeholder:(0,Ae.Z)("Search library"),focusOnMount:!0,clearButton:!0})]}),(0,Ve.jsx)(rr.Z,{className:"kyeKv",children:(0,Ve.jsx)(Zu,{isLoading:g,children:(0,Ve.jsx)(ed,{libraryData:t,fetchError:!!m,didSearch:""!==u||l.length>0})})}),(null==t?void 0:t.length)>0&&!m&&(0,Ve.jsx)(_u,{pages:s,currentPage:parseInt(d,10),className:"TkFqs"})]}),(0,Ve.jsx)(Ne.Z5,{children:(0,Ve.jsx)(Ne.AW,{path:":foo/:bar/*",element:(0,Ve.jsx)(Ie.l_,{to:"/library"})})}),(0,Ve.jsx)(vr,{title:n||(0,Ae.Z)("Library Entry"),preserveLocation:!0,path:":libraryId/*",children:(0,Ve.jsx)(zu,{})})]})};var sd=s(61724);const nd=({title:e,children:t})=>(0,Ve.jsxs)("div",{className:"qaldp",children:[(0,Ve.jsx)(Ie.__,{text:e}),(0,Ve.jsx)(rr.Z,{children:t})]}),rd=(0,Ee.memo)(nd),ad="UClnn",id="Ln7r5",od=[50,100,200,400,600,800,1e3,1500,2e3,3e3,4e3,5e3,7500,1e4,15e3,2e4,3e4,4e4,5e4,75e3,1e5],ld={exit:"Cr18H",exitActive:"YmXqP"},cd=["\\n","\\r\\n","\\r"],ud=(0,lt.Z)(ct.JL),dd=()=>{const e=(0,Ee.useState)(!1),t=(0,Re.Z)(e,2),s=t[0],n=t[1],r=(0,Ee.useRef)(),a=(0,Te.I0)(),i=(0,Te.v9)((e=>e.settings)),o=e=>t=>((e,t)=>{let s;null==e.target.checked?(s=e.target.value,""===s||isNaN(s)||(s=parseInt(s,10))):s=e.target.checked;const o=Object.assign(Object.assign({},i),{},{[t]:s});n(!0),a((0,X.I2)(o)),a((0,X.Ot)()),i.language!==o.language&&a((0,X.BF)(o.language)),clearTimeout(r.current),r.current=setTimeout((()=>n(!1)),2e3)})(t,e);return(0,Ee.useEffect)((()=>()=>{clearTimeout(r.current)}),[]),(0,Ve.jsxs)("div",{className:"EGx_u",children:[(0,Ve.jsx)(Ie.uT,{className:"mCG29",classNames:ld,timeout:ud,appear:!1,enter:!1,in:s,children:(0,Ve.jsxs)("div",{className:"aQbMN",children:[(0,Ae.Z)("Saving settings..."),(0,Ve.jsx)(Ie.$j,{size:He.J7.TC,className:"Y06gr"})]})}),(0,Ve.jsxs)(rd,{title:(0,Ae.Z)("General"),children:[(0,Ve.jsxs)(ai,{className:ad,children:[(0,Ae.Z)("Language"),(0,Ve.jsx)("select",{defaultValue:i.language,onChange:o("language"),children:Object.keys(sd).sort().map((e=>(0,Ve.jsx)("option",{value:e,children:sd[e].text},`language-${e}`)))}),(0,Ve.jsxs)(Ie.qX,{className:id,noMargin:!0,children:[(0,Ae.Z)("You can help with translations by visiting the following url:")," ",(0,Ve.jsx)(Ie.rU,{to:"https://r101.cf",absolute:!0,children:"https://r101.cf"})]})]}),(0,Ve.jsxs)(ai,{children:[(0,Ve.jsx)("input",{type:"checkbox",checked:i.alwaysCollapseLeftSidebar,onChange:o("alwaysCollapseLeftSidebar")}),(0,Ae.Z)("Always collapse left sidebar")]}),(0,Ve.jsxs)(ai,{children:[(0,Ve.jsx)("input",{type:"checkbox",checked:i.alwaysCollapseRightSidebar,onChange:o("alwaysCollapseRightSidebar")}),(0,Ae.Z)("Always collapse right sidebar")]}),(0,Ve.jsxs)(ai,{children:[(0,Ve.jsx)("input",{type:"checkbox",checked:i.showWarningUnsavedProgress,onChange:o("showWarningUnsavedProgress")}),(0,Ae.Z)("Show warning popup when trying to leave site with unsaved data")]}),(0,Ve.jsxs)(ai,{className:ad,children:[(0,Ve.jsx)("input",{type:"checkbox",checked:i.defaultTabBehavior,onChange:o("defaultTabBehavior")}),(0,Ae.Z)("Use the default behavior for the tab key"),(0,Ve.jsx)(Ie.qX,{className:id,noMargin:!0,children:(0,Ae.Z)("The tab key will by default switch to the next field in the tabbing order. If this option is disabled, input areas for regex, substitution and test string will instead consume the tab key.")})]}),(0,Ve.jsxs)(ai,{children:[(0,Ve.jsx)("input",{type:"checkbox",checked:i.disableKeyboardShortcuts,onChange:o("disableKeyboardShortcuts")}),(0,Ae.Z)("Disable all keyboard shortcuts")]})]}),(0,Ve.jsx)(rd,{title:(0,Ae.Z)("Theme"),children:(0,Ve.jsxs)(ai,{children:[(0,Ae.Z)("Style"),(0,Ve.jsxs)("select",{defaultValue:i.theme,onChange:o("theme"),children:[(0,Ve.jsx)("option",{value:C.B7,children:(0,Ae.Z)("Automatic")}),(0,Ve.jsx)("option",{value:C.rp,children:(0,Ae.Z)("Light")}),(0,Ve.jsx)("option",{value:C.Py,children:(0,Ae.Z)("Dark")})]})]})}),(0,Ve.jsxs)(rd,{title:(0,Ae.Z)("Editor"),children:[(0,Ve.jsxs)(ai,{className:ad,children:[(0,Ae.Z)("Max Execution Time"),(0,Ve.jsx)("select",{defaultValue:i.maxExecutionTime,onChange:o("maxExecutionTime"),children:od.map((e=>(0,Ve.jsx)("option",{value:e,children:e>1e3?e/1e3+"s":`${e}ms`},`max-time-${e}`)))}),(0,Ve.jsx)(Ie.qX,{className:id,noMargin:!0,children:(0,Ae.Z)("This setting affects how long the matcher will try to match your regex before it decides to give up")}),i.maxExecutionTime<1500&&(0,Ve.jsx)(Ie.qX,{className:id,noMargin:!0,type:He.gr.u_,children:(0,Ae.Z)("Values below {1} are not recommended. Use at your own discretion","1.5s")})]}),(0,Ve.jsxs)(ai,{className:ad,children:[(0,Ae.Z)("Default flavor"),(0,Ve.jsx)("select",{defaultValue:i.defaultFlavor,onChange:o("defaultFlavor"),children:m.all.map((e=>(0,Ve.jsx)("option",{value:e,children:e},`flavor-${e}`)))}),(0,Ve.jsx)(Ie.qX,{className:id,noMargin:!0,children:(0,Ae.Z)("Select the flavor you want to use when the site loads. Note: a saved entry's flavor will override this")})]}),(0,Ve.jsxs)(ai,{className:ad,children:[(0,Ae.Z)("Default code generator language"),(0,Ve.jsxs)("select",{defaultValue:i.defaultCodeGenLanguage,onChange:o("defaultCodeGenLanguage"),children:[(0,Ve.jsx)("option",{value:"",children:(0,Ae.Z)("Automatic")},"code-gen-language-auto"),Ws.vI.map((e=>(0,Ve.jsx)("option",{value:e.value,children:e.string},`code-gen-language-${e.value}`)))]}),(0,Ve.jsx)(Ie.qX,{className:id,noMargin:!0,children:(0,Ae.Z)("If left to Automatic, the code generator will mirror the currently selected flavor in the editor")})]}),(0,Ve.jsxs)(ai,{className:ad,children:[(0,Ve.jsx)("input",{type:"checkbox",checked:i.colorizeSyntax,onChange:o("colorizeSyntax")}),(0,Ae.Z)("Highlight Syntax"),(0,Ve.jsx)(Ie.qX,{className:id,noMargin:!0,children:(0,Ae.Z)("Enable or disable the syntax highlighting of your regular expression in the editor")})]}),(0,Ve.jsxs)(ai,{children:[(0,Ve.jsx)("input",{type:"checkbox",checked:i.wrapLines,onChange:o("wrapLines")}),(0,Ae.Z)("Wrap Long Lines")]}),(0,Ve.jsxs)(ai,{children:[(0,Ve.jsx)("input",{type:"checkbox",checked:i.regexAreaLineNumbers,onChange:o("regexAreaLineNumbers")}),(0,Ae.Z)("Show Line Numbers in Regex Editor")]}),(0,Ve.jsxs)(ai,{children:[(0,Ve.jsx)("input",{type:"checkbox",checked:i.testAreaLineNumbers,onChange:o("testAreaLineNumbers")}),(0,Ae.Z)("Show Line Numbers in Test String Editor and Substitution Result")]}),(0,Ve.jsxs)(ai,{className:ad,children:[(0,Ve.jsx)("input",{type:"checkbox",checked:i.editorTooltips,onChange:o("editorTooltips")}),(0,Ae.Z)("Show tooltips"),(0,Ve.jsx)(Ie.qX,{className:id,noMargin:!0,children:(0,Ae.Z)("Show informative and helpful tooltips when hovering tokens in the regex editor")})]}),(0,Ve.jsxs)(ai,{children:[(0,Ve.jsx)("input",{type:"checkbox",checked:i.displayWhitespace,onChange:o("displayWhitespace")}),(0,Ae.Z)("Visualize whitespace and other special characters")]}),(0,Ve.jsxs)(ai,{className:ad,children:[(0,Ve.jsx)("input",{type:"checkbox",checked:i.calculateRegexSteps,onChange:o("calculateRegexSteps")}),(0,Ae.Z)("Show how many steps a regular expression takes to evaluate"),(0,Ve.jsxs)(Ie.qX,{className:id,noMargin:!0,children:[(0,Ae.Z)("If you are working on very large and complex expressions, turning this option off will yield improved performance.")," ",(0,Ae.Z)("Only works in supported languages {1}.","(PCRE, PHP)")]})]}),(0,Ve.jsxs)(ai,{className:ad,children:[(0,Ve.jsx)("input",{type:"checkbox",checked:i.nonParticipatingGroups,onChange:o("nonParticipatingGroups")}),(0,Ae.Z)("Include non-participating groups in match result"),(0,Ve.jsx)(Ie.qX,{className:id,noMargin:!0,children:(0,Ae.Z)("This setting determines whether groups in your regex, which did not match anything in the subject string, should be included in the results or not")})]}),(0,Ve.jsxs)(ai,{className:ad,children:[(0,Ae.Z)("Line Separator"),(0,Ve.jsxs)("select",{defaultValue:i.lineSeparator,onChange:o("lineSeparator"),children:[(0,Ve.jsx)("option",{value:"",children:(0,Ae.Z)("Automatic")},"line-sep-automatic"),cd.map((e=>(0,Ve.jsx)("option",{value:e,children:e},`line-sep-${e}`)))]}),(0,Ve.jsxs)(Ie.qX,{className:id,noMargin:!0,children:[(0,Ve.jsx)(Ie.vV,{tag:"div",text:"Pick which line separator to use in the editor. This only affects the parsing of the text when inserted into the editor, any changes within the editor till always use {1}.",ph1:Or("\\n")}),(0,Ve.jsx)(Ie.vV,{tag:"div",text:"The default setting of {1} will split lines on any of {2}, {3} or {4}.",ph1:Or((0,Ae.Z)("Automatic")),ph2:Or("\\n"),ph3:Or("\\r"),ph4:Or("\\r\\n")})]}),(0,Ve.jsx)(Ie.qX,{className:id,noMargin:!0,type:He.gr.u_,children:(0,Ae.Z)("Experimental feature; may be removed in the future.")})]})]})]})},hd=()=>((0,we.kF)("Settings",R.SETTINGS_META_DESCRIPTION),(0,Ve.jsxs)(Ne.Z5,{children:[(0,Ve.jsx)(Ne.AW,{path:"/",element:(0,Ve.jsx)(dd,{})}),(0,Ve.jsx)(Ne.AW,{path:"*",element:(0,Ve.jsx)(Ie.l_,{to:"/settings"})})]})),pd=({title:e,permalinkFragment:t,version:s,flavor:n})=>{let r;return r=null!=e&&e.length>0?(0,Ve.jsxs)("span",{children:[(0,Ve.jsx)("strong",{className:"fQJFj",children:e})," (",t,"/",s,")"]}):`${t}/${s}`,(0,Ve.jsxs)("div",{className:"ultvh",children:[(0,Ve.jsx)(Ie.rU,{to:At(t,s),absolute:!0,children:r}),(0,Ve.jsx)("div",{className:"Qz9r3",children:n})]})},gd=(0,Ee.memo)(pd),md=({onModalClose:e,isOpen:t,title:s="",libraryTitle:n,tags:r=[],historyItemIndex:a,permalinkFragment:o})=>{const l=(0,Te.I0)(),c=(0,Ee.useState)(!1),u=(0,Re.Z)(c,2),d=u[0],h=u[1],p=(0,Ee.useState)(s),g=(0,Re.Z)(p,2),m=g[0],x=g[1],f=(0,Ee.useState)(r),v=(0,Re.Z)(f,2),b=v[0],j=v[1],C=(0,Ee.useState)({isLoading:!1,hasError:!1}),Z=(0,Re.Z)(C,2),y=Z[0],E=Z[1],T=(0,Ee.useCallback)((e=>{j(e),h(!0)}),[]),k=(0,Ee.useCallback)((e=>{x(e),h(!0)}),[]);return(0,Ee.useEffect)((()=>{t&&(x(s),j(r))}),[t,r,s]),(0,Ve.jsxs)(Ye.Z,{onModalClose:e,isOpen:t,isLoading:y.isLoading,children:[(0,Ve.jsx)(Ke.Z,{children:(0,Ae.Z)("Edit account entry")}),(0,Ve.jsx)(Je.Z,{children:(0,Ve.jsx)(Gt,{title:m,libraryTitle:n,tags:b,onTagsChange:T,onTitleChange:k,disabled:y.isLoading})}),(0,Ve.jsxs)(Xe.Z,{children:[y.isLoading&&(0,Ve.jsx)(Ie.$j,{className:"gTWw0",size:He.J7.TC}),y.hasError&&(0,Ve.jsx)(Ie.lx,{text:(0,Ae.Z)("Unable to save changes, please try again"),direction:He.qF.N,children:(0,Ve.jsx)("div",{className:"wzCa1",role:"alert",children:(0,Ve.jsx)(Pe.j6O,{size:20})})}),(0,Ve.jsx)(Ie.zx,{text:(0,Ae.Z)("Save"),onClick:async()=>{E({isLoading:!0,hasError:!1});try{await Promise.all([l((0,X.ML)(b,a,o)),l((0,X._1)(m,a,o)),new Promise((e=>setTimeout(e,500)))]),E({isLoading:!1,hasError:!1}),e()}catch(e){i.Z.error("Unable to save account details",e),E({isLoading:!1,hasError:!0})}},className:"cTD4v",disabled:y.isLoading||!d}),(0,Ve.jsx)(Ie.zx,{text:(0,Ae.Z)("Close"),onClick:e,type:He.V5.n1,disabled:y.isLoading})]})]})},xd="YTN_p",fd="QYMY8",vd=({refreshData:e,permalinkFragment:t,version:s,historyItemIndex:n,isOwner:r,dateAdded:a,isFavorite:i,isPrivate:o,isLocked:l,isLibraryEntry:c,regexDeleteCode:u,versionDeleteCode:d,title:h,libraryTitle:p,tags:g})=>{const m=(0,Te.I0)(),x=(0,Te.v9)((e=>e.general.permalinkFragment)),f=(0,Te.v9)((e=>e.general.version)),v=(0,Ee.useState)(!1),b=(0,Re.Z)(v,2),j=b[0],C=b[1],Z=(0,Ee.useState)(!1),y=(0,Re.Z)(Z,2),E=y[0],T=y[1],k=(0,Ee.useCallback)((async()=>{await m(X.Ez(t,n,!i)),null!=x&&x===t&&m(X.jb(!i))}),[m,t,i,n,x]),N=(0,Ee.useCallback)((async()=>{await m(X.JO(t,n,!o))}),[m,t,n,o]),S=(0,Ee.useCallback)((async()=>{await m(X.fU(t,n,!l))}),[m,t,n,l]),_=(0,Ee.useCallback)((()=>C(!0)),[]),w=(0,Ee.useCallback)((()=>C(!1)),[]),A=(0,Ee.useCallback)((()=>T(!0)),[]),O=(0,Ee.useCallback)((()=>T(!1)),[]),I=(0,Ee.useCallback)((async s=>{T(!1),x!==t||s!==Fs&&f!==s||m(X.Bq(null,null,null)),e()}),[m,t,f,e,x]),R=(0,Ee.useMemo)((()=>{const e={deleteCode:u,versions:[]};return null!=d&&e.versions.push({version:s,deleteCode:d}),e}),[s,u,d]);return(0,Ve.jsxs)("div",{className:"W2Ezh",children:[(0,Ve.jsxs)("div",{className:"J1eYs",children:[(0,Ve.jsx)(Ie.lx,{text:i?(0,Ae.Z)("Remove from favorites"):(0,Ae.Z)("Add to favorites"),direction:He.qF.NE,children:(0,Ve.jsx)(Ie.Yd,{onClick:k,children:(0,Ve.jsx)(Pe.iB2,{className:_e()(xd,"wEJsJ",i&&fd),size:16})})}),(0,Ve.jsx)(Ie.lx,{text:(0,Ae.Z)("Edit title and tags"),direction:He.qF.N,children:(0,Ve.jsx)(Ie.Yd,{onClick:_,children:(0,Ve.jsx)(Pe.cpK,{className:_e()(xd,"xO8vv"),size:16})})}),r&&!c&&(0,Ve.jsx)(Ie.lx,{text:o?(0,Ae.Z)("Make permalink public"):(0,Ae.Z)("Make permalink private"),direction:He.qF.N,children:(0,Ve.jsx)(Ie.Yd,{onClick:N,children:(0,Ve.jsx)(Pe.NuV,{className:_e()(xd,o&&fd),size:16})})}),r&&!c&&(0,Ve.jsx)(Ie.lx,{text:l?(0,Ae.Z)("Allow others to edit permalink"):(0,Ae.Z)("Disallow others to edit permalink"),direction:He.qF.N,children:(0,Ve.jsx)(Ie.Yd,{onClick:S,children:(0,Ve.jsx)(Pe.Dx2,{className:_e()(xd,"lEtvT",l&&fd),size:16})})}),null!=R&&(0,Ve.jsx)(Ie.lx,{text:c?(0,Ae.Z)("Delete library entry"):(0,Ae.Z)("Delete permalink"),direction:He.qF.N,children:(0,Ve.jsx)(Ie.Yd,{onClick:A,children:(0,Ve.jsx)(Pe.M$4,{className:_e()(xd,"nbKtJ"),size:16})})})]}),(0,Ve.jsx)("div",{className:"ULefS",children:$u(a).format("YYYY-MM-DD HH:mm")}),(0,Ve.jsx)(md,{isOpen:j,onModalClose:w,title:h,libraryTitle:p,tags:g,historyItemIndex:n,permalinkFragment:t}),null!=R&&(0,Ve.jsx)(Gs,{isOpen:E,onModalClose:O,onConfirmClick:I,deleteCodes:R,permalinkFragment:t})]})},bd="ZZ5Pq",jd=({item:e,historyItemIndex:t,refreshData:s})=>{const n=e.permalinkFragment,r=e.version,a=e.title,i=e.libraryTitle,o=e.flavor,l=e.tags,c=e.regex,u=e.delimiter,d=e.flags;return(0,Ve.jsxs)("div",{className:"yHCCV",children:[(0,Ve.jsx)(vd,Object.assign({refreshData:s,historyItemIndex:t},e)),(0,Ve.jsx)(gd,{permalinkFragment:n,version:r,title:a||i,flavor:o}),(0,Ve.jsxs)("div",{className:"o699z",children:[(0,Ve.jsx)("div",{className:bd,children:u}),(0,Ve.jsx)("div",{className:"cp1os",children:c}),(0,Ve.jsx)("div",{className:bd,children:u}),(0,Ve.jsx)("div",{className:"J2B0P",children:d})]}),(0,Ve.jsx)(Ut,{className:"fyIbf",tags:l,size:He.J7.HC,ignoreEmpty:!0})]})},Cd=(0,Ee.memo)(jd),Zd=({returnTo:e})=>{const t=(0,Ee.useState)(!1),s=(0,Re.Z)(t,2),n=s[0],r=s[1],a=(0,Ee.useCallback)((()=>r(!1)),[]);return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsxs)(Ie.qX,{className:"WdG4k",type:He.gr.u_,children:[(0,Ve.jsx)(Ie.vV,{tag:"strong",text:"Please {1} by clicking the link or the button in the left sidebar.",ph1:(0,Ve.jsx)(Ie.Yd,{className:"dQeBH",onClick:()=>r(!0),children:(0,Ae.Z)("sign in")})}),(0,Ve.jsxs)("p",{children:[(0,Ae.Z)("You do not have to create an account, just select an existing account from one of the supported service providers.")," ",(0,Ae.Z)("Only the bare minimum information is retrieved and saved in order to identify your account.")]})]}),(0,Ve.jsx)(fn,{onModalClose:a,isOpen:n,returnTo:e})]})},yd="bl5fq",Ed=({scope:e,page:t,emptyMessage:s})=>{const n=(0,ke.lr)(),r=(0,Re.Z)(n,1)[0].getAll("filterTags"),a=r.join(""),i=(0,Te.v9)((e=>e.account.staleData)),o=(0,Te.v9)((e=>e.account.data)),l=(0,we.$5)("getUserData"),c=(0,Re.Z)(l,3),u=c[0],d=c[1],h=c[2],p=(0,Ee.useCallback)((()=>h((0,X.s1)(e,t,r))),[h,a,t,e]);return(0,we.DB)((()=>{i&&h((0,X.s1)(e,t,r))}),[h,i,a,t,e]),(0,we.vI)((()=>{h((0,X.s1)(e,t,r))}),[h,a,t,e]),d?(0,Ve.jsx)(Ie.qX,{type:He.gr.pn,children:(0,Ae.Z)("There was an error while fetching your account data. Please try again later.")}):u||0!==o.length?(0,Ve.jsx)(Zu,{isLoading:u,children:o.map(((t,s)=>(0,Ve.jsx)(Cd,{item:t,filterTags:r,historyItemIndex:s,refreshData:p},`${e}-user-data-item-${s}`)))}):(0,Ve.jsx)(Ie.qX,{noMargin:!0,children:r.length>0?(0,Ae.Z)("Your tag filtration returned no results."):s})},Td=({title:e,scope:t,emptyMessage:s})=>{const n=(0,ke.lr)(),r=(0,Re.Z)(n,1)[0],a=parseInt(r.get("page"),10)||1,i=(0,Te.v9)((e=>e.account.pages)),o=(0,Te.v9)((e=>e.general.userId)),l=null!=o?e:(0,Ae.Z)("Account Page");return(0,we.kF)(l,R.ACCOUNT_META_DESCRIPTION),(0,Ve.jsxs)("div",{className:"Pw4UW",children:[(0,Ve.jsx)(Ie.__,{text:l,className:"rtGnE"}),(0,Ve.jsx)(rr.Z,{className:"mdzfm",children:null==o?(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Zd,{}),(0,Ve.jsxs)("p",{className:yd,children:[(0,Ae.Z)("By signing in, all your expressions will be automatically saved to your account, where you have ability to organize and manage them.")," ",(0,Ae.Z)("You can add titles and tags to organize your entries, as well as favorite any expressions.")]}),(0,Ve.jsxs)("p",{className:yd,children:[(0,Ae.Z)("You also get a valuable feature set with regards to your data privacy, where you are given the ability to restrict who can view and edit the information you save.")," ",(0,Ae.Z)("If you want to permanently remove the saved data, you can easily do so from here. The delete link will be automatically tied to your account, so you never have to worry about losing it.")]}),(0,Ve.jsx)(Ie.vV,{tag:"p",text:"By signing in you also get the ability to enhance your skills and participate in the {1} along with thousands of other regex connoisseurs!",ph1:(0,Ve.jsx)(Ie.rU,{to:"/quiz",children:(0,Ae.Z)("regex quiz")})})]}):(0,Ve.jsx)(Ed,{scope:t,emptyMessage:s,page:a})}),(0,Ve.jsx)(_u,{className:"StUEG",currentPage:a,pages:i})]})},kd=()=>{const e=(0,Te.I0)();return(0,Ee.useEffect)((()=>()=>e((0,X.xz)())),[e]),(0,Ve.jsx)("div",{className:"cX9NU",children:(0,Ve.jsxs)(Ne.Z5,{children:[(0,Ve.jsx)(Ne.AW,{path:pn().MINE,element:(0,Ve.jsx)(Td,{title:(0,Ae.Z)("My Regular Expressions"),scope:pn().MINE,emptyMessage:(0,Ae.Z)("You have not created anything yourself yet.")})}),(0,Ve.jsx)(Ne.AW,{path:pn().FAVORITES,element:(0,Ve.jsx)(Td,{title:(0,Ae.Z)("My Favorites"),scope:pn().FAVORITES,emptyMessage:(0,Ae.Z)("You have not added anything to your favorites yet.")})}),(0,Ve.jsx)(Ne.AW,{path:pn().LIBRARY,element:(0,Ve.jsx)(Td,{title:(0,Ae.Z)("My Library Entries"),scope:pn().LIBRARY,emptyMessage:(0,Ae.Z)("You have not submitted anything to the library yet.")})}),(0,Ve.jsx)(Ne.AW,{path:"*",element:(0,Ve.jsx)(Ie.l_,{to:`/account/${pn().MINE}`})})]})})};var Nd=s(68692);const Sd=({title:e,children:t})=>(0,Ve.jsxs)("div",{className:"bSN9D",children:[(0,Ve.jsx)(Ie.__,{text:e,className:"WnWGc"}),t]}),_d=se()?(0,Ee.lazy)((()=>Promise.all([s.e(87),s.e(781)]).then(s.bind(s,10947)))):()=>{},wd=({regex:e,flags:t,delimiter:s,substitution:n,isSubstitutionTask:r,shortestSolution:a,className:i,taskIdx:o,taskNumber:l,hasSolved:c})=>{const u=(""+e+t+s+s+n).length,d=r?"s"+s+e+s+n+s+t:s+e+s+t;return(0,Ve.jsxs)("div",{className:i,children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Task Statistics")}),(0,Ve.jsxs)(rr.Z,{children:[(0,Ve.jsx)(Ie.vV,{text:"Your shortest solution thus far is {1} characters long. The overall shortest solution is {2} characters long.",ph1:(0,Ve.jsx)("strong",{children:u}),ph2:(0,Ve.jsx)("strong",{children:a})}),(0,Ve.jsx)("div",{className:"uoWfq",children:d}),!c&&(0,Ve.jsx)(Ie.qX,{type:He.gr.pn,className:"oJnCW",children:(0,Ae.Z)("Your previous best entry has been invalidated and this task is no longer marked as completed for you.")}),c&&(0,Ve.jsx)(Ie.I2,{errorClassName:"xEiQv",fallback:(0,Ve.jsx)(Ie.$j,{size:He.J7.TC,className:"Z2tPY"}),children:(0,Ve.jsx)(_d,{taskIdx:o,taskNumber:l,bestSolution:u})})]})]})},Ad=parseFloat(Ue.D6),Od=({regex:e,flags:t,delimiter:s,flavor:n})=>{const r=(0,Te.v9)((e=>e.rightSidebar.activeSubsection));switch(r){case c:return(0,Ve.jsx)(Zi,{title:(0,Ae.Z)("Explanation"),children:(0,Ve.jsx)(Wa,{regex:e,flags:t,delimiter:s,flavor:n})});case d:return(0,Ve.jsx)(Zi,{title:(0,Ae.Z)("Quick Reference"),id:"quickrefParent",children:(0,Ve.jsx)(gi,{})});default:throw new Error(`Unknown subsection '${r}'`)}},Id=({regex:e,flags:t,delimiter:s,flavor:n})=>{const r=(0,we.Sj)(Ad);if((0,Te.v9)((e=>e.settings.alwaysCollapseRightSidebar))||r.width<Ad){const r=[{tooltip:(0,Ae.Z)("View Explanation"),icon:Ct.UCm,key:c},{tooltip:(0,Ae.Z)("View Regex Quick Reference"),icon:Pe.CA9,key:d}];return(0,Ve.jsxs)(ji,{children:[(0,Ve.jsx)(yi,{subsections:r}),(0,Ve.jsx)(Od,{regex:e,flags:t,delimiter:s,flavor:n})]})}return(0,Ve.jsxs)(Er,{children:[(0,Ve.jsx)(mi,{title:(0,Ae.Z)("Explanation"),subsection:c,resizable:!0,children:(0,Ve.jsx)(Wa,{regex:e,flags:t,delimiter:s,flavor:n})}),(0,Ve.jsx)(mi,{title:(0,Ae.Z)("Quick Reference"),subsection:d,id:"quickrefParent",children:(0,Ve.jsx)(gi,{})})]})},Rd=(Qt().shape({taskNumber:Qt().number.isRequired,title:Qt().string.isRequired,description:Qt().string.isRequired,taskType:Qt().string.isRequired,errorMessage:Qt().string,successMessage:Qt().string,totalTests:Qt().number,failingTestNumber:Qt().number,hasSolved:Qt().bool.isRequired,canSolve:Qt().bool.isRequired,shortestSolution:Qt().number}),Qt().shape({regex:Qt().string.isRequired,flags:Qt().string.isRequired,delimiter:Qt().string.isRequired,substitution:Qt().string.isRequired}),Qt().shape({regex:Qt().string,flags:Qt().string,delimiter:Qt().string,substitution:Qt().string}),({entry:e,className:t})=>{const s=e.regex,n=e.flags,r=e.delimiter,a=e.substitution;if(""===s||null==s)return null;const i=(""+s+n+r+r+a).length;return(0,Ve.jsx)("div",{className:t,children:(0,Ae.Z)("Current score: {1}",i)})}),Pd=(0,Ee.memo)(Rd),Ld="H513J",Md="ZVVpX",Dd="vMhEV",Ud=({task:e,error:t,loading:s,totalTasks:n,taskIdx:r})=>t?(0,Ve.jsxs)(Ie.qX,{type:He.gr.pn,children:[(0,Ae.Z)("There was an error querying the server, please try again later:")," ",t.message]}):s?(0,Ve.jsx)(Ie.$j,{size:He.J7.HC,className:"Npsea"}):e.errorMessage?(0,Ve.jsx)(tt,{className:"c7Tes",children:`**Test ${e.failingTestNumber}/${e.totalTests}:** ${e.errorMessage}`}):e.successMessage?(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(tt,{className:Md,children:e.successMessage}),r+1<n&&(0,Ve.jsxs)(Ie.rU,{className:"ityDl",to:`/quiz/${r+1}`,children:[(0,Ae.Z)("Next question")," \u2192"]})]}):(0,Ae.Z)("Enter your regex and hit submit to see the result."),Fd=["latest","best"],Gd=({taskIdx:e})=>{const t=(0,Ee.useState)({error:!1,captureGroupCount:0,subpatterns:[]}),s=(0,Re.Z)(t,2),n=s[0],r=s[1],a=(0,Ee.useState)(!1),i=(0,Re.Z)(a,2),o=i[0],l=i[1],c=(0,Ee.useState)({error:!1}),u=(0,Re.Z)(c,2),d=u[0],h=u[1],p=(0,Te.I0)(),g=(0,Te.v9)((e=>e.quiz.allTasks.length)),m=(0,Te.v9)((t=>t.quiz.allTasks[e-1]))||{latest:{},best:{},task:null},f=m.latest,v=m.best,b=(0,E.Z)(m,Fd),j=f.regex,C=f.flags,Z=f.delimiter,y=f.substitution,T=v.regex,k=v.flags,N=v.delimiter,S=v.substitution;(0,we.kF)(`Task ${e} - ${b.title}`,R.QUIZ_META_DESCRIPTION);const _=(0,we.Sf)(((e,t)=>p((0,X.$9)(e,{regex:t}))),R.UPDATE_RESULT_DELAY),w=(0,we.Sf)(((e,t)=>p((0,X.$9)(e,{substitution:t}))),R.UPDATE_RESULT_DELAY),A=(0,Ee.useCallback)((t=>{const s=(0,Nd.e)(t,x().PCRE2);p((0,X.$9)(e-1,{flags:s}))}),[p,e]),O=(0,Ee.useCallback)((t=>p((0,X.$9)(e-1,{delimiter:t}))),[p,e]),I=(0,Ee.useCallback)(((t,s,n,a,i)=>{const o=i.captureGroupCount,l=i.subpatterns;r({error:s,captureGroupCount:o,subpatterns:l}),_(e-1,t)}),[_,e]),P=(0,Ee.useCallback)(((t,s)=>{h({error:s}),w(e-1,t)}),[w,e]),L=(0,Ee.useCallback)((e=>{const t=e.delimiter,s=e.flags,n=e.isSub,r=e.substText;O(t),A(s),n&&Oe.ZP.emit(Oe.l2,r)}),[A,O]),M=(0,we.$5)("submitQuizSolution"),D=(0,Re.Z)(M,3),U=D[0],F=D[1],G=D[2];(0,Ee.useEffect)((()=>{o&&(l(!1),G((0,X.NS)(b.taskNumber,f)))}),[o,G,f,b.taskNumber]);const V=()=>{U||0===j.length||d.error||n.error||(_.flush(),w.flush(),l(!0))};let B=`${(0,Ae.Z)("Task {1}",e)}: ${b.title}`;b.isOptional&&(B+=` (${(0,Ae.Z)("optional")})`);const $="SUB"===b.taskType;return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Id,{regex:j,flavor:x().PCRE2,flags:C,delimiter:Z}),(0,Ve.jsxs)(Sd,{title:B,children:[(0,Ve.jsx)(rr.Z,{className:"k3Ut5",children:(0,Ve.jsx)(tt,{className:Md,children:b.description})}),(0,Ve.jsxs)("div",{className:"tYBLb",children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Regular Expression")}),(0,Ve.jsx)(el,{onRegexChange:I,onRegexPaste:L,onFlagsChange:A,onDelimiterChange:O,onEnterClick:V,delimiter:Z,regex:j,flags:C,flavor:x().PCRE2})]}),$&&(0,Ve.jsxs)("div",{className:"qdCR1",children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Substitution")}),(0,Ve.jsx)(lu,{flavor:x().PCRE2,captureGroupCount:n.captureGroupCount,subpatterns:n.subpatterns,defaultValue:y,onEnterClick:V,onChange:P,className:"ICHlo"})]}),(0,Ve.jsxs)("div",{className:"O_glM",children:[(0,Ve.jsx)(Pd,{className:"asiz9",entry:f}),(0,Ve.jsx)(Ie.zx,{text:(0,Ae.Z)("Submit"),onClick:V,disabled:U||0===j.length||!!d.error||!!n.error,className:"nfzMY"})]}),(0,Ve.jsxs)("div",{className:"chvbW",children:[(0,Ve.jsx)(Ie.__,{text:(0,Ae.Z)("Result")}),(0,Ve.jsx)(rr.Z,{children:(0,Ve.jsx)(Ud,{task:b,error:F,loading:U,totalTasks:g,taskIdx:e})})]}),null!=T&&(0,Ve.jsx)("div",{className:Ld,children:(0,Ve.jsx)(wd,{regex:T,flags:k,delimiter:N,substitution:S,isSubstitutionTask:$,shortestSolution:b.shortestSolution,className:Ld,taskNumber:b.taskNumber,hasSolved:b.hasSolved,taskIdx:e})})]})]})},Vd=()=>{const e=(0,Ne.UO)().taskIdx,t=(0,Te.v9)((t=>t.quiz.allTasks[e-1]));return null!=t&&t.canSolve?(0,Ve.jsx)(Gd,{taskIdx:parseInt(e,10)},`quiz-task-${e}`):(0,Ve.jsx)(Ie.l_,{to:"/quiz"})},Bd=["DrRegex","Andreas Zetterlund","Timvde","Zarthus","Davidebyzero"],$d=({notSignedIn:e})=>(0,Ve.jsx)(Sd,{title:(0,Ae.Z)("Regex Quiz"),children:(0,Ve.jsxs)(rr.Z,{className:"d9Wg4",children:[e&&(0,Ve.jsx)(Zd,{returnTo:"/quiz"}),(0,Ve.jsx)("strong",{children:(0,Ae.Z)("Welcome to the regex101 regex quiz!")}),(0,Ve.jsxs)("p",{className:Dd,children:[(0,Ae.Z)("This is an interactive learning tool you can use to improve your understanding of regular expressions, and their different applications.")," ",(0,Ae.Z)("The quiz is divided into a number of different tasks, which each have a short description of the problem for you to solve.")," ",(0,Ae.Z)("Once you have solved each task, you will be presented with statistics over how well others have done in that task, and the next task will be made available to you.")," ",(0,Ae.Z)("After you have finished a task you can continue improving upon your solution, making it shorter, and climb higher into the leader boards.")]}),(0,Ve.jsxs)("p",{className:Dd,children:[(0,Ae.Z)("Do note that these tasks do not necessarily promote best practices in real life scenarios, but rather aim to teach you the fundamentals of writing powerful regular expressions.")," ",(0,Ae.Z)("Parsing HTML with regex is seldom a good idea, despite there being a task in the quiz to do just that.")," ",(0,Ae.Z)("The quiz is evaluated using the PCRE2 engine, which is also available in the main editor if you would like to do some testing.")," ",(0,Ae.Z)("The tasks will get progressively harder, and you will receive less and less hand-holding the further you progress.")]}),(0,Ve.jsxs)("p",{className:Dd,children:[(0,Ae.Z)("If you encounter any issues, quirky behavior or bugs, please open up an issue on github with all the relevant details"),":"," ",(0,Ve.jsx)(Ie.rU,{to:"https://github.com/firasdib/Regex101/issues",absolute:!0,children:"https://github.com/firasdib/Regex101/issues"})]}),(0,Ve.jsxs)("div",{className:Dd,children:[(0,Ae.Z)("A special thanks goes out to the following individuals for their hard work and contributions to the quiz:"),(0,Ve.jsx)("ul",{className:"Qx04x",children:Bd.map((e=>(0,Ve.jsx)("li",{children:e},`credit-quiz-${e}`)))})]}),(0,Ve.jsx)("p",{className:Dd,children:(0,Ve.jsx)("strong",{children:(0,Ae.Z)("Enjoy!")})})]})}),Hd=()=>{const e=(0,Te.I0)(),t=(0,Te.v9)((e=>e.general.userId));return(0,Ee.useEffect)((()=>{e((0,X.hK)(c))}),[e]),(0,we.kF)("Regex Quiz",R.QUIZ_META_DESCRIPTION),null==t?(0,Ve.jsx)($d,{notSignedIn:!0}):(0,Ve.jsx)("div",{className:"jGEqA",children:(0,Ve.jsxs)(Ne.Z5,{children:[(0,Ve.jsx)(Ne.AW,{path:":taskIdx/*",element:(0,Ve.jsx)(Vd,{})}),(0,Ve.jsx)(Ne.AW,{path:"/",element:(0,Ve.jsx)($d,{})})]})})},qd=()=>(0,Ve.jsxs)("div",{className:"DmUSm",children:[(0,Ve.jsx)("h1",{children:"A critical error has occurred"}),(0,Ve.jsxs)("p",{children:["If possible, open up an issue with as many details as you can here:"," ",(0,Ve.jsx)("a",{href:"https://github.com/firasdib/Regex101/issues",children:"https://github.com/firasdib/Regex101/issues"}),"."]}),(0,Ve.jsx)("p",{children:"It might be a good idea to take a screen shot of your dev console window, if you know how to open it."})]}),zd=()=>{(0,we.YX)(),(0,we.aL)();const e=(0,Te.v9)((e=>e.settings.alwaysCollapseLeftSidebar)),t=(0,Te.v9)((e=>e.settings.alwaysCollapseRightSidebar)),s=(0,Te.v9)((e=>e.regexEditor.hasUnsavedData)),n=(0,Te.v9)((e=>e.settings.showWarningUnsavedProgress));return(0,Ee.useEffect)((()=>{window.requestAnimationFrame((()=>Oe.ZP.emit(Oe.En)))}),[]),(0,Ee.useEffect)((()=>{window.onbeforeunload=e=>{if(n&&s){const t=(0,Ae.Z)("You have made changes since you last saved, leaving the website will result in a permanent loss of the data.");return e.returnValue=t,t}}}),[s,n]),(0,Ve.jsxs)(Ie.SV,{fallback:(0,Ve.jsx)(qd,{}),children:[(0,Ve.jsx)(pt,{}),(0,Ve.jsxs)("div",{className:"HPRlT",children:[(0,Ve.jsx)(ot,{alwaysCollapseLeftSidebar:e,alwaysCollapseRightSidebar:t}),(0,Ve.jsx)(nr,{alwaysCollapseLeftSidebar:e}),(0,Ve.jsx)("div",{className:_e()("QtZzw",e&&"rxgkz"),children:(0,Ve.jsxs)(Ne.Z5,{children:[(0,Ve.jsx)(Ne.AW,{path:"/library/*",element:(0,Ve.jsx)(td,{})}),(0,Ve.jsx)(Ne.AW,{path:"/settings/*",element:(0,Ve.jsx)(hd,{})}),(0,Ve.jsx)(Ne.AW,{path:"/account/*",element:(0,Ve.jsx)(kd,{})}),(0,Ve.jsx)(Ne.AW,{path:"/quiz/*",element:(0,Ve.jsx)(Hd,{})}),(0,Ve.jsx)(Ne.AW,{path:"/r/:permalinkFragment/latest",element:(0,Ve.jsx)(br,{})}),(0,Ve.jsx)(Ne.AW,{path:"/r/:permalinkFragment/:version/*",element:(0,Ve.jsx)(bu,{})}),(0,Ve.jsx)(Ne.AW,{path:"/r/:permalinkFragment/*",element:(0,Ve.jsx)(bu,{})}),(0,Ve.jsx)(Ne.AW,{path:"/*",element:(0,Ve.jsx)(bu,{})})]})})]})]})},Wd=({store:e,promises:t=[]})=>(0,Ve.jsx)(Te.zt,{store:e,children:(0,Ve.jsx)(ke.VK,{children:(0,Ve.jsx)(zd,{})})});let Yd=null,Kd=null;if(Qd())Jd();else{let e;document.addEventListener("readystatechange",e=()=>{Qd()&&(document.removeEventListener("readystatechange",e),Jd())})}async function Jd(){if(window.__LEGACY__)return;Ze.S1(),await(String.fromCodePoint&&window.fetch&&Object.assign&&Object.values&&String.prototype.repeat&&String.prototype.includes&&String.prototype.codePointAt&&String.prototype.trim&&Array.prototype.includes&&Array.prototype.find&&Array.prototype.fill&&Array.prototype.findIndex&&"undefined"!=typeof AbortController&&"ResizeObserver"in window&&"URLSearchParams"in window?(null==window.performance&&(window.performance={}),null==window.performance.now&&(window.performance.now=()=>Date.now()),Promise.resolve()):Promise.all([s.e(889),s.e(429)]).then(s.t.bind(s,34820,23))),function(){const e=window.fetch;window.fetch=function(t,s={}){const n=new AbortController,r=n.signal,i=n.abort.bind(n);return function e(t){if(t instanceof Promise){const s=t;s.then=function(t,s){const n=Object.getPrototypeOf(this).then.call(this,t,s);return e(n)},s.cancel=i}return t}(e(t,Object.assign({signal:r},s))).then(a)}}();const e=await function(){let e;le().setDefaultLevel("info"),i.Z.info("App initialized - version %s","9.0.8"),window.regex101=window.regex101||{};try{e=JSON.parse(decodeURIComponent(window.__INITIAL_STATE__)),i.Z.info("Loaded initial state")}catch(e){return void i.Z.error(new Error("Unable to parse initial state from server"),{state:window.__INITIAL_STATE__})}const t=[ie,de,pe,ge,fe,be,O,je,Ce,ye],s=function(e){const t=function(e){return(t,s)=>e(s.type===h.sk?ne(t,s.value):t,s)}((0,o.UY)(n)),s=function(e){return({dispatch:t,getState:s})=>n=>r=>{const a=n(r),i=e[r.type];if(!i)return a;const o=Q(s(),i.reducersToSave);return ee.Z.save(i.key,o),t((0,X.UF)()),a}}(ae),r="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||o.qC,a=(0,o.MT)(t,e,r((0,o.md)(l.Z,s)));return function(e,t){se()&&Object.values(e).forEach((e=>{const s=ee.Z.get(e.key)||{};t.dispatch((0,X.dM)(s))}))}(ae,a),i.Z.info("Store configured"),a}(e);return Promise.all(t.map((e=>e(s)))).catch((e=>{throw e})).catch((e=>i.Z.error("Unable to initialize app",e))).then((()=>s))}();Ze.fo(e),Xd(e),await Ze.PC()}function Xd(e){Yd||(Yd=e);const t=document.querySelector(R.ROOT_ELEMENT);Kd=(0,r.s)(t),Kd.render((0,Ve.jsx)(Wd,{store:e}))}function Qd(){var e,t,s,n;return"interactive"===document.readyState&&!(null==(e=document)||null==(t=e.getElementById("mainCss"))||null==(s=t.sheet)||null==(n=s.cssRules)||!n.length)||"complete"===document.readyState}function eh(){Kd.unmount(),Xd(Yd)}},68654:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});const n={iconButton:"PRs2u",disabled:"SC8TZ",spinner:"ndNuf",icon:"nstWU"}},84682:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});const n={reduceMotion:"CwB4E",enter:"RuPoa",enterActive:"SkTVe",leave:"iRxXV",leaveActive:"vXhNJ"}},68417:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});const n={tokenSample:"T0laQ",plainText:"xq9Cm",keyword:"GedSw",flag:"d_MyJ",info:"hZ6T9",zeroWidth:"KzUpc",token:"KrSXE",flagDisabled:"Vsdwm",tooltip:"fOhwT",icon:"W6jS6",flags:"aBAKk"}},64475:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});const n={selected:"gJDSD",token:"YmAvV",selected2:"bb6Pd","group-0":"Ptqb6","group-1":"MnwcL","group-2":"bSq9j","group-3":"WDFFo","group-4":"BuckL",alternator:"DsO3D",quote:"aZNG2",charClass:"Im6LO",meta:"yyE4U",quantifier:"LEd3h",escaped_string:"HR7qQ",inline_modifiers:"Bzxfi",verb:"BKf2X",subpattern_reference:"xj8ZQ",backreference:"r2GH2",error:"w_XEF",inCharClass:"PQ94p",comment:"yU1q9",cursorover:"OFUcl",mouseoverRelatedLeft:"kUV2_",mouseoverRelatedRight:"qlnVF",mouseoverLeft:"kG5eN",mouseoverRight:"u8QII",mouseoverRelated:"Hkx_o",mouseover:"PqJSq",mouseoverOutlineRelated:"LJQ1R",mouseoverOutline:"cWCLz"}}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var s=i[e]={id:e,loaded:!1,exports:{}};return a[e].call(s.exports,s,s.exports,o),s.loaded=!0,s.exports}o.m=a,e=[],o.O=(t,s,n,r)=>{if(!s){var a=1/0;for(u=0;u<e.length;u++){for(var[s,n,r]=e[u],i=!0,l=0;l<s.length;l++)(!1&r||a>=r)&&Object.keys(o.O).every((e=>o.O[e](s[l])))?s.splice(l--,1):(i=!1,r<a&&(a=r));if(i){e.splice(u--,1);var c=n();void 0!==c&&(t=c)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[s,n,r]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},s=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var r=Object.create(null);o.r(r);var a={};t=t||[null,s({}),s([]),s(s)];for(var i=2&n&&e;"object"==typeof i&&!~t.indexOf(i);i=s(i))Object.getOwnPropertyNames(i).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,o.d(r,a),r},o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,s)=>(o.f[s](e,t),t)),[])),o.u=e=>({87:"vendors-quizStats",101:"markdownContainer",153:"regexDebugger",215:"vendors-markdownContainer",429:"polyfills",483:"vendors-quickref",530:"vendors-sentry",648:"vendors-codeSample",653:"quickref",781:"quizStats",889:"vendors-polyfills",961:"codeSample"}[e]+"."+{87:"054efe3ad0e703a2bed8",101:"3c68a37df18b18628b5c",153:"a353bcb776663689f94f",215:"a785b370b80079b5496d",429:"8b5dc782cd27d04ae66a",483:"9f1fb9975e189e121626",530:"8297ed8fd1b6cf998129",648:"aa65afdce26faff8bda9",653:"13eedec26774e778c5fa",781:"9aebaa4820e96590489e",889:"dd589408f43201889114",961:"00d8d50fd655da6237f2"}[e]+".chunk.js"),o.miniCssF=e=>e+"."+{101:"062c76d479a71b4ef6e7",153:"06b5a40f8cc5f1c21318",653:"de37bf83de58791edb3a",781:"7ba3836d8ae25f7bb111",961:"3f4e47b936fafeb707f0"}[e]+".css",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="regex101:",o.l=(e,t,s,a)=>{if(n[e])n[e].push(t);else{var i,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+s){i=d;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,o.nc&&i.setAttribute("nonce",o.nc),i.setAttribute("data-webpack",r+s),i.src=e),n[e]=[t];var h=(t,s)=>{i.onerror=i.onload=null,clearTimeout(p);var r=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(s))),t)return t(s)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=h.bind(null,i.onerror),i.onload=h.bind(null,i.onload),l&&document.head.appendChild(i)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="/static/",(()=>{if("undefined"!=typeof document){var e={296:0};o.f.miniCss=(t,s)=>{e[t]?s.push(e[t]):0!==e[t]&&{101:1,153:1,653:1,781:1,961:1}[t]&&s.push(e[t]=(e=>new Promise(((t,s)=>{var n=o.miniCssF(e),r=o.p+n;if(((e,t)=>{for(var s=document.getElementsByTagName("link"),n=0;n<s.length;n++){var r=(i=s[n]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(r===e||r===t))return i}var a=document.getElementsByTagName("style");for(n=0;n<a.length;n++){var i;if((r=(i=a[n]).getAttribute("data-href"))===e||r===t)return i}})(n,r))return t();((e,t,s,n,r)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.onerror=a.onload=s=>{if(a.onerror=a.onload=null,"load"===s.type)n();else{var i=s&&("load"===s.type?"missing":s.type),o=s&&s.target&&s.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=o,a.parentNode&&a.parentNode.removeChild(a),r(l)}},a.href=t,document.head.appendChild(a)})(e,r,0,t,s)})))(t).then((()=>{e[t]=0}),(s=>{throw delete e[t],s})))}}})(),(()=>{var e={296:0};o.f.j=(t,s)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)s.push(n[2]);else{var r=new Promise(((s,r)=>n=e[t]=[s,r]));s.push(n[2]=r);var a=o.p+o.u(t),i=new Error;o.l(a,(s=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var r=s&&("load"===s.type?"missing":s.type),a=s&&s.target&&s.target.src;i.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",i.name="ChunkLoadError",i.type=r,i.request=a,n[1](i)}}),"chunk-"+t,t)}},o.O.j=t=>0===e[t];var t=(t,s)=>{var n,r,[a,i,l]=s,c=0;if(a.some((t=>0!==e[t]))){for(n in i)o.o(i,n)&&(o.m[n]=i[n]);if(l)var u=l(o)}for(t&&t(s);c<a.length;c++)r=a[c],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(u)},s=("undefined"!=typeof self?self:this).webpackChunkregex101=("undefined"!=typeof self?self:this).webpackChunkregex101||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})();var l=o.O(void 0,[598],(()=>o(16548)));l=o.O(l)})();
+1-0public/static/quickref.13eedec26774e778c5fa.chunk.js
@@ -0,0 +1 @@
1+"use strict";(("undefined"!=typeof self?self:this).webpackChunkregex101=("undefined"!=typeof self?self:this).webpackChunkregex101||[]).push([[653],{5036:(e,a,s)=>{s.r(a),s.d(a,{default:()=>W});var n=s(98152),t=s(67294),r=s(70743),i=s(79352),c=s(53854),l=s(83950),o=s(86565),d=s(62238),h=s(80362),p=s(6527),x=s(68821);const m="ALL_TOKENS",g="COMMON_TOKENS",u="GENERAL_TOKENS",f="ANCHORS",v="META_SEQUENCES",j="QUANTIFIERS",b="GROUP_CONSTRUCTS",y="CHARACTER_CLASSES",R="FLAGS_MODIFIERS",k="SUBSTITUTION";var w=s(61348),N=s.n(w),T=s(68417);const P="vBshH",E="h8bCK",C="JmxiQ";var A=s(85893);const Z=e=>(0,A.jsx)("span",{className:T.Z.tokenSample,children:e}),V=e=>(0,A.jsx)("span",{className:P,children:e}),O="ufFSv",S="JcsyQ",I="j4cS2",U="nOrVs",F="NOaAb";var G=s(94184),J=s.n(G);var M=s(61607),Y=s(69574),L=s(59747),D=s(58090),H=s(3641),q=s(14882),z=s(97930);const B=(0,L.Z)(q.JL),X=parseInt(z.D6,10),_={appear:E,appearActive:C,enter:E,enterActive:C,exit:"Url5q",exitActive:"Z4TLl"},K=({item:e,isOpen:a,target:s,onDetailsClose:n})=>{const c=(0,r.I0)(),l=(0,r.v9)((e=>e.regexEditor.flavor)),d=(0,t.useRef)(null),h=(0,t.useCallback)((()=>{var a,s;const n=e.exampleRegex,t=e.regexFlags,r=(null==(a=d.current)?void 0:a.innerText)||(null==(s=d.current)?void 0:s.textContent);null!=r&&(Y.ZP.emit(Y.UJ),c((0,M.Iu)()),c((0,M.dL)("",t||"",l)),Y.ZP.emit(Y.fZ,n,r))}),[e,c,l]);return(0,t.useEffect)((()=>{const e=e=>{null==e||e.stopPropagation(),n()};return a&&Y.ZP.once("key:escape",e),()=>Y.ZP.off("key:escape",e)}),[a,n]),(0,A.jsx)(x.h_,{isOpen:a,closeTimeout:B,portalTarget:s,children:(0,A.jsx)(x.uT,{className:"UDI84",classNames:_,timeout:B,in:a,children:(0,A.jsxs)("div",{className:"FHG1E",children:[(0,A.jsx)(x.Po,{text:e.desc,className:"Xej5E",children:(0,A.jsx)(x.lx,{text:(0,o.Z)("Close details"),direction:window&&window.innerWidth>X?D.qF.NW:D.qF.W,children:(0,A.jsx)(x.Yd,{onClick:n,className:"XEr8P",children:(0,A.jsx)(i.eSQ,{size:18})})})}),(0,A.jsxs)("div",{className:"w7WwV",children:[(0,A.jsxs)("div",{className:"rtoZ8",children:[(0,A.jsx)("div",{className:"ZWIzy",children:(0,A.jsx)("span",{className:T.Z.tokenSample,children:e.token})}),(0,A.jsx)("div",{className:"vqMnN",children:e.info})]}),!!e.exampleRegex&&(0,A.jsxs)(H.Z,{className:"tFlWF",children:[(0,A.jsxs)("div",{className:P,children:["/",e.exampleRegex,"/",e.regexFlags]}),(0,A.jsx)("div",{className:"ycsEY",ref:d,children:e.example}),(0,A.jsx)(x.hU,{tooltip:(0,o.Z)("Load example in editor"),tooltipDirection:D.qF.NW,size:24,onClick:h,className:"dS50b",children:(0,A.jsx)(i.nzV,{size:14})})]})]})]})})})};function $(e,a,s){return e.filter((e=>{const n=e.flavors.includes(s);if(""!==a){var t;const s=(a=a.toLowerCase()).split(/\s+/).filter(Boolean),r=e.token.toLowerCase().includes(a)||e.desc.toLowerCase().includes(a)||(null==(t=e.keywords)?void 0:t.some((e=>s.includes(e))));return n&&r}return n}))}const W=()=>{const e=(0,r.v9)((e=>e.regexEditor.flavor)),a=(0,t.useState)(g),s=(0,n.Z)(a,2),w=s[0],P=s[1],E=(0,t.useState)(!1),C=(0,n.Z)(E,2),G=C[0],M=C[1],Y=(0,t.useState)(""),L=(0,n.Z)(Y,2),D=L[0],H=L[1],q=(0,t.useState)(null),z=(0,n.Z)(q,2),B=z[0],X=z[1],_=(0,t.useCallback)((e=>{X(e),M(!0)}),[]),W=(0,t.useCallback)((e=>P(e)),[]),Q=(0,t.useCallback)((()=>M(!1)),[]),ee=(0,l.Sf)(H,300,"cancel"),ae=(0,t.useMemo)((()=>(()=>{const e=[{token:"\\n",desc:(0,o.Z)("Newline"),info:(0,A.jsx)("div",{children:(0,o.Z)("Matches a newline character")}),example:(0,A.jsxs)("div",{children:["First line",(0,A.jsx)("br",{}),(0,A.jsx)("span",{}),(0,A.jsx)("br",{}),"Third line",(0,A.jsx)("br",{})]}),keywords:["enter","new paragraph","paragraph break","line break"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\r",desc:(0,o.Z)("Carriage return"),info:(0,A.jsx)("div",{children:(0,o.Z)("Matches a carriage return, unicode character U+2185.")}),keywords:["13","&carr;","U+21B5","u21B5"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\t",desc:(0,o.Z)("Tab"),info:(0,A.jsx)("div",{children:(0,o.Z)("Matches a tab character. Historically, tab stops happen every 8 characters.")}),example:(0,A.jsx)(x.vV,{tag:"div",text:"Here comes a {1} tab character.",ph1:(0,A.jsx)("span",{className:O,children:" "})}),keywords:["indent"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\0",desc:(0,o.Z)("Null character"),info:(0,A.jsx)("div",{children:(0,o.Z)("Matches a null character, most often visually represented in unicode using U+2400.")}),keywords:["U+2400","u2400","U+0000","u0000","^@"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().DOTNET]}],a=[{token:"[abc]",basic:!0,desc:(0,o.Z)("A single character of: a, b or c"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"a"})," ",(0,A.jsx)("span",{className:O,children:"bb"})," ",(0,A.jsx)("span",{className:O,children:"ccc"})]}),exampleRegex:"[abc]+",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches either an a, b or c character")}),keywords:["character","classes","class","char","specific","letters","alphabet"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"[[ab][cd]]",basic:!0,desc:(0,o.Z)("A single character of: a, b, c or d"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"ab"}),"123",(0,A.jsx)("span",{className:O,children:"cd"})]}),exampleRegex:"[[abc][def]]",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Nested character classes act as boolean OR, equivalent to simply using {1}",ph1:Z("[abcdef]")}),keywords:["class","char","character","classes","letter range","letters","alphabet","uppercase","lowercase"],flavors:[N().JAVA,N().RUST]},{token:"[^abc]",basic:!0,desc:(0,o.Z)("A character except: a, b or c"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"Anything "}),"b",(0,A.jsx)("span",{className:O,children:"ut "}),"abc",(0,A.jsx)("span",{className:O,children:"."})]}),exampleRegex:"[^abc]+",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches any character except for an a, b or c")}),keywords:["class","char","character","classes","anything except","anything but","letter range","letters","alphabet"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"[a-z]",basic:!0,desc:(0,o.Z)("A character in the range: a-z"),example:(0,A.jsxs)("div",{children:["O",(0,A.jsx)("span",{className:O,children:"nly"})," ",(0,A.jsx)("span",{className:O,children:"a"}),"-",(0,A.jsx)("span",{className:O,children:"z"})]}),exampleRegex:"[a-z]+",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches any characters between a and z, including a and z.")}),keywords:["character","classes","class","char","letter range","letters","alphabet"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"[^a-z]",basic:!0,desc:(0,o.Z)("A character not in the range: a-z"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"A"}),"nything",(0,A.jsx)("span",{className:O,children:" "}),"but",(0,A.jsx)("span",{className:O,children:" "}),"a",(0,A.jsx)("span",{className:O,children:"-"}),"z",(0,A.jsx)("span",{className:O,children:"."})]}),exampleRegex:"[^a-z]+",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches any characters except those in the range a-z.")}),keywords:["character","classes","class","char","letter range","letters","alphabet"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"[a-zA-Z]",basic:!0,desc:(0,o.Z)("A character in the range: a-z or A-Z"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"abc"}),"123",(0,A.jsx)("span",{className:O,children:"DEF"})]}),exampleRegex:"[a-zA-Z]+",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches any characters between a-z or A-Z. You can combine as much as you please.")}),keywords:["class","char","character","classes","letter range","letters","alphabet","uppercase","lowercase"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"[\\w&&[^\\d]]",basic:!0,desc:(0,o.Z)("Character class intersection"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"ab"}),"123",(0,A.jsx)("span",{className:O,children:"cd_ef"})]}),exampleRegex:"[\\w&&[^\\d]]+",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Matches the intersection between the two character classes. Useful if you want to white or blacklist certain characters from a broader class."}),(0,A.jsx)(x.vV,{tag:"p",text:"You can also perform character class subtraction, by intersecting with a negated character class, like so {1}, in order to match word characters, but not {2}",ph1:V("[\\w&&[^abc]]"),ph2:Z("abc")})]}),keywords:["class","char","character","classes","letter range","letters","alphabet","uppercase","lowercase"],flavors:[N().JAVA,N().RUST]},{token:"[a-z-[bcde]]",desc:(0,o.Z)("Character class subtraction"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"a"}),"bcde",(0,A.jsx)("span",{className:O,children:"f"}),(0,A.jsx)("span",{className:O,children:"g"})]}),exampleRegex:"[a-z-[bcde]]",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches any characters defined in the class, except for any of the characters defined in the nested character class."}),keywords:["character","classes","class","char","subtraction","minus","remove","complement"],flavors:[N().DOTNET]},{token:"[a-z--[bcde]]",desc:(0,o.Z)("Character class subtraction"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"a"}),"bcde",(0,A.jsx)("span",{className:O,children:"f"}),(0,A.jsx)("span",{className:O,children:"g"})]}),exampleRegex:"[a-z--[bcde]]",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches any characters defined in the class, except for any of the characters defined in the nested character class."}),keywords:["character","classes","class","char","subtraction","minus","remove","complement"],flavors:[N().RUST]},{token:"[[a-f]~~[e-h]]",desc:(0,o.Z)("Character class relative complement"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"abcd"}),"ef",(0,A.jsx)("span",{className:O,children:"gh"})]}),exampleRegex:"[[a-f]~~[e-h]]",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches the relative complement of the two character classes. That is, any token that is in either, but not both."}),keywords:["character","classes","class","char","complement","minus","remove","xor","relative"],flavors:[N().RUST]},{token:"[[:alnum:]]",desc:(0,o.Z)("Letters and digits"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"1st"}),", ",(0,A.jsx)("span",{className:O,children:"2nd"}),","," ",(0,A.jsx)("span",{className:O,children:"and"})," ",(0,A.jsx)("span",{className:O,children:"3rd"}),"."]}),exampleRegex:"[[:alnum:]]+",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"An alternate way to match any letter or digit. Equivalent to {1}. The double square brackets is not a typo, POSIX notation demands it.",ph1:Z("[A-Za-z0-9]")}),keywords:["class","char","character","classes","posix","numbers","digits","letter range","letters","alphabet","uppercase","lowercase"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:alpha:]]",desc:(0,o.Z)("Letters"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"hello"}),", ",(0,A.jsx)("span",{className:O,children:"there"}),"!"]}),exampleRegex:"[[:alpha:]]+",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"An alternate way to match alphabet letters. Equivalent to {1}. The double square brackets is not a typo, POSIX notation demands it.",ph1:Z("[A-Za-z]")}),keywords:["class","char","character","classes","posix","letter range","letters","alphabet","uppercase","lowercase"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:ascii:]]",desc:(0,o.Z)("ASCII codes 0-127"),info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches any character in the valid ASCII range. Equivalent to {1}. The double square brackets is not a typo, POSIX notation demands it.",ph1:Z("[\\x00-\\x7F]")}),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"Any basic latin character. "}),"\xe9",(0,A.jsx)("span",{className:O,children:" is not one of them."})]}),exampleRegex:"[[:ascii:]]+",regexFlags:"g",keywords:["class","char","character","classes","posix","ascii","numbers","digits","letter range","letters","alphabet","uppercase","lowercase","latin"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:blank:]]",desc:(0,o.Z)("Space or tab only"),example:(0,A.jsxs)("div",{children:["a",(0,A.jsx)("span",{className:O,children:" "}),"b",(0,A.jsx)("span",{className:O,children:" "}),"c"]}),exampleRegex:"[[:blank:]]",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches spaces and tabs (but not newlines). Equivalent to {1}. The double square brackets is not a typo, POSIX notation demands it.",ph1:Z("[ \\t]")}),keywords:["character","classes","class","char","posix","spaces","tabs"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:cntrl:]]",desc:(0,o.Z)("Control characters"),info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches characters that are often used to control text presentation, including newlines, null characters, tabs and the escape character. Equivalent to {1}. The double square brackets is not a typo, POSIX notation demands it.",ph1:Z("[\\x00-\\x1F\\x7F]")}),keywords:["class","char","character","classes","posix","\\t","\\n","newlines","tabs","escape","esc","sequence"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:digit:]]",desc:(0,o.Z)("Decimal digits"),example:(0,A.jsxs)("div",{children:["one: ",(0,A.jsx)("span",{className:O,children:"1"}),", two: ",(0,A.jsx)("span",{className:O,children:"2"})]}),exampleRegex:"[[:digit:]]",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches decimal digits. Equivalent to {1} or {2}. The double square brackets is not a typo, POSIX notation demands it.",ph1:Z("[0-9]"),ph2:Z("\\d")}),keywords:["character","classes","class","char","posix","numbers","digits","numeric"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:graph:]]",desc:(0,o.Z)("Visible characters (not space)"),info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches printable, non-whitespace, non-control characters only. Equivalent to {1}. The double square brackets is not a typo, POSIX notation demands it.",ph1:Z("[\\x21-\\x7E]")}),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"A|m0st"})," \xe9",(0,A.jsx)("span",{className:O,children:"verything"})," ",(0,A.jsx)("span",{className:O,children:"goes."})]}),exampleRegex:"[[:graph:]]+",regexFlags:"g",keywords:["character","classes","class","char","punctuation","posix","visible","printable","letters"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:lower:]]",desc:(0,o.Z)("Lowercase letters"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"abc"}),"DEF",(0,A.jsx)("span",{className:O,children:"ghi"})]}),exampleRegex:"[[:lower:]]+",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches lowercase letters. Equivalent to {1}. The double square brackets is not a typo, POSIX notation demands it.",ph1:Z("[a-z]")}),keywords:["character","classes","class","char","posix","alphabet","small","non-capitals"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:print:]]",desc:(0,o.Z)("Visible characters"),info:(0,A.jsx)("div",{children:(0,o.Z)("Matches printable characters, part of the basic latin set, such as letters and spaces, without including control characters. The double square brackets is not a typo, POSIX notation demands it.")}),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"A|m0st "}),"\xe9",(0,A.jsx)("span",{className:O,children:"verything goes."})]}),exampleRegex:"[[:print:]]+",regexFlags:"g",keywords:["character","classes","class","char","posix","visible","printable","normal","common"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:punct:]]",desc:(0,o.Z)("Visible punctuation characters"),example:(0,A.jsxs)("div",{children:["hello",(0,A.jsx)("span",{className:O,children:","})," regex user",(0,A.jsx)("span",{className:O,children:"!"})]}),exampleRegex:"[[:punct:]]",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches characters that are not whitespace, letters or numbers. The double square brackets is not a typo, POSIX notation demands it.")}),keywords:["character","classes","class","char","posix","punctuation","period","fullstop"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:space:]]",desc:(0,o.Z)("Whitespace"),example:(0,A.jsxs)("div",{children:["any",(0,A.jsx)("span",{className:O,children:" "}),"whitespace",(0,A.jsx)("span",{className:O,children:" "}),"character"]}),exampleRegex:"[[:space:]]",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches whitespace characters. Equivalent to {1}. The double square brackets is not a typo, POSIX notation demands it.",ph1:Z("\\s")}),keywords:["character","classes","class","char","posix","space","spacebar","blank"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:upper:]]",desc:(0,o.Z)("Uppercase letters"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"ABC"}),"abc",(0,A.jsx)("span",{className:O,children:"DEF"})]}),exampleRegex:"[[:upper:]]+",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches uppercase letters. Equivalent to {1}. The double square brackets is not a typo, POSIX notation demands it.",ph1:Z("[A-Z]")}),keywords:["character","classes","class","char","posix","capitals"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:word:]]",desc:(0,o.Z)("Word characters"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"any"})," ",(0,A.jsx)("span",{className:O,children:"word_"})," ",(0,A.jsx)("span",{className:O,children:"character"})]}),exampleRegex:"[[:word:]]+",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches letters, numbers and underscores. Equivalent to {1} or {2}. The double square brackets is not a typo, POSIX notation demands it.",ph1:Z("\\w"),ph2:Z("[a-zA-Z0-9_]")}),keywords:["character","classes","class","char","posix","letters","numbers","underscore"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:xdigit:]]",desc:(0,o.Z)("Hexadecimal digits"),example:(0,A.jsxs)("div",{children:["h",(0,A.jsx)("span",{className:O,children:"e"}),"x ",(0,A.jsx)("span",{className:O,children:"123"}),"! n",(0,A.jsx)("span",{className:O,children:"a"}),"vy ",(0,A.jsx)("span",{className:O,children:"b"}),"lue ",(0,A.jsx)("span",{className:O,children:"f"}),"or ",(0,A.jsx)("span",{className:O,children:"c"}),"ss: #",(0,A.jsx)("span",{className:O,children:"0A0AB5"})]}),exampleRegex:"[[:xdigit:]]+",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches hexadecimal digits, case insensitive. Equivalent to {1}.",ph1:Z("[0-9a-fA-F]")}),keywords:["character","classes","class","char","posix","numbers","css","color"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"[[:<:]]",desc:(0,o.Z)("Start of word"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"d"}),"ot end"]}),exampleRegex:"[[:<:]]d",info:(0,A.jsx)(x.vV,{tag:"div",text:"This POSIX equivalent of the {1} (word boundary) is interpreted as {2}",ph1:Z("\\b"),ph2:Z("\\b(?=\\w)")}),keywords:["character","classes","class","char","posix","word","boundary","beginning"],flavors:[N().PCRE,N().PCRE2]},{token:"[[:>:]]",desc:(0,o.Z)("End of word"),example:(0,A.jsxs)("div",{children:["dot en",(0,A.jsx)("span",{className:O,children:"d"})]}),exampleRegex:"d[[:>:]]",regexFlags:"g",info:(0,A.jsxs)("div",{children:[(0,o.Z)('This POSIX equivalent of the "\\b" word boundary is interpreted as')," ",(0,A.jsx)("span",{className:T.Z.tokenSample,children:"\\\\b(?<=\\\\w)"})]}),keywords:["character","classes","class","char","posix","word","boundary","end"],flavors:[N().PCRE,N().PCRE2]}],s=[{token:".",basic:!0,desc:(0,o.Z)("Any single character"),example:(0,A.jsx)("div",{children:(0,A.jsx)("span",{className:O,children:"a b c"})}),exampleRegex:".+",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches any character other than newline (or including line terminators with the {1} flag)",ph1:V("/s")}),keywords:["line","dot"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"a|b",basic:!0,desc:(0,o.Z)("Alternate - match either a or b"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"a"})," or ",(0,A.jsx)("span",{className:O,children:"b"}),", pick one!"]}),exampleRegex:"a|b",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Matches either what is before the {1} or what is after it - in this case `a` or `b`.",ph1:Z("|")}),(0,A.jsx)(x.vV,{tag:"p",text:"You can use alternates locally as part of a capturing/non-capturing group. For example: {1}",ph1:V("/I love (?:cats|dogs) but hate snakes/")})]}),keywords:["either","or","alternatively","alternate","capture","isolate"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\s",basic:!0,desc:(0,o.Z)("Any whitespace character"),example:(0,A.jsxs)("div",{children:["any",(0,A.jsx)("span",{className:O,children:" "}),"whitespace",(0,A.jsx)("span",{className:O,children:" "}),"character"]}),exampleRegex:"\\s",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches any space, tab or newline character.")}),keywords:["space","spacebar","blank"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\S",basic:!0,desc:(0,o.Z)("Any non-whitespace character"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"any"})," ",(0,A.jsx)("span",{className:O,children:"non-whitespace"})]}),exampleRegex:"\\S+",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches anything other than a space, tab or newline.")}),keywords:["no","space","spacebar","tab","newline","new paragraph"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\d",basic:!0,desc:(0,o.Z)("Any digit"),example:(0,A.jsxs)("div",{children:["one: ",(0,A.jsx)("span",{className:O,children:"1"}),", two: ",(0,A.jsx)("span",{className:O,children:"2"})]}),exampleRegex:"\\d",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches any decimal digit. Equivalent to {1}.",ph1:Z("[0-9]")}),keywords:["number","numeric"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\D",basic:!0,desc:(0,o.Z)("Any non-digit"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"one: "}),"1",(0,A.jsx)("span",{className:O,children:", two: "}),"2"]}),exampleRegex:"\\D+",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches anything other than a decimal/digit.")}),keywords:["no","number","except"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\w",basic:!0,desc:(0,o.Z)("Any word character"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"any"})," ",(0,A.jsx)("span",{className:O,children:"word"})," ",(0,A.jsx)("span",{className:O,children:"character"})]}),exampleRegex:"\\w+",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches any letter, digit or underscore. Equivalent to {1}.",ph1:Z("[a-zA-Z0-9_]")}),keywords:["letter","digit","number","underscore"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\W",basic:!0,desc:(0,o.Z)("Any non-word character"),example:(0,A.jsxs)("div",{children:["not",(0,A.jsx)("span",{className:O,children:"."}),"a",(0,A.jsx)("span",{className:O,children:"@"}),"word",(0,A.jsx)("span",{className:O,children:"%"}),"character"]}),exampleRegex:"\\W+",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches anything other than a letter, digit or underscore. Equivalent to {1}",ph1:Z("[^a-zA-Z0-9_]")}),keywords:["space","punctuation","symbol","tab"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\X",desc:(0,o.Z)("Any Unicode sequences, linebreaks included"),example:(0,A.jsx)("div",{children:(0,A.jsx)("span",{className:O,children:"\xe4ny \xfanic\xf8d3 character"})}),exampleRegex:"\\X+",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches any valid Unicode sequence, including line breaks. Equivalent to {1}.",ph1:Z("(?s:.)")}),keywords:["any","character","number","digit","symbol","dos","newline","line break"],flavors:[N().PCRE,N().PCRE2]},{token:"\\C",desc:(0,o.Z)("Match one data unit"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"1"})," unit"]}),exampleRegex:"\\C",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches exactly one data unit of input. Can match individual bytes in UTF-8 mode, leading to undefined behaviour if a search starts inside a character.")}),keywords:["one","anything","unicode","ascii","utf"],flavors:[N().PCRE,N().PCRE2]},{token:"\\R",desc:(0,o.Z)("Unicode newlines"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{}),(0,A.jsx)("br",{}),"newline above captured"]}),exampleRegex:"(\\R)",info:(0,A.jsxs)("div",{children:[(0,o.Z)("Matches any Unicode newline sequence. Equivalent to (?>\\r\\n|\\n|\\x0b|\\f|\\r|\\x85)."),";"]}),keywords:["newline","new","linefeed","carriage","return","sequence"],flavors:[N().PCRE,N().PCRE2,N().JAVA]},{token:"\\N",desc:(0,o.Z)("Match anything but a newline"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"non-newline text here"}),(0,A.jsx)("br",{}),(0,A.jsx)("br",{}),(0,A.jsx)("span",{className:O,children:"and here"})]}),exampleRegex:"\\N+",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Matches any character that is not a newline, the opposite of {1}. Not affected by the single line {2} flag.",ph1:Z("\\n"),ph2:V("/s")}),(0,A.jsx)(x.vV,{tag:"p",text:"Equivalent to {1}",ph1:V("(?-s:.)")})]}),keywords:["newline","new","linefeed","carriage","return","sequence"],flavors:[N().PCRE,N().PCRE2]},{token:"\\v",desc:(0,o.Z)("Vertical whitespace character"),example:(0,A.jsxs)("div",{children:["line one",(0,A.jsxs)("span",{className:O,children:["&vellip;",(0,A.jsx)("br",{})]}),"line two"]}),exampleRegex:"(\\v)",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Matches unicode vertical whitespace, considered a character class by the PCRE engine: {1}.",ph1:V("[\\x{2028}\\n\\r\\x{000B}\\f\\x{2029}\\x{0085}]")}),(0,A.jsx)(x.vV,{tag:"p",text:"Golang/RE2, Python, and Javascript consider {1} to be just vertical tab (ascii {2}).",ph1:Z("\\v"),ph2:Z("\\x{000B}")}),(0,A.jsx)(x.vV,{tag:"p",text:"{1} is a line separator which can stand for {2}, {3}, {4}, or {5}.",ph1:Z("\\x{2028}"),ph2:Z("\\r"),ph3:Z("\\n"),ph4:Z("\\r\\n"),ph5:Z("\\x{0085}")}),(0,A.jsx)(x.vV,{tag:"p",text:"{1} is a paragraph separator (PS) character.",ph1:Z("\\x{2029}")}),(0,A.jsx)(x.vV,{tag:"p",text:"{1} is NEL, next line character.",ph1:Z("\\x{0085}")})]}),keywords:["newline","VT","new","linefeed","carriage","return","ascii","11","control+K","^K","U+000B","U+240B"],flavors:[N().PCRE,N().PCRE2,N().JAVASCRIPT,N().PYTHON,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\V",desc:(0,o.Z)("Negation of \\v"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"line one"}),(0,A.jsx)("br",{}),(0,A.jsx)("br",{}),(0,A.jsx)("span",{className:O,children:"line three"})]}),exampleRegex:"(\\V+)",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Matches anything not matched by {1}.",ph1:Z("\\v")}),(0,A.jsx)(x.vV,{tag:"p",text:"PCRE equivalent is {1}.",ph1:Z("[^\\x{2028}\\n\\r\\x{000B}\\f\\x{2029}\\x{0085}]")}),(0,A.jsx)(x.vV,{tag:"p",text:"Golang/RE2, Python, and Javascript equivalent is {1}.",ph1:Z("[^\\x{000B}]")})]}),keywords:["not","VT","newline","new","linefeed","carriage","return","ascii","11","control+K","^K","U+000B","U+240B"],flavors:[N().PCRE,N().PCRE2,N().JAVA]},{token:"\\h",desc:(0,o.Z)("Horizontal whitespace character"),example:(0,A.jsxs)("div",{children:["a",(0,A.jsx)("span",{className:O,children:" "}),"b",(0,A.jsx)("span",{className:O,children:" "}),"c",(0,A.jsx)("span",{className:O,children:" "}),"d"]}),exampleRegex:"\\h",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Matches spaces, tabs, non-breaking/mathematical/ideographic spaces, and so on. Works with Unicode."}),(0,A.jsx)(x.vV,{tag:"p",text:"Equivalent to {1}.",ph1:Z("[ \\t\\x{00A0}\\x{1680}\\x{180E}\\x{2000}\\x{2001}\\x{2002}\\x{2003}\\x{2004}\\x{2005}\\x{2006}\\x{2007}\\x{2008}\\x{2009}\\x{200A}\\x{202F}\\x{205F}\\x{3000}]")})]}),keywords:["space","blank","spacebar","tab","en","em","thin","hair","narrow","mathematical","ideographic","medium","three-per-em","four-per-em","six-per-em","punctuation","mongolian","ogham"],flavors:[N().PCRE,N().PCRE2,N().JAVA]},{token:"\\H",desc:(0,o.Z)("Negation of \\h"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"a"})," ",(0,A.jsx)("span",{className:O,children:"b"})," ",(0,A.jsx)("span",{className:O,children:"c"})," ",(0,A.jsx)("span",{className:O,children:"d"})]}),exampleRegex:"\\H+",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Matches any character that is not horizontal whitespace {1}.",ph1:Z("\\h")}),(0,A.jsx)(x.vV,{tag:"p",text:"Equivalent to {1}.",ph1:Z("[^ \\t\\x{00A0}\\x{1680}\\x{180E}\\x{2000}\\x{2001}\\x{2002}\\x{2003}\\x{2004}\\x{2005}\\x{2006}\\x{2007}\\x{2008}\\x{2009}\\x{200A}\\x{202F}\\x{205F}\\x{3000}]")})]}),keywords:["not","space","blank","spacebar","tab","en","em","thin","hair","narrow","mathematical","ideographic","medium","three-per-em","four-per-em","six-per-em","punctuation","mongolian","ogham"],flavors:[N().PCRE,N().PCRE2,N().JAVA]},{token:"\\K",desc:(0,o.Z)("Reset match"),info:(0,A.jsx)(x.vV,{tag:"p",text:"Sets the given position in the regex as the new start of the match. Nothing preceding {1} will be returned as part of the full match.",ph1:Z("\\K")}),example:(0,A.jsxs)("div",{children:["123",(0,A.jsx)("span",{className:O,children:",456,789"})]}),exampleRegex:"[\\d]+\\K[\\d,]+",keywords:["match","position","ignore","start","point","over"],flavors:[N().PCRE,N().PCRE2]},{token:"\\#",desc:(0,o.Z)("Match subpattern number #"),info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Usually referred to as a `backreference`, this will match a repeat of the text matched and captured by the capture group # (number) specified."}),(0,A.jsx)(x.vV,{tag:"p",text:"To reduce ambiguity one may also use {1}, or {2} where `#` is a digit.",ph1:Z("\\g#"),ph2:Z("\\g{#}")})]}),example:(0,A.jsxs)("div",{children:["Repeat le",(0,A.jsx)("span",{className:S,children:"t"}),(0,A.jsx)("span",{className:O,children:"t"}),"ers"]}),exampleRegex:"(.)\\1",keywords:["repeated","duplicates","same","backreference","reference"],flavors:[N().PCRE,N().PCRE2,N().PYTHON,N().JAVASCRIPT,N().JAVA,N().DOTNET]},{token:"\\pX",desc:(0,o.Z)("Unicode property X"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"\xa3"})," or ",(0,A.jsx)("span",{className:O,children:"$"})," or even"," ",(0,A.jsx)("span",{className:O,children:"\xae"})]}),exampleRegex:"\\pS",regexFlags:"g",info:(0,A.jsxs)("div",{children:[(0,o.Z)("Matches a unicode character with the given property:")," ",(0,A.jsx)(x.rU,{target:"_blank",to:"//www.fileformat.info/info/unicode/category/index.htm",absolute:!0,children:"http://www.fileformat.info/info/unicode/category/index.htm"})]}),keywords:["category","latin","uppercase","lowercase","language","any","alphabets","symbols"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"\\p{...}",desc:(0,o.Z)("Unicode property or script category"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"\u0566\u057e\u0561\u0580\u0573\u0561\u0576\u0584"}),' is the word "fun" in Armenian']}),exampleRegex:"\\p{Armenian}+",info:(0,A.jsxs)("div",{children:[(0,o.Z)("Matches a unicode character with the given group of properties or categories:"),(0,A.jsxs)("div",{children:[(0,A.jsx)(x.rU,{target:"_blank",to:"//www.fileformat.info/info/unicode/category/index.htm",absolute:!0,children:"http://www.fileformat.info/info/unicode/category/index.htm"}),(0,A.jsx)("br",{}),(0,A.jsx)(x.rU,{target:"_blank",to:"http://www.regular-expressions.info/unicode.html#category",absolute:!0,children:"http://www.regular-expressions.info/unicode.html#category"})]})]}),keywords:["category","latin","uppercase","lowercase","language","any","alphabets","foreign"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().JAVASCRIPT,N().JAVA,N().DOTNET,N().RUST]},{token:"\\PX",desc:(0,o.Z)("Negation of \\pX"),example:(0,A.jsxs)("div",{children:["\xa3",(0,A.jsx)("span",{className:O,children:" or "}),"$",(0,A.jsx)("span",{className:O,children:" or even "}),"\xae"]}),exampleRegex:"\\PS+",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches a unicode character outside of the given property.")}),keywords:["category","latin","uppercase","lowercase","language","any","alphabets","symbols"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"\\P{...}",desc:(0,o.Z)("Negation of \\p"),example:(0,A.jsxs)("div",{children:["\u0566\u057e\u0561\u0580\u0573\u0561\u0576\u0584",(0,A.jsx)("span",{className:O,children:' is the word "fun" in Armenian'})]}),exampleRegex:"\\P{Armenian}+",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches a unicode character that doesn't have any of the given properties.")}),keywords:["category","latin","uppercase","lowercase","language","any","alphabets","foreign"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().JAVASCRIPT,N().JAVA,N().DOTNET,N().RUST]},{token:"\\Q...\\E",desc:(0,o.Z)("Quote; treat as literals"),example:(0,A.jsx)("div",{children:(0,A.jsx)("span",{className:O,children:"everything \\w is ^ literal"})}),exampleRegex:"\\Qeverything \\w is ^ literal\\E",info:(0,A.jsx)(x.vV,{tag:"p",text:"Any characters between {1} and {2}, including metacharacters, will be treated as literals.",ph1:Z("\\Q"),ph2:Z("\\E")}),keywords:["escape","meta","match","characters"],flavors:[N().PCRE,N().PCRE2,N().GOLANG]},{token:"\\k{name}",desc:(0,o.Z)("Match subpattern `name`"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"aaaa"}),(0,A.jsx)("span",{className:O,children:" and again "}),(0,A.jsx)("span",{className:I,children:"aaaa"})]}),exampleRegex:"(?'first'a+) and again (\\k{first})",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches the same text a capture group called `name` matched and captured. Alternate notations are {1} and {2}. Valid for .NET.",ph1:Z("\\k<name>"),ph2:Z("\\k'name'")}),keywords:["capture","group","by","name","recall","match","again"],flavors:[N().PCRE,N().PCRE2,N().JAVA]},{token:"\\k<name>",desc:(0,o.Z)("Match subpattern `name`"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"aaaa"}),(0,A.jsx)("span",{className:O,children:" and again "}),(0,A.jsx)("span",{className:I,children:"aaaa"})]}),exampleRegex:"(?<first>a+) and again (\\k<first>)",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches the same text matched and captured by a previously named capture group.")}),keywords:["capture","group","by","name","recall","match","again"],flavors:[N().PCRE,N().PCRE2,N().JAVASCRIPT,N().JAVA,N().DOTNET]},{token:"\\k'name'",desc:(0,o.Z)("Match subpattern `name`"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"aaaa"}),(0,A.jsx)("span",{className:O,children:" and again "}),(0,A.jsx)("span",{className:I,children:"aaaa"})]}),exampleRegex:"(?'first'a+) and again (\\k'first')",info:(0,A.jsx)(x.vV,{tag:"p",text:"This is an alternate syntax for {1} or {2}.",ph1:Z("\\k<name>"),ph2:Z("\\k{name}")}),keywords:["capture","group","by","name","recall","match","again"],flavors:[N().PCRE,N().PCRE2]},{token:"\\gn",desc:(0,o.Z)("Match nth subpattern"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"aaaa"}),(0,A.jsx)("span",{className:O,children:" and "}),(0,A.jsx)("span",{className:I,children:"aaaa"}),"aaa"]}),exampleRegex:"(a+) and (\\g1)",info:(0,A.jsxs)("div",{children:[(0,A.jsx)("p",{children:(0,o.Z)("Matches the text captured by the nth group. n can contain more than one digit, if necessary.")}),(0,A.jsx)("p",{children:(0,o.Z)("This may be useful in order to avoid ambiguity with octal characters.")})]}),keywords:["capture","group","by","number","recall","match","again","repeat"],flavors:[N().PCRE,N().PCRE2]},{token:"\\g{n}",desc:(0,o.Z)("Match nth subpattern"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"aaa"}),(0,A.jsx)("span",{className:I,children:" and "}),(0,A.jsx)("span",{className:O,children:"aaa"}),"aa"]}),exampleRegex:"(a+)( and )\\g{1}",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Matches text the nth group matched and captured. `n` represents the capture group number and can positionally refer to past capture groups as well."}),(0,A.jsx)(x.vV,{tag:"p",text:"{1} would be the second previous capture group, for example. {2} would be the third capture group.",ph1:Z("\\g{-2}"),ph2:Z("\\g{3}")}),(0,A.jsx)(x.vV,{tag:"p",text:"This notation is useful in avoiding ambiguity with octal characters, or when a literal number needs to be matched immediately after a {1} reference in the regex.",ph1:Z("\\gn")})]}),keywords:["capture","group","by","name","recall","match","again","repeat"],flavors:[N().PCRE,N().PCRE2]},{token:"\\g{-n}",desc:(0,o.Z)("Match text the nth relative previous subpattern matched"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"aaa"}),(0,A.jsx)("span",{className:I,children:" and "}),(0,A.jsx)("span",{className:O,children:"aaa"}),"aa"]}),exampleRegex:"([a-z]+)( and )\\g{-2}",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Matches the same text the nth group prior to {1} matched and captured.",ph1:Z("\\g{-n}")}),(0,A.jsx)(x.vV,{tag:"p",text:"{1} can be used to match the same text the third preceding capture group matched and captured.",ph1:V("\\g{-3}")})]}),keywords:["capture","reference","group","by","number","recall","match","again","repeat","previous"],flavors:[N().PCRE,N().PCRE2]},{token:"\\g<n>",desc:(0,o.Z)("Match expression defined in the nth capture group"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"a"}),(0,A.jsx)("span",{className:O,children:" and "}),(0,A.jsx)("span",{className:I,children:"abc"})]}),exampleRegex:"([a-z]+) and (\\g<1>)",info:(0,A.jsx)(x.vV,{tag:"p",text:"Match expression defined in the nth capture group. `n` can be positional as well. For example, {1} stands for the previous capture group, while {2} would be the third next capture group. Equivalent to {3}",ph1:Z("\\g<-1>"),ph2:Z("\\g<+3>"),ph3:Z("\\g'n'")}),keywords:["capture","group","by","number","recall","match","again","repeat"],flavors:[N().PCRE,N().PCRE2]},{token:"\\g<+n>",desc:(0,o.Z)("Match expression defined in the nth relative upcoming capture group."),example:(0,A.jsxs)("div",{children:["extra ",(0,A.jsx)("span",{className:O,children:"b"}),(0,A.jsx)("span",{className:S,children:" and "}),(0,A.jsx)("span",{className:I,children:"c"})," stuff"]}),exampleRegex:"\\g<+2>( and )([a-z])",info:(0,A.jsx)(x.vV,{tag:"p",text:"Match expression defined in the nth capture group ahead of the current position of {1}. For example, {2} is the second upcoming capture group.",ph1:Z("\\g<+n>"),ph2:Z("\\g<+2>")}),keywords:["capture","reference","recurse","recursion","group","by","number","next","match","again","predict","after"],flavors:[N().PCRE,N().PCRE2]},{token:"\\g'n'",desc:(0,o.Z)("Match expression defined in the nth capture group."),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"a"}),(0,A.jsx)("span",{className:O,children:" and "}),(0,A.jsx)("span",{className:I,children:"abc"})]}),exampleRegex:"([a-z]+) and (\\g'1')",info:(0,A.jsx)(x.vV,{tag:"p",text:"Match expression defined in the nth capture group. `n` can be positional as well. For example, {1} stands for previous capture group, while {2} would be the third capture group. Equivalent to {3}.",ph1:Z("\\g'-1'"),ph2:Z("\\g'3'"),ph3:Z("\\g<n>")}),keywords:["capture","reference","group","by","number","recall","match","again","repeat","previous","recurse","recursion"],flavors:[N().PCRE,N().PCRE2]},{token:"\\g'+n'",desc:(0,o.Z)("Match expression defined in the nth relative upcoming subpattern"),example:(0,A.jsxs)("div",{children:["extra ",(0,A.jsx)("span",{className:O,children:"a"}),(0,A.jsx)("span",{className:S,children:" and "}),(0,A.jsx)("span",{className:I,children:"b"})," stuff"]}),exampleRegex:"\\g'+2'( and )([a-z])",info:(0,A.jsx)(x.vV,{tag:"p",text:"Match expression defined in the nth capture group ahead of the current position of {1}. For example {2} is the second previous capture group.",ph1:Z("\\g'+n'"),ph2:Z("\\g'-2'")}),keywords:["capture","reference","group","by","number","next","match","again","predict","after","specific","recurse","recursion"],flavors:[N().PCRE,N().PCRE2]},{token:"\\g{letter}",desc:(0,o.Z)("Match previously-named capture group `letter`"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"a"}),(0,A.jsx)("span",{className:O,children:" plus "}),(0,A.jsx)("span",{className:I,children:"a"})]}),exampleRegex:"(?'letter'a) plus (\\g{letter})",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches the same text capture group called `letter` matched and captured.")}),keywords:["capture","reference","group","by","name","recall","match","previous","before"],flavors:[N().PCRE,N().PCRE2]},{token:"\\g<letter>",desc:(0,o.Z)('Match expression defined in the capture group named "letter"'),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"a"}),(0,A.jsx)("span",{className:I,children:" and "}),(0,A.jsx)("span",{className:U,children:"bcd"})]}),exampleRegex:"(?<letter>[a-z]+)( and )(\\g<letter>)",info:(0,A.jsx)(x.vV,{tag:"p",text:'Match expression defined in the capture group called "letter". This is an alternative notation for "{1}"',ph1:Z("\\g'letter'")}),keywords:["capture","reference","group","by","name","recall","match","previous","before","recurse","recursion"],flavors:[N().PCRE,N().PCRE2]},{token:"\\g'letter'",desc:(0,o.Z)("Match expression defined in the named capture group `letter`"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"a"}),(0,A.jsx)("span",{className:I,children:" and "}),(0,A.jsx)("span",{className:U,children:"bcd"})]}),exampleRegex:"(?<letter>[a-z]+)( and )(\\g'letter')",info:(0,A.jsx)("div",{children:(0,o.Z)("Match expression defined in the capture group called `letter`.")}),keywords:["capture","reference","group","by","name","recall","match","previous","before","recurse","recursion"],flavors:[N().PCRE,N().PCRE2]},{token:"\\uYYYY",desc:(0,o.Z)("Hex character YYYY"),example:(0,A.jsx)("div",{children:(0,A.jsx)("span",{className:O,children:"%"})}),exampleRegex:"\\u0025",info:(0,A.jsxs)("div",{children:[(0,o.Z)("Matches the unicode character with the given hex value. When using the `/u` flag, 16-bit character (surrogate/supplementary characters included) syntax becomes `\\u{...}`.")," ",(0,A.jsx)(x.rU,{target:"_blank",to:"http://unicode-table.com/en/",absolute:!0,children:(0,o.Z)("Unicode Character Table")})]}),keywords:["hex","unicode","map","symbols","codepoint","\\u{","surrogate"],flavors:[N().JAVASCRIPT,N().JAVA]},{token:"\\uYYYY",desc:(0,o.Z)("Hex character YYYY"),example:(0,A.jsxs)("div",{children:["match",(0,A.jsx)("span",{className:O,children:" "}),"all",(0,A.jsx)("span",{className:O,children:" "}),"spaces"]}),exampleRegex:"\\u0020",regexFlags:"g",info:(0,A.jsxs)("div",{children:[(0,o.Z)("Matches the character with the given hex value.")," ",(0,A.jsx)(x.rU,{target:"_blank",to:"http://unicode-table.com/en/",absolute:!0,children:(0,o.Z)("Unicode Character Table")})]}),keywords:["hex","unicode","map","symbols","codepoint"],flavors:[N().RUST]},{token:"\\xYY",desc:(0,o.Z)("Hex character YY"),example:(0,A.jsxs)("div",{children:["match",(0,A.jsx)("span",{className:O,children:" "}),"all",(0,A.jsx)("span",{className:O,children:" "}),"spaces"]}),exampleRegex:"\\x20",regexFlags:"g",info:(0,A.jsxs)("div",{children:[(0,o.Z)("Matches the character with the given hex value.")," ",(0,A.jsx)(x.rU,{target:"_blank",to:"http://unicode-table.com/en/",absolute:!0,children:(0,o.Z)("Unicode Character Table")})]}),keywords:["hex","unicode","map","symbols","codepoint"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\x{YYYY}",desc:(0,o.Z)("Hex character YYYY"),example:(0,A.jsx)("div",{children:(0,A.jsx)("span",{className:O,children:"%"})}),exampleRegex:"\\x{0025}",info:(0,A.jsxs)("div",{children:[(0,o.Z)("Matches the character with the given hex value.")," ",(0,A.jsx)(x.rU,{target:"_blank",to:"http://unicode-table.com/en/",absolute:!0,children:(0,o.Z)("Unicode Character Table")})]}),keywords:["hex","unicode","map","symbols","codepoint"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().RUST]},{token:"\\u{YYYY}",desc:(0,o.Z)("Hex character YYYY"),example:(0,A.jsx)("div",{children:(0,A.jsx)("span",{className:O,children:"%"})}),exampleRegex:"\\u{25}",info:(0,A.jsxs)("div",{children:[(0,o.Z)("Matches the character with the given hex value.")," ",(0,A.jsx)(x.rU,{target:"_blank",to:"http://unicode-table.com/en/",absolute:!0,children:(0,o.Z)("Unicode Character Table")})]}),keywords:["hex","unicode","map","symbols","codepoint"],flavors:[N().RUST]},{token:"\\UYYYYYYYY",desc:(0,o.Z)("Hex character YYYYYYYY"),example:(0,A.jsxs)("div",{children:["match",(0,A.jsx)("span",{className:O,children:" "}),"all",(0,A.jsx)("span",{className:O,children:" "}),"spaces"]}),exampleRegex:"\\U00000025",regexFlags:"g",info:(0,A.jsxs)("div",{children:[(0,o.Z)("Matches the character with the given hex value.")," ",(0,A.jsx)(x.rU,{target:"_blank",to:"http://unicode-table.com/en/",absolute:!0,children:(0,o.Z)("Unicode Character Table")})]}),keywords:["hex","unicode","map","symbols","codepoint"],flavors:[N().RUST]},{token:"\\U{YY}}",desc:(0,o.Z)("Hex character YY"),example:(0,A.jsxs)("div",{children:["match",(0,A.jsx)("span",{className:O,children:" "}),"all",(0,A.jsx)("span",{className:O,children:" "}),"spaces"]}),exampleRegex:"\\U{25}",regexFlags:"g",info:(0,A.jsxs)("div",{children:[(0,o.Z)("Matches the character with the given hex value.")," ",(0,A.jsx)(x.rU,{target:"_blank",to:"http://unicode-table.com/en/",absolute:!0,children:(0,o.Z)("Unicode Character Table")})]}),keywords:["hex","unicode","map","symbols","codepoint"],flavors:[N().RUST]},{token:"\\ddd",desc:(0,o.Z)("Octal character ddd"),example:(0,A.jsx)("div",{children:(0,A.jsx)("span",{className:O,children:"%"})}),exampleRegex:"\\045",info:(0,A.jsxs)("div",{children:[(0,o.Z)("Matches the 8-bit character with the given octal value.")," ",(0,A.jsx)(x.rU,{target:"_blank",absolute:!0,to:"http://www.utf8-chartable.de/unicode-utf8-table.pl?utf8=oct",children:(0,o.Z)("Octal Character Table")})]}),keywords:["octal","unicode","map","symbols","codepoint"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA]},{token:"\\cY",desc:(0,o.Z)("Control character Y"),example:(0,A.jsxs)("div",{children:["horizontal",(0,A.jsx)("span",{className:O,children:" "}),"tab"]}),exampleRegex:"\\cI",info:(0,A.jsxs)("div",{children:[(0,o.Z)("Matches ASCII characters typically associated with Control+A through Control+Z: \\x01 through \\x1A.")," ",(0,A.jsx)(x.rU,{target:"_blank",to:"https://www.cs.tut.fi/~jkorpela/chars/c0.html",absolute:!0,children:(0,o.Z)("ASCII control characters")})]}),keywords:["control","CTRL","+","ascii","codes"],flavors:[N().JAVASCRIPT,N().PCRE,N().PCRE2,N().JAVA,N().DOTNET]},{token:"[\\b]",desc:(0,o.Z)("Backspace character"),info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches the backspace control character. {1} stands for `word boundary` when outside of a character class {2}.",ph1:Z("\\b"),ph2:Z("[...]")}),keywords:["CTRL+H","^H"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().DOTNET]},{token:"\\",desc:(0,o.Z)("Makes any character literal"),example:(0,A.jsxs)("div",{children:["match ",(0,A.jsx)("span",{className:O,children:"\\w"})," literally"]}),exampleRegex:"\\\\w",info:(0,A.jsx)("div",{children:(0,o.Z)("Converts metacharacters to literal characters, and also allows literal matching of the regex delimiter in use, like `/`.")}),keywords:["literal","escape","special","disable"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]}],n=[{token:"(?:...)",basic:!0,desc:(0,o.Z)("Match everything enclosed"),example:(0,A.jsx)("div",{children:(0,A.jsx)("span",{className:O,children:"match this match that"})}),exampleRegex:"match this (?:match that)",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"A non-capturing group allows you to apply quantifiers to part of your regex but does not capture/assign an ID."}),(0,A.jsx)(x.vV,{tag:"p",text:"For example, repeating 1-3 digits and a period 3 times can be done like this: {1}",ph1:V("/(?:\\d{1,3}\\.){3}\\d{1,3}/")})]}),keywords:["capture","group","repeat","name","id","refer","isolate"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"(...)",basic:!0,desc:(0,o.Z)("Capture everything enclosed"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"match and capture "}),(0,A.jsx)("span",{className:S,children:"capture "}),"?"]}),exampleRegex:"match and (capture )+",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Isolates part of the full match to be later referred to by ID within the regex or the matches array. IDs start at 1."}),(0,A.jsx)(x.vV,{tag:"p",text:"A common misconception is that repeating a capture group would create separate IDs for each time it matches. If that functionality is needed, one has to rely on the global (/g) flag instead. For example: {1}",ph1:V("/each (word)/g")})]}),keywords:["capture","group","repeat","name","id","refer","isolate"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"(?>...)",desc:(0,o.Z)("Atomic group (non-capturing)"),example:(0,A.jsx)("div",{children:"this line is matched/consumed to the end by .+ and is not allowed to backtrack to find @"}),exampleRegex:"(?>.+)@",keywords:["match","most","backtracking","no","back","tracking"],info:(0,A.jsx)("div",{children:(0,o.Z)("Matches the longest possible substring in the group and doesn't allow later backtracking to reevaluate the group. It is not a capturing group.")}),flavors:[N().PCRE,N().PCRE2,N().JAVA,N().DOTNET]},{token:"(?|...)",desc:(0,o.Z)("Duplicate/reset subpattern group number"),example:(0,A.jsxs)("div",{children:["A ",(0,A.jsx)("span",{className:S,children:"candy"}),", ",(0,A.jsx)("span",{className:S,children:"kiss"}),", or even a ",(0,A.jsx)("span",{className:S,children:"berry"})," is delicious."]}),exampleRegex:"(?|(candy)|(kiss)|(berry))",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Does not allow the capture group ID to be incremented for all enclosed capture groups.")}),keywords:["pattern","same","digit","id","order","reset"],flavors:[N().PCRE,N().PCRE2]},{token:"(?#...)",desc:(0,o.Z)("Comment group"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"Not"}),"hing else matches."]}),exampleRegex:"Not(?# .* <-- that should match all)",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Any text appearing in this group is ignored in the regex."}),(0,A.jsx)(x.vV,{tag:"p",text:"Another option is enabling the x flag to allow `# comments` but it will also cause the regex engine to ignore space characters. To match space characters you have to escape them: {1}.",ph1:V("/\\ /")})]}),keywords:["note","ignore","explain","explanatory"],flavors:[N().PCRE,N().PCRE2,N().PYTHON,N().DOTNET]},{token:"(?'name'...)",desc:(0,o.Z)("Named Capturing Group"),example:(0,A.jsxs)("div",{children:["Call me ",(0,A.jsx)("span",{className:S,children:"Sally"}),"."]}),exampleRegex:"(?'name'Sally)",info:(0,A.jsx)(x.vV,{tag:"p",text:"This capturing group can be referred to using the given name instead of a number. Alternative notation for {1} or {2}.",ph1:Z("(?<name>...)"),ph2:Z("(?P<name>...)")}),keywords:["recall","by","name","tag","label","target"],flavors:[N().PCRE,N().PCRE2]},{token:"(?<name>...)",desc:(0,o.Z)("Named Capturing Group"),example:(0,A.jsxs)("div",{children:["Call me ",(0,A.jsx)("span",{className:S,children:"Sally"}),"."]}),exampleRegex:"(?<name>Sally)",info:(0,A.jsx)(x.vV,{tag:"p",text:"This capturing group can be referred to using the given name instead of a number. Alternative notation for {1} or {2}.",ph1:Z("(?'name'...)"),ph2:Z("(?P<name>...)")}),keywords:["recall","by","name","tag","label","target"],flavors:[N().PCRE,N().PCRE2]},{token:"(?'name'...)",desc:(0,o.Z)("Named Capturing Group"),example:(0,A.jsxs)("div",{children:["Call me ",(0,A.jsx)("span",{className:S,children:"Sally"}),"."]}),exampleRegex:"(?'name'Sally)",info:(0,A.jsx)(x.vV,{tag:"p",text:"This capturing group can be referred to using the given name instead of a number. Alternative notation for {1}.",ph1:Z("(?<name>...)")}),keywords:["recall","by","name","tag","label","target"],flavors:[N().DOTNET]},{token:"(?<name>...)",desc:(0,o.Z)("Named Capturing Group"),example:(0,A.jsxs)("div",{children:["Call me ",(0,A.jsx)("span",{className:S,children:"Sally"}),"."]}),exampleRegex:"(?<name>Sally)",info:(0,A.jsx)(x.vV,{tag:"p",text:"This capturing group can be referred to using the given name instead of a number. Alternative notation for {1}.",ph1:Z("(?'name'...)")}),keywords:["recall","by","name","tag","label","target"],flavors:[N().DOTNET]},{token:"(?<name>...)",desc:(0,o.Z)("Named Capturing Group"),example:(0,A.jsxs)("div",{children:["Call me ",(0,A.jsx)("span",{className:S,children:"Sally"}),"."]}),exampleRegex:"(?<name>Sally)",info:(0,A.jsx)(x.vV,{tag:"p",text:"This capturing group can be referred to using the given name instead of a number."}),keywords:["recall","by","name","tag","label","target"],flavors:[N().JAVA,N().JAVASCRIPT]},{token:"(?P<name>...)",desc:(0,o.Z)("Named Capturing Group"),example:(0,A.jsxs)("div",{children:["Call me ",(0,A.jsx)("span",{className:S,children:"Sally"}),"."]}),exampleRegex:"(?P<name>Sally)",info:(0,A.jsx)(x.vV,{tag:"p",text:"This capturing group can be referred to using the given name instead of a number. Alternative notation for {1} and {2} when using a PCRE flavor.",ph1:Z("(?<name>...)"),ph2:Z("(?'name'...)")}),keywords:["recall","by","name","tag","label","target"],flavors:[N().PCRE,N().PCRE2,N().PYTHON,N().GOLANG,N().RUST]},{token:"(?<name1-name2>...)",desc:(0,o.Z)("Balancing Named Capturing Group"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"a"}),(0,A.jsx)("span",{className:I,children:"bb"}),(0,A.jsx)("span",{className:O,children:"a"})]}),exampleRegex:"(?<foo>a)bb(?<bar-foo>a)",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"This group construct will capture the content that lies between the two groups, i.e. from the last position of {1} until {2}, if the pattern contained matches.",ph1:Z("name1"),ph2:Z("name2")}),(0,A.jsx)(x.vV,{tag:"p",text:"Each successful match will remove the content of the referenced group {1}, allowing for balanced matches to be performed.",ph2:Z("name2")}),(0,A.jsx)(x.vV,{tag:"p",text:"Alternative notation for {1}",ph1:Z("(?'name1-name2'...)")})]}),keywords:["balanced","group","between"],flavors:[N().DOTNET]},{token:"(?<-name2>...)",desc:(0,o.Z)("Balancing Non-capturing Group"),example:(0,A.jsx)("div",{children:(0,A.jsx)("span",{className:O,children:"abba"})}),exampleRegex:"(?<foo>a)bb(?<-foo>a)",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"This group construct will remove the content of the referenced group {1}, allowing for balanced matches to be performed, if the pattern contained matches.",ph2:Z("name2")}),(0,A.jsx)(x.vV,{tag:"p",text:"Alternative notation for {1}",ph1:Z("(?'-name2'...)")})]}),keywords:["balanced","group","between"],flavors:[N().DOTNET]},{token:"(?'name1-name2'...)",desc:(0,o.Z)("Balancing Named Capturing Group"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"a"}),(0,A.jsx)("span",{className:I,children:"bb"}),(0,A.jsx)("span",{className:O,children:"a"})]}),exampleRegex:"(?'foo'a)bb(?'bar-foo'a)",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"This group construct will capture the content that lies between the two groups, i.e. from the last position of {1} until {2}, if the pattern contained matches.",ph1:Z("name1"),ph2:Z("name2")}),(0,A.jsx)(x.vV,{tag:"p",text:"Each successful match will remove the content of the referenced group {1}, allowing for balanced matches to be performed.",ph2:Z("name2")}),(0,A.jsx)(x.vV,{tag:"p",text:"Alternative notation for {1}",ph1:Z("(?<name1-name2>...)")})]}),keywords:["balanced","group","between"],flavors:[N().DOTNET]},{token:"(?'-name2'...)",desc:(0,o.Z)("Balancing Non-capturing Group"),example:(0,A.jsx)("div",{children:(0,A.jsx)("span",{className:O,children:"abba"})}),exampleRegex:"(?'foo'a)bb(?'-foo'a)",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"This group construct will remove the content of the referenced group {1}, allowing for balanced matches to be performed, if the pattern contained matches",ph2:Z("name2")}),(0,A.jsx)(x.vV,{tag:"p",text:"Alternative notation for {1}",ph1:Z("(?<-name2>...)")})]}),keywords:["balanced","group","between"],flavors:[N().DOTNET]},{token:"(?imsxXU)",desc:(0,o.Z)("Inline modifiers"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"aA"})," Aa ",(0,A.jsx)("span",{className:O,children:"aa"})," AA"]}),exampleRegex:"a(?i)a",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"These flag modifiers act on the whole expression. You can also unset flags using a minus sign: {1}, and can combine setting and unsetting flags. {2} would set the single line flag and unset case insensitive.",ph1:Z("(?-i)"),ph2:Z("(?s-i)")}),keywords:["fly","the","flags","partially","apply","isolate","set","unset","modify","inline"],flavors:[N().PCRE,N().PYTHON]},{token:"(?imsxu)",desc:(0,o.Z)("Inline modifiers"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"aA"})," Aa ",(0,A.jsx)("span",{className:O,children:"aa"})," AA"]}),exampleRegex:"a(?i)a",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"These flag modifiers act on the whole expression. You can also unset flags using a minus sign: {1}, and can combine setting and unsetting flags. {2} would set the single line flag and unset case insensitive.",ph1:Z("(?-i)"),ph2:Z("(?s-i)")}),keywords:["fly","the","flags","partially","apply","isolate","set","unset","modify","inline"],flavors:[N().JAVA]},{token:"(?imsxUJnxx)",desc:(0,o.Z)("Inline modifiers"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"aA"})," Aa ",(0,A.jsx)("span",{className:O,children:"aa"})," AA"]}),exampleRegex:"a(?i)a",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"These flag modifiers act on the whole expression. You can also unset flags using a minus sign: {1}, and can combine setting and unsetting flags. {2} would set the single line flag and unset case insensitive.",ph1:Z("(?-i)"),ph2:Z("(?s-i)")}),keywords:["fly","the","flags","partially","apply","isolate","set","unset","modify","inline"],flavors:[N().PCRE2]},{token:"(?imsxn)",desc:(0,o.Z)("Inline modifiers"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"aA"})," Aa ",(0,A.jsx)("span",{className:O,children:"aa"})," AA"]}),exampleRegex:"a(?i)a",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"These flag modifiers act on the whole expression. You can also unset flags using a minus sign: {1}, and can combine setting and unsetting flags. {2} would set the single line flag and unset case insensitive.",ph1:Z("(?-i)"),ph2:Z("(?s-i)")}),keywords:["fly","the","flags","partially","apply","isolate","set","unset","modify","inline"],flavors:[N().DOTNET]},{token:"(?imsUx)",desc:(0,o.Z)("Inline modifiers"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"aA"})," Aa ",(0,A.jsx)("span",{className:O,children:"aa"})," AA"]}),exampleRegex:"a(?i)a",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"These flag modifiers act on the whole expression. You can also unset flags using a minus sign: {1}, and can combine setting and unsetting flags. {2} would set the single line flag and unset case insensitive.",ph1:Z("(?-i)"),ph2:Z("(?s-i)")}),keywords:["fly","the","flags","partially","apply","isolate","set","unset","modify","inline"],flavors:[N().RUST]},{token:"(?imsxXU:...)",desc:(0,o.Z)("Localized inline modifiers"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"a"}),(0,A.jsx)("span",{className:O,children:"BbB"}),(0,A.jsx)("span",{className:I,children:"c"})]}),exampleRegex:"(a)(?i:b+)(c)",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"These flag modifiers act on the enclosed expression only. Equivalent to {1}",ph1:Z("(?:(?imsxXU)...)")}),(0,A.jsx)(x.vV,{tag:"p",text:"You can also unset flags using a minus sign: {1}, and can combine enabling and disabling flags. For example: {2} would set enable single line and disable case insensitive.",ph1:Z("(?-i)"),ph2:Z("(?s-i)")})]}),keywords:["fly","the","flags","partially","apply","isolate","set","unset","modify","inline"],flavors:[N().PCRE,N().PYTHON]},{token:"(?imsxUJnxx:...)",desc:(0,o.Z)("Localized inline modifiers"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"a"}),(0,A.jsx)("span",{className:O,children:"BbB"}),(0,A.jsx)("span",{className:I,children:"c"})]}),exampleRegex:"(a)(?i:b+)(c)",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"These flag modifiers act on the enclosed expression only. Equivalent to {1}",ph1:Z("(?:(?imsxUJnxx)...)")}),(0,A.jsx)(x.vV,{tag:"p",text:"You can also unset flags using a minus sign: {1}, and can combine enabling and disabling flags. For example: {2} would set enable single line and disable case insensitive.",ph1:Z("(?-i)"),ph2:Z("(?s-i)")})]}),keywords:["fly","the","flags","partially","apply","isolate","set","unset","modify","inline"],flavors:[N().PCRE2]},{token:"(?imsxu:...)",desc:(0,o.Z)("Localized inline modifiers"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"a"}),(0,A.jsx)("span",{className:O,children:"BbB"}),(0,A.jsx)("span",{className:I,children:"c"})]}),exampleRegex:"(a)(?i:b+)(c)",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"These flag modifiers act on the enclosed expression only. Equivalent to {1}",ph1:Z("(?:(?imsxu)...)")}),(0,A.jsx)(x.vV,{tag:"p",text:"You can also unset flags using a minus sign: {1}, and can combine enabling and disabling flags. For example: {2} would set enable single line and disable case insensitive.",ph1:Z("(?-i)"),ph2:Z("(?s-i)")})]}),keywords:["fly","the","flags","partially","apply","isolate","set","unset","modify","inline"],flavors:[N().JAVA]},{token:"(?imsxn:...)",desc:(0,o.Z)("Localized inline modifiers"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"a"}),(0,A.jsx)("span",{className:O,children:"BbB"}),(0,A.jsx)("span",{className:I,children:"c"})]}),exampleRegex:"(a)(?i:b+)(c)",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"These flag modifiers act on the enclosed expression only. Equivalent to {1}",ph1:Z("(?:(?imsxn)...)")}),(0,A.jsx)(x.vV,{tag:"p",text:"You can also unset flags using a minus sign: {1}, and can combine enabling and disabling flags. For example: {2} would set enable single line and disable case insensitive.",ph1:Z("(?-i)"),ph2:Z("(?s-i)")})]}),keywords:["fly","the","flags","partially","apply","isolate","set","unset","modify","inline"],flavors:[N().DOTNET]},{token:"(?imsUx:...)",desc:(0,o.Z)("Localized inline modifiers"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"a"}),(0,A.jsx)("span",{className:O,children:"BbB"}),(0,A.jsx)("span",{className:I,children:"c"})]}),exampleRegex:"(a)(?i:b+)(c)",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"These flag modifiers act on the enclosed expression only. Equivalent to {1}",ph1:Z("(?:(?imsUx)...)")}),(0,A.jsx)(x.vV,{tag:"p",text:"You can also unset flags using a minus sign: {1}, and can combine enabling and disabling flags. For example: {2} would set enable single line and disable case insensitive.",ph1:Z("(?-i)"),ph2:Z("(?s-i)")})]}),keywords:["fly","the","flags","partially","apply","isolate","set","unset","modify","inline"],flavors:[N().RUST]},{token:"(?(1)yes|no)",desc:(0,o.Z)("Conditional statement"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"A candy"}),(0,A.jsx)("span",{className:O,children:" is true"})," is false."]}),exampleRegex:"(A candy)?(?(1) is true| is false)",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"If capturing group 1 returned a match, the pattern before the alternate {1} is matched. Otherwise, the pattern after the alternate {1} is matched.",ph1:Z("|")}),(0,A.jsx)(x.vV,{tag:"p",text:"In PCRE a recursion test {1}, group name {2}, or a relative position {3} can be used as the conditional. Global flag breaks conditionals as the engine does a second pass over an already matched/consumed string.",ph1:Z("(R)"),ph2:Z("(name)"),ph3:Z("(-1)")})]}),keywords:["if","else","true","false","match","no","then"],flavors:[N().PCRE,N().PCRE2,N().PYTHON,N().DOTNET]},{token:"(?(R)yes|no)",desc:(0,o.Z)("Conditional statement"),example:(0,A.jsx)("div",{children:(0,A.jsx)("span",{className:O,children:'<tag allows="for nested" <tag> />'})}),exampleRegex:"<(?:(?(R)\\w++|[^<>]*+)|(?R))*>",info:(0,A.jsx)(x.vV,{tag:"p",text:"If recursion of the whole pattern is successful, match the pattern before the {1} otherwise match the pattern after the {1}.",ph1:Z("|")}),keywords:["if","else","true","false","match","no","then"],flavors:[N().PCRE,N().PCRE2]},{token:"(?(R#)yes|no)",desc:(0,o.Z)("Recursive Conditional statement"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"funky"}),(0,A.jsx)("span",{className:O,children:" function"})]}),exampleRegex:"( *fun(?(R1)ction|ky))(?1)",info:(0,A.jsxs)("div",{children:[(0,A.jsx)("div",{children:(0,o.Z)("`(?R1)` checks if a call to capture group 1 was made, which will return false the first time it is encountered because the regex engine is simply parsing capture group one.")}),(0,A.jsx)("div",{children:(0,o.Z)("Once `(?1)` is called, `(?(R1)true|false)` will return true since capture group 1 was called, and will match `ction`")})]}),keywords:["if","else","true","false","match","no","then","recurse","recursion"],flavors:[N().PCRE,N().PCRE2]},{token:"(?(R&name)yes|no)",desc:(0,o.Z)("Conditional statement"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"funky"}),(0,A.jsx)("span",{className:O,children:" function"})]}),exampleRegex:"(?<sub1> *fun(?(R&sub1)ction|ky))(?&sub1)",info:(0,A.jsxs)("div",{children:[(0,A.jsx)("div",{children:(0,o.Z)("In this case `(?(R&sub1)...|...)` checks if a call to `sub1` has been made. The first time the recursive conditional is parsed, the engine is in the process of matching what `sub1` requires, not yet finished. Conditional will return false and match `ky` instead.")}),(0,A.jsx)("div",{children:(0,o.Z)("Once we recursively call `(?&sub1)` the conditional will return true as `(?<sub1>)` finished matching, thus `ction` will match.")})]}),keywords:["if","else","true","false","match","no","then"],flavors:[N().PCRE,N().PCRE2]},{token:"(?(?=...)yes|no)",desc:(0,o.Z)("Lookahead conditional"),example:(0,A.jsxs)("div",{children:["Candy ",(0,A.jsx)("span",{className:S,children:"is delicious"})," or disgusting."]}),exampleRegex:"(?(?=is)(is delicious)|(disgusting))",info:(0,A.jsx)("div",{children:(0,o.Z)("If the lookahead succeeds, matches the pattern before the vertical bar. Otherwise, matches the pattern after the vertical bar. The lookaround can be negative also. Global flag breaks conditionals.")}),keywords:["if","else","true","false","match","no","then"],flavors:[N().PCRE,N().PCRE2,N().DOTNET]},{token:"(?(?<=...)yes|no)",desc:(0,o.Z)("Lookbehind conditional"),example:(0,A.jsxs)("div",{children:["Is candy ",(0,A.jsx)("span",{className:S,children:"delish"})," or ew?"]}),exampleRegex:"(?(?<=\\s)(delish)|(ew))",info:(0,A.jsx)("div",{children:(0,o.Z)("If the lookbehind succeeds, match the pattern before the vertical bar. Otherwise, matches the pattern after the vertical bar. The lookaround can be negative. Global flag, 'g', breaks conditionals.")}),keywords:["if","else","true","false","match","no","then"],flavors:[N().PCRE,N().PCRE2,N().DOTNET]},{token:"(?R)",desc:(0,o.Z)("Recurse entire pattern"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"(simple)"})," ",(0,A.jsx)("span",{className:O,children:"(and"}),(0,A.jsx)("span",{className:S,children:"(nested)"}),(0,A.jsx)("span",{className:O,children:")"})," but (not here"]}),exampleRegex:"\\((?:[^()]|((?R)))+\\)",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Recursively match the entire expression. Equivalent to {1} or {2}.",ph1:Z("(?0)"),ph2:Z("\\g<0>")}),(0,A.jsx)(x.vV,{tag:"p",text:"Note that {1} is wrapped in a superfluous capture group to help visually identify its match in the example string.",ph1:Z("(?R)")})]}),keywords:["repeat","match","again","multiple","nth","n","times"],flavors:[N().PCRE,N().PCRE2]},{token:"(?1)",desc:(0,o.Z)("Match expression defined in capture group 1"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"capture"}),(0,A.jsx)("span",{className:O,children:" my "}),(0,A.jsx)("span",{className:I,children:"capture"})," again"]}),exampleRegex:"(capture).+((?1))",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches the expression defined in capture group 1.")}),keywords:["repeat","match","again","multiple","recurse","recursion","nth","n","times","capture","group"],flavors:[N().PCRE,N().PCRE2]},{token:"(?+1)",desc:(0,o.Z)("Match expression defined in the first relative capture group"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"match if I start with "}),(0,A.jsx)("span",{className:I,children:"match"})]}),exampleRegex:"(?+1).+(match)",info:(0,A.jsx)(x.vV,{tag:"p",text:"Match expression defined in the first capture group following the current position in the expression. {1} is the second capture group, {2} is the capture group immediately preceding the current position.",ph1:Z("(?+2)"),ph2:Z("(?-1)")}),keywords:["repeat","match","again","multiple","nth","n","times","capture","recurse","recursion","group","by","id"],flavors:[N().PCRE,N().PCRE2]},{token:"(?&name)",desc:(0,o.Z)("Match expression defined in capture group `name`"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"boys like "}),(0,A.jsx)("span",{className:S,children:"toys"}),"."]}),exampleRegex:"(?&named_group) like (?'named_group'[tb]oys)",info:(0,A.jsx)("div",{children:(0,o.Z)("Match expression defined in the capture group with the given name. It does not require that the capture group be defined beforehand.")}),keywords:["repeat","match","again","multiple","named","times","capture","group","by","recurse","recursion"],flavors:[N().PCRE,N().PCRE2]},{token:"(?P=name)",desc:(0,o.Z)("Match subpattern `name`"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"cool"}),(0,A.jsx)("span",{className:O,children:" cool"})]}),exampleRegex:"(?P<named_group>cool) (?P=named_group)",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches the same text matched by a previously named capture group.")}),keywords:["repeat","match","again","multiple","named","times","capture","group","by"],flavors:[N().PCRE,N().PCRE2,N().PYTHON]},{token:"(?P>name)",desc:(0,o.Z)('Match expression defined in the capture group "{name}"'),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"123"}),(0,A.jsx)("span",{className:O,children:" or "}),(0,A.jsx)("span",{className:I,children:"789"})]}),exampleRegex:"((?P>who)) or (?<who>[0-9]+)",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches expression defined in the capture group with the given name.")}),keywords:["repeat","match","again","multiple","named","times","capture","group","by","recurse","recursion"],flavors:[N().PCRE,N().PCRE2]},{token:"(?(DEFINE)...)",desc:(0,o.Z)("Pre-define patterns before using them"),example:(0,A.jsxs)("div",{children:["123 ",(0,A.jsx)("span",{className:O,children:"letters"})," 123"]}),exampleRegex:"(?(DEFINE)(?'letters'[a-z]+))(?P>letters)",info:(0,A.jsxs)("div",{children:[(0,o.Z)('The DEFINE group is completely ignored by regex. It gets treated as a var name="value", whereas you can recall the specific pattern for use via its name. Multiple patterns can be defined in the same DEFINE group.'),(0,A.jsx)("div",{className:T.Z.tokenSample,children:"(?(DEFINE)(?'numbers'\\d+)(?'lowercase'[a-z]+)(?'uppercase'[A-Z]+))"})]}),keywords:["store","define","variables","regexes","set","recall","name","pattern"],flavors:[N().PCRE,N().PCRE2]},{token:"(?=...)",desc:(0,o.Z)("Positive Lookahead"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"foo"}),"bar foobaz"]}),exampleRegex:"foo(?=bar)",info:(0,A.jsx)("div",{children:(0,o.Z)("Asserts that the given subpattern can be matched here, without consuming characters")}),keywords:["match","only","if","exists","string","word","character","next","coming","up"],flavors:[N().PCRE,N().PCRE2,N().JAVASCRIPT,N().PYTHON,N().JAVA,N().DOTNET]},{token:"(?!...)",desc:(0,o.Z)("Negative Lookahead"),example:(0,A.jsxs)("div",{children:["foobar ",(0,A.jsx)("span",{className:O,children:"foo"}),"baz"]}),exampleRegex:"foo(?!bar)",info:(0,A.jsx)("div",{children:(0,o.Z)("Starting at the current position in the expression, ensures that the given pattern will not match. Does not consume characters.")}),keywords:["match","only","if","not","is","exists","string","word","character","next","coming","up"],flavors:[N().PCRE,N().PCRE2,N().JAVASCRIPT,N().PYTHON,N().JAVA,N().DOTNET]},{token:"(?<=...)",desc:(0,o.Z)("Positive Lookbehind"),example:(0,A.jsxs)("div",{children:["foo",(0,A.jsx)("span",{className:O,children:"bar"})," fuubar"]}),exampleRegex:"(?<=foo)bar",info:(0,A.jsx)("div",{children:(0,o.Z)("Ensures that the given pattern will match, ending at the current position in the expression. The pattern must have a fixed width. Does not consume any characters.")}),keywords:["look","behind","lookbehind","match","only","if","is","exists","string","word","character","previously","past","before"],flavors:[N().PCRE,N().PCRE2,N().PYTHON,N().JAVA,N().DOTNET]},{token:"(?<!...)",desc:(0,o.Z)("Negative Lookbehind"),example:(0,A.jsxs)("div",{children:["not foo but ",(0,A.jsx)("span",{className:O,children:"foo"})]}),exampleRegex:"(?<!not )foo",info:(0,A.jsx)("div",{children:(0,o.Z)("Ensures that the given pattern would not match and end at the current position in the expression. The pattern must have a fixed width. Does not consume characters.")}),keywords:["look","behind","lookbehind","match","only","if","not","is","exists","string","word","character","previously","past","before"],flavors:[N().PCRE,N().PCRE2,N().PYTHON,N().JAVA,N().DOTNET]},{token:"(?<=...)",desc:(0,o.Z)("Positive Lookbehind"),example:(0,A.jsxs)("div",{children:["foo",(0,A.jsx)("span",{className:O,children:"bar"})," fuubar"]}),exampleRegex:"(?<=foo)bar",info:(0,A.jsxs)("div",{children:[(0,A.jsx)("div",{children:(0,o.Z)("Ensures that the given pattern will match, ending at the current position in the expression. The pattern be of variable width. Does not consume any characters.")}),(0,A.jsx)("div",{children:(0,o.Z)("Note that this feature is not yet supported on all browsers; use at your own discretion!")})]}),keywords:["look","behind","lookbehind","match","only","if","is","exists","string","word","character","previously","past","before"],flavors:[N().JAVASCRIPT]},{token:"(?<!...)",desc:(0,o.Z)("Negative Lookbehind"),example:(0,A.jsxs)("div",{children:["not foo but ",(0,A.jsx)("span",{className:O,children:"foo"})]}),exampleRegex:"(?<!not )foo",info:(0,A.jsxs)("div",{children:[(0,A.jsx)("div",{children:(0,o.Z)("Ensures that the given pattern would not match and end at the current position in the expression. The pattern be of variable width. Does not consume characters.")}),(0,A.jsx)("div",{children:(0,o.Z)("Note that this feature is not yet supported on all browsers; use at your own discretion!")})]}),keywords:["look","behind","lookbehind","match","only","if","not","is","exists","string","word","character","previously","past","before"],flavors:[N().JAVASCRIPT]},{token:"(*ACCEPT)",desc:(0,o.Z)("Control verb"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"Candy tastes great"})," but is bad for your teeth."]}),exampleRegex:"Candy.+?great(*ACCEPT).+bad",info:(0,A.jsxs)("div",{children:[(0,A.jsx)("p",{children:(0,o.Z)("This causes the regex to end successfully, skipping the rest of the pattern.")}),(0,A.jsx)("p",{children:(0,o.Z)("If this token is inside a capturing group, only that capturing group is ended successfully at that particular location, while the parent pattern continues to execute.")})]}),keywords:["end","accept","recursion","early","capture","stop","partly","pattern"],flavors:[N().PCRE,N().PCRE2]},{token:"(*FAIL)",desc:(0,o.Z)("Control verb"),example:(0,A.jsxs)("div",{children:["Candy is bad",(0,A.jsx)("br",{}),(0,A.jsx)("span",{className:O,children:"Candy is good"})]}),exampleRegex:"Candy.+?(?:bad(*FAIL)|good)",info:(0,A.jsx)(x.vV,{tag:"p",text:"Force a matching failure at a specific point in the regex. Equivalent to {1}, and a synonym of {2}.",ph1:Z("(*F)"),ph2:Z("(?!)")}),keywords:["end","reject","recursion","early","capture","stop","partly","pattern"],flavors:[N().PCRE,N().PCRE2]},{token:"(*MARK:NAME)",desc:(0,o.Z)("Control verb"),info:(0,A.jsxs)("div",{children:[(0,o.Z)("Used to mark internal engine backtracking. When used in conjunction with the /K modifier (show backtracking control names), pcretest can return the mark together with a successful match. Equivalent to (*:NAME). `NAME` does not need to be unique."),(0,A.jsxs)("div",{className:T.Z.tokenSample,children:[(0,A.jsx)("div",{children:"re> /X(*MARK:A)Y|X(*MARK:B)Z/K"}),(0,A.jsx)("div",{children:"data> XY"}),(0,A.jsx)("div",{children:"0: XY"}),(0,A.jsx)("div",{children:"MK: A"}),(0,A.jsx)("div",{children:"XZ"}),(0,A.jsx)("div",{children:"0: XZ"}),(0,A.jsx)("div",{children:"MK: B"})]})]}),keywords:["end","reject","recursion","early","capture","stop","partly","pattern"],flavors:[N().PCRE,N().PCRE2]},{token:"(*COMMIT)",desc:(0,o.Z)("Control verb"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"woow"})," ",(0,A.jsx)("span",{className:O,children:"woow"})," woot woow"]}),exampleRegex:"wo+(*COMMIT)w",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("This verb does not allow regex to continue parsing after a matching failure, even if there are other matching strings ahead, and regardless of how many successful matches are before the failure.")}),keywords:["no","backtracking","recursion","deny","stop","matching","failure","after"],flavors:[N().PCRE,N().PCRE2]},{token:"(*PRUNE)",desc:(0,o.Z)("Control verb"),example:(0,A.jsxs)("div",{children:["marketing dynamics, ",(0,A.jsx)("span",{className:O,children:"marketing strategy"})]}),exampleRegex:"(*PRUNE)\\w{4,9} strategy|\\w{4,9} dynamics",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Causes the regex to exit if it tries to backtrack past {1}'s position. This is useful when looking to cut down on backtracking at specific points in the regex. Equivalent to {2}.",ph1:Z("(*PRUNE)"),ph2:Z("(*PRUNE:NAME)")}),keywords:["no","backtracking","recursion","deny","stop","matching","failure","after"],flavors:[N().PCRE,N().PCRE2]},{token:"(*SKIP)",desc:(0,o.Z)("Control verb"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"aaardvark"})," aaaardvark aa",(0,A.jsx)("span",{className:O,children:"aaardvark"})," aaaaaardvark aaaa",(0,A.jsx)("span",{className:O,children:"aaardvark"})]}),exampleRegex:"aa(*SKIP)ard\\w+",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Causes the regex engine to give up on the current match if it tries to backtrack past {1}'s position. This is useful when looking to cut down on backtracking at specific points in the regex. Equivalent to {2}.",ph1:Z("(*SKIP)"),ph2:Z("(*SKIP:NAME)")}),keywords:["no","backtracking","recursion","deny","stop","matching","failure","after","give","up"],flavors:[N().PCRE,N().PCRE2]},{token:"(*THEN)",desc:(0,o.Z)("Control verb"),example:(0,A.jsx)("div",{children:"35234"}),exampleRegex:"^.*?(?(?=2)2|3(*THEN)4)",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Disallows backtracking past {1}'s position, and gives up matching the current alternation if there's a failure. If instead {1} is used outside of an alternation, it will act like {3}. Equivalent to {2}.",ph1:Z("(*THEN)"),ph2:Z("(*THEN:NAME)"),ph3:Z("(*PRUNE)")}),keywords:["no","backtracking","recursion","deny","stop","matching","failure","after","give","up"],flavors:[N().PCRE,N().PCRE2]},{token:"(*UTF)",desc:(0,o.Z)("Pattern modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("This allows regex to treat the string as UTF, be it 8, 16, or 32.")}),keywords:["utf","string","unicode","\\x","\\u"],flavors:[N().PCRE,N().PCRE2]},{token:"(*UTF8)",desc:(0,o.Z)("Pattern modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("This allows regex to treat the string as UTF-8, specifically.")}),keywords:["utf","string","unicode","\\x","\\u"],flavors:[N().PCRE,N().PCRE2]},{token:"(*UTF16)",desc:(0,o.Z)("Pattern modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("This allows regex to treat the string as UTF-16, specifically.")}),keywords:["utf","string","unicode","\\x","\\u"],flavors:[N().PCRE,N().PCRE2]},{token:"(*UTF32)",desc:(0,o.Z)("Pattern modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("This allows regex to treat the string as UTF-32, specifically.")}),keywords:["utf","string","unicode","\\x","\\u"],flavors:[N().PCRE,N().PCRE2]},{token:"(*UCP)",desc:(0,o.Z)("Pattern modifier"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"0\u06601\u06612\u06623\u06634\u06645\u06656\u06667\u0668\u06689\u0669"}),(0,A.jsx)("span",{className:S,children:"h\u0629"})]}),exampleRegex:"(*UCP)\\d+(\\w+)",info:(0,A.jsx)(x.vV,{tag:"p",text:"UCP (Unicode Character Properties) makes the PCRE engine extend {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, and some POSIX character classes to include unicode characters as well, not just ASCII.",ph1:Z("\\B"),ph2:Z("\\b"),ph3:Z("\\D"),ph4:Z("\\d"),ph5:Z("\\S"),ph6:Z("\\s"),ph7:Z("\\W"),ph8:Z("\\w")}),keywords:["utf","string","unicode","\\x","\\u","extend"],flavors:[N().PCRE,N().PCRE2]},{token:"(*CR)",desc:(0,o.Z)("Line break modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("Makes it so that only a carriage return character is considered a line break.")}),keywords:["only","one","specific","return","carriage","newline","line","break","kind","type","feed"],flavors:[N().PCRE,N().PCRE2]},{token:"(*LF)",desc:(0,o.Z)("Line break modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("Makes it so that only a line feed character is considered a line break. Common in UNIX documents.")}),keywords:["only","one","specific","return","carriage","newline","line","break","kind","type","feed"],flavors:[N().PCRE,N().PCRE2]},{token:"(*CRLF)",desc:(0,o.Z)("Line break modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("Makes it so that only a carriage return character followed by a line feed character is considered a line break. Common in Windows documents.")}),keywords:["only","one","specific","return","carriage","newline","line","break","kind","type","feed"],flavors:[N().PCRE,N().PCRE2]},{token:"(*ANYCRLF)",desc:(0,o.Z)("Line break modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("Makes it so that either a carriage return character or a line feed character, or the two in sequence are considered a line break.")}),keywords:["only","one","specific","return","carriage","newline","line","break","kind","type","feed"],flavors:[N().PCRE,N().PCRE2]},{token:"(*ANY)",desc:(0,o.Z)("Line break modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("Makes it so that any unicode newline character or sequence thereof counts as a line break.")}),keywords:["only","one","specific","return","carriage","newline","line","break","kind","type","feed","unicode"],flavors:[N().PCRE,N().PCRE2]},{token:"(*NOTEMPTY)",desc:(0,o.Z)("Empty match modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("Makes it so that empty strings will not be allowed to be matched by the pattern.")}),keywords:["notempty","not","empty","strings"],flavors:[N().PCRE2]},{token:"(*NOTEMPTY_ATSTART)",desc:(0,o.Z)("Empty match modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("Makes it so that empty strings will not be allowed to be matched by the pattern at the start of the subject string.")}),keywords:["notempty","not","empty","strings","start"],flavors:[N().PCRE2]},{token:"(*NO_JIT)",desc:(0,o.Z)("JIT Modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("Makes it so that the PCRE engine will no longer use just in time compilation.")}),keywords:["notempty","not","empty","strings","start"],flavors:[N().PCRE2]},{token:"\\R",desc:(0,o.Z)("Line break modifier"),info:(0,A.jsx)(x.vV,{tag:"p",text:"By default, {1} matches any unicode newline character or sequence thereof. Its behavior can be controlled by newline convention verbs like {2} or {3}.",ph1:Z("\\R"),ph2:Z("(*BSR_ANYCRLF)"),ph3:Z("(*BSR_UNICODE)")}),keywords:["only","one","specific","return","carriage","newline","line","break","kind","type","feed","unicode"],flavors:[N().PCRE,N().PCRE2,N().JAVA]},{token:"(*BSR_ANYCRLF)",desc:(0,o.Z)("Line break modifier"),info:(0,A.jsx)(x.vV,{tag:"p",text:"Sets the convention for newline matching to {1}, {2}, or {3} for things like the {4} metacharacter.",ph1:V("\\r\\n"),ph2:V("\\r"),ph3:V("\\n"),ph4:Z("\\R")}),keywords:["only","one","specific","return","carriage","newline","line","break","kind","type","feed","unicode"],flavors:[N().PCRE,N().PCRE2]},{token:"(*BSR_UNICODE)",desc:(0,o.Z)("Line break modifier"),info:(0,A.jsx)(x.vV,{tag:"p",text:"This sets the convention for newline matching to any unicode newline character or sequence thereof, for things like the {1} metacharacter.",ph1:Z("\\R")}),keywords:["only","one","specific","return","carriage","newline","line","break","kind","type","feed","unicode"],flavors:[N().PCRE,N().PCRE2]},{token:"(*LIMIT_MATCH=x)",desc:(0,o.Z)("Regex engine modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("Limits the number of times the regex engine is allowed to call `match()` to `x` times. This user set limit cannot be increased past the compile time value or the default, however it can be restricted.")}),keywords:["engine","optimization","specific","match","limits"],flavors:[N().PCRE,N().PCRE2]},{token:"(*LIMIT_RECURSION=d)",desc:(0,o.Z)("Regex engine modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("Limits the number of recursions the engine is allowed to make to `d` times. This user set limit cannot be increased past the compile time value or the default, however it can be restricted.")}),keywords:["engine","optimization","specific","match","limits"],flavors:[N().PCRE,N().PCRE2]},{token:"(*NO_AUTO_POSSESS)",desc:(0,o.Z)("Regex engine modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("The PCRE regex engine automatically applies some internal optimizations to regexes to avoid unnecessary backtracking. This modifier will disable that behavior, and thus the engine will backtrack until the previously matching instruction fails to do so.")}),keywords:["engine","optimization","specific","match","limits"],flavors:[N().PCRE,N().PCRE2]},{token:"(*NO_START_OPT)",desc:(0,o.Z)("Regex engine modifier"),info:(0,A.jsx)("div",{children:(0,o.Z)("Before even attempting a match, the regex engine makes some checks, such as the length of the string. If it is not long enough to fit the pattern, it will automatically return a no match. This optimization can be disabled by using this modifier.")}),keywords:["engine","optimization","specific","match","limits"],flavors:[N().PCRE,N().PCRE2]}],t=[{token:"a?",basic:!0,desc:(0,o.Z)("Zero or one of a"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"ba"})," ",(0,A.jsx)("span",{className:O,children:"b"})," a"]}),exampleRegex:"ba?",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches an `a` character or nothing.")}),keywords:["optional","one","once"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"a*",basic:!0,desc:(0,o.Z)("Zero or more of a"),example:(0,A.jsxs)("div",{children:["a ",(0,A.jsx)("span",{className:O,children:"ba"})," ",(0,A.jsx)("span",{className:O,children:"baa"})," aaa"," ",(0,A.jsx)("span",{className:O,children:"ba"})," ",(0,A.jsx)("span",{className:O,children:"b"})]}),exampleRegex:"ba*",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches zero or more consecutive `a` characters.")}),keywords:["zero","optional","none","infinity"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"a+",basic:!0,desc:(0,o.Z)("One or more of a"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"a"})," ",(0,A.jsx)("span",{className:O,children:"aa"})," ",(0,A.jsx)("span",{className:O,children:"aaa"})," ",(0,A.jsx)("span",{className:O,children:"aaaa"})," b",(0,A.jsx)("span",{className:O,children:"a"}),"b b",(0,A.jsx)("span",{className:O,children:"aa"}),"b"]}),exampleRegex:"a+",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches one or more consecutive `a` characters.")}),keywords:["one","more","optional","than","infinity"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"a{3}",basic:!0,desc:(0,o.Z)("Exactly 3 of a"),example:(0,A.jsxs)("div",{children:["a aa ",(0,A.jsx)("span",{className:O,children:"aaa"})," ",(0,A.jsx)("span",{className:O,children:"aaa"}),"a"]}),exampleRegex:"a{3}",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches exactly 3 consecutive `a` characters.")}),keywords:["specific","number","amount","times","only"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"a{3,}",basic:!0,desc:(0,o.Z)("3 or more of a"),example:(0,A.jsxs)("div",{children:["a aa ",(0,A.jsx)("span",{className:O,children:"aaa"})," ",(0,A.jsx)("span",{className:O,children:"aaaa"})," ",(0,A.jsx)("span",{className:O,children:"aaaaaa"})]}),exampleRegex:"a{3,}",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches at least 3 consecutive `a` characters.")}),keywords:["at","least","minimum","specific","exactly","infinity","many"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"a{3,6}",basic:!0,desc:(0,o.Z)("Between 3 and 6 of a"),example:(0,A.jsxs)("div",{children:["a aa ",(0,A.jsx)("span",{className:O,children:"aaa"})," ",(0,A.jsx)("span",{className:O,children:"aaaa"})," ",(0,A.jsx)("span",{className:O,children:"aaaaaa"}),(0,A.jsx)("span",{className:O,children:"aaaa"})]}),exampleRegex:"a{3,6}",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches between 3 and 6 (inclusive) consecutive `a` characters.")}),keywords:["specific","number","amount",""],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"a*",desc:(0,o.Z)("Greedy quantifier"),example:(0,A.jsxs)("div",{children:["greedy c",(0,A.jsx)("span",{className:O,children:"an be dangerous a"}),"t times"]}),exampleRegex:"a.*a",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches as many characters as possible.")}),keywords:["zero","more","infinity","many"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"a*?",desc:(0,o.Z)("Lazy quantifier"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"r"})," ",(0,A.jsx)("span",{className:O,children:"r"}),"e"," ",(0,A.jsx)("span",{className:O,children:"r"}),"egex"]}),exampleRegex:"r\\w*?",regexFlags:"g",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{children:(0,o.Z)("Matches as few characters as possible.")}),(0,A.jsx)("div",{children:(0,o.Z)("You can make any quantifier lazy by appending a question mark to it.")})]}),keywords:["zero","fewer","first","occurrence","least","less"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().JAVA,N().DOTNET,N().RUST]},{token:"a*+",desc:(0,o.Z)("Possessive quantifier"),example:(0,A.jsx)("div",{children:"123"}),exampleRegex:"\\d++.",info:(0,A.jsx)(x.vV,{tag:"div",text:"Matches as many characters as possible; backtracking can't reduce the number of characters matched. Because it is greedy, it will match all the way to the last digit, leaving nothing else for the {1} to match. Without backtracking, this regex fails to produce a match.",ph1:Z(".")}),keywords:["no","backtracking","maximum","most","prevent"],flavors:[N().PCRE,N().PCRE2,N().JAVA]}],r=[{token:"\\G",desc:(0,o.Z)("Start of match"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"cats are "}),(0,A.jsx)("span",{className:S,children:"silly cute "}),"and cute"]}),exampleRegex:"(?: ?\\G|^cats are )((?:silly|cute)(?: |$))",info:(0,A.jsx)(x.vV,{tag:"p",text:"This will match only at the starting point of the search or the position the previous successful match ended. Useful with the {1} flag, or when you are only trying to match after a certain point in a string.",ph1:V("/g")}),keywords:["custom","start","after","point","specific"],flavors:[N().PCRE,N().PCRE2,N().JAVA,N().DOTNET]},{token:"^",basic:!0,desc:(0,o.Z)("Start of string"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"start"})," of string"]}),exampleRegex:"^\\w+",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches the start of a string without consuming any characters. If {1} multiline mode is used, this will also match immediately after a newline character.",ph1:V("/m")}),keywords:["begining","line","start","head","string","multi","text"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"$",basic:!0,desc:(0,o.Z)("End of string"),example:(0,A.jsxs)("div",{children:["end of ",(0,A.jsx)("span",{className:O,children:"string"})]}),exampleRegex:"\\w+$",info:(0,A.jsx)("div",{children:(0,o.Z)("Matches the end of a string without consuming any characters. If multiline mode is used, this will also match immediately before a newline character.")}),keywords:["last","line","tail","very","text"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\A",desc:(0,o.Z)("Start of string"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"start"})," of string"]}),exampleRegex:"\\A\\w+",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches the start of a string only. Unlike {1}, this is not affected by multiline mode.",ph1:Z("^")}),keywords:["begining","text","start","head","string","multi"],flavors:[N().PCRE,N().PCRE2,N().PYTHON,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\Z",desc:(0,o.Z)("End of string"),example:(0,A.jsxs)("div",{children:["end of string",(0,A.jsx)("span",{className:J()(O,F),children:" "}),(0,A.jsx)("br",{})]}),exampleRegex:"\\Z",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches the end of a string or the position before the line terminator right at the end of the string (if any). Unlike {1}, this is not affected by multiline mode.",ph1:Z("$")}),keywords:["last","line","tail","very","text"],flavors:[N().PCRE,N().PCRE2,N().JAVA]},{token:"\\Z",desc:(0,o.Z)("End of string"),example:(0,A.jsxs)("div",{children:["end of string",(0,A.jsx)("br",{}),(0,A.jsx)("span",{className:J()(O,F),children:" "})]}),exampleRegex:"\\Z",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches the very end of a string only. Unlike {1}, this is not affected by multiline mode.",ph1:Z("$")}),keywords:["last","line","tail","very","text"],flavors:[N().PYTHON]},{token:"\\z",desc:(0,o.Z)("Absolute end of string"),example:(0,A.jsxs)("div",{children:["absolute end of ",(0,A.jsx)("span",{className:O,children:"string"})]}),exampleRegex:"\\w+\\z",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches the end of a string only. Unlike {1}, this is not affected by multiline mode, and, in contrast to {2}, will not match before a trailing newline at the end of a string.",ph1:Z("$"),ph2:Z("\\Z")}),keywords:["last","tail","very","text"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\b",basic:!0,desc:(0,o.Z)("A word boundary"),example:(0,A.jsxs)("div",{children:["wor",(0,A.jsx)("span",{className:O,children:"d"})," boundaries are od",(0,A.jsx)("span",{className:O,children:"d"})]}),exampleRegex:"d\\b",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches, without consuming any characters, immediately between a character matched by {1} and a character not matched by {1} (in either order). It cannot be used to separate non words from words.",ph1:Z("\\w")}),keywords:["word","real","only","start","end"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\B",basic:!0,desc:(0,o.Z)("Non-word boundary"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"r"}),"egex is ",(0,A.jsx)("span",{className:O,children:"r"}),"eally cool"]}),exampleRegex:"r\\B",regexFlags:"g",info:(0,A.jsx)(x.vV,{tag:"p",text:"Matches, without consuming any characters, at the position between two characters matched by {1} or {2}.",ph1:Z("\\w"),ph2:Z("\\W")}),keywords:["word","part","partially","extract","match","only"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]}],i=[{token:"g",desc:(0,o.Z)("Global"),example:(0,A.jsxs)("div",{children:["match ",(0,A.jsx)("span",{className:O,children:"this"})," and again"," ",(0,A.jsx)("span",{className:O,children:"this"})]}),exampleRegex:"this",regexFlags:"g",info:(0,A.jsx)("div",{children:(0,o.Z)("Also known as global mode, it instruct the engine not to stop after the first match has been found, but rather to continue until no more matches can be found.")}),keywords:["more","multiple","stop","match","one","continue","after"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"m",desc:(0,o.Z)("Multiline"),example:(0,A.jsx)("div",{children:(0,A.jsx)("span",{className:O,children:"digits coming up 443"})}),exampleRegex:"^d.+\\d{3}$",regexFlags:"m",info:(0,A.jsx)(x.vV,{tag:"p",text:"The {1} and {2} anchors now match at the beginning/end of each line respectively, instead of beginning/end of the entire string or input.",ph1:Z("^"),ph2:Z("$")}),keywords:["anchor","start","string","line","input","end","last","head","tail"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"i",desc:(0,o.Z)("Case insensitive"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"A"})," or ",(0,A.jsx)("span",{className:O,children:"a"})]}),exampleRegex:"a",regexFlags:"gi",info:(0,A.jsx)("div",{children:(0,o.Z)("A case insensitive match is performed, meaning capital letters will be matched by non-capital letters and vice versa.")}),keywords:["upper","lower","regardless","case","letters","either"],flavors:[N().JAVASCRIPT,N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"x",desc:(0,o.Z)("Ignore whitespace / verbose"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"a"}),"#comment here"]}),exampleRegex:"a#comment here",regexFlags:"x",info:(0,A.jsx)("div",{children:(0,o.Z)("This flag tells the engine to ignore all whitespace and allow for comments in the regex; also called verbose. Comments are indicated by a starting \"#\"-character. If you need to include a space character in your regex, it must now be escaped '\\ '.")}),keywords:["comments","instructions","text","non","pattern","notes","extra","information","include"],flavors:[N().PYTHON,N().PCRE,N().PCRE2,N().JAVA,N().DOTNET,N().RUST]},{token:"s",desc:(0,o.Z)("Single line"),example:(0,A.jsxs)("div",{children:["on",(0,A.jsxs)("span",{className:O,children:["e",(0,A.jsx)("br",{}),"two",(0,A.jsx)("br",{}),"thr"]}),"ee"]}),exampleRegex:"e.*r",regexFlags:"s",info:(0,A.jsx)(x.vV,{tag:"p",text:"This enables the dot metacharacter {1} to also match newlines. The whole string is treated as a single line input.",ph1:Z(".")}),keywords:["dotall","all","dot","newline","\\n","line","single","paragraph"],flavors:[N().PYTHON,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"u",desc:(0,o.Z)("Unicode"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"\xe7a"})," va?"]}),exampleRegex:"\\wa",regexFlags:"u",info:(0,A.jsx)(x.vV,{tag:"p",text:"Pattern strings will be treated as UTF-16, which means that unicode characters will also be included in {1} ranges, and in escape sequences like {2}.",ph1:Z("[a-z]"),ph2:Z("\\w")}),keywords:["unicode","\\x","\\u","alphabet","foreign","characters"],flavors:[N().PCRE,N().PCRE2]},{token:"U",desc:(0,o.Z)("Unicode"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"\xe7a"})," va?"]}),exampleRegex:"\\wa",regexFlags:"U",info:(0,A.jsx)(x.vV,{tag:"p",text:"Escape sequences like {1} will also match unicode characters.",ph1:Z("\\w")}),keywords:["unicode","\\x","\\u","alphabet","foreign","characters"],flavors:[N().JAVA]},{token:"X",desc:(0,o.Z)("eXtra"),example:(0,A.jsx)("div",{children:"Boo."}),exampleRegex:"\\x42oo\\.",regexFlags:"X",info:(0,A.jsx)(x.vV,{tag:"p",text:"Any character following a {1} that is not a valid meta sequence will be faulted and raise an error. {2}, for example, will cause an error, and it will not match.",ph1:V("\\"),ph2:V("\\O")}),keywords:["meta","only","sequence","no","escaping"],flavors:[N().PCRE,N().PCRE2]},{token:"U",desc:(0,o.Z)("Ungreedy"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"a"}),"aaa"]}),exampleRegex:"a+",regexFlags:"U",info:(0,A.jsx)(x.vV,{tag:"p",text:"The engine will per default do lazy matching, instead of greedy. This reverses the meaning of {1}, which will now make the previous quantifier greedy.",ph1:Z("?")}),keywords:["lazy","non","greedy","swap","default","opposite"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().RUST]},{token:"A",desc:(0,o.Z)("Anchor"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"aaaa"})," aaaa"]}),exampleRegex:"a+",regexFlags:"gA",info:(0,A.jsx)(x.vV,{tag:"p",text:"The pattern is forced to become anchored at the start of the search or at the position of the last successful match, equivalent to a {1}.",ph1:Z("\\G")}),keywords:["begining","text","start","head","string","multi"],flavors:[N().PCRE,N().PCRE2]},{token:"J",desc:(0,o.Z)("Duplicate group names"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:S,children:"a"}),(0,A.jsx)("span",{className:I,children:"b"})]}),exampleRegex:"(?<letter>a)(?<letter>b)",regexFlags:"J",info:(0,A.jsx)("div",{children:(0,o.Z)("This allows regex to accept duplicate pattern names, however each capture group still has its own ID. Thus the two capture groups produce their own match instead of a single combined one.")}),keywords:["begining","text","start","head","string","multi"],flavors:[N().PCRE,N().PCRE2]},{token:"y",desc:(0,o.Z)("Sticky - searches in strings only from the index of the last match"),example:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{className:O,children:"a"}),(0,A.jsx)("span",{className:O,children:"bc"}),"Xabc"]}),exampleRegex:"a|bc",regexFlags:"gy",info:(0,A.jsxs)("div",{children:[(0,A.jsx)("div",{children:(0,o.Z)("Regex will continue parsing the string keeping in mind the last match location. If the next match is not located directly after the last, this next match is discarded.")}),(0,A.jsx)("div",{children:(0,o.Z)('In the example below, the first alternate matched "a", and the second one matched "bc", however once it bumped into "X" none of the alternatives resulted in a match. Therefore the engine cannot return the next "a" as a match because "X" is not the last location where a match occurred.')})]}),keywords:["sticky","match","first","point","forward","after","only"],flavors:[N().JAVASCRIPT]},{token:"u",desc:(0,o.Z)("Enable unicode support"),example:(0,A.jsxs)("div",{children:["a",(0,A.jsx)("span",{className:O,children:"\ud834\udf06"}),"b"]}),exampleRegex:"\ud834\udf06",regexFlags:"u",info:(0,A.jsx)(x.vV,{tag:"p",text:"Allows regex to match unicode characters via dotall and unicode escape sequences, as well as ES6 unicode code point escapes such as {1} which is made up of {2}.",ph1:Z("\\u{1D306}"),ph2:Z("\\uD834\\uDF06")}),keywords:["unicode","special","alphabet","characters","foreign","symbols","strings","\\u{","\\u"],flavors:[N().JAVASCRIPT]},{token:"u",desc:(0,o.Z)("Unicode case insensitive"),example:(0,A.jsxs)("div",{children:["a",(0,A.jsx)("span",{className:O,children:"\xc5"}),"b"]}),exampleRegex:"\xe5",regexFlags:"u",info:(0,A.jsx)(x.vV,{tag:"p",text:"Allows case insensitive matching of unicode characters, not only US-ASCII."}),keywords:["unicode","special","alphabet","characters","foreign","symbols","strings","\\u{","\\u"],flavors:[N().JAVA]},{token:"u",desc:(0,o.Z)("Enable unicode support"),example:(0,A.jsxs)("div",{children:["a",(0,A.jsx)("span",{className:O,children:"\u03b1"}),"beta"]}),exampleRegex:"\u03b1",regexFlags:"u",info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(x.vV,{tag:"p",text:"Pattern strings will be treated as UTF-16, which means that unicode characters will also be included in {1} ranges, and in escape sequences like {2}.",ph1:Z("[a-z]"),ph2:Z("\\w")}),(0,A.jsx)(x.vV,{tag:"p",text:"Keep in mind that Python 3 is going to treat your whole script as unicode by default, therefore using this flag would be redundant. See the {1} flag to limit matches to ASCII characters only. Python 2 requires this flag to turn on unicode support.",ph1:V("/a")})]}),keywords:["unicode","special","alphabet","characters","foreign","symbols","strings"],flavors:[N().PYTHON]},{token:"a",desc:(0,o.Z)("Restrict matches to ASCII only"),example:(0,A.jsxs)("div",{children:["\u03b1",(0,A.jsx)("span",{className:O,children:"beta"})]}),exampleRegex:"w+",regexFlags:"u",info:(0,A.jsxs)("div",{children:[(0,A.jsx)("div",{children:(0,o.Z)("Make regex perform ASCII-only matching instead of full Unicode matching. Applies to [a-z] ranges and escape sequences.")}),(0,A.jsx)("div",{children:(0,o.Z)("This flag does not exist in Python2, as by default your script is parsed in ascii mode. In Python3 this will behave as described.")})]}),keywords:["unicode","ascii","alphabet","characters","normal","symbols","strings","english"],flavors:[N().PYTHON]},{token:"n",desc:(0,o.Z)("Non-capturing groups"),info:(0,A.jsx)(A.Fragment,{children:(0,A.jsx)(x.vV,{text:"All capturing groups {1} are instead treated as if they were non-capturing groups {2}.",ph1:Z("()"),ph2:Z("(?:)")})}),keywords:["groups","non-capturing","capturing"],flavors:[N().DOTNET]}],c=[{token:"\\g<0>",desc:(0,o.Z)("Complete match contents"),info:(0,A.jsx)("div",{children:(0,o.Z)("Returns a string with the full match result. `0` can be replaced with any desired capture group ID to return that part of the match instead.")}),keywords:["full","match","capture","group","particular","part","some","all","found","characters","strings","backref","backreference"],flavors:[N().PYTHON]},{token:"\\g<1>",desc:(0,o.Z)("Contents in capture group 1"),info:(0,A.jsx)("div",{children:(0,o.Z)("This will return a string with the contents from the first capture group. The number, in this case 1, can be any number as long as it corresponds to a valid capture group.")}),keywords:["group","capture","first","one","many","particular","backref","backreference"],flavors:[N().PYTHON]},{token:"\\g<foo>",desc:(0,o.Z)("Contents in capture group `foo`"),info:(0,A.jsx)("div",{children:(0,o.Z)("This will return a string with the contents from the capture group named `foo`. Any name can be used as long as it is defined in the regex. This syntax is made up and specific to only Regex101. If the J-flag is specified, content will be taken from the first capture group with the same name.")}),keywords:["recall","group","named","invoke","request","called","regex101","backref","backreference"],flavors:[N().PYTHON]},{token:"\\0",desc:(0,o.Z)("Complete match contents"),info:(0,A.jsx)("div",{children:(0,o.Z)("This will return a string with the complete match result from the regex.")}),keywords:["full","match","all","found","characters","strings","backref","backreference"],flavors:[N().PCRE,N().GOLANG]},{token:"$0",desc:(0,o.Z)("Complete match contents"),info:(0,A.jsx)("div",{children:(0,o.Z)("This will return a string with the complete match result from the regex.")}),keywords:["full","match","all","found","characters","strings","backref","backreference"],flavors:[N().PCRE2,N().JAVA,N().RUST]},{token:"\\1",desc:(0,o.Z)("Contents in capture group 1"),info:(0,A.jsx)("div",{children:(0,o.Z)("This will return a string with the contents from the first capture group. The number, in this case 1, can be any number as long as it corresponds to a valid capture group.")}),keywords:["group","capture","first","one","many","particular","backref","backreference"],flavors:[N().PCRE,N().GOLANG]},{token:"$1",desc:(0,o.Z)("Contents in capture group 1"),info:(0,A.jsx)("div",{children:(0,o.Z)("This will return a string with the contents from the first capture group. The number, in this case 1, can be any number as long as it corresponds to a valid capture group.")}),keywords:["group","capture","first","one","many","particular","backref","backreference"],flavors:[N().JAVASCRIPT,N().PCRE,N().PCRE2,N().GOLANG,N().JAVA,N().RUST]},{token:"$$",desc:"Insert a dollar sign",info:(0,A.jsx)("div",{children:(0,o.Z)("Inserts a dollar sign")}),keywords:["dollar","sign"],flavors:[N().PCRE2,N().JAVASCRIPT,N().DOTNET,N().RUST]},{token:"$`",desc:(0,o.Z)("Contents before match"),info:(0,A.jsx)("div",{children:(0,o.Z)("This will return a portion of the source string that precedes the match.")}),keywords:["before","leading","up","to","ahead"],flavors:[N().JAVASCRIPT,N().DOTNET]},{token:"$'",desc:(0,o.Z)("Contents after match"),info:(0,A.jsx)("div",{children:(0,o.Z)("This will return a portion of the source string that follows the match.")}),keywords:["after","following","past","behind"],flavors:[N().JAVASCRIPT,N().DOTNET]},{token:"$&",desc:(0,o.Z)("Complete match contents"),info:(0,A.jsx)("div",{children:(0,o.Z)("This will return a string with the complete match result from the regex.")}),keywords:["all","total","including"],flavors:[N().JAVASCRIPT,N().DOTNET]},{token:"$+",desc:(0,o.Z)("Insert last captured group"),info:(0,A.jsx)("div",{children:(0,o.Z)("This will insert the last group that was most recently captured by the regex")}),keywords:[],flavors:[N().DOTNET]},{token:"$_",desc:(0,o.Z)("Insert entire input string"),info:(0,A.jsx)("div",{children:(0,o.Z)("This will insert the entire input string")}),keywords:[],flavors:[N().DOTNET]},{token:"${foo}",desc:(0,o.Z)("Contents in capture group `foo`"),info:(0,A.jsx)("div",{children:(0,o.Z)("This will return a string with the contents from the capture group named `foo`. Any name can be used as long as it is defined in the regex. This syntax is made up and specific to only Regex101. If the J-flag is specified, content will be taken from the first capture group with the same name.")}),keywords:["recall","group","named","invoke","request","called","regex101","backref","backreference"],flavors:[N().PCRE,N().PCRE2,N().GOLANG,N().DOTNET,N().JAVA,N().RUST]},{token:"$<foo>",desc:(0,o.Z)("Contents in capture group `foo`"),info:(0,A.jsx)("div",{children:(0,o.Z)("This will return a string with the contents from the capture group named `foo`. Any name can be used as long as it is defined in the regex. This syntax is made up and specific to only Regex101. If the J-flag is specified, content will be taken from the first capture group with the same name.")}),keywords:["recall","group","named","invoke","request","called","backref","backreference"],flavors:[N().JAVASCRIPT]},{token:"\\x20",desc:(0,o.Z)("Hexadecimal replacement values"),info:(0,A.jsx)("div",{children:(0,o.Z)("You can use hexadecimals to insert any character into the replacement string using the standard syntax.")}),keywords:["hexadecimal","value","custom","characters"],flavors:[N().PCRE,N().PCRE2,N().PYTHON,N().JAVASCRIPT,N().DOTNET,N().RUST]},{token:"\\x{06fa}",desc:(0,o.Z)("Hexadecimal replacement values"),info:(0,A.jsx)("div",{children:(0,o.Z)("You can use hexadecimals to insert any character into the replacement string using the standard syntax.")}),keywords:["hexadecimal","value","custom","characters"],flavors:[N().PCRE,N().PCRE2,N().PYTHON,N().JAVASCRIPT,N().GOLANG]},{token:"\\u06fa",desc:(0,o.Z)("Hexadecimal replacement values"),info:(0,A.jsx)("div",{children:(0,o.Z)("You can use hexadecimals to insert any character into the replacement string using the standard syntax.")}),keywords:["hexadecimal","value","custom","characters","unicode"],flavors:[N().DOTNET,N().JAVASCRIPT,N().JAVA,N().GOLANG]},{token:"\\u{06fa}",desc:(0,o.Z)("Hexadecimal replacement values"),info:(0,A.jsx)("div",{children:(0,o.Z)("You can use hexadecimals to insert any character into the replacement string using the standard syntax.")}),keywords:["hexadecimal","value","custom","characters","unicode"],flavors:[N().RUST]},{token:"\\t",desc:(0,o.Z)("Insert a tab"),info:(0,A.jsx)("div",{children:(0,o.Z)("Insert a tab character.")}),keywords:["spaces","four","tab","empty"],flavors:[N().PCRE,N().PCRE2,N().PYTHON,N().JAVASCRIPT,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\r",desc:(0,o.Z)("Insert a carriage return"),info:(0,A.jsx)("div",{children:(0,o.Z)("Insert a carriage return character.")}),keywords:["enter","newline","new","skip","line"],flavors:[N().PCRE,N().PCRE2,N().PYTHON,N().JAVASCRIPT,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\n",desc:(0,o.Z)("Insert a newline"),info:(0,A.jsx)("div",{children:(0,o.Z)("Insert a newline character.")}),keywords:["enter","return","newline","new","skip","line"],flavors:[N().PCRE,N().PCRE2,N().PYTHON,N().JAVASCRIPT,N().GOLANG,N().JAVA,N().DOTNET,N().RUST]},{token:"\\f",desc:(0,o.Z)("Insert a form-feed"),info:(0,A.jsx)("div",{children:(0,o.Z)("Insert a form-feed character.")}),keywords:["form","feed","new","skip","page"],flavors:[N().PCRE,N().PCRE2,N().PYTHON,N().JAVASCRIPT,N().GOLANG,N().JAVA,N().DOTNET]},{token:"\\U",desc:(0,o.Z)("Uppercase Transformation"),info:(0,A.jsx)(x.vV,{tag:"p",text:"Transforms text to uppercase until either the end of string or a {1} token is encountered. This is a feature only available on regex101.com.",ph1:Z("\\E")}),keywords:["transform","uppercase","upper","case"],flavors:[N().PCRE,N().PCRE2]},{token:"\\L",desc:(0,o.Z)("Lowercase Transformation"),info:(0,A.jsx)(x.vV,{tag:"p",text:"Transforms text to lowercase until either end of string or a {1} token is encountered. This is a feature only available on regex101.com.",ph1:Z("\\E")}),keywords:["transform","lowercase","lower","case"],flavors:[N().PCRE,N().PCRE2]},{token:"\\E",desc:(0,o.Z)("Terminate any Transformation"),info:(0,A.jsx)(x.vV,{tag:"p",text:"Terminates any of the previous {1} (uppercase) or {2} (lowercase) transformations. This is a feature only available on regex101.com.",ph1:Z("\\U"),ph2:Z("\\L")}),keywords:["transform","terminate"],flavors:[N().PCRE,N().PCRE2]},{token:"\\a",desc:(0,o.Z)("Insert a bell"),info:(0,A.jsx)("div",{children:(0,o.Z)("Insert a bell character.")}),keywords:["bell"],flavors:[N().DOTNET]},{token:"\\0",desc:(0,o.Z)("Insert a null"),info:(0,A.jsx)("div",{children:(0,o.Z)("Insert a null character.")}),keywords:["null","binary","zero"],flavors:[N().DOTNET,N().RUST]},{token:"\\b",desc:(0,o.Z)("Insert a backspace"),info:(0,A.jsx)("div",{children:(0,o.Z)("Insert a backspace character.")}),keywords:["backspace"],flavors:[N().DOTNET]},{token:"\\v",desc:(0,o.Z)("Insert a vertical tab"),info:(0,A.jsx)("div",{children:(0,o.Z)("Insert a vertical tab character.")}),keywords:["vertical","tab"],flavors:[N().DOTNET]},{token:"${1:+foo:bar}",desc:(0,o.Z)("Conditional replacement"),info:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("p",{children:(0,o.Z)("Given a regular expression that has capture groups, you may refer to them (by number or name) and perform a conditional replacement.")}),(0,A.jsx)("p",{children:(0,o.Z)("If the referenced subpattern did match, the first text will be inserted, otherwise the second.")}),(0,A.jsx)("p",{children:(0,o.Z)("The conditionals may be nested to create further logic.")})]}),keywords:["conditional","capture","group","if","if this then","if then"],flavors:[N().PCRE2]},{token:'\\"',desc:(0,o.Z)("Insert the escaped literal"),info:(0,A.jsx)("div",{children:(0,o.Z)("Insert the escaped literal. Mainly useful if you're tring to insert a character that cannot be typed literally.")}),keywords:["escaped","literal","character"],flavors:[N().PCRE2,N().PCRE,N().PYTHON,N().JAVASCRIPT,N().JAVASCRIPT,N().DOTNET,N().RUST]}],l=[...e,...a,...s,...n,...t,...r,...i,...c],d=l.filter((e=>e.basic));return{[m]:l,[g]:d,[u]:e,[y]:a,[v]:s,[b]:n,[j]:t,[f]:r,[R]:i,[k]:c}})()),[]),se=(0,t.useMemo)((()=>{const a=[{string:""!==D?(0,o.Z)("Full Search Result"):(0,o.Z)("All Tokens"),id:m,icon:""!==D?i.Qcu:c.CAn},{string:(0,o.Z)("Common Tokens"),id:g,icon:i.fi0},{string:(0,o.Z)("General Tokens"),id:u,icon:i.XBp},{string:(0,o.Z)("Anchors"),id:f,icon:i.lSs},{string:(0,o.Z)("Meta Sequences"),id:v,icon:i._gw},{string:(0,o.Z)("Quantifiers"),id:j,icon:i.a4s},{string:(0,o.Z)("Group Constructs"),id:b,icon:i.GH5},{string:(0,o.Z)("Character Classes"),id:y,icon:i.Ztq},{string:(0,o.Z)("Flags/Modifiers"),id:R,icon:i.msm},{string:(0,o.Z)("Substitution"),id:k,icon:i.EgU}];return""!==D?a.filter((a=>$(ae[a.id],D,e).length>0)):a}),[D,e,ae]);(0,t.useEffect)((()=>{M(!1),X(null)}),[e]);const ne=se.find((e=>e.id===w))?w:m,te=ae[ne];return(0,A.jsxs)("div",{className:"yHczy",children:[(0,A.jsxs)("div",{className:"K3I6m",children:[(0,A.jsxs)("label",{className:"QnmOe",children:[(0,A.jsx)("span",{className:"zVWQk",children:(0,o.Z)("Search reference")}),(0,A.jsx)(x.oi,{type:"text",placeholder:(0,o.Z)("Search reference"),onChange:ee,clearButton:!0,spellCheck:"false"})]}),(0,A.jsx)(d.Z,{children:se.map((e=>{const a=e.id,s=e.string,n=e.icon;return(0,A.jsx)(h.Z,{isActive:a===ne,icon:n,onClick:()=>W(a),children:s},`quickref-category-${a}`)}))})]}),(0,A.jsx)("div",{className:"Y8ney"}),(0,A.jsx)(d.Z,{className:"y8wXX",children:$(te,D,e).map(((e,a)=>(0,A.jsx)(p.Z,{onClick:()=>_(e),rightElement:e.token,children:e.desc},`quickref-category-entry-${a}`)))}),null!=B&&(0,A.jsx)(K,{isOpen:G,onDetailsClose:Q,item:B,target:document.getElementById("quickrefParent")})]})}}}]);
+2-0public/static/vendors-bundle.5f028802ce325a9745fb.js
@@ -0,0 +1,2 @@
1+/*! For license information please see vendors-bundle.5f028802ce325a9745fb.js.LICENSE.txt */
2+(("undefined"!=typeof self?self:this).webpackChunkregex101=("undefined"!=typeof self?self:this).webpackChunkregex101||[]).push([[598],{50400:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(62556),i=n(138),o=n(62057),s=n(67977);function a(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),l=1,u=1;t&&(0,r.Re)(e)&&(l=e.offsetWidth>0&&(0,i.NM)(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&(0,i.NM)(a.height)/e.offsetHeight||1);var c=((0,r.kK)(e)?(0,o.Z)(e):window).visualViewport,h=!(0,s.Z)()&&n,f=(a.left+(h&&c?c.offsetLeft:0))/l,d=(a.top+(h&&c?c.offsetTop:0))/u,p=a.width/l,g=a.height/u;return{width:p,height:g,top:d,right:f+p,bottom:d+g,left:f,x:f,y:d}}},43062:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(62057);function i(e){return(0,r.Z)(e).getComputedStyle(e)}},67252:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(62556);function i(e){return(((0,r.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},40583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(50400);function i(e){var t=(0,r.Z)(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}},96333:(e,t,n)=>{"use strict";function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:()=>r})},93779:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(62057),i=n(96333),o=n(43062),s=n(62556);function a(e){return["table","td","th"].indexOf((0,i.Z)(e))>=0}var l=n(95923),u=n(85918);function c(e){return(0,s.Re)(e)&&"fixed"!==(0,o.Z)(e).position?e.offsetParent:null}function h(e){for(var t=(0,r.Z)(e),n=c(e);n&&a(n)&&"static"===(0,o.Z)(n).position;)n=c(n);return n&&("html"===(0,i.Z)(n)||"body"===(0,i.Z)(n)&&"static"===(0,o.Z)(n).position)?t:n||function(e){var t=/firefox/i.test((0,u.Z)());if(/Trident/i.test((0,u.Z)())&&(0,s.Re)(e)&&"fixed"===(0,o.Z)(e).position)return null;var n=(0,l.Z)(e);for((0,s.Zq)(n)&&(n=n.host);(0,s.Re)(n)&&["html","body"].indexOf((0,i.Z)(n))<0;){var r=(0,o.Z)(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}},95923:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(96333),i=n(67252),o=n(62556);function s(e){return"html"===(0,r.Z)(e)?e:e.assignedSlot||e.parentNode||((0,o.Zq)(e)?e.host:null)||(0,i.Z)(e)}},62057:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:()=>r})},82163:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(62057);function i(e){var t=(0,r.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},4063:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(50400),i=n(67252),o=n(82163);function s(e){return(0,r.Z)((0,i.Z)(e)).left+(0,o.Z)(e).scrollLeft}},62556:(e,t,n)=>{"use strict";n.d(t,{Re:()=>o,Zq:()=>s,kK:()=>i});var r=n(62057);function i(e){return e instanceof(0,r.Z)(e).Element||e instanceof Element}function o(e){return e instanceof(0,r.Z)(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,r.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},67977:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(85918);function i(){return!/^((?!chrome|android).)*safari/i.test((0,r.Z)())}},60611:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(43062);function i(e){var t=(0,r.Z)(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}},63624:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(95923),i=n(60611),o=n(96333),s=n(62556);function a(e){return["html","body","#document"].indexOf((0,o.Z)(e))>=0?e.ownerDocument.body:(0,s.Re)(e)&&(0,i.Z)(e)?e:a((0,r.Z)(e))}var l=n(62057);function u(e,t){var n;void 0===t&&(t=[]);var o=a(e),s=o===(null==(n=e.ownerDocument)?void 0:n.body),c=(0,l.Z)(o),h=s?[c].concat(c.visualViewport||[],(0,i.Z)(o)?o:[]):o,f=t.concat(h);return s?f:f.concat(u((0,r.Z)(h)))}},87701:(e,t,n)=>{"use strict";n.d(t,{BL:()=>l,F2:()=>o,I:()=>i,Pj:()=>h,YP:()=>d,k5:()=>f,mv:()=>a,t$:()=>s,ut:()=>u,we:()=>r,xs:()=>p,zV:()=>c});var r="top",i="bottom",o="right",s="left",a=[r,i,o,s],l="start",u="end",c="clippingParents",h="viewport",f="popper",d="reference",p=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},25913:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(87701),i=n(6206),o=n(11516),s=n(138);function a(e,t,n){return(0,s.Fp)(e,(0,s.VV)(t,n))}var l=n(40583),u=n(93779),c=n(65897),h=n(14943),f=n(23607);const d={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,d=e.name,p=n.mainAxis,g=void 0===p||p,m=n.altAxis,v=void 0!==m&&m,y=n.boundary,b=n.rootBoundary,w=n.altBoundary,x=n.padding,S=n.tether,k=void 0===S||S,C=n.tetherOffset,E=void 0===C?0:C,M=(0,c.Z)(t,{boundary:y,rootBoundary:b,padding:x,altBoundary:w}),O=(0,i.Z)(t.placement),A=(0,h.Z)(t.placement),T=!A,D=(0,o.Z)(O),N="x"===D?"y":"x",P=t.modifiersData.popperOffsets,L=t.rects.reference,z=t.rects.popper,R="function"==typeof E?E(Object.assign({},t.rects,{placement:t.placement})):E,_="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(P){if(g){var I,V="y"===D?r.we:r.t$,j="y"===D?r.I:r.F2,F="y"===D?"height":"width",$=P[D],W=$+M[V],U=$-M[j],Z=k?-z[F]/2:0,q=A===r.BL?L[F]:z[F],K=A===r.BL?-z[F]:-L[F],G=t.elements.arrow,Q=k&&G?(0,l.Z)(G):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,f.Z)(),J=Y[V],X=Y[j],ee=a(0,L[F],Q[F]),te=T?L[F]/2-Z-ee-J-_.mainAxis:q-ee-J-_.mainAxis,ne=T?-L[F]/2+Z+ee+X+_.mainAxis:K+ee+X+_.mainAxis,re=t.elements.arrow&&(0,u.Z)(t.elements.arrow),ie=re?"y"===D?re.clientTop||0:re.clientLeft||0:0,oe=null!=(I=null==B?void 0:B[D])?I:0,se=$+te-oe-ie,ae=$+ne-oe,le=a(k?(0,s.VV)(W,se):W,$,k?(0,s.Fp)(U,ae):U);P[D]=le,H[D]=le-$}if(v){var ue,ce="x"===D?r.we:r.t$,he="x"===D?r.I:r.F2,fe=P[N],de="y"===N?"height":"width",pe=fe+M[ce],ge=fe-M[he],me=-1!==[r.we,r.t$].indexOf(O),ve=null!=(ue=null==B?void 0:B[N])?ue:0,ye=me?pe:fe-L[de]-z[de]-ve+_.altAxis,be=me?fe+L[de]+z[de]-ve-_.altAxis:ge,we=k&&me?function(e,t,n){var r=a(e,t,n);return r>n?n:r}(ye,fe,be):a(k?ye:pe,fe,k?be:ge);P[N]=we,H[N]=we-fe}t.modifiersData[d]=H}},requiresIfExists:["offset"]}},37731:(e,t,n)=>{"use strict";n.d(t,{fi:()=>D});var r=n(50400),i=n(82163),o=n(62057),s=n(62556),a=n(96333),l=n(4063),u=n(67252),c=n(60611),h=n(138);function f(e,t,n){void 0===n&&(n=!1);var f,d,p=(0,s.Re)(t),g=(0,s.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,h.NM)(t.width)/e.offsetWidth||1,r=(0,h.NM)(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),m=(0,u.Z)(t),v=(0,r.Z)(e,g,n),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(p||!p&&!n)&&(("body"!==(0,a.Z)(t)||(0,c.Z)(m))&&(y=(f=t)!==(0,o.Z)(f)&&(0,s.Re)(f)?{scrollLeft:(d=f).scrollLeft,scrollTop:d.scrollTop}:(0,i.Z)(f)),(0,s.Re)(t)?((b=(0,r.Z)(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):m&&(b.x=(0,l.Z)(m))),{x:v.left+y.scrollLeft-b.x,y:v.top+y.scrollTop-b.y,width:v.width,height:v.height}}var d=n(40583),p=n(63624),g=n(93779),m=n(87701);function v(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var y={placement:"bottom",modifiers:[],strategy:"absolute"};function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function w(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?y:i;return function(e,t,n){void 0===n&&(n=o);var i,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},y,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,h={state:l,setOptions:function(n){var i="function"==typeof n?n(l.options):n;w(),l.options=Object.assign({},o,l.options,i),l.scrollParents={reference:(0,s.kK)(e)?(0,p.Z)(e):e.contextElement?(0,p.Z)(e.contextElement):[],popper:(0,p.Z)(t)};var a,c,f=function(e){var t=v(e);return m.xs.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,l.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:l,name:t,instance:h,options:r});u.push(o||function(){})}})),h.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(b(t,n)){l.rects={reference:f(t,(0,g.Z)(n),"fixed"===l.options.strategy),popper:(0,d.Z)(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var i=l.orderedModifiers[r],o=i.fn,s=i.options,a=void 0===s?{}:s,u=i.name;"function"==typeof o&&(l=o({state:l,options:a,name:u,instance:h})||l)}else l.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){h.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){w(),c=!0}};if(!b(e,t))return h;function w(){u.forEach((function(e){return e()})),u=[]}return h.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),h}}var x={passive:!0};const S={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=void 0===i||i,a=r.resize,l=void 0===a||a,u=(0,o.Z)(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach((function(e){e.addEventListener("scroll",n.update,x)})),l&&u.addEventListener("resize",n.update,x),function(){s&&c.forEach((function(e){e.removeEventListener("scroll",n.update,x)})),l&&u.removeEventListener("resize",n.update,x)}},data:{}};var k=n(72581);const C={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,k.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var E=n(43062),M=n(6206),O=n(14943),A={top:"auto",right:"auto",bottom:"auto",left:"auto"};function T(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,p=e.isFixed,v=a.x,y=void 0===v?0:v,b=a.y,w=void 0===b?0:b,x="function"==typeof d?d({x:y,y:w}):{x:y,y:w};y=x.x,w=x.y;var S=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),C=m.t$,M=m.we,O=window;if(f){var T=(0,g.Z)(n),D="clientHeight",N="clientWidth";T===(0,o.Z)(n)&&(T=(0,u.Z)(n),"static"!==(0,E.Z)(T).position&&"absolute"===l&&(D="scrollHeight",N="scrollWidth")),(i===m.we||(i===m.t$||i===m.F2)&&s===m.ut)&&(M=m.I,w-=(p&&T===O&&O.visualViewport?O.visualViewport.height:T[D])-r.height,w*=c?1:-1),i!==m.t$&&(i!==m.we&&i!==m.I||s!==m.ut)||(C=m.F2,y-=(p&&T===O&&O.visualViewport?O.visualViewport.width:T[N])-r.width,y*=c?1:-1)}var P,L=Object.assign({position:l},f&&A),z=!0===d?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:(0,h.NM)(n*i)/i||0,y:(0,h.NM)(r*i)/i||0}}({x:y,y:w},(0,o.Z)(n)):{x:y,y:w};return y=z.x,w=z.y,c?Object.assign({},L,((P={})[M]=k?"0":"",P[C]=S?"0":"",P.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",P)):Object.assign({},L,((t={})[M]=k?w+"px":"",t[C]=S?y+"px":"",t.transform="",t))}var D=w({defaultModifiers:[S,C,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,u={placement:(0,M.Z)(t.placement),variation:(0,O.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,T(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,T(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];(0,s.Re)(i)&&(0,a.Z)(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,s.Re)(r)&&(0,a.Z)(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]}]})},72581:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6206),i=n(14943),o=n(11516),s=n(87701);function a(e){var t,n=e.reference,a=e.element,l=e.placement,u=l?(0,r.Z)(l):null,c=l?(0,i.Z)(l):null,h=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2;switch(u){case s.we:t={x:h,y:n.y-a.height};break;case s.I:t={x:h,y:n.y+n.height};break;case s.F2:t={x:n.x+n.width,y:f};break;case s.t$:t={x:n.x-a.width,y:f};break;default:t={x:n.x,y:n.y}}var d=u?(0,o.Z)(u):null;if(null!=d){var p="y"===d?"height":"width";switch(c){case s.BL:t[d]=t[d]-(n[p]/2-a[p]/2);break;case s.ut:t[d]=t[d]+(n[p]/2-a[p]/2)}}return t}},65897:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(87701),i=n(62057),o=n(67252),s=n(4063),a=n(67977),l=n(43062),u=n(82163),c=n(138),h=n(63624),f=n(93779),d=n(62556),p=n(50400),g=n(95923),m=n(96333);function v(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function y(e,t,n){return t===r.Pj?v(function(e,t){var n=(0,i.Z)(e),r=(0,o.Z)(e),l=n.visualViewport,u=r.clientWidth,c=r.clientHeight,h=0,f=0;if(l){u=l.width,c=l.height;var d=(0,a.Z)();(d||!d&&"fixed"===t)&&(h=l.offsetLeft,f=l.offsetTop)}return{width:u,height:c,x:h+(0,s.Z)(e),y:f}}(e,n)):(0,d.kK)(t)?function(e,t){var n=(0,p.Z)(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):v(function(e){var t,n=(0,o.Z)(e),r=(0,u.Z)(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=(0,c.Fp)(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),h=(0,c.Fp)(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),f=-r.scrollLeft+(0,s.Z)(e),d=-r.scrollTop;return"rtl"===(0,l.Z)(i||n).direction&&(f+=(0,c.Fp)(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:h,x:f,y:d}}((0,o.Z)(e)))}var b=n(72581),w=n(23607);function x(e,t){void 0===t&&(t={});var n,i=t,s=i.placement,a=void 0===s?e.placement:s,u=i.strategy,x=void 0===u?e.strategy:u,S=i.boundary,k=void 0===S?r.zV:S,C=i.rootBoundary,E=void 0===C?r.Pj:C,M=i.elementContext,O=void 0===M?r.k5:M,A=i.altBoundary,T=void 0!==A&&A,D=i.padding,N=void 0===D?0:D,P=function(e){return Object.assign({},(0,w.Z)(),e)}("number"!=typeof N?N:(n=N,r.mv.reduce((function(e,t){return e[t]=n,e}),{}))),L=O===r.k5?r.YP:r.k5,z=e.rects.popper,R=e.elements[T?L:O],_=function(e,t,n,r){var i="clippingParents"===t?function(e){var t=(0,h.Z)((0,g.Z)(e)),n=["absolute","fixed"].indexOf((0,l.Z)(e).position)>=0&&(0,d.Re)(e)?(0,f.Z)(e):e;return(0,d.kK)(n)?t.filter((function(e){return(0,d.kK)(e)&&function(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,d.Zq)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}(e,n)&&"body"!==(0,m.Z)(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce((function(t,n){var i=y(e,n,r);return t.top=(0,c.Fp)(i.top,t.top),t.right=(0,c.VV)(i.right,t.right),t.bottom=(0,c.VV)(i.bottom,t.bottom),t.left=(0,c.Fp)(i.left,t.left),t}),y(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}((0,d.kK)(R)?R:R.contextElement||(0,o.Z)(e.elements.popper),k,E,x),B=(0,p.Z)(e.elements.reference),H=(0,b.Z)({reference:B,element:z,strategy:"absolute",placement:a}),I=v(Object.assign({},z,H)),V=O===r.k5?I:B,j={top:_.top-V.top+P.top,bottom:V.bottom-_.bottom+P.bottom,left:_.left-V.left+P.left,right:V.right-_.right+P.right},F=e.modifiersData.offset;if(O===r.k5&&F){var $=F[a];Object.keys(j).forEach((function(e){var t=[r.F2,r.I].indexOf(e)>=0?1:-1,n=[r.we,r.I].indexOf(e)>=0?"y":"x";j[e]+=$[n]*t}))}return j}},6206:(e,t,n)=>{"use strict";function r(e){return e.split("-")[0]}n.d(t,{Z:()=>r})},23607:(e,t,n)=>{"use strict";function r(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{Z:()=>r})},11516:(e,t,n)=>{"use strict";function r(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{Z:()=>r})},14943:(e,t,n)=>{"use strict";function r(e){return e.split("-")[1]}n.d(t,{Z:()=>r})},138:(e,t,n)=>{"use strict";n.d(t,{Fp:()=>r,NM:()=>o,VV:()=>i});var r=Math.max,i=Math.min,o=Math.round},85918:(e,t,n)=>{"use strict";function r(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}n.d(t,{Z:()=>r})},12599:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var i;n.d(t,{Ep:()=>h,J0:()=>a,LX:()=>M,RQ:()=>L,WK:()=>H,Zn:()=>A,Zq:()=>N,aU:()=>i,cP:()=>f,fp:()=>p,i3:()=>T,lX:()=>s,pC:()=>P}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));const o="popstate";function s(e){return void 0===e&&(e={}),function(e,t,n,s){void 0===s&&(s={});let{window:l=document.defaultView,v5Compat:f=!1}=s,d=l.history,p=i.Pop,g=null,m=v();function v(){return(d.state||{idx:null}).idx}function y(){p=i.Pop;let e=v(),t=null==e?null:e-m;m=e,g&&g({action:p,location:w.location,delta:t})}function b(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"==typeof e?e:h(e);return a(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==m&&(m=0,d.replaceState(r({},d.state,{idx:m}),""));let w={get action(){return p},get location(){return function(e,t){let{pathname:n,search:r,hash:i}=e.location;return c("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}(l,d)},listen(e){if(g)throw new Error("A history only accepts one active listener");return l.addEventListener(o,y),g=e,()=>{l.removeEventListener(o,y),g=null}},createHref:e=>function(e,t){return"string"==typeof t?t:h(t)}(0,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=i.Push;let n=c(w.location,e,t);m=v()+1;let r=u(n,m),o=w.createHref(n);try{d.pushState(r,"",o)}catch(e){l.location.assign(o)}f&&g&&g({action:p,location:w.location,delta:1})},replace:function(e,t){p=i.Replace;let n=c(w.location,e,t);m=v();let r=u(n,m),o=w.createHref(n);d.replaceState(r,"",o),f&&g&&g({action:p,location:w.location,delta:0})},go:e=>d.go(e)};return w}(0,0,0,e)}function a(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,n,i){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?f(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function f(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var d;function p(e,t,n){void 0===n&&(n="/");let r=A(("string"==typeof t?f(t):t).pathname||"/",n);if(null==r)return null;let i=g(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let e=0;null==o&&e<i.length;++e)o=E(i[e],O(r));return o}function g(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,o)=>{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(a(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let l=L([r,s.relativePath]),u=n.concat(s);e.children&&e.children.length>0&&(a(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),g(e.children,t,u,l)),(null!=e.path||e.index)&&t.push({path:l,score:C(l,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of m(e.path))i(e,t,n);else i(e,t)})),t}function m(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let s=m(r.join("/")),a=[];return a.push(...s.map((e=>""===e?o:[o,e].join("/")))),i&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(d||(d={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const v=/^:\w+$/,y=3,b=2,w=1,x=10,S=-2,k=e=>"*"===e;function C(e,t){let n=e.split("/"),r=n.length;return n.some(k)&&(r+=S),t&&(r+=b),n.filter((e=>!k(e))).reduce(((e,t)=>e+(v.test(t)?y:""===t?w:x)),r)}function E(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let e=0;e<n.length;++e){let s=n[e],a=e===n.length-1,l="/"===i?t:t.slice(i.length)||"/",u=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:a},l);if(!u)return null;Object.assign(r,u.params);let c=s.route;o.push({params:r,pathname:L([i,u.pathname]),pathnameBase:z(L([i,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(i=L([i,u.pathnameBase]))}return o}function M(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((e,t)=>(r.push(t),"/([^\\/]+)")));return e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=a[n]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return l(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(a[n]||"",t),e}),{}),pathname:o,pathnameBase:s,pattern:e}}function O(e){try{return decodeURI(e)}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function A(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function T(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof e?f(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:R(r),hash:_(i)}}function D(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function N(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function P(e,t,n,i){let o;void 0===i&&(i=!1),"string"==typeof e?o=f(e):(o=r({},e),a(!o.pathname||!o.pathname.includes("?"),D("?","pathname","search",o)),a(!o.pathname||!o.pathname.includes("#"),D("#","pathname","hash",o)),a(!o.search||!o.search.includes("#"),D("#","search","hash",o)));let s,l=""===e||""===o.pathname,u=l?"/":o.pathname;if(i||null==u)s=n;else{let e=t.length-1;if(u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}s=e>=0?t[e]:"/"}let c=T(o,s),h=u&&"/"!==u&&u.endsWith("/"),d=(l||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!h&&!d||(c.pathname+="/"),c}const L=e=>e.join("/").replace(/\/\/+/g,"/"),z=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),R=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",_=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class B extends Error{}function H(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const I=["post","put","patch","delete"],V=(new Set(I),["get",...I]);new Set(V),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,Symbol("deferred")},31807:e=>{var t=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=t},94184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},42152:function(e){var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return w}});var r=n(279),i=n.n(r),o=n(370),s=n.n(o),a=n(817),l=n.n(a);function u(e){try{return document.execCommand(e)}catch(e){return!1}}var c=function(e){var t=l()(e);return u("cut"),t},h=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=l()(n);return u("copy"),n.remove(),r},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=h(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=h(e.value,t):(n=l()(e),u("copy")),n};function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(l,e);var t,n,r,i,o,a=(i=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(i);if(o){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,e)});function l(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(n=a.call(this)).resolveOptions(t),n.listenClick(e),n}return t=l,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===p(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=s()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,o=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==d(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?f(o,{container:r}):i?"cut"===n?c(i):f(i,{container:r}):void 0}({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(e,t)}},{key:"cut",value:function(e){return c(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&g(t.prototype,n),r&&g(t,r),l}(i()),w=b},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function i(e,t,n,r,i){var s=o.apply(this,arguments);return e.addEventListener(n,s,i),{destroy:function(){e.removeEventListener(n,s,i)}}}function o(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,o)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),i=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,s=r.length;o<s;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()},27484:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",s="day",a="week",l="month",u="quarter",c="year",h="date",f="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),o=n-i<0,s=t.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:a,d:s,D:h,h:o,m:i,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=g;var w=function(e){return e instanceof C},x=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();b[o]&&(i=o),n&&(b[o]=n,i=o);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var a=t.name;b[a]=t,i=a}return!r&&i&&(y=i),i||!r&&y},S=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=v;k.l=x,k.i=w,k.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function g(e){this.$L=x(e.locale,null,!0),this.parse(e)}var m=g.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return k},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return S(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<S(e)},m.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,u=!!k.u(t)||t,f=k.p(e),d=function(e,t){var r=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(s)},p=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case c:return u?d(1,0):d(31,11);case l:return u?d(1,m):d(0,m+1);case a:var b=this.$locale().weekStart||0,w=(g<b?g+7:g)-b;return d(u?v-w:v+(6-w),m);case s:case h:return p(y+"Hours",0);case o:return p(y+"Minutes",1);case i:return p(y+"Seconds",2);case r:return p(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var a,u=k.p(e),f="set"+(this.$u?"UTC":""),d=(a={},a[s]=f+"Date",a[h]=f+"Date",a[l]=f+"Month",a[c]=f+"FullYear",a[o]=f+"Hours",a[i]=f+"Minutes",a[r]=f+"Seconds",a[n]=f+"Milliseconds",a)[u],p=u===s?this.$D+(t-this.$W):t;if(u===l||u===c){var g=this.clone().set(h,1);g.$d[d](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[k.p(e)]()},m.add=function(n,u){var h,f=this;n=Number(n);var d=k.p(u),p=function(e){var t=S(f);return k.w(t.date(t.date()+Math.round(e*n)),f)};if(d===l)return this.set(l,this.$M+n);if(d===c)return this.set(c,this.$y+n);if(d===s)return p(1);if(d===a)return p(7);var g=(h={},h[i]=e,h[o]=t,h[r]=1e3,h)[d]||1,m=this.$d.getTime()+n*g;return k.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),o=this.$H,s=this.$m,a=this.$M,l=n.weekdays,u=n.months,c=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},h=function(e){return k.s(o%12||12,e,"0")},d=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},g={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:k.s(a+1,2,"0"),MMM:c(n.monthsShort,a,u,3),MMMM:c(u,a),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,l,2),ddd:c(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:k.s(o,2,"0"),h:h(1),hh:h(2),a:d(o,s,!0),A:d(o,s,!1),m:String(s),mm:k.s(s,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:i};return r.replace(p,(function(e,t){return t||g[e]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,h,f){var d,p=k.p(h),g=S(n),m=(g.utcOffset()-this.utcOffset())*e,v=this-g,y=k.m(this,g);return y=(d={},d[c]=y/12,d[l]=y,d[u]=y/3,d[a]=(v-m)/6048e5,d[s]=(v-m)/864e5,d[o]=v/t,d[i]=v/e,d[r]=v/1e3,d)[p]||v,f?y:k.a(y)},m.daysInMonth=function(){return this.endOf(l).$D},m.$locale=function(){return b[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return k.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),E=C.prototype;return S.prototype=E,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",s],["$M",l],["$y",c],["$D",h]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,C,S),e.$i=!0),S},S.locale=x,S.isDayjs=w,S.unix=function(e){return S(1e3*e)},S.en=b[y],S.Ls=b,S.p={},S}()},84110:function(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var r=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,o,s,a){for(var l,u,c,h=o.$locale().relativeTime||i,f=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=f.length,p=0;p<d;p+=1){var g=f[p];g.d&&(l=s?n(t).diff(o,g.d,!0):o.diff(t,g.d,!0));var m=(e.rounding||Math.round)(Math.abs(l));if(c=l>0,m<=g.r||!g.r){m<=1&&p>0&&(g=f[p-1]);var v=h[g.l];a&&(m=a(""+m)),u="string"==typeof v?v.replace("%d",m):v(m,r,g.l,c);break}}if(r)return u;var y=c?h.future:h.past;return"function"==typeof y?y(u):y.replace("%s",u)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var s=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(s(this),e)},r.fromNow=function(e){return this.from(s(this),e)}}}()},70178:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var s=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},s.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var l=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=s.utcOffset;s.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],s=60*+i[1]+ +i[2];return 0===s?0:"+"===o?s:-s}(r),null===r))return this;var s=Math.abs(r)<=16?60*r:r,a=this;if(i)return a.$offset=s,a.$u=0===r,a;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+l,e)).$offset=s,a.$x.$localOffset=l}else a=this.utc();return a};var c=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var h=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var f=s.diff;s.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=o(e).local();return f.call(r,i,t,n)}}}()},14144:function(e,t){var n,r;n=function(e,t){"use strict";function n(e){try{delete window[e]}catch(t){window[e]=void 0}}function r(e){var t=document.getElementById(e);t&&document.getElementsByTagName("head")[0].removeChild(t)}t.exports=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=e,o=t.timeout||5e3,s=t.jsonpCallback||"callback",a=void 0;return new Promise((function(l,u){var c=t.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),h=s+"_"+c;window[c]=function(e){l({ok:!0,json:function(){return Promise.resolve(e)}}),a&&clearTimeout(a),r(h),n(c)},i+=-1===i.indexOf("?")?"?":"&";var f=document.createElement("script");f.setAttribute("src",""+i+s+"="+c),t.charset&&f.setAttribute("charset",t.charset),t.nonce&&f.setAttribute("nonce",t.nonce),t.referrerPolicy&&f.setAttribute("referrerPolicy",t.referrerPolicy),f.id=h,document.getElementsByTagName("head")[0].appendChild(f),a=setTimeout((function(){u(new Error("JSONP request to "+e+" timed out")),n(c),r(h),window[c]=function(){n(c)}}),o),f.onerror=function(){u(new Error("JSONP request to "+e+" failed")),n(c),r(h),a&&clearTimeout(a)}}))}},void 0===(r=n.apply(t,[t,e]))||(e.exports=r)},44291:(e,t,n)=>{"use strict";n.d(t,{v:()=>z});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],i=r.join(","),o="undefined"==typeof Element,s=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var i=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},u=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&s.call(e,i)&&r.unshift(e),r.filter(n)},c=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var u=a.shift();if(!l(u,!1))if("SLOT"===u.tagName){var c=u.assignedElements(),h=e(c.length?c:u.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:u,candidates:h})}else{s.call(u,i)&&r.filter(u)&&(n||!t.includes(u))&&o.push(u);var f=u.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(u),d=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(f&&d){var p=e(!0===f?u.children:f.children,!0,r);r.flatten?o.push.apply(o,p):o.push({scopeParent:u,candidates:p})}else a.unshift.apply(a,u.children)}}return o},h=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},f=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},d=function(e){return"INPUT"===e.tagName},p=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},g=function(e,t){return!(t.disabled||l(t)||function(e){return d(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=s.call(e,"details>summary:first-of-type")?e.parentElement:e;if(s.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return p(e)}else{if("function"==typeof r){for(var o=e;e;){var l=e.parentElement,u=a(e);if(l&&!l.shadowRoot&&!0===r(l))return p(e);e=e.assignedSlot?e.assignedSlot:l||u===e.ownerDocument?l:u.host}e=o}if(function(e){var t,n,r,i,o=e&&a(e),s=null===(t=o)||void 0===t?void 0:t.host,l=!1;if(o&&o!==e)for(l=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!l&&s;){var u,c,h;l=!(null===(c=s=null===(u=o=a(s))||void 0===u?void 0:u.host)||void 0===c||null===(h=c.ownerDocument)||void 0===h||!h.contains(s))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!s.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},m=function(e,t){return!(function(e){return function(e){return d(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||a(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)}(t)||h(t)<0||!g(e,t))},v=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},y=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,s=o?t.scopeParent:t,a=h(s,o),l=o?e(t.candidates):s;0===a?o?n.push.apply(n,l):n.push(s):r.push({documentOrder:i,tabIndex:a,item:t,isScope:o,content:l})})),r.sort(f).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},b=function(e,t){var n;return n=(t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:m.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:v}):u(e,t.includeContainer,m.bind(null,t)),y(n)},w=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==s.call(e,i)&&m(t,e)},x=r.concat("iframe").join(","),S=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==s.call(e,x)&&g(t,e)};function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=function(e){return"Tab"===e.key||9===e.keyCode},O=function(e){return M(e)&&!e.shiftKey},A=function(e){return M(e)&&e.shiftKey},T=function(e){return setTimeout(e,0)},D=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},N=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},P=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},L=[],z=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=(null==t?void 0:t.trapStack)||L,o=C({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:O,isKeyBackward:A},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return s.containerGroups.findIndex((function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(null==n?void 0:n.includes(r))||i.find((function(t){return t===e}))}))},h=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];t=t.apply(void 0,i)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a=t;if("string"==typeof t&&!(a=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},f=function(){var e=h("initialFocus");if(!1===e)return!1;if(void 0===e||!S(e,o.tabbableOptions))if(l(r.activeElement)>=0)e=r.activeElement;else{var t=s.tabbableGroups[0];e=t&&t.firstTabbableNode||h("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(s.containerGroups=s.containers.map((function(e){var t,n,r=b(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?c([t],n.includeContainer,{filter:g.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):u(t,n.includeContainer,g.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:i,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.findIndex((function(t){return t===e}));if(!(n<0))return t?i.slice(n+1).find((function(e){return w(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return w(e,o.tabbableOptions)}))}}})),s.tabbableGroups=s.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},p=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(f()))},m=function(e){var t=h("setReturnFocus",e);return t||!1!==t&&e},v=function(e){var t=P(e);l(t,e)>=0||(N(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate}):N(o.allowOutsideClick,e)||e.preventDefault())},y=function(e){var t=P(e),n=l(t,e)>=0;n||t instanceof Document?n&&(s.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),p(s.mostRecentlyFocusedNode||f()))},x=function(e){if(("Escape"===(t=e).key||"Esc"===t.key||27===t.keyCode)&&!1!==N(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();var t;(o.isKeyForward(e)||o.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=P(e);d();var r=null;if(s.tabbableGroups.length>0){var i=l(n,e),a=i>=0?s.containerGroups[i]:void 0;if(i<0)r=t?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(t){var u=D(s.tabbableGroups,(function(e){var t=e.firstTabbableNode;return n===t}));if(u<0&&(a.container===n||S(n,o.tabbableOptions)&&!w(n,o.tabbableOptions)&&!a.nextTabbableNode(n,!1))&&(u=i),u>=0){var c=0===u?s.tabbableGroups.length-1:u-1;r=s.tabbableGroups[c].lastTabbableNode}else M(e)||(r=a.nextTabbableNode(n,!1))}else{var f=D(s.tabbableGroups,(function(e){var t=e.lastTabbableNode;return n===t}));if(f<0&&(a.container===n||S(n,o.tabbableOptions)&&!w(n,o.tabbableOptions)&&!a.nextTabbableNode(n))&&(f=i),f>=0){var g=f===s.tabbableGroups.length-1?0:f+1;r=s.tabbableGroups[g].firstTabbableNode}else M(e)||(r=a.nextTabbableNode(n))}}else r=h("fallbackFocus");r&&(M(e)&&e.preventDefault(),p(r))}(e,o.isKeyBackward(e))},k=function(e){var t=P(e);l(t,e)>=0||N(o.clickOutsideDeactivates,e)||N(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},E=function(){if(s.active)return function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)}(i,n),s.delayInitialFocusTimer=o.delayInitialFocus?T((function(){p(f())})):p(f()),r.addEventListener("focusin",y,!0),r.addEventListener("mousedown",v,{capture:!0,passive:!1}),r.addEventListener("touchstart",v,{capture:!0,passive:!1}),r.addEventListener("click",k,{capture:!0,passive:!1}),r.addEventListener("keydown",x,{capture:!0,passive:!1}),n},z=function(){if(s.active)return r.removeEventListener("focusin",y,!0),r.removeEventListener("mousedown",v,!0),r.removeEventListener("touchstart",v,!0),r.removeEventListener("click",k,!0),r.removeEventListener("keydown",x,!0),n},R="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===s.mostRecentlyFocusedNode}))}))&&p(f())})):void 0,_=function(){R&&(R.disconnect(),s.active&&!s.paused&&s.containers.map((function(e){R.observe(e,{subtree:!0,childList:!0})})))};return(n={get active(){return s.active},get paused(){return s.paused},activate:function(e){if(s.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),i=a(e,"checkCanFocusTrap");i||d(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=r.activeElement,null==t||t();var o=function(){i&&d(),E(),_(),null==n||n()};return i?(i(s.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!s.active)return this;var t=C({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,z(),s.active=!1,s.paused=!1,_(),function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}(i,n);var r=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),u=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");null==r||r();var h=function(){T((function(){c&&p(m(s.nodeFocusedBeforeActivation)),null==l||l()}))};return c&&u?(u(m(s.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(e){if(s.paused||!s.active)return this;var t=a(e,"onPause"),n=a(e,"onPostPause");return s.paused=!0,null==t||t(),z(),_(),null==n||n(),this},unpause:function(e){if(!s.paused||!s.active)return this;var t=a(e,"onUnpause"),n=a(e,"onPostUnpause");return s.paused=!1,null==t||t(),d(),E(),_(),null==n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return s.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),s.active&&d(),_(),this}}).updateContainerElements(e),n}},8679:(e,t,n)=>{"use strict";var r=n(59864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=d(n);i&&i!==p&&e(t,i,r)}var s=c(n);h&&(s=s.concat(h(n)));for(var a=l(t),g=l(n),m=0;m<s.length;++m){var v=s[m];if(!(o[v]||r&&r[v]||g&&g[v]||a&&a[v])){var y=f(n,v);try{u(t,v,y)}catch(e){}}}}return t}},91296:(e,t,n)=>{var r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),h=Object.prototype.toString,f=Math.max,d=Math.min,p=function(){return c.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==h.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=o.test(e);return n||s.test(e)?a(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,o,s,a,l,u=0,c=!1,h=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,o=i;return r=i=void 0,u=t,s=e.apply(o,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-u>=o}function w(){var e=p();if(b(e))return x(e);a=setTimeout(w,function(e){var n=t-(e-l);return h?d(n,o-(e-u)):n}(e))}function x(e){return a=void 0,v&&r?y(e):(r=i=void 0,s)}function S(){var e=p(),n=b(e);if(r=arguments,i=this,l=e,n){if(void 0===a)return function(e){return u=e,a=setTimeout(w,t),c?y(e):s}(l);if(h)return a=setTimeout(w,t),y(l)}return void 0===a&&(a=setTimeout(w,t)),s}return t=m(t)||0,g(n)&&(c=!!n.leading,o=(h="maxWait"in n)?f(m(n.maxWait)||0,t):o,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==a&&clearTimeout(a),u=0,r=l=i=a=void 0},S.flush=function(){return void 0===a?s:x(p())},S}},2043:function(e,t,n){var r,i;!function(o,s){"use strict";r=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function i(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(t,n){for(var i=0;i<r.length;i++){var o=r[i];this[o]=i<t?e:this.methodFactory(o,t,n)}this.log=this.debug}function a(e,n,r){return function(){typeof console!==t&&(s.call(this,n,r),this[e].apply(this,arguments))}}function l(r,s,l){return function(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&n?o:void 0!==console[r]?i(console,r):void 0!==console.log?i(console,"log"):e)}(r)||a.apply(this,arguments)}function u(e,n,i){var o,a=this;n=null==n?"WARN":n;var u="loglevel";function c(){var e;if(typeof window!==t&&u){try{e=window.localStorage[u]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,r=n.indexOf(encodeURIComponent(u)+"=");-1!==r&&(e=/^([^;]+)/.exec(n.slice(r))[1])}catch(e){}return void 0===a.levels[e]&&(e=void 0),e}}"string"==typeof e?u+=":"+e:"symbol"==typeof e&&(u=void 0),a.name=e,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=i||l,a.getLevel=function(){return o},a.setLevel=function(n,i){if("string"==typeof n&&void 0!==a.levels[n.toUpperCase()]&&(n=a.levels[n.toUpperCase()]),!("number"==typeof n&&n>=0&&n<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(o=n,!1!==i&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&u){try{return void(window.localStorage[u]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(u)+"="+n+";"}catch(e){}}}(n),s.call(a,n,e),typeof console===t&&n<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(e){n=e,c()||a.setLevel(e,!1)},a.resetLevel=function(){a.setLevel(n,!1),function(){if(typeof window!==t&&u){try{return void window.localStorage.removeItem(u)}catch(e){}try{window.document.cookie=encodeURIComponent(u)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},a.enableAll=function(e){a.setLevel(a.levels.TRACE,e)},a.disableAll=function(e){a.setLevel(a.levels.SILENT,e)};var h=c();null==h&&(h=n),a.setLevel(h,!1)}var c=new u,h={};c.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=h[e];return t||(t=h[e]=new u(e,c.getLevel(),c.methodFactory)),t};var f=typeof window!==t?window.log:void 0;return c.noConflict=function(){return typeof window!==t&&window.log===c&&(window.log=f),c},c.getLoggers=function(){return h},c.default=c,c},void 0===(i=r.call(t,n,t,e))||(e.exports=i)}()},42568:function(e){e.exports=function(){"use strict";var e={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},t=Array.prototype.slice;function n(e){var n=e.length;return n?1===n?[e[0]]:2===n?[e[0],e[1]]:3===n?[e[0],e[1],e[2]]:t.call(e,0):[]}function r(e,t){return e===t||e!=e&&t!=t}function i(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}var o=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:n(this.keys),size:this.size,values:n(this.values)}},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,n=t.isMatchingKey,r=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(n(i[0],e))return 0;if(r>1)for(var s=1;s<o;s++)if(n(i[s],e))return s;return-1},e.prototype._getKeyIndexForMany=function(e){var t=this.options.isEqual,n=this.keys,r=n.length;if(!r)return-1;if(1===r)return this._getKeyIndexForSingle(e);var i,o,s=e.length;if(s>1){for(var a=0;a<r;a++)if((i=n[a]).length===s){for(o=0;o<s&&t(i[o],e[o]);o++);if(o===s)return a}}else for(a=0;a<r;a++)if((i=n[a]).length===s&&t(i[0],e[0]))return a;return-1},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var n=t[0],r=n.length;if(e.length!==r)return-1;var i=this.options.isEqual;if(r>1){for(var o=0;o<r;o++)if(!i(n[o],e[o]))return-1;return 0}return i(n[0],e[0])?0:-1},e.prototype.orderByLru=function(e,t,n){for(var r=this.keys,i=this.values,o=r.length,s=n;s--;)r[s+1]=r[s],i[s+1]=i[s];r[0]=e,i[0]=t;var a=this.options.maxSize;o===a&&n===o?(r.pop(),i.pop()):n>=a&&(r.length=i.length=a)},e.prototype.updateAsyncCache=function(e){var t=this,n=this.options,r=n.onCacheChange,i=n.onCacheHit,o=this.keys[0],s=this.values[0];this.values[0]=s.then((function(n){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&r(t,t.options,e),n}),(function(e){var n=t.getKeyIndex(o);throw-1!==n&&(t.keys.splice(n,1),t.values.splice(n,1)),e}))},e}();return function t(s,a){if(void 0===a&&(a={}),function(e){return"function"==typeof e&&e.isMemoized}(s))return t(s.fn,i(s.options,a));if("function"!=typeof s)throw new TypeError("You must pass a function to `memoize`.");var l=a.isEqual,u=void 0===l?r:l,c=a.isMatchingKey,h=a.isPromise,f=void 0!==h&&h,d=a.maxSize,p=void 0===d?1:d,g=a.onCacheAdd,m=a.onCacheChange,v=a.onCacheHit,y=a.transformKey,b=i({isEqual:u,isMatchingKey:c,isPromise:f,maxSize:p,onCacheAdd:g,onCacheChange:m,onCacheHit:v,transformKey:y},function(t){var n={};for(var r in t)e[r]||(n[r]=t[r]);return n}(a)),w=new o(b),x=w.keys,S=w.values,k=w.canTransformKey,C=w.shouldCloneArguments,E=w.shouldUpdateOnAdd,M=w.shouldUpdateOnChange,O=w.shouldUpdateOnHit,A=function(){var e=C?n(arguments):arguments;k&&(e=y(e));var t=x.length?w.getKeyIndex(e):-1;if(-1!==t)O&&v(w,b,A),t&&(w.orderByLru(x[t],S[t],t),M&&m(w,b,A));else{var r=s.apply(this,arguments),i=C?e:n(arguments);w.orderByLru(i,r,x.length),f&&w.updateAsyncCache(A),E&&g(w,b,A),M&&m(w,b,A)}return S[0]};return A.cache=w,A.fn=s,A.isMemoized=!0,A.options=b,A}}()},12541:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(65897);const i={name:"maxSize",enabled:!0,phase:"main",requiresIfExists:["offset","preventOverflow","flip"],fn:function(e){var t=e.state,n=e.name,i=e.options,o=(0,r.Z)(t,i),s=t.modifiersData.preventOverflow||{x:0,y:0},a=s.x,l=s.y,u=t.rects.popper,c=u.width,h=u.height,f=t.placement.split("-")[0],d="left"===f?"left":"right",p="top"===f?"top":"bottom";t.modifiersData[n]={width:c-o[d]-a,height:h-o[p]-l}}}},92703:(e,t,n)=>{"use strict";var r=n(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},45697:(e,t,n)=>{e.exports=n(92703)()},50414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64448:(e,t,n)=>{"use strict";var r=n(67294),i=n(63840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),h=Object.prototype.hasOwnProperty,f=/^[: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]*$/,d={},p={};function g(e,t,n,r,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,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(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(p,e)||!h.call(d,e)&&(f.test(e)?p[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),S=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),O=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var z=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}var _,B=Object.assign;function H(e){if(void 0===_)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_=t&&t[1]||""}return"\n"+_+e}var I=!1;function V(e,t){if(!e||I)return"";I=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(1!==s||1!==a)do{if(s--,0>--a||i[s]!==o[a]){var l="\n"+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{I=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function j(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return V(e.type,!1);case 11:return V(e.type.render,!1);case 1:return V(e.type,!0);default:return""}}function F(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case S:return"Portal";case E:return"Profiler";case C:return"StrictMode";case T:return"Suspense";case D:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case M:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Y(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,he=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(de).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var ve=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,ke=null,Ce=null;function Ee(e){if(e=bi(e)){if("function"!=typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),Se(e.stateNode,e.type,t))}}function Me(e){ke?Ce?Ce.push(e):Ce=[e]:ke=e}function Oe(){if(ke){var e=ke,t=Ce;if(Ce=ke=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Ae(e,t){return e(t)}function Te(){}var De=!1;function Ne(e,t,n){if(De)return e(t,n);De=!0;try{return Ae(e,t,n)}finally{De=!1,(null!==ke||null!==Ce)&&(Te(),Oe())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=xi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Le=!1;if(c)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Le=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(ce){Le=!1}function Re(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var _e=!1,Be=null,He=!1,Ie=null,Ve={onError:function(e){_e=!0,Be=e}};function je(e,t,n,r,i,o,s,a,l){_e=!1,Be=null,Re.apply(Ve,arguments)}function Fe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function We(e){if(Fe(e)!==e)throw Error(o(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Fe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var s=i.alternate;if(null===s){if(null!==(r=i.return)){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return We(i),e;if(s===r)return We(i),t;s=s.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=s;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var qe=i.unstable_scheduleCallback,Ke=i.unstable_cancelCallback,Ge=i.unstable_shouldYield,Qe=i.unstable_requestPaint,Ye=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,st=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2,ut=64,ct=4194304;function ht(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~i;0!==a?r=ht(a):0!=(o&=s)&&(r=ht(o))}else 0!=(s=n&~i)?r=ht(s):0!==o&&(r=ht(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-st(t)),r|=e[n],t&=~i;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var xt,St,kt,Ct,Et,Mt=!1,Ot=[],At=null,Tt=null,Dt=null,Nt=new Map,Pt=new Map,Lt=[],zt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function _t(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Bt(e){var t=yi(e.target);if(null!==t){var n=Fe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Et(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ht(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function It(e,t,n){Ht(e)&&n.delete(t)}function Vt(){Mt=!1,null!==At&&Ht(At)&&(At=null),null!==Tt&&Ht(Tt)&&(Tt=null),null!==Dt&&Ht(Dt)&&(Dt=null),Nt.forEach(It),Pt.forEach(It)}function jt(e,t){e.blockedOn===t&&(e.blockedOn=null,Mt||(Mt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Vt)))}function Ft(e){function t(t){return jt(t,e)}if(0<Ot.length){jt(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&jt(At,e),null!==Tt&&jt(Tt,e),null!==Dt&&jt(Dt,e),Nt.forEach(t),Pt.forEach(t),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Bt(n),null===n.blockedOn&&Lt.shift()}var $t=w.ReactCurrentBatchConfig,Wt=!0;function Ut(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=i,$t.transition=o}}function Zt(e,t,n,r){var i=bt,o=$t.transition;$t.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=i,$t.transition=o}}function qt(e,t,n,r){if(Wt){var i=Gt(e,t,n,r);if(null===i)Wr(e,t,r,Kt,n),Rt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return At=_t(At,e,t,n,r,i),!0;case"dragenter":return Tt=_t(Tt,e,t,n,r,i),!0;case"mouseover":return Dt=_t(Dt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Nt.set(o,_t(Nt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Pt.set(o,_t(Pt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Rt(e,r),4&t&&-1<zt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&xt(o),null===(o=Gt(e,t,n,r))&&Wr(e,t,r,Kt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Kt=null;function Gt(e,t,n,r){if(Kt=null,null!==(e=yi(e=xe(r))))if(null===(t=Fe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,i="value"in Yt?Yt.value:Yt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),hn=B({},un,{view:0,detail:0}),fn=on(hn),dn=B({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),pn=on(dn),gn=on(B({},dn,{dataTransfer:0})),mn=on(B({},hn,{relatedTarget:0})),vn=on(B({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=B({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(B({},un,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function En(){return Cn}var Mn=B({},hn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(Mn),An=on(B({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(B({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Dn=on(B({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=B({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(Nn),Ln=[9,13,27,32],zn=c&&"CompositionEvent"in window,Rn=null;c&&"documentMode"in document&&(Rn=document.documentMode);var _n=c&&"TextEvent"in window&&!Rn,Bn=c&&(!zn||Rn&&8<Rn&&11>=Rn),Hn=String.fromCharCode(32),In=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1,$n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Un(e,t,n,r){Me(r),0<(t=Zr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,qn=null;function Kn(e){Hr(e,0)}function Gn(e){if(q(wi(e)))return e}function Qn(e,t){if("change"===e)return t}var Yn=!1;if(c){var Jn;if(c){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"==typeof er.oninput}Jn=Xn}else Jn=!1;Yn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Zn&&(Zn.detachEvent("onpropertychange",nr),qn=Zn=null)}function nr(e){if("value"===e.propertyName&&Gn(qn)){var t=[];Un(t,qn,e,xe(e)),Ne(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Zn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(qn)}function or(e,t){if("click"===e)return Gn(t)}function sr(e,t){if("input"===e||"change"===e)return Gn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!h.call(t,i)||!ar(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var s=cr(n,r);i&&s&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=c&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==K(r)||(r="selectionStart"in(r=mr)&&dr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Zr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},kr={},Cr={};function Er(e){if(kr[e])return kr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return kr[e]=n[t];return e}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Mr=Er("animationend"),Or=Er("animationiteration"),Ar=Er("animationstart"),Tr=Er("transitionend"),Dr=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Dr.set(e,t),l(t,[e])}for(var Lr=0;Lr<Nr.length;Lr++){var zr=Nr[Lr];Pr(zr.toLowerCase(),"on"+(zr[0].toUpperCase()+zr.slice(1)))}Pr(Mr,"onAnimationEnd"),Pr(Or,"onAnimationIteration"),Pr(Ar,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Tr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_r=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function Br(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,s,a,l,u){if(je.apply(this,arguments),_e){if(!_e)throw Error(o(198));var c=Be;_e=!1,Be=null,He||(He=!0,Ie=c)}}(r,t,void 0,e),e.currentTarget=null}function Hr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;Br(i,a,u),o=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;Br(i,a,u),o=l}}}if(He)throw e=Ie,He=!1,Ie=null,e}function Ir(e,t){var n=t[gi];void 0===n&&(n=t[gi]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Vr(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var jr="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[jr]){e[jr]=!0,s.forEach((function(t){"selectionchange"!==t&&(_r.has(t)||Vr(t,!1,e),Vr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[jr]||(t[jr]=!0,Vr("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Qt(t)){case 1:var i=Ut;break;case 4:i=Zt;break;default:i=qt}n=i.bind(null,t,n,e),i=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===i||8===a.nodeType&&a.parentNode===i)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;s=s.return}for(;null!==a;){if(null===(s=yi(a)))return;if(5===(l=s.tag)||6===l){r=o=s;continue e}a=a.parentNode}}r=r.return}Ne((function(){var r=o,i=xe(n),s=[];e:{var a=Dr.get(e);if(void 0!==a){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":u="focus",l=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Mr:case Or:case Ar:l=vn;break;case Tr:l=Dn;break;case"scroll":l=fn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var c=0!=(4&t),h=!c&&"scroll"===e,f=c?null!==a?a+"Capture":null:a;c=[];for(var d,p=r;null!==p;){var g=(d=p).stateNode;if(5===d.tag&&null!==g&&(d=g,null!==f&&null!=(g=Pe(p,f))&&c.push(Ur(p,g,d))),h)break;p=p.return}0<c.length&&(a=new l(a,u,null,n,i),s.push({event:a,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!yi(u)&&!u[pi])&&(l||a)&&(a=i.window===i?i:(a=i.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?yi(u):null)&&(u!==(h=Fe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,g="onPointerLeave",f="onPointerEnter",p="pointer"),h=null==l?a:wi(l),d=null==u?a:wi(u),(a=new c(g,p+"leave",l,n,i)).target=h,a.relatedTarget=d,g=null,yi(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=d,c.relatedTarget=h,g=c),h=g,l&&u)e:{for(f=u,p=0,d=c=l;d;d=qr(d))p++;for(d=0,g=f;g;g=qr(g))d++;for(;0<p-d;)c=qr(c),p--;for(;0<d-p;)f=qr(f),d--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=qr(c),f=qr(f)}c=null}else c=null;null!==l&&Kr(s,a,l,c,!1),null!==u&&null!==h&&Kr(s,h,u,c,!0)}if("select"===(l=(a=r?wi(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var m=Qn;else if(Wn(a))if(Yn)m=sr;else{m=ir;var v=rr}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(m=or);switch(m&&(m=m(e,r))?Un(s,m,n,i):(v&&v(e,a,r),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&ee(a,"number",a.value)),v=r?wi(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(mr=v,vr=r,yr=null);break;case"focusout":yr=vr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(s,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(s,n,i)}var y;if(zn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Fn?Vn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Bn&&"ko"!==n.locale&&(Fn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Fn&&(y=en()):(Jt="value"in(Yt=i)?Yt.value:Yt.textContent,Fn=!0)),0<(v=Zr(r,b)).length&&(b=new wn(b,e,null,n,i),s.push({event:b,listeners:v}),(y||null!==(y=jn(n)))&&(b.data=y))),(y=_n?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(In=!0,Hn);case"textInput":return(e=t.data)===Hn&&In?null:e;default:return null}}(e,n):function(e,t){if(Fn)return"compositionend"===e||!zn&&Vn(e,t)?(e=en(),Xt=Jt=Yt=null,Fn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Zr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),s.push({event:i,listeners:r}),i.data=y)}Hr(s,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Pe(e,n))&&r.unshift(Ur(e,o,i)),null!=(o=Pe(e,t))&&r.push(Ur(e,o,i))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,i){for(var o=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==u&&(a=u,i?null!=(l=Pe(n,o))&&s.unshift(Ur(n,l,a)):i||null!=(l=Pe(n,o))&&s.push(Ur(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Gr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Qr,"")}function Jr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,si="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(ai)}:ri;function ai(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ft(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ft(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var hi=Math.random().toString(36).slice(2),fi="__reactFiber$"+hi,di="__reactProps$"+hi,pi="__reactContainer$"+hi,gi="__reactEvents$"+hi,mi="__reactListeners$"+hi,vi="__reactHandles$"+hi;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[fi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xi(e){return e[di]||null}var Si=[],ki=-1;function Ci(e){return{current:e}}function Ei(e){0>ki||(e.current=Si[ki],Si[ki]=null,ki--)}function Mi(e,t){ki++,Si[ki]=e.current,e.current=t}var Oi={},Ai=Ci(Oi),Ti=Ci(!1),Di=Oi;function Ni(e,t){var n=e.type.contextTypes;if(!n)return Oi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pi(e){return null!=e.childContextTypes}function Li(){Ei(Ti),Ei(Ai)}function zi(e,t,n){if(Ai.current!==Oi)throw Error(o(168));Mi(Ai,t),Mi(Ti,n)}function Ri(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,$(e)||"Unknown",i));return B({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,Di=Ai.current,Mi(Ai,e),Mi(Ti,Ti.current),!0}function Bi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ri(e,t,Di),r.__reactInternalMemoizedMergedChildContext=e,Ei(Ti),Ei(Ai),Mi(Ai,e)):Ei(Ti),Mi(Ti,n)}var Hi=null,Ii=!1,Vi=!1;function ji(e){null===Hi?Hi=[e]:Hi.push(e)}function Fi(){if(!Vi&&null!==Hi){Vi=!0;var e=0,t=bt;try{var n=Hi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Hi=null,Ii=!1}catch(t){throw null!==Hi&&(Hi=Hi.slice(e+1)),qe(Xe,Fi),t}finally{bt=t,Vi=!1}}return null}var $i=[],Wi=0,Ui=null,Zi=0,qi=[],Ki=0,Gi=null,Qi=1,Yi="";function Ji(e,t){$i[Wi++]=Zi,$i[Wi++]=Ui,Ui=e,Zi=t}function Xi(e,t,n){qi[Ki++]=Qi,qi[Ki++]=Yi,qi[Ki++]=Gi,Gi=e;var r=Qi;e=Yi;var i=32-st(r)-1;r&=~(1<<i),n+=1;var o=32-st(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Qi=1<<32-st(t)+i|n<<i|r,Yi=o+e}else Qi=1<<o|n<<i|r,Yi=e}function eo(e){null!==e.return&&(Ji(e,1),Xi(e,1,0))}function to(e){for(;e===Ui;)Ui=$i[--Wi],$i[Wi]=null,Zi=$i[--Wi],$i[Wi]=null;for(;e===Gi;)Gi=qi[--Ki],qi[Ki]=null,Yi=qi[--Ki],qi[Ki]=null,Qi=qi[--Ki],qi[Ki]=null}var no=null,ro=null,io=!1,oo=null;function so(e,t){var n=Pu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ao(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Gi?{id:Qi,overflow:Yi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function uo(e){if(io){var t=ro;if(t){var n=t;if(!ao(e,t)){if(lo(e))throw Error(o(418));t=ui(n.nextSibling);var r=no;t&&ao(e,t)?so(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function ho(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw fo(),Error(o(418));for(;t;)so(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ui(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=ro;e;)e=ui(e.nextSibling)}function po(){ro=no=null,io=!1}function go(e){null===oo?oo=[e]:oo.push(e)}var mo=w.ReactCurrentBatchConfig;function vo(e,t){if(e&&e.defaultProps){for(var n in t=B({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=Ci(null),bo=null,wo=null,xo=null;function So(){xo=wo=bo=null}function ko(e){var t=yo.current;Ei(yo),e._currentValue=t}function Co(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Eo(e,t){bo=e,xo=wo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(wa=!0),e.firstContext=null)}function Mo(e){var t=e._currentValue;if(xo!==e)if(e={context:e,memoizedValue:t,next:null},null===wo){if(null===bo)throw Error(o(308));wo=e,bo.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Oo=null;function Ao(e){null===Oo?Oo=[e]:Oo.push(e)}function To(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Ao(t)):(n.next=i.next,i.next=n),t.interleaved=n,Do(e,r)}function Do(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var No=!1;function Po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ro(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Tl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Do(e,n)}return null===(i=r.interleaved)?(t.next=t,Ao(r)):(t.next=i.next,i.next=t),r.interleaved=t,Do(e,n)}function _o(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Bo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=s:o=o.next=s,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ho(e,t,n,r){var i=e.updateQueue;No=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(null!==a){i.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?o=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==o){var h=i.baseState;for(s=0,c=u=l=null,a=o;;){var f=a.lane,d=a.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,g=a;switch(f=t,d=n,g.tag){case 1:if("function"==typeof(p=g.payload)){h=p.call(d,h,f);break e}h=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=g.payload)?p.call(d,h,f):p))break e;h=B({},h,f);break e;case 2:No=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[a]:f.push(a))}else d={eventTime:d,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=d,l=h):c=c.next=d,s|=f;if(null===(a=a.next)){if(null===(a=i.shared.pending))break;a=(f=a).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=h),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{s|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Bl|=s,e.lanes=s,e.memoizedState=h}}function Io(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Vo=(new r.Component).refs;function jo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:B({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Fo={isMounted:function(e){return!!(e=e._reactInternals)&&Fe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),i=nu(e),o=zo(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=Ro(e,o,i))&&(ru(t,e,i,r),_o(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),i=nu(e),o=zo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Ro(e,o,i))&&(ru(t,e,i,r),_o(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),i=zo(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Ro(e,i,r))&&(ru(t,e,r,n),_o(t,e,r))}};function $o(e,t,n,r,i,o,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,s):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,o))}function Wo(e,t,n){var r=!1,i=Oi,o=t.contextType;return"object"==typeof o&&null!==o?o=Mo(o):(i=Pi(t)?Di:Ai.current,o=(r=null!=(r=t.contextTypes))?Ni(e,i):Oi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Fo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Uo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Fo.enqueueReplaceState(t,t.state,null)}function Zo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Vo,Po(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Mo(o):(o=Pi(t)?Di:Ai.current,i.context=Ni(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(jo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Fo.enqueueReplaceState(i,i.state,null),Ho(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function qo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=i.refs;t===Vo&&(t=i.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Ko(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Go(e){return(0,e._init)(e._payload)}function Qo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=zu(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Hu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===k?h(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===P&&Go(o)===t.type)?((r=i(t,n.props)).ref=qo(e,t,n),r.return=e,r):((r=Ru(n.type,n.key,n.props,null,e.mode,r)).ref=qo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Iu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function h(e,t,n,r,o){return null===t||7!==t.tag?((t=_u(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Hu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Ru(t.type,t.key,t.props,null,e.mode,n)).ref=qo(e,null,t),n.return=e,n;case S:return(t=Iu(t,e.mode,n)).return=e,t;case P:return f(e,(0,t._init)(t._payload),n)}if(te(t)||R(t))return(t=_u(t,e.mode,n,null)).return=e,t;Ko(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?u(e,t,n,r):null;case S:return n.key===i?c(e,t,n,r):null;case P:return d(e,t,(i=n._init)(n._payload),r)}if(te(n)||R(n))return null!==i?null:h(e,t,n,r,null);Ko(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case P:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||R(r))return h(t,e=e.get(n)||null,r,i,null);Ko(t,r)}return null}function g(i,o,a,l){for(var u=null,c=null,h=o,g=o=0,m=null;null!==h&&g<a.length;g++){h.index>g?(m=h,h=null):m=h.sibling;var v=d(i,h,a[g],l);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&t(i,h),o=s(v,o,g),null===c?u=v:c.sibling=v,c=v,h=m}if(g===a.length)return n(i,h),io&&Ji(i,g),u;if(null===h){for(;g<a.length;g++)null!==(h=f(i,a[g],l))&&(o=s(h,o,g),null===c?u=h:c.sibling=h,c=h);return io&&Ji(i,g),u}for(h=r(i,h);g<a.length;g++)null!==(m=p(h,i,g,a[g],l))&&(e&&null!==m.alternate&&h.delete(null===m.key?g:m.key),o=s(m,o,g),null===c?u=m:c.sibling=m,c=m);return e&&h.forEach((function(e){return t(i,e)})),io&&Ji(i,g),u}function m(i,a,l,u){var c=R(l);if("function"!=typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var h=c=null,g=a,m=a=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=d(i,g,y.value,u);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(i,g),a=s(b,a,m),null===h?c=b:h.sibling=b,h=b,g=v}if(y.done)return n(i,g),io&&Ji(i,m),c;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=f(i,y.value,u))&&(a=s(y,a,m),null===h?c=y:h.sibling=y,h=y);return io&&Ji(i,m),c}for(g=r(i,g);!y.done;m++,y=l.next())null!==(y=p(g,i,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),a=s(y,a,m),null===h?c=y:h.sibling=y,h=y);return e&&g.forEach((function(e){return t(i,e)})),io&&Ji(i,m),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===k&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case x:e:{for(var u=s.key,c=o;null!==c;){if(c.key===u){if((u=s.type)===k){if(7===c.tag){n(r,c.sibling),(o=i(c,s.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===P&&Go(u)===c.type){n(r,c.sibling),(o=i(c,s.props)).ref=qo(r,c,s),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===k?((o=_u(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=Ru(s.type,s.key,s.props,null,r.mode,l)).ref=qo(r,o,s),l.return=r,r=l)}return a(r);case S:e:{for(c=s.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Iu(s,r.mode,l)).return=r,r=o}return a(r);case P:return e(r,o,(c=s._init)(s._payload),l)}if(te(s))return g(r,o,s,l);if(R(s))return m(r,o,s,l);Ko(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Hu(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var Yo=Qo(!0),Jo=Qo(!1),Xo={},es=Ci(Xo),ts=Ci(Xo),ns=Ci(Xo);function rs(e){if(e===Xo)throw Error(o(174));return e}function is(e,t){switch(Mi(ns,t),Mi(ts,e),Mi(es,Xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ei(es),Mi(es,t)}function os(){Ei(es),Ei(ts),Ei(ns)}function ss(e){rs(ns.current);var t=rs(es.current),n=le(t,e.type);t!==n&&(Mi(ts,e),Mi(es,n))}function as(e){ts.current===e&&(Ei(es),Ei(ts))}var ls=Ci(0);function us(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cs=[];function hs(){for(var e=0;e<cs.length;e++)cs[e]._workInProgressVersionPrimary=null;cs.length=0}var fs=w.ReactCurrentDispatcher,ds=w.ReactCurrentBatchConfig,ps=0,gs=null,ms=null,vs=null,ys=!1,bs=!1,ws=0,xs=0;function Ss(){throw Error(o(321))}function ks(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function Cs(e,t,n,r,i,s){if(ps=s,gs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fs.current=null===e||null===e.memoizedState?aa:la,e=n(r,i),bs){s=0;do{if(bs=!1,ws=0,25<=s)throw Error(o(301));s+=1,vs=ms=null,t.updateQueue=null,fs.current=ua,e=n(r,i)}while(bs)}if(fs.current=sa,t=null!==ms&&null!==ms.next,ps=0,vs=ms=gs=null,ys=!1,t)throw Error(o(300));return e}function Es(){var e=0!==ws;return ws=0,e}function Ms(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vs?gs.memoizedState=vs=e:vs=vs.next=e,vs}function Os(){if(null===ms){var e=gs.alternate;e=null!==e?e.memoizedState:null}else e=ms.next;var t=null===vs?gs.memoizedState:vs.next;if(null!==t)vs=t,ms=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ms=e).memoizedState,baseState:ms.baseState,baseQueue:ms.baseQueue,queue:ms.queue,next:null},null===vs?gs.memoizedState=vs=e:vs=vs.next=e}return vs}function As(e,t){return"function"==typeof t?t(e):t}function Ts(e){var t=Os(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ms,i=r.baseQueue,s=n.pending;if(null!==s){if(null!==i){var a=i.next;i.next=s.next,s.next=a}r.baseQueue=i=s,n.pending=null}if(null!==i){s=i.next,r=r.baseState;var l=a=null,u=null,c=s;do{var h=c.lane;if((ps&h)===h)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,a=r):u=u.next=f,gs.lanes|=h,Bl|=h}c=c.next}while(null!==c&&c!==s);null===u?a=r:u.next=l,ar(r,t.memoizedState)||(wa=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{s=i.lane,gs.lanes|=s,Bl|=s,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ds(e){var t=Os(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{s=e(s,a.action),a=a.next}while(a!==i);ar(s,t.memoizedState)||(wa=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ns(){}function Ps(e,t){var n=gs,r=Os(),i=t(),s=!ar(r.memoizedState,i);if(s&&(r.memoizedState=i,wa=!0),r=r.queue,Ws(Rs.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==vs&&1&vs.memoizedState.tag){if(n.flags|=2048,Is(9,zs.bind(null,n,r,i,t),void 0,null),null===Dl)throw Error(o(349));0!=(30&ps)||Ls(n,t,i)}return i}function Ls(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function zs(e,t,n,r){t.value=n,t.getSnapshot=r,_s(t)&&Bs(e)}function Rs(e,t,n){return n((function(){_s(t)&&Bs(e)}))}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(e){return!0}}function Bs(e){var t=Do(e,1);null!==t&&ru(t,e,1,-1)}function Hs(e){var t=Ms();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:e},t.queue=e,e=e.dispatch=na.bind(null,gs,e),[t.memoizedState,e]}function Is(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Vs(){return Os().memoizedState}function js(e,t,n,r){var i=Ms();gs.flags|=e,i.memoizedState=Is(1|t,n,void 0,void 0===r?null:r)}function Fs(e,t,n,r){var i=Os();r=void 0===r?null:r;var o=void 0;if(null!==ms){var s=ms.memoizedState;if(o=s.destroy,null!==r&&ks(r,s.deps))return void(i.memoizedState=Is(t,n,o,r))}gs.flags|=e,i.memoizedState=Is(1|t,n,o,r)}function $s(e,t){return js(8390656,8,e,t)}function Ws(e,t){return Fs(2048,8,e,t)}function Us(e,t){return Fs(4,2,e,t)}function Zs(e,t){return Fs(4,4,e,t)}function qs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ks(e,t,n){return n=null!=n?n.concat([e]):null,Fs(4,4,qs.bind(null,t,e),n)}function Gs(){}function Qs(e,t){var n=Os();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ks(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ys(e,t){var n=Os();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ks(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Js(e,t,n){return 0==(21&ps)?(e.baseState&&(e.baseState=!1,wa=!0),e.memoizedState=n):(ar(n,t)||(n=gt(),gs.lanes|=n,Bl|=n,e.baseState=!0),t)}function Xs(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ds.transition;ds.transition={};try{e(!1),t()}finally{bt=n,ds.transition=r}}function ea(){return Os().memoizedState}function ta(e,t,n){var r=nu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ra(e)?ia(t,n):null!==(n=To(e,t,n,r))&&(ru(n,e,r,tu()),oa(n,t,r))}function na(e,t,n){var r=nu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ra(e))ia(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,ar(a,s)){var l=t.interleaved;return null===l?(i.next=i,Ao(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=To(e,t,i,r))&&(ru(n,e,r,i=tu()),oa(n,t,r))}}function ra(e){var t=e.alternate;return e===gs||null!==t&&t===gs}function ia(e,t){bs=ys=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oa(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var sa={readContext:Mo,useCallback:Ss,useContext:Ss,useEffect:Ss,useImperativeHandle:Ss,useInsertionEffect:Ss,useLayoutEffect:Ss,useMemo:Ss,useReducer:Ss,useRef:Ss,useState:Ss,useDebugValue:Ss,useDeferredValue:Ss,useTransition:Ss,useMutableSource:Ss,useSyncExternalStore:Ss,useId:Ss,unstable_isNewReconciler:!1},aa={readContext:Mo,useCallback:function(e,t){return Ms().memoizedState=[e,void 0===t?null:t],e},useContext:Mo,useEffect:$s,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,js(4194308,4,qs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return js(4194308,4,e,t)},useInsertionEffect:function(e,t){return js(4,2,e,t)},useMemo:function(e,t){var n=Ms();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ms();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ta.bind(null,gs,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ms().memoizedState=e},useState:Hs,useDebugValue:Gs,useDeferredValue:function(e){return Ms().memoizedState=e},useTransition:function(){var e=Hs(!1),t=e[0];return e=Xs.bind(null,e[1]),Ms().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gs,i=Ms();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Dl)throw Error(o(349));0!=(30&ps)||Ls(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,$s(Rs.bind(null,r,s,e),[e]),r.flags|=2048,Is(9,zs.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Ms(),t=Dl.identifierPrefix;if(io){var n=Yi;t=":"+t+"R"+(n=(Qi&~(1<<32-st(Qi)-1)).toString(32)+n),0<(n=ws++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},la={readContext:Mo,useCallback:Qs,useContext:Mo,useEffect:Ws,useImperativeHandle:Ks,useInsertionEffect:Us,useLayoutEffect:Zs,useMemo:Ys,useReducer:Ts,useRef:Vs,useState:function(){return Ts(As)},useDebugValue:Gs,useDeferredValue:function(e){return Js(Os(),ms.memoizedState,e)},useTransition:function(){return[Ts(As)[0],Os().memoizedState]},useMutableSource:Ns,useSyncExternalStore:Ps,useId:ea,unstable_isNewReconciler:!1},ua={readContext:Mo,useCallback:Qs,useContext:Mo,useEffect:Ws,useImperativeHandle:Ks,useInsertionEffect:Us,useLayoutEffect:Zs,useMemo:Ys,useReducer:Ds,useRef:Vs,useState:function(){return Ds(As)},useDebugValue:Gs,useDeferredValue:function(e){var t=Os();return null===ms?t.memoizedState=e:Js(t,ms.memoizedState,e)},useTransition:function(){return[Ds(As)[0],Os().memoizedState]},useMutableSource:Ns,useSyncExternalStore:Ps,useId:ea,unstable_isNewReconciler:!1};function ca(e,t){try{var n="",r=t;do{n+=j(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ha(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fa(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var da="function"==typeof WeakMap?WeakMap:Map;function pa(e,t,n){(n=zo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Zl=r),fa(0,t)},n}function ga(e,t,n){(n=zo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fa(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){fa(0,t),"function"!=typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new da;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Mu.bind(null,e,t,n),t.then(e,e))}function va(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ya(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=zo(-1,1)).tag=2,Ro(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ba=w.ReactCurrentOwner,wa=!1;function xa(e,t,n,r){t.child=null===e?Jo(t,null,n,r):Yo(t,e.child,n,r)}function Sa(e,t,n,r,i){n=n.render;var o=t.ref;return Eo(t,i),r=Cs(e,t,n,r,o,i),n=Es(),null===e||wa?(io&&n&&eo(t),t.flags|=1,xa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ua(e,t,i))}function ka(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Lu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ru(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ca(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var s=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Ua(e,t,i)}return t.flags|=1,(e=zu(o,r)).ref=t.ref,e.return=t,t.child=e}function Ca(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(wa=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,Ua(e,t,i);0!=(131072&e.flags)&&(wa=!0)}}return Oa(e,t,n,r,i)}function Ea(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mi(zl,Ll),Ll|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Mi(zl,Ll),Ll|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Mi(zl,Ll),Ll|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Mi(zl,Ll),Ll|=r;return xa(e,t,i,n),t.child}function Ma(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Oa(e,t,n,r,i){var o=Pi(n)?Di:Ai.current;return o=Ni(t,o),Eo(t,i),n=Cs(e,t,n,r,o,i),r=Es(),null===e||wa?(io&&r&&eo(t),t.flags|=1,xa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ua(e,t,i))}function Aa(e,t,n,r,i){if(Pi(n)){var o=!0;_i(t)}else o=!1;if(Eo(t,i),null===t.stateNode)Wa(e,t),Wo(t,n,r),Zo(t,n,r,i),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;u="object"==typeof u&&null!==u?Mo(u):Ni(t,u=Pi(n)?Di:Ai.current);var c=n.getDerivedStateFromProps,h="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;h||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||l!==u)&&Uo(t,s,r,u),No=!1;var f=t.memoizedState;s.state=f,Ho(t,r,s,i),l=t.memoizedState,a!==r||f!==l||Ti.current||No?("function"==typeof c&&(jo(t,n,c,r),l=t.memoizedState),(a=No||$o(t,n,a,r,f,l,u))?(h||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Lo(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:vo(t.type,a),s.props=u,h=t.pendingProps,f=s.context,l="object"==typeof(l=n.contextType)&&null!==l?Mo(l):Ni(t,l=Pi(n)?Di:Ai.current);var d=n.getDerivedStateFromProps;(c="function"==typeof d||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==h||f!==l)&&Uo(t,s,r,l),No=!1,f=t.memoizedState,s.state=f,Ho(t,r,s,i);var p=t.memoizedState;a!==h||f!==p||Ti.current||No?("function"==typeof d&&(jo(t,n,d,r),p=t.memoizedState),(u=No||$o(t,n,u,r,f,p,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,p,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=u):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ta(e,t,n,r,o,i)}function Ta(e,t,n,r,i,o){Ma(e,t);var s=0!=(128&t.flags);if(!r&&!s)return i&&Bi(t,n,!1),Ua(e,t,o);r=t.stateNode,ba.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=Yo(t,e.child,null,o),t.child=Yo(t,null,a,o)):xa(e,t,a,o),t.memoizedState=r.state,i&&Bi(t,n,!0),t.child}function Da(e){var t=e.stateNode;t.pendingContext?zi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&zi(0,t.context,!1),is(e,t.containerInfo)}function Na(e,t,n,r,i){return po(),go(i),t.flags|=256,xa(e,t,n,r),t.child}var Pa,La,za,Ra,_a={dehydrated:null,treeContext:null,retryLane:0};function Ba(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ha(e,t,n){var r,i=t.pendingProps,s=ls.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&s)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Mi(ls,1&s),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,a?(i=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&i)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Bu(l,i,0,null),e=_u(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ba(n),t.memoizedState=_a,e):Ia(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,i,s,a){if(n)return 256&t.flags?(t.flags&=-257,Va(e,t,a,r=ha(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Bu({mode:"visible",children:r.children},i,0,null),(s=_u(s,i,a,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,0!=(1&t.mode)&&Yo(t,e.child,null,a),t.child.memoizedState=Ba(a),t.memoizedState=_a,s);if(0==(1&t.mode))return Va(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Va(e,t,a,r=ha(s=Error(o(419)),r,void 0))}if(l=0!=(a&e.childLanes),wa||l){if(null!==(r=Dl)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|a))?0:i)&&i!==s.retryLane&&(s.retryLane=i,Do(e,i),ru(r,e,i,-1))}return mu(),Va(e,t,a,r=ha(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Au.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(qi[Ki++]=Qi,qi[Ki++]=Yi,qi[Ki++]=Gi,Qi=e.id,Yi=e.overflow,Gi=t),(t=Ia(t,r.children)).flags|=4096,t)}(e,t,l,i,r,s,n);if(a){a=i.fallback,l=t.mode,r=(s=e.child).sibling;var u={mode:"hidden",children:i.children};return 0==(1&l)&&t.child!==s?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=zu(s,u)).subtreeFlags=14680064&s.subtreeFlags,null!==r?a=zu(r,a):(a=_u(a,l,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,l=null===(l=e.child.memoizedState)?Ba(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=_a,i}return e=(a=e.child).sibling,i=zu(a,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Ia(e,t){return(t=Bu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Va(e,t,n,r){return null!==r&&go(r),Yo(t,e.child,null,n),(e=Ia(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ja(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Co(e.return,t,n)}function Fa(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $a(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xa(e,t,r.children,n),0!=(2&(r=ls.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ja(e,n,t);else if(19===e.tag)ja(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Mi(ls,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===us(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Fa(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===us(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Fa(t,!0,n,null,o);break;case"together":Fa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wa(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=zu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Za(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qa(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ka(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qa(t),null;case 1:case 17:return Pi(t.type)&&Li(),qa(t),null;case 3:return r=t.stateNode,os(),Ei(Ti),Ei(Ai),hs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(au(oo),oo=null))),La(e,t),qa(t),null;case 5:as(t);var i=rs(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)za(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return qa(t),null}if(e=rs(es.current),ho(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[fi]=t,r[di]=s,e=0!=(1&t.mode),n){case"dialog":Ir("cancel",r),Ir("close",r);break;case"iframe":case"object":case"embed":Ir("load",r);break;case"video":case"audio":for(i=0;i<Rr.length;i++)Ir(Rr[i],r);break;case"source":Ir("error",r);break;case"img":case"image":case"link":Ir("error",r),Ir("load",r);break;case"details":Ir("toggle",r);break;case"input":Q(r,s),Ir("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ir("invalid",r);break;case"textarea":ie(r,s),Ir("invalid",r)}for(var l in ye(n,s),i=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==s.suppressHydrationWarning&&Jr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Jr(r.textContent,u,e),i=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Ir("scroll",r)}switch(n){case"input":Z(r),X(r,s,!0);break;case"textarea":Z(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[di]=r,Pa(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Ir("cancel",e),Ir("close",e),i=r;break;case"iframe":case"object":case"embed":Ir("load",e),i=r;break;case"video":case"audio":for(i=0;i<Rr.length;i++)Ir(Rr[i],e);i=r;break;case"source":Ir("error",e),i=r;break;case"img":case"image":case"link":Ir("error",e),Ir("load",e),i=r;break;case"details":Ir("toggle",e),i=r;break;case"input":Q(e,r),i=G(e,r),Ir("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=B({},r,{value:void 0}),Ir("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Ir("invalid",e)}for(s in ye(n,i),u=i)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?me(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&he(e,c):"children"===s?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Ir("scroll",e):null!=c&&b(e,s,c,l))}switch(n){case"input":Z(e),X(e,r,!1);break;case"textarea":Z(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qa(t),null;case 6:if(e&&null!=t.stateNode)Ra(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=rs(ns.current),rs(es.current),ho(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(s=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!=(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return qa(t),null;case 13:if(Ei(ls),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))fo(),po(),t.flags|=98560,s=!1;else if(s=ho(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(o(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(o(317));s[fi]=t}else po(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qa(t),s=!1}else null!==oo&&(au(oo),oo=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ls.current)?0===Rl&&(Rl=3):mu())),null!==t.updateQueue&&(t.flags|=4),qa(t),null);case 4:return os(),La(e,t),null===e&&Fr(t.stateNode.containerInfo),qa(t),null;case 10:return ko(t.type._context),qa(t),null;case 19:if(Ei(ls),null===(s=t.memoizedState))return qa(t),null;if(r=0!=(128&t.flags),null===(l=s.rendering))if(r)Za(s,!1);else{if(0!==Rl||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=us(e))){for(t.flags|=128,Za(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Mi(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&Ye()>$l&&(t.flags|=128,r=!0,Za(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=us(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Za(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!io)return qa(t),null}else 2*Ye()-s.renderingStartTime>$l&&1073741824!==n&&(t.flags|=128,r=!0,Za(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ye(),t.sibling=null,n=ls.current,Mi(ls,r?1&n|2:1&n),t):(qa(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ll)&&(qa(t),6&t.subtreeFlags&&(t.flags|=8192)):qa(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ga(e,t){switch(to(t),t.tag){case 1:return Pi(t.type)&&Li(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return os(),Ei(Ti),Ei(Ai),hs(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return as(t),null;case 13:if(Ei(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ei(ls),null;case 4:return os(),null;case 10:return ko(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Pa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},La=function(){},za=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,rs(es.current);var o,s=null;switch(n){case"input":i=G(e,i),r=G(e,r),s=[];break;case"select":i=B({},i,{value:void 0}),r=B({},r,{value:void 0}),s=[];break;case"textarea":i=re(e,i),r=re(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Ir("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ra=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qa=!1,Ya=!1,Ja="function"==typeof WeakSet?WeakSet:Set,Xa=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Eu(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){Eu(e,t,n)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(t,n,o)}i=i.next}while(i!==r)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fi],delete t[di],delete t[gi],delete t[mi],delete t[vi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var hl=null,fl=!1;function dl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Ya||el(n,t);case 6:var r=hl,i=fl;hl=null,dl(e,t,n),fl=i,null!==(hl=r)&&(fl?(e=hl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):hl.removeChild(n.stateNode));break;case 18:null!==hl&&(fl?(e=hl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ft(e)):li(hl,n.stateNode));break;case 4:r=hl,i=fl,hl=n.stateNode.containerInfo,fl=!0,dl(e,t,n),hl=r,fl=i;break;case 0:case 11:case 14:case 15:if(!Ya&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,void 0!==s&&(0!=(2&o)||0!=(4&o))&&tl(n,t,s),i=i.next}while(i!==r)}dl(e,t,n);break;case 1:if(!Ya&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Eu(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Ya=(r=Ya)||null!==n.memoizedState,dl(e,t,n),Ya=r):dl(e,t,n);break;default:dl(e,t,n)}}function gl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ja),t.forEach((function(t){var r=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:hl=l.stateNode,fl=!1;break e;case 3:case 4:hl=l.stateNode.containerInfo,fl=!0;break e}l=l.return}if(null===hl)throw Error(o(160));pl(s,a,i),hl=null,fl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Eu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),yl(e),4&r){try{rl(3,e,e.return),il(3,e)}catch(t){Eu(e,e.return,t)}try{rl(5,e,e.return)}catch(t){Eu(e,e.return,t)}}break;case 1:ml(t,e),yl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(ml(t,e),yl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Eu(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&Y(i,s),be(l,a);var c=be(l,s);for(a=0;a<u.length;a+=2){var h=u[a],f=u[a+1];"style"===h?me(i,f):"dangerouslySetInnerHTML"===h?he(i,f):"children"===h?fe(i,f):b(i,h,f,c)}switch(l){case"input":J(i,s);break;case"textarea":oe(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var p=s.value;null!=p?ne(i,!!s.multiple,p,!1):d!==!!s.multiple&&(null!=s.defaultValue?ne(i,!!s.multiple,s.defaultValue,!0):ne(i,!!s.multiple,s.multiple?[]:"",!1))}i[di]=s}catch(t){Eu(e,e.return,t)}}break;case 6:if(ml(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(t){Eu(e,e.return,t)}}break;case 3:if(ml(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ft(t.containerInfo)}catch(t){Eu(e,e.return,t)}break;case 4:default:ml(t,e),yl(e);break;case 13:ml(t,e),yl(e),8192&(i=e.child).flags&&(s=null!==i.memoizedState,i.stateNode.isHidden=s,!s||null!==i.alternate&&null!==i.alternate.memoizedState||(Fl=Ye())),4&r&&gl(e);break;case 22:if(h=null!==n&&null!==n.memoizedState,1&e.mode?(Ya=(c=Ya)||h,ml(t,e),Ya=c):ml(t,e),yl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!h&&0!=(1&e.mode))for(Xa=e,h=e.child;null!==h;){for(f=Xa=h;null!==Xa;){switch(p=(d=Xa).child,d.tag){case 0:case 11:case 14:case 15:rl(4,d,d.return);break;case 1:el(d,d.return);var g=d.stateNode;if("function"==typeof g.componentWillUnmount){r=d,n=d.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){Eu(r,n,e)}}break;case 5:el(d,d.return);break;case 22:if(null!==d.memoizedState){Sl(f);continue}}null!==p?(p.return=d,Xa=p):Sl(f)}h=h.sibling}e:for(h=null,f=e;;){if(5===f.tag){if(null===h){h=f;try{i=f.stateNode,c?"function"==typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=f.stateNode,a=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=ge("display",a))}catch(t){Eu(e,e.return,t)}}}else if(6===f.tag){if(null===h)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Eu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;h===f&&(h=null),f=f.return}h===f&&(h=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),yl(e),4&r&&gl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),cl(e,ll(e),i);break;case 3:case 4:var s=r.stateNode.containerInfo;ul(e,ll(e),s);break;default:throw Error(o(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Xa=e,wl(e,t,n)}function wl(e,t,n){for(var r=0!=(1&e.mode);null!==Xa;){var i=Xa,o=i.child;if(22===i.tag&&r){var s=null!==i.memoizedState||Qa;if(!s){var a=i.alternate,l=null!==a&&null!==a.memoizedState||Ya;a=Qa;var u=Ya;if(Qa=s,(Ya=l)&&!u)for(Xa=i;null!==Xa;)l=(s=Xa).child,22===s.tag&&null!==s.memoizedState?kl(i):null!==l?(l.return=s,Xa=l):kl(i);for(;null!==o;)Xa=o,wl(o,t,n),o=o.sibling;Xa=i,Qa=a,Ya=u}xl(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,Xa=o):xl(e)}}function xl(e){for(;null!==Xa;){var t=Xa;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ya||il(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ya)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:vo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Io(t,s,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Io(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var h=c.memoizedState;if(null!==h){var f=h.dehydrated;null!==f&&Ft(f)}}}break;default:throw Error(o(163))}Ya||512&t.flags&&ol(t)}catch(e){Eu(t,t.return,e)}}if(t===e){Xa=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xa=n;break}Xa=t.return}}function Sl(e){for(;null!==Xa;){var t=Xa;if(t===e){Xa=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xa=n;break}Xa=t.return}}function kl(e){for(;null!==Xa;){var t=Xa;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(e){Eu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Eu(t,i,e)}}var o=t.return;try{ol(t)}catch(e){Eu(t,o,e)}break;case 5:var s=t.return;try{ol(t)}catch(e){Eu(t,s,e)}}}catch(e){Eu(t,t.return,e)}if(t===e){Xa=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Xa=a;break}Xa=t.return}}var Cl,El=Math.ceil,Ml=w.ReactCurrentDispatcher,Ol=w.ReactCurrentOwner,Al=w.ReactCurrentBatchConfig,Tl=0,Dl=null,Nl=null,Pl=0,Ll=0,zl=Ci(0),Rl=0,_l=null,Bl=0,Hl=0,Il=0,Vl=null,jl=null,Fl=0,$l=1/0,Wl=null,Ul=!1,Zl=null,ql=null,Kl=!1,Gl=null,Ql=0,Yl=0,Jl=null,Xl=-1,eu=0;function tu(){return 0!=(6&Tl)?Ye():-1!==Xl?Xl:Xl=Ye()}function nu(e){return 0==(1&e.mode)?1:0!=(2&Tl)&&0!==Pl?Pl&-Pl:null!==mo.transition?(0===eu&&(eu=gt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function ru(e,t,n,r){if(50<Yl)throw Yl=0,Jl=null,Error(o(185));vt(e,n,r),0!=(2&Tl)&&e===Dl||(e===Dl&&(0==(2&Tl)&&(Hl|=n),4===Rl&&lu(e,Pl)),iu(e,r),1===n&&0===Tl&&0==(1&t.mode)&&($l=Ye()+500,Ii&&Fi()))}function iu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-st(o),a=1<<s,l=i[s];-1===l?0!=(a&n)&&0==(a&r)||(i[s]=dt(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}(e,t);var r=ft(e,e===Dl?Pl:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Ii=!0,ji(e)}(uu.bind(null,e)):ji(uu.bind(null,e)),si((function(){0==(6&Tl)&&Fi()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Du(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Xl=-1,eu=0,0!=(6&Tl))throw Error(o(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var r=ft(e,e===Dl?Pl:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var i=Tl;Tl|=2;var s=gu();for(Dl===e&&Pl===t||(Wl=null,$l=Ye()+500,du(e,t));;)try{bu();break}catch(t){pu(e,t)}So(),Ml.current=s,Tl=i,null!==Nl?t=0:(Dl=null,Pl=0,t=Rl)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(r=i,t=su(e,i)),1===t)throw n=_l,du(e,0),lu(e,r),iu(e,Ye()),n;if(6===t)lu(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!ar(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=vu(e,r))&&0!==(s=pt(e))&&(r=s,t=su(e,s)),1===t))throw n=_l,du(e,0),lu(e,r),iu(e,Ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:Su(e,jl,Wl);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Fl+500-Ye())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(Su.bind(null,e,jl,Wl),t);break}Su(e,jl,Wl);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-st(r);s=1<<a,(a=t[a])>i&&(i=a),r&=~s}if(r=i,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ri(Su.bind(null,e,jl,Wl),r);break}Su(e,jl,Wl);break;default:throw Error(o(329))}}}return iu(e,Ye()),e.callbackNode===n?ou.bind(null,e):null}function su(e,t){var n=Vl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=vu(e,t))&&(t=jl,jl=n,null!==t&&au(t)),e}function au(e){null===jl?jl=e:jl.push.apply(jl,e)}function lu(e,t){for(t&=~Il,t&=~Hl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(0!=(6&Tl))throw Error(o(327));ku();var t=ft(e,0);if(0==(1&t))return iu(e,Ye()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=su(e,r))}if(1===n)throw n=_l,du(e,0),lu(e,t),iu(e,Ye()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Su(e,jl,Wl),iu(e,Ye()),null}function cu(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&($l=Ye()+500,Ii&&Fi())}}function hu(e){null!==Gl&&0===Gl.tag&&0==(6&Tl)&&ku();var t=Tl;Tl|=1;var n=Al.transition,r=bt;try{if(Al.transition=null,bt=1,e)return e()}finally{bt=r,Al.transition=n,0==(6&(Tl=t))&&Fi()}}function fu(){Ll=zl.current,Ei(zl)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Nl)for(n=Nl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Li();break;case 3:os(),Ei(Ti),Ei(Ai),hs();break;case 5:as(r);break;case 4:os();break;case 13:case 19:Ei(ls);break;case 10:ko(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Dl=e,Nl=e=zu(e.current,null),Pl=Ll=t,Rl=0,_l=null,Il=Hl=Bl=0,jl=Vl=null,null!==Oo){for(t=0;t<Oo.length;t++)if(null!==(r=(n=Oo[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var s=o.next;o.next=i,r.next=s}n.pending=r}Oo=null}return e}function pu(e,t){for(;;){var n=Nl;try{if(So(),fs.current=sa,ys){for(var r=gs.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ys=!1}if(ps=0,vs=ms=gs=null,bs=!1,ws=0,Ol.current=null,null===n||null===n.return){Rl=1,_l=t,Nl=null;break}e:{var s=e,a=n.return,l=n,u=t;if(t=Pl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,h=l,f=h.tag;if(0==(1&h.mode)&&(0===f||11===f||15===f)){var d=h.alternate;d?(h.updateQueue=d.updateQueue,h.memoizedState=d.memoizedState,h.lanes=d.lanes):(h.updateQueue=null,h.memoizedState=null)}var p=va(a);if(null!==p){p.flags&=-257,ya(p,a,l,0,t),1&p.mode&&ma(s,c,t),u=c;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(0==(1&t)){ma(s,c,t),mu();break e}u=Error(o(426))}else if(io&&1&l.mode){var v=va(a);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),ya(v,a,l,0,t),go(ca(u,l));break e}}s=u=ca(u,l),4!==Rl&&(Rl=2),null===Vl?Vl=[s]:Vl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Bo(s,pa(0,u,t));break e;case 1:l=u;var y=s.type,b=s.stateNode;if(0==(128&s.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===ql||!ql.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t,Bo(s,ga(s,l,t));break e}}s=s.return}while(null!==s)}xu(n)}catch(e){t=e,Nl===n&&null!==n&&(Nl=n=n.return);continue}break}}function gu(){var e=Ml.current;return Ml.current=sa,null===e?sa:e}function mu(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===Dl||0==(268435455&Bl)&&0==(268435455&Hl)||lu(Dl,Pl)}function vu(e,t){var n=Tl;Tl|=2;var r=gu();for(Dl===e&&Pl===t||(Wl=null,du(e,t));;)try{yu();break}catch(t){pu(e,t)}if(So(),Tl=n,Ml.current=r,null!==Nl)throw Error(o(261));return Dl=null,Pl=0,Rl}function yu(){for(;null!==Nl;)wu(Nl)}function bu(){for(;null!==Nl&&!Ge();)wu(Nl)}function wu(e){var t=Cl(e.alternate,e,Ll);e.memoizedProps=e.pendingProps,null===t?xu(e):Nl=t,Ol.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ka(n,t,Ll)))return void(Nl=n)}else{if(null!==(n=Ga(n,t)))return n.flags&=32767,void(Nl=n);if(null===e)return Rl=6,void(Nl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Nl=t);Nl=t=e}while(null!==t);0===Rl&&(Rl=5)}function Su(e,t,n){var r=bt,i=Al.transition;try{Al.transition=null,bt=1,function(e,t,n,r){do{ku()}while(null!==Gl);if(0!=(6&Tl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-st(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,s),e===Dl&&(Nl=Dl=null,Pl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Kl||(Kl=!0,Du(tt,(function(){return ku(),null}))),s=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||s){s=Al.transition,Al.transition=null;var a=bt;bt=1;var l=Tl;Tl|=4,Ol.current=null,function(e,t){if(ei=Wt,dr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var a=0,l=-1,u=-1,c=0,h=0,f=e,d=null;t:for(;;){for(var p;f!==n||0!==i&&3!==f.nodeType||(l=a+i),f!==s||0!==r&&3!==f.nodeType||(u=a+r),3===f.nodeType&&(a+=f.nodeValue.length),null!==(p=f.firstChild);)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++c===i&&(l=a),d===s&&++h===r&&(u=a),null!==(p=f.nextSibling))break;d=(f=d).parentNode}f=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Wt=!1,Xa=t;null!==Xa;)if(e=(t=Xa).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Xa=e;else for(;null!==Xa;){t=Xa;try{var g=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:vo(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(e){Eu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xa=e;break}Xa=t.return}g=nl,nl=!1}(e,n),vl(n,e),pr(ti),Wt=!!ei,ti=ei=null,e.current=n,bl(n,e,i),Qe(),Tl=l,bt=a,Al.transition=s}else e.current=n;if(Kl&&(Kl=!1,Gl=e,Ql=i),0===(s=e.pendingLanes)&&(ql=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),iu(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Ul)throw Ul=!1,e=Zl,Zl=null,e;0!=(1&Ql)&&0!==e.tag&&ku(),0!=(1&(s=e.pendingLanes))?e===Jl?Yl++:(Yl=0,Jl=e):Yl=0,Fi()}(e,t,n,r)}finally{Al.transition=i,bt=r}return null}function ku(){if(null!==Gl){var e=wt(Ql),t=Al.transition,n=bt;try{if(Al.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Ql=0,0!=(6&Tl))throw Error(o(331));var i=Tl;for(Tl|=4,Xa=e.current;null!==Xa;){var s=Xa,a=s.child;if(0!=(16&Xa.flags)){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xa=c;null!==Xa;){var h=Xa;switch(h.tag){case 0:case 11:case 15:rl(8,h,s)}var f=h.child;if(null!==f)f.return=h,Xa=f;else for(;null!==Xa;){var d=(h=Xa).sibling,p=h.return;if(sl(h),h===c){Xa=null;break}if(null!==d){d.return=p,Xa=d;break}Xa=p}}}var g=s.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Xa=s}}if(0!=(2064&s.subtreeFlags)&&null!==a)a.return=s,Xa=a;else e:for(;null!==Xa;){if(0!=(2048&(s=Xa).flags))switch(s.tag){case 0:case 11:case 15:rl(9,s,s.return)}var y=s.sibling;if(null!==y){y.return=s.return,Xa=y;break e}Xa=s.return}}var b=e.current;for(Xa=b;null!==Xa;){var w=(a=Xa).child;if(0!=(2064&a.subtreeFlags)&&null!==w)w.return=a,Xa=w;else e:for(a=b;null!==Xa;){if(0!=(2048&(l=Xa).flags))try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(e){Eu(l,l.return,e)}if(l===a){Xa=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Xa=x;break e}Xa=l.return}}if(Tl=i,Fi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,Al.transition=t}}return!1}function Cu(e,t,n){e=Ro(e,t=pa(0,t=ca(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),iu(e,t))}function Eu(e,t,n){if(3===e.tag)Cu(e,e,n);else for(;null!==t;){if(3===t.tag){Cu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=Ro(t,e=ga(t,e=ca(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),iu(t,e));break}}t=t.return}}function Mu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Dl===e&&(Pl&n)===n&&(4===Rl||3===Rl&&(130023424&Pl)===Pl&&500>Ye()-Fl?du(e,0):Il|=n),iu(e,t)}function Ou(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=Do(e,t))&&(vt(e,t,n),iu(e,n))}function Au(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function Tu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Ou(e,n)}function Du(e,t){return qe(e,t)}function Nu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pu(e,t,n,r){return new Nu(e,t,n,r)}function Lu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(e,t){var n=e.alternate;return null===n?((n=Pu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ru(e,t,n,r,i,s){var a=2;if(r=e,"function"==typeof e)Lu(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case k:return _u(n.children,i,s,t);case C:a=8,i|=8;break;case E:return(e=Pu(12,n,t,2|i)).elementType=E,e.lanes=s,e;case T:return(e=Pu(13,n,t,i)).elementType=T,e.lanes=s,e;case D:return(e=Pu(19,n,t,i)).elementType=D,e.lanes=s,e;case L:return Bu(n,i,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case M:a=10;break e;case O:a=9;break e;case A:a=11;break e;case N:a=14;break e;case P:a=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Pu(a,n,t,i)).elementType=e,t.type=r,t.lanes=s,t}function _u(e,t,n,r){return(e=Pu(7,e,r,t)).lanes=n,e}function Bu(e,t,n,r){return(e=Pu(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Hu(e,t,n){return(e=Pu(6,e,null,t)).lanes=n,e}function Iu(e,t,n){return(t=Pu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ju(e,t,n,r,i,o,s,a,l){return e=new Vu(e,t,n,a,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Pu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Po(o),e}function Fu(e){if(!e)return Oi;e:{if(Fe(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Pi(n))return Ri(e,n,t)}return t}function $u(e,t,n,r,i,o,s,a,l){return(e=ju(n,r,!0,e,0,o,0,a,l)).context=Fu(null),n=e.current,(o=zo(r=tu(),i=nu(n))).callback=null!=t?t:null,Ro(n,o,i),e.current.lanes=i,vt(e,i,r),iu(e,r),e}function Wu(e,t,n,r){var i=t.current,o=tu(),s=nu(i);return n=Fu(n),null===t.context?t.context=n:t.pendingContext=n,(t=zo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ro(i,t,s))&&(ru(e,i,s,o),_o(e,i,s)),s}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Zu(e,t),(e=e.alternate)&&Zu(e,t)}Cl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)wa=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return wa=!1,function(e,t,n){switch(t.tag){case 3:Da(t),po();break;case 5:ss(t);break;case 1:Pi(t.type)&&_i(t);break;case 4:is(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Mi(yo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Mi(ls,1&ls.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Ha(e,t,n):(Mi(ls,1&ls.current),null!==(e=Ua(e,t,n))?e.sibling:null);Mi(ls,1&ls.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return $a(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Mi(ls,ls.current),r)break;return null;case 22:case 23:return t.lanes=0,Ea(e,t,n)}return Ua(e,t,n)}(e,t,n);wa=0!=(131072&e.flags)}else wa=!1,io&&0!=(1048576&t.flags)&&Xi(t,Zi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wa(e,t),e=t.pendingProps;var i=Ni(t,Ai.current);Eo(t,n),i=Cs(null,t,r,e,i,n);var s=Es();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pi(r)?(s=!0,_i(t)):s=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Po(t),i.updater=Fo,t.stateNode=i,i._reactInternals=t,Zo(t,r,e,n),t=Ta(null,t,r,!0,s,n)):(t.tag=0,io&&s&&eo(t),xa(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wa(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Lu(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===N)return 14}return 2}(r),e=vo(r,e),i){case 0:t=Oa(null,t,r,e,n);break e;case 1:t=Aa(null,t,r,e,n);break e;case 11:t=Sa(null,t,r,e,n);break e;case 14:t=ka(null,t,r,vo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Oa(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 1:return r=t.type,i=t.pendingProps,Aa(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 3:e:{if(Da(t),null===e)throw Error(o(387));r=t.pendingProps,i=(s=t.memoizedState).element,Lo(e,t),Ho(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Na(e,t,r,n,i=ca(Error(o(423)),t));break e}if(r!==i){t=Na(e,t,r,n,i=ca(Error(o(424)),t));break e}for(ro=ui(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Jo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=Ua(e,t,n);break e}xa(e,t,r,n)}t=t.child}return t;case 5:return ss(t),null===e&&uo(t),r=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,a=i.children,ni(r,i)?a=null:null!==s&&ni(r,s)&&(t.flags|=32),Ma(e,t),xa(e,t,a,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Ha(e,t,n);case 4:return is(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Yo(t,null,r,n):xa(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Sa(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 7:return xa(e,t,t.pendingProps,n),t.child;case 8:case 12:return xa(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,Mi(yo,r._currentValue),r._currentValue=a,null!==s)if(ar(s.value,a)){if(s.children===i.children&&!Ti.current){t=Ua(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===s.tag){(u=zo(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var h=(c=c.shared).pending;null===h?u.next=u:(u.next=h.next,h.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Co(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(o(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Co(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}xa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Eo(t,n),r=r(i=Mo(i)),t.flags|=1,xa(e,t,r,n),t.child;case 14:return i=vo(r=t.type,t.pendingProps),ka(e,t,r,i=vo(r.type,i),n);case 15:return Ca(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vo(r,i),Wa(e,t),t.tag=1,Pi(r)?(e=!0,_i(t)):e=!1,Eo(t,n),Wo(t,r,i),Zo(t,r,i,n),Ta(null,t,r,!0,e,n);case 19:return $a(e,t,n);case 22:return Ea(e,t,n)}throw Error(o(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function Gu(e){this._internalRoot=e}function Qu(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function ec(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if("function"==typeof i){var a=i;i=function(){var e=Uu(s);a.call(e)}}Wu(t,s,e,i)}else s=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Uu(s);o.call(e)}}var s=$u(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=s,e[pi]=s.current,Fr(8===e.nodeType?e.parentNode:e),hu(),s}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var a=r;r=function(){var e=Uu(l);a.call(e)}}var l=ju(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[pi]=l.current,Fr(8===e.nodeType?e.parentNode:e),hu((function(){Wu(t,l,n,r)})),l}(n,t,e,i,r);return Uu(s)}Qu.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Wu(e,t,null,null)},Qu.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;hu((function(){Wu(null,e,null,null)})),t[pi]=null}},Qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Bt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ht(t.pendingLanes);0!==n&&(yt(t,1|n),iu(t,Ye()),0==(6&Tl)&&($l=Ye()+500,Fi()))}break;case 13:hu((function(){var t=Do(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),qu(e,1)}},St=function(e){if(13===e.tag){var t=Do(e,134217728);null!==t&&ru(t,e,134217728,tu()),qu(e,134217728)}},kt=function(e){if(13===e.tag){var t=nu(e),n=Do(e,t);null!==n&&ru(n,e,t,tu()),qu(e,t)}},Ct=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xi(r);if(!i)throw Error(o(90));q(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=cu,Te=hu;var tc={usingClientEntryPoint:!1,Events:[bi,wi,xi,Me,Oe,cu]},nc={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{it=ic.inject(rc),ot=ic}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yu(e))throw Error(o(299));var n=!1,r="",i=Ku;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=ju(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Fr(8===e.nodeType?e.parentNode:e),new Gu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return hu(e)},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(o(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,s="",a=Ku;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=$u(t,null,e,1,null!=n?n:null,i,0,s,a),e[pi]=t.current,Fr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Qu(t)},t.render=function(e,t,n){if(!Ju(t))throw Error(o(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(o(40));return!!e._reactRootContainer&&(hu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},20745:(e,t,n)=>{"use strict";var r=n(73935);t.s=r.createRoot,r.hydrateRoot},73935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(64448)},8193:(e,t,n)=>{"use strict";n.d(t,{Ehc:()=>s,FtK:()=>i,dT6:()=>a,rYR:()=>o});var r=n(44405);function i(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"}}]})(e)}function o(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]})(e)}function s(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 0 0 0-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]})(e)}function a(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v136h656V256H712v48z"}},{tag:"path",attr:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z"}}]})(e)}},47516:(e,t,n)=>{"use strict";n.d(t,{PNI:()=>o,a7d:()=>s,pu9:()=>i});var r=n(44405);function i(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.999 8.5h2c0-2.837-2.755-4.131-5-4.429V2h-2v2.071c-2.245.298-5 1.592-5 4.429 0 2.706 2.666 4.113 5 4.43v4.97c-1.448-.251-3-1.024-3-2.4h-2c0 2.589 2.425 4.119 5 4.436V22h2v-2.07c2.245-.298 5-1.593 5-4.43s-2.755-4.131-5-4.429V6.1c1.33.239 3 .941 3 2.4zm-8 0c0-1.459 1.67-2.161 3-2.4v4.799c-1.371-.253-3-1.002-3-2.399zm8 7c0 1.459-1.67 2.161-3 2.4v-4.8c1.33.239 3 .941 3 2.4z"}}]})(e)}function o(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m6 20 4-4H7V4H5v12H2zm5-12h9v2h-9zm0 4h7v2h-7zm0-8h11v2H11zm0 12h5v2h-5z"}}]})(e)}function s(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11 9h9v2h-9zm0 4h7v2h-7zm0-8h11v2H11zm0 12h5v2h-5zm-6 3h2V8h3L6 4 2 8h3z"}}]})(e)}},80471:(e,t,n)=>{"use strict";n.d(t,{UCm:()=>o,bwQ:()=>i});var r=n(44405);function i(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M16.9498 5.96781L15.5356 7.38203L13 4.84646V17.0421H11V4.84653L8.46451 7.38203L7.05029 5.96781L12 1.01807L16.9498 5.96781Z",fill:"currentColor"}},{tag:"path",attr:{d:"M5 20.9819V10.9819H9V8.98193H3V22.9819H21V8.98193H15V10.9819H19V20.9819H5Z",fill:"currentColor"}}]})(e)}function o(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1H1V9H9V6H11V20H15V23H23V15H15V18H13V6H15V9H23V1H15V4H9V1ZM21 3H17V7H21V3ZM17 17H21V21H17V17Z",fill:"currentColor"}}]})(e)}},89583:(e,t,n)=>{"use strict";n.d(t,{AeW:()=>d,EAB:()=>l,Fe1:()=>f,Mef:()=>c,PKR:()=>i,RiI:()=>o,YHB:()=>u,fkU:()=>p,gjK:()=>h,s$2:()=>s,tvD:()=>a});var r=n(44405);function i(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M333.49 238a122 122 0 0 0 27-65.21C367.87 96.49 308 32 233.42 32H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h31.87v288H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h209.32c70.8 0 134.14-51.75 141-122.4 4.74-48.45-16.39-92.06-50.83-119.6zM145.66 112h87.76a48 48 0 0 1 0 96h-87.76zm87.76 288h-87.76V288h87.76a56 56 0 0 1 0 112z"}}]})(e)}function o(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}}]})(e)}function s(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"}}]})(e)}function a(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"}}]})(e)}function l(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"}}]})(e)}function u(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 96v320h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H320a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V288H160v128h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V96H32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-32v128h192V96h-32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16z"}}]})(e)}function c(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M320 48v32a16 16 0 0 1-16 16h-62.76l-80 320H208a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h62.76l80-320H112a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16z"}}]})(e)}function h(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"}}]})(e)}function f(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M61.77 401l17.5-20.15a19.92 19.92 0 0 0 5.07-14.19v-3.31C84.34 356 80.5 352 73 352H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h22.83a157.41 157.41 0 0 0-11 12.31l-5.61 7c-4 5.07-5.25 10.13-2.8 14.88l1.05 1.93c3 5.76 6.29 7.88 12.25 7.88h4.73c10.33 0 15.94 2.44 15.94 9.09 0 4.72-4.2 8.22-14.36 8.22a41.54 41.54 0 0 1-15.47-3.12c-6.49-3.88-11.74-3.5-15.6 3.12l-5.59 9.31c-3.72 6.13-3.19 11.72 2.63 15.94 7.71 4.69 20.38 9.44 37 9.44 34.16 0 48.5-22.75 48.5-44.12-.03-14.38-9.12-29.76-28.73-34.88zM496 224H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h64a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H64V40a8 8 0 0 0-8-8H32a8 8 0 0 0-7.14 4.42l-8 16A8 8 0 0 0 24 64h8v64H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8zm-3.91 160H80a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H41.32c3.29-10.29 48.34-18.68 48.34-56.44 0-29.06-25-39.56-44.47-39.56-21.36 0-33.8 10-40.46 18.75-4.37 5.59-3 10.84 2.8 15.37l8.58 6.88c5.61 4.56 11 2.47 16.12-2.44a13.44 13.44 0 0 1 9.46-3.84c3.33 0 9.28 1.56 9.28 8.75C51 248.19 0 257.31 0 304.59v4C0 316 5.08 320 12.09 320z"}}]})(e)}function d(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"}}]})(e)}function p(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"}}]})(e)}},60155:(e,t,n)=>{"use strict";n.d(t,{Q0w:()=>i,xXr:()=>o});var r=n(44405);function i(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 480H48a32 32 0 01-32-32V112a32 32 0 0132-32h16a32 32 0 0132 32v336a32 32 0 01-32 32zm176-304a32 32 0 00-32-32h-64a32 32 0 00-32 32v28a4 4 0 004 4h120a4 4 0 004-4zM112 448a32 32 0 0032 32h64a32 32 0 0032-32v-30a2 2 0 00-2-2H114a2 2 0 00-2 2z"}},{tag:"rect",attr:{width:"128",height:"144",x:"112",y:"240",rx:"2",ry:"2"}},{tag:"path",attr:{d:"M320 480h-32a32 32 0 01-32-32V64a32 32 0 0132-32h32a32 32 0 0132 32v384a32 32 0 01-32 32zm175.89-34.55l-32.23-340c-1.48-15.65-16.94-27-34.53-25.31l-31.85 3c-17.59 1.67-30.65 15.71-29.17 31.36l32.23 340c1.48 15.65 16.94 27 34.53 25.31l31.85-3c17.59-1.67 30.65-15.71 29.17-31.36z"}}]})(e)}function o(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M384 224v184a40 40 0 01-40 40H104a40 40 0 01-40-40V168a40 40 0 0140-40h167.48M336 64h112v112M224 288L440 72"}}]})(e)}},44405:(e,t,n)=>{"use strict";n.d(t,{w_:()=>u});var r=n(67294),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)},a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function l(e){return e&&e.map((function(e,t){return r.createElement(e.tag,s({key:t},e.attr),l(e.child))}))}function u(e){return function(t){return r.createElement(c,s({attr:s({},e.attr)},t),l(e.child))}}function c(e){var t=function(t){var n,i=e.attr,o=e.size,l=e.title,u=a(e,["attr","size","title"]),c=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,u,{className:n,style:s(s({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==o?r.createElement(o.Consumer,null,(function(e){return t(e)})):t(i)}},5434:(e,t,n)=>{"use strict";n.d(t,{b9P:()=>o,mvF:()=>i});var r=n(44405);function i(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}}]})(e)}function o(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}},79352:(e,t,n)=>{"use strict";n.d(t,{AN:()=>N,B4m:()=>ee,CA9:()=>G,D27:()=>k,Dx2:()=>Y,EgU:()=>c,GH5:()=>p,IGw:()=>a,LB8:()=>te,M$4:()=>Z,NuV:()=>K,PAM:()=>z,PwW:()=>re,Qcu:()=>ie,RwU:()=>f,Tvk:()=>F,U$J:()=>i,XBp:()=>T,Xgw:()=>X,Xhu:()=>m,Xt2:()=>A,YTS:()=>s,ZXJ:()=>B,Ztq:()=>h,_gw:()=>M,a4s:()=>D,aJY:()=>x,cpK:()=>u,d26:()=>v,dR_:()=>Q,dgb:()=>ae,eSQ:()=>U,ebp:()=>_,fi0:()=>oe,gP1:()=>O,gcy:()=>$,gp_:()=>L,iB2:()=>w,j6O:()=>q,jW7:()=>H,jZo:()=>V,jfD:()=>j,lBz:()=>b,lSs:()=>E,mV1:()=>d,msm:()=>o,nzV:()=>I,p22:()=>R,q7V:()=>S,qA2:()=>y,qZq:()=>P,qvv:()=>l,tJT:()=>g,tuW:()=>se,x2F:()=>C,xuy:()=>W,yrM:()=>J,zXH:()=>ne});var r=n(44405);function i(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 20a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9H1l10.327-9.388a1 1 0 0 1 1.346 0L23 11h-3v9zm-8-3l3.359-3.359a2.25 2.25 0 1 0-3.182-3.182l-.177.177-.177-.177a2.25 2.25 0 1 0-3.182 3.182L12 17z"}}]}]})(e)}function o(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 3h9.382a1 1 0 0 1 .894.553L14 5h6a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1h-6.382a1 1 0 0 1-.894-.553L12 16H5v6H3V3z"}}]}]})(e)}function s(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm9.06 8.683L5.648 6.238 4.353 7.762l7.72 6.555 7.581-6.56-1.308-1.513-6.285 5.439z"}}]}]})(e)}function a(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.8 19L14 22.5 11.2 19H6a1 1 0 0 1-1-1V7.103a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1V18a1 1 0 0 1-1 1h-5.2zM2 2h17v2H3v11H1V3a1 1 0 0 1 1-1z"}}]}]})(e)}function l(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.455 19L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455zM11 14v2h2v-2h-2zM8.567 8.813l1.962.393A1.5 1.5 0 1 1 12 11h-1v2h1a3.5 3.5 0 1 0-3.433-4.187z"}}]}]})(e)}function u(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9.243 19H21v2H3v-4.243l9.9-9.9 4.242 4.244L9.242 19zm5.07-13.556l2.122-2.122a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414l-2.122 2.121-4.242-4.242z"}}]}]})(e)}function c(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9.683 7.562L12 9.88l6.374-6.375a2 2 0 0 1 2.829 0l.707.707L9.683 16.438a4 4 0 1 1-2.121-2.121L9.88 12 7.562 9.683a4 4 0 1 1 2.121-2.121zM6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm9.535-6.587l6.375 6.376-.707.707a2 2 0 0 1-2.829 0l-4.96-4.961 2.12-2.122z"}}]}]})(e)}function h(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 3v2H6v14h3v2H4V3h5zm6 0h5v18h-5v-2h3V5h-3V3z"}}]}]})(e)}function f(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.056 8.3a7.01 7.01 0 0 1 .199-.3h11.49c.069.098.135.199.199.3l2.02-1.166 1 1.732-2.213 1.278c.162.59.249 1.213.249 1.856v1h3v2h-3c0 .953-.19 1.862-.536 2.69l2.5 1.444-1 1.732-2.526-1.458A6.992 6.992 0 0 1 13 21.929V14h-2v7.93a6.992 6.992 0 0 1-4.438-2.522l-2.526 1.458-1-1.732 2.5-1.443A6.979 6.979 0 0 1 5 15H2v-2h3v-1c0-.643.087-1.265.249-1.856L3.036 8.866l1-1.732L6.056 8.3zM8 6a4 4 0 1 1 8 0H8z"}}]}]})(e)}function d(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M24 12l-5.657 5.657-1.414-1.414L21.172 12l-4.243-4.243 1.414-1.414L24 12zM2.828 12l4.243 4.243-1.414 1.414L0 12l5.657-5.657L7.07 7.757 2.828 12zm6.96 9H7.66l6.552-18h2.128L9.788 21z"}}]}]})(e)}function p(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.923 21C5.113 18.664 4 15.493 4 12c0-3.493 1.113-6.664 2.923-9h2.014C7.235 5.388 6.2 8.542 6.2 12s1.035 6.612 2.737 9H6.923zm10.151 0H15.06c1.702-2.388 2.737-5.542 2.737-9s-1.035-6.612-2.737-9h2.014c1.81 2.336 2.923 5.507 2.923 9 0 3.493-1.112 6.664-2.923 9z"}}]}]})(e)}function g(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 12l-7.071 7.071-1.414-1.414L8.172 12 2.515 6.343 3.929 4.93 11 12zm0 7h10v2H11v-2z"}}]}]})(e)}function m(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 4a6 6 0 0 1 6 6v4a6 6 0 0 1-6 6H7a6 6 0 0 1-6-6v-4a6 6 0 0 1 6-6h10zm-7 5H8v2H6v2h1.999L8 15h2l-.001-2H12v-2h-2V9zm8 4h-2v2h2v-2zm-2-4h-2v2h2V9z"}}]}]})(e)}function v(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 21v-8H6v8H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h13l4 4v13a1 1 0 0 1-1 1h-2zm-2 0H8v-6h8v6z"}}]}]})(e)}function y(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1.001 1.001 0 0 1 3 21l.003-14c0-.552.45-1 1.007-1H7zM5.003 8L5 20h10V8H5.003zM9 6h8v10h2V4H9v2z"}}]}]})(e)}function b(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 22H5a3 3 0 0 1-3-3V3a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v7h4v9a3 3 0 0 1-3 3zm-1-10v7a1 1 0 0 0 2 0v-7h-2zM5 6v6h6V6H5zm0 7v2h10v-2H5zm0 3v2h10v-2H5zm2-8h2v2H7V8z"}}]}]})(e)}function w(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M12.001 4.529c2.349-2.109 5.979-2.039 8.242.228 2.262 2.268 2.34 5.88.236 8.236l-8.48 8.492-8.478-8.492c-2.104-2.356-2.025-5.974.236-8.236 2.265-2.264 5.888-2.34 8.244-.228z"}}]}]})(e)}function x(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M17 2v2h-1v14c0 2.21-1.79 4-4 4s-4-1.79-4-4V4H7V2h10zm-4 13c-.552 0-1 .448-1 1s.448 1 1 1 1-.448 1-1-.448-1-1-1zm-2-3c-.552 0-1 .448-1 1s.448 1 1 1 1-.448 1-1-.448-1-1-1zm3-8h-4v4h4V4z"}}]}]})(e)}function S(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476 0-.237-.013-1.024-.013-1.862-2.512.463-3.162-.612-3.362-1.175-.113-.288-.6-1.175-1.025-1.413-.35-.187-.85-.65-.013-.662.788-.013 1.35.725 1.538 1.025.9 1.512 2.338 1.087 2.912.825.088-.65.35-1.087.638-1.337-2.225-.25-4.55-1.113-4.55-4.938 0-1.088.387-1.987 1.025-2.688-.1-.25-.45-1.275.1-2.65 0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337 1.912-1.3 2.75-1.024 2.75-1.024.55 1.375.2 2.4.1 2.65.637.7 1.025 1.587 1.025 2.687 0 3.838-2.337 4.688-4.562 4.938.362.312.675.912.675 1.85 0 1.337-.013 2.412-.013 2.75 0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z"}}]}]})(e)}function k(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3.064 7.51A9.996 9.996 0 0 1 12 2c2.695 0 4.959.99 6.69 2.605l-2.867 2.868C14.786 6.482 13.468 5.977 12 5.977c-2.605 0-4.81 1.76-5.595 4.123-.2.6-.314 1.24-.314 1.9 0 .66.114 1.3.314 1.9.786 2.364 2.99 4.123 5.595 4.123 1.345 0 2.49-.355 3.386-.955a4.6 4.6 0 0 0 1.996-3.018H12v-3.868h9.418c.118.654.182 1.336.182 2.045 0 3.046-1.09 5.61-2.982 7.35C16.964 21.105 14.7 22 12 22A9.996 9.996 0 0 1 2 12c0-1.614.386-3.14 1.064-4.49z"}}]}]})(e)}function C(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M22.162 5.656a8.384 8.384 0 0 1-2.402.658A4.196 4.196 0 0 0 21.6 4c-.82.488-1.719.83-2.656 1.015a4.182 4.182 0 0 0-7.126 3.814 11.874 11.874 0 0 1-8.62-4.37 4.168 4.168 0 0 0-.566 2.103c0 1.45.738 2.731 1.86 3.481a4.168 4.168 0 0 1-1.894-.523v.052a4.185 4.185 0 0 0 3.355 4.101 4.21 4.21 0 0 1-1.89.072A4.185 4.185 0 0 0 7.97 16.65a8.394 8.394 0 0 1-6.191 1.732 11.83 11.83 0 0 0 6.41 1.88c7.693 0 11.9-6.373 11.9-11.9 0-.18-.005-.362-.013-.54a8.496 8.496 0 0 0 2.087-2.165z"}}]}]})(e)}function E(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 9.874v10.054c3.619-.453 6.487-3.336 6.938-6.972H17L20.704 7A10.041 10.041 0 0 1 22 11.95C22 17.5 17.523 22 12 22S2 17.5 2 11.95c0-1.8.471-3.489 1.296-4.95L7 12.956H4.062c.451 3.636 3.32 6.519 6.938 6.972V9.874A4.002 4.002 0 0 1 12 2a4 4 0 0 1 1 7.874zM12 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"}}]}]})(e)}function M(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zM7.197 14.682l-2.175 2.174a8.549 8.549 0 0 0 1.818 1.899l.305.223 2.173-2.175a5.527 5.527 0 0 1-1.98-1.883l-.14-.238zm9.606 0a5.527 5.527 0 0 1-1.883 1.98l-.238.14 2.174 2.176a8.549 8.549 0 0 0 1.899-1.818l.223-.304-2.175-2.174zM12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM7.145 5.022a8.549 8.549 0 0 0-1.9 1.818l-.223.305 2.175 2.173a5.527 5.527 0 0 1 1.883-1.98l.238-.14-2.173-2.176zm9.71 0l-2.173 2.175a5.527 5.527 0 0 1 1.98 1.883l.14.238 2.176-2.173a8.549 8.549 0 0 0-1.818-1.9l-.304-.223z"}}]}]})(e)}function O(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zM9 9v6h2V9H9zm4 0v6h2V9h-2z"}}]}]})(e)}function A(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zM10.622 8.415a.4.4 0 0 0-.622.332v6.506a.4.4 0 0 0 .622.332l4.879-3.252a.4.4 0 0 0 0-.666l-4.88-3.252z"}}]}]})(e)}function T(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"}}]}]})(e)}function D(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 20v1.932a.5.5 0 0 1-.82.385l-4.12-3.433A.5.5 0 0 1 3.382 18H18a2 2 0 0 0 2-2V8h2v8a4 4 0 0 1-4 4H8zm8-16V2.068a.5.5 0 0 1 .82-.385l4.12 3.433a.5.5 0 0 1-.321.884H6a2 2 0 0 0-2 2v8H2V8a4 4 0 0 1 4-4h10zm-5 4h2v8h-2v-6H9V9l2-1z"}}]}]})(e)}function N(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 10.667l9.223-6.149a.5.5 0 0 1 .777.416v14.132a.5.5 0 0 1-.777.416L12 13.333v5.733a.5.5 0 0 1-.777.416L.624 12.416a.5.5 0 0 1 0-.832l10.599-7.066a.5.5 0 0 1 .777.416v5.733z"}}]}]})(e)}function P(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M8 11.333l10.223-6.815a.5.5 0 0 1 .777.416v14.132a.5.5 0 0 1-.777.416L8 12.667V19a1 1 0 0 1-2 0V5a1 1 0 1 1 2 0v6.333z"}}]}]})(e)}function L(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 12.667L5.777 19.482A.5.5 0 0 1 5 19.066V4.934a.5.5 0 0 1 .777-.416L16 11.333V5a1 1 0 0 1 2 0v14a1 1 0 0 1-2 0v-6.333z"}}]}]})(e)}function z(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 13.333l-9.223 6.149A.5.5 0 0 1 2 19.066V4.934a.5.5 0 0 1 .777-.416L12 10.667V4.934a.5.5 0 0 1 .777-.416l10.599 7.066a.5.5 0 0 1 0 .832l-10.599 7.066a.5.5 0 0 1-.777-.416v-5.733z"}}]}]})(e)}function R(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"}}]}]})(e)}function _(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 16l-6-6h12z"}}]}]})(e)}function B(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z"}}]}]})(e)}function H(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10.828 12l4.95 4.95-1.414 1.414L8 12l6.364-6.364 1.414 1.414z"}}]}]})(e)}function I(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.172 11l-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z"}}]}]})(e)}function V(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 12l-6 6V6z"}}]}]})(e)}function j(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13.172 12l-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"}}]}]})(e)}function F(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8l6 6H6z"}}]}]})(e)}function $(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 10.828l-4.95 4.95-1.414-1.414L12 8l6.364 6.364-1.414 1.414z"}}]}]})(e)}function W(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 15.172l9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z"}}]}]})(e)}function U(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"}}]}]})(e)}function Z(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm-8 5v6h2v-6H9zm4 0v6h2v-6h-2zM9 4v2h6V4H9z"}}]}]})(e)}function q(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-1-5h2v2h-2v-2zm0-8h2v6h-2V7z"}}]}]})(e)}function K(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4.52 5.934L1.393 2.808l1.415-1.415 19.799 19.8-1.415 1.414-3.31-3.31A10.949 10.949 0 0 1 12 21c-5.392 0-9.878-3.88-10.819-9a10.982 10.982 0 0 1 3.34-6.066zm10.237 10.238l-1.464-1.464a3 3 0 0 1-4.001-4.001L7.828 9.243a5 5 0 0 0 6.929 6.929zM7.974 3.76C9.221 3.27 10.58 3 12 3c5.392 0 9.878 3.88 10.819 9a10.947 10.947 0 0 1-2.012 4.592l-3.86-3.86a5 5 0 0 0-5.68-5.68L7.974 3.761z"}}]}]})(e)}function G(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-11v6h2v-6h-2zm0-4v2h2V7h-2z"}}]}]})(e)}function Q(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2 18h7v2H2v-2zm0-7h9v2H2v-2zm0-7h20v2H2V4zm18.674 9.025l1.156-.391 1 1.732-.916.805a4.017 4.017 0 0 1 0 1.658l.916.805-1 1.732-1.156-.391c-.41.37-.898.655-1.435.83L19 21h-2l-.24-1.196a3.996 3.996 0 0 1-1.434-.83l-1.156.392-1-1.732.916-.805a4.017 4.017 0 0 1 0-1.658l-.916-.805 1-1.732 1.156.391c.41-.37.898-.655 1.435-.83L17 11h2l.24 1.196c.536.174 1.024.46 1.434.83zM18 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"}}]}]})(e)}function Y(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 10h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1V9a7 7 0 1 1 14 0v1zm-2 0V9A5 5 0 0 0 7 9v1h10zm-6 4v4h2v-4h-2z"}}]}]})(e)}function J(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 11H4V3a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-8h6v3l5-4-5-4v3z"}}]}]})(e)}function X(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 2h14a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm4 9V8l-5 4 5 4v-3h6v-2H9z"}}]}]})(e)}function ee(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"}}]}]})(e)}function te(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 3c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 14c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]}]})(e)}function ne(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-1-5h2v2h-2v-2zm2-1.645V14h-2v-1.5a1 1 0 0 1 1-1 1.5 1.5 0 1 0-1.471-1.794l-1.962-.393A3.501 3.501 0 1 1 13 13.355z"}}]}]})(e)}function re(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5.463 4.433A9.961 9.961 0 0 1 12 2c5.523 0 10 4.477 10 10 0 2.136-.67 4.116-1.81 5.74L17 12h3A8 8 0 0 0 6.46 6.228l-.997-1.795zm13.074 15.134A9.961 9.961 0 0 1 12 22C6.477 22 2 17.523 2 12c0-2.136.67-4.116 1.81-5.74L7 12H4a8 8 0 0 0 13.54 5.772l.997 1.795z"}}]}]})(e)}function ie(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18.031 16.617l4.283 4.282-1.415 1.415-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9 9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.868-3.133-7-7-7-3.868 0-7 3.132-7 7 0 3.867 3.132 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15z"}}]}]})(e)}function oe(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17l-5.878 3.59 1.598-6.7-5.23-4.48 6.865-.55L12 2.5l2.645 6.36 6.866.55-5.231 4.48 1.598 6.7z"}}]}]})(e)}function se(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 12.586l4.243 4.242-1.415 1.415L13 16.415V22h-2v-5.587l-1.828 1.83-1.415-1.415L12 12.586zM12 2a7.001 7.001 0 0 1 6.954 6.194 5.5 5.5 0 0 1-.953 10.784L18 17a6 6 0 0 0-11.996-.225L6 17v1.978a5.5 5.5 0 0 1-.954-10.784A7 7 0 0 1 12 2z"}}]}]})(e)}function ae(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 22a8 8 0 1 1 16 0H4zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6z"}}]}]})(e)}},14578:(e,t,n)=>{"use strict";n.d(t,{n2W:()=>o,xv9:()=>i});var r=n(44405);function i(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M10.57 1.14l3.28 3.3.15.36v9.7l-.5.5h-11l-.5-.5v-13l.5-.5h7.72l.35.14zM10 5h3l-3-3v3zM3 2v12h10V6H9.5L9 5.5V2H3zm2.062 7.533l1.817-1.828L6.17 7 4 9.179v.707l2.171 2.174.707-.707-1.816-1.82zM8.8 7.714l.7-.709 2.189 2.175v.709L9.5 12.062l-.705-.709 1.831-1.82L8.8 7.714z"}}]})(e)}function o(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 2l-.5.5v11l.5.5H4v-1H2V3h2V2H1.5zm13 12l.5-.5v-11l-.5-.5H12v1h2v10h-2v1h2.5z"}}]})(e)}},69921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case h:case o:case a:case s:case d:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case g:case l:return e;default:return t}}case i:return t}}}function S(e){return x(e)===h}t.AsyncMode=c,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||x(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===h||e===a||e===s||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},59864:(e,t,n)=>{"use strict";e.exports=n(69921)},70743:(e,t,n)=>{"use strict";n.d(t,{zt:()=>y,wU:()=>C,I0:()=>S,v9:()=>p});var r=n(61688),i=n(52798),o=n(73935);let s=function(e){e()};const a=()=>s;var l=n(67294);const u=(0,l.createContext)(null);function c(){return(0,l.useContext)(u)}let h=()=>{throw new Error("uSES not initialized!")};const f=(e,t)=>e===t;function d(e=u){const t=e===u?c:()=>(0,l.useContext)(e);return function(e,n=f){const{store:r,subscription:i,getServerState:o}=t(),s=h(i.addNestedSub,r.getState,o||r.getState,e,n);return(0,l.useDebugValue)(s),s}}const p=d();n(8679),n(72973);const g={notify(){},get:()=>[]},m="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect;let v=null;const y=function({store:e,context:t,children:n,serverState:r}){const i=(0,l.useMemo)((()=>{const t=function(e,t){let n,r=g;function i(){s.onStateChange&&s.onStateChange()}function o(){n||(n=e.subscribe(i),r=function(){const e=a();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}const s={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=g)},getListeners:()=>r};return s}(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0}}),[e,r]),o=(0,l.useMemo)((()=>e.getState()),[e]);m((()=>{const{subscription:t}=i;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),o!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[i,o]);const s=t||u;return l.createElement(s.Provider,{value:i},n)};function b(e=u){const t=e===u?c:()=>(0,l.useContext)(e);return function(){const{store:e}=t();return e}}const w=b();function x(e=u){const t=e===u?w:b(e);return function(){return t().dispatch}}const S=x();function k(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(k(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!k(e[n[r]],t[n[r]]))return!1;return!0}var E,M;E=i.useSyncExternalStoreWithSelector,h=E,(e=>{v=e})(r.useSyncExternalStore),M=o.unstable_batchedUpdates,s=M},88359:(e,t)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference")},72973:(e,t,n)=>{"use strict";n(88359)},79655:(e,t,n)=>{"use strict";n.d(t,{VK:()=>u,lr:()=>g,rU:()=>f});var r=n(67294),i=n(89250),o=n(12599);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function a(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}const l=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function u(e){let{basename:t,children:n,window:s}=e,a=r.useRef();null==a.current&&(a.current=(0,o.lX)({window:s,v5Compat:!0}));let l=a.current,[u,c]=r.useState({action:l.action,location:l.location});return r.useLayoutEffect((()=>l.listen(c)),[l]),r.createElement(i.F0,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l})}const c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,h=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,f=r.forwardRef((function(e,t){let n,{onClick:a,relative:u,reloadDocument:f,replace:d,state:p,target:g,to:m,preventScrollReset:v}=e,y=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,l),{basename:b}=r.useContext(i.Us),w=!1;if("string"==typeof m&&h.test(m)&&(n=m,c))try{let e=new URL(window.location.href),t=m.startsWith("//")?new URL(e.protocol+m):new URL(m),n=(0,o.Zn)(t.pathname,b);t.origin===e.origin&&null!=n?m=n+t.search+t.hash:w=!0}catch(e){}let x=(0,i.oQ)(m,{relative:u}),S=function(e,t){let{target:n,replace:s,state:a,preventScrollReset:l,relative:u}=void 0===t?{}:t,c=(0,i.s0)(),h=(0,i.TH)(),f=(0,i.WU)(e,{relative:u});return r.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==s?s:(0,o.Ep)(h)===(0,o.Ep)(f);c(e,{replace:n,state:a,preventScrollReset:l,relative:u})}}),[h,c,f,s,a,n,e,l,u])}(m,{replace:d,state:p,target:g,preventScrollReset:v,relative:u});return r.createElement("a",s({},y,{href:n||x,onClick:w||f?a:function(e){a&&a(e),e.defaultPrevented||S(e)},ref:t,target:g}))}));var d,p;function g(e){let t=r.useRef(a(e)),n=r.useRef(!1),o=(0,i.TH)(),s=r.useMemo((()=>function(e,t){let n=a(e);if(t)for(let e of t.keys())n.has(e)||t.getAll(e).forEach((t=>{n.append(e,t)}));return n}(o.search,n.current?null:t.current)),[o.search]),l=(0,i.s0)(),u=r.useCallback(((e,t)=>{const r=a("function"==typeof e?e(s):e);n.current=!0,l("?"+r,t)}),[l,s]);return[s,u]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(d||(d={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(p||(p={}))},89250:(e,t,n)=>{"use strict";n.d(t,{AW:()=>T,F0:()=>D,Fg:()=>A,TH:()=>p,UO:()=>y,Us:()=>l,WU:()=>b,Z5:()=>N,bS:()=>g,oQ:()=>f,s0:()=>v});var r=n(67294),i=n(12599);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}const s=r.createContext(null),a=r.createContext(null),l=r.createContext(null),u=r.createContext(null),c=r.createContext({outlet:null,matches:[],isDataRoute:!1}),h=r.createContext(null);function f(e,t){let{relative:n}=void 0===t?{}:t;d()||(0,i.J0)(!1);let{basename:o,navigator:s}=r.useContext(l),{hash:a,pathname:u,search:c}=b(e,{relative:n}),h=u;return"/"!==o&&(h="/"===u?o:(0,i.RQ)([o,u])),s.createHref({pathname:h,search:c,hash:a})}function d(){return null!=r.useContext(u)}function p(){return d()||(0,i.J0)(!1),r.useContext(u).location}function g(e){d()||(0,i.J0)(!1);let{pathname:t}=p();return r.useMemo((()=>(0,i.LX)(e,t)),[t,e])}function m(e){r.useContext(l).static||r.useLayoutEffect(e)}function v(){let{isDataRoute:e}=r.useContext(c);return e?function(){let{router:e}=function(e){let t=r.useContext(s);return t||(0,i.J0)(!1),t}(C.UseNavigateStable),t=O(E.UseNavigateStable),n=r.useRef(!1);return m((()=>{n.current=!0})),r.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,o({fromRouteId:t},i)))}),[e,t])}():function(){d()||(0,i.J0)(!1);let e=r.useContext(s),{basename:t,navigator:n}=r.useContext(l),{matches:o}=r.useContext(c),{pathname:a}=p(),u=JSON.stringify((0,i.Zq)(o).map((e=>e.pathnameBase))),h=r.useRef(!1);return m((()=>{h.current=!0})),r.useCallback((function(r,o){if(void 0===o&&(o={}),!h.current)return;if("number"==typeof r)return void n.go(r);let s=(0,i.pC)(r,JSON.parse(u),a,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:(0,i.RQ)([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,u,a,e])}()}function y(){let{matches:e}=r.useContext(c),t=e[e.length-1];return t?t.params:{}}function b(e,t){let{relative:n}=void 0===t?{}:t,{matches:o}=r.useContext(c),{pathname:s}=p(),a=JSON.stringify((0,i.Zq)(o).map((e=>e.pathnameBase)));return r.useMemo((()=>(0,i.pC)(e,JSON.parse(a),s,"path"===n)),[e,a,s,n])}function w(){let e=function(){var e;let t=r.useContext(h),n=function(e){let t=r.useContext(a);return t||(0,i.J0)(!1),t}(E.UseRouteError),o=O(E.UseRouteError);return t||(null==(e=n.errors)?void 0:e[o])}(),t=(0,i.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},n):null,null)}const x=r.createElement(w,null);class S extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?r.createElement(c.Provider,{value:this.props.routeContext},r.createElement(h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function k(e){let{routeContext:t,match:n,children:i}=e,o=r.useContext(s);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(c.Provider,{value:t},i)}var C,E,M;function O(e){let t=function(e){let t=r.useContext(c);return t||(0,i.J0)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,i.J0)(!1),n.route.id}function A(e){let{to:t,replace:n,state:o,relative:s}=e;d()||(0,i.J0)(!1);let{matches:a}=r.useContext(c),{pathname:l}=p(),u=v(),h=(0,i.pC)(t,(0,i.Zq)(a).map((e=>e.pathnameBase)),l,"path"===s),f=JSON.stringify(h);return r.useEffect((()=>u(JSON.parse(f),{replace:n,state:o,relative:s})),[u,f,s,n,o]),null}function T(e){(0,i.J0)(!1)}function D(e){let{basename:t="/",children:n=null,location:o,navigationType:s=i.aU.Pop,navigator:a,static:c=!1}=e;d()&&(0,i.J0)(!1);let h=t.replace(/^\/*/,"/"),f=r.useMemo((()=>({basename:h,navigator:a,static:c})),[h,a,c]);"string"==typeof o&&(o=(0,i.cP)(o));let{pathname:p="/",search:g="",hash:m="",state:v=null,key:y="default"}=o,b=r.useMemo((()=>{let e=(0,i.Zn)(p,h);return null==e?null:{location:{pathname:e,search:g,hash:m,state:v,key:y},navigationType:s}}),[h,p,g,m,v,y,s]);return null==b?null:r.createElement(l.Provider,{value:f},r.createElement(u.Provider,{children:n,value:b}))}function N(e){let{children:t,location:n}=e;return function(e,t,n){d()||(0,i.J0)(!1);let{navigator:s}=r.useContext(l),{matches:a}=r.useContext(c),h=a[a.length-1],f=h?h.params:{},g=(h&&h.pathname,h?h.pathnameBase:"/");h&&h.route;let m,v=p();if(t){var y;let e="string"==typeof t?(0,i.cP)(t):t;"/"===g||(null==(y=e.pathname)?void 0:y.startsWith(g))||(0,i.J0)(!1),m=e}else m=v;let b=m.pathname||"/",w="/"===g?b:b.slice(g.length)||"/",C=(0,i.fp)(e,{pathname:w}),E=function(e,t,n){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){var s;if(null==(s=n)||!s.errors)return null;e=n.matches}let a=e,l=null==(o=n)?void 0:o.errors;if(null!=l){let e=a.findIndex((e=>e.route.id&&(null==l?void 0:l[e.route.id])));e>=0||(0,i.J0)(!1),a=a.slice(0,Math.min(a.length,e+1))}return a.reduceRight(((e,i,o)=>{let s=i.route.id?null==l?void 0:l[i.route.id]:null,u=null;n&&(u=i.route.errorElement||x);let c=t.concat(a.slice(0,o+1)),h=()=>{let t;return t=s?u:i.route.Component?r.createElement(i.route.Component,null):i.route.element?i.route.element:e,r.createElement(k,{match:i,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?r.createElement(S,{location:n.location,revalidation:n.revalidation,component:u,error:s,children:h(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):h()}),null)}(C&&C.map((e=>Object.assign({},e,{params:Object.assign({},f,e.params),pathname:(0,i.RQ)([g,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,i.RQ)([g,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,n);return t&&E?r.createElement(u.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:i.aU.Pop}},E):E}(L(t),n)}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(C||(C={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(E||(E={})),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(M||(M={})),new Promise((()=>{}));class P extends r.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,i=M.pending;if(n instanceof Promise)if(this.state.error){M.error;let e=this.state.error;Promise.reject().catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>e})}else n._tracked?void 0!==r._error?M.error:void 0!==r._data?M.success:M.pending:(M.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),n.then((e=>Object.defineProperty(n,"_data",{get:()=>e})),(e=>Object.defineProperty(n,"_error",{get:()=>e}))));else M.success,Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>n});if(i===M.error&&r._error instanceof AbortedDeferredError)throw neverSettledPromise;if(i===M.error&&!t)throw r._error;if(i===M.error)return React.createElement(AwaitContext.Provider,{value:r,children:t});if(i===M.success)return React.createElement(AwaitContext.Provider,{value:r,children:e});throw r}}function L(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,o)=>{if(!r.isValidElement(e))return;let s=[...t,o];if(e.type===r.Fragment)return void n.push.apply(n,L(e.props.children,s));e.type!==T&&(0,i.J0)(!1),e.props.index&&e.props.children&&(0,i.J0)(!1);let a={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=L(e.props.children,s)),n.push(a)})),n}},17159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(87462),i=n(63366),o=n(51721);function s(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var a=n(67294),l=n(73935),u=n(220),c="unmounted",h="exited",f="entering",d="entered",p="exiting",g=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=h,r.appearStatus=f):i=d:i=t.unmountOnExit||t.mountOnEnter?c:h,r.state={status:i},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:h}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==d&&(t=f):n!==f&&n!==d||(t=p)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===f?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===h&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[l.findDOMNode(this),r],o=i[0],s=i[1],a=this.getTimeouts(),u=r?a.appear:a.enter;e||n?(this.props.onEnter(o,s),this.safeSetState({status:f},(function(){t.props.onEntering(o,s),t.onTransitionEnd(u,(function(){t.safeSetState({status:d},(function(){t.props.onEntered(o,s)}))}))}))):this.safeSetState({status:d},(function(){t.props.onEntered(o)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:p},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:h},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:h},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,i.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.createElement(u.Z.Provider,{value:null},"function"==typeof n?n(e,r):a.cloneElement(a.Children.only(n),r))},t}(a.Component);function m(){}g.contextType=u.Z,g.propTypes={},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},g.UNMOUNTED=c,g.EXITED=h,g.ENTERING=f,g.ENTERED=d,g.EXITING=p;const v=g;var y=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=s(n.className,r):n.setAttribute("class",s(n.className&&n.className.baseVal||"",r)));var n,r}))},b=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}(0,o.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&y(e,r),i&&y(e,i),o&&y(e,o)},n.render=function(){var e=this.props,t=(e.classNames,(0,i.Z)(e,["classNames"]));return a.createElement(v,(0,r.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(a.Component);b.defaultProps={classNames:""},b.propTypes={};const w=b},70666:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(63366),i=n(87462),o=n(51721),s=n(67294),a=n(220);function l(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)})),n}function u(e,t,n){return null!=n[t]?n[t]:e.props[t]}function c(e,t,n){var r=l(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var a={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];a[i[l][r]]=n(u)}a[l]=n(l)}for(r=0;r<o.length;r++)a[o[r]]=n(o[r]);return a}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if((0,s.isValidElement)(a)){var l=o in t,c=o in r,h=t[o],f=(0,s.isValidElement)(h)&&!h.props.in;!c||l&&!f?c||!l||f?c&&l&&(0,s.isValidElement)(h)&&(i[o]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:h.props.in,exit:u(a,"exit",e),enter:u(a,"enter",e)})):i[o]=(0,s.cloneElement)(a,{in:!1}):i[o]=(0,s.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:u(a,"exit",e),enter:u(a,"enter",e)})}})),i}var h=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,l(n.children,(function(e){return(0,s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:u(e,"appear",n),enter:u(e,"enter",n),exit:u(e,"exit",n)})}))):c(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=l(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,i.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=(0,r.Z)(e,["component","childFactory"]),o=this.state.contextValue,l=h(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?s.createElement(a.Z.Provider,{value:o},l):s.createElement(a.Z.Provider,{value:o},s.createElement(t,i,l))},t}(s.Component);f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};const d=f},220:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(67294).createContext(null)},75251:(e,t,n)=>{"use strict";var r=n(67294),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:a.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},72408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,g(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,k={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var i,o={},s=null,a=null;if(null!=t)for(i in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)S.call(t,i)&&!C.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:s,ref:a,props:o,_owner:k.current}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,i,o,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===o?"."+A(l,0):o,x(s)?(i="",null!=e&&(i=e.replace(O,"$&/")+"/"),T(s,t,i,"",(function(e){return e}))):null!=s&&(M(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,i+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(O,"$&/")+"/")+e)),t.push(s)),1;if(l=0,o=""===o?".":o+":",x(e))for(var u=0;u<e.length;u++){var c=o+A(a=e[u],u);l+=T(a,t,i,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=T(a=a.value,t,i,c=o+A(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},L={transition:null},z={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:L,ReactCurrentOwner:k};t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!M(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=s,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=g({},e.props),o=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=k.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)S.call(t,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:s,props:i,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=M,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.2.0"},67294:(e,t,n)=>{"use strict";e.exports=n(72408)},85893:(e,t,n)=>{"use strict";e.exports=n(75251)},53894:(e,t,n)=>{"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}n.d(t,{Z:()=>o});var i=r();i.withExtraArgument=r;const o=i},14890:(e,t,n)=>{"use strict";n.d(t,{MT:()=>s,UY:()=>l,md:()=>f,qC:()=>h});var r=n(67121),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function s(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var a=e,l=t,u=[],c=u,h=!1;function f(){c===u&&(c=u.slice())}function d(){if(h)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function p(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(h)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return f(),c.push(e),function(){if(t){if(h)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,f();var n=c.indexOf(e);c.splice(n,1),u=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,l=a(l,e)}finally{h=!1}for(var t=u=c,n=0;n<t.length;n++)(0,t[n])();return e}return g({type:o.INIT}),(i={dispatch:g,subscribe:p,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");a=e,g({type:o.REPLACE})}})[r.Z]=function(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(d())}return n(),{unsubscribe:t(n)}}})[r.Z]=function(){return this},e},i}function a(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function l(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}var s,l=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:o.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+o.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){s=e}return function(e,t){if(void 0===e&&(e={}),s)throw s;for(var r=!1,i={},o=0;o<l.length;o++){var u=l[o],c=n[u],h=e[u],f=c(h,t);if(void 0===f){var d=a(u,t);throw new Error(d)}i[u]=f,r=r||f!==h}return(r=r||l.length!==Object.keys(e).length)?i:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(n,!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{dispatch:r=h.apply(void 0,o)(n.dispatch)})}}}},26525:e=>{e.exports=function(e,t){(t=t||{}).listUnicodeChar=!!t.hasOwnProperty("listUnicodeChar")&&t.listUnicodeChar,t.stripListLeaders=!t.hasOwnProperty("stripListLeaders")||t.stripListLeaders,t.gfm=!t.hasOwnProperty("gfm")||t.gfm,t.useImgAltText=!t.hasOwnProperty("useImgAltText")||t.useImgAltText,t.abbr=!!t.hasOwnProperty("abbr")&&t.abbr,t.replaceLinksWithURL=!!t.hasOwnProperty("replaceLinksWithURL")&&t.replaceLinksWithURL,t.htmlTagsToSkip=t.hasOwnProperty("htmlTagsToSkip")?t.htmlTagsToSkip:[];var n=e||"";n=n.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*/gm,"");try{t.stripListLeaders&&(n=t.listUnicodeChar?n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,t.listUnicodeChar+" $1"):n.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),t.gfm&&(n=n.replace(/\n={2,}/g,"\n").replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),t.abbr&&(n=n.replace(/\*\[.*\]:.*\n/,"")),n=n.replace(/<[^>]*>/g,"");var r=new RegExp("<[^>]*>","g");if(t.htmlTagsToSkip.length>0){var i="(?!"+t.htmlTagsToSkip.join("|")+")";r=new RegExp("<"+i+"[^>]*>","ig")}n=n.replace(r,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,t.useImgAltText?"$1":"").replace(/\[([^\]]*?)\][\[\(].*?[\]\)]/g,t.replaceLinksWithURL?"$2":"$1").replace(/^\s{0,3}>\s?/gm,"").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} #{0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*]+)(\S)(.*?\S)??\1/g,"$2$3").replace(/(^|\W)([_]+)(\S)(.*?\S)??\2($|\W)/g,"$1$3$4$5").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/~(.*?)~/g,"$1")}catch(t){return console.error(t),e}return n}},60053:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,s=i>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],h=1,f=null,d=3,p=!1,g=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function x(e){if(m=!1,w(e),!g)if(null!==r(u))g=!0,L(S);else{var t=r(c);null!==t&&z(x,t.startTime-e)}}function S(e,n){g=!1,m&&(m=!1,y(M),M=-1),p=!0;var o=d;try{for(w(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!T());){var s=f.callback;if("function"==typeof s){f.callback=null,d=f.priorityLevel;var a=s(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?f.callback=a:f===r(u)&&i(u),w(n)}else i(u);f=r(u)}if(null!==f)var l=!0;else{var h=r(c);null!==h&&z(x,h.startTime-n),l=!1}return l}finally{f=null,d=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,C=!1,E=null,M=-1,O=5,A=-1;function T(){return!(t.unstable_now()-A<O)}function D(){if(null!==E){var e=t.unstable_now();A=e;var n=!0;try{n=E(!0,e)}finally{n?k():(C=!1,E=null)}}else C=!1}if("function"==typeof b)k=function(){b(D)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,P=N.port2;N.port1.onmessage=D,k=function(){P.postMessage(null)}}else k=function(){v(D,0)};function L(e){E=e,C||(C=!0,k())}function z(e,n){M=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,L(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},t.unstable_scheduleCallback=function(e,i,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:h++,callback:i,priorityLevel:e,startTime:o,expirationTime:a=o+a,sortIndex:-1},o>s?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(m?(y(M),M=-1):m=!0,z(x,o-s))):(e.sortIndex=a,n(u,e),g||p||(g=!0,L(S))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}},63840:(e,t,n)=>{"use strict";e.exports=n(60053)},67121:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r}),e=n.hmd(e);const r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},53250:(e,t,n)=>{"use strict";var r=n(67294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return a((function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,n,t]),s((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},50139:(e,t,n)=>{"use strict";var r=n(67294),i=n(61688),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,a=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var h=a(null);if(null===h.current){var f={hasValue:!1,value:null};h.current=f}else f=h.current;h=u((function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(s=e,a=n)}var s,a,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,i]);var d=s(e,h[0],h[1]);return l((function(){f.hasValue=!0,f.value=d}),[d]),c(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},51721:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>i})},45987:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(63366);function i(e,t){if(null==e)return{};var n,i,o=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},63366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:()=>r})},98152:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,{Z:()=>i})},94462:(e,t,n)=>{"use strict";n.d(t,{wQ:()=>gn,m8:()=>Xe,f$:()=>mt,PR:()=>un,PN:()=>pn});var r=n(78120),i=n(32864);const o=1024;let s=0;class a{constructor(e,t){this.from=e,this.to=t}}class l{constructor(e={}){this.id=s++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=c.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}l.closedBy=new l({deserialize:e=>e.split(" ")}),l.openedBy=new l({deserialize:e=>e.split(" ")}),l.group=new l({deserialize:e=>e.split(" ")}),l.contextHash=new l({perNode:!0}),l.lookAhead=new l({perNode:!0}),l.mounted=new l({perNode:!0});const u=Object.create(null);class c{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):u,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new c(e.name||"",t,e.id,n);if(e.props)for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(l.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(l.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}c.none=new c("",Object.create(null),0,8);const h=new WeakMap,f=new WeakMap;var d;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(d||(d={}));class p{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=this.prop(l.mounted);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new E(this.topNode,e)}cursorAt(e,t=0,n=0){let r=h.get(this)||this.topNode,i=new E(r);return i.moveTo(e,t),h.set(this,i._tree),i}get topNode(){return new w(this,0,0,null)}resolve(e,t=0){let n=b(h.get(this)||this.topNode,e,t,!1);return h.set(this,n),n}resolveInner(e,t=0){let n=b(f.get(this)||this.topNode,e,t,!0);return f.set(this,n),n}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e;for(let o=this.cursor((e.mode||0)|d.IncludeAnonymous);;){let e=!1;if(o.from<=i&&o.to>=r&&(o.type.isAnonymous||!1!==t(o))){if(o.firstChild())continue;e=!0}for(;e&&n&&!o.type.isAnonymous&&n(o),!o.nextSibling();){if(!o.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:T(c.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new p(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new p(c.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=o,reused:s=[],minRepeatType:a=r.types.length}=e,u=Array.isArray(n)?new g(n,n.length):n,c=r.types,h=0,f=0;function d(e,t,n,o,g){let{id:w,start:x,end:S,size:k}=u,C=f;for(;k<0;){if(u.next(),-1==k){let t=s[w];return n.push(t),void o.push(x-e)}if(-3==k)return void(h=w);if(-4==k)return void(f=w);throw new RangeError(`Unrecognized record size: ${k}`)}let E,M,O=c[w],A=x-e;if(S-x<=i&&(M=function(e,t){let n=u.fork(),r=0,o=0,s=0,l=n.end-i,c={size:0,start:0,skip:0};e:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){c.size=r,c.start=o,c.skip=s,s+=4,r+=4,n.next();continue}let u=n.pos-e;if(e<0||u<i||n.start<l)break;let h=n.id>=a?4:0,f=n.start;for(n.next();n.pos>u;){if(n.size<0){if(-3!=n.size)break e;h+=4}else n.id>=a&&(h+=4);n.next()}o=f,r+=e,s+=h}return(t<0||r==e)&&(c.size=r,c.start=o,c.skip=s),c.size>4?c:void 0}(u.pos-t,g))){let t=new Uint16Array(M.size-M.skip),n=u.pos-M.size,i=t.length;for(;u.pos>n;)i=b(M.start,t,i);E=new m(t,S-M.start,r),A=M.start-e}else{let e=u.pos-k;u.next();let t=[],n=[],r=w>=a?w:-1,o=0,s=S;for(;u.pos>e;)r>=0&&u.id==r&&u.size>=0?(u.end<=s-i&&(v(t,n,x,o,u.end,s,r,C),o=t.length,s=u.end),u.next()):d(x,e,t,n,r);if(r>=0&&o>0&&o<t.length&&v(t,n,x,o,x,s,r,C),t.reverse(),n.reverse(),r>-1&&o>0){let e=function(e){return(t,n,r)=>{let i,o,s=0,a=t.length-1;if(a>=0&&(i=t[a])instanceof p){if(!a&&i.type==e&&i.length==r)return i;(o=i.prop(l.lookAhead))&&(s=n[a]+i.length+o)}return y(e,t,n,r,s)}}(O);E=T(O,t,n,0,t.length,0,S-x,e,e)}else E=y(O,t,n,S-x,C-S)}n.push(E),o.push(A)}function v(e,t,n,i,o,s,a,l){let u=[],c=[];for(;e.length>i;)u.push(e.pop()),c.push(t.pop()+n-o);e.push(y(r.types[a],u,c,s-o,l-s)),t.push(o-n)}function y(e,t,n,r,i=0,o){if(h){let e=[l.contextHash,h];o=o?[e].concat(o):[e]}if(i>25){let e=[l.lookAhead,i];o=o?[e].concat(o):[e]}return new p(e,t,n,r,o)}function b(e,t,n){let{id:r,start:i,end:o,size:s}=u;if(u.next(),s>=0&&r<a){let a=n;if(s>4){let r=u.pos-(s-4);for(;u.pos>r;)n=b(e,t,n)}t[--n]=a,t[--n]=o-e,t[--n]=i-e,t[--n]=r}else-3==s?h=r:-4==s&&(f=r);return n}let w=[],x=[];for(;u.pos>0;)d(e.start||0,e.bufferStart||0,w,x,-1);let S=null!==(t=e.length)&&void 0!==t?t:w.length?x[0]+w[0].length:0;return new p(c[e.topID],w.reverse(),x.reverse(),S)}(e)}}p.empty=new p(c.none,[],[],0);class g{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new g(this.buffer,this.index)}}class m{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return c.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(e+=4))return i;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return i+"("+o.join(",")+")"}findChild(e,t,n,r,i){let{buffer:o}=this,s=-1;for(let a=e;a!=t&&!(v(i,r,o[a+1],o[a+2])&&(s=a,n>0));a=o[a+3]);return s}slice(e,t,n,r){let i=this.buffer,o=new Uint16Array(t-e);for(let r=e,s=0;r<t;)o[s++]=i[r++],o[s++]=i[r++]-n,o[s++]=i[r++]-n,o[s++]=i[r++]-e;return new m(o,r-n,this.set)}}function v(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function y(e,t){let n=e.childBefore(t);for(;n;){let t=n.lastChild;if(!t||t.to!=n.to)break;t.type.isError&&t.from==t.to?(e=n,n=t.prevSibling):n=t}return e}function b(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!r&&e instanceof w&&e.index<0?null:e.parent;if(!t)return e;e=t}let o=r?0:d.IgnoreOverlays;if(r)for(let r=e,s=r.parent;s;r=s,s=r.parent)r instanceof w&&r.index<0&&(null===(i=s.enter(t,n,o))||void 0===i?void 0:i.from)!=r.from&&(e=s);for(;;){let r=e.enter(t,n,o);if(!r)return e;e=r}}class w{constructor(e,t,n,r){this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r,i=0){for(let o=this;;){for(let{children:s,positions:a}=o._tree,u=t>0?s.length:-1;e!=u;e+=t){let u=s[e],c=a[e]+o.from;if(v(r,n,c,c+u.length))if(u instanceof m){if(i&d.ExcludeBuffers)continue;let s=u.findChild(0,u.buffer.length,t,n-c,r);if(s>-1)return new C(new k(o,u,e,c),null,s)}else if(i&d.IncludeAnonymous||!u.type.isAnonymous||M(u)){let s;if(!(i&d.IgnoreMounts)&&u.props&&(s=u.prop(l.mounted))&&!s.overlay)return new w(s.tree,c,e,o);let a=new w(u,c,e,o);return i&d.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(t<0?u.children.length-1:0,t,n,r)}}if(i&d.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&d.IgnoreOverlays)&&(r=this._tree.prop(l.mounted))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e<n)&&(t<0?i>=n:i>n))return new w(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new E(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return b(this,e,t,!1)}resolveInner(e,t=0){return b(this,e,t,!0)}enterUnfinishedNodesBefore(e){return y(this,e)}getChild(e,t=null,n=null){let r=x(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return x(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return S(this,e)}}function x(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n)for(;!i.type.is(n);)if(!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function S(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class k{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class C{constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new C(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&d.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new C(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new C(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new C(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new E(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1],s=n.buffer[this.index+2];e.push(n.slice(r,i,o,s)),t.push(0)}return new p(this.type,e,t,this.to-this.from)}resolve(e,t=0){return b(this,e,t,!1)}resolveInner(e,t=0){return b(this,e,t,!0)}enterUnfinishedNodesBefore(e){return y(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let r=x(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return x(this,e,t,n)}get node(){return this}matchContext(e){return S(this,e)}}class E{constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof w)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}get name(){return this.type.name}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof w?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&d.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&d.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&d.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(r.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree);for(;n;({index:t,_parent:n}=n))if(t>-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&d.IncludeAnonymous||e instanceof m||!e.type.isAnonymous||M(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let r=this.index,i=this.stack.length;i>=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break e}r=this.stack[--i]}for(let e=n;e<this.stack.length;e++)t=new C(this.buffer,t,this.stack[e]);return this.bufferNode=new C(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;r&&t&&t(this),r=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return S(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return S(this.node,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function M(e){return e.children.some((e=>e instanceof m||!e.type.isAnonymous||M(e)))}const O=new WeakMap;function A(e,t){if(!e.isAnonymous||t instanceof m||t.type!=e)return 1;let n=O.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof p)){n=1;break}n+=A(e,r)}O.set(t,n)}return n}function T(e,t,n,r,i,o,s,a,l){let u=0;for(let n=r;n<i;n++)u+=A(e,t[n]);let c=Math.ceil(1.5*u/8),h=[],f=[];return function t(n,r,i,s,a){for(let u=i;u<s;){let i=u,d=r[u],p=A(e,n[u]);for(u++;u<s;u++){let t=A(e,n[u]);if(p+t>=c)break;p+=t}if(u==i+1){if(p>c){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+a);continue}h.push(n[i])}else{let t=r[u-1]+n[u-1].length-d;h.push(T(e,n,r,i,u,d,t,null,l))}f.push(d+a-o)}}(t,n,r,i,0),(a||l)(h,f,s)}class D{constructor(e,t,n,r,i=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new D(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let u=s<t.length?t[s]:null,c=u?u.fromA:1e9;if(c-a>=n)for(;o&&o.from<c;){let t=o;if(a>=t.from||c<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,c)-l;t=e>=n?null:new D(e,n,t.tree,t.offset+l,s>0,!!u)}if(t&&r.push(t),o.to>c)break;o=i<e.length?e[i++]:null}if(!u)break;a=u.toA,l=u.toA-u.toB}return r}}class N{startParse(e,t,n){return"string"==typeof e&&(e=new P(e)),n=n?n.length?n.map((e=>new a(e.from,e.to))):[new a(0,0)]:[new a(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class P{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new l({perNode:!0});let L=0;class z{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=L++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new z([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new _;return t=>t.modified.indexOf(e)>-1?t:_.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let R=0;class _{constructor(){this.instances=[],this.id=R++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(r=t,i=n.modified,r.length==i.length&&r.every(((e,t)=>e==i[t])));var r,i}));if(n)return n;let r=[],i=new z(r,e,t);for(let e of t)e.instances.push(i);let o=B(t);for(let t of e.set)for(let e of o)r.push(_.get(t,e));return i}}function B(e){let t=[e];for(let n=0;n<e.length;n++)for(let r of B(e.slice(0,n).concat(e.slice(n+1))))t.push(r);return t}function H(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){i=0;break}if("/"!=s)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let s=n.length-1,a=n[s];if(!a)throw new RangeError("Invalid path: "+e);let l=new V(r,i,s>0?n.slice(0,s):null);t[a]=l.sort(t[a])}}return I.add(t)}const I=new l;class V{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}V.empty=new V([],2,null);const j=z.define,F=j(),$=j(),W=j($),U=j($),Z=j(),q=j(Z),K=j(Z),G=j(),Q=j(G),Y=j(),J=j(),X=j(),ee=j(X),te=j(),ne={comment:F,lineComment:j(F),blockComment:j(F),docComment:j(F),name:$,variableName:j($),typeName:W,tagName:j(W),propertyName:U,attributeName:j(U),className:j($),labelName:j($),namespace:j($),macroName:j($),literal:Z,string:q,docString:j(q),character:j(q),attributeValue:j(q),number:K,integer:j(K),float:j(K),bool:j(Z),regexp:j(Z),escape:j(Z),color:j(Z),url:j(Z),keyword:Y,self:j(Y),null:j(Y),atom:j(Y),unit:j(Y),modifier:j(Y),operatorKeyword:j(Y),controlKeyword:j(Y),definitionKeyword:j(Y),moduleKeyword:j(Y),operator:J,derefOperator:j(J),arithmeticOperator:j(J),logicOperator:j(J),bitwiseOperator:j(J),compareOperator:j(J),updateOperator:j(J),definitionOperator:j(J),typeOperator:j(J),controlOperator:j(J),punctuation:X,separator:j(X),bracket:ee,angleBracket:j(ee),squareBracket:j(ee),paren:j(ee),brace:j(ee),content:G,heading:Q,heading1:j(Q),heading2:j(Q),heading3:j(Q),heading4:j(Q),heading5:j(Q),heading6:j(Q),contentSeparator:j(G),list:j(G),quote:j(G),emphasis:j(G),strong:j(G),link:j(G),monospace:j(G),strikethrough:j(G),inserted:j(),deleted:j(),changed:j(),invalid:j(),meta:te,documentMeta:j(te),annotation:j(te),processingInstruction:j(te),definition:z.defineModifier(),constant:z.defineModifier(),function:z.defineModifier(),standard:z.defineModifier(),local:z.defineModifier(),special:z.defineModifier()};var re;!function(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:r,all:i=null}=t||{}}([{tag:ne.link,class:"tok-link"},{tag:ne.heading,class:"tok-heading"},{tag:ne.emphasis,class:"tok-emphasis"},{tag:ne.strong,class:"tok-strong"},{tag:ne.keyword,class:"tok-keyword"},{tag:ne.atom,class:"tok-atom"},{tag:ne.bool,class:"tok-bool"},{tag:ne.url,class:"tok-url"},{tag:ne.labelName,class:"tok-labelName"},{tag:ne.inserted,class:"tok-inserted"},{tag:ne.deleted,class:"tok-deleted"},{tag:ne.literal,class:"tok-literal"},{tag:ne.string,class:"tok-string"},{tag:ne.number,class:"tok-number"},{tag:[ne.regexp,ne.escape,ne.special(ne.string)],class:"tok-string2"},{tag:ne.variableName,class:"tok-variableName"},{tag:ne.local(ne.variableName),class:"tok-variableName tok-local"},{tag:ne.definition(ne.variableName),class:"tok-variableName tok-definition"},{tag:ne.special(ne.variableName),class:"tok-variableName2"},{tag:ne.definition(ne.propertyName),class:"tok-propertyName tok-definition"},{tag:ne.typeName,class:"tok-typeName"},{tag:ne.namespace,class:"tok-namespace"},{tag:ne.className,class:"tok-className"},{tag:ne.macroName,class:"tok-macroName"},{tag:ne.propertyName,class:"tok-propertyName"},{tag:ne.operator,class:"tok-operator"},{tag:ne.comment,class:"tok-comment"},{tag:ne.meta,class:"tok-meta"},{tag:ne.invalid,class:"tok-invalid"},{tag:ne.punctuation,class:"tok-punctuation"}]),n(28699);const ie=new l;class oe{constructor(e,t,n=[]){this.data=e,r.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(r.yy.prototype,"tree",{get(){return ae(this)}}),this.parser=t,this.extension=[me.of(this),r.yy.languageData.of(((e,t,n)=>e.facet(se(e,t,n))))].concat(n)}isActiveAt(e,t,n=-1){return se(e,t,n)==this.data}findRegions(e){let t=e.facet(me);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(ie)==this.data)return void n.push({from:t,to:t+e.length});let i=e.prop(l.mounted);if(i){if(i.tree.prop(ie)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let i=e.children[n];i instanceof p&&r(i,e.positions[n]+t)}};return r(ae(e),0),n}get allowsNesting(){return!0}}function se(e,t,n){let r=e.facet(me);if(!r)return null;let i=r.data;if(r.allowsNesting)for(let r=ae(e).topNode;r;r=r.enter(t,n,d.ExcludeBuffers))i=r.type.prop(ie)||i;return i}function ae(e){let t=e.field(oe.state,!1);return t?t.tree:p.empty}oe.setState=r.Py.define();class le{constructor(e,t=e.length){this.doc=e,this.length=t,this.cursorPos=0,this.string="",this.cursor=e.iter()}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let ue=null;class ce{constructor(e,t,n=[],r,i,o,s,a){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new ce(e,t,[],p.empty,0,n,[],null)}startParse(){return this.parser.startParse(new le(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=p.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(D.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}}))}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(D.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=ue;ue=this;try{return e()}finally{ue=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=he(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:i,viewport:o,skipped:s}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i}))),n=D.applyChanges(n,t),r=p.empty,i=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){s=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&s.push({from:n,to:r})}}}return new ce(this.parser,t,n,r,i,o,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:r}=this.skipped[t];n<e.to&&r>e.from&&(this.fragments=he(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends N{createParse(t,n,r){let i=r[0].from,o=r[r.length-1].to;return{parsedPos:i,advance(){let t=ue;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new p(c.none,[],[],o-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return ue}}function he(e,t,n){return D.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class fe{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new fe(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=ce.create(e.facet(me).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new fe(n)}}oe.state=r.QQ.define({create:fe.init,update(e,t){for(let e of t.effects)if(e.is(oe.setState))return e.value;return t.startState.facet(me)!=t.state.facet(me)?fe.init(t.state):e.apply(t)}});let de=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(de=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const pe="undefined"!=typeof navigator&&(null===(re=navigator.scheduling)||void 0===re?void 0:re.isInputPending)?()=>navigator.scheduling.isInputPending():null,ge=i.lg.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(oe.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(oe.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=de(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(oe.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!pe?Math.max(25,e.timeRemaining()-5):1e9),s=i.context.treeLen<r&&n.doc.length>r+1e3,a=i.context.work((()=>pe&&pe()||Date.now()>o),r+(s?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:oe.setState.of(new fe(i.context))})),this.chunkBudget>0&&(!a||s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>(0,i.OO)(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),me=r.r$.define({combine:e=>e.length?e[0]:null,enables:[oe.state,ge]}),ve=r.r$.define(),ye=r.r$.define({combine:e=>{if(!e.length)return" ";if(!/^(?: +|\t+)$/.test(e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return e[0]}});function be(e){let t=e.facet(ye);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function we(e,t){let n="",r=e.tabSize;if(9==e.facet(ye).charCodeAt(0))for(;t>=r;)n+="\t",t-=r;for(let e=0;e<t;e++)n+=" ";return n}function xe(e,t){e instanceof r.yy&&(e=new Se(e));for(let n of e.state.facet(ve)){let r=n(e,t);if(null!=r)return r}let n=ae(e.state);return n?function(e,t,n){return Ee(t.resolveInner(n).enterUnfinishedNodesBefore(n),n,e)}(e,n,t):null}class Se{constructor(e,t={}){this.state=e,this.options=t,this.unit=be(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.countColumn(n,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return(0,r.IS)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const ke=new l;function Ce(e){let t=e.type.prop(ke);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(l.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>function(e,t,n,r,i){let o=e.textAfter,s=o.match(/^\s*/)[0].length,a=i==e.pos+s,l=function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),s=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped)return i.from<s?n:null;e=i.to}}(e);return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:1*e.unit)}(e,0,0,0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?Me:null}function Ee(e,t,n){for(;e;e=e.parent){let r=Ce(e);if(r)return r(Oe.create(n,t,e))}return null}function Me(){return 0}class Oe extends Se{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new Oe(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let e=this.state.doc.lineAt(this.node.from);for(;;){let t=this.node.resolve(e.from);for(;t.parent&&t.parent.from==t.from;)t=t.parent;if(Ae(t,this.node))break;e=this.state.doc.lineAt(t.from)}return this.lineIndent(e.from)}continue(){let e=this.node.parent;return e?Ee(e,this.pos,this.base):0}}function Ae(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}ne.meta,ne.link,ne.heading,ne.emphasis,ne.strong,ne.strikethrough,ne.keyword,ne.atom,ne.bool,ne.url,ne.contentSeparator,ne.labelName,ne.literal,ne.inserted,ne.string,ne.deleted,ne.regexp,ne.escape,ne.string,ne.variableName,ne.variableName,ne.typeName,ne.namespace,ne.className,ne.variableName,ne.macroName,ne.propertyName,ne.comment,ne.invalid;const Te=1e4,De="()[]{}";function Ne(e,t,n){let r=e.prop(t<0?l.openedBy:l.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function Pe(e,t,n,r={}){let i=r.maxScanDistance||Te,o=r.brackets||De,s=ae(e),a=s.resolveInner(t,n);for(let e=a;e;e=e.parent){let t=Ne(e.type,n,o);if(t&&e.from<e.to)return Le(0,0,n,e,t,o)}return function(e,t,n,r,i,o,s){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=s.indexOf(a);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),h=0;for(let e=0;!c.next().done&&e<=o;){let o=c.value;n<0&&(e+=o.length);let a=t+e*n;for(let e=n>0?0:o.length-1,t=n>0?o.length:-1;e!=t;e+=n){let t=s.indexOf(o[e]);if(!(t<0||r.resolveInner(a+e,1).type!=i))if(t%2==0==n>0)h++;else{if(1==h)return{start:u,end:{from:a+e,to:a+e+1},matched:t>>1==l>>1};h--}}n>0&&(e+=o.length)}return c.done?{start:u,matched:!1}:null}(e,t,n,s,a.type,i,o)}function Le(e,t,n,r,i,o){let s=r.parent,a={from:r.from,to:r.to},l=0,u=null==s?void 0:s.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do{if(n<0?u.to<=r.from:u.from>=r.to){if(0==l&&i.indexOf(u.type.name)>-1&&u.from<u.to)return{start:a,end:{from:u.from,to:u.to},matched:!0};if(Ne(u.type,n,o))l++;else if(Ne(u.type,-n,o)){if(0==l)return{start:a,end:u.from==u.to?void 0:{from:u.from,to:u.to},matched:!1};l--}}}while(n<0?u.prevSibling():u.nextSibling());return{start:a,matched:!1}}const ze=Object.create(null),Re=[c.none],_e=[],Be=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Be[e]=Ie(ze,t);function He(e,t){_e.indexOf(e)>-1||(_e.push(e),console.warn(t))}function Ie(e,t){let n=null;for(let r of t.split(".")){let t=e[r]||ne[r];t?"function"==typeof t?n?n=t(n):He(r,`Modifier ${r} used at start of tag`):n?He(r,`Tag ${r} used as modifier`):n=t:He(r,`Unknown highlighting tag ${r}`)}if(!n)return 0;let r=t.replace(/ /g,"_"),i=c.define({id:Re.length,name:r,props:[H({[r]:n})]});return Re.push(i),i.id}function Ve(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return!!i&&(r(n.update(i)),!0)}}const je=Ve(qe,0),Fe=Ve(Ze,0),$e=Ve(((e,t)=>Ze(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t))),0);function We(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const Ue=50;function Ze(e,t,n=t.selection.ranges){let r=n.map((e=>We(t,e.from).block));if(!r.every((e=>e)))return null;let i=n.map(((e,n)=>function(e,{open:t,close:n},r,i){let o,s,a=e.sliceDoc(r-Ue,r),l=e.sliceDoc(i,i+Ue),u=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(l)[0].length,h=a.length-u;if(a.slice(h-t.length,h)==t&&l.slice(c,c+n.length)==n)return{open:{pos:r-u,margin:u&&1},close:{pos:i+c,margin:c&&1}};i-r<=2*Ue?o=s=e.sliceDoc(r,i):(o=e.sliceDoc(r,r+Ue),s=e.sliceDoc(i-Ue,i));let f=/^\s*/.exec(o)[0].length,d=/\s*$/.exec(s)[0].length,p=s.length-d-n.length;return o.slice(f,f+t.length)==t&&s.slice(p,p+n.length)==n?{open:{pos:r+f+t.length,margin:/\s/.test(o.charAt(f+t.length))?1:0},close:{pos:i-d-n.length,margin:/\s/.test(s.charAt(p-1))?1:0}}:null}(t,r[n],e.from,e.to)));if(2!=e&&!i.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}])))};if(1!=e&&i.some((e=>e))){let e=[];for(let t,n=0;n<i.length;n++)if(t=i[n]){let i=r[n],{open:o,close:s}=t;e.push({from:o.pos-i.open.length,to:o.pos+o.margin},{from:s.pos-s.margin,to:s.pos+i.close.length})}return{changes:e}}return null}function qe(e,t,n=t.selection.ranges){let r=[],i=-1;for(let{from:e,to:o}of n){let n=r.length,s=1e9,a=We(t,e).line;if(a){for(let n=e;n<=o;){let l=t.doc.lineAt(n);if(l.from>i&&(e==o||o>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,n=l.text.slice(e,e+a.length)==a?e:-1;e<l.text.length&&e<s&&(s=e),r.push({line:l,comment:n,token:a,indent:e,empty:t,single:!1})}n=l.to+1}if(s<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=s);r.length==n+1&&(r[n].single=!0)}}if(2!=e&&r.some((e=>e.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:n,indent:i,empty:o,single:s}of r)!s&&o||e.push({from:t.from+i,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const Ke=r.q6.define(),Ge=r.q6.define(),Qe=r.r$.define(),Ye=r.r$.define({combine:e=>(0,r.BO)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),Je=r.QQ.define({create:()=>gt.empty,update(e,t){let n=t.state.facet(Ye),i=t.annotation(Ke);if(i){let o=t.docChanged?r.jT.single(function(e){let t=0;return e.iterChangedRanges(((e,n)=>t=n)),t}(t.changes)):void 0,s=ot.fromTransaction(t,o),a=i.side,l=0==a?e.undone:e.done;return l=s?st(l,l.length,n.minDepth,s):ct(l,t.startState.selection),new gt(0==a?i.rest:l,0==a?l:i.rest)}let o=t.annotation(Ge);if("full"!=o&&"before"!=o||(e=e.isolate()),!1===t.annotation(r.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let s=ot.fromTransaction(t),a=t.annotation(r.YW.time),l=t.annotation(r.YW.userEvent);return s?e=e.addChanges(s,a,l,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,l,n.newGroupDelay)),"full"!=o&&"after"!=o||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new gt(e.done.map(ot.fromJSON),e.undone.map(ot.fromJSON))});function Xe(e={}){return[Je,Ye.of(e),i.tk.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?tt:"historyRedo"==e.inputType?nt:null;return!!n&&(e.preventDefault(),n(t))}})]}function et(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(Je,!1);if(!i)return!1;let o=i.pop(e,n,t);return!!o&&(r(o),!0)}}const tt=et(0,!1),nt=et(1,!1),rt=et(0,!0),it=et(1,!0);class ot{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new ot(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new ot(e.changes&&r.as.fromJSON(e.changes),[],e.mapped&&r.n0.fromJSON(e.mapped),e.startSelection&&r.jT.fromJSON(e.startSelection),e.selectionsAfter.map(r.jT.fromJSON))}static fromTransaction(e,t){let n=lt;for(let t of e.startState.facet(Qe)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new ot(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,lt)}static selection(e){return new ot(void 0,lt,void 0,void 0,e)}}function st(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function at(e,t){return e.length?t.length?e.concat(t):e:t}const lt=[],ut=200;function ct(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-ut));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),st(e,e.length-1,1e9,n.setSelAfter(r)))}return[ot.selection([t])]}function ht(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function ft(e,t){if(!e.length)return e;let n=e.length,r=lt;for(;n;){let i=dt(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[ot.selection(r)]:lt}function dt(e,t,n){let i=at(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):lt,n);if(!e.changes)return ot.selection(i);let o=e.changes.map(t),s=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(s):s;return new ot(o,r.Py.mapEffects(e.effects,t),a,e.startSelection.map(s),i)}const pt=/^(input\.type|delete)($|\.)/;class gt{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new gt(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&e.changes&&(!n||pt.test(n))&&(!s.selectionsAfter.length&&t-this.prevTime<r.newGroupDelay&&r.joinToEvent(i,function(e,t){let n=[],r=!1;return e.iterChangedRanges(((e,t)=>n.push(e,t))),t.iterChangedRanges(((e,t,i,o)=>{for(let e=0;e<n.length;){let t=n[e++],s=n[e++];o>=t&&i<=s&&(r=!0)}})),r}(s.changes,e.changes))||"input.type.compose"==n)?st(o,o.length-1,r.minDepth,new ot(e.changes.compose(s.changes),at(e.effects,s.effects),s.mapped,s.startSelection,lt)):st(o,o.length,r.minDepth,e),new gt(o,lt,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:lt;return i.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(o=i[i.length-1],s=e,o.ranges.length==s.ranges.length&&0===o.ranges.filter(((e,t)=>e.empty!=s.ranges[t].empty)).length)?this:new gt(ct(this.done,e),this.undone,t,n);var o,s}addMapping(e){return new gt(ft(this.done,e),ft(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1];if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Ke.of({side:e,rest:ht(r)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?lt:r.slice(0,r.length-1);return i.mapped&&(n=ft(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Ke.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}gt.empty=new gt(lt,lt);const mt=[{key:"Mod-z",run:tt,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:nt,preventDefault:!0},{linux:"Ctrl-Shift-z",run:nt,preventDefault:!0},{key:"Mod-u",run:rt,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:it,preventDefault:!0}];function vt(e,t){return r.jT.create(e.ranges.map(t),e.mainIndex)}function yt(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function bt({state:e,dispatch:t},n){let r=vt(e.selection,n);return!r.eq(e.selection)&&(t(yt(e,r)),!0)}function wt(e,t){return r.jT.cursor(t?e.to:e.from)}function xt(e,t){return bt(e,(n=>n.empty?e.moveByChar(n,t):wt(n,t)))}function St(e){return e.textDirectionAt(e.state.selection.main.head)==i.Nm.LTR}const kt=e=>xt(e,!St(e)),Ct=e=>xt(e,St(e));function Et(e,t){return bt(e,(n=>n.empty?e.moveByGroup(n,t):wt(n,t)))}function Mt(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function Ot(e,t,n){let i,o,s=ae(e).resolveInner(t.head),a=n?l.closedBy:l.openedBy;for(let r=t.head;;){let t=n?s.childAfter(r):s.childBefore(r);if(!t)break;Mt(e,t,a)?s=t:r=n?t.to:t.from}return o=s.type.prop(a)&&(i=n?Pe(e,s.from,1):Pe(e,s.to,-1))&&i.matched?n?i.end.to:i.end.from:n?s.to:s.from,r.jT.cursor(o,n?-1:1)}function At(e,t){return bt(e,(n=>{if(!n.empty)return wt(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}const Tt=e=>At(e,!1),Dt=e=>At(e,!0);function Nt(e){let t,n=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,r=0,o=0;if(n){for(let t of e.state.facet(i.tk.scrollMargins)){let n=t(e);(null==n?void 0:n.top)&&(r=Math.max(null==n?void 0:n.top,r)),(null==n?void 0:n.bottom)&&(o=Math.max(null==n?void 0:n.bottom,o))}t=e.scrollDOM.clientHeight-r-o}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:o,selfScroll:n,height:Math.max(e.defaultLineHeight,t-5)}}function Pt(e,t){let n,r=Nt(e),{state:o}=e,s=vt(o.selection,(n=>n.empty?e.moveVertically(n,t,r.height):wt(n,t)));if(s.eq(o.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(o.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),l=a.top+r.marginTop,u=a.bottom-r.marginBottom;t&&t.top>l&&t.bottom<u&&(n=i.tk.scrollIntoView(s.main.head,{y:"start",yMargin:t.top-l}))}return e.dispatch(yt(o,s),{effects:n}),!0}const Lt=e=>Pt(e,!1),zt=e=>Pt(e,!0);function Rt(e,t,n){let i=e.lineBlockAt(t.head),o=e.moveToLineBoundary(t,n);if(o.head==t.head&&o.head!=(n?i.to:i.from)&&(o=e.moveToLineBoundary(t,n,!1)),!n&&o.head==i.from&&i.length){let n=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;n&&t.head!=i.from+n&&(o=r.jT.cursor(i.from+n))}return o}function _t(e,t){let n=vt(e.state.selection,(e=>{let n=t(e);return r.jT.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(yt(e.state,n)),!0)}function Bt(e,t){return _t(e,(n=>e.moveByChar(n,t)))}const Ht=e=>Bt(e,!St(e)),It=e=>Bt(e,St(e));function Vt(e,t){return _t(e,(n=>e.moveByGroup(n,t)))}function jt(e,t){return _t(e,(n=>e.moveVertically(n,t)))}const Ft=e=>jt(e,!1),$t=e=>jt(e,!0);function Wt(e,t){return _t(e,(n=>e.moveVertically(n,t,Nt(e).height)))}const Ut=e=>Wt(e,!1),Zt=e=>Wt(e,!0),qt=({state:e,dispatch:t})=>(t(yt(e,{anchor:0})),!0),Kt=({state:e,dispatch:t})=>(t(yt(e,{anchor:e.doc.length})),!0),Gt=({state:e,dispatch:t})=>(t(yt(e,{anchor:e.selection.main.anchor,head:0})),!0),Qt=({state:e,dispatch:t})=>(t(yt(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function Yt(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:o}=e,s=o.changeByRange((i=>{let{from:o,to:s}=i;if(o==s){let r=t(o);r<o?(n="delete.backward",r=Jt(e,r,!1)):r>o&&(n="delete.forward",r=Jt(e,r,!0)),o=Math.min(o,r),s=Math.max(s,r)}else o=Jt(e,o,!1),s=Jt(e,s,!0);return o==s?{range:i}:{changes:{from:o,to:s},range:r.jT.cursor(o)}}));return!s.changes.empty&&(e.dispatch(o.update(s,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?i.tk.announce.of(o.phrase("Selection deleted")):void 0})),!0)}function Jt(e,t,n){if(e instanceof i.tk)for(let r of e.state.facet(i.tk.atomicRanges).map((t=>t(e))))r.between(t,t,((e,r)=>{e<t&&r>t&&(t=n?r:e)}));return t}const Xt=(e,t)=>Yt(e,(n=>{let i,o,{state:s}=e,a=s.doc.lineAt(n);if(!t&&n>a.from&&n<a.from+200&&!/[^ \t]/.test(i=a.text.slice(0,n-a.from))){if("\t"==i[i.length-1])return n-1;let e=(0,r.IS)(i,s.tabSize)%be(s)||be(s);for(let t=0;t<e&&" "==i[i.length-1-t];t++)n--;o=n}else o=(0,r.cp)(a.text,n-a.from,t,t)+a.from,o==n&&a.number!=(t?s.doc.lines:1)&&(o+=t?1:-1);return o})),en=e=>Xt(e,!1),tn=e=>Xt(e,!0),nn=(e,t)=>Yt(e,(n=>{let i=n,{state:o}=e,s=o.doc.lineAt(i),a=o.charCategorizer(i);for(let e=null;;){if(i==(t?s.to:s.from)){i==n&&s.number!=(t?o.doc.lines:1)&&(i+=t?1:-1);break}let l=(0,r.cp)(s.text,i-s.from,t)+s.from,u=s.text.slice(Math.min(i,l)-s.from,Math.max(i,l)-s.from),c=a(u);if(null!=e&&c!=e)break;" "==u&&i==n||(e=c),i=l}return i})),rn=e=>nn(e,!1),on=e=>Yt(e,(t=>{let n=e.lineBlockAt(t).to;return t<n?n:Math.min(e.state.doc.length,t+1)}));function sn(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function an(e,t,n){if(e.readOnly)return!1;let i=[],o=[];for(let t of sn(e)){if(n?t.to==e.doc.length:0==t.from)continue;let s=e.doc.lineAt(n?t.to+1:t.from-1),a=s.length+1;if(n){i.push({from:t.to,to:s.to},{from:t.from,insert:s.text+e.lineBreak});for(let n of t.ranges)o.push(r.jT.range(Math.min(e.doc.length,n.anchor+a),Math.min(e.doc.length,n.head+a)))}else{i.push({from:s.from,to:t.from},{from:t.to,insert:e.lineBreak+s.text});for(let e of t.ranges)o.push(r.jT.range(e.anchor-a,e.head-a))}}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:r.jT.create(o,e.selection.mainIndex),userEvent:"move.line"})),!0)}function ln(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of sn(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const un=({state:e,dispatch:t})=>(t(e.update(e.replaceSelection(e.lineBreak),{scrollIntoView:!0,userEvent:"input"})),!0),cn=hn(!1);function hn(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=t.changeByRange((n=>{let{from:i,to:o}=n,s=t.doc.lineAt(i),a=!e&&i==o&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=ae(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(l.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from?{from:i.to,to:o.from}:null}(t,i);e&&(i=o=(o<=s.to?s:t.doc.lineAt(o)).to);let u=new Se(t,{simulateBreak:i,simulateDoubleBreak:!!a}),c=xe(u,i);for(null==c&&(c=/^\s*/.exec(t.doc.lineAt(i).text)[0].length);o<s.to&&/\s/.test(s.text[o-s.from]);)o++;a?({from:i,to:o}=a):i>s.from&&i<s.from+100&&!/\S/.test(s.text.slice(0,i))&&(i=s.from);let h=["",we(t,c)];return a&&h.push(we(t,u.lineIndent(s.from,-1))),{changes:{from:i,to:o,insert:r.xv.of(h)},range:r.jT.cursor(i+1+h[1].length)}}));return n(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function fn(e,t){let n=-1;return e.changeByRange((i=>{let o=[];for(let r=i.from;r<=i.to;){let s=e.doc.lineAt(r);s.number>n&&(i.empty||i.to>s.from)&&(t(s,o,i),n=s.number),r=s.to+1}let s=e.changes(o);return{changes:o,range:r.jT.range(s.mapPos(i.anchor,1),s.mapPos(i.head,1))}}))}const dn=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(fn(e,((t,n)=>{n.push({from:t.from,insert:e.facet(ye)})})),{userEvent:"input.indent"})),!0),pn=({state:e,dispatch:t})=>e.selection.ranges.some((e=>!e.empty))?dn({state:e,dispatch:t}):(t(e.update(e.replaceSelection("\t"),{scrollIntoView:!0,userEvent:"input"})),!0),gn=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>bt(e,(t=>Ot(e.state,t,!St(e)))),shift:e=>_t(e,(t=>Ot(e.state,t,!St(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>bt(e,(t=>Ot(e.state,t,St(e)))),shift:e=>_t(e,(t=>Ot(e.state,t,St(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>an(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>ln(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>an(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>ln(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,i=null;return n.ranges.length>1?i=r.jT.create([n.main]):n.main.empty||(i=r.jT.create([r.jT.cursor(n.main.head)])),!!i&&(t(yt(e,i)),!0)}},{key:"Mod-Enter",run:hn(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=sn(e).map((({from:t,to:n})=>r.jT.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:r.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=vt(e.selection,(t=>{var n;let i=ae(e).resolveInner(t.head,1);for(;!(i.from<t.from&&i.to>=t.to||i.to>t.to&&i.from<=t.from)&&(null===(n=i.parent)||void 0===n?void 0:n.parent);)i=i.parent;return r.jT.range(i.to,i.from)}));return t(yt(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(fn(e,((t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let o=(0,r.IS)(i,e.tabSize),s=0,a=we(e,Math.max(0,o-be(e)));for(;s<i.length&&s<a.length&&i.charCodeAt(s)==a.charCodeAt(s);)s++;n.push({from:t.from+s,to:t.from+i.length,insert:a.slice(s)})})),{userEvent:"delete.dedent"})),!0)},{key:"Mod-]",run:dn},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new Se(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),i=fn(e,((t,i,o)=>{let s=xe(r,t.from);if(null==s)return;/\S/.test(t.text)||(s=0);let a=/^\s*/.exec(t.text)[0],l=we(e,s);(a!=l||o.from<t.from+a.length)&&(n[t.from]=s,i.push({from:t.from,to:t.from+a.length,insert:l}))}));return i.changes.empty||t(e.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(sn(t).map((({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n})))),r=vt(t.selection,(t=>e.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let i=!1,o=vt(e.selection,(t=>{let n=Pe(e,t.head,-1)||Pe(e,t.head,1)||t.head>0&&Pe(e,t.head-1,1)||t.head<e.doc.length&&Pe(e,t.head+1,-1);if(!n||!n.end)return t;i=!0;let o=n.start.from==t.head?n.end.to:n.end.from;return r.jT.cursor(o)}));return!!i&&(t(yt(e,o)),!0)}(e,t)},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=We(e.state,n.from);return r.line?je(e):!!r.block&&$e(e)}},{key:"Alt-A",run:Fe}].concat([{key:"ArrowLeft",run:kt,shift:Ht,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>Et(e,!St(e)),shift:e=>Vt(e,!St(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>bt(e,(t=>Rt(e,t,!St(e)))),shift:e=>_t(e,(t=>Rt(e,t,!St(e)))),preventDefault:!0},{key:"ArrowRight",run:Ct,shift:It,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>Et(e,St(e)),shift:e=>Vt(e,St(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>bt(e,(t=>Rt(e,t,St(e)))),shift:e=>_t(e,(t=>Rt(e,t,St(e)))),preventDefault:!0},{key:"ArrowUp",run:Tt,shift:Ft,preventDefault:!0},{mac:"Cmd-ArrowUp",run:qt,shift:Gt},{mac:"Ctrl-ArrowUp",run:Lt,shift:Ut},{key:"ArrowDown",run:Dt,shift:$t,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Kt,shift:Qt},{mac:"Ctrl-ArrowDown",run:zt,shift:Zt},{key:"PageUp",run:Lt,shift:Ut},{key:"PageDown",run:zt,shift:Zt},{key:"Home",run:e=>bt(e,(t=>Rt(e,t,!1))),shift:e=>_t(e,(t=>Rt(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:qt,shift:Gt},{key:"End",run:e=>bt(e,(t=>Rt(e,t,!0))),shift:e=>_t(e,(t=>Rt(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:Kt,shift:Qt},{key:"Enter",run:cn},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:en,shift:en},{key:"Delete",run:tn},{key:"Mod-Backspace",mac:"Alt-Backspace",run:rn},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>nn(e,!0)},{mac:"Mod-Backspace",run:e=>Yt(e,(t=>{let n=e.lineBlockAt(t).from;return t>n?n:Math.max(0,t-1)}))},{mac:"Mod-Delete",run:on}].concat([{key:"Ctrl-b",run:kt,shift:Ht,preventDefault:!0},{key:"Ctrl-f",run:Ct,shift:It},{key:"Ctrl-p",run:Tt,shift:Ft},{key:"Ctrl-n",run:Dt,shift:$t},{key:"Ctrl-a",run:e=>bt(e,(t=>r.jT.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>_t(e,(t=>r.jT.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>bt(e,(t=>r.jT.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>_t(e,(t=>r.jT.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:tn},{key:"Ctrl-h",run:en},{key:"Ctrl-k",run:on},{key:"Ctrl-Alt-h",run:rn},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:r.xv.of(["",""])},range:r.jT.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,i=e.doc.lineAt(n),o=n==i.from?n-1:(0,r.cp)(i.text,n-i.from,!1)+i.from,s=n==i.to?n+1:(0,r.cp)(i.text,n-i.from,!0)+i.from;return{changes:{from:o,to:s,insert:e.doc.slice(n,s).append(e.doc.slice(o,n))},range:r.jT.cursor(s)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:zt}].map((e=>({mac:e.key,run:e.run,shift:e.shift})))))},78120:(e,t,n)=>{"use strict";n.d(t,{BO:()=>xe,D0:()=>ve,F6:()=>K,Gz:()=>Ie,IS:()=>He,Py:()=>ue,QQ:()=>W,Wl:()=>Z,Xs:()=>Me,YW:()=>ce,as:()=>M,cp:()=>m,f_:()=>Oe,gc:()=>C,gm:()=>x,jT:()=>z,n0:()=>E,nZ:()=>S,q6:()=>se,r$:()=>B,uU:()=>Se,xv:()=>r,yy:()=>we});class r{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),o.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),o.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new l(this),i=new l(e);for(let e=t,o=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(o+=r.value.length,r.done||o>=n)return!0}}iter(e=1){return new l(this,e)}iterRange(e,t=this.length){return new u(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new c(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new i(e):o.from(i.split(e,[])):r.empty}}class i extends r{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],s=r+o.length;if((t?n:s)>=e)return new h(r,s,n,o);r=s+1,n++}}decompose(e,t,n,r){let o=e<=0&&t>=this.length?this:new i(a(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=s(o.text,e.text.slice(),0,o.length);if(t.length<=32)n.push(new i(t,e.length+o.length));else{let e=t.length>>1;n.push(new i(t.slice(0,e)),new i(t.slice(e)))}}else n.push(o)}replace(e,t,n){if(!(n instanceof i))return super.replace(e,t,n);let r=s(this.text,s(n.text,a(this.text,0,e)),t),l=this.length+n.length-(t-e);return r.length<=32?new i(r,l):o.from(i.split(r,[]),l)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;i<=t&&o<this.text.length;o++){let s=this.text[o],a=i+s.length;i>e&&o&&(r+=n),e<a&&t>i&&(r+=s.slice(Math.max(0,e-i),t-i)),i=a+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let o of e)n.push(o),r+=o.length+1,32==n.length&&(t.push(new i(n,r)),n=[],r=-1);return r>-1&&t.push(new i(n,r)),t}}class o extends r{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],s=r+o.length,a=n+o.lines-1;if((t?a:s)>=e)return o.lineInner(e,t,n,r);r=s+1,n=a+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i<this.children.length;i++){let s=this.children[i],a=o+s.length;if(e<=a&&t>=o){let i=r&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!i?n.push(s):s.decompose(e-o,t-o,n,i)}o=a+1}}replace(e,t,n){if(n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let s=this.children[r],a=i+s.length;if(e>=i&&t<=a){let l=s.replace(e-i,t-i,n),u=this.lines-s.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let i=this.children.slice();return i[r]=l,new o(i,this.length-(t-e)+n.length)}return super.replace(i,a,l)}i=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;i<this.children.length&&o<=t;i++){let s=this.children[i],a=o+s.length;o>e&&i&&(r+=n),e<a&&t>o&&(r+=s.sliceString(e-o,t-o,n)),o=a+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof o))return 0;let n=0,[r,i,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==s||i==a)return n;let o=this.children[r],l=e.children[i];if(o!=l)return n+o.scanIdentical(l,t);n+=o.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new i(n,t)}let r=Math.max(32,n>>5),s=r<<1,a=r>>1,l=[],u=0,c=-1,h=[];function f(e){let t;if(e.lines>s&&e instanceof o)for(let t of e.children)f(t);else e.lines>a&&(u>a||!u)?(d(),l.push(e)):e instanceof i&&u&&(t=h[h.length-1])instanceof i&&e.lines+t.lines<=32?(u+=e.lines,c+=e.length+1,h[h.length-1]=new i(t.text.concat(e.text),t.length+1+e.length)):(u+e.lines>r&&d(),u+=e.lines,c+=e.length+1,h.push(e))}function d(){0!=u&&(l.push(1==h.length?h[0]:o.from(h,c)),c=-1,u=h.length=0)}for(let t of e)f(t);return d(),1==l.length?l[0]:new o(l,t)}}function s(e,t,n=0,r=1e9){for(let i=0,o=0,s=!0;o<e.length&&i<=r;o++){let a=e[o],l=i+a.length;l>=n&&(l>r&&(a=a.slice(0,r-i)),i<n&&(a=a.slice(n-i)),s?(t[t.length-1]+=a,s=!1):t.push(a)),i=l+1}return t}function a(e,t,n){return s(e,[""],t,n)}r.empty=new i([""],0);class l{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof i?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],s=o>>1,a=r instanceof i?r.text.length:r.children.length;if(s==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof i){let i=r.text[s+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let o=r.children[s+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof i?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class u{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new l(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class c{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.iter()},l.prototype[Symbol.iterator]=u.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=function(){return this});class h{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}let f="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let e=1;e<f.length;e++)f[e]+=f[e-1];function d(e){for(let t=1;t<f.length;t+=2)if(f[t]>e)return f[t-1]<=e;return!1}function p(e){return e>=127462&&e<=127487}const g=8205;function m(e,t,n=!0,r=!0){return(n?v:y)(e,t,r)}function v(e,t,n){if(t==e.length)return t;t&&b(e.charCodeAt(t))&&w(e.charCodeAt(t-1))&&t--;let r=x(e,t);for(t+=S(r);t<e.length;){let i=x(e,t);if(r==g||i==g||n&&d(i))t+=S(i),r=i;else{if(!p(i))break;{let n=0,r=t-2;for(;r>=0&&p(x(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function y(e,t,n){for(;t>0;){let r=v(e,t-2,n);if(r<t)return r;t--}return 0}function b(e){return e>=56320&&e<57344}function w(e){return e>=55296&&e<56320}function x(e,t){let n=e.charCodeAt(t);if(!w(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return b(r)?r-56320+(n-55296<<10)+65536:n}function S(e){return e<65536?1:2}const k=/\r\n?|\n/;var C=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(C||(C={}));class E{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],o=this.sections[t++];o<0?(e(n,r,i),r+=i):r+=o,n+=i}}iterChangedRanges(e,t=!1){T(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}return new E(e)}composeDesc(e){return this.empty?e:e.empty?this:N(this,e)}mapDesc(e,t=!1){return e.empty?this:D(this,e,t)}mapPos(e,t=-1,n=C.Simple){let r=0,i=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],a=this.sections[o++],l=r+s;if(a<0){if(l>e)return i+(e-r);i+=s}else{if(n!=C.Simple&&l>=e&&(n==C.TrackDel&&r<e&&l>e||n==C.TrackBefore&&r<e||n==C.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!s)return e==r||t<0?i:i+a;i+=a}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=r+this.sections[n++];if(this.sections[n++]>=0&&r<=t&&i>=e)return!(r<e&&i>t)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new E(e)}static create(e){return new E(e)}}class M extends E{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return T(this,((t,n,r,i,o)=>e=e.replace(r,r+(n-t),o)),!1),e}mapDesc(e,t=!1){return D(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,o=0;i<t.length;i+=2){let s=t[i],a=t[i+1];if(a>=0){t[i]=a,t[i+1]=s;let l=i>>1;for(;n.length<l;)n.push(r.empty);n.push(s?e.slice(o,o+s):r.empty)}o+=s}return new M(t,n)}compose(e){return this.empty?e:e.empty?this:N(this,e,!0)}map(e,t=!1){return e.empty?this:D(this,e,t,!0)}iterChanges(e,t=!1){T(this,e,t)}get desc(){return E.create(this.sections)}filter(e){let t=[],n=[],r=[],i=new P(this);e:for(let o=0,s=0;;){let a=o==e.length?1e9:e[o++];for(;s<a||s==a&&0==i.len;){if(i.done)break e;let e=Math.min(i.len,a-s);O(r,e,-1);let o=-1==i.ins?-1:0==i.off?i.ins:0;O(t,e,o),o>0&&A(n,t,i.text),i.forward(e),s+=e}let l=e[o++];for(;s<l;){if(i.done)break e;let e=Math.min(i.len,l-s);O(t,e,-1),O(r,e,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(e),s+=e}}return{changes:new M(t,n),filtered:E.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let i=[],o=[],s=0,a=null;function l(e=!1){if(!e&&!i.length)return;s<t&&O(i,t-s,-1);let n=new M(i,o);a=a?a.compose(n.map(a)):n,i=[],o=[],s=0}return function e(u){if(Array.isArray(u))for(let t of u)e(t);else if(u instanceof M){if(u.length!=t)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${t})`);l(),a=a?a.compose(u.map(a)):u}else{let{from:e,to:a=e,insert:c}=u;if(e>a||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let h=c?"string"==typeof c?r.of(c.split(n||k)):c:r.empty,f=h.length;if(e==a&&0==f)return;e<s&&l(),e>s&&O(i,e-s,-1),O(i,a-e,f),A(o,i,h),s=a}}(e),l(!a),a}static empty(e){return new M(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;i<e.length;i++){let o=e[i];if("number"==typeof o)t.push(o,-1);else{if(!Array.isArray(o)||"number"!=typeof o[0]||o.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==o.length)t.push(o[0],0);else{for(;n.length<i;)n.push(r.empty);n[i]=r.of(o.slice(1)),t.push(o[0],n[i].length)}}}return new M(t,n)}static createSet(e,t){return new M(e,t)}}function O(e,t,n,r=!1){if(0==t&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function A(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<i;)e.push(r.empty);e.push(n)}}function T(e,t,n){let i=e.inserted;for(let o=0,s=0,a=0;a<e.sections.length;){let l=e.sections[a++],u=e.sections[a++];if(u<0)o+=l,s+=l;else{let c=o,h=s,f=r.empty;for(;c+=l,h+=u,u&&i&&(f=f.append(i[a-2>>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)l=e.sections[a++],u=e.sections[a++];t(o,c,s,h,f),o=c,s=h}}}function D(e,t,n,r=!1){let i=[],o=r?[]:null,s=new P(e),a=new P(t);for(let e=-1;;)if(-1==s.ins&&-1==a.ins){let e=Math.min(s.len,a.len);O(i,e,-1),s.forward(e),a.forward(e)}else if(a.ins>=0&&(s.ins<0||e==s.i||0==s.off&&(a.len<s.len||a.len==s.len&&!n))){let t=a.len;for(O(i,a.ins,-1);t;){let n=Math.min(s.len,t);s.ins>=0&&e<s.i&&s.len<=n&&(O(i,0,s.ins),o&&A(o,i,s.text),e=s.i),s.forward(n),t-=n}a.next()}else{if(!(s.ins>=0)){if(s.done&&a.done)return o?M.createSet(i,o):E.create(i);throw new Error("Mismatched change set lengths")}{let t=0,n=s.len;for(;n;)if(-1==a.ins){let e=Math.min(n,a.len);t+=e,n-=e,a.forward(e)}else{if(!(0==a.ins&&a.len<n))break;n-=a.len,a.next()}O(i,t,e<s.i?s.ins:0),o&&e<s.i&&A(o,i,s.text),e=s.i,s.forward(s.len-n)}}}function N(e,t,n=!1){let r=[],i=n?[]:null,o=new P(e),s=new P(t);for(let e=!1;;){if(o.done&&s.done)return i?M.createSet(r,i):E.create(r);if(0==o.ins)O(r,o.len,0,e),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");{let t=Math.min(o.len2,s.len),n=r.length;if(-1==o.ins){let n=-1==s.ins?-1:s.off?0:s.ins;O(r,t,n,e),i&&n&&A(i,r,s.text)}else-1==s.ins?(O(r,o.off?0:o.len,t,e),i&&A(i,r,o.textBit(t))):(O(r,o.off?0:o.len,s.off?0:s.ins,e),i&&!s.off&&A(i,r,s.text));e=(o.ins>t||s.ins>=0&&s.len>t)&&(e||r.length>n),o.forward2(t),s.forward(t)}}else O(r,0,s.ins,e),i&&A(i,r,s.text),s.next()}}class P{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?r.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?r.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class L{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new L(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return z.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return z.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return z.range(e.anchor,e.head)}static create(e,t,n){return new L(e,t,n)}}class z{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:z.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;t<this.ranges.length;t++)if(!this.ranges[t].eq(e.ranges[t]))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new z([this.main],0)}addRange(e,t=!0){return z.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,z.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new z(e.ranges.map((e=>L.fromJSON(e))),e.main)}static single(e,t=e){return new z([z.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let i=e[r];if(i.empty?i.from<=n:i.from<n)return z.normalized(e.slice(),t);n=i.to}return new z(e,t)}static cursor(e,t=0,n,r){return L.create(e,e,(0==t?0:t<0?4:8)|(null==n?3:Math.min(2,n))|(null!=r?r:33554431)<<5)}static range(e,t,n,r){let i=(null!=n?n:33554431)<<5|(null==r?3:Math.min(2,r));return t<e?L.create(t,e,24|i):L.create(e,t,(t>e?4:0)|i)}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let n=1;n<e.length;n++){let r=e[n],i=e[n-1];if(r.empty?r.from<=i.to:r.from<i.to){let o=i.from,s=Math.max(r.to,i.to);n<=t&&t--,e.splice(--n,2,r.anchor>r.head?z.range(s,o):z.range(o,s))}}return new z(e,t)}}function R(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let _=0;class B{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=_++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}static define(e={}){return new B(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:H),!!e.static,e.enables)}of(e){return new I([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new I(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new I(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function H(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class I{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=_++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,s=2==this.type,a=!1,l=!1,u=[];for(let n of this.dependencies)"doc"==n?a=!0:"selection"==n?l=!0:0==(1&(null!==(t=e[n.id])&&void 0!==t?t:1))&&u.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||j(e,u)){let t=n(e);if(s?!V(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[i];if(null!=l){let i=J(t,l);if(this.dependencies.every((n=>n instanceof B?t.facet(n)===e.facet(n):!(n instanceof W)||t.field(n,!1)==e.field(n,!1)))||(s?V(a=n(e),i,r):r(a=n(e),i)))return e.values[o]=i,0}else a=n(e);return e.values[o]=a,1}}}}function V(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function j(e,t){let n=!1;for(let r of t)1&Y(e,r)&&(n=!0);return n}function F(e,t,n){let r=n.map((t=>e[t.id])),i=n.map((e=>e.type)),o=r.filter((e=>!(1&e))),s=e[t.id]>>1;function a(e){let n=[];for(let t=0;t<r.length;t++){let o=J(e,r[t]);if(2==i[t])for(let e of o)n.push(e);else n.push(o)}return t.combine(n)}return{create(e){for(let t of r)Y(e,t);return e.values[s]=a(e),1},update(e,n){if(!j(e,o))return 0;let r=a(e);return t.compare(r,e.values[s])?0:(e.values[s]=r,1)},reconfigure(e,i){let o=j(e,r),l=i.config.facets[t.id],u=i.facet(t);if(l&&!o&&H(n,l))return e.values[s]=u,0;let c=a(e);return t.compare(c,u)?(e.values[s]=u,0):(e.values[s]=c,1)}}}const $=B.define({static:!0});class W{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(e){let t=new W(_++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet($).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,$.of({field:this,create:e})]}get extension(){return this}}function U(e){return t=>new q(t,e)}const Z={highest:U(0),high:U(1),default:U(2),low:U(3),lowest:U(4)};class q{constructor(e,t){this.inner=e,this.prec=t}}class K{of(e){return new G(this,e)}reconfigure(e){return K.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class G{constructor(e,t){this.compartment=e,this.inner=t}}class Q{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let n of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;return function e(o,s){let a=i.get(o);if(null!=a){if(a<=s)return;let e=r[a].indexOf(o);e>-1&&r[a].splice(e,1),o instanceof G&&n.delete(o.compartment)}if(i.set(o,s),Array.isArray(o))for(let t of o)e(t,s);else if(o instanceof G){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(o.compartment)||o.inner;n.set(o.compartment,r),e(r,s)}else if(o instanceof q)e(o.inner,o.prec);else if(o instanceof W)r[s].push(o),o.provides&&e(o.provides,s);else if(o instanceof I)r[s].push(o),o.facet.extensions&&e(o.facet.extensions,2);else{let t=o.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,s)}}(e,2),r.reduce(((e,t)=>e.concat(t)))}(e,t,o))n instanceof W?r.push(n):(i[n.facet.id]||(i[n.facet.id]=[])).push(n);let s=Object.create(null),a=[],l=[];for(let e of r)s[e.id]=l.length<<1,l.push((t=>e.slot(t)));let u=null==n?void 0:n.config.facets;for(let e in i){let t=i[e],r=t[0].facet,o=u&&u[e]||[];if(t.every((e=>0==e.type)))if(s[r.id]=a.length<<1|1,H(o,t))a.push(n.facet(r));else{let e=r.combine(t.map((e=>e.value)));a.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}else{for(let e of t)0==e.type?(s[e.id]=a.length<<1|1,a.push(e.value)):(s[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));s[r.id]=l.length<<1,l.push((e=>F(e,r,t)))}}let c=l.map((e=>e(s)));return new Q(e,o,c,s,a,i)}}function Y(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function J(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const X=B.define(),ee=B.define({combine:e=>e.some((e=>e)),static:!0}),te=B.define({combine:e=>e.length?e[0]:void 0,static:!0}),ne=B.define(),re=B.define(),ie=B.define(),oe=B.define({combine:e=>!!e.length&&e[0]});class se{constructor(e,t){this.type=e,this.value=t}static define(){return new ae}}class ae{of(e){return new se(this,e)}}class le{constructor(e){this.map=e}of(e){return new ue(this,e)}}class ue{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new ue(this.type,t)}is(e){return this.type==e}static define(e={}){return new le(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}ue.reconfigure=ue.define(),ue.appendConfig=ue.define();class ce{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&R(n,t.newLength),i.some((e=>e.type==ce.time))||(this.annotations=i.concat(ce.time.of(Date.now())))}static create(e,t,n,r,i,o){return new ce(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ce.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function he(e,t){let n=[];for(let r=0,i=0;;){let o,s;if(r<e.length&&(i==t.length||t[i]>=e[r]))o=e[r++],s=e[r++];else{if(!(i<t.length))return n;o=t[i++],s=t[i++]}!n.length||n[n.length-1]<o?n.push(o,s):n[n.length-1]<s&&(n[n.length-1]=s)}}function fe(e,t,n){var r;let i,o,s;return n?(i=t.changes,o=M.empty(t.changes.length),s=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),s=e.changes.compose(i)),{changes:s,selection:t.selection?t.selection.map(o):null===(r=e.selection)||void 0===r?void 0:r.map(i),effects:ue.mapEffects(e.effects,i).concat(ue.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function de(e,t,n){let r=t.selection,i=me(t.annotations);return t.userEvent&&(i=i.concat(ce.userEvent.of(t.userEvent))),{changes:t.changes instanceof M?t.changes:M.of(t.changes||[],n,e.facet(te)),selection:r&&(r instanceof z?r:z.single(r.anchor,r.head)),effects:me(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function pe(e,t,n){let r=de(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(n=!1);for(let i=1;i<t.length;i++){!1===t[i].filter&&(n=!1);let o=!!t[i].sequential;r=fe(r,de(e,t[i],o?r.changes.newLength:e.doc.length),o)}let i=ce.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return function(e){let t=e.startState,n=t.facet(ie),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=fe(r,de(t,o,e.changes.newLength),!0))}return r==e?e:ce.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(ne)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:he(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=M.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=ce.create(t,r,e.selection&&e.selection.map(i),ue.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(re);for(let n=r.length-1;n>=0;n--){let i=r[n](e);e=i instanceof ce?i:Array.isArray(i)&&1==i.length&&i[0]instanceof ce?i[0]:pe(t,me(i),!1)}return e}(i):i)}ce.time=se.define(),ce.userEvent=se.define(),ce.addToHistory=se.define(),ce.remote=se.define();const ge=[];function me(e){return null==e?ge:Array.isArray(e)?e:[e]}var ve=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ve||(ve={}));const ye=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let be;try{be=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class we{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)Y(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null!=n)return Y(this,n),J(this,n);if(t)throw new RangeError("Field is not present in this state")}update(...e){return pe(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:i}=n;for(let t of e.effects)t.is(K.reconfigure)?(n&&(i=new Map,n.compartments.forEach(((e,t)=>i.set(t,e))),n=null),i.set(t.value.compartment,t.value.extension)):t.is(ue.reconfigure)?(n=null,r=t.value):t.is(ue.appendConfig)&&(n=null,r=me(r).concat(t.value));n?t=e.startState.values.slice():(n=Q.resolve(r,i,this),t=new we(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values),new we(n,e.newDoc,e.newSelection,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:z.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=me(n.effects);for(let n=1;n<t.ranges.length;n++){let s=e(t.ranges[n]),a=this.changes(s.changes),l=a.map(r);for(let e=0;e<n;e++)i[e]=i[e].map(l);let u=r.mapDesc(a,!0);i.push(s.range.map(u)),r=r.compose(l),o=ue.mapEffects(o,l).concat(ue.mapEffects(me(s.effects),u))}return{changes:r,selection:z.create(i,t.mainIndex),effects:o}}changes(e=[]){return e instanceof M?e:M.of(e,this.doc.length,this.facet(we.lineSeparator))}toText(e){return r.of(e.split(this.facet(we.lineSeparator)||k))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(Y(this,t),J(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof W&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n)for(let t in n)if(Object.prototype.hasOwnProperty.call(e,t)){let i=n[t],o=e[t];r.push(i.init((e=>i.spec.fromJSON(o,e))))}return we.create({doc:e.doc,selection:z.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=Q.resolve(e.extensions||[],new Map),n=e.doc instanceof r?e.doc:r.of((e.doc||"").split(t.staticFacet(we.lineSeparator)||k)),i=e.selection?e.selection instanceof z?e.selection:z.single(e.selection.anchor,e.selection.head):z.single(0);return R(i,n.length),t.staticFacet(ee)||(i=i.asSingle()),new we(t,n,i,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(we.tabSize)}get lineBreak(){return this.facet(we.lineSeparator)||"\n"}get readOnly(){return this.facet(oe)}phrase(e,...t){for(let t of this.facet(we.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]}))),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(X))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return ve.Space;if(function(e){if(be)return be.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||ye.test(n)))return!0}return!1}(e))return ve.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return ve.Word;return ve.Other};var t}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,s=e-n;for(;o>0;){let e=m(t,o,!1);if(i(t.slice(e,o))!=ve.Word)break;o=e}for(;s<r;){let e=m(t,s);if(i(t.slice(s,e))!=ve.Word)break;s=e}return o==s?null:z.range(o+n,s+n)}}function xe(e,t,n={}){let r={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],o=r[e];if(void 0===o)r[e]=i;else if(o===i||void 0===i);else{if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e);r[e]=n[e](o,i)}}for(let e in t)void 0===r[e]&&(r[e]=t[e]);return r}we.allowMultipleSelections=ee,we.tabSize=B.define({combine:e=>e.length?e[0]:4}),we.lineSeparator=te,we.readOnly=oe,we.phrases=B.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((n=>e[n]==t[n]))}}),we.languageData=X,we.changeFilter=ne,we.transactionFilter=re,we.transactionExtender=ie,K.reconfigure=ue.define();class Se{eq(e){return this==e}range(e,t=e){return ke.create(e,t,this)}}Se.prototype.startSide=Se.prototype.endSide=0,Se.prototype.point=!1,Se.prototype.mapMode=C.TrackDel;class ke{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new ke(e,t,n)}}function Ce(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Ee{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let o=r,s=i.length;;){if(o==s)return o;let r=o+s>>1,a=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return a>=0?o:s;a>=0?s=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i<o;i++)if(!1===r(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}map(e,t){let n=[],r=[],i=[],o=-1,s=-1;for(let a=0;a<this.value.length;a++){let l,u,c=this.value[a],h=this.from[a]+e,f=this.to[a]+e;if(h==f){let e=t.mapPos(h,c.startSide,c.mapMode);if(null==e)continue;if(l=u=e,c.startSide!=c.endSide&&(u=t.mapPos(h,c.endSide),u<l))continue}else if(l=t.mapPos(h,c.startSide),u=t.mapPos(f,c.endSide),l>u||l==u&&c.startSide>0&&c.endSide<=0)continue;(u-l||c.endSide-c.startSide)<0||(o<0&&(o=l),c.point&&(s=Math.max(s,u-l)),n.push(c),r.push(l-o),i.push(u-o))}return{mapped:n.length?new Ee(r,i,n,s):null,pos:o}}}class Me{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new Me(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(Ce)),this.isEmpty)return t.length?Me.of(t):this;let s=new Te(this,null,-1).goto(0),a=0,l=[],u=new Oe;for(;s.value||a<t.length;)if(a<t.length&&(s.from-t[a].from||s.startSide-t[a].value.startSide)>=0){let e=t[a++];u.addInner(e.from,e.to,e.value)||l.push(e)}else 1==s.rangeIndex&&s.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(s.chunkIndex)<t[a].from)&&(!o||r>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&u.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||r>s.to||i<s.from||o(s.from,s.to,s.value))&&(u.addInner(s.from,s.to,s.value)||l.push(ke.create(s.from,s.to,s.value))),s.next());return u.finishInner(this.nextLayer.isEmpty&&!l.length?Me.empty:this.nextLayer.update({add:l,filter:o,filterFrom:r,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1;for(let i=0;i<this.chunk.length;i++){let o=this.chunkPos[i],s=this.chunk[i],a=e.touchesRange(o,o+s.length);if(!1===a)r=Math.max(r,s.maxPoint),t.push(s),n.push(e.mapPos(o));else if(!0===a){let{mapped:i,pos:a}=s.map(o,e);i&&(r=Math.max(r,i.maxPoint),t.push(i),n.push(a))}}let i=this.nextLayer.map(e);return 0==t.length?i:new Me(n,t,i||Me.empty,r)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],o=this.chunk[r];if(t>=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return De.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return De.from(e).goto(t)}static compare(e,t,n,r,i=-1){let o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),s=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),a=Ae(o,s,n),l=new Pe(o,a,i),u=new Pe(s,a,i);n.iterGaps(((e,t,n)=>Le(l,e,u,t,n,r))),n.empty&&0==n.length&&Le(l,0,u,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=999999999);let i=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(i.length!=o.length)return!1;if(!i.length)return!0;let s=Ae(i,o),a=new Pe(i,s,0).goto(n),l=new Pe(o,s,0).goto(n);for(;;){if(a.to!=l.to||!ze(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>r)return!0;a.next(),l.next()}}static spans(e,t,n,r,i=-1){let o=new Pe(e,null,i).goto(t),s=t,a=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),i=o.pointFrom<t?n.length+1:Math.min(n.length,a);r.point(s,e,o.point,n,i,o.pointRank),a=Math.min(o.openEnd(e),n.length)}else e>s&&(r.span(s,e,o.active,a),a=o.openEnd(e));if(o.to>n)return a+(o.point&&o.to>n?1:0);s=o.to,o.next()}}static of(e,t=!1){let n=new Oe;for(let r of e instanceof ke?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(Ce(t,r)>0)return e.slice().sort(Ce);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}}Me.empty=new Me([],[],null,-1),Me.empty.nextLayer=Me.empty;class Oe{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(e){this.chunks.push(new Ee(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Oe)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Me.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Me.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Ae(e,t,n){let r=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&r.set(t.chunk[e],t.chunkPos[e]);let i=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let o=r.get(e.chunk[t]);null==o||(n?n.mapPos(o):o)!=e.chunkPos[t]||(null==n?void 0:n.touchesRange(o,o+e.chunk[t].length))||i.add(e.chunk[t])}return i}class Te{constructor(e,t,n,r=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class De{constructor(e){this.heap=e}static from(e,t=null,n=-1){let r=[];for(let i=0;i<e.length;i++)for(let o=e[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new Te(o,t,n,i));return 1==r.length?r[0]:new De(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)Ne(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)Ne(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Ne(this.heap,0)}}}function Ne(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1<e.length&&i.compare(e[r+1])>=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class Pe{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=De.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Re(this.active,e),Re(this.activeTo,e),Re(this.activeRank,e),this.minActive=Be(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t<this.activeRank.length&&this.activeRank[t]<=i;)t++;_e(this.active,t,n),_e(this.activeTo,t,r),_e(this.activeRank,t,i),e&&_e(e,t,this.cursor.from),this.minActive=Be(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&Re(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function Le(e,t,n,r,i,o){e.goto(t),n.goto(r);let s=r+i,a=r,l=r-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,i=Math.min(r,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&ze(e.activeForPoint(e.to+l),n.activeForPoint(n.to))||o.comparePoint(a,i,e.point,n.point):i>a&&!ze(e.active,n.active)&&o.compareRange(a,i,e.active,n.active),r>s)break;a=r,t<=0&&e.next(),t>=0&&n.next()}}function ze(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function Re(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function _e(e,t,n){for(let n=e.length-1;n>=t;n--)e[n+1]=e[n];e[t]=n}function Be(e,t){let n=-1,r=1e9;for(let i=0;i<t.length;i++)(t[i]-r||e[i].endSide-e[n].endSide)<0&&(n=i,r=t[i]);return n}function He(e,t,n=e.length){let r=0;for(let i=0;i<n;)9==e.charCodeAt(i)?(r+=t-r%t,i++):(r++,i=m(e,i));return r}function Ie(e,t,n,r){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=m(e,r)}return!0===r?-1:e.length}},32864:(e,t,n)=>{"use strict";n.d(t,{p:()=>de,Nm:()=>Qe,tk:()=>Un,Y1:()=>wr,lg:()=>Ie,l9:()=>he,Uw:()=>fr,AE:()=>Mr,$f:()=>Xn,Eu:()=>Kr,OO:()=>Re,W$:()=>Nr});for(var r=n(78120),i=n(28699),o={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},a="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),l=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),u="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),c=l||a&&+a[1]<57,h=0;h<10;h++)o[48+h]=o[96+h]=String(h);for(h=1;h<=24;h++)o[h+111]="F"+h;for(h=65;h<=90;h++)o[h]=String.fromCharCode(h+32),s[h]=String.fromCharCode(h);for(var f in o)s.hasOwnProperty(f)||(s[f]=o[f]);function d(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function p(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function g(e,t){if(!t.anchorNode)return!1;try{return p(e,t.anchorNode)}catch(e){return!1}}function m(e){return 3==e.nodeType?O(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function v(e,t,n,r){return!!n&&(b(e,t,n,r,-1)||b(e,t,n,r,1))}function y(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function b(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:w(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=y(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?w(e):0}}}function w(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function x(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function S(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}class k{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?w(t):0),n,Math.min(e.focusOffset,n?w(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let C,E=null;function M(e){if(e.setActive)return e.setActive();if(E)return e.focus(E);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==E?{get preventScroll(){return E={preventScroll:!0},!0}}:void 0),!E){E=!1;for(let e=0;e<t.length;){let n=t[e++],r=t[e++],i=t[e++];n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=i&&(n.scrollLeft=i)}}}function O(e,t,n=t){let r=C||(C=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function A(e,t,n){let r={key:t,code:t,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);i.synthetic=!0,e.dispatchEvent(i);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,e.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}function T(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}class D{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new D(e.parentNode,y(e),t)}static after(e,t){return new D(e.parentNode,y(e)+1,t)}}const N=[];class P{constructor(){this.parent=null,this.dom=null,this.dirty=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.dirty){let n,r=this.dom,i=null;for(let o of this.children){if(o.dirty){if(!o.dom&&(n=i?i.nextSibling:r.firstChild)){let e=P.get(n);(!e||!e.parent&&e.canReuseDOM(o))&&o.reuseDOM(n)}o.sync(e,t),o.dirty=0}if(n=i?i.nextSibling:r.firstChild,t&&!t.written&&t.node==r&&n!=o.dom&&(t.written=!0),o.dom.parentNode==r)for(;n&&n!=o.dom;)n=L(n);else r.insertBefore(o.dom,n);i=o.dom}for(n=i?i.nextSibling:r.firstChild,n&&t&&t.node==r&&(t.written=!0);n;)n=L(n)}else if(1&this.dirty)for(let n of this.children)n.dirty&&(n.sync(e,t),n.dirty=0)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let r=0==w(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}n=r<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!P.get(n);)n=n.nextSibling;if(!n)return this.length;for(let e=0,t=0;;e++){let r=this.children[e];if(r.dom==n)return t;t+=r.length+r.breakAfter}}domBoundsAround(e,t,n=0){let r=-1,i=-1,o=-1,s=-1;for(let a=0,l=n,u=n;a<this.children.length;a++){let n=this.children[a],c=l+n.length;if(l<e&&c>t)return n.domBoundsAround(e,t,l);if(c>=e&&-1==r&&(r=a,i=l),l>t&&n.dom.parentNode==this.dom){o=a,s=u;break}u=c,l=c+n.breakAfter}return{from:i,to:s<0?n+this.length:s,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.dirty|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=N){this.markDirty();for(let n=e;n<t;n++){let e=this.children[n];e.parent==this&&e.destroy()}this.children.splice(e,t-e,...n);for(let e=0;e<n.length;e++)n[e].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new z(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,r,i,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor}getSide(){return 0}destroy(){this.parent=null}}function L(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}P.prototype.breakAfter=0;class z{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function R(e,t,n,r,i,o,s,a,l){let{children:u}=e,c=u.length?u[t]:null,h=o.length?o[o.length-1]:null,f=h?h.breakAfter:s;if(!(t==r&&c&&!s&&!f&&o.length<2&&c.merge(n,i,o.length?h:null,0==n,a,l))){if(r<u.length){let e=u[r];e&&i<e.length?(t==r&&(e=e.split(i),i=0),!f&&h&&e.merge(0,i,h,!0,0,l)?o[o.length-1]=e:(i&&e.merge(0,i,null,!1,0,l),o.push(e))):(null==e?void 0:e.breakAfter)&&(h?h.breakAfter=1:s=1),r++}for(c&&(c.breakAfter=s,n>0&&(!s&&o.length&&c.merge(n,c.length,o[0],!1,a,0)?c.breakAfter=o.shift().breakAfter:(n<c.length||c.children.length&&0==c.children[c.children.length-1].length)&&c.merge(n,c.length,null,!1,a,0),t++));t<r&&o.length;)if(u[r-1].become(o[o.length-1]))r--,o.pop(),l=o.length?0:a;else{if(!u[t].become(o[0]))break;t++,o.shift(),a=o.length?0:l}!o.length&&t&&r<u.length&&!u[t-1].breakAfter&&u[r].merge(0,0,u[t-1],!1,a,l)&&t--,(t<r||o.length)&&e.replaceChildren(t,r,o)}}function _(e,t,n,r,i,o){let s=e.childCursor(),{i:a,off:l}=s.findPos(n,1),{i:u,off:c}=s.findPos(t,-1),h=t-n;for(let e of r)h+=e.length;e.length+=h,R(e,u,c,a,l,r,0,i,o)}let B="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},H="undefined"!=typeof document?document:{documentElement:{style:{}}};const I=/Edge\/(\d+)/.exec(B.userAgent),V=/MSIE \d/.test(B.userAgent),j=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(B.userAgent),F=!!(V||j||I),$=!F&&/gecko\/(\d+)/i.test(B.userAgent),W=!F&&/Chrome\/(\d+)/.exec(B.userAgent),U="webkitFontSmoothing"in H.documentElement.style,Z=!F&&/Apple Computer/.test(B.vendor),q=Z&&(/Mobile\/\w+/.test(B.userAgent)||B.maxTouchPoints>2);var K={mac:q||/Mac/.test(B.platform),windows:/Win/.test(B.platform),linux:/Linux|X11/.test(B.platform),ie:F,ie_version:V?H.documentMode||6:j?+j[1]:I?+I[1]:0,gecko:$,gecko_version:$?+(/Firefox\/(\d+)/.exec(B.userAgent)||[0,0])[1]:0,chrome:!!W,chrome_version:W?+W[1]:0,ios:q,android:/Android\b/.test(B.userAgent),webkit:U,safari:Z,webkit_version:U?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=H.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class G extends P{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return(!n||n instanceof G&&!(this.length-(t-e)+n.length>256))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new G(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new D(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return Y(this.dom,e,t)}}class Q extends P{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let e of t)e.setParent(this)}setAttrs(e){if(T(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}sync(e,t){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof Q&&n.mark.eq(this.mark))||e&&i<=0||t<this.length&&o<=0)||(_(this,e,t,n?n.children:[],i-1,o-1),this.markDirty(),0))}split(e){let t=[],n=0,r=-1,i=0;for(let o of this.children){let s=n+o.length;s>e&&t.push(n<e?o.split(e-n):o),r<0&&n>=e&&(r=i),n=s,i++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new Q(this.mark,t,o)}domAtPos(e){return oe(this,e)}coordsAt(e,t){return ae(this,e,t)}}function Y(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,s=0;0==t&&n<0||t==r&&n>=0?K.chrome||K.gecko||(t?(i--,s=1):o<r&&(o++,s=-1)):n<0?i--:o<r&&o++;let a=O(e,i,o).getClientRects();if(!a.length)return null;let l=a[(s?s<0:n>=0)?0:a.length-1];return K.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,(e=>e.width))||l),s?x(l,s<0):l||null}class J extends P{static create(e,t,n){return new(e.customView||J)(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=J.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof J&&this.widget.compare(n.widget))||e>0&&i<=0||t<this.length&&o<=0)||(this.length=e+(n?n.length:0)+(this.length-t),0))}become(e){return e instanceof J&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return r.xv.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,n=t&&t.state.doc,i=this.posAtStart;return n?n.slice(i,i+this.length):r.xv.empty}domAtPos(e){return(this.length?0==e:this.side>0)?D.before(this.dom):D.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let r=this.dom.getClientRects(),i=null;if(!r.length)return null;for(let t=e>0?r.length-1:0;i=r[t],!(e>0?0==t:t==r.length-1||i.top<i.bottom);t+=e>0?-1:1);return this.length?i:x(i,this.side>0)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class X extends J{domAtPos(e){let{topView:t,text:n}=this.widget;return t?ee(e,0,t,n,this.length-t.length,((e,t)=>e.domAtPos(t)),((e,t)=>new D(e,Math.min(t,e.nodeValue.length)))):new D(n,Math.min(e,n.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(e,t){let{topView:n,text:r}=this.widget;return n?ne(e,t,n,r,this.length-n.length):Math.min(t,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(e,t){let{topView:n,text:r}=this.widget;return n?ee(e,t,n,r,this.length-n.length,((e,t,n)=>e.coordsAt(t,n)),((e,t,n)=>Y(e,t,n))):Y(r,e,t)}destroy(){var e;super.destroy(),null===(e=this.widget.topView)||void 0===e||e.destroy()}get isEditable(){return!0}canReuseDOM(){return!0}}function ee(e,t,n,r,i,o,s){if(n instanceof Q){for(let a=n.dom.firstChild;a;a=a.nextSibling){let n=P.get(a);if(n){let l=p(a,r),u=n.length+(l?i:0);if(e<u||e==u&&n.getSide()<=0)return l?ee(e,t,n,r,i,o,s):o(n,e,t);e-=u}else{let n=te(e,t,a,s);if("number"!=typeof n)return n;e=n}}return o(n,n.length,-1)}return n.dom==r?s(r,e,t):o(n,e,t)}function te(e,t,n,r){if(3==n.nodeType){let i=n.nodeValue.length;if(e<=i)return r(n,e,t);e-=i}else if(1==n.nodeType&&"false"!=n.contentEditable)for(let i=n.firstChild;i;i=i.nextSibling){let n=te(e,t,i,r);if("number"!=typeof n)return n;e=n}return e}function ne(e,t,n,r,i){if(n instanceof Q){let o=0;for(let s=n.dom.firstChild;s;s=s.nextSibling){let n=P.get(s);if(n){let a=p(s,r);if(p(s,e))return o+(a?ne(e,t,n,r,i):n.localPosFromDOM(e,t));o+=n.length+(a?i:0)}else{let n=re(e,t,s);if(null!=n.result)return o+n.result;o+=n.size}}}else if(n.dom==r)return Math.min(t,r.nodeValue.length);return n.localPosFromDOM(e,t)}function re(e,t,n){if(3==n.nodeType)return e==n?{result:t}:{size:n.nodeValue.length};if(1!=n.nodeType||"false"==n.contentEditable)return n.contains(e)?{result:0}:{size:0};{let r=0;for(let i=n.firstChild,o=0;;i=i.nextSibling,o++){if(e==n&&o==t)return{result:r};if(!i)return{size:r};let s=re(e,t,i);if(null!=s.result)return{result:t+s.result};r+=s.size}}}class ie extends P{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof ie&&e.side==this.side}split(){return new ie(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?D.before(this.dom):D.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return r.xv.empty}get isHidden(){return!0}}function oe(e,t){let n=e.dom,{children:r}=e,i=0;for(let e=0;i<r.length;i++){let o=r[i],s=e+o.length;if(!(s==e&&o.getSide()<=0)){if(t>e&&t<s&&o.dom.parentNode==n)return o.domAtPos(t-e);if(t<=e)break;e=s}}for(let e=i;e>0;e--){let t=r[e-1];if(t.dom.parentNode==n)return t.domAtPos(t.length)}for(let e=i;e<r.length;e++){let t=r[e];if(t.dom.parentNode==n)return t.domAtPos(0)}return new D(n,0)}function se(e,t,n){let r,{children:i}=e;n>0&&t instanceof Q&&i.length&&(r=i[i.length-1])instanceof Q&&r.mark.eq(t.mark)?se(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function ae(e,t,n){let r=null,i=-1,o=null,s=-1;!function e(t,a){for(let l=0,u=0;l<t.children.length&&u<=a;l++){let c=t.children[l],h=u+c.length;h>=a&&(c.children.length?e(c,a-u):(!o||o.isHidden&&n>0)&&(h>a||u==h&&c.getSide()>0)?(o=c,s=a-u):(u<a||u==h&&c.getSide()<0&&!c.isHidden)&&(r=c,i=a-u)),u=h}}(e,t);let a=(n<0?r:o)||r||o;return a?a.coordsAt(Math.max(0,a==r?i:s),n):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=m(t);return n[n.length-1]||null}(e)}function le(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}function ue(e,t){if(e==t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let i of n)if(-1==r.indexOf(i)||e[i]!==t[i])return!1;return!0}function ce(e,t,n){let r=null;if(t)for(let i in t)n&&i in n||e.removeAttribute(r=i);if(n)for(let i in n)t&&t[i]==n[i]||e.setAttribute(r=i,n[i]);return!!r}G.prototype.children=J.prototype.children=ie.prototype.children=N;class he{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get customView(){return null}get isHidden(){return!1}destroy(e){}}var fe=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(fe||(fe={}));class de extends r.uU{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new pe(e)}static widget(e){let t=e.side||0,n=!!e.block;return t+=n?t>0?3e8:-4e8:t>0?1e8:-1e8,new me(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:o}=ve(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new me(e,t,n,r,e.widget||null,!0)}static line(e){return new ge(e)}static set(e,t=!1){return r.Xs.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}de.none=r.Xs.empty;class pe extends de{constructor(e){let{start:t,end:n}=ve(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){return this==e||e instanceof pe&&this.tagName==e.tagName&&this.class==e.class&&ue(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}pe.prototype.point=!1;class ge extends de{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof ge&&this.spec.class==e.spec.class&&ue(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}ge.prototype.mapMode=r.gc.TrackBefore,ge.prototype.point=!0;class me extends de{constructor(e,t,n,i,o,s){super(t,n,o,e),this.block=i,this.isReplace=s,this.mapMode=i?t<=0?r.gc.TrackBefore:r.gc.TrackAfter:r.gc.TrackDel}get type(){return this.startSide<this.endSide?fe.WidgetRange:this.startSide<=0?fe.WidgetBefore:fe.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&this.widget.estimatedHeight>=5}eq(e){return e instanceof me&&((t=this.widget)==(n=e.widget)||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function ve(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function ye(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}me.prototype.point=!0;class be extends P{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,r,i,o){if(n){if(!(n instanceof be))return!1;this.dom||n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),_(this,e,t,n?n.children:[],i,o),!0}split(e){let t=new be;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:r}=this.childPos(e);r&&(t.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let e=n;e<this.children.length;e++)t.append(this.children[e],0);for(;n>0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){ue(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){se(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=le(t,this.attrs||{})),n&&(this.attrs=le({class:n},this.attrs||{}))}domAtPos(e){return oe(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.dirty|=6)}sync(e,t){var n;this.dom?4&this.dirty&&(T(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ce(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&P.get(r)instanceof Q;)r=r.lastChild;if(!(r&&this.length&&("BR"==r.nodeName||0!=(null===(n=P.get(r))||void 0===n?void 0:n.isEditable)||K.ios&&this.children.some((e=>e instanceof G))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof G)||/[^ -~]/.test(n.text))return null;let r=m(n.dom);if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=ae(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight<t){let r=(t-e.textHeight)/2;return{top:n.top+r,bottom:n.bottom-r,left:n.left,right:n.left}}}return n}become(e){return!1}get type(){return fe.Text}static find(e,t){for(let n=0,r=0;n<e.children.length;n++){let i=e.children[n],o=r+i.length;if(o>=t){if(i instanceof be)return i;if(o>t)break}r=o+i.breakAfter}return null}}class we extends P{constructor(e,t,n){super(),this.widget=e,this.length=t,this.type=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof we&&this.widget.compare(n.widget))||e>0&&i<=0||t<this.length&&o<=0)||(this.length=e+(n?n.length:0)+(this.length-t),0))}domAtPos(e){return 0==e?D.before(this.dom):D.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new we(this.widget,t,this.type);return n.breakAfter=this.breakAfter,n}get children(){return N}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):r.xv.empty}domBoundsAround(){return null}become(e){return e instanceof we&&e.widget.constructor==this.widget.constructor&&(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.type=e.type,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class xe{constructor(e,t,n,r){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof we&&e.type==fe.WidgetBefore)}getLine(){return this.curLine||(this.content.push(this.curLine=new be),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Se(new ie(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(Se(new G(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,o){if(this.disallowBlockEffectsFor[o]&&n instanceof me){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=t-e;if(n instanceof me)if(n.block){let{type:e}=n;e!=fe.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new we(n.widget||new ke("div"),s,e))}else{let o=J.create(n.widget||new ke("span"),s,s?0:n.startSide),a=this.atCursorPos&&!o.isEditable&&i<=r.length&&(e<t||n.startSide>0),l=!o.isEditable&&(e<t||i>r.length||n.startSide<=0),u=this.getLine();2!=this.pendingBuffer||a||o.isEditable||(this.pendingBuffer=0),this.flushBuffer(r),a&&(u.append(Se(new ie(1),r),i),i=r.length+Math.max(0,i-r.length)),u.append(Se(o,r),i),this.atCursorPos=l,this.pendingBuffer=l?e<t||i>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,n,i,o){let s=new xe(e,t,n,o);return s.openEnd=r.Xs.spans(i,t,n,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function Se(e,t){for(let n of t)e=new Q(n,[e],e.length);return e}class ke extends he{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Ce=r.r$.define(),Ee=r.r$.define(),Me=r.r$.define(),Oe=r.r$.define(),Ae=r.r$.define(),Te=r.r$.define(),De=r.r$.define(),Ne=r.r$.define({combine:e=>e.some((e=>e))}),Pe=r.r$.define({combine:e=>e.some((e=>e))});class Le{constructor(e,t="nearest",n="nearest",r=5,i=5){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i}map(e){return e.empty?this:new Le(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const ze=r.Py.define({map:(e,t)=>e.map(t)});function Re(e,t,n){let r=e.facet(Oe);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const _e=r.r$.define({combine:e=>!e.length||e[0]});let Be=0;const He=r.r$.define();class Ie{constructor(e,t,n,r){this.id=e,this.create=t,this.domEventHandlers=n,this.extension=r(this)}static define(e,t){const{eventHandlers:n,provide:r,decorations:i}=t||{};return new Ie(Be++,e,n,(e=>{let t=[He.of(e)];return i&&t.push($e.of((t=>{let n=t.plugin(e);return n?i(n):de.none}))),r&&t.push(r(e)),t}))}static fromClass(e,t){return Ie.define((t=>new e(t)),t)}}class Ve{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(Re(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){Re(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){Re(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const je=r.r$.define(),Fe=r.r$.define(),$e=r.r$.define(),We=r.r$.define(),Ue=r.r$.define();function Ze(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(Ue)){let s=o(e);s&&(null!=s.left&&(t=Math.max(t,s.left)),null!=s.right&&(n=Math.max(n,s.right)),null!=s.top&&(r=Math.max(r,s.top)),null!=s.bottom&&(i=Math.max(i,s.bottom)))}return{left:t,right:n,top:r,bottom:i}}const qe=r.r$.define();class Ke{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new Ke(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(0==t.length)return e;let n=[];for(let r=0,i=0,o=0,s=0;;r++){let a=r==e.length?null:e[r],l=o-s,u=a?a.fromB:1e9;for(;i<t.length&&t[i]<u;){let e=t[i],r=t[i+1],o=Math.max(s,e),a=Math.min(u,r);if(o<=a&&new Ke(o+l,a+l,o,a).addToSet(n),r>u)break;i+=2}if(!a)return n;new Ke(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),o=a.toA,s=a.toB}}}class Ge{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=r.as.empty(this.startState.doc.length);for(let e of n)this.changes=this.changes.compose(e.changes);let i=[];this.changes.iterChangedRanges(((e,t,n,r)=>i.push(new Ke(e,t,n,r)))),this.changedRanges=i}static create(e,t,n){return new Ge(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var Qe=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Qe||(Qe={}));const Ye=Qe.LTR,Je=Qe.RTL;function Xe(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const et=Xe("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),tt=Xe("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),nt=Object.create(null),rt=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);nt[t]=n,nt[n]=-t}const it=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class ot{get dir(){return this.level%2?Je:Ye}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}static find(e,t,n,r){let i=-1;for(let o=0;o<e.length;o++){let s=e[o];if(s.from<=t&&s.to>=t){if(s.level==n)return o;(i<0||(0!=r?r<0?s.from<t:s.to>t:e[i].level>s.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}const st=[];function at(e){return[new ot(0,e,0)]}let lt="";function ut(e,t,n,i,o){var s;let a=i.head-e.from,l=-1;if(0==a){if(!o||!e.length)return null;t[0].level!=n&&(a=t[0].side(!1,n),l=0)}else if(a==e.length){if(o)return null;let e=t[t.length-1];e.level!=n&&(a=e.side(!0,n),l=t.length-1)}l<0&&(l=ot.find(t,a,null!==(s=i.bidiLevel)&&void 0!==s?s:-1,i.assoc));let u=t[l];a==u.side(o,n)&&(u=t[l+=o?1:-1],a=u.side(!o,n));let c=o==(u.dir==n),h=(0,r.cp)(e.text,a,c);if(lt=e.text.slice(Math.min(a,h),Math.max(a,h)),h!=u.side(o,n))return r.jT.cursor(h+e.from,c?-1:1,u.level);let f=l==(o?t.length-1:0)?null:t[l+(o?1:-1)];return f||u.level==n?f&&f.level<u.level?r.jT.cursor(f.side(!o,n)+e.from,o?1:-1,f.level):r.jT.cursor(h+e.from,o?-1:1,u.level):r.jT.cursor(o?e.to:e.from,o?-1:1,n)}const ct="\uffff";class ht{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(r.yy.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=ct}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=r.nextSibling;if(i==t)break;let o=P.get(r),s=P.get(i);(o&&s?o.breakAfter:(o?o.breakAfter:ft(r))||ft(i)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>e)&&this.lineBreak(),r=i}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,o=-1,s=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),s=this.lineSeparator.length):(i=r.exec(t))&&(o=i.index,s=i[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=s-1);n=o+s}}readNode(e){if(e.cmIgnore)return;let t=P.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+Math.min(t,n.offset))}}function ft(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class dt{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class pt extends P{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.compositionDeco=de.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new be],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Ke(0,0,0,e.state.doc.length)],0)}update(e){let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every((({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=de.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=function(e,t){let n=mt(e);if(!n)return de.none;let{from:r,to:i,node:o,text:s}=n,a=t.mapPos(r,1),l=Math.max(a,t.mapPos(i,-1)),{state:u}=e,c=3==o.nodeType?o.nodeValue:new ht([],u).readRange(o.firstChild,null).text;if(c.indexOf(ct)>-1)return de.none;if(l-a<c.length)if(u.doc.sliceString(a,Math.min(u.doc.length,a+c.length))==c)l=a+c.length;else{if(u.doc.sliceString(Math.max(0,l-c.length),l)!=c)return de.none;a=l-c.length}else if(u.doc.sliceString(a,l)!=c)return de.none;let h=P.get(o);return h instanceof X?h=h.widget.topView:h&&(h.parent=null),de.set(de.replace({widget:new vt(o,s,h),inclusive:!0}).range(a,l))}(this.view,e.changes)),(K.ie||K.chrome)&&!this.compositionDeco.size&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let n=function(e,t,n){let i=new bt;return r.Xs.compare(e,t,n,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return t=Ke.extendWithRanges(t,n),(0!=this.dirty||0!=t.length)&&(this.updateInner(t,e.startState.doc.length),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t);let{observer:n}=this.view;n.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=K.chrome||K.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.dirty=0,e&&(e.written||n.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""}));let r=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.children)e instanceof we&&e.widget instanceof gt&&r.push(e.dom);n.updateGaps(r)}updateChildren(e,t){let n=this.childCursor(t);for(let t=e.length-1;;t--){let r=t>=0?e[t]:null;if(!r)break;let{fromA:i,toA:o,fromB:s,toB:a}=r,{content:l,breakAtStart:u,openStart:c,openEnd:h}=xe.build(this.view.state.doc,s,a,this.decorations,this.dynamicDecorationMap),{i:f,off:d}=n.findPos(o,1),{i:p,off:g}=n.findPos(i,-1);R(this,p,g,f,d,l,u,c,h)}}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let n=this.view.root.activeElement,r=n==this.dom,i=!r&&g(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(r||t||i))return;let o=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,a=this.domAtPos(s.anchor),l=s.empty?a:this.domAtPos(s.head);if(K.gecko&&s.empty&&!this.compositionDeco.size&&1==(u=a).node.nodeType&&u.node.firstChild&&(0==u.offset||"false"==u.node.childNodes[u.offset-1].contentEditable)&&(u.offset==u.node.childNodes.length||"false"==u.node.childNodes[u.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore((()=>a.node.insertBefore(e,a.node.childNodes[a.offset]||null))),a=l=new D(e,0),o=!0}var u;let c=this.view.observer.selectionRange;!o&&c.focusNode&&v(a.node,a.offset,c.anchorNode,c.anchorOffset)&&v(l.node,l.offset,c.focusNode,c.focusOffset)||(this.view.observer.ignore((()=>{K.android&&K.chrome&&this.dom.contains(c.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=d(this.view.root);if(e)if(s.empty){if(K.gecko){let e=(t=a.node,r=a.offset,1!=t.nodeType?0:(r&&"false"==t.childNodes[r-1].contentEditable?1:0)|(r<t.childNodes.length&&"false"==t.childNodes[r].contentEditable?2:0));if(e&&3!=e){let t=yt(a.node,a.offset,1==e?1:-1);t&&(a=new D(t,1==e?0:t.nodeValue.length))}}e.collapse(a.node,a.offset),null!=s.bidiLevel&&null!=c.cursorBidiLevel&&(c.cursorBidiLevel=s.bidiLevel)}else if(e.extend){e.collapse(a.node,a.offset);try{e.extend(l.node,l.offset)}catch(e){}}else{let t=document.createRange();s.anchor>s.head&&([a,l]=[l,a]),t.setEnd(l.node,l.offset),t.setStart(a.node,a.offset),e.removeAllRanges(),e.addRange(t)}var t,r;i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())})),this.view.observer.setSelectionRange(a,l)),this.impreciseAnchor=a.precise?null:new D(c.anchorNode,c.anchorOffset),this.impreciseHead=l.precise?null:new D(c.focusNode,c.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:e}=this,t=e.state.selection.main,n=d(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let o=be.find(this,t.head);if(!o)return;let s=o.posAtStart;if(t.head==s||t.head==s+o.length)return;let a=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!a||!l||a.bottom>l.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let c=e.observer.selectionRange;e.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=t.from&&n.collapse(r,i)}nearest(e){for(let t=e;t;){let e=P.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(n<e.length||e instanceof be)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){for(let n=this.length,r=this.children.length-1;;r--){let i=this.children[r],o=n-i.breakAfter-i.length;if(e>o||e==o&&i.type!=fe.WidgetBefore&&i.type!=fe.WidgetAfter&&(!r||2==t||this.children[r-1].breakAfter||this.children[r-1].type==fe.WidgetBefore&&t>-2))return i.coordsAt(e-o,t);n=o}}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,a=this.view.textDirection==Qe.LTR;for(let e=0,l=0;l<this.children.length;l++){let u=this.children[l],c=e+u.length;if(c>r)break;if(e>=n){let n=u.dom.getBoundingClientRect();if(t.push(n.height),o){let t=u.dom.lastChild,r=t?m(t):[];if(r.length){let t=r[r.length-1],o=a?t.right-n.left:n.right-t.left;o>s&&(s=o,this.minWidth=i,this.minWidthFrom=e,this.minWidthTo=c)}}}e=c+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?Qe.RTL:Qe.LTR}measureTextSize(){for(let e of this.children)if(e instanceof be){let t=e.measureTextSize();if(t)return t}let e,t,n,r=document.createElement("div");return r.className="cm-line",r.style.width="99999px",r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(r);let i=m(r.firstChild)[0];e=r.getBoundingClientRect().height,t=i?i.width/27:7,n=i?i.height:e,r.remove()})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new z(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.length;if(o>n){let r=t.lineBlockAt(o).bottom-t.lineBlockAt(n).top;e.push(de.replace({widget:new gt(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return de.set(e)}updateDeco(){let e=this.view.state.facet($e).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;t<e.length+3;t++)this.dynamicDecorationMap[t]=!1;return this.decorations=[...e,this.compositionDeco,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){let t,{range:n}=e,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1);if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let i=Ze(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom};!function(e,t,n,r,i,o,s,a){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e;c;)if(1==c.nodeType){let e,h=c==l.body;if(h)e=S(u);else{if(c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let t=c.getBoundingClientRect();e={left:t.left,right:t.left+c.clientWidth,top:t.top,bottom:t.top+c.clientHeight}}let f=0,d=0;if("nearest"==i)t.top<e.top?(d=-(e.top-t.top+s),n>0&&t.bottom>e.bottom+d&&(d=t.bottom-e.bottom+d+s)):t.bottom>e.bottom&&(d=t.bottom-e.bottom+s,n<0&&t.top-d<e.top&&(d=-(e.top+d-t.top+s)));else{let r=t.bottom-t.top,o=e.bottom-e.top;d=("center"==i&&r<=o?t.top+r/2-o/2:"start"==i||"center"==i&&n<0?t.top-s:t.bottom-o+s)-e.top}if("nearest"==r?t.left<e.left?(f=-(e.left-t.left+o),n>0&&t.right>e.right+f&&(f=t.right-e.right+f+o)):t.right>e.right&&(f=t.right-e.right+o,n<0&&t.left<e.left+f&&(f=-(e.left+f-t.left+o))):f=("center"==r?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==r==a?t.left-o:t.right-(e.right-e.left)+o)-e.left,f||d)if(h)u.scrollBy(f,d);else{let e=0,n=0;if(d){let e=c.scrollTop;c.scrollTop+=d,n=c.scrollTop-e}if(f){let t=c.scrollLeft;c.scrollLeft+=f,e=c.scrollLeft-t}t={left:t.left-e,top:t.top-n,right:t.right-e,bottom:t.bottom-n},e&&Math.abs(e-f)<1&&(r="nearest"),n&&Math.abs(n-d)<1&&(i="nearest")}if(h)break;c=c.assignedSlot||c.parentNode}else{if(11!=c.nodeType)break;c=c.host}}(this.view.scrollDOM,o,n.head<n.anchor?-1:1,e.x,e.y,e.xMargin,e.yMargin,this.view.textDirection==Qe.LTR)}}class gt extends he{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}}function mt(e){let t=e.observer.selectionRange,n=t.focusNode&&yt(t.focusNode,t.focusOffset,0);if(!n)return null;let r=e.docView.nearest(n);if(!r)return null;if(r instanceof be){let e=n;for(;e.parentNode!=r.dom;)e=e.parentNode;let t=e.previousSibling;for(;t&&!P.get(t);)t=t.previousSibling;let i=t?P.get(t).posAtEnd:r.posAtStart;return{from:i,to:i,node:e,text:n}}{for(;;){let{parent:e}=r;if(!e)return null;if(e instanceof be)break;r=e}let e=r.posAtStart;return{from:e,to:e+r.length,node:r.dom,text:n}}}class vt extends he{constructor(e,t,n){super(),this.top=e,this.text=t,this.topView=n}eq(e){return this.top==e.top&&this.text==e.text}toDOM(){return this.top}ignoreEvent(){return!1}get customView(){return X}}function yt(e,t,n){if(n<=0)for(let n=e,r=t;;){if(3==n.nodeType)return n;if(!(1==n.nodeType&&r>0))break;n=n.childNodes[r-1],r=w(n)}if(n>=0)for(let r=e,i=t;;){if(3==r.nodeType)return r;if(!(1==r.nodeType&&i<r.childNodes.length&&n>=0))break;r=r.childNodes[i],i=0}return null}class bt{constructor(){this.changes=[]}compareRange(e,t){ye(e,t,this.changes)}comparePoint(e,t){ye(e,t,this.changes)}}function wt(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function xt(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function St(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function kt(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function Ct(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function Et(e,t,n){let r,i,o,s,a,l,u,c,h=!1;for(let f=e.firstChild;f;f=f.nextSibling){let e=m(f);for(let d=0;d<e.length;d++){let p=e[d];i&&St(i,p)&&(p=kt(Ct(p,i.bottom),i.top));let g=wt(t,p),m=xt(n,p);if(0==g&&0==m)return 3==f.nodeType?Mt(f,t,n):Et(f,t,n);if(!r||s>m||s==m&&o>g){r=f,i=p,o=g,s=m;let a=m?n<p.top?-1:1:g?t<p.left?-1:1:0;h=!a||(a>0?d<e.length-1:d>0)}0==g?n>p.bottom&&(!u||u.bottom<p.bottom)?(a=f,u=p):n<p.top&&(!c||c.top>p.top)&&(l=f,c=p):u&&St(u,p)?u=Ct(u,p.bottom):c&&St(c,p)&&(c=kt(c,p.top))}}if(u&&u.bottom>=n?(r=a,i=u):c&&c.top<=n&&(r=l,i=c),!r)return{node:e,offset:0};let f=Math.max(i.left,Math.min(i.right,t));return 3==r.nodeType?Mt(r,f,n):h&&"false"!=r.contentEditable?Et(r,f,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0)}}function Mt(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,s=0;for(let a=0;a<r;a++){let r=O(e,a,a+1).getClientRects();for(let l=0;l<r.length;l++){let u=r[l];if(u.top==u.bottom)continue;s||(s=t-u.left);let c=(u.top>n?u.top-n:n-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&c<o){let n=t>=(u.left+u.right)/2,r=n;if((K.chrome||K.gecko)&&O(e,a).getBoundingClientRect().left==u.right&&(r=!n),c<=0)return{node:e,offset:a+(r?1:0)};i=a+(r?1:0),o=c}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function Ot(e,t,n,r=-1){var i,o;let s,a=e.contentDOM.getBoundingClientRect(),l=a.top+e.viewState.paddingTop,{docHeight:u}=e.viewState,{x:c,y:h}=t,f=h-l;if(f<0)return 0;if(f>u)return e.state.doc.length;for(let t=e.defaultLineHeight/2,i=!1;s=e.elementAtHeight(f),s.type!=fe.Text;)for(;f=r>0?s.bottom+t:s.top-t,!(f>=0&&f<=u);){if(i)return n?null:0;i=!0,r=-r}h=l+f;let d=s.from;if(d<e.viewport.from)return 0==e.viewport.from?0:n?null:At(e,a,s,c,h);if(d>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:At(e,a,s,c,h);let p=e.dom.ownerDocument,g=e.root.elementFromPoint?e.root:p,m=g.elementFromPoint(c,h);m&&!e.contentDOM.contains(m)&&(m=null),m||(c=Math.max(a.left+1,Math.min(a.right-1,c)),m=g.elementFromPoint(c,h),m&&!e.contentDOM.contains(m)&&(m=null));let v,y=-1;if(m&&0!=(null===(i=e.docView.nearest(m))||void 0===i?void 0:i.isEditable))if(p.caretPositionFromPoint){let e=p.caretPositionFromPoint(c,h);e&&({offsetNode:v,offset:y}=e)}else if(p.caretRangeFromPoint){let t=p.caretRangeFromPoint(c,h);t&&(({startContainer:v,startOffset:y}=t),(!e.contentDOM.contains(v)||K.safari&&function(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return O(e,r-1,r).getBoundingClientRect().left>n}(v,y,c)||K.chrome&&function(e,t,n){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}return n-(1==e.nodeType?e.getBoundingClientRect():O(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect()).left>5}(v,y,c))&&(v=void 0))}if(!v||!e.docView.dom.contains(v)){let t=be.find(e.docView,d);if(!t)return f>s.top+s.height/2?s.to:s.from;({node:v,offset:y}=Et(t.dom,c,h))}let b=e.docView.nearest(v);if(!b)return null;if(b.isWidget&&1==(null===(o=b.dom)||void 0===o?void 0:o.nodeType)){let e=b.dom.getBoundingClientRect();return t.y<e.top||t.y<=e.bottom&&t.x<=(e.left+e.right)/2?b.posAtStart:b.posAtEnd}return b.localPosFromDOM(v,y)+b.posAtStart}function At(e,t,n,i,o){let s=Math.round((i-t.left)*e.defaultCharacterWidth);e.lineWrapping&&n.height>1.5*e.defaultLineHeight&&(s+=Math.floor((o-n.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength);let a=e.state.sliceDoc(n.from,n.to);return n.from+(0,r.Gz)(a,s,e.state.tabSize)}function Tt(e,t,n,i){let o=e.state.doc.lineAt(t.head),s=e.bidiSpans(o),a=e.textDirectionAt(o.from);for(let l=t,u=null;;){let t=ut(o,s,a,l,n),c=lt;if(!t){if(o.number==(n?e.state.doc.lines:1))return l;c="\n",o=e.state.doc.line(o.number+(n?1:-1)),s=e.bidiSpans(o),t=r.jT.cursor(n?o.from:o.to)}if(u){if(!u(c))return l}else{if(!i)return t;u=i(c)}l=t}}function Dt(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,((e,i,o)=>{if(t>e&&t<i){let o=r||n||(t-e<i-t?-1:1);t=o<0?e:i,r=o}}));if(!r)return t}}function Nt(e,t,n){let i=Dt(e.state.facet(We).map((t=>t(e))),n.from,t.head>n.from?-1:1);return i==n.from?n:r.jT.cursor(i,i<n.from?1:-1)}class Pt{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null;let t=(t,n)=>{this.ignoreDuringComposition(n)||"keydown"==n.type&&this.keydown(e,n)||(this.mustFlushObserver(n)&&e.observer.forceFlush(),this.runCustomHandlers(n.type,e,n)?n.preventDefault():t(e,n))};for(let n in It){let r=It[n];e.contentDOM.addEventListener(n,(n=>{Ht(e,n)&&t(r,n)}),Vt[n]),this.registeredEvents.push(n)}e.scrollDOM.addEventListener("mousedown",(n=>{if(n.target==e.scrollDOM&&n.clientY>e.contentDOM.getBoundingClientRect().bottom&&(t(It.mousedown,n),!n.defaultPrevented&&2==n.button)){let t=e.contentDOM.style.minHeight;e.contentDOM.style.minHeight="100%",setTimeout((()=>e.contentDOM.style.minHeight=t),200)}})),e.scrollDOM.addEventListener("drop",(n=>{n.target==e.scrollDOM&&n.clientY>e.contentDOM.getBoundingClientRect().bottom&&t(It.drop,n)})),K.chrome&&102==K.chrome_version&&e.scrollDOM.addEventListener("wheel",(()=>{this.chromeScrollHack<0?e.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout((()=>{this.chromeScrollHack=-1,e.contentDOM.style.pointerEvents=""}),100)}),{passive:!0}),this.notifiedFocused=e.hasFocus,K.safari&&e.contentDOM.addEventListener("input",(()=>null))}ensureHandlers(e,t){var n;let r;this.customHandlers=[];for(let i of t)if(r=null===(n=i.update(e).spec)||void 0===n?void 0:n.domEventHandlers){this.customHandlers.push({plugin:i.value,handlers:r});for(let t in r)this.registeredEvents.indexOf(t)<0&&"scroll"!=t&&(this.registeredEvents.push(t),e.contentDOM.addEventListener(t,(n=>{Ht(e,n)&&this.runCustomHandlers(t,e,n)&&n.preventDefault()})))}}runCustomHandlers(e,t,n){for(let r of this.customHandlers){let i=r.handlers[e];if(i)try{if(i.call(r.plugin,n,t)||n.defaultPrevented)return!0}catch(e){Re(t.state,e)}}return!1}runScrollHandlers(e,t){this.lastScrollTop=e.scrollDOM.scrollTop,this.lastScrollLeft=e.scrollDOM.scrollLeft;for(let n of this.customHandlers){let r=n.handlers.scroll;if(r)try{r.call(n.plugin,t,e)}catch(t){Re(e.state,t)}}}keydown(e,t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()<this.lastEscPress+2e3)return!0;if(27!=t.keyCode&&Rt.indexOf(t.keyCode)<0&&(e.inputState.lastEscPress=0),K.android&&K.chrome&&!t.synthetic&&(13==t.keyCode||8==t.keyCode))return e.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return!(!K.ios||t.synthetic||t.altKey||t.metaKey||!((n=Lt.find((e=>e.keyCode==t.keyCode)))&&!t.ctrlKey||zt.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)||(this.pendingIOSKey=n||t,setTimeout((()=>this.flushIOSKey(e)),250),0))}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,A(e.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(K.safari&&!K.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}mustFlushObserver(e){return"keydown"==e.type&&229!=e.keyCode}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const Lt=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],zt="dthko",Rt=[16,17,18,20,91,92,224,225];function _t(e){return.7*Math.max(0,e)+8}class Bt{constructor(e,t,n,i){this.view=e,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM),this.atoms=e.state.facet(We).map((t=>t(e)));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(r.yy.allowMultipleSelections)&&function(e,t){let n=e.state.facet(Ce);return n.length?n[0](t):K.mac?t.metaKey:t.ctrlKey}(e,t),this.dragMove=function(e,t){let n=e.state.facet(Ee);return n.length?n[0](t):K.mac?!t.altKey:!t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=d(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e<i.length;e++){let n=i[e];if(n.left<=t.clientX&&n.right>=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)||1!=Jt(t))&&null}start(e){!1===this.dragging&&(e.preventDefault(),this.select(e))}move(e){var t;if(0==e.buttons)return this.destroy();if(!1!==this.dragging)return;this.select(this.lastEvent=e);let n=0,r=0,i=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},o=Ze(this.view);e.clientX-o.left<=i.left+6?n=-_t(i.left-e.clientX):e.clientX+o.right>=i.right-6&&(n=_t(e.clientX-i.right)),e.clientY-o.top<=i.top+6?r=-_t(i.top-e.clientY):e.clientY+o.bottom>=i.bottom-6&&(r=_t(e.clientY-i.bottom)),this.setScrollSpeed(n,r)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;n<e.ranges.length;n++){let i=e.ranges[n],o=null;if(i.empty){let e=Dt(this.atoms,i.from,0);e!=i.from&&(o=r.jT.cursor(e,-1))}else{let e=Dt(this.atoms,i.from,-1),t=Dt(this.atoms,i.to,1);e==i.from&&t==i.to||(o=r.jT.range(i.from==i.anchor?e:t,i.from==i.head?e:t))}o&&(t||(t=e.ranges.slice()),t[n]=o)}return t?r.jT.create(t,e.mainIndex):e}select(e){let{view:t}=this,n=this.skipAtoms(this.style.get(e,this.extend,this.multiple));!this.mustSelect&&n.eq(t.state.selection)&&n.main.assoc==t.state.selection.main.assoc||this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}function Ht(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=P.get(r))&&n.ignoreEvent(t))return!1;return!0}const It=Object.create(null),Vt=Object.create(null),jt=K.ie&&K.ie_version<15||K.ios&&K.webkit_version<604;function Ft(e,t){let n,{state:i}=e,o=1,s=i.toText(t),a=s.lines==i.selection.ranges.length;if(null!=en&&i.selection.ranges.every((e=>e.empty))&&en==s.toString()){let e=-1;n=i.changeByRange((n=>{let l=i.doc.lineAt(n.from);if(l.from==e)return{range:n};e=l.from;let u=i.toText((a?s.line(o++).text:t)+i.lineBreak);return{changes:{from:l.from,insert:u},range:r.jT.cursor(n.from+u.length)}}))}else n=a?i.changeByRange((e=>{let t=s.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},range:r.jT.cursor(e.from+t.length)}})):i.replaceSelection(s);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function $t(e,t,n,i){if(1==i)return r.jT.cursor(t,n);if(2==i)return function(e,t,n=1){let i=e.charCategorizer(t),o=e.doc.lineAt(t),s=t-o.from;if(0==o.length)return r.jT.cursor(t);0==s?n=1:s==o.length&&(n=-1);let a=s,l=s;n<0?a=(0,r.cp)(o.text,s,!1):l=(0,r.cp)(o.text,s);let u=i(o.text.slice(a,l));for(;a>0;){let e=(0,r.cp)(o.text,a,!1);if(i(o.text.slice(e,a))!=u)break;a=e}for(;l<o.length;){let e=(0,r.cp)(o.text,l);if(i(o.text.slice(l,e))!=u)break;l=e}return r.jT.range(a+o.from,l+o.from)}(e.state,t,n);{let n=be.find(e.docView,t),i=e.state.doc.lineAt(n?n.posAtEnd:t),o=n?n.posAtStart:i.from,s=n?n.posAtEnd:i.to;return s<e.state.doc.length&&s==i.to&&s++,r.jT.range(o,s)}}It.keydown=(e,t)=>{e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now())},It.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},It.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},Vt.touchstart=Vt.touchmove={passive:!0},It.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return;let n=null;for(let r of e.state.facet(Me))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=qt(e,t),i=Jt(t),o=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),o=o.map(e.changes))},get(t,s,a){let l,u=qt(e,t),c=$t(e,u.pos,u.bias,i);if(n.pos!=u.pos&&!s){let t=$t(e,n.pos,n.bias,i),o=Math.min(t.from,c.from),s=Math.max(t.to,c.to);c=o<c.from?r.jT.range(o,s):r.jT.range(s,o)}return s?o.replaceRange(o.main.extend(c.from,c.to)):a&&1==i&&o.ranges.length>1&&(l=function(e,t){for(let n=0;n<e.ranges.length;n++){let{from:i,to:o}=e.ranges[n];if(i<=t&&o>=t)return r.jT.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(o,u.pos))?l:a?o.addRange(c):r.jT.create([c])}}}(e,t)),n){let r=e.root.activeElement!=e.contentDOM;e.inputState.startMouseSelection(new Bt(e,t,n,r)),r&&e.observer.ignore((()=>M(e.contentDOM))),e.inputState.mouseSelection&&e.inputState.mouseSelection.start(t)}};let Wt=(e,t)=>e>=t.top&&e<=t.bottom,Ut=(e,t,n)=>Wt(t,n)&&e>=n.left&&e<=n.right;function Zt(e,t,n,r){let i=be.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;let s=i.coordsAt(o,-1);if(s&&Ut(n,r,s))return-1;let a=i.coordsAt(o,1);return a&&Ut(n,r,a)?1:s&&Wt(r,s)?-1:1}function qt(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:Zt(e,n,t.clientX,t.clientY)}}const Kt=K.ie&&K.ie_version<=11;let Gt=null,Qt=0,Yt=0;function Jt(e){if(!Kt)return e.detail;let t=Gt,n=Yt;return Gt=e,Yt=Date.now(),Qt=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Qt+1)%3:1}function Xt(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:o}=e.inputState,s=r&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:i,insert:n},l=e.state.changes(s?[s,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"})}It.dragstart=(e,t)=>{let{selection:{main:n}}=e.state,{mouseSelection:r}=e.inputState;r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove")},It.drop=(e,t)=>{if(!t.dataTransfer)return;if(e.state.readOnly)return t.preventDefault();let n=t.dataTransfer.files;if(n&&n.length){t.preventDefault();let r=Array(n.length),i=0,o=()=>{++i==n.length&&Xt(e,t,r.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=o,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}}else Xt(e,t,t.dataTransfer.getData("Text"),!0)},It.paste=(e,t)=>{if(e.state.readOnly)return t.preventDefault();e.observer.flush();let n=jt?null:t.clipboardData;n?(Ft(e,n.getData("text/plain")||n.getData("text/uri-text")),t.preventDefault()):function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),Ft(e,n.value)}),50)}(e)};let en=null;It.copy=It.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}(e.state);if(!n&&!i)return;en=i?n:null;let o=jt?null:t.clipboardData;o?(t.preventDefault(),o.clearData(),o.setData("text/plain",n)):function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((()=>{r.remove(),e.focus()}),50)}(e,n),"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})};const tn=r.q6.define();function nn(e,t){let n=[];for(let r of e.facet(De)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:tn.of(!0)}):null}function rn(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=nn(e.state,t);n?e.dispatch(n):e.update([])}}),10)}It.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),rn(e)},It.blur=e=>{e.observer.clearSelectionRange(),rn(e)},It.compositionstart=It.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},It.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,K.chrome&&K.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.compositionDeco.size&&e.update([])}),50)},It.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},It.beforeinput=(e,t)=>{var n;let r;if(K.chrome&&K.android&&(r=Lt.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}};const on=["pre-wrap","normal","pre-line","break-spaces"];class sn{constructor(e){this.lineWrapping=e,this.doc=r.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return on.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(10*r)]||(t=!0,this.heightSamples[Math.floor(10*r)]=!0)}return t}refresh(e,t,n,r,i,o){let s=on.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,a){this.heightSamples={};for(let e=0;e<o.length;e++){let t=o[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return a}}class an{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class ln{constructor(e,t,n,r,i,o){this.from=e,this.length=t,this.top=n,this.height=r,this.children=i,this.deco=o}get type(){var e,t,n;return null!==(n=null!==(e=this.children)&&void 0!==e?e:null===(t=this.deco)||void 0===t?void 0:t.type)&&void 0!==n?n:fe.Text}get widget(){return this.deco&&this.deco.widget}get to(){return this.from+this.length}get bottom(){return this.top+this.height}join(e){let t=(this.children||[this]).concat(e.children||[e]);return new ln(this.from,this.length+e.length,this.top,this.height+e.height,t,null)}}var un=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(un||(un={}));const cn=.001;class hn{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>cn&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return hn.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let s=r.length-1;s>=0;s--){let{fromA:a,toA:l,fromB:u,toB:c}=r[s],h=i.lineAt(a,un.ByPosNoHeight,n.setDoc(t),0,0),f=h.to>=l?h:i.lineAt(l,un.ByPosNoHeight,n,0,0);for(c+=f.to-l,l=f.to;s>0&&h.from<=r[s-1].toA;)a=r[s-1].fromA,u=r[s-1].fromB,s--,a<h.from&&(h=i.lineAt(a,un.ByPosNoHeight,n,0,0));u+=h.from-a,a=h.from;let d=vn.build(n.setDoc(o),e,u,c);i=i.replace(a,l,d)}return i.updateHeight(n,0)}static empty(){return new dn(0,0)}static of(e){if(1==e.length)return e[0];let t=0,n=e.length,r=0,i=0;for(;;)if(t==n)if(r>2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r<i){let n=e[t++];n&&(r+=n.size)}else{let t=e[--n];t&&(i+=t.size)}let o=0;return null==e[t-1]?(o=1,t--):null==e[t]&&(o=1,n++),new gn(hn.of(e.slice(0,t)),o,hn.of(e.slice(n)))}}hn.prototype.size=1;class fn extends hn{constructor(e,t,n){super(e,t),this.deco=n}blockAt(e,t,n,r){return new ln(r,this.length,n,this.height,null,this.deco)}lineAt(e,t,n,r,i){return this.blockAt(0,n,r,i)}forEachLine(e,t,n,r,i,o){e<=i+this.length&&t>=i&&o(this.blockAt(0,n,r,i))}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class dn extends fn{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof dn||r instanceof pn&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof pn?r=new dn(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):hn.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class pn extends hn{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,o=i-r+1,s=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);n=t/o,this.length>o+1&&(s=(this.height-t)/(this.length-o-1))}else n=this.height/o;return{firstLine:r,lastLine:i,perLine:n,perChar:s}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:s,perChar:a}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),o=t.doc.lineAt(i),l=s+o.length*a,u=Math.max(n,e-l/2);return new ln(o.from,o.length,u,l,null,null)}{let r=Math.max(0,Math.min(o-i,Math.floor((e-n)/s))),{from:a,length:l}=t.doc.line(i+r);return new ln(a,l,n+s*r,s,null,null)}}lineAt(e,t,n,r,i){if(t==un.ByHeight)return this.blockAt(e,n,r,i);if(t==un.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new ln(t,r-t,0,0,null,null)}let{firstLine:o,perLine:s,perChar:a}=this.heightMetrics(n,i),l=n.doc.lineAt(e),u=s+l.length*a,c=l.number-o,h=r+s*c+a*(l.from-i-c);return new ln(l.from,l.length,Math.max(r,Math.min(h,r+this.height-u)),u,null,null)}forEachLine(e,t,n,r,i,o){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(n,i);for(let u=e,c=r;u<=t;){let t=n.doc.lineAt(u);if(u==e){let n=t.number-s;c+=a*n+l*(e-i-n)}let r=a+l*t.length;o(new ln(t.from,t.length,c,r,null,null)),c+=r,u=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof pn?n[n.length-1]=new pn(e.length+r):n.push(null,new pn(r-1))}if(e>0){let t=n[0];t instanceof pn?n[0]=new pn(e+t.length):n.unshift(new pn(e-1),null)}return hn.of(n)}decomposeLeft(e,t){t.push(new pn(e-1),null)}decomposeRight(e,t){t.push(null,new pn(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),s=-1;for(r.from>t&&n.push(new pn(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==s?s=i:Math.abs(i-s)>=cn&&(s=-2);let a=new dn(t,i);a.outdated=!1,n.push(a),o+=t+1}o<=i&&n.push(null,new pn(i-o).updateHeight(e,o));let a=hn.of(n);return(s<0||Math.abs(a.height-this.height)>=cn||Math.abs(s-this.heightMetrics(e,t).perLine)>=cn)&&(e.heightChanged=!0),a}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class gn extends hn{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return e<i?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,i,r+this.left.length+this.break)}lineAt(e,t,n,r,i){let o=r+this.left.height,s=i+this.left.length+this.break,a=t==un.ByHeight?e<o:e<s,l=a?this.left.lineAt(e,t,n,r,i):this.right.lineAt(e,t,n,o,s);if(this.break||(a?l.to<s:l.from>s))return l;let u=t==un.ByPosNoHeight?un.ByPosNoHeight:un.ByPos;return a?l.join(this.right.lineAt(s,u,n,o,s)):this.left.lineAt(s,u,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let s=r+this.left.height,a=i+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,n,r,i,o),t>=a&&this.right.forEachLine(e,t,n,s,a,o);else{let l=this.lineAt(a,un.ByPos,n,r,i);e<l.from&&this.left.forEachLine(e,l.from-1,n,r,i,o),l.to>=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,s,a,o)}}replace(e,t,n){let r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let e of n)i.push(e);if(e>0&&mn(i,o-1),t<this.length){let e=i.length;this.decomposeRight(t,i),mn(i,e)}return hn.of(i)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?hn.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:o}=this,s=t+i.length+this.break,a=null;return r&&r.from<=t+i.length&&r.more?a=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=s+o.length&&r.more?a=o=o.updateHeight(e,s,n,r):o.updateHeight(e,s,n),a?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function mn(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof pn&&(r=e[t+1])instanceof pn&&e.splice(t-1,3,new pn(n.length+1+r.length))}class vn{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof dn?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new dn(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0;r<0&&(r=this.oracle.lineHeight);let i=t-e;n.block?this.addBlock(new fn(i,r,n)):(i||r>=5)&&this.addLineDeco(r,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new dn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new pn(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof dn)return e;let t=new dn(0,-1);return this.nodes.push(t),t}addBlock(e){var t;this.enterLine();let n=null===(t=e.deco)||void 0===t?void 0:t.type;n!=fe.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n!=fe.WidgetBefore&&(this.covering=e)}addLineDeco(e,t){let n=this.ensureLine();n.length+=t,n.collapsed+=t,n.widgetHeight=Math.max(n.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof dn||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new dn(0,-1));let n=e;for(let e of this.nodes)e instanceof dn&&e.updateHeight(this.oracle,n),n+=e?e.length:1;return this.nodes}static build(e,t,n,i){let o=new vn(n,e);return r.Xs.spans(t,n,i,o,0),o.finish(n)}}class yn{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,r){(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&ye(e,t,this.changes,5)}}function bn(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.defaultView||window,o=Math.max(0,n.left),s=Math.min(i.innerWidth,n.right),a=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let t=e.parentNode;t&&t!=r.body;)if(1==t.nodeType){let n=t,r=window.getComputedStyle(n);if((n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=r.overflow){let r=n.getBoundingClientRect();o=Math.max(o,r.left),s=Math.min(s,r.right),a=Math.max(a,r.top),l=t==e.parentNode?r.bottom:Math.min(l,r.bottom)}t="absolute"==r.position||"fixed"==r.position?n.offsetParent:n.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:o-n.left,right:Math.max(o,s)-n.left,top:a-(n.top+t),bottom:Math.max(a,l)-(n.top+t)}}function wn(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class xn{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.size!=i.size)return!1}return!0}draw(e){return de.replace({widget:new Sn(this.size,e)}).range(this.from,this.to)}}class Sn extends he{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class kn{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaler=An,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Qe.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(Fe).some((e=>"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new sn(t),this.stateDeco=e.facet($e).filter((e=>"function"!=typeof e)),this.heightMap=hn.empty().applyChanges(this.stateDeco,r.xv.empty,this.heightOracle.setDoc(e.doc),[new Ke(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=de.set(this.lineGaps.map((e=>e.draw(!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>r>=e&&r<=t))){let{from:t,to:n}=this.lineBlockAt(r);e.push(new Cn(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?An:new Tn(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:Dn(e,this.scaler))}))}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet($e).filter((e=>"function"!=typeof e));let i=e.changedRanges,o=Ke.extendWithRanges(i,function(e,t,n){let i=new yn;return r.Xs.compare(e,t,n,i,0),i.changes}(n,this.stateDeco,e?e.changes:r.as.empty(this.state.doc.length))),s=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(e.flags|=2);let a=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<a.from||t.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let l=!e.changes.empty||2&e.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Pe)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,o=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?Qe.RTL:Qe.LTR;let s=this.heightOracle.mustRefreshForWrapping(o),a=t.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let u=0,c=0,h=parseInt(n.paddingTop)||0,f=parseInt(n.paddingBottom)||0;this.paddingTop==h&&this.paddingBottom==f||(this.paddingTop=h,this.paddingBottom=f,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let d=(this.printing?wn:bn)(t,this.paddingTop),p=d.top-this.pixelViewport.top,g=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),l){let t=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(t)&&(s=!0),s||i.lineWrapping&&Math.abs(v-this.contentDOMWidth)>i.charWidth){let{lineHeight:n,charWidth:r,textHeight:a}=e.docView.measureTextSize();s=n>0&&i.refresh(o,n,r,a,v/r,t),s&&(e.docView.minWidth=0,u|=8)}p>0&&g>0?c=Math.max(p,g):p<0&&g<0&&(c=Math.min(p,g)),i.heightChanged=!1;for(let n of this.viewports){let o=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(s?hn.empty().applyChanges(this.stateDeco,r.xv.empty,this.heightOracle,[new Ke(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new an(n.from,o))}i.heightChanged&&(u|=2)}let y=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return y&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&u||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:s}=this,a=new Cn(r.lineAt(o-1e3*n,un.ByHeight,i,0,0).from,r.lineAt(s+1e3*(1-n),un.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(e<a.from||e>a.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),s=r.lineAt(e,un.ByPos,i,0,0);n="center"==t.y?(s.top+s.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e<a.from?s.top:s.bottom-o,a=new Cn(r.lineAt(n-500,un.ByHeight,i,0,0).from,r.lineAt(n+o+500,un.ByHeight,i,0,0).to)}}return a}mapViewport(e,t){let n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new Cn(this.heightMap.lineAt(n,un.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,un.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,un.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(t,un.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:s}=this;return(0==e||r<=o-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||i>=s+Math.max(10,Math.min(n,250)))&&r>o-2e3&&i<s+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let r of e)t.touchesRange(r.from,r.to)||n.push(new xn(t.mapPos(r.from),t.mapPos(r.to),r.size));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,i=n?1e4:2e3,o=i>>1,s=i<<1;if(this.defaultTextDirection!=Qe.LTR&&!n)return[];let a=[],l=(i,s,u,c)=>{if(s-i<o)return;let h=this.state.selection.main,f=[h.from];h.empty||f.push(h.to);for(let e of f)if(e>i&&e<s)return l(i,e-10,u,c),void l(e+10,s,u,c);let d=function(e,t){for(let n of e)if(t(n))return n}(e,(e=>e.from>=u.from&&e.to<=u.to&&Math.abs(e.from-i)<o&&Math.abs(e.to-s)<o&&!f.some((t=>e.from<t&&e.to>t))));if(!d){if(s<u.to&&t&&n&&t.visibleRanges.some((e=>e.from<=s&&e.to>=s))){let e=t.moveToLineBoundary(r.jT.cursor(s),!1,!0).head;e>i&&(s=e)}d=new xn(i,s,this.gapSize(u,i,s,c))}a.push(d)};for(let e of this.viewportLines){if(e.length<s)continue;let t=En(e.from,e.to,this.stateDeco);if(t.total<s)continue;let r,o,a=this.scrollTarget?this.scrollTarget.range.head:null;if(n){let n,s,l=i/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=a){let r=On(t,a),i=((this.visibleBottom-this.visibleTop)/2+l)/e.height;n=r-i,s=r+i}else n=(this.visibleTop-e.top-l)/e.height,s=(this.visibleBottom-e.top+l)/e.height;r=Mn(t,n),o=Mn(t,s)}else{let e,n,s=t.total*this.heightOracle.charWidth,l=i*this.heightOracle.charWidth;if(null!=a){let r=On(t,a),i=((this.pixelViewport.right-this.pixelViewport.left)/2+l)/s;e=r-i,n=r+i}else e=(this.pixelViewport.left-l)/s,n=(this.pixelViewport.right+l)/s;r=Mn(t,e),o=Mn(t,n)}r>e.from&&l(e.from,r,e,t),o<e.to&&l(o,e.to,e,t)}return a}gapSize(e,t,n,r){let i=On(r,n)-On(r,t);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){xn.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=de.set(e.map((e=>e.draw(this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];r.Xs.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||Dn(this.heightMap.lineAt(e,un.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return Dn(this.heightMap.lineAt(this.scaler.fromDOM(e),un.ByHeight,this.heightOracle,0,0),this.scaler)}elementAtHeight(e){return Dn(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Cn{constructor(e,t){this.from=e,this.to=t}}function En(e,t,n){let i=[],o=e,s=0;return r.Xs.spans(n,e,t,{span(){},point(e,t){e>o&&(i.push({from:o,to:e}),s+=e-o),o=t}},20),o<t&&(i.push({from:o,to:t}),s+=t-o),{total:s,ranges:i}}function Mn({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],o=i-n;if(r<=o)return n+r;r-=o}}function On(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}const An={toDOM:e=>e,fromDOM:e=>e,scale:1};class Tn{constructor(e,t,n){let r=0,i=0,o=0;this.viewports=n.map((({from:n,to:i})=>{let o=t.lineAt(n,un.ByPos,e,0,0).top,s=t.lineAt(i,un.ByPos,e,0,0).bottom;return r+=s-o,{from:n,to:i,top:o,bottom:s,domTop:0,domBottom:0}})),this.scale=(7e6-r)/(t.height-r);for(let e of this.viewports)e.domTop=o+(e.top-i)*this.scale,o=e.domBottom=e.domTop+(e.bottom-e.top),i=e.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.top)return r+(e-n)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);n=i.bottom,r=i.domBottom}}fromDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.domTop)return n+(e-r)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);n=i.bottom,r=i.domBottom}}}function Dn(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new ln(e.from,e.length,n,r-n,e.children&&e.children.map((e=>Dn(e,t))),e.deco)}const Nn=r.r$.define({combine:e=>e.join(" ")}),Pn=r.r$.define({combine:e=>e.indexOf(!0)>-1}),Ln=i.V.newName(),zn=i.V.newName(),Rn=i.V.newName(),_n={"&light":"."+zn,"&dark":"."+Rn};function Bn(e,t,n){return new i.V(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t})}const Hn=Bn("."+Ln,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},_n);class In{constructor(e,t,n,i){this.typeOver=i,this.bounds=null,this.text="";let{impreciseHead:o,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=o||s?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new dt(n,r)),i==n&&o==r||t.push(new dt(i,o))),t}(e),n=new ht(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,i=2==e.length?e[1].pos:n;return n>-1&&i>-1?r.jT.single(n+t,i+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=o&&o.node==t.focusNode&&o.offset==t.focusOffset||!p(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),i=s&&s.node==t.anchorNode&&s.offset==t.anchorOffset||!p(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);this.newSel=r.jT.single(i,n)}}}function Vn(e,t){let n,{newSel:i}=t,o=e.state.selection.main,s=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:i,to:a}=t.bounds,l=o.from,u=null;(8===s||K.android&&t.text.length<a-i)&&(l=o.to,u="end");let c=function(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o<i&&e.charCodeAt(o)==t.charCodeAt(o);)o++;if(o==i&&e.length==t.length)return null;let s=e.length,a=t.length;for(;s>0&&a>0&&e.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;return"end"==r&&(n-=s+Math.max(0,o-Math.min(s,a))-o),s<o&&e.length<t.length?(o-=n<=o&&n>=s?o-n:0,a=o+(a-s),s=o):a<o&&(o-=n<=o&&n>=a?o-n:0,s=o+(s-a),a=o),{from:o,toA:s,toB:a}}(e.state.doc.sliceString(i,a,ct),t.text,l-i,u);c&&(K.chrome&&13==s&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==ct+ct&&c.toB--,n={from:i+c.from,to:i+c.toA,insert:r.xv.of(t.text.slice(c.from,c.toB).split(ct))})}else i&&(!e.hasFocus&&e.state.facet(_e)||i.main.eq(o))&&(i=null);if(!n&&!i)return!1;if(!n&&t.typeOver&&!o.empty&&i&&i.main.empty?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))}:(K.mac||K.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(i&&2==n.insert.length&&(i=r.jT.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.xv.of([" "])}):K.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(i&&(i=r.jT.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.xv.of([" "])}),n){let t=e.state;if(K.ios&&e.inputState.flushIOSKey(e))return!0;if(K.android&&(n.from==o.from&&n.to==o.to&&1==n.insert.length&&2==n.insert.lines&&A(e.contentDOM,"Enter",13)||(n.from==o.from-1&&n.to==o.to&&0==n.insert.length||8==s&&n.insert.length<n.to-n.from)&&A(e.contentDOM,"Backspace",8)||n.from==o.from&&n.to==o.to+1&&0==n.insert.length&&A(e.contentDOM,"Delete",46)))return!0;let a,l=n.insert.toString();if(e.state.facet(Te).some((t=>t(e,n.from,n.to,l))))return!0;if(e.inputState.composing>=0&&e.inputState.composing++,n.from>=o.from&&n.to<=o.to&&n.to-n.from>=(o.to-o.from)/3&&(!i||i.main.empty&&i.main.from==n.from+n.insert.length)&&e.inputState.composing<0){let r=o.from<n.from?t.sliceDoc(o.from,n.from):"",i=o.to>n.to?t.sliceDoc(n.to,o.to):"";a=t.replaceSelection(e.state.toText(r+n.insert.sliceString(0,void 0,e.state.lineBreak)+i))}else{let s=t.changes(n),l=i&&i.main.to<=s.newLength?i.main:void 0;if(t.selection.ranges.length>1&&e.inputState.composing>=0&&n.to<=o.to&&n.to>=o.to-10){let i=e.state.sliceDoc(n.from,n.to),u=mt(e)||e.state.doc.lineAt(o.head),c=o.to-n.to,h=o.to-o.from;a=t.changeByRange((a=>{if(a.from==o.from&&a.to==o.to)return{changes:s,range:l||a.map(s)};let f=a.to-c,d=f-i.length;if(a.to-a.from!=h||e.state.sliceDoc(d,f)!=i||u&&a.to>=u.from&&a.from<=u.to)return{range:a};let p=t.changes({from:d,to:f,insert:n.insert}),g=a.to-o.to;return{changes:p,range:l?r.jT.range(Math.max(0,l.anchor+g),Math.max(0,l.head+g)):a.map(p)}}))}else a={changes:s,selection:l&&t.selection.replaceRange(l)}}let u="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,u+=".compose",e.inputState.compositionFirstChange&&(u+=".start",e.inputState.compositionFirstChange=!1)),e.dispatch(a,{scrollIntoView:!0,userEvent:u}),!0}if(i&&!i.main.eq(o)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:i,scrollIntoView:t,userEvent:n}),!0}return!1}const jn={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Fn=K.ie&&K.ie_version<=11;class $n{constructor(e){this.view=e,this.active=!1,this.selectionRange=new k,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(K.ie&&K.ie_version<=11||K.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),Fn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()})),this.resizeScroll.observe(e.scrollDOM),this.resizeContent=new ResizeObserver((()=>this.view.requestMeasure())),this.resizeContent.observe(e.contentDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runScrollHandlers(this.view,e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(_e)?n.root.activeElement!=this.dom:!g(n.dom,r))return;let i=r.anchorNode&&n.docView.nearest(r.anchorNode);i&&i.ignoreEvent(e)?t||(this.selectionChanged=!1):(K.ie&&K.ie_version<=11||K.android&&K.chrome)&&!n.state.selection.main.empty&&r.focusNode&&v(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=K.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,o=t.endContainer,s=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);return v(a.node,a.offset,o,s)&&([r,i,o,s]=[o,s,r,i]),{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:s}}(this.view)||d(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=g(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,w(n));;)if(r){if(1!=n.nodeType)return!1;let e=n.childNodes[r-1];"false"==e.contentEditable?r--:(n=e,r=w(n))}else{if(n==e)return!0;r=y(n),n=n.parentNode}}(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else{if(11!=n.nodeType)break;n=n.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,jn),Fn&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Fn&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&A(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(n=this.delayedAndroidKey)||void 0===n?void 0:n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame((()=>{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&g(this.dom,this.selectionRange);return e<0&&!r?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new In(this.view,e,t,n))}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return!1;let n=this.view.state,r=Vn(this.view,t);return this.view.state==n&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.dirty|=4),"childList"==e.type){let n=Wn(t,e.previousSibling||e.target.previousSibling,-1),r=Wn(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n,r;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Wn(e,t,n){for(;t;){let r=P.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}class Un{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||(e=>this.update([e])),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new kn(e.state||r.yy.create(e)),this.plugins=this.state.facet(He).map((e=>new Ve(e)));for(let e of this.plugins)e.update(this);this.observer=new $n(this),this.inputState=new Pt(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new pt(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let t=1==e.length&&e[0]instanceof r.YW?e[0]:this.state.update(...e);this._dispatch(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,i=!1,o=this.state;for(let t of e){if(t.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=t.state}if(this.destroyed)return void(this.viewState.state=o);let s=this.hasFocus,a=0,l=null;e.some((e=>e.annotation(tn)))?(this.inputState.notifiedFocused=s,a=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=nn(o,s),l||(a=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(r.yy.phrases)!=this.state.facet(r.yy.phrases))return this.setState(o);t=Ge.create(this,o,e),t.flags|=a;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(h&&(h=h.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;h=new Le(e.empty?e:r.jT.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(ze)&&(h=e.value)}this.viewState.update(t,h),this.bidiCache=Kn.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(qe)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(Nn)!=t.state.facet(Nn)&&(this.viewState.mustMeasureContent=!0),(n||i||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let e of this.state.facet(Ae))e(t);(l||c)&&Promise.resolve().then((()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Vn(this,c)&&u.force&&A(this.contentDOM,u.key,u.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new kn(e),this.plugins=e.facet(He).map((e=>new Ve(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView=new pt(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(He),n=e.state.facet(He);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new Ve(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this)}measure(e=!0){if(this.destroyed)return;this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,{scrollHeight:n,scrollTop:r,clientHeight:i}=this.scrollDOM,o=r>n-i-4?n:r;try{for(let e=0;;e++){this.updateState=1;let n=this.viewport,r=this.viewState.lineBlockAtHeight(o),i=this.viewState.measure(this);if(!i&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let s=[];4&i||([this.measureRequests,s]=[s,this.measureRequests]);let a=s.map((e=>{try{return e.read(this)}catch(e){return Re(this.state,e),qn}})),l=Ge.create(this,this.state,[]),u=!1,c=!1;l.flags|=i,t?t.flags|=i:t=l,this.updateState=2,l.empty||(this.updatePlugins(l),this.inputState.update(l),this.updateAttrs(),u=this.docView.update(l));for(let e=0;e<s.length;e++)if(a[e]!=qn)try{let t=s[e];t.write&&t.write(a[e],this)}catch(e){Re(this.state,e)}if(this.viewState.editorHeight)if(this.viewState.scrollTarget)this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,c=!0;else{let e=this.viewState.lineBlockAt(r.from).top-r.top;(e>1||e<-1)&&(this.scrollDOM.scrollTop+=e,c=!0)}if(u&&this.docView.updateSelection(!0),this.viewport.from==n.from&&this.viewport.to==n.to&&!c&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(Ae))e(t)}get themeClasses(){return Ln+" "+(this.state.facet(Pn)?Rn:zn)+" "+this.state.facet(Nn)}updateAttrs(){let e=Gn(this,je,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(_e)?"true":"false",class:"cm-content",style:`${K.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Gn(this,Fe,t);let n=this.observer.ignore((()=>{let n=ce(this.contentDOM,this.contentAttrs,t),r=ce(this.dom,this.editorAttrs,e);return n||r}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(Un.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(qe),i.V.mount(this.root,this.styleModules.concat(Hn).reverse())}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((t=>t.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return Nt(this,e,Tt(this,e,t,n))}moveByGroup(e,t){return Nt(this,e,Tt(this,e,t,(t=>function(e,t,n){let i=e.state.charCategorizer(t),o=i(n);return e=>{let t=i(e);return o==r.D0.Space&&(o=t),o==t}}(this,e.head,t))))}moveToLineBoundary(e,t,n=!0){return function(e,t,n,i){let o=e.state.doc.lineAt(t.head),s=i&&e.lineWrapping?e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null;if(s){let t=e.dom.getBoundingClientRect(),i=e.textDirectionAt(o.from),a=e.posAtCoords({x:n==(i==Qe.LTR)?t.right-1:t.left+1,y:(s.top+s.bottom)/2});if(null!=a)return r.jT.cursor(a,n?-1:1)}let a=be.find(e.docView,t.head),l=a?n?a.posAtEnd:a.posAtStart:n?o.to:o.from;return r.jT.cursor(l,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return Nt(this,e,function(e,t,n,i){let o=t.head,s=n?1:-1;if(o==(n?e.state.doc.length:0))return r.jT.cursor(o,t.assoc);let a,l=t.goalColumn,u=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(o),h=e.documentTop;if(c)null==l&&(l=c.left-u.left),a=s<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(o);null==l&&(l=Math.min(u.right-u.left,e.defaultCharacterWidth*(o-t.from))),a=(s<0?t.top:t.bottom)+h}let f=u.left+l,d=null!=i?i:e.defaultLineHeight>>1;for(let n=0;;n+=10){let i=a+(d+n)*s,c=Ot(e,{x:f,y:i},!1,s);if(i<u.top||i>u.bottom||(s<0?c<o:c>o))return r.jT.cursor(c,t.assoc,void 0,l)}}(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),Ot(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r);return x(n,i[ot.find(i,e-r.from,-1,t)].dir==Qe.LTR==t>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Ne)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Zn)return at(e.length);let t=this.textDirectionAt(e.from);for(let n of this.bidiCache)if(n.from==e.from&&n.dir==t)return n.order;let n=function(e,t){let n=e.length,r=t==Ye?1:2,i=t==Ye?2:1;if(!e||1==r&&!it.test(e))return at(n);for(let t=0,i=r,s=r;t<n;t++){let n=(o=e.charCodeAt(t))<=247?et[o]:1424<=o&&o<=1524?2:1536<=o&&o<=1785?tt[o-1536]:1774<=o&&o<=2220?4:8192<=o&&o<=8203?256:64336<=o&&o<=65023?4:8204==o?256:1;512==n?n=i:8==n&&4==s&&(n=16),st[t]=4==n?2:n,7&n&&(s=n),i=n}var o;for(let e=0,t=r,i=r;e<n;e++){let r=st[e];if(128==r)e<n-1&&t==st[e+1]&&24&t?r=st[e]=t:st[e]=256;else if(64==r){let r=e+1;for(;r<n&&64==st[r];)r++;let o=e&&8==t||r<n&&8==st[r]?1==i?1:8:256;for(let t=e;t<r;t++)st[t]=o;e=r-1}else 8==r&&1==i&&(st[e]=1);t=r,7&r&&(i=r)}for(let t,o,s,a=0,l=0,u=0;a<n;a++)if(o=nt[t=e.charCodeAt(a)])if(o<0){for(let e=l-3;e>=0;e-=3)if(rt[e+1]==-o){let t=rt[e+2],n=2&t?r:4&t?1&t?i:r:0;n&&(st[a]=st[rt[e]]=n),l=e;break}}else{if(189==rt.length)break;rt[l++]=a,rt[l++]=t,rt[l++]=u}else if(2==(s=st[a])||1==s){let e=s==r;u=e?0:1;for(let t=l-3;t>=0;t-=3){let n=rt[t+2];if(2&n)break;if(e)rt[t+2]|=2;else{if(4&n)break;rt[t+2]|=4}}}for(let e=0;e<n;e++)if(256==st[e]){let t=e+1;for(;t<n&&256==st[t];)t++;let i=1==(e?st[e-1]:r),o=i==(1==(t<n?st[t]:r))?i?1:2:r;for(let n=e;n<t;n++)st[n]=o;e=t-1}let s=[];if(1==r)for(let e=0;e<n;){let t=e,r=1!=st[e++];for(;e<n&&r==(1!=st[e]);)e++;if(r)for(let n=e;n>t;){let e=n,r=2!=st[--n];for(;n>t&&r==(2!=st[n-1]);)n--;s.push(new ot(n,e,r?2:1))}else s.push(new ot(t,e,0))}else for(let e=0;e<n;){let t=e,r=2==st[e++];for(;e<n&&r==(2==st[e]);)e++;s.push(new ot(t,e,r?1:2))}return s}(e.text,t);return this.bidiCache.push(new Kn(e.from,e.to,t,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||K.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{M(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return ze.of(new Le("number"==typeof e?r.jT.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return Ie.define((()=>({})),{eventHandlers:e})}static theme(e,t){let n=i.V.newName(),r=[Nn.of(n),qe.of(Bn(`.${n}`,e))];return t&&t.dark&&r.push(Pn.of(!0)),r}static baseTheme(e){return r.Wl.lowest(qe.of(Bn("."+Ln,e,_n)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&P.get(n)||P.get(e);return(null===(t=null==r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}Un.styleModule=qe,Un.inputHandler=Te,Un.focusChangeEffect=De,Un.perLineTextDirection=Ne,Un.exceptionSink=Oe,Un.updateListener=Ae,Un.editable=_e,Un.mouseSelectionStyle=Me,Un.dragMovesSelection=Ee,Un.clickAddsSelectionRange=Ce,Un.decorations=$e,Un.atomicRanges=We,Un.scrollMargins=Ue,Un.darkTheme=Pn,Un.contentAttributes=Fe,Un.editorAttributes=je,Un.lineWrapping=Un.contentAttributes.of({class:"cm-lineWrapping"}),Un.announce=r.Py.define();const Zn=4096,qn={};class Kn{constructor(e,t,n,r){this.from=e,this.to=t,this.dir=n,this.order=r}static update(e,t){if(t.empty)return e;let n=[],r=e.length?e[e.length-1].dir:Qe.LTR;for(let i=Math.max(0,e.length-10);i<e.length;i++){let o=e[i];o.dir!=r||t.touchesRange(o.from,o.to)||n.push(new Kn(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.order))}return n}}function Gn(e,t,n){for(let r=e.state.facet(t),i=r.length-1;i>=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&le(o,n)}return n}const Qn=K.mac?"mac":K.windows?"win":K.linux?"linux":"key";function Yn(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const Jn=r.Wl.default(Un.domEventHandlers({keydown:(e,t)=>function(e,t,n,i){let a=function(e){var t=!(c&&(e.ctrlKey||e.altKey||e.metaKey)||u&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?s:o)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),l=(0,r.gm)(a,0),h=(0,r.nZ)(l)==a.length&&" "!=a,f="",d=!1;tr&&tr.view==n&&tr.scope==i&&(f=tr.prefix+" ",(d=Rt.indexOf(t.keyCode)<0)&&(tr=null));let p,g,m=new Set,v=e=>{if(e){for(let r of e.run)if(!m.has(r)&&(m.add(r),r(n,t)))return!0;e.preventDefault&&(d=!0)}return!1},y=e[i];if(y){if(v(y[f+Yn(a,t,!h)]))return!0;if(h&&(t.altKey||t.metaKey||t.ctrlKey)&&!(K.windows&&t.ctrlKey&&t.altKey)&&(p=o[t.keyCode])&&p!=a){if(v(y[f+Yn(p,t,!0)]))return!0;if(t.shiftKey&&(g=s[t.keyCode])!=a&&g!=p&&v(y[f+Yn(g,t,!1)]))return!0}else if(h&&t.shiftKey&&v(y[f+Yn(a,t,!0)]))return!0;if(v(y._any))return!0}return d}(function(e){let t=e.facet(Xn),n=er.get(t);return n||er.set(t,n=function(e,t=Qn){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,s)=>{var a,l;let u=n[e]||(n[e]=Object.create(null)),c=r.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,o,s,a=n[n.length-1];"Space"==a&&(a=" ");for(let e=0;e<n.length-1;++e){const a=n[e];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))i=!0;else if(/^s(hift)?$/i.test(a))o=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);"mac"==t?s=!0:i=!0}}return r&&(a="Alt-"+a),i&&(a="Ctrl-"+a),s&&(a="Meta-"+a),o&&(a="Shift-"+a),a}(e,t)));for(let t=1;t<c.length;t++){let n=c.slice(0,t).join(" ");i(n,!0),u[n]||(u[n]={preventDefault:!0,run:[t=>{let r=tr={view:t,prefix:n,scope:e};return setTimeout((()=>{tr==r&&(tr=null)}),nr),!0}]})}let h=c.join(" ");i(h,!1);let f=u[h]||(u[h]={preventDefault:!1,run:(null===(l=null===(a=u._any)||void 0===a?void 0:a.run)||void 0===l?void 0:l.slice())||[]});o&&f.run.push(o),s&&(f.preventDefault=!0)};for(let r of e){let e=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,run:[]});for(let t in e)e[t].run.push(r.any)}let i=r[t]||r.key;if(i)for(let t of e)o(t,i,r.run,r.preventDefault),r.shift&&o(t,"Shift-"+i,r.shift,r.preventDefault)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}(t.state),e,t,"editor")})),Xn=r.r$.define({enables:Jn}),er=new WeakMap;let tr=null;const nr=4e3;class rr{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=ir(e);return[new rr(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==Qe.LTR,s=e.contentDOM,a=s.getBoundingClientRect(),l=ir(e),u=s.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),h=a.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),f=a.right-(c?parseInt(c.paddingRight):0),d=sr(e,r),p=sr(e,i),g=d.type==fe.Text?d:null,m=p.type==fe.Text?p:null;if(e.lineWrapping&&(g&&(g=or(e,r,g)),m&&(m=or(e,i,m))),g&&m&&g.from==m.from)return y(b(n.from,n.to,g));{let t=g?b(n.from,null,g):w(d,!1),r=m?b(null,n.to,m):w(p,!0),i=[];return(g||d).to<(m||p).from-(g&&m?1:0)?i.push(v(h,t.bottom,f,r.top)):t.bottom<r.top&&e.elementAtHeight((t.bottom+r.top)/2).type==fe.Text&&(t.bottom=r.top=(t.bottom+r.top)/2),y(t).concat(i).concat(y(r))}function v(e,n,r,i){return new rr(t,e-l.left,n-l.top-.01,r-e,i-n+.01)}function y({top:e,bottom:t,horizontal:n}){let r=[];for(let i=0;i<n.length;i+=2)r.push(v(n[i],e,n[i+1],t));return r}function b(t,n,r){let i=1e9,s=-1e9,a=[];function l(t,n,l,u,c){let d=e.coordsAtPos(t,t==r.to?-2:2),p=e.coordsAtPos(l,l==r.from?2:-2);d&&p&&(i=Math.min(d.top,p.top,i),s=Math.max(d.bottom,p.bottom,s),c==Qe.LTR?a.push(o&&n?h:d.left,o&&u?f:p.right):a.push(!o&&u?h:p.left,!o&&n?f:d.right))}let u=null!=t?t:r.from,c=null!=n?n:r.to;for(let r of e.visibleRanges)if(r.to>u&&r.from<c)for(let i=Math.max(r.from,u),o=Math.min(r.to,c);;){let r=e.state.doc.lineAt(i);for(let s of e.bidiSpans(r)){let e=s.from+r.from,a=s.to+r.from;if(e>=o)break;a>i&&l(Math.max(e,i),null==t&&e<=u,Math.min(a,o),null==n&&a>=c,s.dir)}if(i=r.to+1,i>=o)break}return 0==a.length&&l(u,null==t,c,null==n,e.textDirection),{top:i,bottom:s,horizontal:a}}function w(e,t){let n=a.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function ir(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Qe.LTR?t.left:t.right-e.scrollDOM.clientWidth)-e.scrollDOM.scrollLeft,top:t.top-e.scrollDOM.scrollTop}}function or(e,t,n){let i=r.jT.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(i,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(i,!0,!0).from),type:fe.Text}}function sr(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type))for(let e of n.type)if(e.to>t||e.to==t&&(e.to==n.to||e.type==fe.Text))return e;return n}class ar{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(lr)!=e.state.facet(lr)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&e.view.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(lr);for(;t<n.length&&n[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}draw(e){if(e.length!=this.drawn.length||e.some(((e,t)=>{return n=e,r=this.drawn[t],!(n.constructor==r.constructor&&n.eq(r));var n,r}))){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const lr=r.r$.define();function ur(e){return[Ie.define((t=>new ar(t,e))),lr.of(e)]}const cr=!K.ios,hr=r.r$.define({combine:e=>(0,r.BO)(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function fr(e={}){return[hr.of(e),pr,mr,yr,Pe.of(!0)]}function dr(e){return e.startState.facet(hr)!=e.state.facet(hr)}const pr=ur({above:!0,markers(e){let{state:t}=e,n=t.facet(hr),i=[];for(let o of t.selection.ranges){let s=o==t.selection.main;if(o.empty?!s||cr:n.drawRangeCursor){let t=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=o.empty?o:r.jT.cursor(o.head,o.head>o.anchor?-1:1);for(let r of rr.forRange(e,t,n))i.push(r)}}return i},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=dr(e);return n&&gr(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){gr(t.state,e)},class:"cm-cursorLayer"});function gr(e,t){t.style.animationDuration=e.facet(hr).cursorBlinkRate+"ms"}const mr=ur({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:rr.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||dr(e),class:"cm-selectionLayer"}),vr={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};cr&&(vr[".cm-line"].caretColor="transparent !important");const yr=r.Wl.highest(Un.theme(vr));function br(e,t,n,r,i){t.lastIndex=0;for(let o,s=e.iterRange(n,r),a=n;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=t.exec(s.value);)i(a+o.index,o)}class wr{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,i)=>{let o=n(e,t,r);o&&i(r,r+e[0].length,o)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n)}this.boundary=i,this.maxLength=o}createDeco(e){let t=new r.f_,n=t.add.bind(t);for(let{from:t,to:r}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}(e,this.maxLength))br(e.state.doc,this.regexp,t,r,((t,r)=>this.addMatch(r,e,t,n)));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges(((t,i,o,s)=>{s>e.view.viewport.from&&o<e.view.viewport.to&&(n=Math.min(o,n),r=Math.max(s,r))})),e.viewportChanged||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),s=Math.min(i.to,r);if(s>o){let n=e.state.doc.lineAt(o),r=n.to<s?e.state.doc.lineAt(s):n,a=Math.max(i.from,n.from),l=Math.min(i.to,r.to);if(this.boundary){for(;o>n.from;o--)if(this.boundary.test(n.text[o-1-n.from])){a=o;break}for(;s<r.to;s++)if(this.boundary.test(r.text[s-r.from])){l=s;break}}let u,c=[],h=(e,t,n)=>c.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=a-n.from;(u=this.regexp.exec(n.text))&&u.index<l-n.from;)this.addMatch(u,e,u.index+n.from,h);else br(e.state.doc,this.regexp,a,l,((t,n)=>this.addMatch(n,e,t,h)));t=t.update({filterFrom:a,filterTo:l,filter:(e,t)=>e<a||t>l,add:c})}}return t}}const xr=null!=/x/.unicode?"gu":"g",Sr=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",xr),kr={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Cr=null;const Er=r.r$.define({combine(e){let t=(0,r.BO)(e,{render:null,specialChars:Sr,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==Cr&&"undefined"!=typeof document&&document.body){let t=document.body.style;Cr=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return Cr||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,xr)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,xr)),t}});function Mr(e={}){return[Er.of(e),Or||(Or=Ie.fromClass(class{constructor(e){this.view=e,this.decorations=de.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(Er)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new wr({regexp:e.specialChars,decoration:(t,n,i)=>{let{doc:o}=n.state,s=(0,r.gm)(t[0],0);if(9==s){let e=o.lineAt(i),t=n.state.tabSize,s=(0,r.IS)(e.text,t,i-e.from);return de.replace({widget:new Tr((t-s%t)*this.view.defaultCharacterWidth)})}return this.decorationCache[s]||(this.decorationCache[s]=de.replace({widget:new Ar(e,s)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(Er);e.startState.facet(Er)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let Or=null;class Ar extends he{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function(e){return e>=32?"\u2022":10==e?"\u2424":String.fromCharCode(9216+e)}(this.code),n=e.state.phrase("Control character")+" "+(kr[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;let i=document.createElement("span");return i.textContent=t,i.title=n,i.setAttribute("aria-label",n),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class Tr extends he{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}class Dr extends he{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?m(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),r=x(t[0],"rtl"!=n.direction),i=parseInt(n.lineHeight);return r.bottom-r.top>1.5*i?{left:r.left,right:r.right,top:r.top,bottom:r.top+i}:r}ignoreEvent(){return!1}}function Nr(e){return Ie.fromClass(class{constructor(t){this.view=t,this.placeholder=de.set([de.widget({widget:new Dr(e),side:1}).range(0)])}get decorations(){return this.view.state.doc.length?de.none:this.placeholder}},{decorations:e=>e.decorations})}class Pr extends r.uU{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Pr.prototype.elementClass="",Pr.prototype.toDOM=void 0,Pr.prototype.mapMode=r.gc.TrackBefore,Pr.prototype.startSide=Pr.prototype.endSide=-1,Pr.prototype.point=!0;const Lr=r.r$.define(),zr=r.r$.define(),Rr=r.r$.define({combine:e=>e.some((e=>e))});function _r(e){let t=[Br];return e&&!1===e.fixed&&t.push(Rr.of(!0)),t}const Br=Ie.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=e.state.facet(zr).map((t=>new jr(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(Rr),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Rr)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=r.Xs.iter(this.view.state.facet(Lr),this.view.viewport.from),i=[],o=this.gutters.map((e=>new Vr(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(e.type)){let t=!0;for(let r of e.type)if(r.type==fe.Text&&t){Ir(n,i,r.from);for(let e of o)e.line(this.view,r,i);t=!1}else if(r.widget)for(let e of o)e.widget(this.view,r)}else if(e.type==fe.Text){Ir(n,i,e.from);for(let t of o)t.line(this.view,e,i)}for(let e of o)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(zr),n=e.state.facet(zr),i=e.docChanged||e.heightChanged||e.viewportChanged||!r.Xs.eq(e.startState.facet(Lr),e.state.facet(Lr),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(i=!0);else{i=!0;let r=[];for(let i of n){let n=t.indexOf(i);n<0?r.push(new jr(this.view,i)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Un.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==Qe.LTR?{left:n.dom.offsetWidth}:{right:n.dom.offsetWidth}:null}))});function Hr(e){return Array.isArray(e)?e:[e]}function Ir(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class Vr{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=r.Xs.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=t.top-this.height;if(this.i==r.elements.length){let o=new Fr(e,t.height,i,n);r.elements.push(o),r.dom.appendChild(o.dom)}else r.elements[this.i].update(e,t.height,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];Ir(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;(0!=r.length||o.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class jr{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(r=>{let i,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=r.clientY;let s=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,s,r)&&r.preventDefault()}));this.markers=Hr(t.markers(e)),t.initialSpacer&&(this.spacer=new Fr(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Hr(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!r.Xs.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class Fr{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,t){let n="cm-gutterElement",r=this.dom.firstChild;for(let i=0,o=0;;){let s=o,a=i<t.length?t[i++]:null,l=!1;if(a){let e=a.elementClass;e&&(n+=" "+e);for(let e=o;e<this.markers.length;e++)if(this.markers[e].compare(a)){s=e,l=!0;break}}else s=this.markers.length;for(;o<s;){let e=this.markers[o++];if(e.toDOM){e.destroy(r);let t=r.nextSibling;r.remove(),r=t}}if(!a)break;a.toDOM&&(l?r=r.nextSibling:this.dom.insertBefore(a.toDOM(e),r)),l&&o++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}const $r=r.r$.define(),Wr=r.r$.define({combine:e=>(0,r.BO)(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let r=n[e],i=t[e];n[e]=r?(e,t,n)=>r(e,t,n)||i(e,t,n):i}return n}})});class Ur extends Pr{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Zr(e,t){return e.state.facet(Wr).formatNumber(t,e.state)}const qr=zr.compute([Wr],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet($r),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new Ur(Zr(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Wr)!=e.state.facet(Wr),initialSpacer:e=>new Ur(Zr(e,Gr(e.state.doc.lines))),updateSpacer(e,t){let n=Zr(t.view,Gr(t.view.state.doc.lines));return n==e.number?e:new Ur(n)},domEventHandlers:e.facet(Wr).domEventHandlers})));function Kr(e={}){return[Wr.of(e),_r(),qr]}function Gr(e){let t=9;for(;t<e;)t=10*t+9;return t}},28699:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});const r="undefined"==typeof Symbol?"__\u037c":Symbol.for("\u037c"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class s{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,o,s){let a=[],l=/^@(\w+)\b/.exec(e[0]),u=l&&"keyframes"==l[1];if(l&&null==t)return o.push(e[0]+";");for(let n in t){let s=t[n];if(/&/.test(n))i(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),s,o);else if(s&&"object"==typeof s){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),s,a,u)}else null!=s&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+s+";")}(a.length||u)&&o.push((!n||l||s?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let t in e)i(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=o[r]||1;return o[r]=e+1,"\u037c"+e.toString(36)}static mount(e,t){(e[i]||new l(e)).mount(Array.isArray(t)?t:[t])}}let a=null;class l{constructor(e){if(!e.head&&e.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(a)return e.adoptedStyleSheets=[a.sheet].concat(e.adoptedStyleSheets),e[i]=a;this.sheet=new CSSStyleSheet,e.adoptedStyleSheets=[this.sheet].concat(e.adoptedStyleSheets),a=this}else{this.styleTag=(e.ownerDocument||e).createElement("style");let t=e.head||e;t.insertBefore(this.styleTag,t.firstChild)}this.modules=[],e[i]=this}mount(e){let t=this.sheet,n=0,r=0;for(let i=0;i<e.length;i++){let o=e[i],s=this.modules.indexOf(o);if(s<r&&s>-1&&(this.modules.splice(s,1),r--,s=-1),-1==s){if(this.modules.splice(r++,0,o),t)for(let e=0;e<o.rules.length;e++)t.insertRule(o.rules[e],n++)}else{for(;r<s;)n+=this.modules[r++].rules.length;n+=o.rules.length,r++}}if(!t){let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e}}}}}]);
+1-0public/static/vendors-quickref.9f1fb9975e189e121626.chunk.js
@@ -0,0 +1 @@
1+"use strict";(("undefined"!=typeof self?self:this).webpackChunkregex101=("undefined"!=typeof self?self:this).webpackChunkregex101||[]).push([[483],{53854:(e,a,t)=>{t.d(a,{CAn:()=>n});var r=t(44405);function n(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M7 3a1 1 0 000 2h6a1 1 0 100-2H7zM4 7a1 1 0 011-1h10a1 1 0 110 2H5a1 1 0 01-1-1zM2 11a2 2 0 012-2h12a2 2 0 012 2v4a2 2 0 01-2 2H4a2 2 0 01-2-2v-4z"}}]})(e)}}}]);
+1-0public/static/vendors-sentry.8297ed8fd1b6cf998129.chunk.js
@@ -0,0 +1 @@
1+"use strict";(("undefined"!=typeof self?self:this).webpackChunkregex101=("undefined"!=typeof self?self:this).webpackChunkregex101||[]).push([[530],{29553:(t,e,n)=>{n.d(e,{N:()=>A,gE:()=>O});var s=n(65544),i=n(76890),r=n(77638),a=n(9791),o=n(12343),c=n(99181),l=n(58464);const u=n(71235).n2;var d=n(21170);const _=(t,e,n)=>{let s,i;return r=>{e.value>=0&&(r||n)&&(i=e.value-(s||0),(i||void 0===s)&&(s=e.value,e.delta=i,t(e)))}},h=()=>u.__WEB_VITALS_POLYFILL__?u.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=u.performance.timing,e=u.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(const e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n})()):u.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],p=()=>{const t=h();return t&&t.activationStart||0},f=(t,e)=>{const n=h();let s="navigate";return n&&(s=u.document.prerendering||p()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:s}},m=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const s=new PerformanceObserver((t=>{e(t.getEntries())}));return s.observe(Object.assign({type:t,buffered:!0},n||{})),s}}catch(t){}},g=(t,e)=>{const n=s=>{"pagehide"!==s.type&&"hidden"!==u.document.visibilityState||(t(s),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)};let y=-1;const v=()=>(y<0&&(y="hidden"!==u.document.visibilityState||u.document.prerendering?1/0:0,g((({timeStamp:t})=>{y=t}),!0)),{get firstHiddenTime(){return y}}),S={};function E(t){return"number"==typeof t&&isFinite(t)}function b(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function k(t){return t/1e3}function w(){return u&&u.addEventListener&&u.performance}let T,R,x=0,D={};function N(){const t=w();if(t&&d.Z1){t.mark&&u.performance.mark("sentry-tracing-init"),(t=>{const e=v(),n=f("FID");let s;const i=t=>{t.startTime<e.firstHiddenTime&&(n.value=t.processingStart-t.startTime,n.entries.push(t),s(!0))},r=t=>{t.forEach(i)},a=m("first-input",r);s=_((t=>{const e=t.entries.pop();if(!e)return;const n=k(d.Z1),s=k(e.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding FID"),D.fid={value:t.value,unit:"millisecond"},D["mark.fid"]={value:n+s,unit:"second"}}),n),a&&g((()=>{r(a.takeRecords()),a.disconnect()}),!0)})();const e=(t=>{const e=f("CLS",0);let n,s=0,i=[];const r=t=>{t.forEach((t=>{if(!t.hadRecentInput){const r=i[0],a=i[i.length-1];s&&0!==i.length&&t.startTime-a.startTime<1e3&&t.startTime-r.startTime<5e3?(s+=t.value,i.push(t)):(s=t.value,i=[t]),s>e.value&&(e.value=s,e.entries=i,n&&n())}}))},a=m("layout-shift",r);if(a){n=_((t=>{const e=t.entries.pop();e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding CLS"),D.cls={value:t.value,unit:""},R=e)}),e);const t=()=>{r(a.takeRecords()),n(!0)};return g(t),t}})(),n=(t=>{const e=v(),n=f("LCP");let s;const i=t=>{const i=t[t.length-1];if(i){const t=Math.max(i.startTime-p(),0);t<e.firstHiddenTime&&(n.value=t,n.entries=[i],s())}},r=m("largest-contentful-paint",i);if(r){s=_((t=>{const e=t.entries.pop();e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding LCP"),D.lcp={value:t.value,unit:"millisecond"},T=e)}),n);const t=()=>{S[n.id]||(i(r.takeRecords()),r.disconnect(),S[n.id]=!0,s(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),g(t,!0),t}})();return()=>{e&&e(),n&&n()}}return()=>{}}function I(t,e,n,s,i,r){const a=r?e[r]:e[`${n}End`],o=e[`${n}Start`];o&&a&&b(t,{op:"browser",description:i||n,startTimestamp:s+k(o),endTimestamp:s+k(a)})}var C=n(10516),U=n(42533);const A="BrowserTracing",B={...s.AT,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){if(!u||!u.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Could not initialize routing instrumentation due to invalid location"));let s,i=u.location.href;e&&(s=t({name:u.location.pathname,startTimestamp:d.Z1?d.Z1/1e3:void 0,op:"pageload",metadata:{source:"url"}})),n&&(0,U.oq)("history",(({to:e,from:n})=>{void 0===n&&i&&-1!==i.indexOf(e)?i=void 0:n!==e&&(i=void 0,s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Tracing] Finishing current transaction with op: ${s.op}`),s.finish()),s=t({name:u.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...C.k3};class O{__init(){this.name=A}constructor(t){O.prototype.__init.call(this),(0,i.T)(),this.options={...B,...t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=N(),this.options.enableLongTask&&m("longtask",(t=>{for(const e of t){const t=(0,a.x1)();if(!t)return;const n=k(d.Z1+e.startTime),s=k(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:n,endTimestamp:n+s})}})),this.options._experiments.enableInteractions&&m("event",(t=>{for(const e of t){const t=(0,a.x1)();if(!t)return;if("click"===e.name){const n=k(d.Z1+e.startTime),s=k(e.duration);t.startChild({description:(0,l.Rt)(e.target),op:`ui.interaction.${e.name}`,startTimestamp:n,endTimestamp:n+s})}}}),{durationThreshold:0})}setupOnce(t,e){this._getCurrentHub=e;const{routingInstrumentation:n,startTransactionOnLocationChange:s,startTransactionOnPageLoad:i,markBackgroundTransactions:r,traceFetch:c,traceXHR:l,tracePropagationTargets:d,shouldCreateSpanForRequest:_,_experiments:h}=this.options;n((t=>{const n=this._createRouteTransaction(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,t,e),n}),i,s),r&&(u&&u.document?u.document.addEventListener("visibilitychange",(()=>{const t=(0,a.x1)();if(u.document.hidden&&t){const e="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),h.enableInteractions&&this._registerInteractionListener(),(0,C.L7)({traceFetch:c,traceXHR:l,tracePropagationTargets:d,shouldCreateSpanForRequest:_})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`));const{beforeNavigate:e,idleTimeout:n,finalTimeout:s,heartbeatInterval:a}=this.options,_="pageload"===t.op,h=_?G("sentry-trace"):null,p=_?G("baggage"):null,f=h?(0,r.q)(h):void 0,m=p?(0,c.EN)(p):void 0,g={...t,...f,metadata:{...t.metadata,dynamicSamplingContext:f&&!m?{}:m},trimEnd:!0},y="function"==typeof e?e(g):g,S=void 0===y?{...g,sampled:!1}:y;S.metadata=S.name!==g.name?{...S.metadata,source:"custom"}:S.metadata,this._latestRouteName=S.name,this._latestRouteSource=S.metadata&&S.metadata.source,!1===S.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Tracing] Will not send ${S.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Tracing] Starting ${S.op} transaction on scope`);const N=this._getCurrentHub(),{location:C}=u,U=(0,i.l)(N,S,n,s,!0,{location:C},a);return U.registerBeforeFinishCallback((t=>{this._collectWebVitals(),function(t){const e=w();if(!e||!u.performance.getEntries||!d.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Adding & adjusting spans using Performance API");const n=k(d.Z1),s=e.getEntries();let i,r;if(s.slice(x).forEach((e=>{const s=k(e.startTime),a=k(e.duration);if(!("navigation"===t.op&&n+s<t.startTimestamp))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((s=>{I(t,e,s,n)})),I(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),I(t,e,"fetch",n,"cache","domainLookupStart"),I(t,e,"domainLookup",n,"DNS"),function(t,e,n){b(t,{op:"browser",description:"request",startTimestamp:n+k(e.requestStart),endTimestamp:n+k(e.responseEnd)}),b(t,{op:"browser",description:"response",startTimestamp:n+k(e.responseStart),endTimestamp:n+k(e.responseEnd)})}(t,e,n)}(t,e,n),i=n+k(e.responseStart),r=n+k(e.requestStart);break;case"mark":case"paint":case"measure":{!function(t,e,n,s,i){const r=i+n,a=r+s;b(t,{description:e.name,endTimestamp:a,op:e.entryType,startTimestamp:r})}(t,e,s,a,n);const i=v(),r=e.startTime<i.firstHiddenTime;"first-paint"===e.name&&r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding FP"),D.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding FCP"),D.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":{const i=e.name.replace(u.location.origin,"");!function(t,e,n,s,i,r){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;const a={};"transferSize"in e&&(a["http.response_transfer_size"]=e.transferSize),"encodedBodySize"in e&&(a["http.response_content_length"]=e.encodedBodySize),"decodedBodySize"in e&&(a["http.decoded_response_content_length"]=e.decodedBodySize),"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus);const o=r+s;b(t,{description:n,endTimestamp:o+i,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",startTimestamp:o,data:a})}(t,e,i,s,a,n);break}}})),x=Math.max(s.length-1,0),function(t){const e=u.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),E(n.rtt)&&(D["connection.rtt"]={value:n.rtt,unit:"millisecond"})),E(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),E(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===t.op){"number"==typeof i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding TTFB"),D.ttfb={value:1e3*(i-t.startTimestamp),unit:"millisecond"},"number"==typeof r&&r<=i&&(D["ttfb.requestTime"]={value:1e3*(i-r),unit:"millisecond"})),["fcp","fp","lcp"].forEach((e=>{if(!D[e]||n>=t.startTimestamp)return;const s=D[e].value,i=n+k(s),r=Math.abs(1e3*(i-t.startTimestamp)),a=r-s;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Measurements] Normalized ${e} from ${s} to ${r} (${a})`),D[e].value=r}));const e=D["mark.fid"];e&&D.fid&&(b(t,{description:"first input delay",endTimestamp:e.value+k(D.fid.value),op:"ui.action",startTimestamp:e.value}),delete D["mark.fid"]),"fcp"in D||delete D.cls,Object.keys(D).forEach((e=>{t.setMeasurement(e,D[e].value,D[e].unit)})),function(t){T&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding LCP Data"),T.element&&t.setTag("lcp.element",(0,l.Rt)(T.element)),T.id&&t.setTag("lcp.id",T.id),T.url&&t.setTag("lcp.url",T.url.trim().slice(0,200)),t.setTag("lcp.size",T.size)),R&&R.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding CLS Data"),R.sources.forEach(((e,n)=>t.setTag(`cls.source.${n+1}`,(0,l.Rt)(e.node)))))}(t)}T=void 0,R=void 0,D={}}(t)})),U}_registerInteractionListener(){let t;const e=()=>{const{idleTimeout:e,finalTimeout:n,heartbeatInterval:s}=this.options,r="ui.action.click",c=(0,a.x1)();if(c&&c.op&&["navigation","pageload"].includes(c.op))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`[Tracing] Did not create ${r} transaction because a pageload or navigation transaction is in progress.`));if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`[Tracing] Did not create ${r} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`[Tracing] Did not create ${r} transaction because _latestRouteName is missing.`));const l=this._getCurrentHub(),{location:d}=u,_={name:this._latestRouteName,op:r,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};t=(0,i.l)(l,_,e,n,!0,{location:d},s)};["click"].forEach((t=>{addEventListener(t,e,{once:!1,capture:!0})}))}}function G(t){const e=(0,l.qT)(`meta[name=${t}]`);return e?e.getAttribute("content"):null}},10516:(t,e,n)=>{n.d(e,{L7:()=>d,k3:()=>u});var s=n(47522),i=n(95659),r=n(42533),a=n(57321),o=n(99181),c=n(67597);const l=["localhost",/^\/(?!\/)/],u={traceFetch:!0,traceXHR:!0,tracingOrigins:l,tracePropagationTargets:l};function d(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:d,tracingOrigins:_,shouldCreateSpanForRequest:h}={traceFetch:u.traceFetch,traceXHR:u.traceXHR,...t},p="function"==typeof h?h:t=>!0,f=t=>function(t,e){return(0,a.U0)(t,e||l)}(t,d||_),m={};e&&(0,r.oq)("fetch",(t=>{!function(t,e,n,r){if(!(0,s.z)()||!t.fetchData||!e(t.fetchData.url))return;if(t.endTimestamp){const e=t.fetchData.__span;if(!e)return;const n=r[e];return void(n&&(t.response?n.setHttpStatus(t.response.status):t.error&&n.setStatus("internal_error"),n.finish(),delete r[e]))}const a=t.response&&t.response.headers&&t.response.headers.get("content-length"),l=(0,i.Gd)().getScope(),u=l&&l.getSpan(),d=u&&u.transaction;if(u&&d){const{method:e,url:s}=t.fetchData,i=u.startChild({data:{url:s,type:"fetch",...a?{"http.response_content_length":a}:{},"http.method":e},description:`${e} ${s}`,op:"http.client"});t.fetchData.__span=i.spanId,r[i.spanId]=i;const l=t.args[0];t.args[1]=t.args[1]||{};const _=t.args[1];n(t.fetchData.url)&&(_.headers=function(t,e,n,s){const i=(0,o.IQ)(e),r=n.toTraceparent(),a="undefined"!=typeof Request&&(0,c.V9)(t,Request)?t.headers:s.headers;if(a){if("undefined"!=typeof Headers&&(0,c.V9)(a,Headers)){const t=new Headers(a);return t.append("sentry-trace",r),i&&t.append(o.bU,i),t}if(Array.isArray(a)){const t=[...a,["sentry-trace",r]];return i&&t.push([o.bU,i]),t}{const t="baggage"in a?a.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),i&&e.push(i),{...a,"sentry-trace":r,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":r,baggage:i}}(l,d.getDynamicSamplingContext(),i,_))}}(t,p,f,m)})),n&&(0,r.oq)("xhr",(t=>{!function(t,e,n,a){const c=t.xhr,l=c&&c[r.xU];if(!(0,s.z)()||c&&c.__sentry_own_request__||!(c&&l&&e(l.url)))return;if(t.endTimestamp){const t=c.__sentry_xhr_span_id__;if(!t)return;const e=a[t];return void(e&&(e.setHttpStatus(l.status_code),e.finish(),delete a[t]))}const u=(0,i.Gd)().getScope(),d=u&&u.getSpan(),_=d&&d.transaction;if(d&&_){const t=d.startChild({data:{...l.data,type:"xhr","http.method":l.method,url:l.url},description:`${l.method} ${l.url}`,op:"http.client"});if(c.__sentry_xhr_span_id__=t.spanId,a[c.__sentry_xhr_span_id__]=t,c.setRequestHeader&&n(l.url))try{c.setRequestHeader("sentry-trace",t.toTraceparent());const e=_.getDynamicSamplingContext(),n=(0,o.IQ)(e);n&&c.setRequestHeader(o.bU,n)}catch(t){}}}(t,p,f,m)}))}},758:(t,e,n)=>{n.d(e,{r:()=>a});var s=n(95659),i=n(76890),r=n(61422);function a(){(0,i.T)(),(0,r.KV)()&&function(){const e=(0,s.cu)();if(!e.__SENTRY__)return;const n={mongodb:()=>new((0,r.l$)(t,"./node/integrations/mongo").Mongo),mongoose:()=>new((0,r.l$)(t,"./node/integrations/mongo").Mongo),mysql:()=>new((0,r.l$)(t,"./node/integrations/mysql").Mysql),pg:()=>new((0,r.l$)(t,"./node/integrations/postgres").Postgres)},i=Object.keys(n).filter((t=>!!(0,r.$y)(t))).map((t=>{try{return n[t]()}catch(t){return}})).filter((t=>t));i.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...i])}()}t=n.hmd(t)},61002:(t,e,n)=>{n.r(e),n.d(e,{Breadcrumbs:()=>jt,BrowserClient:()=>Kt,BrowserProfilingIntegration:()=>Ir,BrowserTracing:()=>ir.gE,Dedupe:()=>Be,FunctionToString:()=>o,GlobalHandlers:()=>ve,HttpContext:()=>Ae,Hub:()=>f.Xb,InboundFilters:()=>_,Integrations:()=>Ur,LinkedErrors:()=>Ce,Replay:()=>nr,SDK_VERSION:()=>p,Scope:()=>at.s,TryCatch:()=>Re,WINDOW:()=>ht,addBreadcrumb:()=>S,addGlobalEventProcessor:()=>at.c,addTracingExtensions:()=>ot.T,captureEvent:()=>y,captureException:()=>m,captureMessage:()=>g,captureUserFeedback:()=>Je,chromeStackLineParser:()=>ae,close:()=>qe,configureScope:()=>v,createTransport:()=>tt,createUserFeedbackEnvelope:()=>Jt,defaultIntegrations:()=>Le,defaultRequestInstrumentationOptions:()=>rr.k3,defaultStackLineParsers:()=>me,defaultStackParser:()=>ge,eventFromException:()=>Ot,eventFromMessage:()=>Gt,extractTraceparentData:()=>ct.q,flush:()=>He,forceLoad:()=>Fe,geckoStackLineParser:()=>le,getActiveTransaction:()=>lt.x1,getCurrentHub:()=>f.Gd,getHubFromCarrier:()=>f.vi,init:()=>ze,instrumentOutgoingRequests:()=>rr.L7,lastEventId:()=>$e,makeBrowserOfflineTransport:()=>hr,makeFetchTransport:()=>Qt,makeMain:()=>f.pj,makeMultiplexedTransport:()=>rt,makeXHRTransport:()=>ee,onLoad:()=>je,onProfilingStartRouteTransaction:()=>Dr,opera10StackLineParser:()=>he,opera11StackLineParser:()=>fe,setContext:()=>E,setExtra:()=>k,setExtras:()=>b,setTag:()=>T,setTags:()=>w,setUser:()=>R,showReportDialog:()=>Pe,spanStatusfromHttpCode:()=>ut.Zd,startTransaction:()=>D,trace:()=>dt.g,winjsStackLineParser:()=>de,withScope:()=>x,wrap:()=>We});var s={};n.r(s),n.d(s,{FunctionToString:()=>o,InboundFilters:()=>_});var i={};n.r(i),n.d(i,{Breadcrumbs:()=>jt,Dedupe:()=>Be,GlobalHandlers:()=>ve,HttpContext:()=>Ae,LinkedErrors:()=>Ce,TryCatch:()=>Re});var r=n(20535);let a;class o{constructor(){o.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=o.id}setupOnce(){a=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=(0,r.HK)(this)||this;return a.apply(e,t)}}catch(t){}}}o.__initStatic();var c=n(12343),l=n(62844),u=n(57321);const d=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class _{static __initStatic(){this.id="InboundFilters"}__init(){this.name=_.id}constructor(t={}){this._options=t,_.prototype.__init.call(this)}setupOnce(t,e){const n=t=>{const n=e();if(n){const e=n.getIntegration(_);if(e){const s=n.getClient(),i=s?s.getOptions():{},r=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...d],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(e._options,i);return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,l.jH)(t)}`),!0):function(t,e){return!(t.type||!e||!e.length)&&function(t){if(t.message)return[t.message];if(t.exception){const{values:e}=t.exception;try{const{type:t="",value:n=""}=e&&e[e.length-1]||{};return[`${n}`,`${t}: ${n}`]}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error(`Cannot extract message for event ${(0,l.jH)(t)}`),[]}}return[]}(t).some((t=>(0,u.U0)(t,e)))}(t,e.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,l.jH)(t)}`),!0):function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&(0,u.U0)(n,e)}(t,e.ignoreTransactions)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,l.jH)(t)}`),!0):function(t,e){if(!e||!e.length)return!1;const n=h(t);return!!n&&(0,u.U0)(n,e)}(t,e.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,l.jH)(t)}.\nUrl: ${h(t)}`),!0):!function(t,e){if(!e||!e.length)return!0;const n=h(t);return!n||(0,u.U0)(n,e)}(t,e.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,l.jH)(t)}.\nUrl: ${h(t)}`),!0)}(t,r)?null:t}}return t};n.id=this.name,t(n)}}function h(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error(`Cannot extract url for event ${(0,l.jH)(t)}`),null}}_.__initStatic();const p="7.52.1";var f=n(95659);function m(t,e){return(0,f.Gd)().captureException(t,{captureContext:e})}function g(t,e){const n="string"==typeof e?e:void 0,s="string"!=typeof e?{captureContext:e}:void 0;return(0,f.Gd)().captureMessage(t,n,s)}function y(t,e){return(0,f.Gd)().captureEvent(t,e)}function v(t){(0,f.Gd)().configureScope(t)}function S(t){(0,f.Gd)().addBreadcrumb(t)}function E(t,e){(0,f.Gd)().setContext(t,e)}function b(t){(0,f.Gd)().setExtras(t)}function k(t,e){(0,f.Gd)().setExtra(t,e)}function w(t){(0,f.Gd)().setTags(t)}function T(t,e){(0,f.Gd)().setTag(t,e)}function R(t){(0,f.Gd)().setUser(t)}function x(t){(0,f.Gd)().withScope(t)}function D(t,e){return(0,f.Gd)().startTransaction({...t},e)}class N extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}var I=n(96893);const C=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function U(t,e=!1){const{host:n,path:s,pass:i,port:r,projectId:a,protocol:o,publicKey:c}=t;return`${o}://${c}${e&&i?`:${i}`:""}@${n}${r?`:${r}`:""}/${s?`${s}/`:s}${a}`}function A(t){const e=C.exec(t);if(!e)throw new N(`Invalid Sentry Dsn: ${t}`);const[n,s,i="",r,a="",o]=e.slice(1);let c="",l=o;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const t=l.match(/^\d+/);t&&(l=t[0])}return B({host:r,pass:i,path:c,projectId:l,port:a,protocol:n,publicKey:s})}function B(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function O(t){const e="string"==typeof t?A(t):B(t);return function(t){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:e,projectId:n,protocol:s}=t;if(["protocol","publicKey","host","projectId"].forEach((e=>{if(!t[e])throw new N(`Invalid Sentry Dsn: ${e} missing`)})),!n.match(/^\d+$/))throw new N(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(t){return"http"===t||"https"===t}(s))throw new N(`Invalid Sentry Dsn: Invalid protocol ${s}`);if(e&&isNaN(parseInt(e,10)))throw new N(`Invalid Sentry Dsn: Invalid port ${e}`)}(e),e}var G=n(67597),Y=n(30360);function M(t,e=100,n=1/0){try{return z("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function L(t,e=3,n=102400){const s=M(t,e);return i=s,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>n?L(t,e-1,n):s;var i}function z(t,e,s=1/0,i=1/0,a=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[o,c]=a;if(null==e||["number","boolean","string"].includes(typeof e)&&!(0,G.i2)(e))return e;const l=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==n.g&&e===n.g)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,G.Cy)(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${(0,Y.$P)(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const s=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(s)?`[HTMLElement: ${s}]`:`[object ${s}]`}catch(t){return`**non-serializable** (${t})`}}(t,e);if(!l.startsWith("[object "))return l;if(e.__sentry_skip_normalization__)return e;const u="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:s;if(0===u)return l.replace("object ","");if(o(e))return"[Circular ~]";const d=e;if(d&&"function"==typeof d.toJSON)try{return z("",d.toJSON(),u-1,i,a)}catch(t){}const _=Array.isArray(e)?[]:{};let h=0;const p=(0,r.Sh)(e);for(const t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(h>=i){_[t]="[MaxProperties ~]";break}const e=p[t];_[t]=z(t,e,u-1,i,a),h++}return c(e),_}function P(t,e=[]){return[t,e]}function $(t,e){const[n,s]=t;return[n,[...s,e]]}function F(t,e){const n=t[1];for(const t of n)if(e(t,t[0].type))return!0;return!1}function j(t,e){return(e||new TextEncoder).encode(t)}function H(t,e){const[n,s]=t;let i=JSON.stringify(n);function r(t){"string"==typeof i?i="string"==typeof t?i+t:[j(i,e),t]:i.push("string"==typeof t?j(t,e):t)}for(const t of s){const[e,n]=t;if(r(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)r(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(M(n))}r(t)}}return"string"==typeof i?i:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let s=0;for(const e of t)n.set(e,s),s+=e.length;return n}(i)}function q(t,e){const n="string"==typeof t.data?j(t.data,e):t.data;return[(0,r.Jr)({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const W={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function Z(t){return W[t]}function J(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function K(t,e,n,s){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&{dsn:U(s)},...i&&{trace:(0,r.Jr)({...i})}}}const V=6e4;function X(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const s=Date.parse(`${t}`);return isNaN(s)?V:s-e}const Q=30;function tt(t,e,n=function(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(s){if(!(void 0===t||e.length<t))return(0,I.$2)(new N("Not adding Promise because buffer limit was reached."));const i=s();return-1===e.indexOf(i)&&e.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(t){return new I.cW(((n,s)=>{let i=e.length;if(!i)return n(!0);const r=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{(0,I.WD)(t).then((()=>{--i||(clearTimeout(r),n(!0))}),s)}))}))}}}(t.bufferSize||Q)){let s={};function i(i){const r=[];if(F(i,((e,n)=>{const i=Z(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(s,i)){const s=et(e,n);t.recordDroppedEvent("ratelimit_backoff",i,s)}else r.push(e)})),0===r.length)return(0,I.WD)();const a=P(i[0],r),o=e=>{F(a,((n,s)=>{const i=et(n,s);t.recordDroppedEvent(e,Z(s),i)}))};return n.add((()=>e({body:H(a,t.textEncoder)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),s=function(t,{statusCode:e,headers:n},s=Date.now()){const i={...t},r=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(r)for(const t of r.trim().split(",")){const[e,n]=t.split(":",2),r=parseInt(e,10),a=1e3*(isNaN(r)?60:r);if(n)for(const t of n.split(";"))i[t]=s+a;else i.all=s+a}else a?i.all=s+X(a,s):429===e&&(i.all=s+6e4);return i}(s,t),t)),(t=>{throw o("network_error"),t})))).then((t=>t),(t=>{if(t instanceof N)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("Skipped sending event because buffer is full."),o("queue_overflow"),(0,I.WD)();throw t}))}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>n.drain(t)}}function et(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}const nt="7";function st(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function it(t,e={}){const n="string"==typeof e?e:e.tunnel,s="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${st(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return(0,r._j)({sentry_key:t.publicKey,sentry_version:nt,...e&&{sentry_client:`${e.name}/${e.version}`}})}(t,s)}`}function rt(t,e){return n=>{const s=t(n),i={};return{send:async function(r){const a=e({envelope:r,getEvent:function(t){const e=t&&t.length?t:["event"];return function(t,e){let n;return F(t,((t,s)=>(e.includes(s)&&(n=Array.isArray(t)?t[1]:void 0),!!n))),n}(r,e)}}).map((e=>function(e){if(!i[e]){const s=it(A(e));i[e]=t({...n,url:s})}return i[e]}(e)));return 0===a.length&&a.push(s),(await Promise.all(a.map((t=>t.send(r)))))[0]},flush:async function(t){const e=[...Object.keys(i).map((t=>i[t])),s];return(await Promise.all(e.map((e=>e.flush(t))))).every((t=>t))}}}}var at=n(10350),ot=n(76890),ct=n(77638),lt=n(9791),ut=n(38903),dt=n(61250),_t=n(71235);const ht=_t.n2;let pt=0;function ft(){return pt>0}function mt(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if((0,r.HK)(t))return t}catch(e){return t}const s=function(){const s=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=s.map((t=>mt(t,e)));return t.apply(this,i)}catch(t){throw pt++,setTimeout((()=>{pt--})),x((n=>{n.addEventProcessor((t=>(e.mechanism&&((0,l.Db)(t,void 0,void 0),(0,l.EG)(t,e.mechanism)),t.extra={...t.extra,arguments:s},t))),m(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(s[e]=t[e])}catch(t){}(0,r.$Q)(s,t),(0,r.xp)(t,"__sentry_wrapped__",s);try{Object.getOwnPropertyDescriptor(s,"name").configurable&&Object.defineProperty(s,"name",{get:()=>t.name})}catch(t){}return s}const gt=[];function yt(t){const e=t.defaultIntegrations||[],n=t.integrations;let s;e.forEach((t=>{t.isDefaultInstance=!0})),s=Array.isArray(n)?[...e,...n]:"function"==typeof n?(0,l.lE)(n(e)):e;const i=function(t){const e={};return t.forEach((t=>{const{name:n}=t,s=e[n];s&&!s.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.keys(e).map((t=>e[t]))}(s),r=function(t,e){for(let e=0;e<t.length;e++)if(1==("Debug"===t[e].name))return e;return-1}(i);if(-1!==r){const[t]=i.splice(r,1);i.push(t)}return i}function vt(t,e){e[t.name]=t,-1===gt.indexOf(t.name)&&(t.setupOnce(at.c,f.Gd),gt.push(t.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`Integration installed: ${t.name}`))}var St=n(9015),Et=n(21170),bt=n(51131);function kt(t,e,n,s){const{normalizeDepth:i=3,normalizeMaxBreadth:r=1e3}=t,a={...e,event_id:e.event_id||n.event_id||(0,l.DM)(),timestamp:e.timestamp||(0,Et.yW)()},o=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:s,dist:i,maxValueLength:r=250}=e;"environment"in t||(t.environment="environment"in e?n:bt.J),void 0===t.release&&void 0!==s&&(t.release=s),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=(0,u.$G)(t.message,r));const a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=(0,u.$G)(a.value,r));const o=t.request;o&&o.url&&(o.url=(0,u.$G)(o.url,r))}(a,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(a,o),void 0===e.type&&function(t,e){const n=_t.n2._sentryDebugIds;if(!n)return;let s;const i=wt.get(e);i?s=i:(s=new Map,wt.set(e,s));const r=Object.keys(n).reduce(((t,i)=>{let r;const a=s.get(i);a?r=a:(r=e(i),s.set(i,r));for(let e=r.length-1;e>=0;e--){const s=r[e];if(s.filename){t[s.filename]=n[i];break}}return t}),{}),a=new Set;try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&a.add(t.filename)}))}))}catch(t){}t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const o=t.debug_meta.images;a.forEach((t=>{r[t]&&o.push({type:"sourcemap",code_file:t,debug_id:r[t]})}))}(a,t.stackParser);let c=s;n.captureContext&&(c=at.s.clone(c).update(n.captureContext));let d=(0,I.WD)(a);if(c){if(c.getAttachments){const t=[...n.attachments||[],...c.getAttachments()];t.length&&(n.attachments=t)}d=c.applyToEvent(a,n)}return d.then((t=>"number"==typeof i&&i>0?function(t,e,n){if(!t)return null;const s={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:M(t.data,e,n)}})))},...t.user&&{user:M(t.user,e,n)},...t.contexts&&{contexts:M(t.contexts,e,n)},...t.extra&&{extra:M(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&s.contexts&&(s.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(s.contexts.trace.data=M(t.contexts.trace.data,e,n))),t.spans&&(s.spans=t.spans.map((t=>(t.data&&(t.data=M(t.data,e,n)),t)))),s}(t,i,r):t))}const wt=new WeakMap,Tt="Not capturing exception because it's already been captured.";class Rt{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(t){if(Rt.prototype.__init.call(this),Rt.prototype.__init2.call(this),Rt.prototype.__init3.call(this),Rt.prototype.__init4.call(this),Rt.prototype.__init5.call(this),this._options=t,t.dsn){this._dsn=O(t.dsn);const e=it(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("No DSN provided, client will not do anything.")}captureException(t,e,n){if((0,l.YO)(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(Tt));let s=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{s=t}))),s}captureMessage(t,e,n,s){let i=n&&n.event_id;const r=(0,G.pt)(t)?this.eventFromMessage(String(t),e,n):this.eventFromException(t,n);return this._process(r.then((t=>this._captureEvent(t,n,s))).then((t=>{i=t}))),i}captureEvent(t,e,n){if(e&&e.originalException&&(0,l.YO)(e.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(Tt));let s=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((t=>{s=t}))),s}captureSession(t){this._isEnabled()?"string"!=typeof t.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,St.CT)(t,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t)))):(0,I.WD)(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(t){const e={};return t.forEach((t=>{t&&vt(t,e)})),e}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){vt(t,this._integrations)}sendEvent(t,e={}){if(this._dsn){let n=function(t,e,n,s){const i=J(n),r=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const a=K(t,i,s,e);return delete t.sdkProcessingMetadata,P(a,[[{type:r},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=$(n,q(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));const s=this._sendEnvelope(n);s&&s.then((e=>this.emit("afterSendEvent",t,e)),null)}}sendSession(t){if(this._dsn){const e=function(t,e,n,s){const i=J(n);return P({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!s&&{dsn:U(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const n=`${t}:${e}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach((t=>t(...e)))}_updateSessionFromEvent(t,e){let n=!1,s=!1;const i=e.exception&&e.exception.values;if(i){s=!0;for(const t of i){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const r="ok"===t.status;(r&&0===t.errors||r&&n)&&((0,St.CT)(t,{...n&&{status:"crashed"},errors:t.errors||Number(s||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new I.cW((e=>{let n=0;const s=setInterval((()=>{0==this._numProcessing?(clearInterval(s),e(!0)):(n+=1,t&&n>=t&&(clearInterval(s),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(t,e,n){const s=this.getOptions(),i=Object.keys(this._integrations);return!e.integrations&&i.length>0&&(e.integrations=i),kt(s,t,e,n)}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e=t;"log"===e.logLevel?c.kg.log(e.message):c.kg.warn(e)}}))}_processEvent(t,e,n){const s=this.getOptions(),{sampleRate:i}=s;if(!this._isEnabled())return(0,I.$2)(new N("SDK not enabled, will not capture event.","log"));const r=Dt(t),a=xt(t),o=t.type||"error",c=`before send for type \`${o}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),(0,I.$2)(new N(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const l="replay_event"===o?"replay":o;return this._prepareEvent(t,e,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,t),new N("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const i=function(t,e,n){const{beforeSend:s,beforeSendTransaction:i}=t;return xt(e)&&s?s(e,n):Dt(e)&&i?i(e,n):e}(s,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if((0,G.J8)(t))return t.then((t=>{if(!(0,G.PO)(t)&&null!==t)throw new N(n);return t}),(t=>{throw new N(`${e} rejected with ${t}`)}));if(!(0,G.PO)(t)&&null!==t)throw new N(n);return t}(i,c)})).then((s=>{if(null===s)throw this.recordDroppedEvent("before_send",l,t),new N(`${c} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!r&&i&&this._updateSessionFromEvent(i,s);const a=s.transaction_info;if(r&&a&&s.transaction!==t.transaction){const t="custom";s.transaction_info={...a,source:t}}return this.sendEvent(s,e),s})).then(null,(t=>{if(t instanceof N)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new N(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_sendEnvelope(t){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",t),this._transport.send(t).then(null,(t=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("Error while sending event:",t)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,s]=e.split(":");return{reason:n,category:s,quantity:t[e]}}))}}function xt(t){return void 0===t.type}function Dt(t){return"transaction"===t.type}var Nt=n(68518);function It(t,e){const n=Ut(t,e),s={type:e&&e.name,value:Bt(e)};return n.length&&(s.stacktrace={frames:n}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function Ct(t,e){return{exception:{values:[It(t,e)]}}}function Ut(t,e){const n=e.stacktrace||e.stack||"",s=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(At.test(t.message))return 1}return 0}(e);try{return t(n,s)}catch(t){}return[]}const At=/Minified React error #\d+;/i;function Bt(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Ot(t,e,n,s){const i=Yt(t,e,n&&n.syntheticException||void 0,s);return(0,l.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,I.WD)(i)}function Gt(t,e,n="info",s,i){const r=Mt(t,e,s&&s.syntheticException||void 0,i);return r.level=n,s&&s.event_id&&(r.event_id=s.event_id),(0,I.WD)(r)}function Yt(t,e,n,s,i){let a;if((0,G.VW)(e)&&e.error)return Ct(t,e.error);if((0,G.TX)(e)||(0,G.fm)(e)){const i=e;if("stack"in e)a=Ct(t,e);else{const e=i.name||((0,G.TX)(i)?"DOMError":"DOMException"),r=i.message?`${e}: ${i.message}`:e;a=Mt(t,r,n,s),(0,l.Db)(a,r)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return(0,G.VZ)(e)?Ct(t,e):(0,G.PO)(e)||(0,G.cO)(e)?(a=function(t,e,n,s){const i=(0,f.Gd)().getClient(),a=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:(0,G.cO)(e)?e.constructor.name:s?"UnhandledRejection":"Error",value:`Non-Error ${s?"promise rejection":"exception"} captured with keys: ${(0,r.zf)(e)}`}]},extra:{__serialized__:L(e,a)}};if(n){const e=Ut(t,n);e.length&&(o.exception.values[0].stacktrace={frames:e})}return o}(t,e,n,i),(0,l.EG)(a,{synthetic:!0}),a):(a=Mt(t,e,n,s),(0,l.Db)(a,`${e}`,void 0),(0,l.EG)(a,{synthetic:!0}),a)}function Mt(t,e,n,s){const i={message:e};if(s&&n){const s=Ut(t,n);s.length&&(i.exception={values:[{value:e,stacktrace:{frames:s}}]})}return i}var Lt=n(42533),zt=n(58464);const Pt=["fatal","error","warning","log","info","debug"];var $t=n(26956);const Ft="Breadcrumbs";class jt{static __initStatic(){this.id=Ft}__init(){this.name=jt.id}constructor(t){jt.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){var t;this.options.console&&(0,Lt.oq)("console",Ht),this.options.dom&&(0,Lt.oq)("dom",(t=this.options.dom,function(e){let n,s="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof s&&(s=[s]);try{const t=e.event;n=function(t){return t&&!!t.target}(t)?(0,zt.Rt)(t.target,{keyAttrs:s,maxStringLength:i}):(0,zt.Rt)(t,{keyAttrs:s,maxStringLength:i})}catch(t){n="<unknown>"}0!==n.length&&(0,f.Gd)().addBreadcrumb({category:`ui.${e.name}`,message:n},{event:e.event,name:e.name,global:e.global})})),this.options.xhr&&(0,Lt.oq)("xhr",qt),this.options.fetch&&(0,Lt.oq)("fetch",Wt),this.options.history&&(0,Lt.oq)("history",Zt)}addSentryBreadcrumb(t){this.options.sentry&&(0,f.Gd)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,l.jH)(t)},{event:t})}}function Ht(t){for(let e=0;e<t.args.length;e++)if("ref=Ref<"===t.args[e]){t.args[e+1]="viewRef";break}const e={category:"console",data:{arguments:t.args,logger:"console"},level:(n=t.level,"warn"===n?"warning":Pt.includes(n)?n:"log"),message:(0,u.nK)(t.args," ")};var n;if("assert"===t.level){if(!1!==t.args[0])return;e.message=`Assertion failed: ${(0,u.nK)(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1)}(0,f.Gd)().addBreadcrumb(e,{input:t.args,level:t.level})}function qt(t){const{startTimestamp:e,endTimestamp:n}=t,s=t.xhr[Lt.xU];if(!e||!n||!s)return;const{method:i,url:r,status_code:a,body:o}=s,c={method:i,url:r,status_code:a},l={xhr:t.xhr,input:o,startTimestamp:e,endTimestamp:n};(0,f.Gd)().addBreadcrumb({category:"xhr",data:c,type:"http"},l)}function Wt(t){const{startTimestamp:e,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const s=t.fetchData,i={data:t.error,input:t.args,startTimestamp:e,endTimestamp:n};(0,f.Gd)().addBreadcrumb({category:"fetch",data:s,level:"error",type:"http"},i)}else{const s={...t.fetchData,status_code:t.response&&t.response.status},i={input:t.args,response:t.response,startTimestamp:e,endTimestamp:n};(0,f.Gd)().addBreadcrumb({category:"fetch",data:s,type:"http"},i)}}function Zt(t){let e=t.from,n=t.to;const s=(0,$t.en)(ht.location.href);let i=(0,$t.en)(e);const r=(0,$t.en)(n);i.path||(i=s),s.protocol===r.protocol&&s.host===r.host&&(n=r.relative),s.protocol===i.protocol&&s.host===i.host&&(e=i.relative),(0,f.Gd)().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}function Jt(t,{metadata:e,tunnel:n,dsn:s}){const i={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!s&&{dsn:U(s)}},r=function(t){return[{type:"user_report"},t]}(t);return P(i,[r])}jt.__initStatic();class Kt extends Rt{constructor(t){const e=ht.SENTRY_SDK_SOURCE||(0,Nt.S)();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${e}:@sentry/browser`,version:p}],version:p},super(t),t.sendClientReports&&ht.document&&ht.document.addEventListener("visibilitychange",(()=>{"hidden"===ht.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return Ot(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return Gt(this._options.stackParser,t,e,n,this._options.attachStacktrace)}sendEvent(t,e){const n=this.getIntegrationById(Ft);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(t),super.sendEvent(t,e)}captureUserFeedback(t){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("SDK not enabled, will not capture user feedback."));const e=Jt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("Sending outcomes:",t);const e=(n=t,P((s=this._options.tunnel&&U(this._dsn))?{dsn:s}:{},[[{type:"client_report"},{timestamp:(0,Et.yW)(),discarded_events:n}]]));var n,s;this._sendEnvelope(e)}}var Vt=n(8823);let Xt;function Qt(t,e=function(){if(Xt)return Xt;if((0,Vt.Du)(ht.fetch))return Xt=ht.fetch.bind(ht);const t=ht.document;let e=ht.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const s=n.contentWindow;s&&s.fetch&&(e=s.fetch),t.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Xt=e.bind(ht)}()){let n=0,s=0;return tt(t,(function(i){const r=i.body.length;n+=r,s++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&s<15,...t.fetchOptions};try{return e(t.url,a).then((t=>(n-=r,s--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return Xt=void 0,n-=r,s--,(0,I.$2)(t)}}))}const te=4;function ee(t){return tt(t,(function(e){return new I.cW(((n,s)=>{const i=new XMLHttpRequest;i.onerror=s,i.onreadystatechange=()=>{i.readyState===te&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(const e in t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&i.setRequestHeader(e,t.headers[e]);i.send(e.body)}))}))}const ne="?";function se(t,e,n,s){const i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==s&&(i.colno=s),i}const ie=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,re=/\((\S*)(?::(\d+))(?::(\d+))\)/,ae=[30,t=>{const e=ie.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=re.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=ye(e[1]||ne,e[2]);return se(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],oe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ce=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,le=[50,t=>{const e=oe.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=ce.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||ne;return[n,t]=ye(n,t),se(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],ue=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,de=[40,t=>{const e=ue.exec(t);return e?se(e[2],e[1]||ne,+e[3],e[4]?+e[4]:void 0):void 0}],_e=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,he=[10,t=>{const e=_e.exec(t);return e?se(e[2],e[3]||ne,+e[1]):void 0}],pe=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,fe=[20,t=>{const e=pe.exec(t);return e?se(e[5],e[3]||e[4]||ne,+e[1],+e[2]):void 0}],me=[ae,le,de],ge=(0,Y.pE)(...me),ye=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),s=-1!==t.indexOf("safari-web-extension");return n||s?[-1!==t.indexOf("@")?t.split("@")[0]:ne,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};class ve{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=ve.id}__init2(){this._installFunc={onerror:Se,onunhandledrejection:Ee}}constructor(t){ve.prototype.__init.call(this),ve.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const s=this._installFunc[n];s&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`Global Handler attached: ${e}`),s(),this._installFunc[n]=void 0)}var e}}function Se(){(0,Lt.oq)("error",(t=>{const[e,n,s]=we();if(!e.getIntegration(ve))return;const{msg:i,url:r,line:a,column:o,error:c}=t;if(ft()||c&&c.__sentry_own_request__)return;const l=void 0===c&&(0,G.HD)(i)?function(t,e,n,s){let i=(0,G.VW)(t)?t.message:t,r="Error";const a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(r=a[1],i=a[2]),be({exception:{values:[{type:r,value:i}]}},e,n,s)}(i,r,a,o):be(Yt(n,c||i,void 0,s,!1),r,a,o);l.level="error",ke(e,c,l,"onerror")}))}function Ee(){(0,Lt.oq)("unhandledrejection",(t=>{const[e,n,s]=we();if(!e.getIntegration(ve))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(ft()||i&&i.__sentry_own_request__)return!0;const r=(0,G.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Yt(n,i,void 0,s,!0);r.level="error",ke(e,i,r,"onunhandledrejection")}))}function be(t,e,n,s){const i=t.exception=t.exception||{},r=i.values=i.values||[],a=r[0]=r[0]||{},o=a.stacktrace=a.stacktrace||{},c=o.frames=o.frames||[],l=isNaN(parseInt(s,10))?void 0:s,u=isNaN(parseInt(n,10))?void 0:n,d=(0,G.HD)(e)&&e.length>0?e:(0,zt.l4)();return 0===c.length&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u}),t}function ke(t,e,n,s){(0,l.EG)(n,{handled:!1,type:s}),t.captureEvent(n,{originalException:e})}function we(){const t=(0,f.Gd)(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}ve.__initStatic();const Te=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Re{static __initStatic(){this.id="TryCatch"}__init(){this.name=Re.id}constructor(t){Re.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&(0,r.hl)(ht,"setTimeout",xe),this._options.setInterval&&(0,r.hl)(ht,"setInterval",xe),this._options.requestAnimationFrame&&(0,r.hl)(ht,"requestAnimationFrame",De),this._options.XMLHttpRequest&&"XMLHttpRequest"in ht&&(0,r.hl)(XMLHttpRequest.prototype,"send",Ne);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:Te).forEach(Ie)}}function xe(t){return function(...e){const n=e[0];return e[0]=mt(n,{mechanism:{data:{function:(0,Y.$P)(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function De(t){return function(e){return t.apply(this,[mt(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Y.$P)(t)},handled:!0,type:"instrument"}})])}}function Ne(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&(0,r.hl)(n,t,(function(e){const n={mechanism:{data:{function:t,handler:(0,Y.$P)(e)},handled:!0,type:"instrument"}},s=(0,r.HK)(e);return s&&(n.mechanism.data.handler=(0,Y.$P)(s)),mt(e,n)}))})),t.apply(this,e)}}function Ie(t){const e=ht,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,r.hl)(n,"addEventListener",(function(e){return function(n,s,i){try{"function"==typeof s.handleEvent&&(s.handleEvent=mt(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Y.$P)(s),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.apply(this,[n,mt(s,{mechanism:{data:{function:"addEventListener",handler:(0,Y.$P)(s),target:t},handled:!0,type:"instrument"}}),i])}})),(0,r.hl)(n,"removeEventListener",(function(t){return function(e,n,s){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&t.call(this,e,n,s)}catch(t){}return t.call(this,e,i,s)}})))}Re.__initStatic();class Ce{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Ce.id}constructor(t={}){Ce.prototype.__init.call(this),this._key=t.key||"cause",this._limit=t.limit||5}setupOnce(){const t=(0,f.Gd)().getClient();t&&(0,at.c)(((e,n)=>{const s=(0,f.Gd)().getIntegration(Ce);return s?function(t,e,n,s,i){if(!(s.exception&&s.exception.values&&i&&(0,G.V9)(i.originalException,Error)))return s;const r=Ue(t,n,i.originalException,e);return s.exception.values=[...r,...s.exception.values],s}(t.getOptions().stackParser,s._key,s._limit,e,n):e}))}}function Ue(t,e,n,s,i=[]){if(!(0,G.V9)(n[s],Error)||i.length+1>=e)return i;const r=It(t,n[s]);return Ue(t,e,n[s],s,[r,...i])}Ce.__initStatic();class Ae{constructor(){Ae.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Ae.id}setupOnce(){(0,at.c)((t=>{if((0,f.Gd)().getIntegration(Ae)){if(!ht.navigator&&!ht.location&&!ht.document)return t;const e=t.request&&t.request.url||ht.location&&ht.location.href,{referrer:n}=ht.document||{},{userAgent:s}=ht.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...s&&{"User-Agent":s}},r={...t.request,...e&&{url:e},headers:i};return{...t,request:r}}return t}))}}Ae.__initStatic();class Be{constructor(){Be.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Be.id}setupOnce(t,e){const n=t=>{if(t.type)return t;const n=e().getIntegration(Be);if(n){try{if(function(t,e){return!(!e||!function(t,e){const n=t.message,s=e.message;return!(!n&&!s||n&&!s||!n&&s||n!==s||!Ge(t,e)||!Oe(t,e))}(t,e)&&!function(t,e){const n=Ye(e),s=Ye(t);return!!(n&&s&&n.type===s.type&&n.value===s.value&&Ge(t,e)&&Oe(t,e))}(t,e))}(t,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return n._previousEvent=t}return n._previousEvent=t}return t};n.id=this.name,t(n)}}function Oe(t,e){let n=Me(t),s=Me(e);if(!n&&!s)return!0;if(n&&!s||!n&&s)return!1;if(s.length!==n.length)return!1;for(let t=0;t<s.length;t++){const e=s[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function Ge(t,e){let n=t.fingerprint,s=e.fingerprint;if(!n&&!s)return!0;if(n&&!s||!n&&s)return!1;try{return!(n.join("")!==s.join(""))}catch(t){return!1}}function Ye(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Me(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}}Be.__initStatic();const Le=[new _,new o,new Re,new jt,new ve,new Ce,new Be,new Ae];function ze(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=Le),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),ht.SENTRY_RELEASE&&ht.SENTRY_RELEASE.id&&(t.release=ht.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const e={...t,stackParser:(0,Y.Sq)(t.stackParser||ge),integrations:yt(t),transport:t.transport||((0,Vt.Ak)()?Qt:ee)};!function(t,e){!0===e.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?c.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=(0,f.Gd)();n.getScope().update(e.initialScope);const s=new t(e);n.bindClient(s)}(Kt,e),t.autoSessionTracking&&function(){if(void 0===ht.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const t=(0,f.Gd)();t.captureSession&&(Ze(t),(0,Lt.oq)("history",(({from:t,to:e})=>{void 0!==t&&t!==e&&Ze((0,f.Gd)())})))}()}function Pe(t={},e=(0,f.Gd)()){if(!ht.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("Global document not defined in showReportDialog call"));const{client:n,scope:s}=e.getStackTop(),i=t.dsn||n&&n.getDsn();if(!i)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("DSN not configured for showReportDialog call"));s&&(t.user={...s.getUser(),...t.user}),t.eventId||(t.eventId=e.lastEventId());const r=ht.document.createElement("script");r.async=!0,r.src=function(t,e){const n=O(t),s=`${st(n)}embed/error-page/`;let i=`dsn=${U(n)}`;for(const t in e)if("dsn"!==t)if("user"===t){const t=e.user;if(!t)continue;t.name&&(i+=`&name=${encodeURIComponent(t.name)}`),t.email&&(i+=`&email=${encodeURIComponent(t.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`;return`${s}?${i}`}(i,t),t.onLoad&&(r.onload=t.onLoad);const a=ht.document.head||ht.document.body;a?a.appendChild(r):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("Not injecting report dialog. No injection point found in HTML")}function $e(){return(0,f.Gd)().lastEventId()}function Fe(){}function je(t){t()}function He(t){const e=(0,f.Gd)().getClient();return e?e.flush(t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Cannot flush events. No client defined."),(0,I.WD)(!1))}function qe(t){const e=(0,f.Gd)().getClient();return e?e.close(t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Cannot flush events and disable SDK. No client defined."),(0,I.WD)(!1))}function We(t){return mt(t)()}function Ze(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function Je(t){const e=(0,f.Gd)().getClient();e&&e.captureUserFeedback(t)}var Ke=n(61422);const Ve=_t.n2,Xe="sentryReplaySession",Qe="Unable to send Replay",tn=15e4,en=5e3;var nn;function sn(t){const e=null==t?void 0:t.host;return Boolean(e&&e.shadowRoot&&e.shadowRoot===t)}function rn({maskInputOptions:t,tagName:e,type:n}){"option"===e.toLowerCase()&&(e="select");const s="string"==typeof n?n.toLowerCase():void 0;return t[e.toLowerCase()]||s&&t[s]||"password"===s||"input"===e&&!n&&t.text}function an({input:t,maskInputSelector:e,unmaskInputSelector:n,maskInputOptions:s,tagName:i,type:r,value:a,maskInputFn:o}){let c=a||"";return n&&t.matches(n)||(t.hasAttribute("data-rr-is-password")&&(r="password"),(rn({maskInputOptions:s,tagName:i,type:r})||e&&t.matches(e))&&(c=o?o(c):"*".repeat(c.length))),c}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(nn||(nn={}));const on="__rrweb_original__";function cn(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?e.toLowerCase():null}function ln(t,e,n){return"string"==typeof n&&n.toLowerCase(),"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}let un=1;const dn=new RegExp("[^a-z0-9-_:]"),_n=-2;function hn(t){return t?t.replace(/[\S]/g,"*"):""}function pn(t){try{const e=t.rules||t.cssRules;return e?Array.from(e).map(fn).join(""):null}catch(t){return null}}function fn(t){let e=t.cssText;if(function(t){return"styleSheet"in t}(t))try{e=pn(t.styleSheet)||e}catch(t){}return mn(e)}function mn(t){if(t.indexOf(":")>-1){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}return t}let gn,yn;const vn=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Sn=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,En=/^(data:)([^,]*),(.*)/i;function bn(t,e){return(t||"").replace(vn,((t,n,s,i,r,a)=>{const o=s||r||a,c=n||i||"";if(!o)return t;if(!Sn.test(o))return`url(${c}${o}${c})`;if(En.test(o))return`url(${c}${o}${c})`;if("/"===o[0])return`url(${c}${function(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}(e)+o}${c})`;const l=e.split("/"),u=o.split("/");l.pop();for(const t of u)"."!==t&&(".."===t?l.pop():l.push(t));return`url(${c}${l.join("/")}${c})`}))}const kn=/^[^ \t\n\r\u000c]+/,wn=/^[, \t\n\r\u000c]+/;function Tn(t,e){if(!e||""===e.trim())return e;const n=t.createElement("a");return n.href=e,n.href}function Rn(){const t=document.createElement("a");return t.href="",t.href}function xn(t,e,n,s,i,r,a,o){if(!i)return i;const c=s.toLowerCase(),l=n.toLowerCase();return"src"===c||"href"===c||"xlink:href"===c&&"#"!==i[0]?Tn(t,i):"background"!==c||"table"!==l&&"td"!==l&&"th"!==l?"srcset"===c?function(t,e){if(""===e.trim())return e;let n=0;function s(t){let s,i=t.exec(e.substring(n));return i?(s=i[0],n+=s.length,s):""}let i=[];for(;s(wn),!(n>=e.length);){let r=s(kn);if(","===r.slice(-1))r=Tn(t,r.substring(0,r.length-1)),i.push(r);else{let s="";r=Tn(t,r);let a=!1;for(;;){let t=e.charAt(n);if(""===t){i.push((r+s).trim());break}if(a)")"===t&&(a=!1);else{if(","===t){n+=1,i.push((r+s).trim());break}"("===t&&(a=!0)}s+=t,n+=1}}}return i.join(", ")}(t,i):"style"===c?bn(i,Rn()):"object"===l&&"data"===c?Tn(t,i):r&&function(t,e,n,s){return(!s||!t.matches(s))&&(["placeholder","title","aria-label"].indexOf(e)>-1||"input"===n&&"value"===e&&t.hasAttribute("type")&&["submit","button"].indexOf(t.getAttribute("type").toLowerCase())>-1)}(e,c,l,a)?o?o(i):hn(i):i:Tn(t,i)}function Dn(t,e,n,s,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return Dn(t.parentNode,e,n,s,i);if(s&&(t.matches(s)||t.closest(s)))return!1;if(i)return!0;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=0;n<t.classList.length;n++){const s=t.classList[n];if(e.test(s))return!0}return!(!n||!t.matches(n))||Dn(t.parentNode,e,n,s,i)}function Nn(t){return null==t?"":t.toLowerCase()}function In(t,e){const{doc:n,map:s,blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:u=!1,inlineStylesheet:d=!0,maskInputSelector:_,unmaskInputSelector:h,maskAllText:p,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:v={},inlineImages:S=!1,recordCanvas:E=!1,onSerialize:b,onIframeLoad:k,iframeLoadTimeout:w=5e3,keepIframeSrcFn:T=(()=>!1)}=e;let{preserveWhiteSpace:R=!0}=e;const x=function(t,e){var n;const{doc:s,blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:u,maskInputSelector:d,unmaskInputSelector:_,maskAllText:h,maskInputOptions:p={},maskTextFn:f,maskInputFn:m,dataURLOptions:g={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:S}=e;let E;if(s.__sn){const t=s.__sn.id;E=1===t?void 0:t}switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:nn.Document,childNodes:[],compatMode:t.compatMode,rootId:E}:{type:nn.Document,childNodes:[],rootId:E};case t.DOCUMENT_TYPE_NODE:return{type:nn.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:E};case t.ELEMENT_NODE:const e=function(t,e,n,s){if(s&&t.matches(s))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=0;n<t.classList.length;n++){const s=t.classList[n];if(e.test(s))return!0}return!!n&&t.matches(n)}(t,i,r,a),w=function(t){if(t instanceof HTMLFormElement)return"form";const e=t.tagName.toLowerCase().trim();return dn.test(e)?"div":e}(t);let T={};for(const{name:e,value:n}of Array.from(t.attributes))Cn(w,e)||(T[e]=xn(s,t,w,e,n,h,l,f));if("link"===w&&u){const e=Array.from(s.styleSheets).find((e=>e.href===t.href));let n=null;e&&(n=pn(e)),n&&(delete T.rel,delete T.href,T._cssText=bn(n,e.href))}if("style"===w&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=pn(t.sheet);e&&(T._cssText=bn(e,Rn()))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const e=t,n=cn(e),s=ln(e,w.toUpperCase(),n),i=t.checked;"submit"!==n&&"button"!==n&&s&&(T.value=an({input:e,type:n,tagName:w,value:s,maskInputSelector:d,unmaskInputSelector:_,maskInputOptions:p,maskInputFn:m})),i&&(T.checked=i)}if("option"===w&&(t.selected&&!p.select?T.selected=!0:delete T.selected),"canvas"===w&&v)if("2d"===t.__context)(function(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let s=0;s<t.height;s+=50){const i=e.getImageData,r=on in i?i[on]:i;if(new Uint32Array(r.call(e,n,s,Math.min(50,t.width-n),Math.min(50,t.height-s)).data.buffer).some((t=>0!==t)))return!1}return!0})(t)||(T.rr_dataURL=t.toDataURL(g.type,g.quality));else if(!("__context"in t)){const e=t.toDataURL(g.type,g.quality),n=document.createElement("canvas");n.width=t.width,n.height=t.height,e!==n.toDataURL(g.type,g.quality)&&(T.rr_dataURL=e)}if("img"===w&&y){gn||(gn=s.createElement("canvas"),yn=gn.getContext("2d"));const e=t,n=e.crossOrigin;e.crossOrigin="anonymous";const i=()=>{try{gn.width=e.naturalWidth,gn.height=e.naturalHeight,yn.drawImage(e,0,0),T.rr_dataURL=gn.toDataURL(g.type,g.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}n?T.crossOrigin=n:delete T.crossOrigin};e.complete&&0!==e.naturalWidth?i():e.onload=i}if("audio"!==w&&"video"!==w||(T.rr_mediaState=t.paused?"paused":"played",T.rr_mediaCurrentTime=t.currentTime),t.scrollLeft&&(T.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(T.rr_scrollTop=t.scrollTop),e){const{width:e,height:n}=t.getBoundingClientRect();T={class:T.class,rr_width:`${e}px`,rr_height:`${n}px`}}return"iframe"!==w||S(T.src)||(t.contentDocument||(T.rr_src=T.src),delete T.src),{type:nn.Element,tagName:w,attributes:T,childNodes:[],isSVG:(k=t,Boolean("svg"===k.tagName||k.ownerSVGElement)||void 0),needBlock:e,rootId:E};case t.TEXT_NODE:const R=t.parentNode&&t.parentNode.tagName;let x=t.textContent;const D="STYLE"===R||void 0,N="SCRIPT"===R||void 0;if(D&&x){try{t.nextSibling||t.previousSibling||(null===(n=t.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(x=(b=t.parentNode.sheet).cssRules?Array.from(b.cssRules).map((t=>t.cssText?mn(t.cssText):"")).join(""):"")}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}x=bn(x,Rn())}return N&&(x="SCRIPT_PLACEHOLDER"),"TEXTAREA"===R&&x?x="":"OPTION"===R&&x?x=an({input:t.parentNode,type:null,tagName:R,value:x,maskInputSelector:d,unmaskInputSelector:_,maskInputOptions:p,maskInputFn:m}):!D&&!N&&Dn(t,o,c,l,h)&&x&&(x=f?f(x):hn(x)),{type:nn.Text,textContent:x||"",isStyle:D,rootId:E};case t.CDATA_SECTION_NODE:return{type:nn.CDATA,textContent:"",rootId:E};case t.COMMENT_NODE:return{type:nn.Comment,textContent:t.textContent||"",rootId:E};default:return!1}var b,k}(t,{doc:n,blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:d,maskInputSelector:_,unmaskInputSelector:h,maskAllText:p,maskInputOptions:f,maskTextFn:m,maskInputFn:g,dataURLOptions:v,inlineImages:S,recordCanvas:E,keepIframeSrcFn:T});if(!x)return console.warn(t,"not serialized"),null;let D;D="__sn"in t?t.__sn.id:!function(t,e){if(e.comment&&t.type===nn.Comment)return!0;if(t.type===nn.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Nn(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Nn(t.attributes.name)||"icon"===Nn(t.attributes.rel)||"apple-touch-icon"===Nn(t.attributes.rel)||"shortcut icon"===Nn(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&Nn(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Nn(t.attributes.property).match(/^(og|twitter|fb):/)||Nn(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Nn(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===Nn(t.attributes.name)||"googlebot"===Nn(t.attributes.name)||"bingbot"===Nn(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===Nn(t.attributes.name)||"generator"===Nn(t.attributes.name)||"framework"===Nn(t.attributes.name)||"publisher"===Nn(t.attributes.name)||"progid"===Nn(t.attributes.name)||Nn(t.attributes.property).match(/^article:/)||Nn(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===Nn(t.attributes.name)||"yandex-verification"===Nn(t.attributes.name)||"csrf-token"===Nn(t.attributes.name)||"p:domain_verify"===Nn(t.attributes.name)||"verify-v1"===Nn(t.attributes.name)||"verification"===Nn(t.attributes.name)||"shopify-checkout-api-token"===Nn(t.attributes.name)))return!0}}return!1}(x,y)&&(R||x.type!==nn.Text||x.isStyle||x.textContent.replace(/^\s+|\s+$/gm,"").length)?un++:_n;const N=Object.assign(x,{id:D});if(t.__sn=N,D===_n)return null;s[D]=t,b&&b(t);let I=!u;if(N.type===nn.Element&&(I=I&&!N.needBlock,delete N.needBlock,t.shadowRoot&&(N.isShadowHost=!0)),(N.type===nn.Document||N.type===nn.Element)&&I){y.headWhitespace&&x.type===nn.Element&&"head"===x.tagName&&(R=!1);const e={doc:n,map:s,blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:u,inlineStylesheet:d,maskInputSelector:_,unmaskInputSelector:h,maskAllText:p,maskInputOptions:f,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:v,inlineImages:S,recordCanvas:E,preserveWhiteSpace:R,onSerialize:b,onIframeLoad:k,iframeLoadTimeout:w,keepIframeSrcFn:T};for(const n of Array.from(t.childNodes)){const t=In(n,e);t&&N.childNodes.push(t)}if(function(t){return t.nodeType===t.ELEMENT_NODE}(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const t=In(n,e);t&&(t.isShadow=!0,N.childNodes.push(t))}}return t.parentNode&&sn(t.parentNode)&&(N.isShadow=!0),N.type===nn.Element&&"iframe"===N.tagName&&function(t,e,n){const s=t.contentWindow;if(!s)return;let i,r=!1;try{i=s.document.readyState}catch(t){return}if("complete"!==i){const s=setTimeout((()=>{r||(e(),r=!0)}),n);return void t.addEventListener("load",(()=>{clearTimeout(s),r=!0,e()}))}const a="about:blank";s.location.href===a&&t.src!==a&&""!==t.src?t.addEventListener("load",e):setTimeout(e,0)}(t,(()=>{const e=t.contentDocument;if(e&&k){const n=In(e,{doc:e,map:s,blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputSelector:_,unmaskInputSelector:h,maskAllText:p,maskInputOptions:f,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:v,inlineImages:S,recordCanvas:E,preserveWhiteSpace:R,onSerialize:b,onIframeLoad:k,iframeLoadTimeout:w,keepIframeSrcFn:T});n&&k(t,n)}}),w),N}function Cn(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}var Un,An,Bn,On,Gn,Yn;function Mn(t,e,n=document){const s={capture:!0,passive:!0};return n.addEventListener(t,e,s),()=>n.removeEventListener(t,e,s)}!function(t){t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin"}(Un||(Un={})),function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration"}(An||(An={})),function(t){t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel"}(Bn||(Bn={})),function(t){t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2"}(On||(On={})),function(t){t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange"}(Gn||(Gn={})),function(t){t.Start="start",t.Pause="pause",t.Resume="resume",t.Resize="resize",t.Finish="finish",t.FullsnapshotRebuilded="fullsnapshot-rebuilded",t.LoadStylesheetStart="load-stylesheet-start",t.LoadStylesheetEnd="load-stylesheet-end",t.SkipStart="skip-start",t.SkipEnd="skip-end",t.MouseInteraction="mouse-interaction",t.EventCast="event-cast",t.CustomEvent="custom-event",t.Flush="flush",t.StateChange="state-change",t.PlayBack="play-back"}(Yn||(Yn={}));const Ln="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let zn={map:{},getId:()=>(console.error(Ln),-1),getNode:()=>(console.error(Ln),null),removeNodeFromMap(){console.error(Ln)},has:()=>(console.error(Ln),!1),reset(){console.error(Ln)}};function Pn(t,e,n={}){let s=null,i=0;return function(r){let a=Date.now();i||!1!==n.leading||(i=a);let o=e-(a-i),c=this,l=arguments;o<=0||o>e?(s&&(clearTimeout(s),s=null),i=a,t.apply(c,l)):s||!1===n.trailing||(s=setTimeout((()=>{i=!1===n.leading?0:Date.now(),s=null,t.apply(c,l)}),o))}}function $n(t,e,n,s,i=window){const r=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,s?n:{set(t){setTimeout((()=>{n.set.call(this,t)}),0),r&&r.set&&r.set.call(this,t)}}),()=>$n(t,e,r||{},!0)}function Fn(t,e,n){try{if(!(e in t))return()=>{};const s=t[e],i=n(s);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),t[e]=i,()=>{t[e]=s}}catch(t){return()=>{}}}function jn(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Hn(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function qn(t,e,n,s){if(!t)return!1;if(t.nodeType===t.ELEMENT_NODE){let i=!1;const r=s&&t.matches(s);return"string"==typeof e?i=void 0!==t.closest?!r&&null!==t.closest("."+e):!r&&t.classList.contains(e):!r&&t.classList.forEach((t=>{e.test(t)&&(i=!0)})),!i&&n&&(i=t.matches(n)),!r&&i||qn(t.parentNode,e,n,s)}return t.nodeType,t.TEXT_NODE,qn(t.parentNode,e,n,s)}function Wn(t){return"__sn"in t&&t.__sn.id===_n}function Zn(t,e){if(sn(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||Zn(t.parentNode,e))}function Jn(t){return Boolean(t.changedTouches)}function Kn(t){return"__sn"in t&&t.__sn.type===nn.Element&&"iframe"===t.__sn.tagName}function Vn(t){return Boolean(null==t?void 0:t.shadowRoot)}function Xn(t){return"__ln"in t}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(zn=new Proxy(zn,{get:(t,e,n)=>("map"===e&&console.error(Ln),Reflect.get(t,e,n))}));class Qn{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=(null==e?void 0:e.next)||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&Xn(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&Xn(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next&&(e.next.previous=e.previous)):(this.head=e.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)}}const ts=(t,e)=>`${t}@${e}`;function es(t){return"__sn"in t}class ns{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new Qn,n=t=>{let e=t,n=_n;for(;n===_n;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},s=s=>{var i,r,a,o,c;const l=s.getRootNode?null===(i=s.getRootNode())||void 0===i?void 0:i.host:null;let u=l;for(;null===(a=null===(r=null==u?void 0:u.getRootNode)||void 0===r?void 0:r.call(u))||void 0===a?void 0:a.host;)u=(null===(c=null===(o=null==u?void 0:u.getRootNode)||void 0===o?void 0:o.call(u))||void 0===c?void 0:c.host)||null;const d=!(this.doc.contains(s)||u&&this.doc.contains(u));if(!s.parentNode||d)return;const _=sn(s.parentNode)?this.mirror.getId(l):this.mirror.getId(s.parentNode),h=n(s);if(-1===_||-1===h)return e.addNode(s);let p=In(s,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{Kn(t)&&this.iframeManager.addIframe(t),Vn(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,document)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)}});p&&t.push({parentId:_,nextId:h,node:p})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const t of this.movedSet)is(this.removes,t,this.mirror)&&!this.movedSet.has(t.parentNode)||s(t);for(const t of this.addedSet)rs(this.droppedSet,t)||is(this.removes,t,this.mirror)?rs(this.movedSet,t)?s(t):this.droppedSet.add(t):s(t);let i=null;for(;e.length;){let t=null;if(i){const e=this.mirror.getId(i.value.parentNode),s=n(i.value);-1!==e&&-1!==s&&(t=i)}if(!t)for(let s=e.length-1;s>=0;s--){const i=e.get(s);if(i){const e=this.mirror.getId(i.value.parentNode),s=n(i.value);if(-1!==e&&-1!==s){t=i;break}}}if(!t){for(;e.head;)e.removeNode(e.head.value);break}i=t.previous,e.removeNode(t.value),s(t.value)}const r={texts:this.texts.map((t=>({id:this.mirror.getId(t.node),value:t.value}))).filter((t=>this.mirror.has(t.id))),attributes:this.attributes.map((t=>({id:this.mirror.getId(t.node),attributes:t.attributes}))).filter((t=>this.mirror.has(t.id))),removes:this.removes,adds:t};(r.texts.length||r.attributes.length||r.removes.length||r.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(r))},this.processMutation=t=>{if(!Wn(t.target))switch(t.type){case"characterData":{const e=t.target.textContent;qn(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||e===t.oldValue||this.texts.push({value:Dn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const e=t.target;let n=e.getAttribute(t.attributeName);if("value"===t.attributeName&&(n=an({input:e,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:e.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),qn(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===t.oldValue)return;let s=this.attributes.find((e=>e.node===t.target));if(s||(s={node:t.target,attributes:{}},this.attributes.push(s)),"type"===t.attributeName&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),"style"===t.attributeName){const n=this.doc.createElement("span");t.oldValue&&n.setAttribute("style",t.oldValue),void 0!==s.attributes.style&&null!==s.attributes.style||(s.attributes.style={});try{const t=s.attributes.style;for(const s of Array.from(e.style)){const i=e.style.getPropertyValue(s),r=e.style.getPropertyPriority(s);i===n.style.getPropertyValue(s)&&r===n.style.getPropertyPriority(s)||(t[s]=""===r?i:[i,r])}for(const s of Array.from(n.style))""===e.style.getPropertyValue(s)&&(t[s]=!1)}catch(t){console.warn("[rrweb] Error when parsing update to style attribute:",t)}}else{const e=t.target;s.attributes[t.attributeName]=xn(this.doc,e,e.tagName,t.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":t.addedNodes.forEach((e=>this.genAdds(e,t.target))),t.removedNodes.forEach((e=>{const n=this.mirror.getId(e),s=sn(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);qn(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||Wn(e)||(this.addedSet.has(e)?(ss(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||Zn(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[ts(n,s)]?ss(this.movedSet,e):this.removes.push({parentId:s,id:n,isShadow:!!sn(t.target)||void 0})),this.mapRemoves.push(e))}))}},this.genAdds=(t,e)=>{if(!e||!qn(e,this.blockClass,this.blockSelector,this.unblockSelector)){if(es(t)){if(Wn(t))return;this.movedSet.add(t);let n=null;e&&es(e)&&(n=e.__sn.id),n&&(this.movedMap[ts(t.__sn.id,n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);qn(t,this.blockClass,this.blockSelector,this.unblockSelector)||t.childNodes.forEach((t=>this.genAdds(t)))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach((e=>{this[e]=t[e]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function ss(t,e){t.delete(e),e.childNodes.forEach((e=>ss(t,e)))}function is(t,e,n){const{parentNode:s}=e;if(!s)return!1;const i=n.getId(s);return!!t.some((t=>t.id===i))||is(t,s,n)}function rs(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||rs(t,n))}const as=t=>(...e)=>{try{return t(...e)}catch(t){try{t.__rrweb__=!0}catch(t){}throw t}},os=[];function cs(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(t){}return t&&t.target}function ls(t,e){var n,s;const i=new ns;os.push(i),i.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const a=null===(s=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===s?void 0:s.call(n,"MutationObserver");a&&window[a]&&(r=window[a]);const o=new r(as((e=>{t.onMutation&&!1===t.onMutation(e)||i.processMutations(e)})));return o.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function us({scrollCb:t,doc:e,mirror:n,blockClass:s,blockSelector:i,unblockSelector:r,sampling:a}){const o=Pn((a=>{const o=cs(a);if(!o||qn(o,s,i,r))return;const c=n.getId(o);if(o===e){const n=e.scrollingElement||e.documentElement;as(t)({id:c,x:n.scrollLeft,y:n.scrollTop})}else as(t)({id:c,x:o.scrollLeft,y:o.scrollTop})}),a.scroll||100);return Mn("scroll",as(o),e)}function ds(t,e){const n=Object.assign({},t);return e||delete n.userTriggered,n}const _s=["INPUT","TEXTAREA","SELECT"],hs=new WeakMap;function ps(t){return function(t,e){if(ms("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||ms("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||ms("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||ms("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else{const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function fs(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};!function(t,e){const{mutationCb:n,mousemoveCb:s,mouseInteractionCb:i,scrollCb:r,viewportResizeCb:a,inputCb:o,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:u,canvasMutationCb:d,fontCb:_}=t;t.mutationCb=(...t)=>{e.mutation&&e.mutation(...t),n(...t)},t.mousemoveCb=(...t)=>{e.mousemove&&e.mousemove(...t),s(...t)},t.mouseInteractionCb=(...t)=>{e.mouseInteraction&&e.mouseInteraction(...t),i(...t)},t.scrollCb=(...t)=>{e.scroll&&e.scroll(...t),r(...t)},t.viewportResizeCb=(...t)=>{e.viewportResize&&e.viewportResize(...t),a(...t)},t.inputCb=(...t)=>{e.input&&e.input(...t),o(...t)},t.mediaInteractionCb=(...t)=>{e.mediaInteaction&&e.mediaInteaction(...t),c(...t)},t.styleSheetRuleCb=(...t)=>{e.styleSheetRule&&e.styleSheetRule(...t),l(...t)},t.styleDeclarationCb=(...t)=>{e.styleDeclaration&&e.styleDeclaration(...t),u(...t)},t.canvasMutationCb=(...t)=>{e.canvasMutation&&e.canvasMutation(...t),d(...t)},t.fontCb=(...t)=>{e.font&&e.font(...t),_(...t)}}(t,e);const s=ls(t,t.doc),i=function({mousemoveCb:t,sampling:e,doc:n,mirror:s}){if(!1===e.mousemove)return()=>{};const i="number"==typeof e.mousemove?e.mousemove:50,r="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let a,o=[];const c=Pn((e=>{const n=Date.now()-a;as(t)(o.map((t=>(t.timeOffset-=n,t))),e),o=[],a=null}),r),l=Pn((t=>{const e=cs(t),{clientX:n,clientY:i}=Jn(t)?t.changedTouches[0]:t;a||(a=Date.now()),o.push({x:n,y:i,id:s.getId(e),timeOffset:Date.now()-a}),c("undefined"!=typeof DragEvent&&t instanceof DragEvent?An.Drag:t instanceof MouseEvent?An.MouseMove:An.TouchMove)}),i,{trailing:!1}),u=[Mn("mousemove",as(l),n),Mn("touchmove",as(l),n),Mn("drag",as(l),n)];return as((()=>{u.forEach((t=>t()))}))}(t),r=function({mouseInteractionCb:t,doc:e,mirror:n,blockClass:s,blockSelector:i,unblockSelector:r,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const o=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];return Object.keys(Bn).filter((t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==o[t])).forEach((a=>{const o=a.toLowerCase(),l=as((e=>a=>{const o=cs(a);if(qn(o,s,i,r))return;const c=Jn(a)?a.changedTouches[0]:a;if(!c)return;const l=n.getId(o),{clientX:u,clientY:d}=c;as(t)({type:Bn[e],id:l,x:u,y:d})})(a));c.push(Mn(o,l,e))})),as((()=>{c.forEach((t=>t()))}))}(t),a=us(t),o=function({viewportResizeCb:t}){let e=-1,n=-1;const s=Pn((()=>{const s=jn(),i=Hn();e===s&&n===i||(as(t)({width:Number(i),height:Number(s)}),e=s,n=i)}),200);return Mn("resize",as(s),window)}(t),c=function({inputCb:t,doc:e,mirror:n,blockClass:s,blockSelector:i,unblockSelector:r,ignoreClass:a,ignoreSelector:o,maskInputSelector:c,unmaskInputSelector:l,maskInputOptions:u,maskInputFn:d,sampling:_,userTriggeredOnInput:h}){function p(t){let n=cs(t);const _=n&&n.tagName,p=t.isTrusted;if("OPTION"===_&&(n=n.parentElement),!n||!_||_s.indexOf(_)<0||qn(n,s,i,r))return;const m=n,g=cn(m);if(m.classList.contains(a)||o&&m.matches(o))return;let y=ln(m,_,g),v=!1;"radio"!==g&&"checkbox"!==g||(v=n.checked),function({tagName:t,type:e,maskInputOptions:n,maskInputSelector:s}){return s||rn({maskInputOptions:n,tagName:t,type:e})}({maskInputOptions:u,maskInputSelector:c,tagName:_,type:g})&&(y=an({input:m,maskInputOptions:u,maskInputSelector:c,unmaskInputSelector:l,tagName:_,type:g,value:y,maskInputFn:d})),f(n,as(ds)({text:y,isChecked:v,userTriggered:p},h));const S=n.name;"radio"===g&&S&&v&&e.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach((t=>{if(t!==n){const e=an({input:t,maskInputOptions:u,maskInputSelector:c,unmaskInputSelector:l,tagName:_,type:g,value:ln(t,_,g),maskInputFn:d});f(t,as(ds)({text:e,isChecked:!v,userTriggered:!1},h))}}))}function f(e,s){const i=hs.get(e);if(!i||i.text!==s.text||i.isChecked!==s.isChecked){hs.set(e,s);const i=n.getId(e);t(Object.assign(Object.assign({},s),{id:i}))}}const m=("last"===_.input?["change"]:["input","change"]).map((t=>Mn(t,as(p),e))),g=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),y=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...y.map((t=>$n(t[0],t[1],{set(){as(p)({target:this})}})))),as((()=>{m.forEach((t=>t()))}))}(t),l=function({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:s,mirror:i,sampling:r}){const a=a=>Pn(as((r=>{const o=cs(r);if(!o||qn(o,e,n,s))return;const{currentTime:c,volume:l,muted:u}=o;t({type:a,id:i.getId(o),currentTime:c,volume:l,muted:u})})),r.media||500),o=[Mn("play",a(0)),Mn("pause",a(1)),Mn("seeked",a(2)),Mn("volumechange",a(3))];return as((()=>{o.forEach((t=>t()))}))}(t),u=function({styleSheetRuleCb:t,mirror:e},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:as(((n,s,i)=>{const[r,a]=i,o=e.getId(s.ownerNode);return-1!==o&&t({id:o,adds:[{rule:r,index:a}]}),n.apply(s,i)}))});const i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:as(((n,s,i)=>{const[r]=i,a=e.getId(s.ownerNode);return-1!==a&&t({id:a,removes:[{index:r}]}),n.apply(s,i)}))});const r={};gs("CSSGroupingRule")?r.CSSGroupingRule=n.CSSGroupingRule:(gs("CSSMediaRule")&&(r.CSSMediaRule=n.CSSMediaRule),gs("CSSConditionRule")&&(r.CSSConditionRule=n.CSSConditionRule),gs("CSSSupportsRule")&&(r.CSSSupportsRule=n.CSSSupportsRule));const a={};return Object.entries(r).forEach((([n,s])=>{a[n]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(a[n].insertRule,{apply:as(((n,s,i)=>{const[r,a]=i,o=e.getId(s.parentStyleSheet.ownerNode);return-1!==o&&t({id:o,adds:[{rule:r,index:[...ps(s),a||0]}]}),n.apply(s,i)}))}),s.prototype.deleteRule=new Proxy(a[n].deleteRule,{apply:as(((n,s,i)=>{const[r]=i,a=e.getId(s.parentStyleSheet.ownerNode);return-1!==a&&t({id:a,removes:[{index:[...ps(s),r]}]}),n.apply(s,i)}))})})),as((()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=i,Object.entries(r).forEach((([t,e])=>{e.prototype.insertRule=a[t].insertRule,e.prototype.deleteRule=a[t].deleteRule}))}))}(t,{win:n}),d=function({styleDeclarationCb:t,mirror:e},{win:n}){const s=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:as(((n,s,i)=>{var r,a;const[o,c,l]=i,u=e.getId(null===(a=null===(r=s.parentRule)||void 0===r?void 0:r.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==u&&t({id:u,set:{property:o,value:c,priority:l},index:ps(s.parentRule)}),n.apply(s,i)}))});const i=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:as(((n,s,i)=>{var r,a;const[o]=i,c=e.getId(null===(a=null===(r=s.parentRule)||void 0===r?void 0:r.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==c&&t({id:c,remove:{property:o},index:ps(s.parentRule)}),n.apply(s,i)}))}),as((()=>{n.CSSStyleDeclaration.prototype.setProperty=s,n.CSSStyleDeclaration.prototype.removeProperty=i}))}(t,{win:n}),_=t.collectFonts?function({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const s=[],i=new WeakMap,r=n.FontFace;n.FontFace=function(t,e,n){const s=new r(t,e,n);return i.set(s,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),s};const a=Fn(e.fonts,"add",(function(e){return function(n){return setTimeout((()=>{const e=i.get(n);e&&(t(e),i.delete(n))}),0),e.apply(this,[n])}}));return s.push((()=>{n.FontFace=r})),s.push(a),as((()=>{s.forEach((t=>t()))}))}(t):()=>{},h=[];for(const e of t.plugins)h.push(e.observer(e.callback,n,e.options));return as((()=>{os.forEach((t=>t.reset())),s.disconnect(),i(),r(),a(),o(),c(),l();try{u(),d()}catch(t){}_(),h.forEach((t=>t()))}))}function ms(t){return void 0!==window[t]}function gs(t){return Boolean(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class ys{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){var n;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,t)}}class vs{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;const e=this;this.restorePatches.push(Fn(HTMLElement.prototype,"attachShadow",(function(t){return function(){const n=t.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}addShadowRoot(t,e){ls(Object.assign(Object.assign({},this.bypassOptions),{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),us(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){const e=this;this.restorePatches.push(Fn(t.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(){const s=n.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,t.contentDocument),s}})))}}reset(){this.restorePatches.forEach((t=>t()))}}for(var Ss="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Es="undefined"==typeof Uint8Array?[]:new Uint8Array(256),bs=0;bs<64;bs++)Es[Ss.charCodeAt(bs)]=bs;const ks=new Map,ws=(t,e,n)=>{if(!t||!xs(t,e)&&"object"!=typeof t)return;const s=function(t,e){let n=ks.get(t);return n||(n=new Map,ks.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}(n,t.constructor.name);let i=s.indexOf(t);return-1===i&&(i=s.length,s.push(t)),i};function Ts(t,e,n){if(t instanceof Array)return t.map((t=>Ts(t,e,n)));if(null===t)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){const e=t.constructor.name,n=function(t){var e,n=new Uint8Array(t),s=n.length,i="";for(e=0;e<s;e+=3)i+=Ss[n[e]>>2],i+=Ss[(3&n[e])<<4|n[e+1]>>4],i+=Ss[(15&n[e+1])<<2|n[e+2]>>6],i+=Ss[63&n[e+2]];return s%3==2?i=i.substring(0,i.length-1)+"=":s%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(t);return{rr_type:e,base64:n}}if(t instanceof DataView)return{rr_type:t.constructor.name,args:[Ts(t.buffer,e,n),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){const e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}return t instanceof ImageData?{rr_type:t.constructor.name,args:[Ts(t.data,e,n),t.width,t.height]}:xs(t,e)||"object"==typeof t?{rr_type:t.constructor.name,index:ws(t,e,n)}:t}const Rs=(t,e,n)=>[...t].map((t=>Ts(t,e,n))),xs=(t,e)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((t=>"function"==typeof e[t]));return Boolean(n.find((n=>t instanceof e[n])))};function Ds(t,e,n,s,i,r,a,o){const c=[],l=Object.getOwnPropertyNames(t);for(const u of l)try{if("function"!=typeof t[u])continue;const l=Fn(t,u,(function(c){return function(...l){const d=c.apply(this,l);if(ws(d,o,t),!qn(this.canvas,s,r,i)){a.getId(this.canvas);const s=Rs([...l],o,t),i={type:e,property:u,args:s};n(this.canvas,i)}return d}}));c.push(l)}catch(s){const i=$n(t,u,{set(t){n(this.canvas,{type:e,property:u,args:[t],setter:!0})}});c.push(i)}return c}class Ns{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(t,e){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,!0===t.recordCanvas&&this.initCanvasMutationObserver(t.win,t.blockClass,t.blockSelector,t.unblockSelector)}initCanvasMutationObserver(t,e,n,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=function(t,e,n,s){const i=[];try{const r=Fn(t.HTMLCanvasElement.prototype,"getContext",(function(t){return function(i,...r){return qn(this,e,n,s)||"__context"in this||(this.__context=i),t.apply(this,[i,...r])}}));i.push(r)}catch(t){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach((t=>t()))}}(t,e,s,n),r=function(t,e,n,s,i,r){const a=[],o=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const r of o)try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[r])continue;const o=Fn(e.CanvasRenderingContext2D.prototype,r,(function(e){return function(...a){return qn(this.canvas,n,i,s)||setTimeout((()=>{const e=[...a];if("drawImage"===r&&e[0]&&e[0]instanceof HTMLCanvasElement){const t=e[0],n=t.getContext("2d");let s=null==n?void 0:n.getImageData(0,0,t.width,t.height),i=null==s?void 0:s.data;e[0]=JSON.stringify(i)}t(this.canvas,{type:On["2D"],property:r,args:e})}),0),e.apply(this,a)}}));a.push(o)}catch(n){const s=$n(e.CanvasRenderingContext2D.prototype,r,{set(e){t(this.canvas,{type:On["2D"],property:r,args:[e],setter:!0})}});a.push(s)}return()=>{a.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,s,n,this.mirror),a=function(t,e,n,s,i,r){const a=[];return a.push(...Ds(e.WebGLRenderingContext.prototype,On.WebGL,t,n,s,i,r,e)),void 0!==e.WebGL2RenderingContext&&a.push(...Ds(e.WebGL2RenderingContext.prototype,On.WebGL2,t,n,s,i,r,e)),()=>{a.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,s,n,this.mirror);this.resetObservers=()=>{i(),r(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((t,e)=>{const n=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,n)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(t,e){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||-1===e)return;const s=n.map((t=>{const e=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(t);i<s.length;i++)e.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(t,s[i])&&(n[s[i]]=t[s[i]])}return n}(t,["type"]);return e})),{type:i}=n[0];this.mutationCb({id:e,type:i,commands:s}),this.pendingCanvasMutations.delete(t)}}function Is(t){return Object.assign(Object.assign({},t),{timestamp:Date.now()})}let Cs,Us;const As={map:{},getId:t=>t&&t.__sn?t.__sn.id:-1,getNode(t){return this.map[t]||null},removeNodeFromMap(t){const e=t.__sn&&t.__sn.id;delete this.map[e],t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))},has(t){return this.map.hasOwnProperty(t)},reset(){this.map={}}};function Bs(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:s,blockClass:i="rr-block",blockSelector:r=null,unblockSelector:a=null,ignoreClass:o="rr-ignore",ignoreSelector:c=null,maskTextClass:l="rr-mask",maskTextSelector:u=null,maskInputSelector:d=null,unmaskTextSelector:_=null,unmaskInputSelector:h=null,inlineStylesheet:p=!0,maskAllText:f=!1,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskInputFn:v,maskTextFn:S,hooks:E,packFn:b,sampling:k={},mousemoveWait:w,recordCanvas:T=!1,userTriggeredOnInput:R=!1,collectFonts:x=!1,inlineImages:D=!1,plugins:N,keepIframeSrcFn:I=(()=>!1),onMutation:C}=t;if(!e)throw new Error("emit function is required");void 0!==w&&void 0===k.mousemove&&(k.mousemove=w);const U=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},A=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let B;!function(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let O=0;Cs=(t,i)=>{var r;if(!(null===(r=os[0])||void 0===r?void 0:r.isFrozen())||t.type===Un.FullSnapshot||t.type===Un.IncrementalSnapshot&&t.data.source===An.Mutation||os.forEach((t=>t.unfreeze())),e((t=>{for(const e of N||[])e.eventProcessor&&(t=e.eventProcessor(t));return b&&(t=b(t)),t})(t),i),t.type===Un.FullSnapshot)B=t,O=0;else if(t.type===Un.IncrementalSnapshot){if(t.data.source===An.Mutation&&t.data.isAttachIframe)return;O++;const e=s&&O>=s,i=n&&t.timestamp-B.timestamp>n;(e||i)&&Us(!0)}};const G=t=>{Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.Mutation},t)}))},Y=t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.Scroll},t)})),M=t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.CanvasMutation},t)})),L=new ys({mutationCb:G}),z=new Ns({recordCanvas:T,mutationCb:M,win:window,blockClass:i,blockSelector:r,unblockSelector:a,mirror:As}),P=new vs({mutationCb:G,scrollCb:Y,bypassOptions:{onMutation:C,blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:_,maskInputSelector:d,unmaskInputSelector:h,inlineStylesheet:p,maskAllText:f,maskInputOptions:U,maskTextFn:S,maskInputFn:v,recordCanvas:T,inlineImages:D,sampling:k,slimDOMOptions:A,iframeManager:L,canvasManager:z},mirror:As});Us=(t=!1)=>{var e,n,s,o;Cs(Is({type:Un.Meta,data:{href:window.location.href,width:Hn(),height:jn()}}),t),os.forEach((t=>t.lock()));const[c,m]=function(t,e){const{blockClass:n="rr-block",blockSelector:s=null,unblockSelector:i=null,maskTextClass:r="rr-mask",maskTextSelector:a=null,unmaskTextSelector:o=null,inlineStylesheet:c=!0,inlineImages:l=!1,recordCanvas:u=!1,maskInputSelector:d=null,unmaskInputSelector:_=null,maskAllText:h=!1,maskAllInputs:p=!1,maskTextFn:f,maskInputFn:m,slimDOM:g=!1,dataURLOptions:y,preserveWhiteSpace:v,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:b,keepIframeSrcFn:k=(()=>!1)}=e||{},w={};return[In(t,{doc:t,map:w,blockClass:n,blockSelector:s,unblockSelector:i,maskTextClass:r,maskTextSelector:a,unmaskTextSelector:o,skipChild:!1,inlineStylesheet:c,maskInputSelector:d,unmaskInputSelector:_,maskAllText:h,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===p?{}:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===g?{}:g,dataURLOptions:y,inlineImages:l,recordCanvas:u,preserveWhiteSpace:v,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:b,keepIframeSrcFn:k}),w]}(document,{blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:_,maskInputSelector:d,unmaskInputSelector:h,inlineStylesheet:p,maskAllText:f,maskAllInputs:U,maskTextFn:S,slimDOM:A,recordCanvas:T,inlineImages:D,onSerialize:t=>{Kn(t)&&L.addIframe(t),Vn(t)&&P.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{L.attachIframe(t,e),P.observeAttachShadow(t)},keepIframeSrcFn:I});if(!c)return console.warn("Failed to snapshot the document");As.map=m,Cs(Is({type:Un.FullSnapshot,data:{node:c,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(o=null===(s=null===document||void 0===document?void 0:document.body)||void 0===s?void 0:s.parentElement)||void 0===o?void 0:o.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),os.forEach((t=>t.unlock()))};try{const t=[];t.push(Mn("DOMContentLoaded",(()=>{Cs(Is({type:Un.DomContentLoaded,data:{}}))})));const e=t=>{var e;return as(fs)({onMutation:C,mutationCb:G,mousemoveCb:(t,e)=>Cs(Is({type:Un.IncrementalSnapshot,data:{source:e,positions:t}})),mouseInteractionCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.MouseInteraction},t)})),scrollCb:Y,viewportResizeCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.ViewportResize},t)})),inputCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.Input},t)})),mediaInteractionCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.MediaInteraction},t)})),styleSheetRuleCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.StyleSheetRule},t)})),styleDeclarationCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.StyleDeclaration},t)})),canvasMutationCb:M,fontCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.Font},t)})),blockClass:i,ignoreClass:o,ignoreSelector:c,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:_,maskInputSelector:d,unmaskInputSelector:h,maskInputOptions:U,inlineStylesheet:p,sampling:k,recordCanvas:T,inlineImages:D,userTriggeredOnInput:R,collectFonts:x,doc:t,maskAllText:f,maskInputFn:v,maskTextFn:S,blockSelector:r,unblockSelector:a,slimDOMOptions:A,mirror:As,iframeManager:L,shadowDomManager:P,canvasManager:z,plugins:(null===(e=null==N?void 0:N.filter((t=>t.observer)))||void 0===e?void 0:e.map((t=>({observer:t.observer,options:t.options,callback:e=>Cs(Is({type:Un.Plugin,data:{plugin:t.name,payload:e}}))}))))||[]},E)};L.addLoadListener((n=>{try{t.push(e(n.contentDocument))}catch(t){console.warn(t)}}));const n=()=>{Us(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():t.push(Mn("load",(()=>{Cs(Is({type:Un.Load,data:{}})),n()}),window)),()=>{t.forEach((t=>t()))}}catch(t){console.warn(t)}}function Os(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Gs;function Ys(t){return t>9999999999?t:1e3*t}async function Ms(t,e,n){if(!t.eventBuffer)return null;if(t.isPaused())return null;if(Ys(e.timestamp)+t.timeouts.sessionIdlePause<Date.now())return null;try{return n&&t.eventBuffer.clear(),await t.eventBuffer.addEvent(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error(e),await t.stop("addEvent");const n=(0,f.Gd)().getClient();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function Ls(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((()=>(Ms(t,{type:Un.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:M(e,10,1e3)}}),"console"===e.category))))}function zs(t,e,n,s,i){const r=Date.now()-1e3*e.timestamp;return r>n&&(Ps(t,e,Math.min(r,s),i),!0)}function Ps(t,e,n,s){Ls(t,{message:e.message,timestamp:e.timestamp,category:"ui.slowClickDetected",data:{...e.data,url:Ve.location.href,timeAfterClickMs:n,endReason:s}})}Bs.addCustomEvent=(t,e)=>{if(!Cs)throw new Error("please add custom event after start recording");Cs(Is({type:Un.Custom,data:{tag:t,payload:e}}))},Bs.freezePage=()=>{os.forEach((t=>t.freeze()))},Bs.takeFullSnapshot=t=>{if(!Us)throw new Error("please take full snapshot after start recording");Us(t)},Bs.mirror=As,function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Gs||(Gs={}));const $s=["SELECT","OPTION"],Fs=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid"]);function js(t){const e={};for(const n in t)if(Fs.has(n)){let s=n;"data-testid"!==n&&"data-test-id"!==n||(s="testId"),e[s]=t[n]}return e}function Hs(t,e){const n=t&&function(t){return"__sn"in t}(t)&&t.__sn.type===Gs.Element?t.__sn:null;return{message:e,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:t?Array.from(t.childNodes).map((t=>"__sn"in t&&t.__sn.type===Gs.Text&&t.__sn.textContent)).filter(Boolean).map((t=>t.trim())).join(""):"",attributes:js(n.attributes)}}:{}}}function qs(t){return function(t){return"object"==typeof t&&!!t&&"target"in t}(t)?t.target:t}const Ws="button,a";function Zs(t){const e=qs(t);return e&&e instanceof Element&&e.closest(Ws)||e}const Js=["name","type","startTime","transferSize","duration"];function Ks(t){return function(e){return Js.every((n=>t[n]===e[n]))}}class Vs{constructor(){this.events=[]}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){this.events.push(t)}finish(){return new Promise((t=>{const e=this.events;this.events=[],t(JSON.stringify(e))}))}clear(){this.events=[]}getEarliestTimestamp(){const t=this.events.map((t=>t.timestamp)).sort()[0];return t?Ys(t):null}}class Xs{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((t,e)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?t():e()}),{once:!0}),this._worker.addEventListener("error",(t=>{e(t)}),{once:!0})}))),this._ensureReadyPromise}destroy(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise(((s,i)=>{const r=({data:e})=>{const a=e;if(a.method===t&&a.id===n){if(this._worker.removeEventListener("message",r),!a.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay]",a.response),void i(new Error("Error in compression worker"));s(a.response)}};this._worker.addEventListener("message",r),this._worker.postMessage({id:n,method:t,arg:e})}))}_getAndIncrementId(){return this._id++}}class Qs{constructor(t){this._worker=new Xs(t),this._earliestTimestamp=null}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const e=Ys(t.timestamp);return(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e),this._sendEventToWorker(t)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",JSON.stringify(t))}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,t}}class ti{constructor(t){this._fallback=new Vs,this._compression=new Qs(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t}=this._fallback,e=[];for(const n of t)e.push(this._compression.addEvent(n));this._used=this._compression;try{await Promise.all(e)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("[Replay] Failed to add events when switching buffers.",t)}}}function ei(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function ni(t,e,n=+new Date){return ei(t.started,e.maxSessionLife,n)||ei(t.lastActivity,e.sessionIdleExpire,n)}function si(t){return void 0!==t&&Math.random()<t}function ii(t){if("sessionStorage"in Ve)try{Ve.sessionStorage.setItem(Xe,JSON.stringify(t))}catch(t){}}function ri(t){const e=Date.now();return{id:t.id||(0,l.DM)(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled,shouldRefresh:!0}}function ai({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1}){const s=function(t,e){return si(t)?"session":!!e&&"buffer"}(t,e),i=ri({sampled:s});return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`[Replay] Creating new session: ${i.id}`),n&&ii(i),i}function oi({timeouts:t,currentSession:e,stickySession:n,sessionSampleRate:s,allowBuffering:i}){const r=e||n&&function(){if(!("sessionStorage"in Ve))return null;try{const t=Ve.sessionStorage.getItem(Xe);return t?ri(JSON.parse(t)):null}catch(t){return null}}();if(r){if(!ni(r,t))return{type:"saved",session:r};if(!r.shouldRefresh)return{type:"new",session:ri({sampled:!1})};("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Session has expired")}return{type:"new",session:ai({stickySession:n,sessionSampleRate:s,allowBuffering:i})}}function ci(t){return!t.type}function li(t){return"transaction"===t.type}function ui(t){const e=function(){const t=(0,f.Gd)().getClient();if(!t)return!1;const e=t.getTransport();return e&&e.send.__sentry__baseTransport__||!1}();return(n,s)=>{if(!ci(n)&&!li(n))return;const i=s&&s.statusCode;e&&(!i||i<200||i>=300)||(li(n)&&n.contexts&&n.contexts.trace&&n.contexts.trace.trace_id?t.getContext().traceIds.add(n.contexts.trace.trace_id):ci(n)&&(n.event_id&&t.getContext().errorIds.add(n.event_id),"buffer"===t.recordingMode&&n.tags&&n.tags.replayId&&setTimeout((()=>{t.sendBufferedReplayOrFlush()}))))}}function di(t,e){return e.map((({type:e,start:n,end:s,name:i,data:r})=>Ms(t,{type:Un.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:i,startTimestamp:n,endTimestamp:s,data:r}}})))}function _i(t,e){t.isEnabled()&&null!==e&&(function(t,e){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!t.getOptions()._experiments.traceInternals)&&function(t){const e=(0,f.Gd)().getClient(),n=e&&e.getDsn();return!!n&&t.includes(n.host)}(e)}(t,e.name)||t.addUpdate((()=>(di(t,[e]),!0))))}const hi=10,pi=11,fi=12,mi=13,gi=14,yi=15,vi=20,Si=21,Ei=22,bi=23,ki=["true","false","null"];function wi(t,e,n){const s=t[t.length-1],i=e[n];if(!/\s/.test(i))if('"'!==i||Ti(e,n))switch(i){case"{":!function(t,e){e&&e!==mi?(e===Si&&t.push(hi),e===vi&&t.push(hi)):t.push(hi)}(t,s);break;case"[":!function(t,e){e?e===mi?(t.push(vi),t.push(Si)):(e===Si&&(t.push(vi),t.push(Si)),e===vi&&(t.push(vi),t.push(Si))):(t.push(vi),t.push(Si))}(t,s);break;case":":!function(t,e){e===pi&&(t.pop(),t.push(mi))}(t,s);break;case",":!function(t,e){if(e!==mi)return e===yi?(t.pop(),void t.pop()):void(e!==Si&&e===bi&&t.pop());t.pop()}(t,s);break;case"}":!function(t,e){e===hi&&t.pop(),e===mi&&(t.pop(),t.pop()),e===yi&&(t.pop(),t.pop(),t.pop()),t[t.length-1]===mi&&t.push(yi),t[t.length-1]===Si&&t.push(bi)}(t,s);break;case"]":!function(t,e){e===vi&&t.pop(),e===Si&&(t.pop(),t.pop()),e===bi&&(t.pop(),t.pop(),t.pop()),t[t.length-1]===mi&&t.push(yi),t[t.length-1]===Si&&t.push(bi)}(t,s)}else!function(t,e){e===gi?(t.pop(),t.push(yi)):e===Ei?(t.pop(),t.push(bi)):e!==mi?e!==Si?e!==hi?e===fi&&(t.pop(),t.push(pi)):t.push(fi):t.push(Ei):t.push(gi)}(t,s)}function Ti(t,e){return"\\"===t[e-1]&&!Ti(t,e-1)}function Ri(t){return function(t,e){if(!e.length)return t;let n=t;const s=e.length-1;n=function(t,e){switch(e){case hi:return`${t}"~~":"~~"`;case pi:return`${t}:"~~"`;case fi:return`${t}~~":"~~"`;case mi:return function(t){const e=t.lastIndexOf(":"),n=t.slice(e+1);return ki.includes(n.trim())?`${t},"~~":"~~"`:`${t.slice(0,e+1)}"~~"`}(t);case gi:return`${t}~~"`;case yi:return`${t},"~~":"~~"`;case vi:return`${t}"~~"`;case Si:return function(t){const e=function(t){for(let e=t.length-1;e>=0;e--){const n=t[e];if(","===n||"["===n)return e}return-1}(t);if(e>-1){const n=t.slice(e+1);return ki.includes(n.trim())?`${t},"~~"`:`${t.slice(0,e+1)}"~~"`}return t}(t);case Ei:return`${t}~~"`;case bi:return`${t},"~~"`}return t}(n,e[s]);for(let t=s;t>=0;t--)switch(e[t]){case hi:n=`${n}}`;break;case vi:n=`${n}]`}return n}(t,function(t){const e=[];for(let n=0;n<t.length;n++)wi(e,t,n);return e}(t))}function xi(t,e){if(t)try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=Bi(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(t){}}function Di(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function Ni(t){return"string"==typeof t?t:t instanceof URLSearchParams?t.toString():t instanceof FormData?Bi(t):void 0}function Ii(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:s,url:i,method:a,statusCode:o,request:c,response:l}=e;return{type:t,start:n/1e3,end:s/1e3,name:i,data:(0,r.Jr)({method:a,statusCode:o,request:c,response:l})}}function Ci(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function Ui(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const s={headers:t,size:e},{body:i,warnings:r}=function(t){if(!t||"string"!=typeof t)return{body:t,warnings:[]};const e=t.length>tn;if(function(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}(t))try{const n=e?Ri(t.slice(0,tn)):t;return{body:JSON.parse(n),warnings:e?["JSON_TRUNCATED"]:[]}}catch(n){return{body:e?`${t.slice(0,tn)}\u2026`:t,warnings:e?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:e?`${t.slice(0,tn)}\u2026`:t,warnings:e?["TEXT_TRUNCATED"]:[]}}(n);return s.body=i,r.length>0&&(s._meta={warnings:r}),s}function Ai(t,e){return Object.keys(t).reduce(((n,s)=>{const i=s.toLowerCase();return e.includes(i)&&t[s]&&(n[i]=t[s]),n}),{})}function Bi(t){return new URLSearchParams(t).toString()}function Oi(t,e){const n=function(t,e=Ve.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(Ve.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const s=n.href;return!t.endsWith("/")&&s.endsWith("/")?s.slice(0,-1):s}(t);return(0,u.U0)(n,e)}function Gi(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}function Yi(t,e){const n={};return e.forEach((e=>{t.get(e)&&(n[e]=t.get(e))})),n}function Mi(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?Yi(n,e):Array.isArray(n)?{}:Ai(n,e):{}}let Li=null;function zi(t){return!(!t||!t.on)}function Pi(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:s}=t,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:s}}}}const $i={resource:function(t){const{entryType:e,initiatorType:n,name:s,responseEnd:i,startTime:r,decodedBodySize:a,encodedBodySize:o,responseStatus:c,transferSize:l}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:ji(r),end:ji(i),name:s,data:{size:l,statusCode:c,decodedBodySize:a,encodedBodySize:o}}},paint:function(t){const{duration:e,entryType:n,name:s,startTime:i}=t,r=ji(i);return{type:n,name:s,start:r,end:r+e,data:void 0}},navigation:function(t){const{entryType:e,name:n,decodedBodySize:s,duration:i,domComplete:r,encodedBodySize:a,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:_,startTime:h,transferSize:p,type:f}=t;return 0===i?null:{type:`${e}.${f}`,start:ji(h),end:ji(r),name:n,data:{size:p,decodedBodySize:s,encodedBodySize:a,duration:i,domInteractive:l,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:r,redirectCount:_}}},"largest-contentful-paint":function(t){const{entryType:e,startTime:n,size:s}=t;let i=0;if(Ve.performance){const t=Ve.performance.getEntriesByType("navigation")[0];i=t&&t.activationStart||0}const r=Math.max(n-i,0),a=ji(i)+r/1e3;return{type:e,name:e,start:a,end:a,data:{value:r,size:s,nodeId:Bs.mirror.getId(t.element)}}}};function Fi(t){return void 0===$i[t.entryType]?null:$i[t.entryType](t)}function ji(t){return((Et.Z1||Ve.performance.timeOrigin)+t)/1e3}var Hi;function qi(t){let e=!1;return(n,s)=>{if(!t.checkAndHandleExpiredSession())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("[Replay] Received replay event after session expired."));const i=s||!e;e=!0,t.addUpdate((()=>{if("buffer"===t.recordingMode&&i&&t.setInitialState(),Ms(t,n,i),!i)return!1;if(function(t,e){if(!e||!t.session||0!==t.session.segmentId)return Promise.resolve(null);Ms(t,function(t){const e=t.getOptions();return{type:Hi.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}(t),!1)}(t,i),t.session&&t.session.previousSessionId)return!0;if("buffer"===t.recordingMode&&t.session&&t.eventBuffer){const e=t.eventBuffer.getEarliestTimestamp();e&&(t.session.started=e,t.getOptions().stickySession&&ii(t.session))}return"session"===t.recordingMode&&t.flushImmediate(),!0}))}}!function(t){t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin"}(Hi||(Hi={}));class Wi extends Error{constructor(t){super(`Transport returned status code ${t}`)}}async function Zi(t,e={count:0,interval:5e3}){const{recordingData:n,options:s}=t;if(n.length)try{return await async function({recordingData:t,replayId:e,segmentId:n,eventContext:s,timestamp:i,session:r}){const a=function({recordingData:t,headers:e}){let n;const s=`${JSON.stringify(e)}\n`;if("string"==typeof t)n=`${s}${t}`;else{const e=(new TextEncoder).encode(s);n=new Uint8Array(e.length+t.length),n.set(e),n.set(t,e.length)}return n}({recordingData:t,headers:{segment_id:n}}),{urls:o,errorIds:l,traceIds:u,initialTimestamp:d}=s,_=(0,f.Gd)(),h=_.getClient(),p=_.getScope(),m=h&&h.getTransport(),g=h&&h.getDsn();if(!(h&&p&&m&&g&&r.sampled))return;const y={type:"replay_event",replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:l,trace_ids:u,urls:o,replay_id:e,segment_id:n,replay_type:r.sampled},v=await async function({client:t,scope:e,replayId:n,event:s}){const i="object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations),r=await kt(t.getOptions(),s,{event_id:n,integrations:i},e);if(!r)return null;r.platform=r.platform||"javascript";const a=t.getSdkMetadata&&t.getSdkMetadata(),{name:o,version:c}=a&&a.sdk||{};return r.sdk={...r.sdk,name:o||"sentry.javascript.unknown",version:c||"0.0.0"},r}({scope:p,client:h,replayId:e,event:y});if(!v)return h.recordDroppedEvent("event_processor","replay",y),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("An event processor returned `null`, will not send event."));const S=function(t,e,n,s){return P(K(t,J(t),s,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof e?(new TextEncoder).encode(e).length:e.length},e]])}(v,a,g,h.getOptions().tunnel);let E;try{E=await m.send(S)}catch(t){const e=new Error(Qe);try{e.cause=t}catch(t){}throw e}if(!E)return E;if("number"==typeof E.statusCode&&(E.statusCode<200||E.statusCode>=300))throw new Wi(E.statusCode);return E}(t),!0}catch(n){if(n instanceof Wi)throw n;if(E("Replays",{_retryCount:e.count}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s._experiments&&s._experiments.captureExceptions&&m(n),e.count>=3){const t=new Error(`${Qe} - max retries exceeded`);try{t.cause=n}catch(t){}throw t}return e.interval*=++e.count,await new Promise(((n,s)=>{setTimeout((async()=>{try{await Zi(t,e),n(!0)}catch(t){s(t)}}),e.interval)}))}}class Ji{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5,maxSessionLife:36e5}}__init5(){this._performanceObserver=null}__init6(){this._flushLock=null}__init7(){this._lastActivity=Date.now()}__init8(){this._isEnabled=!1}__init9(){this._isPaused=!1}__init10(){this._hasInitializedCoreListeners=!1}__init11(){this._stopRecording=null}__init12(){this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""}}constructor({options:t,recordingOptions:e}){Ji.prototype.__init.call(this),Ji.prototype.__init2.call(this),Ji.prototype.__init3.call(this),Ji.prototype.__init4.call(this),Ji.prototype.__init5.call(this),Ji.prototype.__init6.call(this),Ji.prototype.__init7.call(this),Ji.prototype.__init8.call(this),Ji.prototype.__init9.call(this),Ji.prototype.__init10.call(this),Ji.prototype.__init11.call(this),Ji.prototype.__init12.call(this),Ji.prototype.__init13.call(this),Ji.prototype.__init14.call(this),Ji.prototype.__init15.call(this),Ji.prototype.__init16.call(this),Ji.prototype.__init17.call(this),Ji.prototype.__init18.call(this),this._recordingOptions=e,this._options=t,this._debouncedFlush=function(t,e,n){let s,i,r;const a=n&&n.maxWait?Math.max(n.maxWait,e):0;function o(){return c(),s=t(),s}function c(){void 0!==i&&clearTimeout(i),void 0!==r&&clearTimeout(r),i=r=void 0}function l(){return i&&clearTimeout(i),i=setTimeout(o,e),a&&void 0===r&&(r=setTimeout(o,a)),s}return l.cancel=c,l.flush=function(){return void 0!==i||void 0!==r?o():s},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(){const{errorSampleRate:t,sessionSampleRate:e}=this._options;t<=0&&e<=0||this._loadAndCheckSession()&&(this.session?(this.session.sampled&&"session"!==this.session.sampled&&(this.recordingMode="buffer"),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");const t=this.session&&this.session.id,{session:e}=oi({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:1,allowBuffering:!1});e.previousSessionId=t,this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");const t=this.session&&this.session.id,{session:e}=oi({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:0,allowBuffering:!0});e.previousSessionId=t,this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=Bs({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:qi(this),onMutation:this._onMutationHandler})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop(t){if(this._isEnabled)try{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e="[Replay] Stopping Replay"+(t?` triggered by ${t}`:"");(this.getOptions()._experiments.traceInternals?console.warn:c.kg.log)(e)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this,function(){if("sessionStorage"in Ve)try{Ve.sessionStorage.removeItem(Xe)}catch(t){}}(),this.session=void 0}catch(t){this._handleException(t)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._loadAndCheckSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();await this.flushImmediate();const e=this.stopRecording();t&&e&&(this.recordingMode="session",this.session&&(this.session.shouldRefresh=!1,this._maybeSaveSession()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._loadAndCheckSession())return;this.resume()}}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){const t=this.getSessionId();if(this._lastActivity&&ei(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled)this.pause();else if(this._loadAndCheckSession())return t===this.getSessionId()||(this._triggerFullSnapshot(),!1)}setInitialState(){const t=`${Ve.location.pathname}${Ve.location.hash}${Ve.location.search}`,e=`${Ve.location.origin}${t}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:t}){if(t&&window.Worker)try{const t=function(){const t=new Blob(['/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),a=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(t)}();("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Using compression worker");const e=new Worker(t);return new ti(e)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Failed to create compression worker")}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Using simple buffer"),new Vs}({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this.startRecording()}_handleException(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay]",t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&m(t)}_loadAndCheckSession(){const{type:t,session:e}=oi({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:this._options.errorSampleRate>0});"new"===t&&this.setInitialState();const n=this.getSessionId();return e.id!==n&&(e.previousSessionId=n),this.session=e,!!this.session.sampled||(this.stop("session unsampled"),!1)}_addListeners(){try{Ve.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ve.addEventListener("blur",this._handleWindowBlur),Ve.addEventListener("focus",this._handleWindowFocus),Ve.addEventListener("keydown",this._handleKeyboardEvent),this._hasInitializedCoreListeners||(function(t){const e=(0,f.Gd)().getScope(),n=(0,f.Gd)().getClient();e&&e.addScopeListener((t=>e=>{if(!t.isEnabled())return;const n=function(t){const e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return Li!==e&&e?(Li=e,e.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))?null:"console"===e.category?function(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return Os(t);let n=!1;const s=e.map((t=>{if(!t)return t;if("string"==typeof t)return t.length>en?(n=!0,`${t.slice(0,en)}\u2026`):t;if("object"==typeof t)try{const e=M(t,7),s=JSON.stringify(e);if(s.length>en){const t=Ri(s.slice(0,en)),e=JSON.parse(t);return n=!0,e}return e}catch(t){}return t}));return Os({...t,data:{...t.data,arguments:s,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e):Os(e)):null}(e);n&&Ls(t,n)})(t)),(0,Lt.oq)("dom",(t=>{const e=t.getOptions()._experiments.slowClicks,n=e?{threshold:e.threshold,timeout:e.timeout,scrollTimeout:e.scrollTimeout,ignoreSelector:e.ignoreSelectors?e.ignoreSelectors.join(","):""}:void 0;return e=>{if(!t.isEnabled())return;const s=function(t){const{target:e,message:n}=function(t){const e="click"===t.name;let n,s=null;try{s=e?Zs(t.event):qs(t.event),n=(0,zt.Rt)(s,{maxStringLength:200})||"<unknown>"}catch(t){n="<unknown>"}return{target:s,message:n}}(t);return Os({category:`ui.${t.name}`,...Hs(e,n)})}(e);if(!s)return;const i="click"===e.name,r=i&&e.event;i&&n&&r&&!r.altKey&&!r.metaKey&&!r.ctrlKey&&function(t,e,n,s){if(function(t,e){return"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||!!$s.includes(t.tagName)||!("A"!==t.tagName||!(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target")))||!(!e.ignoreSelector||!t.matches(e.ignoreSelector))}(s,e))return;let i=()=>{};const r=setTimeout((()=>{Ps(t,n,e.timeout,"timeout"),i()}),e.timeout),a=()=>{zs(t,n,e.scrollTimeout,e.timeout,"scroll"),i()},o=new MutationObserver((()=>{zs(t,n,e.threshold,e.timeout,"mutation"),i()}));o.observe(Ve.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),Ve.addEventListener("scroll",a);const c=setTimeout((()=>{Ve.removeEventListener("scroll",a)}),e.scrollTimeout);i=()=>{clearTimeout(r),clearTimeout(c),o.disconnect(),Ve.removeEventListener("scroll",a)}}(t,n,s,Zs(e.event)),Ls(t,s)}})(t)),(0,Lt.oq)("history",function(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{from:e,to:n}=t,s=Date.now()/1e3;return{type:"navigation.push",start:s,end:s,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((()=>(di(t,[n]),!1))))}}(t)),function(t){const e=(0,f.Gd)().getClient();try{const n=new TextEncoder,{networkDetailAllowUrls:s,networkCaptureBodies:i,networkRequestHeaders:r,networkResponseHeaders:a}=t.getOptions(),o={replay:t,textEncoder:n,networkDetailAllowUrls:s,networkCaptureBodies:i,networkRequestHeaders:r,networkResponseHeaders:a};e&&e.on?e.on("beforeAddBreadcrumb",((t,e)=>function(t,e,n){if(e.data)try{(function(t){return"xhr"===t.category})(e)&&function(t){return t&&t.xhr}(n)&&(function(t,e,n){const{xhr:s,input:i}=e,r=xi(i,n.textEncoder),a=s.getResponseHeader("content-length")?Di(s.getResponseHeader("content-length")):xi(s.response,n.textEncoder);void 0!==r&&(t.data.request_body_size=r),void 0!==a&&(t.data.response_body_size=a)}(e,n,t),async function(t,e,n){try{const s=function(t,e,n){const{startTimestamp:s,endTimestamp:i,input:r,xhr:a}=e,{url:o,method:c,status_code:l=0,request_body_size:u,response_body_size:d}=t.data;if(!o)return null;if(!Oi(o,n.networkDetailAllowUrls))return{startTimestamp:s,endTimestamp:i,url:o,method:c,statusCode:l,request:Ci(u),response:Ci(d)};const _=a[Lt.xU],h=_?Ai(_.request_headers,n.networkRequestHeaders):{},p=Ai(function(t){const e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce(((t,e)=>{const[n,s]=e.split(": ");return t[n.toLowerCase()]=s,t}),{}):{}}(a),n.networkResponseHeaders);return{startTimestamp:s,endTimestamp:i,url:o,method:c,statusCode:l,request:Ui(h,u,n.networkCaptureBodies?Ni(r):void 0),response:Ui(p,d,n.networkCaptureBodies?e.xhr.responseText:void 0)}}(t,e,n),i=Ii("resource.xhr",s);_i(n.replay,i)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay] Failed to capture fetch breadcrumb",t)}}(e,n,t)),function(t){return"fetch"===t.category}(e)&&function(t){return t&&t.response}(n)&&(function(t,e,n){const{input:s,response:i}=e,r=xi(Gi(s),n.textEncoder),a=i?Di(i.headers.get("content-length")):void 0;void 0!==r&&(t.data.request_body_size=r),void 0!==a&&(t.data.response_body_size=a)}(e,n,t),async function(t,e,n){try{const s=await async function(t,e,n){const{startTimestamp:s,endTimestamp:i}=e,{url:r,method:a,status_code:o=0,request_body_size:c,response_body_size:l}=t.data,u=Oi(r,n.networkDetailAllowUrls),d=u?function({networkCaptureBodies:t,networkRequestHeaders:e},n,s){var i,r;return Ui((r=e,1===(i=n).length&&"string"!=typeof i[0]?Mi(i[0],r):2===i.length?Mi(i[1],r):{}),s,t?Ni(Gi(n)):void 0)}(n,e.input,c):Ci(c),_=await async function(t,{networkCaptureBodies:e,textEncoder:n,networkResponseHeaders:s},i,r){if(!t&&void 0!==r)return Ci(r);const a=Yi(i.headers,s);if(!e&&void 0!==r)return Ui(a,r,void 0);try{const s=i.clone(),o=await async function(t){try{return await t.text()}catch(t){return}}(s),c=o&&o.length&&void 0===r?xi(o,n):r;return t?Ui(a,c,e?o:void 0):Ci(c)}catch(t){return Ui(a,r,void 0)}}(u,n,e.response,l);return{startTimestamp:s,endTimestamp:i,url:r,method:a,statusCode:o,request:d,response:_}}(t,e,n),i=Ii("resource.fetch",s);_i(n.replay,i)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay] Failed to capture fetch breadcrumb",t)}}(e,n,t))}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Error when enriching network breadcrumb")}}(o,t,e))):((0,Lt.oq)("fetch",function(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{startTimestamp:e,endTimestamp:n,fetchData:s,response:i}=t;if(!n)return null;const{method:r,url:a}=s;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:a,data:{method:r,statusCode:i&&i.status}}}(e);_i(t,n)}}(t)),(0,Lt.oq)("xhr",function(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{startTimestamp:e,endTimestamp:n,xhr:s}=t,i=s[Lt.xU];if(!e||!n||!i)return null;const{method:r,url:a,status_code:o}=i;return void 0===a?null:{type:"resource.xhr",name:a,start:e/1e3,end:n/1e3,data:{method:r,statusCode:o}}}(e);_i(t,n)}}(t)))}catch(t){}}(t),(0,at.c)(function(t,e=!1){const n=e?ui(t):void 0;return(e,s)=>{if(function(t){return"replay_event"===t.type}(e))return delete e.breadcrumbs,e;if(!ci(e)&&!li(e))return e;if(function(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length)&&(!(!e.originalException||!e.originalException.__rrweb__)||t.exception.values.some((t=>!!(t.stacktrace&&t.stacktrace.frames&&t.stacktrace.frames.length)&&t.stacktrace.frames.some((t=>t.filename&&t.filename.includes("/rrweb/src/"))))))}(e,s)&&!t.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Ignoring error from rrweb internals",e),null;const i=function(t,e){return"buffer"===t.recordingMode&&e.message!==Qe&&!(!e.exception||e.type)&&si(t.getOptions().errorSampleRate)}(t,e);if((i||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.getOptions()._experiments.traceInternals&&ci(e)){const t=function(t){return{type:"Unknown",value:"n/a",...t.exception&&t.exception.values&&t.exception.values[0]}}(e);!function(t){const{category:e,level:n,message:s,...i}=t;S({category:e||"console",level:n||"debug",message:`[debug]: ${s}`,...i})}({message:`Tagging event (${e.event_id}) - ${e.message} - ${t.type}: ${t.value}`})}return n&&n(e,{statusCode:200}),e}}(t,!zi(n))),zi(n)&&(n.on("afterSendEvent",ui(t)),n.on("createDsc",(e=>{const n=t.getSessionId();n&&t.isEnabled()&&"session"===t.recordingMode&&(e.replay_id=n)})))}(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"PerformanceObserver"in Ve&&(this._performanceObserver=function(t){const e=new PerformanceObserver((e=>{const n=function(t,e){const[n,s,i]=t.reduce(((t,e)=>("navigation"===e.entryType?t[0].push(e):"largest-contentful-paint"===e.entryType?t[1].push(e):t[2].push(e),t)),[[],[],[]]),r=[],a=[];let o=s.length?s[s.length-1]:void 0;return e.forEach((t=>{if("largest-contentful-paint"!==t.entryType)if("navigation"!==t.entryType)r.push(t);else{const e=t;t.duration>0&&!n.find(Ks(e))&&!a.find(Ks(e))&&a.push(e)}else(!o||o.startTime<t.startTime)&&(o=t)})),[...o?[o]:[],...n,...i,...r,...a].sort(((t,e)=>t.startTime-e.startTime))}(t.performanceEvents,e.getEntries());t.performanceEvents=n}));return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach((t=>{try{e.observe({type:t,buffered:!0})}catch(t){}})),e}(this))}_removeListeners(){try{Ve.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ve.removeEventListener("blur",this._handleWindowBlur),Ve.removeEventListener("focus",this._handleWindowFocus),Ve.removeEventListener("keydown",this._handleKeyboardEvent),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(t){this._handleException(t)}}__init13(){this._handleVisibilityChange=()=>{"visible"===Ve.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{const t=Os({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init15(){this._handleWindowFocus=()=>{const t=Os({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init16(){this._handleKeyboardEvent=t=>{!function(t,e){if(!t.isEnabled())return;t.triggerUserActivity();const n=function(t){const{metaKey:e,shiftKey:n,ctrlKey:s,altKey:i,key:r,target:a}=t;if(!a||function(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}(a))return null;const o=e||s||i,c=1===r.length;if(!o&&c)return null;const l=(0,zt.Rt)(a,{maxStringLength:200})||"<unknown>";return Os({category:"ui.keyDown",message:l,data:{...Hs(a,l).data,metaKey:e,shiftKey:n,ctrlKey:s,altKey:i,key:r}})}(e);n&&Ls(t,n)}(this,t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;const e=ni(this.session,this.timeouts);t&&!e&&this._createCustomBreadcrumb(t),this._conditionalFlush()}_doChangeToForegroundTasks(t){this.session&&(this.checkAndHandleExpiredSession()?t&&this._createCustomBreadcrumb(t):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Document has become active, but session has expired"))}_triggerFullSnapshot(t=!0){try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Taking full rrweb snapshot"),Bs.takeFullSnapshot(t)}catch(t){this._handleException(t)}}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate((()=>{Ms(this,{type:Un.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}_addPerformanceEntries(){const t=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(di(this,function(t){return t.map(Fi).filter(Boolean)}(t)))}_conditionalFlush(){"buffer"!==this.recordingMode&&this.flushImmediate()}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:e}=this;if(!t||!e)return;if(t.segmentId)return;const n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){if(this.session&&this.eventBuffer){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(t){try{return Promise.all(di(t,[Pi(Ve.performance.memory)]))}catch(t){return[]}}(this),this.eventBuffer))try{this._updateInitialTimestampFromEventBuffer();const t=await this.eventBuffer.finish(),e=this.session.id,n=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession(),await Zi({replayId:e,recordingData:t,segmentId:s,eventContext:n,session:this.session,options:this.getOptions(),timestamp:Date.now()})}catch(t){this._handleException(t),this.stop("sendReplay");const e=(0,f.Gd)().getClient();e&&e.recordDroppedEvent("send_error","replay")}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay] No session or eventBuffer found to flush.")}__init17(){this._flush=async({force:t=!1}={})=>{if(this._isEnabled||t)if(this.checkAndHandleExpiredSession())if(this.session){if(this._debouncedFlush.cancel(),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=null);try{await this._flushLock}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error(t)}finally{this._debouncedFlush()}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay] No session found to flush.");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay] Attempting to finish replay event after session expired.")}}_maybeSaveSession(){this.session&&this._options.stickySession&&ii(this.session)}__init18(){this._onMutationHandler=t=>{const e=t.length,n=this._options._experiments.mutationLimit||0,s=n&&e>n;if(e>(this._options._experiments.mutationBreadcrumbLimit||1e3)||s){const t=Os({category:"replay.mutations",data:{count:e}});this._createCustomBreadcrumb(t)}return!s||(this._triggerFullSnapshot(!1),!1)}}}function Ki(t,e,n,s){const i=[...t,..."string"==typeof s?s.split(","):[],...e];return void 0!==n&&("string"==typeof n&&i.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),i.join(",")}function Vi({mask:t,unmask:e,block:n,unblock:s,ignore:i,blockClass:r,blockSelector:a,maskTextClass:o,maskTextSelector:c,ignoreClass:l}){const u=Ki(t,[".sentry-mask","[data-sentry-mask]"],o,c),d=Ki(e,[".sentry-unmask","[data-sentry-unmask]"]),_={maskTextSelector:u,unmaskTextSelector:d,maskInputSelector:u,unmaskInputSelector:d,blockSelector:Ki(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],r,a),unblockSelector:Ki(s,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Ki(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return r instanceof RegExp&&(_.blockClass=r),o instanceof RegExp&&(_.maskTextClass=o),_}function Xi(){return"undefined"!=typeof window&&(!(0,Ke.KV)()||"undefined"!=typeof process&&"renderer"===process.type)}const Qi='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',tr=["content-length","content-type","accept"];let er=!1;class nr{static __initStatic(){this.id="Replay"}__init(){this.name=nr.id}constructor({flushMinDelay:t=5e3,flushMaxDelay:e=5500,stickySession:n=!0,useCompression:s=!0,_experiments:i={},sessionSampleRate:r,errorSampleRate:a,maskAllText:o=!0,maskAllInputs:c=!0,blockAllMedia:l=!0,networkDetailAllowUrls:u=[],networkCaptureBodies:d=!0,networkRequestHeaders:_=[],networkResponseHeaders:h=[],mask:p=[],unmask:f=[],block:m=[],unblock:g=[],ignore:y=[],maskFn:v,blockClass:S,blockSelector:E,maskInputOptions:b,maskTextClass:k,maskTextSelector:w,ignoreClass:T}={}){if(nr.prototype.__init.call(this),this._recordingOptions={maskAllInputs:c,maskAllText:o,maskInputOptions:{...b||{},password:!0},maskTextFn:v,maskInputFn:v,...Vi({mask:p,unmask:f,block:m,unblock:g,ignore:y,blockClass:S,blockSelector:E,maskTextClass:k,maskTextSelector:w,ignoreClass:T}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,stickySession:n,sessionSampleRate:r,errorSampleRate:a,useCompression:s,blockAllMedia:l,maskAllInputs:c,maskAllText:o,networkDetailAllowUrls:u,networkCaptureBodies:d,networkRequestHeaders:sr(_),networkResponseHeaders:sr(h),_experiments:i},"number"==typeof r&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${r} })`),this._initialOptions.sessionSampleRate=r),"number"==typeof a&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${a} })`),this._initialOptions.errorSampleRate=a),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Qi}`:Qi),this._isInitialized&&Xi())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return er}set _isInitialized(t){er=t}setupOnce(){Xi()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop():Promise.resolve()}flush(t){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){const t=function(t){const e=(0,f.Gd)().getClient(),n=e&&e.getOptions(),s={sessionSampleRate:0,errorSampleRate:0,...(0,r.Jr)(t)};return n?(null==t.sessionSampleRate&&null==t.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set."),"number"==typeof n.replaysSessionSampleRate&&(s.sessionSampleRate=n.replaysSessionSampleRate),"number"==typeof n.replaysOnErrorSampleRate&&(s.errorSampleRate=n.replaysOnErrorSampleRate),s):(console.warn("SDK client is not available."),s)}(this._initialOptions);this._replay=new Ji({options:t,recordingOptions:this._recordingOptions})}}function sr(t){return[...tr,...t.map((t=>t.toLowerCase()))]}nr.__initStatic();var ir=n(29553),rr=n(10516);const ar=100,or=5e3,cr=36e5;function lr(t,e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.info(`[Offline]: ${t}`,e)}function ur(t){return new Promise(((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)}))}function dr(t){return ur(t.getAllKeys())}function _r(t){let e;function n(){return null==e&&(e=function(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const s=ur(n);return t=>s.then((n=>t(n.transaction(e,"readwrite").objectStore(e))))}(t.dbName||"sentry-offline",t.storeName||"queue")),e}return{insert:async e=>{try{const s=await H(e,t.textEncoder);await function(t,e,n){return t((t=>dr(t).then((s=>{if(!(s.length>=n))return t.put(e,Math.max(...s,0)+1),ur(t.transaction)}))))}(n(),s,t.maxQueueSize||30)}catch(t){}},pop:async()=>{try{const e=await function(t){return t((t=>dr(t).then((e=>{if(0!==e.length)return ur(t.get(e[0])).then((n=>(t.delete(e[0]),ur(t.transaction).then((()=>n)))))}))))}(n());if(e)return function(t,e,n){let s="string"==typeof t?e.encode(t):t;function i(t){const e=s.subarray(0,t);return s=s.subarray(t+1),e}function r(){let t=s.indexOf(10);return t<0&&(t=s.length),JSON.parse(n.decode(i(t)))}const a=r(),o=[];for(;s.length;){const t=r(),e="number"==typeof t.length?t.length:void 0;o.push([t,e?i(e):r()])}return[a,o]}(e,t.textEncoder||new TextEncoder,t.textDecoder||new TextDecoder)}catch(t){}}}}function hr(t){return function(t){return e=>t({...e,createStore:_r})}(function(t){return e=>{const n=t(e),s=e.createStore?e.createStore(e):void 0;let i,r=or;function a(t){s&&(i&&clearTimeout(i),i=setTimeout((async()=>{i=void 0;const t=await s.pop();t&&(lr("Attempting to send previously queued event"),c(t).catch((t=>{lr("Failed to retry sending",t)})))}),t),"number"!=typeof i&&i.unref&&i.unref())}function o(){i||(a(r),r=Math.min(2*r,cr))}async function c(t){try{const e=await n.send(t);let s=ar;if(e)if(e.headers&&e.headers["retry-after"])s=X(e.headers["retry-after"]);else if((e.statusCode||0)>=400)return e;return a(s),r=or,e}catch(n){if(s&&await function(t,n,s){return i=["replay_event","replay_recording","client_report"],!F(t,((t,e)=>i.includes(e)))&&(!e.shouldStore||e.shouldStore(t,n,s));var i}(t,n,r))return await s.insert(t),o(),lr("Error sending. Event queued",n),{};throw n}}return e.flushAtStartup&&o(),{send:c,flush:t=>n.flush(t)}}}(t))}const pr=function(t){let e=[],n={};return{add(t,s){for(;e.length>=20;){const t=e.shift();void 0!==t&&delete n[t]}n[t]&&this.delete(t),e.push(t),n[t]=s},clear(){n={},e=[]},get:t=>n[t],size:()=>e.length,delete(t){if(!n[t])return!1;delete n[t];for(let n=0;n<e.length;n++)if(e[n]===t){e.splice(n,1);break}return!0}}}(),fr=1e6,mr=String(0),gr="main";let yr="",vr="",Sr="",Er=ht.navigator&&ht.navigator.userAgent||"",br="";const kr=ht.navigator&&ht.navigator.language||ht.navigator&&ht.navigator.languages&&ht.navigator.languages[0]||"",wr=ht.navigator&&ht.navigator.userAgentData;var Tr;"object"==typeof(Tr=wr)&&null!==Tr&&"getHighEntropyValues"in Tr&&wr.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((t=>{if(yr=t.platform||"",Sr=t.architecture||"",br=t.model||"",vr=t.platformVersion||"",t.fullVersionList&&t.fullVersionList.length>0){const e=t.fullVersionList[t.fullVersionList.length-1];Er=`${e.brand} ${e.version}`}})).catch((t=>{}));const Rr=3e4;let xr=!1;function Dr(t){return t?Nr(t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Transaction is undefined, skipping profiling"),t)}function Nr(t){const e=ht.Profiler;if("function"!=typeof e)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."),t;if(!t.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Transaction is not sampled, skipping profiling"),t;if(xr)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Profiling has been disabled for the duration of the current user session."),t;const n=(0,f.Gd)().getClient(),s=n&&n.getOptions(),i=s&&s.profilesSampleRate||0;if(void 0===i)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Profiling disabled, enable it by setting `profilesSampleRate` option to SDK init call."),t;if(Math.random()>i)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Skip profiling transaction due to sampling."),t;const a=Math.floor(Rr/10);let o;try{o=new e({sampleInterval:10,maxBufferSize:a})}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(c.kg.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),c.kg.log("[Profiling] Disabling profiling for current user session.")),xr=!0}if(!o)return t;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`[Profiling] started profiling transaction: ${t.name||t.description}`);const u=(0,l.DM)();let d=null;function _(){t&&o&&(d?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] profile for:",t.name||t.description,"already exists, returning early"):o.stop().then((e=>{h&&(ht.clearTimeout(h),h=void 0),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`[Profiling] stopped profiling of transaction: ${t.name||t.description}`),e?e.samples.length<2||(d={...e,profile_id:u},function(t,e){const n=pr.get(t);if(!n)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Couldn't find a transaction event for this profile, dropping it."));n.sdkProcessingMetadata=n.sdkProcessingMetadata||{},n.sdkProcessingMetadata&&!n.sdkProcessingMetadata.profile&&(n.sdkProcessingMetadata.profile=e);const s=(0,f.Gd)().getClient();if(!s)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] getClient did not return a Client, removing profile from event and forwarding to next event processors."));const i=s.getDsn();if(!i)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] getDsn did not return a Dsn, removing profile from event and forwarding to next event processors."));const a=s.getTransport();if(!a)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] getTransport did not return a Transport, removing profile from event and forwarding to next event processors."));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Preparing envelope and sending a profiling event");const o=function(t,e,n,s){if("transaction"!==t.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");const i=t.sdkProcessingMetadata.profile;if(null==i)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${i} instead.`);if(!i.profile_id)throw new TypeError("Profile is missing profile_id");if(i.samples.length<=1)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Discarding profile because it contains less than 2 samples"),null;const a=function(t){const e=t&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id;return"string"==typeof e&&32!==e.length&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`[Profiling] Invalid traceId: ${e} on profiled event`),"string"!=typeof e?"":e}(t),o=function(t){if(t&&t.sdk)return{name:t.sdk.name,version:t.sdk.version}}(n);!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name||"unknown sdk",t.sdk.version=t.sdk.version||e.version||"unknown sdk version",t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const u=function(t,e,n,s){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&{dsn:U(s)},..."transaction"===t.type&&i&&{trace:(0,r.Jr)({...i})}}}(t,o,s,e),d=function(t){return!("thread_metadata"in t)}(p=i)?function(t){let e,n=0;const s={samples:[],stacks:[],frames:[],thread_metadata:{[mr]:{name:gr}}};if(!t.samples.length)return s;const i=t.samples[0].timestamp;for(let r=0;r<t.samples.length;r++){const a=t.samples[r];if(void 0===a.stackId){void 0===e&&(e=n,s.stacks[e]=[],n++),s.samples[r]={elapsed_since_start_ns:((a.timestamp-i)*fr).toFixed(0),stack_id:e,thread_id:mr};continue}let o=t.stacks[a.stackId];const c=[];for(;o;){c.push(o.frameId);const e=t.frames[o.frameId];void 0===s.frames[o.frameId]&&(s.frames[o.frameId]={function:e.name,file:e.resourceId?t.resources[e.resourceId]:void 0,line:e.line,column:e.column}),o=void 0===o.parentId?void 0:t.stacks[o.parentId]}const l={elapsed_since_start_ns:((a.timestamp-i)*fr).toFixed(0),stack_id:n,thread_id:mr};s.stacks[n]=c,s.samples[r]=l,n++}return s}(p):p,_="number"==typeof t.start_timestamp?1e3*t.start_timestamp:Date.now(),h="number"==typeof t.timestamp?1e3*t.timestamp:Date.now();var p;return P(u,[[{type:"profile"},{event_id:i.profile_id,timestamp:new Date(_).toISOString(),platform:"javascript",version:"1",release:t.release||"",environment:t.environment||bt.J,runtime:{name:"javascript",version:ht.navigator.userAgent},os:{name:yr,version:vr,build_number:Er},device:{locale:kr,model:br,manufacturer:Er,architecture:Sr,is_emulator:!1},profile:d,transactions:[{name:t.transaction||"",id:t.event_id||(0,l.DM)(),trace_id:a,active_thread_id:mr,relative_start_ns:"0",relative_end_ns:(1e6*(h-_)).toFixed(0)}]}]])}(n,i);pr.delete(t),o?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Envelope constructed, sending it"),a.send(o).then(null,(t=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Error while sending event:",t)}))):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Failed to construct envelope")}(u,d)):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`[Profiling] profiler returned null profile for: ${t.name||t.description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started")})).catch((t=>(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] error while stopping profiler:",t),null))))}let h=ht.setTimeout((()=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] max profile duration elapsed, stopping profiling for:",t.name||t.description),_()}),Rr);const p=t.finish.bind(t);return t.finish=function(){return t?(_(),t.setContext("profile",{profile_id:u}),p()):p()},t}class Ir{constructor(){Ir.prototype.__init.call(this)}__init(){this.name="BrowserProfilingIntegration"}setupOnce(t){(function(){const t=(0,f.cu)();t.__SENTRY__?(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] startTransaction exists, patching it with profiling functionality..."),t.__SENTRY__.extensions.startTransaction=function(t){return function(e,n){const s=t.call(this,e,n);return void 0===s?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Transaction is undefined, skipping profiling"),s):Nr(s)}}(t.__SENTRY__.extensions.startTransaction)):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] startTransaction does not exists, profiling will not work. Make sure you import @sentry/tracing package before @sentry/profiling-node as import order matters.")):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Can't find main carrier, profiling won't work.")})(),t(this.handleGlobalEvent.bind(this))}handleGlobalEvent(t){const e=t.contexts&&t.contexts.profile&&t.contexts.profile.profile_id;return e&&"string"==typeof e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Profiling event found, caching it."),pr.add(e,t)),t}}let Cr={};ht.Sentry&&ht.Sentry.Integrations&&(Cr=ht.Sentry.Integrations);const Ur={...Cr,...s,...i}},51131:(t,e,n)=>{n.d(e,{J:()=>s});const s="production"},95659:(t,e,n)=>{n.d(e,{Gd:()=>f,Xb:()=>_,cu:()=>h,pj:()=>p,vi:()=>m});var s=n(62844),i=n(21170),r=n(12343),a=n(71235),o=n(51131),c=n(10350),l=n(9015);const u=4,d=100;class _{constructor(t,e=new c.s,n=u){this._version=n,this._stack=[{scope:e}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=c.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(t){const e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:(0,s.DM)(),i=new Error("Sentry syntheticException");return this._withClient(((s,r)=>{s.captureException(t,{originalException:t,syntheticException:i,...e,event_id:n},r)})),n}captureMessage(t,e,n){const i=this._lastEventId=n&&n.event_id?n.event_id:(0,s.DM)(),r=new Error(t);return this._withClient(((s,a)=>{s.captureMessage(t,e,{originalException:t,syntheticException:r,...n,event_id:i},a)})),i}captureEvent(t,e){const n=e&&e.event_id?e.event_id:(0,s.DM)();return t.type||(this._lastEventId=n),this._withClient(((s,i)=>{s.captureEvent(t,{...e,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=d}=s.getOptions&&s.getOptions()||{};if(o<=0)return;const c={timestamp:(0,i.yW)(),...t},l=a?(0,r.Cf)((()=>a(c,e))):c;null!==l&&(s.emit&&s.emit("beforeAddBreadcrumb",l,e),n.addBreadcrumb(l,o))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=p(this);try{t(this)}finally{p(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);return"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||n||console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&(0,l.RJ)(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:s,environment:i=o.J}=n&&n.getOptions()||{},{userAgent:r}=a.n2.navigator||{},c=(0,l.Hv)({release:s,environment:i,user:e.getUser(),...r&&{userAgent:r},...t}),u=e.getSession&&e.getSession();return u&&"ok"===u.status&&(0,l.CT)(u,{status:"exited"}),this.endSession(),e.setSession(c),c}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_withClient(t){const{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){const n=h().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function h(){return a.n2.__SENTRY__=a.n2.__SENTRY__||{extensions:{},hub:void 0},a.n2}function p(t){const e=h(),n=m(e);return g(e,t),n}function f(){const t=h();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(t=h()){return!!((e=t)&&e.__SENTRY__&&e.__SENTRY__.hub)&&!m(t).isOlderThan(u)||g(t,new _),m(t);var e}(t)}function m(t){return(0,a.YO)("hub",(()=>new _),t)}function g(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}},10350:(t,e,n)=>{n.d(e,{c:()=>_,s:()=>u});var s=n(67597),i=n(21170),r=n(96893),a=n(12343),o=n(62844),c=n(71235),l=n(9015);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const e=new u;return t&&(e._breadcrumbs=[...t._breadcrumbs],e._tags={...t._tags},e._extra={...t._extra},e._contexts={...t._contexts},e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=[...t._eventProcessors],e._requestSession=t._requestSession,e._attachments=[...t._attachments],e._sdkProcessingMetadata={...t._sdkProcessingMetadata}),e}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&(0,l.CT)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof u?e:this}return t instanceof u?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):(0,s.PO)(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const s={timestamp:(0,i.yW)(),...t};return this._breadcrumbs=[...this._breadcrumbs,s].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const e=this._span.transaction;if(e){t.sdkProcessingMetadata={dynamicSamplingContext:e.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const n=e.name;n&&(t.tags={transaction:n,...t.tags})}}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...d(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,e,n,i=0){return new r.cW(((r,o)=>{const c=t[i];if(null===e||"function"!=typeof c)r(e);else{const l=c({...e},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.id&&null===l&&a.kg.log(`Event processor "${c.id}" dropped event`),(0,s.J8)(l)?l.then((e=>this._notifyEventProcessors(t,e,n,i+1).then(r))).then(null,o):this._notifyEventProcessors(t,l,n,i+1).then(r).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?(0,o.lE)(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function d(){return(0,c.YO)("globalEventProcessors",(()=>[]))}function _(t){d().push(t)}},9015:(t,e,n)=>{n.d(e,{CT:()=>o,Hv:()=>a,RJ:()=>c});var s=n(21170),i=n(62844),r=n(20535);function a(t){const e=(0,s.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return(0,r.Jr)({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&o(n,t),n}function o(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,s.ph)(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:(0,i.DM)()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function c(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),o(t,n)}},76890:(t,e,n)=>{n.d(e,{T:()=>g,l:()=>m});var s=n(12343),i=n(67597),r=n(95659),a=n(47522),o=n(42533),c=n(9791);let l=!1;function u(){const t=(0,c.x1)();if(t){const e="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}u.tag="sentry_tracingErrorCallback";var d=n(65544),_=n(78069);function h(){const t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function p(t,e,n){if(!(0,a.z)(e))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let r;return"function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:void 0!==e.tracesSampleRate?(r=e.tracesSampleRate,t.setMetadata({sampleRate:Number(r)})):(r=1,t.setMetadata({sampleRate:r})),o=r,((0,i.i2)(o)||"number"!=typeof o&&"boolean"!=typeof o?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),0):!(o<0||o>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${o}.`),0))?r?(t.sampled=Math.random()<r,t.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t);var o}function f(t,e){const n=this.getClient(),i=n&&n.getOptions()||{},r=i.instrumenter||"sentry",a=t.instrumenter||"sentry";r!==a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${r}\` instrumenter.\nThe transaction will not be sampled. Please use the ${r} instrumentation to start transactions.`),t.sampled=!1);let o=new _.Y(t,this);return o=p(o,i,{parentSampled:t.parentSampled,transactionContext:t,...e}),o.sampled&&o.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function m(t,e,n,s,i,r,a){const o=t.getClient(),c=o&&o.getOptions()||{};let l=new d.io(e,t,n,s,a,i);return l=p(l,c,{parentSampled:e.parentSampled,transactionContext:e,...r}),l.sampled&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),o&&o.emit&&o.emit("startTransaction",l),l}function g(){const t=(0,r.cu)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=f),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=h),l||(l=!0,(0,o.oq)("error",u),(0,o.oq)("unhandledrejection",u)))}},65544:(t,e,n)=>{n.d(e,{AT:()=>o,io:()=>u});var s=n(21170),i=n(12343),r=n(38903),a=n(78069);const o={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},c=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class l extends r.gB{constructor(t,e,n,s){super(s),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){t.spanId!==this.transactionSpanId&&(t.finish=e=>{t.endTimestamp="number"==typeof e?e:(0,s.ph)(),this._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),super.add(t)}}class u extends a.Y{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._idleTimeoutCanceledPermanently=!1}__init5(){this._beforeFinishCallbacks=[]}__init6(){this._finishReason=c[4]}constructor(t,e,n=o.idleTimeout,s=o.finalTimeout,r=o.heartbeatInterval,a=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=s,this._heartbeatInterval=r,this._onScope=a,u.prototype.__init.call(this),u.prototype.__init2.call(this),u.prototype.__init3.call(this),u.prototype.__init4.call(this),u.prototype.__init5.call(this),u.prototype.__init6.call(this),a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),e.configureScope((t=>t.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=c[3],this.finish())}),this._finalTimeout)}finish(t=(0,s.ph)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanId===this.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const n=e.startTimestamp<t;return n||("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),n})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] No active IdleTransaction");if(this._onScope){const t=this._idleHub.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const e=t=>{this._finished||this._pushActivity(t)},n=t=>{this._finished||this._popActivity(t)};this.spanRecorder=new l(e,n,this.spanId,t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:e}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=c[5],this.finish(t)))}setFinishReason(t){this._finishReason=t}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=c[1],this.finish(t))}),this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] popActivity ${t}`),delete this.activities[t],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const t=(0,s.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason=c[5],this.finish(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=c[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}},38903:(t,e,n)=>{n.d(e,{Dr:()=>c,Zd:()=>l,gB:()=>o});var s=n(62844),i=n(21170),r=n(12343),a=n(20535);class o{__init(){this.spans=[]}constructor(t=1e3){o.prototype.__init.call(this),this._maxlen=t}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class c{__init2(){this.traceId=(0,s.DM)()}__init3(){this.spanId=(0,s.DM)().substring(16)}__init4(){this.startTimestamp=(0,i.ph)()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(t){if(c.prototype.__init2.call(this),c.prototype.__init3.call(this),c.prototype.__init4.call(this),c.prototype.__init5.call(this),c.prototype.__init6.call(this),c.prototype.__init7.call(this),!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp),t.instrumenter&&(this.instrumenter=t.instrumenter)}startChild(t){const e=new c({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e),e.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e.transaction){const n=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${e.transaction.name||"< unknown name >"}' (${e.transaction.spanId}).`;e.transaction.metadata.spanMetadata[e.spanId]={logMessage:n},r.kg.log(n)}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t));const e=l(t);return"unknown_error"!==e&&this.setStatus(e),this}isSuccess(){return"ok"===this.status}finish(t){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:t}=this.transaction.metadata.spanMetadata[this.spanId];t&&r.kg.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof t?t:(0,i.ph)()}toTraceparent(){let t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return(0,a.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function l(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}},61250:(t,e,n)=>{n.d(e,{g:()=>r});var s=n(67597),i=n(95659);function r(t,e,n=(()=>{})){const r={...t};void 0!==r.name&&void 0===r.description&&(r.description=r.name);const a=(0,i.Gd)(),o=a.getScope(),c=o.getSpan(),l=c?c.startChild(r):a.startTransaction(r);function u(){l&&l.finish(),a.getScope().setSpan(c)}let d;o.setSpan(l);try{d=e(l)}catch(t){throw l&&l.setStatus("internal_error"),n(t),u(),t}return(0,s.J8)(d)?Promise.resolve(d).then((()=>{u()}),(t=>{l&&l.setStatus("internal_error"),n(t),u()})):u(),d}},78069:(t,e,n)=>{n.d(e,{Y:()=>c});var s=n(12343),i=n(20535),r=n(51131),a=n(95659),o=n(38903);class c extends o.Dr{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(t,e){super(t),c.prototype.__init.call(this),c.prototype.__init2.call(this),c.prototype.__init3.call(this),this._hub=e||(0,a.Gd)(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this._trimEnd=t.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}setName(t,e="custom"){this._name=t,this.metadata.source=e}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new o.gB(t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t);const e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(e&&e.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&t.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((t,e)=>t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t)).endTimestamp);const i=this.metadata,r={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:this.getDynamicSamplingContext()},...i.source&&{transaction_info:{source:i.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),r.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(r)}toContext(){const t=super.toContext();return(0,i.Jr)({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const t=this._hub||(0,a.Gd)(),e=t&&t.getClient();if(!e)return{};const{environment:n,release:s}=e.getOptions()||{},{publicKey:o}=e.getDsn()||{},c=this.metadata.sampleRate,l=void 0!==c?c.toString():void 0,{segment:u}=t.getScope().getUser()||{},d=this.metadata.source,_=d&&"url"!==d?this.name:void 0,h=(0,i.Jr)({environment:n||r.J,release:s,transaction:_,user_segment:u,public_key:o,trace_id:this.traceId,sample_rate:l});return e.emit&&e.emit("createDsc",h),h}setHub(t){this._hub=t}}},9791:(t,e,n)=>{n.d(e,{x1:()=>i});var s=n(95659);function i(t){return(t||(0,s.Gd)()).getScope().getTransaction()}},47522:(t,e,n)=>{n.d(e,{z:()=>i});var s=n(95659);function i(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=(0,s.Gd)().getClient(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},9867:(t,e,n)=>{n.r(e),n.d(e,{BROWSER_TRACING_INTEGRATION_ID:()=>P,BrowserTracing:()=>B,IdleTransaction:()=>q,Integrations:()=>K,Span:()=>z,SpanStatus:()=>J,TRACEPARENT_REGEXP:()=>H,Transaction:()=>L,addExtensionMethods:()=>O,defaultRequestInstrumentationOptions:()=>$,extractTraceparentData:()=>Y,getActiveTransaction:()=>G,hasTracingEnabled:()=>F,instrumentOutgoingRequests:()=>W,spanStatusfromHttpCode:()=>M,startIdleTransaction:()=>Z,stripUrlQueryAndFragment:()=>j});var s,i=n(29553),r=n(758),a=n(9791),o=n(77638),c=n(38903),l=n(78069),u=n(10516),d=n(47522),_=n(26956),h=n(65544),p=n(76890);function f(t){let e,n=t[0],s=1;for(;s<t.length;){const i=t[s],r=t[s+1];if(s+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=r(n)):"call"!==i&&"optionalCall"!==i||(n=r(((...t)=>n.call(e,...t))),e=void 0)}return n}!function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"}(s||(s={}));var m=n(61422),g=n(12343),y=n(20535),v=n(62844),S=n(67597);function E(t){const e=f([t,"call",t=>t(),"access",t=>t.getClient,"call",t=>t(),"optionalAccess",t=>t.getOptions,"call",t=>t()]);return"sentry"!==(f([e,"optionalAccess",t=>t.instrumenter])||"sentry")}class b{static __initStatic(){this.id="Apollo"}__init(){this.name=b.id}constructor(t={useNestjs:!1}){b.prototype.__init.call(this),this._useNest=!!t.useNestjs}loadDependency(){return this._useNest?this._module=this._module||(0,m.$y)("@nestjs/graphql"):this._module=this._module||(0,m.$y)("apollo-server-core"),this._module}setupOnce(t,e){if(E(e))("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("Apollo Integration is skipped because of instrumenter configuration.");else if(this._useNest){const t=this.loadDependency();if(!t)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("Apollo-NestJS Integration was unable to require @nestjs/graphql package."));(0,y.hl)(t.GraphQLFactory.prototype,"mergeWithSchema",(function(t){return function(...n){return(0,y.hl)(this.resolversExplorerService,"explore",(function(t){return function(){return k((0,v.lE)(t.call(this)),e)}})),t.call(this,...n)}}))}else{const t=this.loadDependency();if(!t)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("Apollo Integration was unable to require apollo-server-core package."));(0,y.hl)(t.ApolloServerBase.prototype,"constructSchema",(function(t){return function(){if(!this.config.resolvers)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this.config.schema?(g.kg.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `schema` property.If you are using NestJS with Apollo, please use `Sentry.Integrations.Apollo({ useNestjs: true })` instead."),g.kg.warn()):this.config.modules&&g.kg.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `modules` property."),g.kg.error("Skipping tracing as no resolvers found on the `ApolloServer` instance.")),t.call(this);const n=(0,v.lE)(this.config.resolvers);return this.config.resolvers=k(n,e),t.call(this)}}))}}}function k(t,e){return t.map((t=>(Object.keys(t).forEach((n=>{Object.keys(t[n]).forEach((s=>{"function"==typeof t[n][s]&&function(t,e,n,s){(0,y.hl)(t[e],n,(function(t){return function(...i){const r=f([s().getScope(),"optionalAccess",t=>t.getSpan,"call",t=>t()]),a=f([r,"optionalAccess",t=>t.startChild,"call",t=>t({description:`${e}.${n}`,op:"graphql.resolve"})]),o=t.call(this,...i);return(0,S.J8)(o)?o.then((t=>(f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):(f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),o)}}))}(t,n,s,e)}))})),t)))}b.__initStatic();class w{static __initStatic(){this.id="Express"}__init(){this.name=w.id}constructor(t={}){w.prototype.__init.call(this),this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}setupOnce(t,e){this._router?E(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("Express Integration is skipped because of instrumenter configuration."):(function(t,e=[]){e.forEach((e=>function(t,e){const n=t[e];return t[e]=function(...t){return n.call(this,...function(t,e){return t.map((t=>"function"==typeof t?T(t,e):Array.isArray(t)?t.map((t=>"function"==typeof t?T(t,e):t)):t))}(t,e))},t}(t,e)))}(this._router,this._methods),function(t){const e="settings"in t;e&&void 0===t._router&&t.lazyrouter&&t.lazyrouter();const n=e?t._router:t;if(!n)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.debug("Routing instrumentation is currently only supported in Express 4."));const s=Object.getPrototypeOf(n),i=s.process_params;s.process_params=function(t,e,n,s,r){n._reconstructedRoute||(n._reconstructedRoute="");const{layerRoutePath:a,isRegex:o,isArray:c,numExtraSegments:l}=function(t){const e=f([t,"access",t=>t.route,"optionalAccess",t=>t.path]),n=(0,S.Kj)(e),s=Array.isArray(e);if(!e)return{isRegex:n,isArray:s,numExtraSegments:0};const i=s?Math.max(e.reduce(((t,e)=>t+(0,_.$A)(e.toString())),0)-(0,_.$A)(t.path||""),0):0,r=function(t,e){return t?e.map((t=>t.toString())).join(","):e&&e.toString()}(s,e);return{layerRoutePath:r,isRegex:n,isArray:s,numExtraSegments:i}}(t);(a||o||c)&&(n._hasParameters=!0);const u=(a||t.path||"").split("/").filter((t=>t.length>0&&(o||c||!t.includes("*")))).join("/");if(u&&u.length>0&&(n._reconstructedRoute+=`/${u}${o?"/":""}`),(0,_.$A)(n.originalUrl||"")+l===(0,_.$A)(n._reconstructedRoute)){n._hasParameters||n._reconstructedRoute!==n.originalUrl&&(n._reconstructedRoute=n.originalUrl);const t=s.__sentry_transaction;if(t&&"custom"!==t.metadata.source){const e=n._reconstructedRoute||"/";t.setName(...function(t,e={}){const n=t.method&&t.method.toUpperCase();let s="",i="url";e.customRoute||t.route?(s=e.customRoute||`${t.baseUrl||""}${t.route&&t.route.path}`,i="route"):(t.originalUrl||t.url)&&(s=(0,_.rt)(t.originalUrl||t.url||""));let r="";return e.method&&n&&(r+=n),e.method&&e.path&&(r+=" "),e.path&&s&&(r+=s),[r,i]}(n,{path:!0,method:!0,customRoute:e}))}}return i.call(this,t,e,n,s,r)}}(this._router)):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("ExpressIntegration is missing an Express instance")}}function T(t,e){const n=t.length;switch(n){case 2:return function(n,s){const i=s.__sentry_transaction;if(i){const n=i.startChild({description:t.name,op:`middleware.express.${e}`});s.once("finish",(()=>{n.finish()}))}return t.call(this,n,s)};case 3:return function(n,s,i){const r=f([s.__sentry_transaction,"optionalAccess",t=>t.startChild,"call",n=>n({description:t.name,op:`middleware.express.${e}`})]);t.call(this,n,s,(function(...t){f([r,"optionalAccess",t=>t.finish,"call",t=>t()]),i.call(this,...t)}))};case 4:return function(n,s,i,r){const a=f([i.__sentry_transaction,"optionalAccess",t=>t.startChild,"call",n=>n({description:t.name,op:`middleware.express.${e}`})]);t.call(this,n,s,i,(function(...t){f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),r.call(this,...t)}))};default:throw new Error(`Express middleware takes 2-4 arguments. Got: ${n}`)}}w.__initStatic();class R{constructor(){R.prototype.__init.call(this)}static __initStatic(){this.id="GraphQL"}__init(){this.name=R.id}loadDependency(){return this._module=this._module||(0,m.$y)("graphql/execution/execute.js")}setupOnce(t,e){if(E(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("GraphQL Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();n?(0,y.hl)(n,"execute",(function(t){return function(...n){const s=e().getScope(),i=f([s,"optionalAccess",t=>t.getSpan,"call",t=>t()]),r=f([i,"optionalAccess",t=>t.startChild,"call",t=>t({description:"execute",op:"graphql.execute"})]);f([s,"optionalAccess",t=>t.setSpan,"call",t=>t(r)]);const a=t.call(this,...n);return(0,S.J8)(a)?a.then((t=>(f([r,"optionalAccess",t=>t.finish,"call",t=>t()]),f([s,"optionalAccess",t=>t.setSpan,"call",t=>t(i)]),t))):(f([r,"optionalAccess",t=>t.finish,"call",t=>t()]),f([s,"optionalAccess",t=>t.setSpan,"call",t=>t(i)]),a)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("GraphQL Integration was unable to require graphql/execution package.")}}R.__initStatic();const x=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],D={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]};class N{static __initStatic(){this.id="Mongo"}__init(){this.name=N.id}constructor(t={}){N.prototype.__init.call(this),this._operations=Array.isArray(t.operations)?t.operations:x,this._describeOperations=!("describeOperations"in t)||t.describeOperations,this._useMongoose=!!t.useMongoose}loadDependency(){const t=this._useMongoose?"mongoose":"mongodb";return this._module=this._module||(0,m.$y)(t)}setupOnce(t,e){if(E(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("Mongo Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();if(n)this._instrumentOperations(n.Collection,this._operations,e);else{const t=this._useMongoose?"mongoose":"mongodb";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error(`Mongo Integration was unable to require \`${t}\` package.`)}}_instrumentOperations(t,e,n){e.forEach((e=>this._patchOperation(t,e,n)))}_patchOperation(t,e,n){if(!(e in t.prototype))return;const s=this._getSpanContextFromOperationArguments.bind(this);(0,y.hl)(t.prototype,e,(function(t){return function(...i){const r=i[i.length-1],a=f([n().getScope(),"optionalAccess",t=>t.getSpan,"call",t=>t()]);if("function"!=typeof r||"mapReduce"===e&&2===i.length){const n=f([a,"optionalAccess",t=>t.startChild,"call",t=>t(s(this,e,i))]),r=t.call(this,...i);if((0,S.J8)(r))return r.then((t=>(f([n,"optionalAccess",t=>t.finish,"call",t=>t()]),t)));if((o=r)&&"object"==typeof o&&o.once&&"function"==typeof o.once){const t=r;try{t.once("close",(()=>{f([n,"optionalAccess",t=>t.finish,"call",t=>t()])}))}catch(t){f([n,"optionalAccess",t=>t.finish,"call",t=>t()])}return t}return f([n,"optionalAccess",t=>t.finish,"call",t=>t()]),r}var o;const c=f([a,"optionalAccess",t=>t.startChild,"call",t=>t(s(this,e,i.slice(0,-1)))]);return t.call(this,...i.slice(0,-1),(function(t,e){f([c,"optionalAccess",t=>t.finish,"call",t=>t()]),r(t,e)}))}}))}_getSpanContextFromOperationArguments(t,e,n){const s={collectionName:t.collectionName,dbName:t.dbName,namespace:t.namespace,"db.system":"mongodb"},i={op:"db",description:e,data:s},r=D[e],a=Array.isArray(this._describeOperations)?this._describeOperations.includes(e):this._describeOperations;if(!r||!a)return i;try{if("mapReduce"===e){const[t,e]=n;s[r[0]]="string"==typeof t?t:t.name||"<anonymous>",s[r[1]]="string"==typeof e?e:e.name||"<anonymous>"}else for(let t=0;t<r.length;t++)s[r[t]]=JSON.stringify(n[t])}catch(t){}return i}}N.__initStatic();class I{constructor(){I.prototype.__init.call(this)}static __initStatic(){this.id="Mysql"}__init(){this.name=I.id}loadDependency(){return this._module=this._module||(0,m.$y)("mysql/lib/Connection.js")}setupOnce(t,e){if(E(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("Mysql Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();n?(0,y.hl)(n,"createQuery",(function(t){return function(n,s,i){const r=f([e().getScope(),"optionalAccess",t=>t.getSpan,"call",t=>t()]),a=f([r,"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof n?n:n.sql,op:"db",data:{"db.system":"mysql"}})]);return"function"==typeof i?t.call(this,n,s,(function(t,e,n){f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),i(t,e,n)})):"function"==typeof s?t.call(this,n,(function(t,e,n){f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),s(t,e,n)})):t.call(this,n,s,i)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("Mysql Integration was unable to require `mysql` package.")}}I.__initStatic();class C{static __initStatic(){this.id="Postgres"}__init(){this.name=C.id}constructor(t={}){C.prototype.__init.call(this),this._usePgNative=!!t.usePgNative}loadDependency(){return this._module=this._module||(0,m.$y)("pg")}setupOnce(t,e){if(E(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("Postgres Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();if(!n)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("Postgres Integration was unable to require `pg` package."));if(this._usePgNative&&!f([n,"access",t=>t.native,"optionalAccess",t=>t.Client]))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("Postgres Integration was unable to access 'pg-native' bindings."));const{Client:s}=this._usePgNative?n.native:n;(0,y.hl)(s.prototype,"query",(function(t){return function(n,s,i){const r=f([e().getScope(),"optionalAccess",t=>t.getSpan,"call",t=>t()]),a=f([r,"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof n?n:n.text,op:"db",data:{"db.system":"postgresql"}})]);if("function"==typeof i)return t.call(this,n,s,(function(t,e){f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),i(t,e)}));if("function"==typeof s)return t.call(this,n,(function(t,e){f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),s(t,e)}));const o=void 0!==s?t.call(this,n,s):t.call(this,n);return(0,S.J8)(o)?o.then((t=>(f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):(f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),o)}}))}}C.__initStatic();var U=n(61250);class A{static __initStatic(){this.id="Prisma"}__init(){this.name=A.id}constructor(t={}){var e;A.prototype.__init.call(this),(e=t.client)&&e.$use?this._client=t.client:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.warn(`Unsupported Prisma client provided to PrismaIntegration. Provided client: ${JSON.stringify(t.client)}`)}setupOnce(t,e){this._client?E(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("Prisma Integration is skipped because of instrumenter configuration."):this._client.$use(((t,e)=>{const n=t.action,s=t.model;return(0,U.g)({name:s?`${s} ${n}`:n,op:"db.sql.prisma",data:{"db.system":"prisma"}},(()=>e(t)))})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("PrismaIntegration is missing a Prisma Client Instance")}}A.__initStatic();const B=i.gE,O=r.r,G=a.x1,Y=o.q,M=c.Zd,L=l.Y,z=c.Dr,P=i.N,$=u.k3,F=d.z,j=_.rt,H=o.K,q=h.io,W=u.L7,Z=p.l,J=s,K={BrowserTracing:B,Apollo:b,Express:w,GraphQL:R,Mongo:N,Mysql:I,Postgres:C,Prisma:A};("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,r.r)()},99181:(t,e,n)=>{n.d(e,{EN:()=>l,IQ:()=>u,bU:()=>r});var s=n(67597),i=n(12343);const r="baggage",a="sentry-",o=/^sentry-/,c=8192;function l(t){if(!(0,s.HD)(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce(((t,e)=>({...t,...d(e)})),{});else{if(!t)return;e=d(t)}const n=Object.entries(e).reduce(((t,[e,n])=>(e.match(o)&&(t[e.slice(a.length)]=n),t)),{});return Object.keys(n).length>0?n:void 0}function u(t){return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce(((t,[e,n],s)=>{const r=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,a=0===s?r:`${t},${r}`;return a.length>c?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):a}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`${a}${e}`]=n),t)),{}))}function d(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(t[e]=n,t)),{})}},58464:(t,e,n)=>{n.d(e,{Rt:()=>a,l4:()=>c,qT:()=>l});var s=n(67597);const i=(0,n(71235).Rf)(),r=80;function a(t,e={}){try{let n=t;const s=5,i=[];let a=0,c=0;const l=" > ",u=l.length;let d;const _=Array.isArray(e)?e:e.keyAttrs,h=!Array.isArray(e)&&e.maxStringLength||r;for(;n&&a++<s&&(d=o(n,_),!("html"===d||a>1&&c+i.length*u+d.length>=h));)i.push(d),c+=d.length,n=n.parentNode;return i.reverse().join(l)}catch(t){return"<unknown>"}}function o(t,e){const n=t,i=[];let r,a,o,c,l;if(!n||!n.tagName)return"";i.push(n.tagName.toLowerCase());const u=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(u&&u.length)u.forEach((t=>{i.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),r=n.className,r&&(0,s.HD)(r))for(a=r.split(/\s+/),l=0;l<a.length;l++)i.push(`.${a[l]}`);const d=["aria-label","type","name","title","alt"];for(l=0;l<d.length;l++)o=d[l],c=n.getAttribute(o),c&&i.push(`[${o}="${c}"]`);return i.join("")}function c(){try{return i.document.location.href}catch(t){return""}}function l(t){return i.document&&i.document.querySelector?i.document.querySelector(t):null}},68518:(t,e,n)=>{function s(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(e,{S:()=>i,n:()=>s})},42533:(t,e,n)=>{n.d(e,{xU:()=>d,oq:()=>p});var s=n(67597),i=n(12343),r=n(20535),a=n(30360),o=n(8823),c=n(71235);const l=(0,c.Rf)(),u=(0,c.Rf)(),d="__sentry_xhr_v2__",_={},h={};function p(t,e){_[t]=_[t]||[],_[t].push(e),function(t){if(!h[t])switch(h[t]=!0,t){case"console":"console"in u&&i.RU.forEach((function(t){t in u.console&&(0,r.hl)(u.console,t,(function(e){return function(...n){f("console",{args:n,level:t}),e&&e.apply(u.console,n)}}))}));break;case"dom":!function(){if(!("document"in u))return;const t=f.bind(null,"dom"),e=b(t,!0);u.document.addEventListener("click",e,!1),u.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=u[e]&&u[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,r.hl)(n,"addEventListener",(function(e){return function(n,s,i){if("click"===n||"keypress"==n)try{const s=this,r=s.__sentry_instrumentation_handlers__=s.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){const s=b(t);a.handler=s,e.call(this,n,s,i)}a.refCount++}catch(t){}return e.call(this,n,s,i)}})),(0,r.hl)(n,"removeEventListener",(function(t){return function(e,n,s){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},r=i[e];r&&(r.refCount--,r.refCount<=0&&(t.call(this,e,r.handler,s),r.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,s)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in u))return;const t=XMLHttpRequest.prototype;(0,r.hl)(t,"open",(function(t){return function(...e){const n=e[1],i=this[d]={method:(0,s.HD)(e[0])?e[0].toUpperCase():e[0],url:e[1],request_headers:{}};(0,s.HD)(n)&&"POST"===i.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const t=this[d];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}f("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,r.hl)(this,"onreadystatechange",(function(t){return function(...e){return a(),t.apply(this,e)}})):this.addEventListener("readystatechange",a),(0,r.hl)(this,"setRequestHeader",(function(t){return function(...e){const[n,s]=e,i=this[d];return i&&(i.request_headers[n.toLowerCase()]=s),t.apply(this,e)}})),t.apply(this,e)}})),(0,r.hl)(t,"send",(function(t){return function(...e){const n=this[d];return n&&void 0!==e[0]&&(n.body=e[0]),f("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":(0,o.t$)()&&(0,r.hl)(u,"fetch",(function(t){return function(...e){const{method:n,url:s}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:g(e),method:m(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:g(e),method:m(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:s},startTimestamp:Date.now()};return f("fetch",{...i}),t.apply(u,e).then((t=>(f("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw f("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}));break;case"history":!function(){if(!function(){const t=l.chrome,e=t&&t.app&&t.app.runtime,n="history"in l&&!!l.history.pushState&&!!l.history.replaceState;return!e&&n}())return;const t=u.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=y,e=String(n);y=e,f("history",{from:t,to:e})}return t.apply(this,e)}}u.onpopstate=function(...e){const n=u.location.href,s=y;if(y=n,f("history",{from:s,to:n}),t)try{return t.apply(this,e)}catch(t){}},(0,r.hl)(u.history,"pushState",e),(0,r.hl)(u.history,"replaceState",e)}();break;case"error":k=u.onerror,u.onerror=function(t,e,n,s,i){return f("error",{column:s,error:i,line:n,msg:t,url:e}),!(!k||k.__SENTRY_LOADER__)&&k.apply(this,arguments)},u.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":w=u.onunhandledrejection,u.onunhandledrejection=function(t){return f("unhandledrejection",t),!(w&&!w.__SENTRY_LOADER__)||w.apply(this,arguments)},u.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("unknown instrumentation type:",t)}}(t)}function f(t,e){if(t&&_[t])for(const n of _[t]||[])try{n(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,a.$P)(n)}\nError:`,e)}}function m(t,e){return!!t&&"object"==typeof t&&!!t[e]}function g(t){return"string"==typeof t?t:t?m(t,"url")?t.url:t.toString?t.toString():"":""}let y;const v=1e3;let S,E;function b(t,e=!1){return n=>{if(!n||E===n)return;if(function(t){if("keypress"!==t.type)return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n))return;const s="keypress"===n.type?"input":n.type;(void 0===S||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(E,n))&&(t({event:n,name:s,global:e}),E=n),clearTimeout(S),S=u.setTimeout((()=>{S=void 0}),v)}}let k=null,w=null},67597:(t,e,n)=>{n.d(e,{Cy:()=>m,HD:()=>l,J8:()=>f,Kj:()=>p,PO:()=>d,TX:()=>o,V9:()=>y,VW:()=>a,VZ:()=>i,cO:()=>_,fm:()=>c,i2:()=>g,kK:()=>h,pt:()=>u});const s=Object.prototype.toString;function i(t){switch(s.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}function r(t,e){return s.call(t)===`[object ${e}]`}function a(t){return r(t,"ErrorEvent")}function o(t){return r(t,"DOMError")}function c(t){return r(t,"DOMException")}function l(t){return r(t,"String")}function u(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function d(t){return r(t,"Object")}function _(t){return"undefined"!=typeof Event&&y(t,Event)}function h(t){return"undefined"!=typeof Element&&y(t,Element)}function p(t){return r(t,"RegExp")}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function m(t){return d(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function g(t){return"number"==typeof t&&t!=t}function y(t,e){try{return t instanceof e}catch(t){return!1}}},12343:(t,e,n)=>{n.d(e,{Cf:()=>r,RU:()=>i,kg:()=>o});var s=n(71235);const i=["debug","info","warn","error","log","assert","trace"];function r(t){if(!("console"in s.n2))return t();const e=s.n2.console,n={};i.forEach((t=>{const s=e[t]&&e[t].__sentry_original__;t in e&&s&&(n[t]=e[t],e[t]=s)}));try{return t()}finally{Object.keys(n).forEach((t=>{e[t]=n[t]}))}}function a(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?i.forEach((n=>{e[n]=(...e)=>{t&&r((()=>{s.n2.console[n](`Sentry Logger [${n}]:`,...e)}))}})):i.forEach((t=>{e[t]=()=>{}})),e}let o;o="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,s.YO)("logger",a):a()},62844:(t,e,n)=>{n.d(e,{DM:()=>r,Db:()=>c,EG:()=>l,YO:()=>u,jH:()=>o,lE:()=>d});var s=n(20535),i=n(71235);function r(){const t=i.n2,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");const n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function a(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function o(t){const{message:e,event_id:n}=t;if(e)return e;const s=a(t);return s?s.type&&s.value?`${s.type}: ${s.value}`:s.type||s.value||n||"<unknown>":n||"<unknown>"}function c(t,e,n){const s=t.exception=t.exception||{},i=s.values=s.values||[],r=i[0]=i[0]||{};r.value||(r.value=e||""),r.type||(r.type=n||"Error")}function l(t,e){const n=a(t);if(!n)return;const s=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...s,...e},e&&"data"in e){const t={...s&&s.data,...e.data};n.mechanism.data=t}}function u(t){if(t&&t.__sentry_captured__)return!0;try{(0,s.xp)(t,"__sentry_captured__",!0)}catch(t){}return!1}function d(t){return Array.isArray(t)?t:[t]}},61422:(t,e,n)=>{n.d(e,{$y:()=>a,KV:()=>i,l$:()=>r});var s=n(68518);function i(){return!(0,s.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function r(t,e){return t.require(e)}function a(e){let n;try{n=r(t,e)}catch(t){}try{const{cwd:s}=r(t,"process");n=r(t,`${s()}/node_modules/${e}`)}catch(t){}return n}t=n.hmd(t)},20535:(t,e,n)=>{n.d(e,{$Q:()=>c,HK:()=>l,Jr:()=>f,Sh:()=>d,_j:()=>u,hl:()=>a,xp:()=>o,zf:()=>p});var s=n(58464),i=n(67597),r=n(57321);function a(t,e,n){if(!(e in t))return;const s=t[e],i=n(s);if("function"==typeof i)try{c(i,s)}catch(t){}t[e]=i}function o(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function c(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,o(t,"__sentry_original__",e)}function l(t){return t.__sentry_original__}function u(t){return Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&")}function d(t){if((0,i.VZ)(t))return{message:t.message,name:t.name,stack:t.stack,...h(t)};if((0,i.cO)(t)){const e={type:t.type,target:_(t.target),currentTarget:_(t.currentTarget),...h(t)};return"undefined"!=typeof CustomEvent&&(0,i.V9)(t,CustomEvent)&&(e.detail=t.detail),e}return t}function _(t){try{return(0,i.kK)(t)?(0,s.Rt)(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function h(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function p(t,e=40){const n=Object.keys(d(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,r.$G)(n[0],e);for(let t=n.length;t>0;t--){const s=n.slice(0,t).join(", ");if(!(s.length>e))return t===n.length?s:(0,r.$G)(s,e)}return""}function f(t){return m(t,new Map)}function m(t,e){if((0,i.PO)(t)){const n=e.get(t);if(void 0!==n)return n;const s={};e.set(t,s);for(const n of Object.keys(t))void 0!==t[n]&&(s[n]=m(t[n],e));return s}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const s=[];return e.set(t,s),t.forEach((t=>{s.push(m(t,e))})),s}return t}},30360:(t,e,n)=>{n.d(e,{$P:()=>c,Sq:()=>a,pE:()=>r});const s=50,i=/\(error: (.*)\)/;function r(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{const r=[],a=t.split("\n");for(let t=n;t<a.length;t++){const n=a[t];if(n.length>1024)continue;const o=i.test(n)?n.replace(i,"$1"):n;if(!o.match(/\S*Error: /)){for(const t of e){const e=t(o);if(e){r.push(e);break}}if(r.length>=s)break}}return function(t){if(!t.length)return[];const e=t.slice(0,s),n=e[e.length-1].function;n&&/sentryWrapped/.test(n)&&e.pop(),e.reverse();const i=e[e.length-1].function;return i&&/captureMessage|captureException/.test(i)&&e.pop(),e.map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"})))}(r)}}function a(t){return Array.isArray(t)?r(...t):t}const o="<anonymous>";function c(t){try{return t&&"function"==typeof t&&t.name||o}catch(t){return o}}},57321:(t,e,n)=>{n.d(e,{$G:()=>i,U0:()=>a,nK:()=>r});var s=n(67597);function i(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function r(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const s=t[e];try{n.push(String(s))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function a(t,e=[],n=!1){return e.some((e=>function(t,e,n=!1){return!!(0,s.HD)(t)&&((0,s.Kj)(e)?e.test(t):!!(0,s.HD)(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}},8823:(t,e,n)=>{n.d(e,{Ak:()=>r,Du:()=>a,t$:()=>o});var s=n(12343);const i=(0,n(71235).Rf)();function r(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function a(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function o(){if(!r())return!1;if(a(i.fetch))return!0;let t=!1;const e=i.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=a(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}},96893:(t,e,n)=>{n.d(e,{$2:()=>a,WD:()=>r,cW:()=>o});var s,i=n(67597);function r(t){return new o((e=>{e(t)}))}function a(t){return new o(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(s||(s={}));class o{__init(){this._state=s.PENDING}__init2(){this._handlers=[]}constructor(t){o.prototype.__init.call(this),o.prototype.__init2.call(this),o.prototype.__init3.call(this),o.prototype.__init4.call(this),o.prototype.__init5.call(this),o.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new o(((n,s)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){s(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){s(t)}else s(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new o(((e,n)=>{let s,i;return this.then((e=>{i=!1,s=e,t&&t()}),(e=>{i=!0,s=e,t&&t()})).then((()=>{i?n(s):e(s)}))}))}__init3(){this._resolve=t=>{this._setResult(s.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(s.REJECTED,t)}}__init5(){this._setResult=(t,e)=>{this._state===s.PENDING&&((0,i.J8)(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===s.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===s.RESOLVED&&t[1](this._value),this._state===s.REJECTED&&t[2](this._value),t[0]=!0)}))}}}},21170:(t,e,n)=>{n.d(e,{Z1:()=>_,ph:()=>u,yW:()=>l});var s=n(61422),i=n(71235);t=n.hmd(t);const r=(0,i.Rf)(),a={nowSeconds:()=>Date.now()/1e3},o=(0,s.KV)()?function(){try{return(0,s.l$)(t,"perf_hooks").performance}catch(t){return}}():function(){const{performance:t}=r;if(t&&t.now)return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),c=void 0===o?a:{nowSeconds:()=>(o.timeOrigin+o.now())/1e3},l=a.nowSeconds.bind(a),u=c.nowSeconds.bind(c);let d;const _=(()=>{const{performance:t}=r;if(!t||!t.now)return void(d="none");const e=36e5,n=t.now(),s=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-s):e,a=i<e,o=t.timing&&t.timing.navigationStart,c="number"==typeof o?Math.abs(o+n-s):e;return a||c<e?i<=c?(d="timeOrigin",t.timeOrigin):(d="navigationStart",o):(d="dateNow",s)})()},77638:(t,e,n)=>{n.d(e,{K:()=>s,q:()=>i});const s=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function i(t){const e=t.match(s);if(!t||!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}},26956:(t,e,n)=>{function s(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",s=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:s,relative:e[5]+n+s}}function i(t){return t.split(/[\?#]/,1)[0]}function r(t){return t.split(/\\?\//).filter((t=>t.length>0&&","!==t)).length}n.d(e,{$A:()=>r,en:()=>s,rt:()=>i})},71235:(t,e,n)=>{function s(t){return t&&t.Math==Math?t:void 0}n.d(e,{Rf:()=>r,YO:()=>a,n2:()=>i});const i="object"==typeof globalThis&&s(globalThis)||"object"==typeof window&&s(window)||"object"==typeof self&&s(self)||"object"==typeof n.g&&s(n.g)||function(){return this}()||{};function r(){return i}function a(t,e,n){const s=n||i,r=s.__SENTRY__=s.__SENTRY__||{};return r[t]||(r[t]=e())}}}]);
+1-0src/App.jsx
@@ -141,6 +141,7 @@ function App() {
141141 );
142142
143143 function saveBuild() {
144+ if (!regexValue) return;
144145 const length = regexValue.textContent.length;
145146 for (let i = 0; i < length; i++)
146147 regexInput.dispatchEvent(
+0-6vite.config.js
@@ -4,10 +4,4 @@ import react from "@vitejs/plugin-react";
44 // https://vitejs.dev/config/
55 export default defineConfig({
66 plugins: [react()],
7- server: {
8- proxy: {
9- "/static": "https://regex101.com",
10- "/js": "https://regex101.com",
11- },
12- },
137 });